/* Nära landing — design tokens, light + dark, no framework. */
:root {
  --bg: #f8f4ec;
  --bg-alt: #f1ebdf;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --ink: #1b2422;
  --ink-2: #4b5654;
  --ink-3: #7a8583;
  --line: rgba(27, 36, 34, .10);
  --accent: #1f6f63;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 111, 99, .10);
  --accent-2: #e9a23b;              /* warm amber, attention */
  --danger: #c2453d;
  --ok: #2f9c6b;
  --shadow: 0 1px 2px rgba(27,36,34,.05), 0 12px 40px -18px rgba(27,36,34,.28);
  --shadow-lg: 0 2px 4px rgba(27,36,34,.06), 0 30px 70px -30px rgba(27,36,34,.40);
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1716; --bg-alt: #131d1b; --surface: #182321; --surface-2: #1d2926;
    --ink: #eef3f1; --ink-2: #b9c4c1; --ink-3: #86928f; --line: rgba(238,243,241,.10);
    --accent: #5fc1ae; --accent-ink: #0b1513; --accent-soft: rgba(95,193,174,.14);
    --accent-2: #f0b95c; --danger: #ef7a72; --ok: #5ecf98;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px -18px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 30px 70px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1716; --bg-alt: #131d1b; --surface: #182321; --surface-2: #1d2926;
  --ink: #eef3f1; --ink-2: #b9c4c1; --ink-3: #86928f; --line: rgba(238,243,241,.10);
  --accent: #5fc1ae; --accent-ink: #0b1513; --accent-soft: rgba(95,193,174,.14);
  --accent-2: #f0b95c; --danger: #ef7a72; --ok: #5ecf98; color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute must beat display rules on classes */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.6 var(--font-body); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.04; font-variation-settings: "opsz" 144; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); color: var(--ink); background: var(--surface);
  box-shadow: var(--shadow); cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-small { padding: 9px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-icon { flex: none; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: inline-flex; }
.head-nav { display: flex; gap: 22px; margin-left: 12px; margin-right: auto; }
.head-nav a { color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.head-nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { .head-nav { display: none; } .head-row .btn-small { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.glow-a { width: 560px; height: 560px; left: -160px; top: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%); }
.glow-b { width: 620px; height: 620px; right: -200px; bottom: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: flex-start; line-height: 1.35; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--accent); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow-dot { flex: none; margin-top: .42em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36rem; margin: 26px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: .95rem; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* product mockup */
.hero-visual { display: flex; justify-content: center; }
.mock { position: relative; width: min(100%, 440px); padding: 22px 0 92px; }
.mock-card {
  position: relative; z-index: 2; background: var(--surface); border-radius: 24px; padding: 24px 24px 22px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: float 7s ease-in-out infinite;
}
.mock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.mock-sub { color: var(--ink-3); font-size: .92rem; margin-top: 4px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0; padding: 0; }
.mock-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mock-stats dt { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.mock-stats dd { margin: 2px 0 0; font-weight: 600; white-space: nowrap; }
.mock-summary { margin-top: 16px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.mock-week { display: flex; gap: 8px; margin-top: 18px; margin-bottom: 4px; }
.mock-week span { flex: 1; height: 10px; border-radius: 6px; background: var(--ok); opacity: .85; }
.mock-week .att { background: var(--accent-2); }
.mock-week .today { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ok); }
.mock-sms {
  position: absolute; z-index: 3; right: -12px; bottom: 0; width: 78%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px 14px;
  box-shadow: var(--shadow-lg); font-size: .94rem; line-height: 1.45; color: var(--ink-2);
  animation: rise 8s ease-in-out infinite; animation-delay: .8s;
}
.mock-sms-head { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .8rem; margin-bottom: 6px; }
.mock-sms-app { font-weight: 600; color: var(--ok); }
.mock-sms strong { color: var(--ink); }
.mock-ring {
  position: absolute; z-index: 4; left: -10px; top: 0; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow);
}
.mock-ring-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@media (max-width: 480px) {
  .mock-sms { right: 0; width: 88%; }
  .mock-stats { gap: 6px; }
  .mock-stats div { padding: 8px 8px; }
  .mock-stats dd { font-size: .92rem; }
  .mock-stats dt { font-size: .7rem; }
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; white-space: nowrap; letter-spacing: .01em;
  background: var(--accent-soft); color: var(--accent);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill[data-phase="ringing"] { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: color-mix(in srgb, var(--accent-2) 70%, var(--ink)); }
.pill[data-phase="ringing"]::before { animation: pulse 1.4s ease-out infinite; }
.pill[data-phase="talking"] { background: var(--accent-soft); color: var(--accent); }
.pill[data-phase="talking"]::before { animation: blink 1s steps(2, end) infinite; }
.pill[data-phase="done"] { background: color-mix(in srgb, var(--ok) 16%, transparent); color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.pill[data-phase="failed"] { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-lede { color: var(--ink-2); margin-top: 16px; font-size: 1.08rem; }

/* demo */
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { position: relative; max-width: 92%; padding: 12px 16px; border-radius: 18px; line-height: 1.45; font-size: 1rem; box-shadow: var(--shadow); }
.bubble .who { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.bubble.bot { background: var(--surface); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.demo-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .98rem; }
.demo-facts li { display: flex; align-items: center; gap: 10px; }
.demo-facts svg { color: var(--accent); flex: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-panel { padding: clamp(20px, 3vw, 32px); }
.form-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-panel fieldset:disabled { opacity: .55; }
.form-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; padding: 0; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input:not([type="checkbox"]) {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:not([type="checkbox"]):focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.help { color: var(--ink-3); font-size: .9rem; margin-top: 6px; }
.field.check { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0 6px; }
.field.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.field.check label { margin: 0; font-weight: 500; }

.notice { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent-2) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); color: var(--ink); font-size: .98rem; }
.notice a { font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px 24px; }
.result-card { margin-top: 18px; animation: appear .35s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-name { font-size: 1.3rem; }
.card-line { margin-top: 10px; color: var(--ink-2); line-height: 1.5; white-space: pre-line; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 0; padding: 0; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.stat dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.stat dd { margin: 2px 0 0; font-weight: 600; }

/* how */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.step-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-3); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 1rem; }

/* isn't */
.isnt { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .isnt { grid-template-columns: 1fr; } }
.isnt-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.isnt-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.isnt-list strong { color: var(--ink); }
.x { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 700; margin-top: 1px; }
.pull { margin: 0; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-lg); }
.pull p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; font-style: italic; }

/* pricing */
.price-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); align-items: center; }
@media (max-width: 800px) { .price-card { grid-template-columns: 1fr; } }
.price-tag { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.price-cur { font-family: var(--font-display); font-size: 2rem; color: var(--ink-2); }
.price-num { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 6rem); font-weight: 600; letter-spacing: -.03em; }
.price-per { color: var(--ink-3); font-size: 1rem; line-height: 1.25; margin-left: 8px; }
.price-note { color: var(--ink-2); margin: 14px 0 22px; }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 1.05rem; }
.price-list li { display: flex; align-items: center; gap: 12px; }
.price-list svg { color: var(--accent); flex: none; }
.privacy { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 28px; color: var(--ink-3); font-size: .95rem; text-align: center; }
.privacy svg { color: var(--accent); flex: none; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--ink-3); font-size: .95rem; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-small { font-size: 1.15rem; color: var(--ink-2); }
