/* ============================================================
   Brunch Autopilot — marketing site
   Dark, warm, technical SaaS. Terracotta + sage on near-black.
   ============================================================ */

/* ---- Fonts ---- */
@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5/index.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5/index.css");

:root {
  /* surfaces */
  --bg:          #0a0a0b;
  --bg-2:        #0c0d10;
  --surface:     #121319;
  --surface-2:   #181a22;
  --surface-3:   #1e2029;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --border-3:    rgba(255,255,255,0.18);

  /* text */
  --text:        #f3f0ea;
  --text-2:      #a7a299;
  --text-3:      #6f6a62;
  --text-4:      #4a4640;

  /* accents */
  --terra:       #FFD1C7;
  --terra-2:     #FFD1C7;
  --terra-deep:  #e0a89c;
  --terra-soft:  rgba(255,209,199,0.14);
  --terra-glow:  rgba(255,209,199,0.40);

  --sage:        #8fbf9f;
  --sage-2:      #6fce93;
  --sage-soft:   rgba(111,206,147,0.14);

  --cyan:        #59b6c4;
  --violet:      #8d80d8;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Geist Variable", "Geist", system-ui, -apple-system, sans-serif;
  --mono:  "Geist Mono Variable", "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 140px);
  --radius: 16px;
  --radius-lg: 22px;

  --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%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--terra); color: #11100e; }

/* fine grid backdrop on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* ---- Shared layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; z-index: 1; }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 10px var(--terra-glow);
}

.section-head { max-width: 760px; }
.section-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-2);
  font-size: clamp(17px, 1.5vw, 20px);
  margin-top: 18px;
  max-width: 620px;
  text-wrap: pretty;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 11px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }

.btn-primary {
  background: var(--terra);
  color: #14100d;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px -10px var(--terra-glow);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, var(--terra-2), var(--terra));
  transform: translateX(-101%);
  transition: transform .5s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 16px 38px -12px var(--terra-glow); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--border-3); transform: translateY(-2px); }
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 13px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, #20222b, #101117);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.6);
}
.brand-mark svg { width: 19px; height: 19px; color: var(--text); }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { font-size: 14.5px; color: var(--text-2); padding: 8px 14px; border-radius: 9px; transition: color .25s, background .25s; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta { margin-left: 8px; }

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-2); align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s var(--ease), opacity .3s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8,8,9,0.97);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--pad);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a { font-family: var(--sans); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-nav .btn { margin-top: 24px; align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 150px; padding-bottom: 80px; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 1100px; height: 760px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255,209,199,0.22), rgba(255,209,199,0.06) 38%, transparent 66%);
  filter: blur(8px);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
  padding: 7px 7px 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-2);
  margin-bottom: 28px;
}
.hero-badge b { color: var(--text); font-weight: 500; }
.hero-badge .tag { font-family: var(--mono); font-size: 11px; color: var(--terra-2); background: var(--terra-soft); padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em; }

.hero h1, .hero-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(36px, 7.2vw, 76px);
  line-height: 0.94; letter-spacing: -0.04em;
  margin: 0; text-wrap: balance; color: #fff;
}
.hero h1 em, .hero-title em { font-style: normal; color: var(--terra-2); }
.hero-sub { color: var(--text-2); font-size: clamp(14px, 1.7vw, 17px); margin-top: 26px; max-width: 540px; text-wrap: pretty; }

.typeline { font-family: var(--mono); font-size: 14px; color: var(--text-3); margin-top: 26px; display: flex; align-items: center; gap: 10px; min-height: 22px; }
.typeline .tw { color: var(--text); }
.typeline .caret { display: inline-block; width: 8px; height: 17px; background: var(--terra); transform: translateY(2px); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 11px; margin-top: 34px; font-size: 14px; color: var(--text-2); }

/* live pulse */
.pulse { position: relative; width: 9px; height: 9px; flex: none; }
.pulse i { position: absolute; inset: 0; border-radius: 50%; background: var(--sage-2); box-shadow: 0 0 10px rgba(111,206,147,0.7); }
.pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sage-2); animation: ripple 2.2s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; } .typeline .caret { animation: none; } }

/* hero visual */
.hero-visual { position: relative; z-index: 1; perspective: 1600px; }
.browser {
  position: relative; z-index: 1;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-2);
  background: #0d0e12;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03), 0 0 80px -30px var(--terra-glow);
  transform: rotateY(-9deg) rotateX(3deg) rotate(0.4deg);
  transform-origin: center;
  will-change: transform;
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #15161c; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #34363e; }
.browser-bar .url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-3); background: #0e0f13; padding: 4px 12px; border-radius: 6px; flex: 1; max-width: 280px; }
.browser img { width: 100%; height: auto; display: block; }

/* floating activity feed cards behind hero visual */
.feed { position: absolute; inset: -40px -90px -40px -50px; z-index: 3; pointer-events: none; }
.feed-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 12px;
  background: rgba(20,21,27,0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.8);
  font-size: 13px; color: var(--text); white-space: nowrap;
  opacity: 0;
}
.feed-card .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.feed-card .dot.s { background: var(--sage-2); box-shadow: 0 0 8px rgba(111,206,147,0.7); }
.feed-card .dot.t { background: var(--terra-2); box-shadow: 0 0 8px var(--terra-glow); }
.feed-card .dot.c { background: var(--cyan); box-shadow: 0 0 8px rgba(89,182,196,0.7); }
.feed-card small { font-family: var(--mono); color: var(--text-3); font-size: 11px; }
@keyframes float-up {
  0%   { opacity: 0; transform: translateY(34px) scale(0.96); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  82%  { opacity: 1; transform: translateY(-28px) scale(1); }
  100% { opacity: 0; transform: translateY(-54px) scale(0.97); }
}
.feed-card.anim { animation: float-up var(--dur, 7s) var(--ease) infinite; animation-delay: var(--delay, 0s); }
@media (prefers-reduced-motion: reduce) { .feed-card.anim { animation: none; opacity: 1; } }

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); padding: 26px 0; overflow: hidden; }
.proof-track { display: flex; align-items: center; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.proof-track .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-4); }
.proof-track b { color: var(--text); font-weight: 500; }
.proof-track .flag { color: var(--terra-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.fcard {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
  overflow: hidden;
}
.fcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(255,209,199,0.10), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.fcard:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.fcard:hover::after { opacity: 1; }
.fcard-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--terra-2); margin-bottom: 22px; }
.fcard-icon svg { width: 22px; height: 22px; }
.fcard h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.fcard p { color: var(--text-2); font-size: 15px; margin-top: 10px; line-height: 1.55; text-wrap: pretty; }

/* ============================================================
   DASHBOARD SHOWCASE
   ============================================================ */
.showcase { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.showcase-head { text-align: center; max-width: 720px; margin: 0 auto; }
.showcase-head .eyebrow { justify-content: center; }
.showcase-frame { position: relative; margin: 56px auto 0; max-width: 1080px; }
.showcase-frame .browser { transform: none; box-shadow: 0 50px 120px -50px rgba(0,0,0,0.9), 0 0 90px -36px var(--terra-glow); }

/* floating metric chips & notifications over showcase */
.sc-float { position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(18,19,25,0.86); backdrop-filter: blur(12px); border: 1px solid var(--border-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.85); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .sc-float { opacity: 0; transform: translateY(14px); }
.sc-float.in { opacity: 1; transform: none; }
.sc-float .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.sc-float .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sc-float .val { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.sc-revenue { top: -28px; left: -24px; }
.sc-revenue .ico { background: var(--sage-soft); color: var(--sage-2); }
.sc-revenue .val { color: var(--sage-2); }
.sc-roas { bottom: 64px; left: -34px; }
.sc-roas .ico { background: rgba(141,128,216,0.16); color: var(--violet); }
.sc-report { top: 40px; right: -28px; max-width: 250px; }
.sc-report .ico { background: var(--terra-soft); color: var(--terra-2); }
.sc-report .val { font-size: 14px; font-weight: 600; }
.sc-report small { display: block; color: var(--text-2); font-size: 12px; font-weight: 400; margin-top: 2px; }
.sc-alert { bottom: -22px; right: 40px; max-width: 290px; border-color: rgba(111,206,147,0.3); }
.sc-alert .ico { background: var(--sage-soft); color: var(--sage-2); }
.sc-alert .val { font-size: 13.5px; font-weight: 600; }
.sc-alert small { display: block; color: var(--text-2); font-size: 12px; font-weight: 400; margin-top: 2px; }

.showcase-callouts { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 60px; }
.callout { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); padding: 11px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.callout svg { width: 16px; height: 16px; color: var(--terra-2); flex: none; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; gap: 18px; margin-top: 60px; }
.step {
  display: grid; grid-template-columns: 150px 1fr; gap: 36px; align-items: start;
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.step:hover { border-color: var(--border-2); background: var(--surface-2); }
.step-num { font-family: var(--sans); font-size: clamp(56px, 8vw, 92px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--border-3); font-weight: 700; letter-spacing: -0.03em; }
.step:hover .step-num { -webkit-text-stroke: 1px var(--terra); transition: -webkit-text-stroke .5s; }
.step-body h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.step-body p { color: var(--text-2); font-size: 16px; margin-top: 12px; max-width: 620px; line-height: 1.6; text-wrap: pretty; }
.step-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra-2); margin-bottom: 14px; display: block; }

/* ============================================================
   WEEKLY RHYTHM (pinned)
   ============================================================ */
.rhythm { position: relative; height: 320vh; }
.rhythm-pin { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rhythm-head { max-width: 760px; margin-bottom: clamp(28px, 4vh, 48px); }
.rhythm-progress { height: 2px; background: var(--border); border-radius: 2px; margin: 22px 0 4px; position: relative; overflow: hidden; }
.rhythm-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--terra), var(--terra-2)); border-radius: 2px; transition: width .25s linear; }
.rhythm-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rcard {
  position: relative; padding: 30px 26px; border-radius: var(--radius); min-height: 320px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s, background .5s, box-shadow .5s, opacity .5s;
  opacity: 0.4; overflow: hidden;
}
.rcard .ghost { position: absolute; right: 14px; bottom: -14px; font-family: var(--sans); font-size: 72px; line-height: 1; color: rgba(255,255,255,0.035); font-weight: 700; letter-spacing: -0.04em; pointer-events: none; }
.rcard.active { opacity: 1; border-color: var(--terra); background: var(--surface-2); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.8), 0 0 60px -30px var(--terra-glow); transform: translateY(-6px); }
.rcard.active .ghost { color: rgba(255,209,199,0.12); }
.rcard .cadence { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.rcard.active .cadence { color: var(--terra-2); }
.rcard .rbadge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 18px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); }
.rcard .rbadge svg { width: 14px; height: 14px; color: var(--text-2); }
.rcard.active .rbadge svg { color: var(--terra-2); }
.rcard h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 20px; }
.rcard p { color: var(--text-2); font-size: 14.5px; margin-top: auto; padding-top: 18px; line-height: 1.55; position: relative; z-index: 1; }
.rhythm-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-4); margin-top: 22px; text-align: center; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; align-items: stretch; }
.pcard {
  position: relative; padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--border-2); }
.pcard.featured { background: var(--surface-2); }

/* shimmer glow border on featured */
.pcard.featured { border-color: transparent; }
.pcard.featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0;
  background: conic-gradient(from var(--ang, 0deg), var(--terra-deep), var(--terra-2), var(--sage), var(--terra-2), var(--terra-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .pcard.featured::before { animation: none; } }
.pcard.featured > * { position: relative; z-index: 1; }
.pcard.featured > .pbadge { position: absolute; }

.pbadge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: var(--terra); color: #14100d; font-weight: 600; box-shadow: 0 8px 22px -10px var(--terra-glow); }
.ptier { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--text); }
.ptier small { display: block; font-weight: 400; color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.pprice { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.pprice .amt { font-family: var(--sans); font-size: 44px; font-weight: 700; letter-spacing: -0.04em; }
.pprice .per { color: var(--text-3); font-size: 15px; }
.pprice .from { font-size: 13px; color: var(--text-3); margin-right: 2px; align-self: center; }
.pdesc { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin-bottom: 24px; min-height: 90px; text-wrap: pretty; }
.pcard .btn { width: 100%; justify-content: center; margin-bottom: 26px; }
.pfeatures { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.pfeatures li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-2); line-height: 1.4; }
.pfeatures li svg { width: 17px; height: 17px; flex: none; color: var(--sage-2); margin-top: 1px; }
.pfeatures li.head { color: var(--text); font-weight: 500; }
.pfeatures li.head svg { color: var(--terra-2); }
.pricing-note { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 32px; }

/* ============================================================
   SECURITY / TRUST
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.tcard { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s; }
.tcard:hover { transform: translateY(-4px); border-color: var(--border-2); }
.tcard-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-soft); border: 1px solid rgba(111,206,147,0.2); color: var(--sage-2); margin-bottom: 22px; }
.tcard-icon svg { width: 22px; height: 22px; }
.tcard h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.tcard p { color: var(--text-2); font-size: 15px; margin-top: 12px; line-height: 1.6; text-wrap: pretty; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 56px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); transition: color .25s; }
.faq-q:hover { color: var(--terra-2); }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--terra-2); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 24px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; max-width: 90%; opacity: 0; transition: opacity .4s var(--ease); text-wrap: pretty; }
.faq-item.open .faq-a-inner { opacity: 1; }

/* ============================================================
   FOOTER CTA + FOOTER
   ============================================================ */
.cta { position: relative; text-align: center; overflow: hidden; border-top: 1px solid var(--border); }
.cta-glow { position: absolute; left: 50%; bottom: -260px; transform: translateX(-50%); width: 1000px; height: 600px; background: radial-gradient(ellipse at center, rgba(255,209,199,0.24), transparent 64%); pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(36px, 6vw, 72px); line-height: 1.0; letter-spacing: -0.04em; max-width: 880px; margin: 0 auto; text-wrap: balance; }
.cta p { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); margin: 22px auto 0; max-width: 560px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--text-2); font-size: 14.5px; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14.5px; padding: 6px 0; transition: color .25s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.footer-bottom .status { display: flex; align-items: center; gap: 9px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.js .reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-l.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* hero entrance — transform-only so content is never hidden (capture/print safe) */
@keyframes heroRise { from { transform: translateY(16px); } to { transform: none; } }
.js .hero-copy > *, .js .hero-visual { animation: heroRise .9s var(--ease) backwards; }
.js .hero-copy > *:nth-child(1) { animation-delay: .02s; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .14s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .20s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .26s; }
.js .hero-copy > *:nth-child(6) { animation-delay: .32s; }
.js .hero-visual { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .js .hero-copy > *, .js .hero-visual { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 560px; }
  .browser { transform: rotateY(-6deg) rotateX(2deg); }
  .features-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .rhythm-track { grid-template-columns: repeat(3, 1fr); }
  .rcard:nth-child(4), .rcard:nth-child(5) { display: none; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .pcard.featured { order: -1; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 28px; }
  .step-num { font-size: 56px; }
  /* unpin rhythm on small screens — stack cards */
  .rhythm { height: auto; }
  .rhythm-pin { position: static; height: auto; min-height: 0; padding: var(--section-y) 0; }
  .rhythm-track { grid-template-columns: 1fr; }
  .rcard { min-height: 0; opacity: 1; }
  .rcard:nth-child(4), .rcard:nth-child(5) { display: flex; }
  .rcard.active { transform: none; }
  .rhythm-progress, .rhythm-hint { display: none; }
}
@media (max-width: 560px) {
  .features-grid, .trust-grid { grid-template-columns: 1fr; }
  .sc-float { display: none; }
  .hero-cta .btn, .cta-buttons .btn { flex: 1; justify-content: center; }
  .showcase-frame .browser { border-radius: 12px; }
  .hero h1, .hero-title { font-size: clamp(32px, 9vw, 46px); }
  .hero-sub { max-width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero { padding-top: 100px; padding-bottom: 50px; }
}

/* ============================================================
   LIGHT THEME (tweakable)
   ============================================================ */
body { transition: background-color .45s var(--ease), color .45s var(--ease); }

html[data-theme="light"] {
  --bg:          #faf8f3;
  --bg-2:        #f2efe7;
  --surface:     #ffffff;
  --surface-2:   #fbf9f4;
  --surface-3:   #f1ede5;
  --border:      rgba(20,17,13,0.09);
  --border-2:    rgba(20,17,13,0.14);
  --border-3:    rgba(20,17,13,0.22);

  --text:        #1a160f;
  --text-2:      #5f5a4f;
  --text-3:      #8c867a;
  --text-4:      #bcb6aa;

  /* deepen accents so they stay legible on a light ground */
  --terra-2:     #c2613a;
  --terra-deep:  #a84e2b;
  --terra-soft:  rgba(194,97,58,0.12);
  --terra-glow:  rgba(255,209,199,0.55);

  --sage:        #4f9269;
  --sage-2:      #2f9e63;
  --sage-soft:   rgba(47,158,99,0.12);
}

/* dark page grid lines -> faint dark on light */
html[data-theme="light"] body::before {
  background-image:
    linear-gradient(to right, rgba(20,17,13,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,17,13,0.04) 1px, transparent 1px);
}
html[data-theme="light"] .nav.scrolled {
  background: rgba(250,248,243,0.78);
  border-bottom-color: var(--border);
}
html[data-theme="light"] .mobile-nav { background: rgba(250,248,243,0.97); }
html[data-theme="light"] .btn-ghost { background: rgba(20,17,13,0.02); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(20,17,13,0.05); }
html[data-theme="light"] .brand-mark { background: linear-gradient(150deg, #ffffff, #f0ece4); }

/* dark-chrome components (product screenshot frame + floating cards) stay
   dark surfaces over the dark dashboard image — keep their text light */
html[data-theme="light"] .browser-bar .url { color: #8a857c; }
html[data-theme="light"] .feed-card { color: #f3f0ea; background: rgba(20,21,27,0.86); border-color: rgba(255,255,255,0.12); }
html[data-theme="light"] .feed-card small { color: rgba(255,255,255,0.5); }
html[data-theme="light"] .sc-float { color: #f3f0ea; background: rgba(18,19,25,0.9); border-color: rgba(255,255,255,0.12); }
html[data-theme="light"] .sc-float .lbl { color: rgba(255,255,255,0.55); }
html[data-theme="light"] .sc-report small,
html[data-theme="light"] .sc-alert small { color: rgba(255,255,255,0.6); }
html[data-theme="light"] .rcard .ghost { color: rgba(20,17,13,0.05); }

/* ============================================================
   MOTION TWEAK (animations on/off)
   ============================================================ */
html.no-anim *, html.no-anim *::before, html.no-anim *::after {
  animation: none !important;
  transition: none !important;
}

/* ============================================================
   ABOUT / FOUNDER
   ============================================================ */
.about { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(40px, 6vw, 92px); align-items: center; }
.about-copy { max-width: 640px; }
.about-copy h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -0.035em;
  margin-top: 18px; text-wrap: balance;
}
.about-copy h2 em { font-style: normal; color: var(--terra); }
.about-body { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.about-body p { color: var(--text-2); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.about-body p strong { color: var(--text); font-weight: 500; }
.about-quote { margin-top: 32px; }
.about-quote p {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(20px, 2.2vw, 27px); line-height: 1.35; letter-spacing: -0.01em;
  color: var(--text); text-wrap: balance; max-width: 560px;
}
.about-quote p em { font-style: italic; color: var(--terra); }

.about-aside { display: flex; flex-direction: column; gap: 16px; }
.about-portrait {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2);
  box-shadow: 0 44px 100px -54px rgba(0,0,0,0.92), 0 0 90px -44px var(--terra-glow);
}
.about-portrait image-slot { display: block; width: 100%; height: 100%; }
.about-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.6s ease;
}
.about-video.loaded { opacity: 1; }
/* dark placeholder behind the video — shows if the video is missing/fails */
.about-vid-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,209,199,0.10), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface-3));
}
.about-vid-fallback .avf-mark {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(150deg, #20222b, #101117);
  border: 1px solid var(--border-2);
  position: relative;
}
.about-vid-fallback .avf-mark::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--terra); border-top-color: transparent;
  top: 0; left: 0; right: 0; bottom: 0;
}
.about-vid-fallback .avf-nm {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3);
}
.about-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 46px 22px 20px;
  background: linear-gradient(to top, rgba(8,8,9,0.86), rgba(8,8,9,0.35) 55%, transparent);
  pointer-events: none;
}
.about-cap .nm { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.about-cap .rl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra-2); margin-top: 5px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-stat { padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.about-stat .num { font-family: var(--sans); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; color: var(--terra); line-height: 1; }
.about-stat .lbl { color: var(--text-2); font-size: 12.5px; margin-top: 7px; line-height: 1.4; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-aside { max-width: 440px; }
}
