/* AI Speed — Warm British Craftsmanship aesthetic */
/* Cream, ink, post-box red. Editorial typography. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,700;9..144,900&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cream: #faf6ee;
  --cream-deep: #f2ebd9;
  --ink: #1a1a1a;
  --ink-soft: #2d2d2d;
  --post: #c8362c;
  --post-deep: #a02a22;
  --moss: #4a6741;
  --paper: #ffffff;
  --rule: #d9cfb8;
  --gold: #c9962b;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 10;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-inner span { display: flex; align-items: center; gap: 8px; }
.dot-live { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px #4ade80; }

/* ===== HEADER ===== */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 246, 238, 0.92);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--post);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  font-style: italic;
  transform: rotate(-6deg);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--post); }
.nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--post); transform: translateY(-1px); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: 80px 24px 100px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--post);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--post);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 980px;
}
.hero h1 em {
  font-style: italic;
  color: var(--post);
  font-weight: 500;
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero h1 .strike::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 8px;
  background: var(--post);
  transform: rotate(-2deg);
  opacity: 0.85;
}
.hero-sub {
  font-size: 21px;
  line-height: 1.55;
  max-width: 680px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 56px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--post);
  color: var(--cream);
}
.btn-primary:hover { background: var(--post-deep); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200, 54, 44, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.tick {
  width: 18px; height: 18px;
  background: var(--moss);
  color: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* Decorative ticket stub */
.hero-stub {
  position: absolute;
  top: 100px;
  right: 24px;
  width: 220px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 20px;
  font-family: var(--mono);
  font-size: 12px;
  transform: rotate(4deg);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  z-index: 2;
}
.hero-stub-top {
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.hero-stub-big {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  color: var(--post);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 8px 0;
}
@media (max-width: 1100px) { .hero-stub { display: none; } }

/* ===== SECTIONS ===== */
section { position: relative; z-index: 2; }
.section {
  padding: 100px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--post);
  margin-bottom: 20px;
  display: inline-block;
}
.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 760px;
}
.section-title em { font-style: italic; color: var(--post); font-weight: 500; }
.section-lede {
  font-size: 19px;
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 60px;
  line-height: 1.55;
}

/* ===== PROBLEM BAND (dark) ===== */
.band-dark {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 24px;
  margin: 0;
  max-width: none;
  position: relative;
  z-index: 2;
}
.band-dark .section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.band-dark .section-eyebrow { color: #f4a896; }
.band-dark .section-title em { color: #f4a896; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 60px;
}
.problem-card {
  border-top: 1px solid #444;
  padding-top: 24px;
}
.problem-card-num {
  font-family: var(--serif);
  font-size: 48px;
  font-style: italic;
  font-weight: 500;
  color: #f4a896;
  line-height: 1;
  margin-bottom: 12px;
}
.problem-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 15px;
  color: #c8c0b0;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  margin-top: 40px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15); }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--post);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.step-time {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PRICING (the heart) ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--ink);
  color: var(--cream);
  transform: scale(1.02);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
}
.price-card.featured .price-name { color: var(--cream); }
.price-card.featured ul li { color: #d9cfb8; }
.price-card.featured .price-amount { color: var(--cream); }
.price-card.featured .price-period { color: #a8a08e; }

.price-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--post);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.price-tag {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--post);
  margin-bottom: 24px;
}
.price-card.featured .price-tag { color: #f4a896; }
.price-amount {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  margin-bottom: 28px;
}
.price-card ul {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.price-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.price-card.featured ul li { border-color: #333; }
.price-card ul li::before {
  content: '✓';
  color: var(--moss);
  font-weight: 700;
  flex-shrink: 0;
}
.price-card.featured ul li::before { color: #6fb556; }
.price-btn {
  display: block;
  text-align: center;
  padding: 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s;
}
.price-card.featured .price-btn { background: var(--post); }
.price-btn:hover { background: var(--post); transform: translateY(-2px); }
.price-card.featured .price-btn:hover { background: var(--post-deep); }

.pricing-note {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ===== COMPARISON TABLE (AIEO gold) ===== */
.compare {
  margin-top: 60px;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.compare thead {
  background: var(--cream-deep);
}
.compare th {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.compare th.us, .compare td.us {
  background: var(--ink);
  color: var(--cream);
}
.compare tr:last-child td { border-bottom: none; }

/* ===== FAQ ===== */
.faq-grid {
  margin-top: 40px;
  display: grid;
  gap: 0;
  max-width: 860px;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.faq-q {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.faq-q::after {
  content: '+';
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--post);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 500px; padding-top: 8px; }

/* ===== TESTIMONIAL / SOCIAL ===== */
.testimonial-band {
  background: var(--cream-deep);
  padding: 100px 24px;
  position: relative;
  z-index: 2;
}
.testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 32px;
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  left: -40px; top: -30px;
  font-size: 120px;
  color: var(--post);
  opacity: 0.15;
  font-family: var(--serif);
  line-height: 1;
}
.quote-author {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(200, 54, 44, 0.25), transparent 50%);
}
.final-cta-inner { position: relative; max-width: 800px; margin: 0 auto; }
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.final-cta h2 em { color: #f4a896; font-style: italic; font-weight: 500; }
.final-cta p {
  font-size: 19px;
  color: #c8c0b0;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  padding: 60px 24px 30px;
  position: relative;
  z-index: 2;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; font-size: 15px; }
.foot-col a:hover { color: var(--post); }
.foot-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== UTILITY ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.callout {
  background: var(--paper);
  border-left: 4px solid var(--post);
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
}

.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 16px; line-height: 1.1; }
.prose h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.prose p { margin-bottom: 18px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 18px 20px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); line-height: 1.6; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ===== ANIMATIONS ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.8s ease both; }
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.2s; }
.rise-3 { animation-delay: 0.3s; }
.rise-4 { animation-delay: 0.4s; }

/* Page hero variants for sub-pages */
.page-hero {
  padding: 80px 24px 60px;
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--post); font-weight: 500; }
.page-hero p {
  font-size: 19px;
  max-width: 640px;
  color: var(--ink-soft);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--post); }
