/* ============================================================
   BusinessBuddy — warm light SaaS redesign
   Palette: warm paper + warm ink + single terracotta accent
   Type: Bricolage Grotesque (display) + Hanken Grotesk (text)
   ============================================================ */

@property --brand {
  syntax: '<color>';
  inherits: true;
  initial-value: #d2603a;
}

:root {
  /* surfaces */
  --paper: #faf6f0;        /* page background, warm off-white */
  --paper-2: #f4ece1;      /* alt sections / chips */
  --surface: #ffffff;      /* cards */
  --ink-panel: #211b15;    /* dark warm panel (pro card, etc.) */

  /* text */
  --ink: #211b15;          /* headings */
  --ink-2: #5d544a;        /* body */
  --ink-3: #938878;        /* muted / captions */
  --on-dark: #f6efe6;      /* text on dark panel */
  --on-dark-2: #b6ab9c;

  /* lines */
  --line: #ece3d6;
  --line-2: #ddd2c2;

  /* accent — terracotta */
  --accent: #d2603a;
  --accent-600: #bd5230;
  --accent-700: #a3441f;
  --accent-100: #f8e8dd;
  --accent-200: #f0d2c1;
  --accent-tint: #fcf2ea;

  /* support */
  --green: #4f9a6a;

  /* radii */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadows — warm, low */
  --sh-sm: 0 1px 2px rgba(50,32,14,0.05), 0 1px 1px rgba(50,32,14,0.03);
  --sh-md: 0 6px 20px rgba(70,44,18,0.07), 0 2px 6px rgba(70,44,18,0.04);
  --sh-lg: 0 24px 56px rgba(70,42,16,0.13), 0 8px 20px rgba(70,42,16,0.06);
  --sh-accent: 0 10px 24px rgba(189,82,48,0.28);

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- icons ---------- */
.ic {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ic-sm { width: 18px; height: 18px; stroke-width: 1.9; }
.ic-lg { width: 30px; height: 30px; stroke-width: 1.6; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn .ic, .btn .ic-sm { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--sh-accent);
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(189,82,48,0.34); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--accent-700);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.18); }

.btn-on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255,255,255,0.22);
}
.btn-on-dark:hover { border-color: rgba(255,255,255,0.5); }

.btn-block { width: 100%; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section { padding: 104px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-2);
}

section[id] { scroll-margin-top: 88px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  padding: 11px 0;
  background: rgba(250,246,240,0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-accent);
}
.brand-mark .brand-glyph { width: 23px; height: 23px; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name b { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .18s ease; position: relative;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 10px 18px; font-size: 15px; }
.nav-login { font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 6px; }
.nav-login:hover { color: var(--accent); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); }
.hamburger .ic { width: 26px; height: 26px; }

.nav-menu { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 96px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(210,96,58,0.13), rgba(210,96,58,0) 62%);
}
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 78%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 7px 14px 7px 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-sm);
  margin-bottom: 26px;
}
.hero-badge .tag {
  background: var(--accent-100); color: var(--accent-700);
  font-weight: 700; font-size: 12px;
  padding: 3px 9px; border-radius: var(--r-pill);
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 66px);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); position: relative; }
.hero h1 .accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.14em;
  background: var(--accent-200);
  border-radius: 4px;
  z-index: -1;
}
.hero-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-reassure {
  display: flex; align-items: center; gap: 18px;
  font-size: 14.5px; color: var(--ink-3); font-weight: 500;
  flex-wrap: wrap;
}
.hero-reassure span { display: inline-flex; align-items: center; gap: 7px; }
.hero-reassure .ic { color: var(--green); }

/* ---- chat mockup (light) ---- */
.chat-stage { position: relative; }
.chat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  max-width: 410px;
  margin-left: auto;
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--surface), var(--paper));
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.chat-avatar .brand-glyph { width: 27px; height: 27px; display: block; }
.chat-id { line-height: 1.3; }
.chat-id .nm { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.chat-id .st { font-size: 12.5px; color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chat-id .st .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(79,154,106,0.18); }
.chat-head .menu { margin-left: auto; color: var(--ink-3); }

.chat-body {
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 11px;
  min-height: 320px;
  background:
    radial-gradient(circle at 18px 18px, var(--line) 1px, transparent 1px) 0 0 / 22px 22px;
  background-color: var(--surface);
}
.msg {
  max-width: 84%;
  padding: 11px 15px;
  font-size: 14.5px; line-height: 1.5;
  border-radius: 16px;
  opacity: 0; transform: translateY(10px) scale(.98);
  transition: opacity .4s ease, transform .4s ease;
}
.msg.visible { opacity: 1; transform: none; }
.msg.bot {
  align-self: flex-start;
  background: var(--paper-2);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
  font-weight: 500;
}
.msg.form {
  align-self: flex-start;
  width: 84%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.msg.form .lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.msg.form input {
  width: 100%; padding: 9px 12px; margin-bottom: 8px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font-family: var(--font-text); font-size: 13.5px; color: var(--ink);
  background: var(--paper);
}
.msg.form input::placeholder { color: var(--ink-3); }
.msg.form .send {
  width: 100%; padding: 9px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-family: var(--font-text);
  font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}

.typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 16px; background: var(--paper-2); border-radius: 16px; border-bottom-left-radius: 5px; opacity: 0; transition: opacity .3s ease; }
.typing.visible { opacity: 1; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: block; animation: bob 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%,60%,100% { transform: translateY(0); opacity:.5; } 30% { transform: translateY(-5px); opacity:1; } }

.chat-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.chat-foot .fake-input {
  flex: 1; font-size: 13.5px; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 14px;
}
.chat-foot .send-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.chat-foot .send-btn .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* floating lead card */
.lead-pop {
  position: absolute;
  left: -34px; bottom: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 11px;
  width: 230px;
  animation: floaty 5s ease-in-out infinite;
}
.lead-pop .ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(79,154,106,0.12); color: var(--green); display: grid; place-items: center; }
.lead-pop .ico .ic { width: 19px; height: 19px; }
.lead-pop .t { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.2; }
.lead-pop .s { font-size: 12px; color: var(--ink-3); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .lead-pop { animation: none; } }

/* ============================================================
   INDUSTRY STRIP
   ============================================================ */
.industries { padding: 30px 0 6px; }
.industries .cap { text-align: center; font-size: 13.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.ind-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ind-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 17px 9px 14px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.ind-chip:hover { transform: translateY(-2px); border-color: var(--accent-200); }
.ind-chip .ic { width: 18px; height: 18px; color: var(--accent); }

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.step {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 26px;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.step-k {
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 8px;
}
.step h3 { font-size: 21px; margin-bottom: 9px; }
.step p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

/* ---- animated step scenes ---- */
.step-vis {
  position: relative; height: 128px; margin-bottom: 16px;
  border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(120% 100% at 82% 0%, rgba(210,96,58,0.07), transparent 58%),
    linear-gradient(165deg, #fff, var(--paper));
}

/* scene 1 — paste code */
.mini-win {
  position: absolute; left: 16px; right: 16px; top: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--sh-md); overflow: hidden;
}
.mw-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mw-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mw-bar i:first-child { background: var(--accent-200); }
.mw-body { padding: 11px 12px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; }
.code-line { display: flex; align-items: center; white-space: nowrap; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: auto; vertical-align: bottom; }
.t-tag { color: var(--accent-700); }
.t-attr { color: #9a7b3c; }
.t-str { color: var(--green); }
.caret { width: 2px; height: 14px; background: var(--accent); margin-left: 2px; flex-shrink: 0; }
.mini-fab {
  position: absolute; right: 13px; bottom: 11px;
  width: 33px; height: 33px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: var(--sh-accent);
}
.mini-fab svg { width: 21px; height: 21px; display: block; }

/* scene 2 — chat */
.vis-chat { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 16px; }
.cbubble { max-width: 76%; padding: 7px 10px; font-size: 11.5px; line-height: 1.3; border-radius: 11px; }
.cbubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: var(--sh-sm); }
.cbubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; font-weight: 500; }
.cbubble.typing { display: flex; gap: 4px; padding: 11px 12px; }
.cbubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

/* scene 3 — lead */
.bell {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-100); border: 1px solid var(--accent-200); color: var(--accent-700);
  display: grid; place-items: center; transform-origin: top center;
}
.bell svg { width: 22px; height: 22px; display: block; }
.bell .ping {
  position: absolute; inset: -1px; border-radius: 14px;
  border: 2px solid var(--accent); opacity: 0;
}
.lead-toast {
  position: absolute; left: 14px; right: 14px; bottom: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--sh-md); padding: 7px 9px;
  display: flex; align-items: center; gap: 9px;
}
.lead-toast .lt-ic { width: 26px; height: 26px; border-radius: 8px; background: rgba(79,154,106,.14); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.lead-toast .lt-ic svg { width: 15px; height: 15px; }
.lead-toast b { font-family: var(--font-display); font-size: 12px; color: var(--ink); display: block; line-height: 1.2; }
.lead-toast small { font-size: 10.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .typed { width: 0; animation: type 4.6s steps(22) infinite; }
  .caret { animation: blink 1s steps(1) infinite; }
  .mini-fab { opacity: 0; transform: scale(.4) translateY(8px); animation: fabpop 4.6s ease infinite; }
  .cbubble { opacity: 0; }
  .vis-chat .c1 { animation: c1 6s ease infinite; }
  .vis-chat .c2 { animation: c2 6s ease infinite; }
  .vis-chat .c3 { animation: c3 6s ease infinite; }
  .cbubble.typing i { animation: dotbob 1.2s ease-in-out infinite; }
  .cbubble.typing i:nth-child(2) { animation-delay: .15s; }
  .cbubble.typing i:nth-child(3) { animation-delay: .3s; }
  .bell { animation: ring 4.4s ease infinite; }
  .bell .ping { animation: ping 4.4s ease infinite; }
  .lead-toast { opacity: 0; transform: translateY(14px); animation: toast 4.4s ease infinite; }
}

@keyframes type { 0% { width: 0; } 42%, 100% { width: 162px; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fabpop {
  0%, 52% { opacity: 0; transform: scale(.4) translateY(8px); }
  60% { opacity: 1; transform: scale(1.1) translateY(0); }
  66%, 92% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(.4) translateY(8px); }
}
@keyframes c1 { 0%, 4% { opacity: 0; transform: translateY(6px); } 11%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes c2 { 0%, 25% { opacity: 0; } 31%, 47% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes c3 { 0%, 51% { opacity: 0; transform: translateY(6px); } 57%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes dotbob { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ring {
  0%, 54%, 100% { transform: translateX(-50%) rotate(0); }
  58% { transform: translateX(-50%) rotate(13deg); }
  62% { transform: translateX(-50%) rotate(-11deg); }
  66% { transform: translateX(-50%) rotate(8deg); }
  70% { transform: translateX(-50%) rotate(-5deg); }
  74% { transform: translateX(-50%) rotate(0); }
}
@keyframes ping {
  0%, 54% { opacity: 0; transform: scale(1); }
  58% { opacity: .6; transform: scale(1); }
  80% { opacity: 0; transform: scale(1.3); }
  100% { opacity: 0; }
}
@keyframes toast {
  0%, 60% { opacity: 0; transform: translateY(14px); }
  68% { opacity: 1; transform: translateY(0); }
  92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--accent-200); }
.feature-ic {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
  border: 1px solid var(--accent-100);
}
.feature h3 { font-size: 19px; margin-bottom: 9px; }
.feature p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

/* ---- branding highlight (full-width) ---- */
.feature-wide {
  grid-column: 1 / -1; margin-top: 2px;
  background: var(--ink-panel); border: 1px solid var(--ink-panel);
  border-radius: var(--r-lg); padding: 42px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  box-shadow: var(--sh-md); overflow: hidden; position: relative;
}
.feature-wide::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 100% 0%, rgba(210,96,58,0.16), transparent 60%);
}
.fw-copy { position: relative; }
.fw-copy .eyebrow { color: var(--accent); margin-bottom: 14px; }
.fw-copy h3 { color: #fff; font-size: 27px; margin-bottom: 12px; }
.fw-copy p { color: var(--on-dark-2); font-size: 16px; margin-bottom: 20px; max-width: 420px; }
.fw-points { display: flex; flex-direction: column; gap: 10px; }
.fw-points li { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-size: 15px; }
.fw-points li svg { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; flex-shrink: 0; }

.brand-demo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bd-chat { width: 100%; max-width: 320px; background: #fff; border-radius: 16px; box-shadow: var(--sh-lg); padding: 14px; }
.bd-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.bd-logo { width: 36px; height: 36px; border-radius: 10px; background-color: var(--brand, #d2603a); display: grid; place-items: center; flex-shrink: 0; }
.bd-logo svg { width: 21px; height: 21px; display: block; }
.bd-head b { font-family: var(--font-display); font-size: 14px; color: var(--ink); display: block; line-height: 1.2; }
.bd-head small { font-size: 12px; color: var(--green); font-weight: 600; }
.bd-msg { font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 13px; margin-bottom: 8px; max-width: 82%; }
.bd-msg.bot { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; }
.bd-msg.user { background-color: var(--brand, #d2603a); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; }
.bd-swatches { display: flex; gap: 11px; }
.bd-swatches span { width: 26px; height: 26px; border-radius: 50%; background: var(--c); transition: transform .3s ease, box-shadow .3s ease; }
.bd-swatches span.on { transform: scale(1.16); box-shadow: 0 0 0 3px var(--ink-panel), 0 0 0 5px var(--c); }
.bd-cap { font-size: 12.5px; color: var(--on-dark-2); font-weight: 500; }

/* ============================================================
   DEMO
   ============================================================ */
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.demo-copy .eyebrow { margin-bottom: 16px; }
.demo-copy h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.demo-copy p { font-size: 18px; color: var(--ink-2); margin-bottom: 26px; max-width: 480px; }
.demo-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.demo-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--ink); }
.demo-list .tick { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-100); color: var(--accent-700); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.demo-list .tick .ic { width: 16px; height: 16px; stroke-width: 2.4; }

.demo-card-stage { position: relative; }
.demo-card-stage .glow { position: absolute; inset: -40px; background: radial-gradient(circle, rgba(210,96,58,0.12), transparent 66%); z-index: 0; }
.demo-card-stage .chat-card { margin: 0 auto; position: relative; z-index: 1; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--sh-sm);
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.plan-desc { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.plan-price .amt { font-family: var(--font-display); font-weight: 700; font-size: 50px; color: var(--ink); letter-spacing: -0.03em; }
.plan-price .cur { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.plan-price .per { font-size: 15px; color: var(--ink-3); }
.plan ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex: 1; }
.plan ul li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); }
.plan ul li .ic { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.2; }
.plan ul li.off { color: var(--ink-3); }
.plan ul li.off .ic { color: var(--line-2); }

.plan.featured {
  background: var(--ink-panel);
  border-color: var(--ink-panel);
  box-shadow: var(--sh-lg);
  position: relative;
  transform: translateY(-10px);
}
.plan.featured .plan-name { color: #fff; }
.plan.featured .plan-desc { color: var(--on-dark-2); }
.plan.featured .plan-price .amt { color: #fff; }
.plan.featured .plan-price .cur { color: var(--on-dark); }
.plan.featured .plan-price .per { color: var(--on-dark-2); }
.plan.featured ul li { color: var(--on-dark); }
.plan.featured ul li .ic { color: var(--accent); }
.plan-badge {
  position: absolute; top: 22px; right: 22px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: var(--r-pill);
}
@media (prefers-reduced-motion: reduce) { .plan.featured { transform: none; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: var(--accent-200); box-shadow: var(--sh-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq-q:hover { color: var(--accent); }
.faq-ic { width: 24px; height: 24px; border-radius: 7px; background: var(--paper-2); color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s ease, background .2s ease, color .2s ease; }
.faq-ic .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.faq-item.open .faq-ic { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-in { padding: 0 22px 22px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }

/* ============================================================
   CTA BAND + FOOTER
   ============================================================ */
.cta-section { padding: 60px 0 0; }
.cta-band {
  position: relative;
  background: var(--accent);
  border-radius: var(--r-xl);
  padding: 70px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.16), transparent 38%),
    radial-gradient(circle at 88% 84%, rgba(0,0,0,0.14), transparent 42%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: 19px; margin-bottom: 30px; }
.cta-band .btn-light { font-size: 17px; padding: 15px 30px; }
.cta-band .micro { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.82); }

footer { padding: 56px 0 40px; }
.foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 14.5px; color: var(--ink-3); max-width: 280px; }
.foot-col h4 { font-family: var(--font-text); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 15px; color: var(--ink-2); padding: 5px 0; transition: color .18s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; flex-wrap: wrap;
}
.foot-bot .copy { font-size: 14px; color: var(--ink-3); }
.foot-bot .made { font-size: 14px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.foot-bot .made .ic { width: 16px; height: 16px; color: var(--accent); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .chat-card { margin: 0 auto; }
  .lead-pop { left: 0; }
  .demo-wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo-copy { text-align: center; }
  .demo-copy p { margin-left: auto; margin-right: auto; }
  .demo-list { max-width: 420px; margin: 0 auto 30px; text-align: left; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .hero { padding: 124px 0 72px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  .nav-menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 18px 28px 24px; display: none; flex-direction: column; gap: 6px;
    box-shadow: var(--sh-md);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 11px 0; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 10px; }
  .nav-menu .nav-login { border: none; }
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-template-columns: 1fr; padding: 30px 22px; gap: 26px; text-align: center; }
  .fw-copy p { margin-left: auto; margin-right: auto; }
  .fw-copy .eyebrow.center, .fw-copy .eyebrow { justify-content: center; }
  .fw-points { align-items: center; }
  .brand-demo { order: -1; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 52px 24px; }
}

@media (max-width: 460px) {
  .container { padding: 0 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .foot-top { grid-template-columns: 1fr; }
}

/* ============================================================
   AMBIENT TEXTURES — subtle life, no stock photos
   ============================================================ */
.section > .container { position: relative; z-index: 1; }
.section::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
/* paper sections → faint dot texture fading from a corner */
.section:not(.section-alt)::before {
  background-image: radial-gradient(rgba(33,27,21,0.055) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 94% -4%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 58% at 94% -4%, #000, transparent 72%);
}
/* white sections → soft warm washes from opposite corners */
.section-alt::before {
  background:
    radial-gradient(48% 58% at 2% 100%, rgba(210,96,58,0.06), transparent 62%),
    radial-gradient(42% 52% at 100% 0%, rgba(210,96,58,0.045), transparent 60%);
}

/* FAQ gets a big faint brand watermark for character */
.faq .container::after,
#faq .container::after {
  content: ''; position: absolute; right: -40px; top: -30px; z-index: -1;
  width: 220px; height: 220px; pointer-events: none; opacity: .5;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23ddd2c2' stroke-width='1.1'%3E%3Cpath d='M8 7h24a5 5 0 0 1 5 5v11a5 5 0 0 1-5 5H17l-7 6v-6H8a5 5 0 0 1-5-5V12a5 5 0 0 1 5-5z'/%3E%3Ccircle cx='15.5' cy='15.5' r='1.6'/%3E%3Ccircle cx='24.5' cy='15.5' r='1.6'/%3E%3Cpath d='M15 20c1.4 1.9 3 2.8 5 2.8s3.6-.9 5-2.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* page-wide grain for tactile warmth */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }
@media (max-width: 760px) { #faq .container::after, .faq .container::after { display: none; } }
