/* ============================================================
   Aide — sub-brand layer + product visuals
   ------------------------------------------------------------
   Builds on the Corvue Design System:
     colors_and_type.css  (tokens + base typography)
     components.css       (buttons, chips, statuses, sections)
     interactions.css     (.reveal state machine, micro-tx)

   This file only contains:
     1. Aide sub-brand accent override (amber, not DS ember)
     2. AIDE-specific visuals: nav, hero mockup, feature scenes,
        testimonials, steps, pricing card, integrations, CTA, footer.
     3. A small set of layout helpers for the page.

   Nothing here should duplicate DS utilities — if you're about
   to re-declare a button style, status pill, overline, or
   reveal rule, use the DS class instead.
   ============================================================ */


/* ── 1. Sub-brand accent — Aide amber ──────────────────────
   Overrides the DS ember ramp. Everything token-driven in the
   DS (btn-primary hover, focus ring, ::selection, arrow-link,
   section-dark overline, .overline.ember-dash) recolors for free. */
:root {
  --accent-50:  #FBF1E8;
  --accent-100: #F5DEC6;
  --accent-300: #DDA079;
  --accent-500: #C4773B;
  --accent-600: #A8622E;
  --accent-700: #8C4E22;

  --accent:    var(--accent-500);
  --accent-bg: var(--accent-50);
  --accent-fg: #FFFDFA;

  --ring-focus: 0 0 0 3px rgba(196, 119, 59, 0.18);
}

/* A sub-branded "in-progress" pill that matches the amber tone.
   DS `.status.running` is hardcoded to ember; this is the amber
   twin. Use: <span class="status status-amber"><span class="s-dot"></span>Working</span> */
.status.status-amber         { color: var(--accent-700); background: var(--accent-50); border-color: var(--accent-100); }
.status.status-amber .s-dot  { background: var(--accent-500); }


/* ── 2. Typography accents used across sections ────────────
   Serif italic is the single editorial flourish — "one word,
   not a paragraph" per brand. Hero + section headlines reach
   for it via `<em>` inside `.h1` / `.h2` / `.feature-title`. */
.hero h1 em,
.section-headline em,
.feature-title em,
.cta-band h2 em,
.pricing-price .amount,
.step-num,
.brand-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
}


/* ── 3. Layout helpers ─────────────────────────────────────
   Two local containers that match the AIDE page widths.
   Section padding uses the DS `.section` 140 / 112 / 88 rhythm. */
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.container-prose  { max-width:  860px; margin: 0 auto; padding: 0 48px; }

@media (max-width: 1024px) {
  .container-narrow,
  .container-prose { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 680px) {
  .container-narrow,
  .container-prose { padding-left: 20px; padding-right: 20px; }
}


/* ── 4. Nav — DS-approved sticky blur ──────────────────────
   Grid layout gives clean 3-column balance: brand / links / CTA. */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.82);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.nav-cta { justify-self: end; }

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: var(--ls-tight);
  border: none;
  text-decoration: none;
}
.brand-mark::after {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent-500);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-6px);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  color: var(--ink-3);
  border: none;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-2) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-link:hover { color: var(--ink-0); }
.nav-link:hover::after { transform: scaleX(1); }

@media (max-width: 860px) {
  .nav-inner     { grid-template-columns: 1fr auto; }
  .nav-links     { display: none; }
}

/* Footer-sized variant of the brand mark */
.site-footer .brand-mark              { font-size: 22px; margin-bottom: 16px; }
.site-footer .brand-mark::after       { transform: translateY(-5px); width: 4px; height: 4px; }


/* ── 5. Hero ───────────────────────────────────────────────
   One gentle top-centred warmth gradient. No orbs, no particles,
   no breathing. "Subtle protection gradient at edges of hero
   imagery" is the only ambient the brand permits. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 128px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(253, 246, 238, 0.8) 0%, transparent 60%),
    var(--paper-1);
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--ink-0);
  margin: 0 0 28px;
}
.hero h1 .cycle {
  display: inline-block;
  color: var(--ink-0);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.hero h1 .cycle.is-visible { opacity: 1; }

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 44px;
  font-size: var(--fs-20);
  line-height: 1.55;
  color: var(--ink-3);
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  font-size: var(--fs-13);
  color: var(--ink-4);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Hero eyebrow — small bordered pill with amber dot */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero word-by-word entrance — headline only */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-word-reveal 620ms var(--ease-out) forwards;
}
@keyframes hero-word-reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero h1 .cycle { opacity: 1 !important; }
}


/* ── 6. Hero mockup (phone + platform badges) ─────────────── */
.hero-mockup {
  position: relative;
  margin: 72px auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 900px;
  padding: 0 48px;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 300px;
  flex-shrink: 0;
  background: var(--ink-0);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(30, 28, 20, 0.28),
    0 8px 20px rgba(30, 28, 20, 0.16);
}
.phone-screen {
  background: var(--paper-1);
  border-radius: 32px;
  overflow: hidden;
}
.phone-notch {
  width: 90px;
  height: 26px;
  background: var(--ink-0);
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.phone-chat { padding: 10px 14px 16px; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.chat-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-300) 100%);
  color: var(--accent-fg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-name    { font-size: 12px; font-weight: 500; color: var(--ink-1); }
.chat-status  {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.chat-status::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
}

.bubble        { max-width: 85%; margin-bottom: 8px; clear: both; }
.bubble-text   {
  font-size: 11.5px;
  line-height: 1.55;
  padding: 8px 12px;
  border-radius: 16px;
  display: inline-block;
}
.bubble.aide .bubble-text {
  background: var(--paper-2);
  color: var(--ink-1);
  border-bottom-left-radius: 4px;
}
.bubble.user .bubble-text {
  background: var(--accent-500);
  color: var(--accent-fg);
  border-bottom-right-radius: 4px;
  float: right;
}
.bubble.user { text-align: right; }
.bubble-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-4);
  margin-top: 3px;
  display: block;
}
.bubble.user .bubble-time { text-align: right; }

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--paper-2);
  padding: 8px 12px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.typing-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-4);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1;   }
}

/* Platform badges — Lucide-style mono glyphs, no emoji. */
.platform-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.platform-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  animation: badge-fade 600ms var(--ease-out) forwards;
}
.platform-badge svg {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  flex-shrink: 0;
}
@keyframes badge-fade {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.badge-telegram { left:  -10px; top:  80px; animation-delay:  800ms; }
.badge-slack    { left:  -20px; top: 200px; animation-delay: 1000ms; }
.badge-email    { right: -10px; top: 110px; animation-delay: 1150ms; }
.badge-web      { right: -25px; top: 230px; animation-delay: 1300ms; }

@media (prefers-reduced-motion: reduce) {
  .platform-badge { animation: none !important; opacity: 1; transform: none; }
  .typing-dot     { animation: none !important; }
}
@media (max-width: 600px) {
  .hero-mockup { display: none; }
}


/* ── 7. Social proof ───────────────────────────────────────
   Quiet pill row. Desktop: wrap + reveal stagger via DS.
   Mobile: seamless marquee. */
.social-proof {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper-1);
}
.social-proof-label {
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  color: var(--ink-4);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 22px;
}
.company-pill {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper-0);
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.company-pill:hover { opacity: 1; border-color: var(--border-strong); }

.pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pills-marquee {
  overflow: hidden;
  width: 100%;
  display: none;
}
.pills-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 24s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0);      }
  to   { transform: translateX(-50%);   }
}
@media (max-width: 768px) {
  .pills-row     { display: none; }
  .pills-marquee { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .pills-marquee-track { animation: none; }
}


/* ── 8. Section header (shared overline → h2 → accent → lede) */
.section-head {
  text-align: center;
  margin: 0 auto 72px;
  max-width: 56ch;
}
.section-head .overline { display: inline-block; margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
  margin: 0 0 14px;
}
.section-head .section-rule {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent-500);
  margin: 14px auto 0;
  opacity: 0.55;
}
.section-head p.lede { margin: 18px auto 0; max-width: 56ch; }


/* ── 9. Feature scenes (Morning Brief / Chat / Log) ──────── */
.feature-scenes { display: flex; flex-direction: column; gap: 110px; }
.feature-scene  {
  display: flex;
  align-items: center;
  gap: 80px;
}
.feature-scene.reverse { flex-direction: row-reverse; }
.feature-scene > .feature-scene-visual,
.feature-scene > .feature-scene-text { flex: 1; min-width: 0; }

.feature-visual {
  aspect-ratio: 5 / 4;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 40px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow var(--dur-3) var(--ease-out),
              transform  var(--dur-3) var(--ease-out);
}
.feature-visual:hover {
  box-shadow: 0 12px 40px rgba(30, 28, 20, 0.08);
  transform: translateY(-3px);
}

.feature-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.feature-title {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: var(--ls-snugger);
  color: var(--ink-0);
  margin: 0 0 20px;
}
.feature-body {
  font-size: var(--fs-18);
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 32px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 10px;
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--accent-50);
  border: 1px solid var(--accent-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4L3.5 6.5L9 1' fill='none' stroke='%23C4773B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Scene 1 — Morning Brief mock card */
.brief-card {
  background: var(--paper-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(30, 28, 20, 0.04);
  transition: box-shadow var(--dur-4) var(--ease-out);
}
.brief-card.is-glowing {
  box-shadow:
    0 4px 24px rgba(30, 28, 20, 0.04),
    0 0 32px rgba(196, 119, 59, 0.06);
}
.brief-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.brief-head-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); flex-shrink: 0; }
.brief-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brief-section-label { font-size: 13px; font-weight: 500; color: var(--ink-1); margin: 0 0 6px; }
.brief-list { list-style: none; padding: 0; margin: 0 0 16px; }
.brief-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 420ms var(--ease-out),
              transform 420ms var(--ease-out);
}
.brief-item.is-visible { opacity: 1; transform: translateX(0); }
.brief-item:nth-child(1) { transition-delay:  80ms; }
.brief-item:nth-child(2) { transition-delay: 230ms; }
.brief-item:nth-child(3) { transition-delay: 400ms; }
.brief-bullet        { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.brief-bullet.amber  { background: var(--accent-500); }
.brief-bullet.sage   { background: var(--success); }
.brief-bullet.mute   { background: var(--border-strong); }
.brief-footer {
  background: var(--paper-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.brief-footer strong { font-weight: 500; color: var(--ink-1); }

.typing-cursor {
  display: inline-block;
  width: 1.5px; height: 12px;
  background: var(--accent-500);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: cursor-blink 1.1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Scene 2 — Chat sequence */
.chat-scene {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms var(--ease-out),
              transform 380ms var(--ease-out);
}
.chat-bubble.is-visible { opacity: 1; transform: translateY(0); }
.chat-user-msg {
  align-self: flex-end;
  background: var(--accent-500);
  color: var(--accent-fg);
  border-radius: 14px 14px 4px 14px;
  padding: 12px 16px;
  max-width: 78%;
  font-size: 14px;
  line-height: 1.5;
}
.chat-aide-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-content: flex-start;
}
.chat-avatar-sm {
  width: 26px; height: 26px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-500);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}
.chat-aide-msg {
  background: var(--paper-1);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 16px;
  max-width: 78%;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-1);
}
.chat-typing-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.chat-typing-row.is-visible { opacity: 1; }

/* Scene 3 — Activity log */
.log-card {
  background: var(--paper-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(30, 28, 20, 0.04);
}
.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.log-title { font-size: 13px; font-weight: 500; color: var(--ink-1); }
.log-time  { font-size: 12px; color: var(--ink-4); font-family: var(--font-mono); }
.log-list  { display: flex; flex-direction: column; gap: 10px; }

.log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateX(-9px);
  transition: opacity 400ms var(--ease-out),
              transform 400ms var(--ease-out);
}
.log-item.is-visible { opacity: 1; transform: translateX(0); }
.log-item:nth-child(1) { transition-delay:  80ms; }
.log-item:nth-child(2) { transition-delay: 250ms; }
.log-item:nth-child(3) { transition-delay: 450ms; }

.log-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  transform: scale(0);
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.log-dot.is-visible { transform: scale(1); }
.log-dot.dot-sage  { background: var(--success); }
.log-dot.dot-amber { background: var(--accent-500); }

@media (prefers-reduced-motion: no-preference) {
  .log-dot.dot-amber.is-visible {
    animation: amber-pulse 2s ease-in-out infinite 600ms;
  }
}
@keyframes amber-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 119, 59, 0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(196, 119, 59, 0);   }
}

.log-item h5 { font-size: 13px; font-weight: 500; color: var(--ink-1); margin: 0 0 2px; }
.log-item p  { font-size: 12px; color: var(--ink-4); margin: 0; }


/* ── 10. Testimonials ──────────────────────────────────────
   Accent hairline on the left edge. Fan-in uses a custom
   .reveal transform that overrides the DS generic one. */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-left: 3px solid var(--accent-500);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-2) var(--ease-out),
              transform  var(--dur-2) var(--ease-out);
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(30, 28, 20, 0.06);
  transform: translateY(-2px);
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 2px; left: 14px;
  font-family: var(--font-serif);
  font-size: 108px;
  line-height: 1;
  color: rgba(196, 119, 59, 0.08);
  font-weight: 500;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.testimonial-card > * { position: relative; z-index: 1; }
.testimonial-body {
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--ink-1);
  margin: 8px 0 28px;
}
.testimonial-byline {
  border-top: 1px solid var(--paper-3);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-byline .avatar {
  width: 34px; height: 34px;
  background: var(--accent-500);
  color: var(--accent-fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}
.testimonial-byline .name { font-size: 14px; font-weight: 500; color: var(--ink-1); margin: 0 0 2px; }
.testimonial-byline .meta { font-size: 13px; color: var(--ink-4); margin: 0; }

/* Fan-in variant — more specific than DS .reveal, wins. */
@media (prefers-reduced-motion: no-preference) {
  html.js .testimonial-card.reveal             { transform: rotate(-1.2deg) translateY(22px); }
  html.js .testimonial-card.reveal.is-visible  { transform: rotate(0)       translateY(0);    }
}


/* ── 11. How it works (steps) ─────────────────────────────── */
.steps-wrapper { position: relative; }

.steps-connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.steps-connector line {
  stroke: rgba(196, 119, 59, 0.32);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 35;
  stroke-dashoffset: 35;
  transition: stroke-dashoffset 900ms var(--ease-out);
}
.steps-connector line:nth-of-type(1) { transition-delay: 400ms; }
.steps-connector line:nth-of-type(2) { transition-delay: 700ms; }
.steps-connector.is-drawn line { stroke-dashoffset: 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step-card { background: var(--paper-1); padding: 48px 40px 52px; }

.step-num-wrap { position: relative; display: inline-block; }
.step-num {
  font-size: 72px;
  line-height: 1;
  color: var(--border-strong);
  letter-spacing: -0.03em;
}
.step-ping {
  position: absolute;
  top: 50%; left: 0;
  width: 50px; height: 50px;
  margin-top: -25px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 119, 59, 0.22);
  opacity: 0;
  pointer-events: none;
}
.step-ping.is-active { animation: step-ping 2.2s ease-out infinite; }
@keyframes step-ping {
  0%   { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(3);   opacity: 0;   }
}
.step-rule {
  width: 32px; height: 1px;
  background: var(--border);
  margin: 20px 0 24px;
}
.step-heading {
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  color: var(--ink-1);
  letter-spacing: var(--ls-snugger);
  margin: 0 0 14px;
}
.step-body { font-size: 15px; line-height: 1.7; color: var(--ink-3); margin: 0; }

@media (max-width: 860px) {
  .steps-grid      { grid-template-columns: 1fr; }
  .steps-connector { display: none; }
}


/* ── 12. Features grid (2 × 5) ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 28px 32px;
  transition: box-shadow var(--dur-2) var(--ease-out),
              transform  var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out);
}
.feature-card:hover {
  box-shadow: 0 8px 36px rgba(30, 28, 20, 0.06);
  transform: translateY(-2px);
  background: var(--paper-0);
}
.feature-card .icon {
  width: 22px; height: 22px;
  color: var(--ink-1);
  margin-bottom: 18px;
}
.feature-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  color: var(--ink-0);
  letter-spacing: var(--ls-snugger);
  margin: 0 0 10px;
}
.feature-card h4::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 5px; height: 5px;
  background: var(--accent-500);
  border-radius: 50%;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0;
}

@media (max-width: 680px) {
  .features-grid { grid-template-columns: 1fr; }
}


/* ── 13. Integrations ──────────────────────────────────────
   Lucide-style mono pills. Restrained hover. */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink-1);
  transition: border-color var(--dur-2) var(--ease-out),
              background   var(--dur-2) var(--ease-out);
}
.integration-pill:hover {
  border-color: var(--accent-300);
  background: var(--paper-0);
}
.integration-pill svg {
  width: 16px; height: 16px;
  color: var(--ink-2);
  flex-shrink: 0;
}


/* ── 14. Pricing ──────────────────────────────────────────── */
.pricing-annual-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.pricing-annual-note strong { font-weight: 500; color: var(--accent); }
.pricing-annual-note svg { color: var(--accent); flex-shrink: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.pricing-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--dur-2) var(--ease-out),
              transform  var(--dur-2) var(--ease-out);
}
.pricing-card:hover {
  box-shadow: 0 8px 36px rgba(30, 28, 20, 0.06);
  transform: translateY(-2px);
}
.pricing-card.featured {
  background: #FDF8F3;
  border: 1.5px solid var(--accent-300);
  box-shadow: 0 0 40px rgba(196, 119, 59, 0.06);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-500);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-price .amount {
  font-size: 46px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.pricing-price .period { font-size: 14px; color: var(--ink-4); }
.pricing-sub  { font-size: 14px; color: var(--ink-3); margin: 0 0 28px; }
.pricing-rule { width: 100%; height: 1px; background: var(--border); margin-bottom: 28px; }
.pricing-card.featured .pricing-rule { background: var(--accent-100); }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: var(--ink-3);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(229, 224, 216, 0.5);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { width: 12px; height: 10px; flex-shrink: 0; }

.check-path {
  stroke: var(--success);
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 500ms var(--ease-out);
}
.pricing-card.featured .check-path { stroke: var(--accent-500); }
.check-path.is-drawn { stroke-dashoffset: 0; }
.pricing-features li:nth-child(1) .check-path { transition-delay:   0ms; }
.pricing-features li:nth-child(2) .check-path { transition-delay:  80ms; }
.pricing-features li:nth-child(3) .check-path { transition-delay: 160ms; }
.pricing-features li:nth-child(4) .check-path { transition-delay: 240ms; }
.pricing-features li:nth-child(5) .check-path { transition-delay: 320ms; }
.pricing-features li:nth-child(6) .check-path { transition-delay: 400ms; }

.pricing-cta { width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
}


/* ── 15. CTA band (page closer) ─────────────────────────────
   Quiet editorial — no orbs, no watermark. Just a soft
   top-centred warmth and a single primary CTA. */
.cta-band {
  text-align: center;
  padding: 128px 0;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(253, 246, 238, 0.7) 0%, transparent 55%),
    var(--paper-2);
  border-top: 1px solid var(--border);
}
.cta-band .cta-inner { max-width: 680px; margin: 0 auto; padding: 0 48px; }
.cta-band h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--ink-0);
  margin: 0 0 20px;
}
.cta-band p { font-size: var(--fs-18); color: var(--ink-3); margin: 0 0 44px; }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ── 16. Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-1);
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 48px 40px;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.site-footer-copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 240px;
  margin: 0 0 20px;
}
.site-footer h5 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 10px;
  border: none;
  position: relative;
  transition: color var(--dur-2) var(--ease-out);
}
.footer-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--accent-500);
  transition: width var(--dur-2) var(--ease-out);
}
.footer-link:hover { color: var(--ink-0); }
.footer-link:hover::after { width: 100%; }

.site-footer-socials { display: flex; gap: 12px; }
.site-footer-social {
  color: var(--ink-4);
  border: none;
  transition: color var(--dur-2) var(--ease-out);
}
.site-footer-social:hover { color: var(--ink-0); }

.site-footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer-bar p,
.site-footer-bar a {
  font-size: 13px;
  color: var(--ink-4);
  margin: 0;
  border: none;
}
.site-footer-bar a { transition: color var(--dur-2) var(--ease-out); }
.site-footer-bar a:hover { color: var(--ink-1); }

@media (max-width: 860px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}
