/* ============================================================================
   KuttyTail marketing + legal site — layout & components.
   Built on tokens.css (the app's design system, reused 1:1). Brand identity
   leads with the logo palette (teal/brown/cream); app primary blue + indigo
   accent are used for product UI bits so site ↔ app ↔ store assets cohere.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: var(--w-bold); font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-button);
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--fg1); border-color: var(--border); }
/* .nav a sets its own colour at higher specificity than .btn-*, which would hide
   the button label (e.g. "Get the app" rendering in dull grey). Restore it. */
.nav a.btn-primary { color: #fff; }
.nav a.btn-ghost { color: var(--fg1); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: var(--w-semibold);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--accent-50); color: var(--accent); border: 1px solid var(--accent-tint);
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,254,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: var(--w-extrabold); font-size: 17px; color: var(--fg1); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--fg2); font-weight: var(--w-semibold); font-size: 14px; }
.nav a:hover { color: var(--fg1); text-decoration: none; }
@media (max-width: 720px) { .nav a.hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-cream) 0%, var(--bg) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-logo { width: 232px; height: auto; margin: 0 0 14px -10px; }
.hero h1 { font-size: 50px; line-height: 1.05; letter-spacing: -0.025em; font-weight: var(--w-extrabold); margin: 0 0 10px; color: var(--brand-brown); }
.hero h1 .ai { color: var(--primary); }
.hero p.tagline { font-size: 18px; font-weight: var(--w-bold); color: var(--primary); margin: 0 0 18px; letter-spacing: -0.01em; }
.hero p.tagline .ai { color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--fg2); font-weight: var(--w-medium); margin: 0 0 26px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.soon { font-size: 12.5px; color: var(--fg3); font-weight: var(--w-semibold); margin-top: 16px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone {
  width: 290px; border-radius: 34px; border: 1px solid var(--border);
  box-shadow: var(--shadow-float); background: #fff;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
  .hero-logo { margin: 0 auto 12px; width: 210px; }
  .hero h1 { font-size: 38px; }
  .hero p.tagline { margin-left: auto; margin-right: auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { margin-top: 10px; }
}

/* ---------- Feature strip ---------- */
.strip { padding: 30px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; }
.strip li { font-size: 14px; font-weight: var(--w-semibold); color: var(--fg2); display: flex; align-items: center; gap: 8px; }
.strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ---------- Feature sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 640px; margin: 0 auto 8px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 84px; }
.feature.rev .copy { order: 2; }
.feature .overline { font-size: 11px; font-weight: var(--w-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.feature h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; font-weight: var(--w-extrabold); margin: 10px 0 12px; color: var(--fg1); }
.feature p { font-size: 16px; color: var(--fg2); margin: 0; }
.feature .shot { display: flex; justify-content: center; }
.feature .shot img { width: 268px; border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-float); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature.rev .copy { order: 0; }
  .feature h3 { font-size: 23px; }
}

/* ---------- Section title ---------- */
h2.sec { font-size: 32px; font-weight: var(--w-extrabold); letter-spacing: -0.02em; margin: 0 0 10px; color: var(--fg1); }
.sec-sub { font-size: 17px; color: var(--fg2); margin: 0 auto; max-width: 56ch; }

/* ---------- Privacy band ---------- */
.privacy-band { background: var(--accent-tint); }
.privacy-band .wrap { padding: 56px 24px; text-align: center; }
.privacy-band h2 { color: var(--accent); }
.privacy-band .links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Beta survey band (home entry point) ---------- */
.beta-band { background: var(--brand-teal); }
.beta-band .wrap { padding: 58px 24px; text-align: center; }
.beta-band .beta-kicker { display: inline-block; font-size: 12px; font-weight: var(--w-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-cream); opacity: .85; margin-bottom: 12px; }
.beta-band h2 { color: #fff; font-size: 30px; font-weight: var(--w-extrabold); letter-spacing: -0.02em; margin: 0 0 10px; }
.beta-band p { color: rgba(255,255,255,.88); margin: 0 auto 22px; max-width: 54ch; font-size: 16px; }
.beta-band .btn-primary { background: #fff; color: var(--brand-teal); }
.beta-band .btn-primary:hover { background: var(--brand-cream); color: var(--brand-teal); }

/* ---------- CTA ---------- */
.cta { background: var(--brand-brown); color: var(--brand-cream); }
.cta .wrap { padding: 64px 24px; text-align: center; }
.cta h2 { color: #fff; font-size: 30px; font-weight: var(--w-extrabold); margin: 0 0 10px; }
.cta p { color: rgba(255,255,255,.82); margin: 0 0 22px; }

/* ---------- Footer ---------- */
footer.site { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 56px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer.site .brand { font-size: 15px; }
footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer .col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg3); margin: 0 0 12px; }
footer .col a { display: block; color: var(--fg2); font-size: 14px; margin-bottom: 9px; font-weight: var(--w-medium); }
footer .col a:hover { color: var(--fg1); text-decoration: none; }
footer .legal { width: 100%; border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; color: var(--fg3); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============================================================================
   Legal / document pages (privacy, terms, delete-account)
   ============================================================================ */
.doc { background: var(--bg); }
.doc .wrap { max-width: 800px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: 36px; font-weight: var(--w-extrabold); letter-spacing: -0.02em; margin: 0 0 6px; color: var(--fg1); }
.doc .meta { color: var(--fg3); font-size: 13.5px; font-weight: var(--w-semibold); margin-bottom: 8px; }
.doc .intro { font-size: 17px; color: var(--fg2); margin: 14px 0 8px; }
.doc h2 { font-size: 20px; font-weight: var(--w-bold); margin: 36px 0 10px; color: var(--fg1); letter-spacing: -0.01em; }
.doc h3 { font-size: 16px; font-weight: var(--w-bold); margin: 22px 0 6px; color: var(--fg1); }
.doc p, .doc li { font-size: 15.5px; color: var(--fg2); line-height: 1.65; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { font-weight: var(--w-semibold); }
.doc strong { color: var(--fg1); font-weight: var(--w-bold); }
.doc .callout {
  background: var(--accent-50); border: 1px solid var(--accent-tint);
  border-radius: var(--r-card); padding: 16px 18px; margin: 18px 0;
}
.doc .callout.warn { background: var(--warning-50); border-color: #F4E3B8; }
.doc .steps { counter-reset: step; list-style: none; padding-left: 0; }
.doc .steps li { position: relative; padding-left: 42px; margin-bottom: 16px; }
.doc .steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 28px; height: 28px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: var(--w-bold);
}
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--fg1); font-weight: var(--w-bold); background: var(--subtle); }
.doc td { color: var(--fg2); }
.toplink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: var(--w-semibold); color: var(--fg2); margin-bottom: 22px; }

/* ---------- 404 ---------- */
.nf { min-height: 64vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.nf img { width: 120px; margin: 0 auto 18px; }
.nf h1 { font-size: 40px; font-weight: var(--w-extrabold); color: var(--brand-brown); margin: 0 0 8px; }
.nf p { color: var(--fg2); margin: 0 0 22px; }

/* ============================================================================
   Elevation pass — ambient hero depth, how-it-works, FAQ, scroll reveals
   ============================================================================ */

/* Ambient glow behind the hero + a floating AI-insight card over the phone.
   The glow uses the two AI/brand signals (indigo + teal) at low opacity. */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(540px 380px at 86% 14%, rgba(99,102,217,.18), transparent 70%),
    radial-gradient(640px 440px at 4% 8%, rgba(30,138,138,.12), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-art .float-card {
  position: absolute; right: -10px; top: 22px; width: 226px;
  background: var(--surface); border: 1px solid var(--accent-tint);
  border-radius: var(--r-card); padding: 13px 15px;
  box-shadow: var(--shadow-float); text-align: left;
}
.float-card .fc-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.float-card .fc-tag { font-size: 10.5px; font-weight: var(--w-bold); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.float-card p { font-size: 12.5px; line-height: 1.45; color: var(--fg1); margin: 0 0 10px; font-weight: var(--w-medium); }
.float-card .fc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: var(--w-bold); color: var(--accent); background: var(--accent-50); border-radius: var(--r-pill); padding: 4px 10px; }
@media (max-width: 860px) { .hero-art .float-card { display: none; } }

/* ---------- How it works ---------- */
.steps-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-band .wrap { padding: 66px 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 42px; }
.step { text-align: center; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary-50); color: var(--primary); border: 1px solid var(--primary-100);
  display: flex; align-items: center; justify-content: center; font-weight: var(--w-extrabold); font-size: 18px;
}
.step h3 { font-size: 18px; font-weight: var(--w-bold); margin: 0 0 8px; color: var(--fg1); }
.step p { font-size: 14.5px; color: var(--fg2); margin: 0 auto; max-width: 32ch; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- FAQ ---------- */
.faq .wrap { max-width: 760px; padding: 80px 24px; }
.faq-list { margin-top: 34px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 2px; font-size: 16.5px; font-weight: var(--w-bold); color: var(--fg1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; line-height: 1; font-weight: var(--w-medium); color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 15px; color: var(--fg2); line-height: 1.65; margin: 0 0 20px; max-width: 66ch; }
.faq-item p a { font-weight: var(--w-semibold); }

/* ---------- Progressive scroll reveal (no-JS users always see content) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
