:root {
  --night: #0a1220;
  --ink: #eaf0f8;
  --muted: #9aaac0;
  --blue: #3380ff;
  --blue-soft: #7fb0ff;
  --rim: rgba(255, 255, 255, 0.13);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --amber: #ffc93c;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
  background-color: var(--night);
  /* a Windows-style bloom wallpaper behind the glass */
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(51, 128, 255, 0.28), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(96, 70, 220, 0.18), transparent 60%),
    radial-gradient(40rem 30rem at 60% 110%, rgba(51, 128, 255, 0.14), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--blue-soft); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; }
kbd { font: 700 0.82em var(--body); padding: 0.08em 0.45em; border: 1px solid var(--rim); border-bottom-width: 2px; border-radius: 6px; background: var(--glass-strong); color: var(--ink); white-space: nowrap; }

.wrap { width: min(74rem, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--blue); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; z-index: 60; }
.skip:focus { left: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* liquid glass */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--rim);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 48px -28px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* placeholders the owner fills in */
.ph { display: inline-block; padding: 0 0.35em; border: 1px dashed var(--amber); border-radius: 6px; color: var(--amber); font-size: 0.92em; line-height: 1.5; }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 1.3rem/1 var(--display); color: var(--ink); text-decoration: none; }
.brand svg { width: 1.7rem; height: 1.7rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a:not(.button) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 44rem) { .site-nav a:not(.button) { display: none; } }

.button {
  display: inline-block; padding: 0.8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(51, 128, 255, 0.5), 0 10px 30px -10px rgba(51, 128, 255, 0.8);
}
.button:hover { background: #4a8fff; }
.button.ghost { background: var(--glass); border-color: var(--rim); color: var(--ink); box-shadow: none; }
.button.ghost:hover { background: var(--glass-strong); }
.button.small { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* hero */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 2.5rem 4.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 0.98; font-weight: 800; margin: 0 0 1.25rem; max-width: 12ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.note { color: var(--muted); font-size: 0.95rem; margin: 1.1rem 0 0; max-width: 34rem; }
.desk { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 0; }
.desk svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* sections */
.section { padding-block: 4rem; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.08; font-weight: 700; margin: 0 0 1.75rem; max-width: 22ch; }
.section h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.4rem; }
.fine { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
.plain { max-width: 44rem; color: var(--muted); margin: 0 0 1.75rem; }

.video { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video-empty { text-align: center; color: var(--muted); padding: 1.5rem; max-width: 34rem; }
.video-empty svg { width: 4rem; height: 4rem; color: var(--blue-soft); margin-bottom: 0.75rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; }
.steps li { padding: 1.4rem 1.4rem 1.5rem; counter-increment: step; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 1.1rem; right: 1.3rem; font: 800 2.2rem/1 var(--display); color: rgba(127, 176, 255, 0.25); }
.step-key { display: inline-block; margin-bottom: 0.9rem; color: var(--blue-soft); font-weight: 700; font-size: 0.9rem; }
.steps p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 1.75rem 3rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0; }
.features dt { font: 700 1.15rem/1.3 var(--display); margin-bottom: 0.35rem; }
.features dd { margin: 0; color: var(--muted); }

.table-scroll { overflow-x: auto; padding: 0.5rem 1.25rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 34rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--rim); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 1rem var(--display); color: var(--ink); }
.compare tbody th { font-weight: 700; width: 28%; }
.compare td { color: var(--muted); }
.compare td.yes { color: var(--ink); }
.compare td.yes::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); margin-right: 0.5em; vertical-align: 0.1em; }

.byo { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; margin-bottom: 1rem; }
.byo div { max-width: 42rem; }
.byo p { margin: 0; color: var(--muted); }
.byo .price { color: var(--ink); }
.price { font: 800 2rem/1.1 var(--display); margin: 0.25rem 0 0.75rem; }
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.plan { padding: 1.6rem; display: flex; flex-direction: column; }
.plan p { color: var(--muted); margin: 0 0 1rem; }
.plan .price { color: var(--ink); }
.plan ul { padding-left: 1.1rem; margin: 0 0 1.5rem; flex: 1; }
.plan li { margin-bottom: 0.4rem; }
.plan .button { align-self: flex-start; }
.plan.featured { border-color: rgba(51, 128, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(51, 128, 255, 0.35), 0 24px 60px -24px rgba(51, 128, 255, 0.55); }

.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.trust li { padding: 1.25rem 1.3rem; }
.trust p { margin: 0; color: var(--muted); }

.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.quotes figure { margin: 0; padding: 1.5rem; }
.quotes blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
.quotes p { margin: 0; }
.quotes figcaption { color: var(--muted); font-size: 0.92rem; }

.faq details { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rim); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font: 700 1.1rem/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-soft); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0.6rem 0 0.2rem; }

.cta { text-align: center; padding: 3rem 1.5rem; }
.cta h2 { margin-inline: auto; }
.cta p { color: var(--muted); }

/* footer */
.site-foot { padding-block: 2.5rem 3rem; border-top: 1px solid var(--rim); color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: flex-start; }
.foot-brand p { margin: 0.6rem 0 0; max-width: 30rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; align-items: center; }

/* legal pages */
.legal { max-width: 46rem; padding-block: 1.5rem 4rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; font-weight: 800; margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.35rem; line-height: 1.25; margin: 2.25rem 0 0.5rem; }
.legal p, .legal li { line-height: 1.65; }
.legal .updated { color: var(--muted); margin-bottom: 2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rim); }

/* Splainer on the page: notch, companion cursor and ink */
.sp-layer { position: absolute; inset: 0 auto auto 0; width: 0; height: 0; pointer-events: none; z-index: 40; }
.sp-ink { position: absolute; top: 0; left: 0; overflow: visible; transition: opacity 0.4s; }
.sp-ink.clearing { opacity: 0; }
.sp-stroke { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(51, 128, 255, 0.7)); }
.sp-note { font: 700 26px var(--hand); fill: var(--blue-soft); opacity: 0; transition: opacity 0.4s; }
.sp-note.in { opacity: 1; }
.sp-cursor { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 0 8px rgba(51, 128, 255, 0.9)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.sp-cursor path { fill: var(--blue); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.sp-cursor.on { opacity: 1; }

.sp-notch { position: fixed; top: 4px; left: 50%; z-index: 50; transform: translateX(-50%); color: #eee; font-size: 0.95rem; }
.sp-sliver { display: block; width: 60px; height: 8px; border: 0; border-radius: 0 0 6px 6px; background: #000; cursor: pointer; padding: 0; transition: opacity 0.2s; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.sp-sliver:hover { height: 10px; }
.sp-notch.peek:not(.open) .sp-sliver { width: auto; height: auto; padding: 0.35rem 1rem 0.45rem; border-radius: 0 0 14px 14px; color: #e6e6e6; font: 700 0.8rem var(--body); }
.sp-notch.peek:not(.open) .sp-sliver::after { content: "Ask Splainer"; }
.sp-body {
  width: min(32rem, calc(100vw - 2rem)); background: #000; border-radius: 22px; padding: 0 1.1rem;
  max-height: 0; opacity: 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transition: max-height 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.25s, padding 0.42s;
}
.sp-notch.open .sp-sliver { opacity: 0; height: 0; }
.sp-notch.open .sp-body { max-height: 22rem; opacity: 1; padding: 0.85rem 1.1rem 1rem; }
.sp-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sp-state { display: inline-flex; align-items: center; gap: 0.55rem; color: #8f8f8f; font-size: 0.85rem; }
.sp-wave { display: inline-flex; gap: 3px; align-items: center; height: 14px; }
.sp-wave i { width: 3px; height: 4px; border-radius: 2px; background: var(--blue); }
.sp-notch[data-mode="listening"] .sp-wave i { animation: wave 0.9s ease-in-out infinite; }
.sp-notch[data-mode="listening"] .sp-wave i:nth-child(2) { animation-delay: 0.15s; }
.sp-notch[data-mode="listening"] .sp-wave i:nth-child(3) { animation-delay: 0.3s; }
.sp-notch[data-mode="listening"] .sp-wave i:nth-child(4) { animation-delay: 0.45s; }
.sp-notch[data-mode="listening"] .sp-wave i:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave { 50% { height: 14px; } }
.sp-tools { display: inline-flex; gap: 0.4rem; }
.sp-tools button, .sp-chips button {
  font: inherit; font-size: 0.8rem; color: #d6d6d6; background: #1c1c1c; border: 1px solid #333; border-radius: 999px; padding: 0.25rem 0.7rem; cursor: pointer;
}
.sp-tools button:hover, .sp-chips button:hover { background: #2a2a2a; color: #fff; }
.sp-heard { margin: 0.6rem 0 0; color: #9fb4cc; font-size: 0.95rem; min-height: 1.4em; }
.sp-heard:not(:empty)::before { content: "You: "; color: #666; }
.sp-answer { margin: 0.35rem 0 0; color: #f1f1f1; font-size: 1.02rem; line-height: 1.45; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.sp-chips[hidden] { display: none; }
.sp-chips button { font-size: 0.85rem; padding: 0.35rem 0.8rem; }
@media (prefers-reduced-motion: reduce) {
  .sp-body { transition: none; }
  .sp-notch[data-mode="listening"] .sp-wave i { animation: none; height: 10px; }
}
