@font-face { font-family: "Geist"; src: url("/fonts/Geist_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Baskerville"; src: url("/fonts/LibreBaskerville_400Regular_Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

/* Design tokens */
:root {
  --ground: #07080b;
  --ink: #f4f2ff;
  --ink2: rgba(244, 242, 255, 0.66);
  --ink3: rgba(244, 242, 255, 0.4);
  --line: rgba(244, 242, 255, 0.12);
  --glass: rgba(244, 242, 255, 0.05);
  --accent: #a998ff;
  --on-accent: #120e2b;
  --warn: #ffc77a;
  --ok: #86e8ac;
  --info: #a9c6ff;
  --r-card: 28px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --gutter: max(20px, calc(16px + var(--safe-left)), calc(16px + var(--safe-right)));
  --max: 1120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--ground); color: var(--ink);
  font: 400 17px/1.55 "Geist", system-ui, sans-serif; overflow-x: hidden;
  background-image:
    radial-gradient(60vmax 40vmax at 15% -10%, rgba(91, 63, 209, 0.32), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 40%, rgba(215, 105, 32, 0.12), transparent 60%);
}
a { color: inherit; }
em { font-family: "Baskerville", Georgia, serif; font-style: italic; font-weight: 400; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.04em; }
h2 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; text-align: center; margin-bottom: 40px; }
h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
section { padding: clamp(64px, 10vw, 120px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: 999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font: 500 12px/1.4 "Geist Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.fine { font-size: 14px; color: var(--ink3); margin: 14px 0 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--on-accent); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 10px 40px -10px rgba(169, 152, 255, 0.55); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-wide { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: calc(12px + var(--safe-top)) var(--gutter) 12px; max-width: var(--max); margin: 0 auto;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: linear-gradient(to bottom, rgba(7, 8, 11, 0.85), rgba(7, 8, 11, 0.4));
}
.brand { font: italic 26px/1 "Baskerville", Georgia, serif; text-decoration: none; margin: 0; display: inline-flex; align-items: center; min-height: 44px; }
.nav nav { display: flex; gap: 28px; font-size: 15px; color: var(--ink2); }
.nav nav a { text-decoration: none; padding: 12px 0; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-top: clamp(32px, 6vw, 72px); }
h1 { font-size: clamp(48px, 8.5vw, 96px); line-height: 0.98; letter-spacing: -0.055em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink2); max-width: 34em; margin: 24px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-orb { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
#orb { width: 100%; height: 100%; display: block; }
.orb-fallback { border-radius: 50%; background: radial-gradient(circle at 50% 50%, #3a2a8f 0 22%, rgba(169, 152, 255, 0.45) 23%, transparent 46%); }

/* Demo phone */
.demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.phone { width: min(340px, 86vw); aspect-ratio: 9 / 19.5; border-radius: 52px; padding: 12px; background: #15161c; border: 1px solid var(--line); box-shadow: 0 40px 120px -30px rgba(91, 63, 209, 0.55); }
.phone-screen { text-align: left; height: 100%; border-radius: 42px; overflow: hidden; padding: 44px 18px 18px; background: radial-gradient(120% 60% at 0% 0%, #241a55, var(--ground) 60%); font-size: 13px; }
.p-date { font: 500 10px "Geist Mono"; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: 0; }
.p-title { font-size: 36px; font-weight: 500; letter-spacing: -.05em; margin: 4px 0 12px; }
.p-chips { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); width: max-content; max-width: 100%; margin-bottom: 12px; }
.p-chips span { padding: 6px 11px; border-radius: 999px; font-size: 12px; }
.p-chips .on { background: var(--ink); color: var(--ground); }
.p-card { border-radius: 22px; padding: 14px 16px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 10px; }
.p-label { font: 500 9px "Geist Mono"; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: 0; }
.p-big { font-size: 34px; font-weight: 500; letter-spacing: -.04em; margin: 2px 0; }
.p-foot { color: var(--ink2); font-size: 11px; margin: 0; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.p-logo { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(244,242,255,.08); font: 500 10px "Geist Mono"; }
.p-name { flex: 1; min-width: 0; font-weight: 500; display: flex; flex-direction: column; }
.p-name small { color: var(--ink2); font-weight: 400; font-size: 11px; }
.p-amt { text-align: right; font-weight: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.p-amt i { font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 999px; }
.s-need { color: var(--warn); background: rgba(255, 199, 122, .12); }
.s-sched { color: var(--info); background: rgba(169, 198, 255, .12); }
.s-paid { color: var(--ok); background: rgba(134, 232, 172, .12); }
.p-azryn { display: flex; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 20px; background: rgba(8, 9, 20, .9); border: 1px solid var(--line); }
.p-azryn p { margin: 0; font-size: 12px; line-height: 1.4; }
.p-azryn b { display: block; font: 500 9px "Geist Mono"; letter-spacing: .14em; text-transform: uppercase; color: var(--warn); margin-bottom: 3px; }
.p-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle, #ffd59a 0 30%, #b46a14 60%, transparent 72%); box-shadow: 0 0 18px rgba(255, 199, 122, .6); }
.talk { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.talk li { font-size: clamp(22px, 3.2vw, 34px); letter-spacing: -.03em; color: var(--ink2); }
.talk li:first-child { color: var(--ink); }

/* Features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.grid article, .plan, .safety ul { border-radius: var(--r-card); padding: 28px; background: var(--glass); border: 1px solid var(--line); }
.grid p { color: var(--ink2); margin: 0; }

/* Safety */
.safety ul { list-style: none; margin: 0 auto; max-width: 760px; display: grid; gap: 18px; }
.safety li { color: var(--ink2); }
.safety b { color: var(--ink); font-weight: 500; }

/* Pricing */
.plan { max-width: 460px; margin: 0 auto; text-align: center; box-shadow: 0 40px 120px -40px rgba(91, 63, 209, .6); }
.price { margin: 0; color: var(--ink2); font-size: 18px; }
.price span { font-size: 72px; font-weight: 500; letter-spacing: -.05em; color: var(--ink); }
.was { color: var(--ink2); margin: 4px 0 20px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; color: var(--ink2); }
.plan li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* Waitlist */
.waitlist { text-align: center; }
.waitlist h2 { margin-bottom: 12px; }
.waitlist > p { color: var(--ink2); margin: 0 0 24px; }
form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
input[type="email"] {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); font: 400 16px "Geist", sans-serif;
}
input::placeholder { color: var(--ink3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.6em; color: var(--ink2); margin: 14px 0 0; }

/* FAQ */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; padding: 16px 0; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--ink2); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink2); margin: 0 0 18px; }

/* Footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) calc(48px + var(--safe-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink2); font-size: 15px; }
.footer nav a { text-decoration: none; padding: 10px 0; }
.footer .fine { width: 100%; margin: 0; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; text-align: left; margin: 36px 0 8px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink2); }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-orb { order: -1; max-width: 360px; margin-bottom: -24px; }
  .cta-row { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .demo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .nav nav { display: none; }
}
@media (max-width: 480px) {
  form { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
