/* Sidekick — landing. Tokens are the app's, so the site and the product read as
   one thing. See ios/Sidekick/Styles.swift for the Swift side of the same table. */

:root {
  --accent: #4B52F6;
  --accent-soft: rgba(75, 82, 246, 0.06);
  --accent-border: rgba(75, 82, 246, 0.14);
  --accent-on-black: #8F94FF;
  --ink: #15141B;
  --ink-2: #55546A;
  --ink-3: #8B8A97;
  --surface: #FCFBF9;
  --card: #fff;
  --hairline: rgba(21, 20, 27, 0.06);
  --lift: 0 2px 14px rgba(21, 20, 27, 0.04);
  --live: #E5484D;

  --r-card: 20px;
  --r-tile: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  /* Washes bleeding from the top corners — the signature of the light treatment. */
  background-image:
    radial-gradient(60% 50% at 0% 0%, rgba(75, 82, 246, 0.16), rgba(75, 82, 246, 0) 70%),
    radial-gradient(50% 45% at 100% 0%, rgba(255, 150, 105, 0.22), rgba(255, 150, 105, 0) 70%);
  background-repeat: no-repeat;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100;
}
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Mark ─────────────────────────────────────────────────────────── */
/* Drawn rather than an image: crisp at any size and no request. */
.mark { flex: 0 0 auto; object-fit: contain; display: block; }

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 16px; z-index: 10; display: flex; justify-content: center; padding: 0 16px; }
.nav-inner {
  width: 100%; max-width: 1040px; min-height: 60px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px); border: 1px solid var(--hairline); box-shadow: var(--lift);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 20px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  height: 40px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center;
  font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(21, 20, 27, 0.05); color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────── */
/* Primary is near-black; the accent stays reserved for tips and headline phrases. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
  transition: transform .12s, opacity .15s, background .15s; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--hairline); box-shadow: var(--lift); }
.btn-ghost:hover { background: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ── Type ─────────────────────────────────────────────────────────── */
h1, h2, h3 { letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 64px); font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.1; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
p { text-wrap: pretty; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.micro { font-size: 14px; color: var(--ink-2); }

/* ── Layout ───────────────────────────────────────────────────────── */
section { padding-block: var(--section); }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--card); border-radius: var(--r-card);
  border: 1px solid var(--hairline); box-shadow: var(--lift); padding: 26px;
}
.card.tinted { background: var(--accent-soft); border-color: var(--accent-border); box-shadow: none; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 7vw, 88px); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ── Phone ────────────────────────────────────────────────────────── */
.phone {
  width: min(300px, 82vw); aspect-ratio: 393 / 852; margin-inline: auto;
  background: #0B0B0F; border-radius: 46px; padding: 10px;
  box-shadow: 0 30px 70px rgba(21, 20, 27, .18), 0 0 0 1px rgba(21, 20, 27, .08);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 37px; overflow: hidden; position: relative;
  background: linear-gradient(170deg, #2C2A3A, #16151E 60%);
  display: flex; flex-direction: column; align-items: center; color: #fff;
}
.island {
  margin-top: 12px; background: #000; border-radius: 22px;
  padding: 11px 16px; display: flex; flex-direction: column; gap: 6px;
  width: calc(100% - 26px); box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.island-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.island-label { display: flex; align-items: center; gap: 6px; color: var(--accent-on-black); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; }
.island-label b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-on-black); }
.island-meta { font-size: 10px; color: rgba(255, 255, 255, .45); }
.island-tip { font-size: 14px; font-weight: 600; line-height: 1.3; }
.callee { margin-top: auto; margin-bottom: 26px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.callee strong { font-size: 20px; font-weight: 600; }
.callee span { font-size: 12px; color: rgba(255, 255, 255, .5); }
.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 74%; margin-bottom: 30px; }
.dialpad i {
  aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .12);
  display: grid; place-items: center; font-size: 8px; font-style: normal; color: rgba(255, 255, 255, .6);
}
.dialpad i.end { background: var(--live); color: #fff; }

/* ── Modes ────────────────────────────────────────────────────────── */
.mode-tip {
  margin-top: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: var(--r-tile); padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--ink);
}
.mode-tip .eyebrow { display: block; margin-bottom: 6px; color: var(--accent); }

/* ── Settings mock ────────────────────────────────────────────────── */
.settings { background: #F2F2F7; border-radius: var(--r-card); padding: 10px; }
.settings-row {
  background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; font-size: 15px;
}
.settings-row:first-of-type { border-radius: 10px 10px 0 0; }
.settings-row:last-of-type { border-radius: 0 0 10px 10px; }
.settings-row + .settings-row { border-top: 1px solid var(--hairline); }
.settings-row.on { color: var(--accent); font-weight: 600; }
.settings-row.off { color: var(--ink-3); text-decoration: line-through; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.price-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
.price-card.featured { border-color: var(--accent-border); box-shadow: 0 8px 30px rgba(75, 82, 246, .12); }
.badge {
  position: absolute; top: -11px; left: 26px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px;
}
.price { display: flex; align-items: baseline; gap: 3px; }
.price strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 14px; color: var(--ink-2); }
.price-card .btn { margin-top: auto; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
/* <details> gives the disclosure behaviour natively — no JS, and it works
   with keyboard and screen readers for free. */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--r-card); border: 1px solid var(--hairline); box-shadow: var(--lift); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq p { padding: 0 26px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* ── Closing ──────────────────────────────────────────────────────── */
.closing {
  background: var(--card); border-radius: var(--r-card); border: 1px solid var(--hairline); box-shadow: var(--lift);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  background-image:
    radial-gradient(60% 80% at 0% 0%, rgba(75, 82, 246, .12), rgba(75, 82, 246, 0) 70%),
    radial-gradient(50% 70% at 100% 0%, rgba(255, 150, 105, .16), rgba(255, 150, 105, 0) 70%);
}
.closing .mark { width: 56px; height: 56px; }

footer { padding-block: 40px 56px; border-top: 1px solid var(--hairline); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.foot-links { display: flex; gap: 18px; }

/* ── Hero device: the app itself, sitting on the desk ─────────────── */
/* Replaces the old mockup of a call running on the phone — the phone is now
   the second screen beside the laptop, not the thing you are calling on. */
.phone-screen.surfbird {
  background: var(--surface);
  background-image:
    radial-gradient(70% 50% at 0% 0%, rgba(75, 82, 246, 0.16), rgba(75, 82, 246, 0) 70%),
    radial-gradient(60% 45% at 100% 0%, rgba(255, 150, 105, 0.22), rgba(255, 150, 105, 0) 70%);
  color: var(--ink);
  padding: 26px 18px 18px;
  gap: 14px;
  align-items: stretch;
}
.sk-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.sk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.sk-mode { font-weight: 600; color: var(--ink); }
.sk-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.sk-tip {
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.sk-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.sk-tip p { font-size: 17px; font-weight: 600; line-height: 1.28; letter-spacing: -0.01em; }
.sk-listening {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-tile);
  padding: 12px 14px; font-size: 12px; color: var(--ink-2);
}
.sk-wave {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-soft) center/13px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234B52F6' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 7v2M5.5 4.5v7M9 2v12M12.5 5.5v5'/%3E%3C/svg%3E");
}

/* Waitlist */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px; /* under 16px, iOS zooms the page on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.waitlist input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.waitlist .btn { flex: 0 0 auto; }
#waitlist-note { margin-top: 10px; }
#waitlist-note.is-error { color: var(--live, #E5484D); }
#waitlist-note.is-done { color: var(--accent); font-weight: 600; }

/* Legal pages and 404 */
.legal { max-width: 720px; margin: 0 auto; padding: var(--section) 0; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -1.4px; line-height: 1.05; }
.legal .updated { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.legal h2 {
  margin-top: 44px; font-size: 21px; letter-spacing: -.4px; scroll-margin-top: 90px;
}
.legal h3 { margin-top: 26px; font-size: 16px; letter-spacing: -.2px; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); line-height: 1.65; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { margin-top: 12px; padding-left: 20px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--accent); }
.legal .callout {
  margin-top: 20px; padding: 18px 20px; background: var(--accent-soft);
  border: 1px solid var(--accent-border); border-radius: var(--r-card);
}
.legal .callout p:first-child { margin-top: 0; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td {
  text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline);
  color: var(--ink-2); vertical-align: top;
}
.legal th { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; }

.notfound { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.notfound .code { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.notfound h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -2px; line-height: 1.02; }
.notfound .lede { margin-top: 14px; max-width: 460px; }
.notfound .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
