/* Clairitea website. Tokens mirror ClairiteaDesign/Tokens.swift; fonts are the app's own (OFL). */

@font-face {
  font-family: 'Newsreader';
  src: url('/site/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/site/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'TikTok Sans';
  src: url('/site/fonts/tiktok-sans.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: #141414;
  --surface-raised: #1e1e1e;
  --hairline: #2a2a2a;
  --hairline-strong: #3a3a3c;
  --mint: #5cf2c9;
  --mint-soft: rgba(92, 242, 201, 0.72);
  --mint-glow: rgba(92, 242, 201, 0.16);
  --on-mint: #000;
  --red: #ff5471;
  --red-surface: #2a0e14;
  --green: #41a955;
  --green-surface: #0f2414;
  --amber: #f2b25c;
  --text: #fff;
  --text-2: #a3a3a9;
  --text-3: #838885;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --radius-pill: 999px;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-160%);
  z-index: 100;
  background: var(--mint);
  color: var(--on-mint);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.skip:not(:focus-visible) {
  clip-path: inset(50%);
}

.skip:focus-visible {
  transform: none;
}

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

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.mint {
  color: var(--mint);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark em {
  font-style: italic;
  color: var(--mint);
}

.wordmark svg {
  width: 13px;
  height: 13px;
  margin-left: 3px;
  align-self: center;
  transform: translateY(2px);
}

.wordmark:hover {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.nav .btn {
  color: var(--on-mint);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--on-mint);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 var(--mint-glow);
}

.btn:hover {
  color: var(--on-mint);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--mint-glow);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-2);
  box-shadow: none;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.store:hover {
  color: #000;
  transform: translateY(-1px);
}

.store svg {
  width: 26px;
  height: 26px;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store small {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.store b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  color: var(--text-2);
  font-size: 15px;
}

.store-soon svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 64px), 900px);
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

/* Fallback layer: until (or unless) the hero art loads, the slot shows a quiet mint glow instead
   of a broken-image outline. A broken <img> renders its ::after, so the same layer covers the
   browser's broken-image icon and border; a loaded image never shows it. */
.hero-bg {
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(92, 242, 201, 0.16), transparent 70%),
    radial-gradient(45% 55% at 95% 95%, rgba(65, 169, 85, 0.12), transparent 70%),
    #000;
}

.hero-bg img {
  object-fit: cover;
  object-position: 72% 50%;
  color: transparent;
  font-size: 0;
}

.hero-bg img::after {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(92, 242, 201, 0.16), transparent 70%),
    radial-gradient(45% 55% at 95% 95%, rgba(65, 169, 85, 0.12), transparent 70%),
    #000;
}

/* Darken the copy side and fade the bottom edge into the page. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 62%, #000 100%),
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 30%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.steam {
  position: absolute;
  inset: -12% -6% 0;
  z-index: -2;
  background: url('img/steam.webp') center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 3%, 0) scale(1.02);
  }
  to {
    transform: translate3d(-3%, -4%, 0) scale(1.1);
  }
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

/* ---------------------------------------------------------------- device frames (real app screens) */

.device {
  position: relative;
  width: 280px;
  max-width: 100%;
  padding: 9px;
  border-radius: 46px;
  background: #0a0a0a;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 0 0 5px #050505, 0 50px 120px rgba(0, 0, 0, 0.9), 0 0 90px rgba(92, 242, 201, 0.1);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 37px;
}

.hero-devices {
  position: relative;
  height: 640px;
}

.hero-devices .device {
  position: absolute;
}

.hero-devices .front {
  top: 0;
  right: 6%;
  z-index: 2;
  width: 296px;
  transform: rotate(-3deg);
}

.hero-devices .back {
  top: 78px;
  right: 50%;
  width: 250px;
  transform: rotate(-10deg);
  filter: brightness(0.62) saturate(0.9);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 22px 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 8.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.hero h1 em {
  color: var(--mint);
}

.lede {
  max-width: 34ch;
  margin: 0 0 32px;
  color: var(--text-2);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.fine {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------------------------------------------------------------- sections */

section {
  position: relative;
}

.band {
  padding: clamp(64px, 10vw, 128px) 0;
}

.band + .band {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kicker {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.h2 {
  max-width: 18ch;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.h2 em {
  color: var(--mint);
}

.sub {
  max-width: 54ch;
  margin: 0;
  color: var(--text-2);
  font-size: 18px;
}

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #0c0c0c);
}

.sticker {
  width: 148px;
  height: 148px;
  margin: -22px 0 0 -26px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

/* features: how it works */

.features {
  display: grid;
  gap: clamp(56px, 9vw, 112px);
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.feature:nth-child(even) .feature-copy {
  order: 2;
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.feature-copy p {
  max-width: 38ch;
  margin: 0;
  color: var(--text-2);
  font-size: 18px;
}

.feature-copy .sticker {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 0 8px -18px;
}

.step-no {
  display: block;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.feature-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-art::before {
  content: '';
  position: absolute;
  inset: 8% 0;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(92, 242, 201, 0.13), transparent);
}

.feature-art .device {
  width: 272px;
}

/* gallery: inside the app */

.gallery {
  overflow: hidden;
}

.shots {
  display: flex;
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 8px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

.shot {
  flex: 0 0 236px;
  margin: 0;
  scroll-snap-align: start;
}

.shot .device {
  width: 100%;
  padding: 7px;
  border-radius: 38px;
  box-shadow: 0 0 0 4px #050505, 0 30px 80px rgba(0, 0, 0, 0.8);
}

.shot .device img {
  border-radius: 31px;
}

.shot figcaption {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.shot figcaption b {
  color: var(--text);
  font-weight: 600;
}

/* split: score explainer */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.gauge-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(92, 242, 201, 0.1), transparent 60%), var(--surface);
}

.scale {
  position: relative;
  height: 10px;
  margin: 26px 0 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--red), var(--amber) 48%, var(--mint));
}

.scale i {
  position: absolute;
  top: 50%;
  left: 74%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 13px;
}

.facts {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-2);
}

.facts svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.facts b {
  color: var(--text);
  font-weight: 600;
}

.big-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.big-score b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 92px;
  line-height: 1;
}

.big-score span {
  color: var(--text-2);
}

/* house rules */

.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.rule {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
}

.rule-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-raised);
  border: 1px solid var(--hairline-strong);
}

.rule-icon svg {
  width: 22px;
  height: 22px;
}

.rule h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.rule p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.named {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(92, 242, 201, 0.28);
  background: linear-gradient(90deg, rgba(92, 242, 201, 0.08), rgba(92, 242, 201, 0.02));
}

.named img {
  width: 84px;
  height: 84px;
}

.named h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
}

.named p {
  margin: 0;
  color: var(--text-2);
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 40px 0 0;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  color: var(--mint);
  font-family: var(--sans);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 64ch;
  margin: -6px 0 24px;
  color: var(--text-2);
}

/* final CTA */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(72px, 12vw, 150px) 0;
}

.final::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: 1100px;
  height: 700px;
  margin-left: -550px;
  background: radial-gradient(ellipse at center, rgba(92, 242, 201, 0.18), transparent 62%);
  pointer-events: none;
}

.final img {
  width: min(340px, 78vw);
  height: auto;
  margin: -24px auto 8px;
  /* The photo is near-black at its edges; fade them so it melts into the page. */
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 55%, transparent 100%);
}

.final .h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.final .sub {
  margin: 0 auto 34px;
}

.final .cta-row {
  justify-content: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-3);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.foot-h {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.foot-grid a {
  color: var(--text-2);
  text-decoration: none;
}

.foot-grid a:hover {
  color: var(--text);
}

.foot-tag {
  margin: 12px 0 0;
  max-width: 30ch;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------------- inner pages */

.page {
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}

/* A soft mint glow behind the page head, echoing the home page's final CTA. */
.page::before,
.center-page::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.page::before {
  top: -320px;
  left: 50%;
  width: 1400px;
  height: 640px;
  margin-left: -900px;
  background: radial-gradient(ellipse at center, rgba(92, 242, 201, 0.11), transparent 62%);
}

.page,
.center-page {
  isolation: isolate;
}

.page-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.page-head h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-lede {
  max-width: 54ch;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.8vw, 19px);
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  color: var(--text-2);
  font-size: 13px;
}

/* legal */

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.legal-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 28px;
}

.legal-nav {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
}

.legal-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}

.legal-nav a:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.legal-nav a[aria-current='page'] {
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 600;
}

.legal-nav a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--mint);
}

.toc {
  padding: 0 14px;
}

.toc-h {
  margin: 0 0 10px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
}

.legal-main {
  min-width: 0;
}

.prose {
  max-width: 70ch;
  color: #d9d9dc;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1 {
  display: none;
}

.prose h2 {
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  scroll-margin-top: 88px;
}

.prose blockquote + h2,
.prose > h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose h3 {
  margin: 32px 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li::marker {
  color: var(--mint);
}

.prose li + li {
  margin-top: 6px;
}

.prose blockquote {
  margin: 0 0 40px;
  padding: 18px 22px;
  border: 1px solid rgba(242, 178, 92, 0.28);
  border-left: 3px solid var(--amber);
  border-radius: 0 16px 16px 0;
  background: rgba(242, 178, 92, 0.07);
  color: var(--text);
  font-size: 16px;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-raised);
  font-size: 0.88em;
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.prose strong {
  color: var(--text);
}

.help-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 70ch;
  margin-top: 64px;
  padding: 22px 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #0c0c0c);
}

.help-art {
  width: 64px;
  height: 64px;
}

.help-card h2 {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.help-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* support */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-grid .card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-grid .card:hover {
  border-color: var(--hairline-strong);
}

.card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}

.contact-grid .card p {
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.card-link svg {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.card-link:hover svg {
  transform: translateX(3px);
}

.support-notes {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.note {
  padding: 26px 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.note h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.note p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.note-alert {
  border-color: rgba(255, 84, 113, 0.3);
  background: linear-gradient(180deg, rgba(255, 84, 113, 0.08), rgba(255, 84, 113, 0.02)), var(--surface);
}

.note-alert h2 {
  color: #ff8a9e;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 15px;
}

.ticks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

/* centered single-purpose pages (invite, person teaser, 404/410, privacy verify) */

.center-page {
  overflow: hidden;
  min-height: min(72vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(40px, 8vw, 88px) 0;
}

.center-page::before {
  left: 50%;
  top: 50%;
  width: 900px;
  height: 700px;
  margin: -380px 0 0 -450px;
  background: radial-gradient(ellipse at center, rgba(92, 242, 201, 0.12), transparent 60%);
}

.panel {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px) clamp(28px, 4vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.92));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.panel-art {
  width: 132px;
  height: 132px;
  margin: -8px auto 4px;
}

.center-page .kicker {
  margin-bottom: 10px;
}

.center-page h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.center-page p {
  text-wrap: pretty;
  max-width: 42ch;
  margin: 0 auto 16px;
  color: var(--text-2);
}

.center-page .cta-row {
  justify-content: center;
  margin-top: 28px;
}

.center-page form {
  display: contents;
}

.panel-links {
  margin: 24px auto 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3) !important;
  font-size: 14px;
}

.panel-links span {
  margin: 0 8px;
  color: var(--hairline-strong);
}

.code-card {
  margin: 24px 0 0;
  padding: 22px 16px 6px;
  border: 1px dashed rgba(92, 242, 201, 0.45);
  border-radius: 20px;
  background: rgba(92, 242, 201, 0.05);
}

.code-label {
  margin: 0 auto 6px !important;
  color: var(--text-3) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code {
  display: inline-block;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  text-transform: uppercase;
}

.code-note {
  font-size: 15px;
}

.teaser-ring {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--mint), rgba(92, 242, 201, 0.1) 40%, var(--mint) 100%);
  box-shadow: 0 0 60px rgba(92, 242, 201, 0.18);
}

.teaser-ring span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #000;
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
}

.teaser-city {
  display: inline-block;
  margin: 0 auto 4px !important;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  font-size: 14px;
}

.locked {
  max-width: 380px;
  margin: 22px auto 22px;
  padding: 16px 18px 18px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
}

.locked-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locked-head svg {
  width: 16px;
  height: 16px;
}

.fogs {
  display: grid;
  gap: 10px;
}

.fog {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-raised), #2c2c2e, var(--surface-raised));
}

.fog.short {
  width: 72%;
}

.fog.shorter {
  width: 46%;
}

/* pages without site chrome (privacy verify) */

.bare-header {
  display: flex;
  justify-content: center;
  padding: 28px var(--gutter) 0;
}

/* ---------------------------------------------------------------- motion + responsive */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .store {
    transition: none;
  }
  .steam {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 960px) {
  .hero .wrap,
  .split,
  .feature {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .feature-copy {
    order: 0;
  }
  .hero {
    min-height: 0;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 45%, #000 100%);
  }
  .hero-devices {
    height: 560px;
  }
  .hero-devices .front {
    right: auto;
    left: 50%;
    width: 270px;
    transform: translateX(-28%) rotate(-3deg);
  }
  .hero-devices .back {
    right: auto;
    left: 50%;
    width: 228px;
    transform: translateX(-88%) rotate(-10deg);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .rules {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .legal-side {
    position: static;
  }
  .legal-nav {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 6px;
  }
  .legal-nav a {
    padding: 9px 14px;
    font-size: 14px;
  }
  .legal-nav a[aria-current='page']::before {
    display: none;
  }
  .toc {
    display: none;
  }
  .support-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav a:not(.btn) {
    display: none;
  }
  .named {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 16px;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
  .big-score b {
    font-size: 72px;
  }
  .help-card {
    grid-template-columns: auto 1fr;
    gap: 14px 16px;
    padding: 20px;
  }
  .help-card .btn {
    grid-column: 1 / -1;
  }
  .help-art {
    width: 52px;
    height: 52px;
  }
  .contact-grid .card {
    padding: 24px;
  }
  .contact-grid .sticker {
    width: 112px;
    height: 112px;
    margin: -14px 0 0 -16px;
  }
  .center-page {
    min-height: 0;
  }
  .center-page .cta-row > *,
  .center-page .cta-row button {
    width: 100%;
  }
}

/* "a post about me" form (Register M2: /support, /about-me, every /p/* page) */

.am-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.am-steps {
  margin: 18px 0;
  padding-left: 20px;
  color: var(--text-2);
}

.am-steps li + li {
  margin-top: 8px;
}

.am-steps b {
  color: var(--text);
}

.am-card form {
  display: grid;
  gap: 16px;
}

.am-field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.am-req,
.am-opt {
  margin-left: 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 400;
}

.am-hint {
  margin: 4px 0 8px;
  color: var(--text-2);
  font-size: 13px;
}

.am-field input:not([type='checkbox']),
.am-field select,
.am-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
}

.am-field input:focus-visible,
.am-field select:focus-visible,
.am-field textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

.am-err {
  display: none;
  margin: 6px 0 0;
  color: var(--red);
  font-size: 13px;
}

.am-field:has(:user-invalid) .am-err {
  display: block;
}

.am-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.am-check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.am-fixed {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.am-submit {
  justify-self: start;
}

.teaser-facts {
  justify-content: center;
  margin: 10px 0 0;
}

.prose table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}


.prose {
  overflow-x: auto;
}

@media (max-width: 720px) {
  .am-grid,
  .am-row {
    grid-template-columns: 1fr;
  }
}
