/* ============================================================
   Roomrouter — Design System
   Aesthetic: editorial hospitality × AI precision
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  /* Color */
  --cream:        #FAF6EE;
  --cream-2:      #F3ECDE;
  --sand:         #ECE2CF;
  --ink:          #0E211B;   /* near-black forest green */
  --ink-2:        #16352A;
  --ink-soft:     #3C5249;
  --coral:        #FF5A3C;
  --coral-deep:   #E5421F;
  --emerald:      #0E8F62;
  --emerald-deep: #0A6F4C;
  --gold:         #E8A33D;
  --line:         rgba(14, 33, 27, 0.12);
  --line-light:   rgba(250, 246, 238, 0.16);

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --sans:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing / shape */
  --radius:    18px;
  --radius-lg: 28px;
  --radius-sm: 11px;
  --shadow:    0 30px 60px -28px rgba(14, 33, 27, 0.35);
  --shadow-sm: 0 12px 30px -16px rgba(14, 33, 27, 0.3);
  --maxw:      1200px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  font-weight: 480;
  font-optical-sizing: auto;
}
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
em.fancy { font-style: italic; font-variation-settings: "SOFT" 60; color: var(--coral); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--emerald-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--emerald);
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }

/* ---- Layout ----------------------------------------------- */
.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding: clamp(72px, 9vw, 140px) 0; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; font-size: 0.97rem;
  padding: 0.85em 1.4em;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.35s, color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 26px -10px var(--coral); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-line-light { border: 1px solid var(--line-light); color: var(--cream); }
.btn-line-light:hover { background: var(--cream); color: var(--ink); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 0.6em; font-family: var(--display); font-size: 1.42rem; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; padding: 0.5em 0.9em; border-radius: 9px; color: var(--ink-soft); transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--ink); background: rgba(14,33,27,0.05); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; }
.lang-switch a { padding: 0.35em 0.5em; border-radius: 7px; color: var(--ink-soft); transition: color 0.2s, background 0.2s; }
.lang-switch a:hover { color: var(--ink); background: rgba(14,33,27,0.06); }
.lang-switch a.active { color: var(--ink); font-weight: 700; }
.nav-cta .signin { font-weight: 600; font-size: 0.95rem; }
.nav-cta .signin:hover { color: var(--coral); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 7vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: rgba(14,143,98,0.1); color: var(--emerald-deep);
  font-size: 0.82rem; font-weight: 600;
  padding: 0.45em 0.9em 0.45em 0.55em; border-radius: 100px;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(14,143,98,0.2); }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 0.9rem; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cream);
  margin-left: -10px; font-size: 0.8rem; font-weight: 700; color: #fff;
  display: grid; place-items: center;
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Hero visual */
.hero-visual { position: relative; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--cream); }
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--sand); display: block; }
.panel-head .url { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft); margin-left: 6px; }
.panel-body { padding: 22px; }
.ai-q { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; display: flex; gap: 10px; }
.ai-q b { color: var(--ink); font-weight: 600; }
.ai-a { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; font-size: 0.92rem; line-height: 1.7; }
.ai-a .hl { background: linear-gradient(transparent 60%, rgba(255,90,60,0.28) 60%); font-weight: 600; }
.ai-a .src { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ai-a .src span { font-family: var(--mono); font-size: 0.7rem; background: #fff; border: 1px solid var(--line); padding: 0.3em 0.6em; border-radius: 100px; color: var(--ink-soft); }
.ai-a .src span.lit { border-color: var(--coral); color: var(--coral-deep); background: rgba(255,90,60,0.06); }

.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px;
}
.float-card.rank { bottom: -26px; left: -28px; width: 218px; }
.float-card .fc-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.float-card .fc-rank { display: flex; align-items: baseline; gap: 8px; }
.float-card .fc-rank b { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.float-card .fc-rank .up { color: var(--emerald); font-size: 0.82rem; font-weight: 700; }
.float-card.score { top: -22px; right: -22px; width: 150px; }
.ring { display: flex; align-items: center; gap: 12px; }
.ring svg { width: 48px; height: 48px; }
.ring b { font-family: var(--display); font-size: 1.5rem; }

/* atmospheric blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: -1; pointer-events: none; }
.blob.a { width: 360px; height: 360px; background: rgba(255,90,60,0.22); top: -80px; right: -60px; }
.blob.b { width: 300px; height: 300px; background: rgba(14,143,98,0.18); bottom: -40px; left: -80px; }

/* ============================================================
   LOGO WALL
   ============================================================ */
.logos { padding: 38px 0 10px; }
.logos p { text-align: center; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 26px; font-family: var(--mono); }
.logo-row { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.logo-row .logo { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--ink); opacity: 0.46; letter-spacing: -0.01em; transition: opacity 0.3s; display: flex; align-items: center; gap: 7px; }
.logo-row .logo:hover { opacity: 0.9; }
.logo-row .logo svg { width: 20px; height: 20px; }

/* ============================================================
   SHIFT / PROBLEM
   ============================================================ */
.shift { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); }
.shift-inner { padding: clamp(54px, 7vw, 92px) clamp(28px, 6vw, 80px); }
.shift .eyebrow { color: var(--gold); }
.shift .eyebrow::before { background: var(--gold); }
.shift-top { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.shift h2 { color: var(--cream); }
.shift-top p { color: rgba(250,246,238,0.7); }
.shift-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat { border-top: 1px solid var(--line-light); padding-top: 22px; }
.stat b { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.4rem); display: block; line-height: 1; color: #fff; }
.stat b .u { color: var(--coral); }
.stat span { display: block; margin-top: 12px; color: rgba(250,246,238,0.66); font-size: 0.95rem; max-width: 30ch; }

/* ============================================================
   FEATURES
   ============================================================ */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature.span2 { grid-column: span 2; display: grid; grid-template-columns: 1fr 0.9fr; gap: 34px; align-items: center; }
.feat-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--cream-2); margin-bottom: 22px; color: var(--ink);
}
.feat-icon svg { width: 25px; height: 25px; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
.feat-tag { position: absolute; top: 26px; right: 26px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald-deep); background: rgba(14,143,98,0.1); padding: 0.35em 0.7em; border-radius: 100px; }

/* mini bar chart in span feature */
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.mini-chart .bar { flex: 1; background: var(--sand); border-radius: 6px 6px 0 0; position: relative; transition: height 1s var(--ease); }
.mini-chart .bar.on { background: linear-gradient(var(--coral), var(--coral-deep)); }
.mini-chart .bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 0.62rem; color: var(--ink-soft); }

/* ============================================================
   GEO ENGINES BAND
   ============================================================ */
.engines { background: var(--cream-2); }
.engines-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.engine-list { display: grid; gap: 14px; }
.engine {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.engine:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.engine .e-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; font-family: var(--mono); font-size: 1.1rem; }
.engine .e-name { font-weight: 700; font-size: 1.02rem; }
.engine .e-sub { font-size: 0.85rem; color: var(--ink-soft); }
.engine .e-stat { margin-left: auto; text-align: right; }
.engine .e-stat b { font-family: var(--display); font-size: 1.35rem; color: var(--emerald-deep); }
.engine .e-stat span { display: block; font-size: 0.72rem; color: var(--ink-soft); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--coral);
  border-top: 2px solid var(--coral); padding-top: 14px; display: block; width: 100%;
}
.step h3 { margin: 14px 0 10px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { background: var(--ink); color: var(--cream); }
.quotes .eyebrow { color: var(--gold); }
.quotes .eyebrow::before { background: var(--gold); }
.quotes h2 { color: var(--cream); }
.quote-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; margin-top: 48px; }
.quote { border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.quote.feature-q { background: var(--coral); border-color: var(--coral); color: #fff; }
.quote p { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: auto; }
.quote.feature-q p { font-size: 1.5rem; }
.q-author { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.q-author .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.q-author b { display: block; font-size: 0.92rem; }
.q-author span { font-size: 0.82rem; opacity: 0.7; }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.popular { background: var(--ink); color: var(--cream); border-color: var(--ink); position: relative; }
.plan.popular .plan-name, .plan.popular h3 { color: var(--cream); }
.plan-name { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-deep); margin-bottom: 14px; }
.plan.popular .plan-name { color: var(--gold); }
.plan .price { font-family: var(--display); font-size: 3rem; line-height: 1; margin-bottom: 6px; }
.plan .price small { font-size: 1rem; font-family: var(--sans); color: var(--ink-soft); font-weight: 500; }
.plan.popular .price small { color: rgba(250,246,238,0.6); }
.plan .price-sub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 26px; }
.plan.popular .price-sub { color: rgba(250,246,238,0.65); }
.plan ul { display: grid; gap: 13px; margin: 8px 0 30px; }
.plan li { display: flex; gap: 11px; font-size: 0.94rem; align-items: flex-start; }
.plan li svg { width: 19px; height: 19px; flex: none; color: var(--emerald); margin-top: 1px; }
.plan.popular li svg { color: var(--gold); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.badge-pop { position: absolute; top: 22px; right: 22px; background: var(--coral); color: #fff; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4em 0.7em; border-radius: 100px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; text-align: left; font-family: var(--display); font-size: 1.18rem; font-weight: 500; color: var(--ink); }
.faq-q .ic { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.faq-q .ic::before { width: 11px; height: 1.5px; }
.faq-q .ic::after { width: 1.5px; height: 11px; }
.faq-item.open .faq-q .ic { background: var(--coral); border-color: var(--coral); transform: rotate(135deg); }
.faq-item.open .faq-q .ic::before, .faq-item.open .faq-q .ic::after { background: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { padding-bottom: 24px; color: var(--ink-soft); font-size: 0.98rem; max-width: 60ch; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band { text-align: center; }
.cta-box {
  background: var(--coral); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(54px, 7vw, 96px) clamp(28px, 5vw, 60px); position: relative; overflow: hidden;
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); }
.cta-box::before { width: 520px; height: 520px; top: -260px; left: -120px; }
.cta-box::after { width: 420px; height: 420px; bottom: -260px; right: -80px; }
.cta-box h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-bottom: 18px; position: relative; }
.cta-box p { color: rgba(255,255,255,0.88); max-width: 50ch; margin: 0 auto 32px; position: relative; }
.cta-box .hero-actions { justify-content: center; position: relative; }
.cta-box .btn-light { background: #fff; }
.cta-note { margin-top: 22px; font-size: 0.85rem; color: rgba(255,255,255,0.8); position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding: clamp(60px, 7vw, 96px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer .brand { color: var(--cream); margin-bottom: 18px; }
.footer-about p { color: rgba(250,246,238,0.6); font-size: 0.92rem; max-width: 32ch; margin-bottom: 22px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border: 1px solid var(--line-light); border-radius: 10px; display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.foot-social a:hover { background: var(--coral); border-color: var(--coral); }
.foot-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,246,238,0.5); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(250,246,238,0.78); transition: color 0.25s; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.85rem; color: rgba(250,246,238,0.5); }
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a { font-size: 0.85rem; color: rgba(250,246,238,0.5); }
.footer-bottom .legal a:hover { color: var(--cream); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid, .shift-top, .engines-grid, .faq-grid, .feature.span2 { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; }
  .feature-grid, .steps-grid, .quote-grid, .price-grid, .shift-stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 16px 22px; gap: 4px; box-shadow: var(--shadow);
  }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-cta .signin { display: none; }
  .float-card.rank { left: 0; bottom: -18px; }
  .float-card.score { right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-about { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SUBPAGES (content / legal / solutions / contact)
   ============================================================ */
/* Subpages have light heros, so keep nav legible from the top */
body.sub .nav { background: rgba(250, 246, 238, 0.85); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }

.subhero { padding: clamp(64px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.subhero .blob.a { top: -120px; }
.breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span { opacity: 0.5; }
.subhero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 18ch; margin-bottom: 20px; }
.subhero .lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); }

.page-section { padding: clamp(40px, 6vw, 80px) 0; }
.page-section.alt { background: var(--cream-2); }

/* Prose */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 44px; }
.prose h3 { font-size: 1.28rem; margin-top: 30px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--coral-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--coral); }
ul.bullets { display: grid; gap: 12px; padding-left: 2px; }
ul.bullets li { display: flex; gap: 12px; color: var(--ink-soft); }
ul.bullets li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-top: 9px; flex: none; }
.prose blockquote { border-left: 3px solid var(--coral); padding: 6px 0 6px 22px; font-family: var(--display); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }

/* Generic card grids (blog, case studies, solutions, team, jobs) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-deep); margin-bottom: 12px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 18px; }
.card .more { margin-top: auto; font-weight: 600; color: var(--coral-deep); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card:hover .more { gap: 10px; }
.card .metric { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--ink); margin-bottom: 4px; }
.card .metric .u { color: var(--coral); }

/* Solutions feature rows */
.sol { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(32px,4vw,52px) 0; border-top: 1px solid var(--line); }
.sol:nth-child(even) .sol-media { order: -1; }
.sol-media { background: var(--ink); border-radius: var(--radius-lg); min-height: 240px; display: grid; place-items: center; color: var(--cream); padding: 30px; }
.sol-media .big { font-family: var(--display); font-size: clamp(2.4rem,4vw,3.4rem); }
.sol h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 14px; }
.sol p { color: var(--ink-soft); margin-bottom: 18px; }

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: start; }
.contact-info .ci { margin-bottom: 26px; }
.contact-info h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; font-weight: 500; }
.contact-info p, .contact-info a { font-size: 1.05rem; }
.contact-info a { color: var(--coral-deep); font-weight: 600; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8em 0.95em; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,90,60,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }

/* Partner highlight (gonomi) */
.partner-hero { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(40px,5vw,64px); display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.partner-hero h2 { color: var(--cream); font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: 14px; }
.partner-hero p { color: rgba(250,246,238,0.72); max-width: 52ch; }
.partner-hero .btn { white-space: nowrap; }

/* CTA strip reused on subpages */
.mini-cta { text-align: center; }
.mini-cta h2 { font-size: clamp(1.8rem,3.4vw,2.8rem); margin-bottom: 16px; }
.mini-cta p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 26px; }
.mini-cta .hero-actions { justify-content: center; }

@media (max-width: 940px) {
  .card-grid, .card-grid.two, .sol, .contact-grid, .partner-hero { grid-template-columns: 1fr; }
  .sol:nth-child(even) .sol-media { order: 0; }
  .partner-hero { gap: 24px; }
}
