/* ============================================================
   TEND — marketing site
   Aesthetic: warm editorial "blueprint sheet" · bordered/bento
   Type: Fraunces (display) · Hanken Grotesk (body) · JetBrains Mono (labels)
   ============================================================ */

:root {
  /* paper & ink */
  --paper: #e9e2d2;          /* page behind the sheet */
  --sheet: #f6f1e7;          /* the sheet itself */
  --card: #fbf8f1;           /* raised cards */
  --panel: #efe8d9;          /* recessed panels */
  --ink: #1c1813;            /* near-black espresso */
  --ink-soft: #544c3d;       /* body text */
  --ink-faint: #8c8473;      /* captions / mono labels */

  /* lines */
  --line: rgba(28, 24, 19, 0.14);
  --line-2: rgba(28, 24, 19, 0.28);
  --frame: rgba(28, 24, 19, 0.55);

  /* ember accent */
  --accent: #d6502b;
  --accent-deep: #b63f1f;
  --accent-soft: #f4dccf;
  --on-accent: #fcf7ef;

  /* category hues (soft tint bg + readable ink) */
  --c-biz: #3a5a78;     --c-biz-bg: #dde6ee;
  --c-collab: #2f6d5b;  --c-collab-bg: #d8eae2;
  --c-cust: #9c6f1e;    --c-cust-bg: #f0e4c8;
  --c-warn: #b0432b;    --c-warn-bg: #f2dcd3;
  --c-pers: #6a5079;    --c-pers-bg: #e7ddee;
  --c-spam: #6b6457;    --c-spam-bg: #e4ded2;

  /* fonts */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* shape */
  --r-cell: 14px;
  --r: 9px;
  --maxw: 1300px;
  --shadow: 0 1px 0 rgba(28,24,19,.04), 0 18px 40px -28px rgba(28,24,19,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% -10%, rgba(214,80,43,.07), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(58,90,120,.06), transparent 45%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- the framed sheet ---------- */
.sheet {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--sheet);
  min-height: 100vh;
  position: relative;
  overflow: clip;
  /* soft ambient lift instead of the hard "sketched" frame lines */
  box-shadow: 0 0 140px rgba(28, 24, 19, 0.07);
}

/* shared section frame */
.section,
.strip,
.promise,
.cta,
.hero { border-bottom: 1px solid var(--line); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 34px;
  background: color-mix(in oklab, var(--sheet) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--card);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-word {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: -.02em;
}

.nav-links {
  display: flex; gap: 26px;
  margin-left: 14px;
  font-size: .95rem; font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-quiet { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.link-quiet:hover { color: var(--ink); }

.nav-burger {
  display: none; margin-left: auto;
  width: 42px; height: 38px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 9px;
  cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-burger span { width: 18px; height: 1.6px; background: var(--ink); transition: .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: none; margin-top: 10px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --pad-y: 11px; --pad-x: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: .96rem;
  line-height: 1; letter-spacing: -.01em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent-deep); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-solid:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 22px -12px var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--sheet); transform: translateY(-2px); }
.btn-lg { --pad-y: 15px; --pad-x: 26px; font-size: 1.02rem; }
.btn-sm { --pad-y: 8px; --pad-x: 13px; font-size: .85rem; border-radius: 7px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateY(2px); }

/* mono eyebrow / labels */
.eyebrow, .sec-num, .cell-tag, .rail-label, .action-label, .strip-label, .plan-cycle, .draft-foot, .window-meta {
  font-family: var(--f-mono);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 13px; background: var(--card);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(214,80,43,.5);} 70%{box-shadow:0 0 0 7px rgba(214,80,43,0);} 100%{box-shadow:0 0 0 0 rgba(214,80,43,0);} }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 0;
}
.hero-copy {
  padding: 70px 30px 70px 44px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 22px 0 0;
  font-optical-sizing: auto;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-sub {
  font-size: 1.18rem; color: var(--ink-soft);
  max-width: 32ch; margin: 22px 0 0;
}
.hero-caps {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 36ch;
}
.hero-caps li {
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 13px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: border-color .2s, color .2s, transform .2s;
}
.hero-caps li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.hero-caps li:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust {
  font-family: var(--f-mono); font-size: .8rem; color: var(--ink-faint);
  margin-top: 26px; letter-spacing: -.01em;
}
.hero-trust strong { color: var(--accent); font-weight: 500; }

.hero-demo {
  padding: 44px;
  display: grid; place-items: center;
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 30px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 30px 100%;
  background-color: var(--panel);
}

/* ---------- the product window ---------- */
.window {
  width: 100%; max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(28,24,19,.5);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dots i:first-child { background: #d98b7c; }
.window-title { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.window-meta {
  margin-left: auto; font-size: .72rem; color: var(--ink-faint);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px;
}
.window-body { display: grid; grid-template-columns: 0.7fr 1.15fr 1.25fr; }
/* let grid columns shrink to fit the window instead of overflowing */
.window-body > * { min-width: 0; }
.msg-from { min-width: 0; }
.msg-from .chip { flex: none; }

.rail { padding: 14px 12px; border-right: 1px solid var(--line); }
.rail-label { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 9px; }
.rail-label--mt { margin-top: 16px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail li { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink-soft); padding: 5px 7px; border-radius: 7px; }
.rail li b { margin-left: auto; font-weight: 500; color: var(--ink-faint); font-size: .72rem; }
.rail li.active { background: var(--ink); color: var(--sheet); }
.rail li.active b { color: rgba(246,241,231,.6); }
.tag-d { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.tag-biz { background: var(--c-biz); }
.tag-collab { background: var(--c-collab); }
.tag-cust { background: var(--c-cust); }
.tag-pers { background: var(--c-pers); }
.rail-pill { font-size: .72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 7px; padding: 7px 9px; }

.list { border-right: 1px solid var(--line); }
.msg { display: flex; align-items: flex-start; gap: 9px; padding: 12px 12px; border-bottom: 1px solid var(--line); cursor: default; transition: background .2s; }
.msg:hover { background: var(--panel); }
.msg-sel { background: var(--accent-soft); }
.msg-sel:hover { background: var(--accent-soft); }
.urg { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.urg-hi { background: var(--accent); }
.urg-mid { background: var(--c-cust); }
.urg-low { background: var(--c-spam); }
.msg-main { min-width: 0; flex: 1; }
.msg-from { font-size: .8rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 6px; }
.msg-sub { font-size: .76rem; color: var(--ink-soft); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { font-size: .68rem; color: var(--ink-faint); font-family: var(--f-mono); flex: none; }

.chip { font-size: .62rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.chip-biz { background: var(--c-biz-bg); color: var(--c-biz); }
.chip-collab { background: var(--c-collab-bg); color: var(--c-collab); }
.chip-cust { background: var(--c-cust-bg); color: var(--c-cust); }
.chip-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.chip-pers { background: var(--c-pers-bg); color: var(--c-pers); }
.chip-spam { background: var(--c-spam-bg); color: var(--c-spam); }

.read { padding: 13px; display: flex; flex-direction: column; gap: 11px; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 600; color: var(--accent); font-family: var(--f-mono); letter-spacing: .02em; }
.ai-badge--solid { color: var(--ink); }
.ai-spark { width: 10px; height: 10px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); animation: spark 2.4s ease-in-out infinite; }
@keyframes spark { 0%,100%{ opacity:.5; transform: rotate(45deg) scale(.8);} 50%{ opacity:1; transform: rotate(45deg) scale(1.1);} }
.read-summary p { font-size: .82rem; margin: 7px 0 0; color: var(--ink-soft); }
.read-summary strong, .draft-body strong { color: var(--ink); font-weight: 600; }
.read-action { border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 11px; background: var(--sheet); }
.action-label { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px; }
.action-row { display: flex; align-items: center; gap: 10px; }
.action-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: .9rem; flex: none; }
.action-title { font-size: .8rem; font-weight: 600; margin: 0; }
.action-meta { font-size: .72rem; color: var(--ink-faint); margin: 1px 0 0; font-family: var(--f-mono); }
.read-draft { border: 1px solid var(--line-2); border-radius: 10px; padding: 11px; background: var(--sheet); }
.draft-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tone-pills { display: inline-flex; gap: 4px; margin-left: auto; }
.tone { font-size: .64rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-soft); }
.tone.active { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.draft-body { font-size: .8rem; color: var(--ink-soft); margin: 0 0 11px; }
.cursor { color: var(--accent); font-weight: 700; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.draft-foot { display: flex; gap: 8px; }

.demo-tag {
  position: absolute; font-family: var(--f-mono); font-size: .68rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 11px; box-shadow: var(--shadow); white-space: nowrap;
}
.demo-tag::before { content: "✦"; color: var(--accent); margin-right: 6px; }
.demo-tag--a { top: 30px; left: 14px; animation: float 6s ease-in-out infinite; }
.demo-tag--b { bottom: 34px; right: 16px; animation: float 6s ease-in-out infinite .8s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-7px);} }

/* ============================================================
   STRIP
   ============================================================ */
.strip { padding: 26px 34px; text-align: center; background: var(--panel); }
.strip-label { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; font-family: var(--f-display); font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: var(--ink); }
.strip-row i { color: var(--accent); font-size: .7em; font-style: normal; }

/* ============================================================
   SECTIONS (shared head)
   ============================================================ */
.section { padding: 78px 44px; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec-num { display: inline-block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sec-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.sec-title em { font-style: italic; color: var(--ink-soft); }
.sec-lead { font-size: 1.1rem; color: var(--ink-soft); margin: 18px auto 0; max-width: 56ch; }

/* ---------- BENTO ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-cell);
  overflow: hidden;
  background: var(--card);
}
.cell {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .25s;
}
.cell:hover { background: var(--sheet); }
.cell-wide { grid-column: span 2; }
.cell-tall { grid-row: span 2; }
.cell-tag {
  display: inline-block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  border: 1px solid var(--accent-soft); background: var(--accent-soft);
  padding: 4px 9px; border-radius: 6px;
}
.cell h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 9px; }
.cell p { font-size: .98rem; color: var(--ink-soft); margin: 0; max-width: 44ch; }
.cell-accent { background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.cell-accent:hover { background: linear-gradient(135deg, var(--accent-soft), transparent 55%); }

.cell-demo { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.cell-demo--chips .chip { font-size: .74rem; padding: 5px 11px; }
.cell-demo--play { gap: 8px; }
.play-pill { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; }
.cell-demo--search { flex-direction: column; gap: 9px; margin-top: 22px; }
.mini-search { font-family: var(--f-mono); font-size: .82rem; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; }
.mini-k { font-size: .68rem; background: var(--ink); color: var(--sheet); border-radius: 5px; padding: 3px 6px; }
.mini-res { font-size: .82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.mini-res em { color: var(--ink-faint); font-style: normal; font-family: var(--f-mono); font-size: .72rem; margin-left: auto; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-cell); overflow: hidden; background: var(--card); }
.step { padding: 36px 30px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }
.step-num { font-family: var(--f-mono); font-size: 2.6rem; color: var(--accent-soft); font-weight: 500; line-height: 1; display: block; margin-bottom: 16px; -webkit-text-stroke: 1px var(--accent); }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; margin: 0 0 8px; letter-spacing: -.015em; }
.step p { font-size: .98rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   PROMISE
   ============================================================ */
.promise { padding: 78px 44px; background: var(--ink); color: var(--sheet); position: relative; }
.promise::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(246,241,231,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(246,241,231,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.promise-inner { position: relative; max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.promise .sec-num { color: var(--accent); }
.promise .sec-title { color: var(--sheet); }
.promise .sec-title em { color: var(--accent-soft); }
.promise .sec-lead { color: rgba(246,241,231,.72); margin-left: 0; }
.meter-card { background: rgba(246,241,231,.06); border: 1px solid rgba(246,241,231,.16); border-radius: var(--r-cell); padding: 24px; backdrop-filter: blur(4px); }
.meter-top { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: rgba(246,241,231,.8); }
.meter-plan { font-family: var(--f-mono); font-size: .72rem; border: 1px solid rgba(246,241,231,.3); border-radius: 6px; padding: 3px 9px; }
.meter-bar { height: 12px; background: rgba(246,241,231,.12); border-radius: 999px; margin: 16px 0 12px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #e8a07e); width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.meter-foot { display: flex; justify-content: space-between; font-size: .85rem; color: rgba(246,241,231,.7); }
.meter-foot b { color: var(--sheet); font-weight: 600; }
.meter-ok { color: #9fd0a8; }
.meter-note { font-family: var(--f-mono); font-size: .72rem; color: rgba(246,241,231,.5); margin: 16px 0 0; line-height: 1.5; }

/* ============================================================
   PRICING
   ============================================================ */
.billing-toggle { display: inline-flex; gap: 4px; margin-top: 26px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; }
.bt-opt { font-family: var(--f-body); font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: transparent; border: none; border-radius: 999px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .2s; }
.bt-opt.active { background: var(--ink); color: var(--sheet); }
.bt-save { font-family: var(--f-mono); font-size: .64rem; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 2px 7px; }
.bt-opt.active .bt-save { background: var(--accent); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-cell); overflow: hidden; background: var(--card); }
.plan { padding: 30px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.plan:last-child { border-right: none; }
.plan-featured { background: var(--sheet); }
.plan-featured::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--accent); pointer-events: none; }
.plan-badge { position: absolute; top: 0; right: 18px; transform: translateY(-50%); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 4px 10px; border-radius: 999px; }
.plan-name { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; margin: 0; }
.plan-tag { font-size: .85rem; color: var(--ink-faint); margin: 3px 0 0; }
.plan-price { margin: 22px 0 0; display: flex; align-items: baseline; gap: 3px; }
.plan-price .amount { font-family: var(--f-display); font-weight: 600; font-size: 2.9rem; letter-spacing: -.03em; line-height: 1; }
.plan-price .per { font-size: .95rem; color: var(--ink-faint); }
.plan-cycle { font-size: .74rem; color: var(--ink-faint); margin: 6px 0 20px; }
.plan-feats { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; font-size: .9rem; color: var(--ink-soft); }
.plan-feats li { position: relative; padding-left: 22px; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--accent); font-weight: 700; }
.plan-feats li b { color: var(--ink); }
.plan-feats li.muted { color: var(--ink-faint); font-family: var(--f-mono); font-size: .76rem; padding-left: 22px; }
.plan-feats li.muted::before { content: "≈"; color: var(--ink-faint); }
.plans-note { text-align: center; font-size: .9rem; color: var(--ink-faint); margin: 22px auto 0; max-width: 60ch; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: var(--r-cell); overflow: hidden; background: var(--card); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-mk { position: relative; width: 16px; height: 16px; flex: none; }
.faq-mk::before, .faq-mk::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-mk::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-mk::after { top: 0; left: 7px; width: 2px; height: 16px; transition: transform .25s; }
.faq-item[open] .faq-mk::after { transform: rotate(90deg) scaleX(0); }
.faq-item p { margin: 0; padding: 0 26px 24px; color: var(--ink-soft); font-size: 1rem; max-width: 64ch; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 90px 44px; text-align: center; background:
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 60%), var(--sheet); }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.025em; line-height: 1; margin: 0; }
.cta-sub { font-size: 1.12rem; color: var(--ink-soft); margin: 20px auto 30px; max-width: 50ch; }
.cta-fine { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-faint); margin-top: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding: 56px 44px 30px; }
.foot-brand p { color: var(--ink-faint); font-family: var(--f-display); font-style: italic; font-size: 1.05rem; margin: 14px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-h { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.foot-cols a { display: block; font-size: .92rem; color: var(--ink-soft); padding: 5px 0; transition: color .2s; }
.foot-cols a:hover { color: var(--accent); }
.foot-base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-faint); }
.foot-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); }
.foot-status i { width: 8px; height: 8px; border-radius: 50%; background: #6fae78; box-shadow: 0 0 0 3px rgba(111,174,120,.18); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
/* hero stagger */
.hero-copy [data-reveal]:nth-child(1) { transition-delay: .05s; }
.hero-copy [data-reveal]:nth-child(2) { transition-delay: .14s; }
.hero-copy [data-reveal]:nth-child(3) { transition-delay: .23s; }
.hero-copy [data-reveal]:nth-child(4) { transition-delay: .32s; }
.hero-copy [data-reveal]:nth-child(5) { transition-delay: .41s; }
.hero-copy [data-reveal]:nth-child(6) { transition-delay: .5s; }
.hero-demo[data-reveal] { transition-delay: .25s; }
/* grids stagger */
.bento .cell:nth-child(2) { transition-delay: .06s; }
.bento .cell:nth-child(3) { transition-delay: .12s; }
.bento .cell:nth-child(4) { transition-delay: .06s; }
.bento .cell:nth-child(5) { transition-delay: .12s; }
.bento .cell:nth-child(6) { transition-delay: .18s; }
.bento .cell:nth-child(7) { transition-delay: .1s; }
.steps .step:nth-child(2), .plans .plan:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3), .plans .plan:nth-child(3) { transition-delay: .16s; }
.plans .plan:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: none; border-bottom: 1px solid var(--line); padding: 56px 30px; }
  .hero-demo { padding: 38px 24px; }
  .promise-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .bento, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .cell-wide, .cell-tall { grid-column: auto; grid-row: auto; }
  .cell { border-right: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section, .promise, .cta { padding: 54px 22px; }
  .hero-copy { padding: 44px 22px; }
  .bento, .steps, .plans { grid-template-columns: 1fr; }
  .window-body { grid-template-columns: 1fr; }
  .rail { display: none; }
  .list { border-right: none; border-bottom: 1px solid var(--line); }
  .strip-row { font-size: 1.2rem; gap: 12px; }
  .nav { padding: 14px 20px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .demo-tag--a { top: 8px; left: 8px; }
  .demo-tag--b { bottom: 10px; right: 8px; }
}
