/* Fonts: self-hosted, no requests to Google */
@font-face { font-family: "Anton"; src: url("fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #121211;
  --ground-up: #1c1c1a;
  --ground-sheet: #20201e;
  --bone: #ede8e0;
  --bone-soft: #bdb6ab;
  --rule: rgba(237, 232, 224, 0.11);
  --rule-strong: rgba(237, 232, 224, 0.2);
  --lilac: #9aa5ff;
  --lilac-deep: #8590f0;
  --on-lilac: #16161f;

  --display: "Anton", "Arial Narrow", sans-serif;
  --voice: "Instrument Serif", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --wide: 90rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font: 400 1.125rem/1.6 var(--body);
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--lilac); color: var(--on-lilac); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: #4a4843 var(--ground); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #4a4843; border-radius: 10px; border: 2px solid var(--ground); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lilac); color: var(--on-lilac); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 3rem; }

/* Draft note: remove at go-live */
.draft {
  position: relative; z-index: 60;
  background: var(--bone); color: var(--ground);
  font-size: 0.875rem; text-align: center; padding: 0.4rem var(--gutter);
}

/* The faint column rules behind everything */
.columns {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 0 var(--gutter); max-width: var(--wide); margin: 0 auto;
}
.columns i { border-left: 1px solid var(--rule); }
.columns i:last-child { border-right: 1px solid var(--rule); }
@media (max-width: 40rem) { .columns { grid-template-columns: repeat(3, 1fr); } .columns i:nth-child(n+4) { display: none; } .columns i:nth-child(3) { border-right: 1px solid var(--rule); } }

main, header, footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px);
}
.brand {
  font: 400 clamp(1.1rem, 5.4vw, 1.35rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
}
.top-actions { display: flex; gap: 0.6rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.3rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-main { background: var(--lilac); color: var(--on-lilac); }
.btn-main:hover { background: var(--bone); }
.btn-line { background: transparent; color: var(--bone); border-color: var(--rule-strong); }
.btn-line:hover { border-color: var(--bone); }
.btn:active { transform: scale(0.97); }
.menu-btn { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.05rem; }
.top .btn-main { white-space: nowrap; }
@media (max-width: 30rem) { .top .btn-main { display: none; } }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ground-up);
  display: grid; align-content: center;
  padding: 6rem var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0s linear 0.6s;
}
.menu[data-open="true"] { clip-path: inset(0); visibility: visible; transition: clip-path 0.6s var(--ease); }
.menu ul { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: var(--wide); }
.menu li { border-top: 1px solid var(--rule-strong); }
.menu li:last-child { border-bottom: 1px solid var(--rule-strong); }
.menu a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.35rem 0; text-decoration: none;
  font: 400 clamp(2.4rem, 8vw, 5.5rem)/1.05 var(--display); text-transform: uppercase;
  transition: color 0.2s, padding 0.4s var(--ease);
}
.menu a small { font: italic 400 clamp(1.1rem, 2.5vw, 1.6rem)/1 var(--voice); text-transform: none; color: var(--bone-soft); }
.menu a:hover { color: var(--lilac); padding-left: 0.6rem; }

/* Hero */
.hero { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero h1 { margin: 0; font-weight: 400; }
.hero .line { display: block; overflow: hidden; }
.hero .line > span { display: block; }
.mega {
  font: 400 clamp(3.1rem, 10.4vw, 9.6rem)/0.88 var(--display);
  text-transform: uppercase; letter-spacing: -0.005em;
}
.voice-line {
  font: italic 400 clamp(1.75rem, 4.2vw, 3.9rem)/1.05 var(--voice);
  color: var(--lilac); padding: 0.15em 0 0.1em;
}
.line-right { text-align: right; }
.hero-foot {
  display: grid; gap: 2rem; margin-top: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) { .hero-foot { grid-template-columns: 1.1fr 0.9fr; align-items: end; } }
.hero-lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; margin: 0 0 1.25rem; max-width: 34ch; }
.hero-price { margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.hero-price b { font: 400 clamp(2rem, 3.6vw, 2.8rem)/1 var(--display); text-transform: uppercase; font-weight: 400; }
.hero-price span { font: italic 400 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--voice); color: var(--lilac); }
.hero-lede strong { color: var(--bone); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Spinning badge: opens the free check */
.badge {
  justify-self: end; position: relative;
  width: clamp(11rem, 22vw, 13.5rem); aspect-ratio: 1;
  border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--bone); color: var(--ground);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.badge:hover { transform: scale(1.05); background: var(--lilac); }
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge svg.ring text { font: 700 14px var(--body); letter-spacing: 0.04em; fill: currentColor; }
.badge .badge-mid { font: italic 400 1.6rem/1 var(--voice); position: relative; text-align: center; }
.badge .badge-mid b { display: block; font: 400 2.4rem/0.9 var(--display); font-style: normal; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 52rem) { .hero-foot { gap: 0.75rem; } .badge { justify-self: end; margin-top: -0.25rem; rotate: -8deg; } }

/* Load-in: lines rise out of their own mask, once */
@media (prefers-reduced-motion: no-preference) {
  .hero .line > span { animation: rise 1.1s var(--ease) both; }
  .hero .line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero .line:nth-child(3) > span { animation-delay: 0.16s; }
  .hero .line:nth-child(4) > span { animation-delay: 0.24s; }
  .hero-foot { animation: fade 1s var(--ease) 0.45s both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(1rem); } }
[data-drift] { will-change: transform; }

/* Moving strip */
.strip {
  border-block: 1px solid var(--rule-strong);
  overflow: hidden; padding: 0.8rem 0; background: var(--ground);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.strip li { display: flex; align-items: center; gap: 1.1rem; padding-right: 1.1rem; white-space: nowrap; font: italic 400 clamp(1.25rem, 2.4vw, 1.9rem)/1 var(--voice); }
.strip li:nth-child(odd) { font: 400 clamp(1.15rem, 2.2vw, 1.75rem)/1 var(--display); font-style: normal; text-transform: uppercase; }
.strip svg { width: 0.85rem; height: 0.85rem; color: var(--lilac); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section { padding-top: clamp(4.5rem, 10vw, 8rem); }
.big-word {
  --p: 1;
  margin: 0 0 clamp(1.5rem, 4vw, 2.75rem);
  font: 400 clamp(3.4rem, 11vw, 9.5rem)/0.88 var(--display); text-transform: uppercase;
}
.big-word .voice { display: block; font: italic 400 0.42em/1.1 var(--voice); text-transform: none; color: var(--lilac); }
@media (prefers-reduced-motion: no-preference) {
  .big-word { transform: translate3d(calc((1 - var(--p)) * 18vw), 0, 0); opacity: calc(0.25 + var(--p) * 0.75); }
}
.intro { max-width: 40ch; font-size: clamp(1.15rem, 1.6vw, 1.3rem); margin: 0 0 2.5rem; color: var(--bone); }
.soft { color: var(--bone-soft); }

/* Service rows: tap to open what's included */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.rows li { border-bottom: 1px solid var(--rule-strong); }
.row {
  width: 100%; display: grid; gap: 0.4rem 2rem; align-items: center;
  grid-template-columns: 1fr auto; text-align: left;
  padding: clamp(1.2rem, 3vw, 2rem) 0;
  background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
  position: relative;
}
.row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--lilac); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row:hover, .row:focus-visible { color: var(--on-lilac); }
.row:hover .row-text, .row:focus-visible .row-text { color: var(--on-lilac); }
.row-name { font: 400 clamp(2rem, 5.5vw, 4.25rem)/0.95 var(--display); text-transform: uppercase; }
.row-text { grid-column: 1; color: var(--bone-soft); max-width: 52ch; font-size: 1.05rem; transition: color 0.3s; }
.row-price { grid-row: 1 / span 2; grid-column: 2; text-align: right; font: 400 clamp(1.8rem, 4.5vw, 3.4rem)/1 var(--display); }
.row-price small { display: block; font: italic 400 clamp(1rem, 1.6vw, 1.25rem)/1.2 var(--voice); margin-top: 0.3rem; }
.row-more { grid-column: 1; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.25em; }
.row-more svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
.row:hover .row-more svg { transform: rotate(90deg); }
@media (max-width: 34rem) {
  .row { grid-template-columns: 1fr; }
  .row-price { grid-row: auto; grid-column: 1; text-align: left; }
}
.price-note { margin: 1.5rem 0 0; color: var(--bone-soft); max-width: 60ch; }

/* Example */
.example { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 52rem) { .example { grid-template-columns: 1fr 1fr; } }
.phone-peek {
  justify-self: center; position: relative;
  width: min(72%, 19rem); aspect-ratio: 9 / 18.5;
  border-radius: 2.6rem; padding: 0.7rem;
  background: #0d0d0c; border: 1px solid var(--rule-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  cursor: pointer; display: block; text-decoration: none; color: inherit;
  transform: rotate(-4deg); transition: transform 0.6s var(--ease);
}
.phone-peek:hover { transform: rotate(0deg) translateY(-6px); }
.phone-peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 2rem; }
.phone-peek .tag {
  position: absolute; left: 50%; bottom: -1.1rem; transform: translateX(-50%);
  background: var(--bone); color: var(--ground); border-radius: 999px; white-space: nowrap;
  padding: 0.45rem 1rem; font-weight: 700; font-size: 0.95rem;
}
.example-copy p { max-width: 42ch; }
.example-copy ul { padding-left: 1.2rem; margin: 0 0 2rem; color: var(--bone-soft); }
.example-copy li { margin-bottom: 0.35rem; }
.example-copy li::marker { color: var(--lilac); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: clamp(4rem, 12vw, 9rem) 1fr; gap: 0.5rem 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem) 0; border-top: 1px solid var(--rule-strong);
}
.steps li:last-child { border-bottom: 1px solid var(--rule-strong); }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font: 400 clamp(3rem, 9vw, 6.5rem)/0.85 var(--display); color: var(--lilac);
}
.steps h3 { margin: 0; font: italic 400 clamp(1.7rem, 3.5vw, 2.6rem)/1.1 var(--voice); }
.steps p { margin: 0; color: var(--bone-soft); max-width: 56ch; }

/* Straight answers */
.straight { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 52rem) { .straight { grid-template-columns: repeat(3, 1fr); } }
.straight > div { padding: 1.75rem 0; border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 52rem) {
  .straight > div { padding: 2rem 2rem 2rem 0; border-bottom: 0; }
  .straight > div + div { padding-left: 2rem; border-left: 1px solid var(--rule-strong); }
}
.straight h3 { margin: 0 0 0.75rem; font: 400 clamp(1.7rem, 3vw, 2.3rem)/1 var(--display); text-transform: uppercase; }
.straight p { margin: 0; color: var(--bone-soft); }

/* About */
.about { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.about-quote { margin: 0; font: italic 400 clamp(2.9rem, 8.2vw, 8rem)/0.98 var(--voice); max-width: 16ch; text-wrap: balance; }
.about-text { justify-self: end; max-width: 56ch; }
.about-text p { margin: 0 0 1rem; }

/* FAQ tabs */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--lilac); transition: transform 0.4s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--lilac); }
.faq .answer { padding: 0 0 1.5rem; max-width: 62ch; color: var(--bone-soft); }
.faq .answer p { margin: 0 0 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
}

/* Finale */
.finale {
  margin-top: clamp(5rem, 12vw, 9rem);
  background: var(--lilac); color: var(--on-lilac);
  padding: clamp(4rem, 10vw, 8rem) 0 2rem;
  position: relative; z-index: 2;
}
.finale h2 { margin: 0; font: 400 clamp(3.4rem, 12vw, 11rem)/0.86 var(--display); text-transform: uppercase; }
.finale .mail {
  display: inline-block; margin: clamp(1.5rem, 4vw, 2.5rem) 0 1rem;
  font: italic 400 clamp(1.4rem, 7.4vw, 5rem)/1.05 var(--voice);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}
.finale .mail:hover { text-decoration-thickness: 4px; }
.finale p { max-width: 46ch; font-size: 1.15rem; }
.finale .btn-dark { background: var(--on-lilac); color: var(--bone); }
.finale .btn-dark:hover { background: var(--ground-up); }
.finale :focus-visible { outline-color: var(--on-lilac); }
.finale ::selection { background: var(--on-lilac); color: var(--lilac); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: clamp(4rem, 9vw, 7rem); padding-top: 1.25rem;
  border-top: 1px solid rgba(22, 22, 31, 0.3); font-size: 0.95rem;
}

/* Sticky email on phones */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule-strong);
}
.dock .btn { width: 100%; }
@media (max-width: 40rem) { .dock { display: block; } .finale { padding-bottom: 6.5rem; } }

/* Pop-up sheets */
dialog {
  border: 0; padding: 0; color: var(--bone); background: var(--ground-sheet);
  width: min(100% - 1.5rem, 44rem); max-height: min(88dvh, 52rem);
  margin: auto auto 0.75rem; border-radius: 1.5rem;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
}
@media (min-width: 52rem) { dialog { margin: auto; } }
dialog::backdrop { background: rgba(10, 10, 9, 0.72); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: sheet-up 0.55s var(--ease); }
  dialog[open]::backdrop { animation: fade-in 0.4s ease; }
  dialog.closing { animation: sheet-down 0.28s ease-in forwards; }
  dialog.closing::backdrop { animation: fade-in 0.28s ease-in reverse forwards; }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }
@keyframes sheet-down { to { transform: translateY(30%); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet { padding: clamp(1.5rem, 4vw, 2.5rem); overflow-y: auto; max-height: inherit; }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.25rem; }
.sheet h2 { margin: 0; font: 400 clamp(2.2rem, 6vw, 3.6rem)/0.92 var(--display); text-transform: uppercase; }
.sheet h2 small { display: block; font: italic 400 0.5em/1.3 var(--voice); text-transform: none; color: var(--lilac); margin-top: 0.3rem; }
.x {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong); background: none; color: var(--bone); cursor: pointer;
  display: grid; place-items: center; transition: background-color 0.2s, color 0.2s;
}
.x:hover { background: var(--bone); color: var(--ground); }
.x svg { width: 1.25rem; height: 1.25rem; }
.sheet ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.sheet li { padding: 0.7rem 0 0.7rem 2rem; border-top: 1px solid var(--rule); position: relative; }
.sheet li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.9rem; height: 0.5rem;
  border-left: 2px solid var(--lilac); border-bottom: 2px solid var(--lilac); transform: rotate(-45deg);
}
.sheet p { margin: 0 0 1rem; color: var(--bone-soft); }
.sheet .price-line { font: 400 1.9rem/1 var(--display); color: var(--bone); margin-bottom: 1.25rem; }
.sheet .price-line small { font: italic 400 1.15rem var(--voice); color: var(--bone-soft); margin-left: 0.4rem; }

/* Example pop-up: the site inside a phone */
.dlg-phone { background: transparent; box-shadow: none; width: auto; max-height: none; margin: auto; overflow: visible; }
.phone-frame {
  width: min(92vw, 24rem); height: min(82dvh, 50rem);
  border-radius: 2.8rem; padding: 0.75rem; background: #0d0d0c;
  border: 1px solid var(--rule-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 2.1rem; background: #fff; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.phone-bar a { font-weight: 700; color: var(--bone); }

/* No JavaScript: show the pop-up content on the page instead */
.no-js-note { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
