:root {
  color-scheme: light dark;
  --canvas: #f9f7ff;
  --canvas-soft: #f2eefe;
  --surface: #fffefe;
  --surface-raised: #ffffff;
  --ink: #11113c;
  --muted: #605d88;
  --line: #ded9ec;
  --accent: #6842db;
  --accent-strong: #4f2bad;
  --accent-soft: #eee8ff;
  --lime: #d6f338;
  --coral: #ff6f67;
  --focus: #d14b65;
  --shadow: rgba(57, 33, 123, 0.16);
  --max-width: 1180px;
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: 0.16em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.marketing-page { overflow-x: hidden; }
.marketing-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(18px); }
.marketing-nav { width: min(calc(100% - 40px), var(--max-width)); min-height: 72px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 10px; color: var(--ink); font-size: 1.16rem; font-weight: 950; letter-spacing: -0.055em; text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark img { width: 38px; height: 38px; object-fit: contain; }
.wordmark > span > span { color: var(--accent); }
.marketing-nav nav { display: flex; align-items: center; justify-content: center; gap: 30px; }
.marketing-nav nav a, .marketing-footer nav a { color: var(--muted); font-size: 0.87rem; font-weight: 800; text-decoration: none; }
.marketing-nav nav a:hover, .marketing-footer nav a:hover { color: var(--ink); }
.nav-cta { justify-self: end; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-strong); font-size: 0.85rem; font-weight: 900; line-height: 1.3; text-decoration: none; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-cta:active { transform: translateY(1px); }

.hero { width: min(calc(100% - 40px), var(--max-width)); min-height: calc(100dvh - 72px); margin: 0 auto; padding: clamp(30px, 5vw, 66px) 0 28px; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr); align-items: center; gap: clamp(30px, 5vw, 74px); }
.hero-copy { position: relative; z-index: 2; padding-bottom: 24px; animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-kicker { margin-bottom: 17px; color: var(--accent-strong); font-size: 0.75rem; font-weight: 950; letter-spacing: 0.105em; text-transform: uppercase; }
.hero h1 { max-width: 9.5ch; margin-bottom: 23px; font-size: clamp(3.35rem, 6.8vw, 6rem); font-weight: 950; letter-spacing: -0.073em; line-height: 0.92; }
.hero-lead { max-width: 29rem; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.03rem, 1.45vw, 1.2rem); font-weight: 650; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 23px; }
.button { display: inline-flex; min-height: 50px; padding: 12px 20px; align-items: center; justify-content: center; border-radius: 999px; font-weight: 900; line-height: 1; text-decoration: none; white-space: nowrap; transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.button:active { transform: translateY(1px) scale(0.985); }
.button-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 13px 28px var(--shadow); }
.button-primary:hover { background: var(--accent); color: #fff; box-shadow: 0 16px 34px var(--shadow); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 0.93rem; font-weight: 900; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent-strong); }
.text-link span { color: var(--accent); font-size: 1.2em; }

.hero-visual { position: relative; min-height: min(690px, calc(100dvh - 110px)); align-self: stretch; animation: rise-in 820ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-orbit { position: absolute; inset: 4% -15% -2% 4%; border-radius: 52% 48% 38% 62%; background: var(--accent-soft); transform: rotate(-7deg); }
.hero-orbit::before { content: ""; position: absolute; width: 38%; aspect-ratio: 1; right: 4%; top: 7%; border-radius: 50%; background: color-mix(in srgb, var(--lime) 72%, transparent); }
.hero-phone { position: absolute; z-index: 2; width: min(74%, 430px); max-height: calc(100dvh - 102px); left: 50%; bottom: 0; object-fit: contain; transform: translateX(-50%) rotate(2.4deg); filter: drop-shadow(0 28px 34px var(--shadow)); }
.roast-note { position: absolute; z-index: 3; padding: 12px 17px; border-radius: 15px; color: #11113c; font-size: clamp(0.78rem, 1.15vw, 0.96rem); font-weight: 950; line-height: 1.2; box-shadow: 0 12px 24px var(--shadow); }
.roast-note-top { right: -1%; top: 20%; background: var(--lime); transform: rotate(6deg); }
.roast-note-bottom { left: -1%; bottom: 19%; background: var(--coral); color: #32101a; transform: rotate(-7deg); }
.hero-sticker { position: absolute; z-index: 4; width: clamp(92px, 12vw, 142px); right: -2%; bottom: 3%; filter: drop-shadow(0 12px 18px var(--shadow)); animation: sticker-float 4.2s ease-in-out infinite; }

.confession { padding: clamp(100px, 13vw, 176px) max(20px, calc((100vw - var(--max-width)) / 2)); background: var(--surface); }
.confession-heading { max-width: 900px; margin: 0 0 74px; }
.confession-heading h2, .screens-heading h2, .privacy-copy h2, .final-call h2 { margin-bottom: 16px; font-size: clamp(2.7rem, 6.6vw, 5.8rem); font-weight: 950; letter-spacing: -0.065em; line-height: 0.97; }
.confession-heading p { margin: 0; color: var(--accent-strong); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 850; }
.steps { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); grid-template-areas: "share rank" "roast rank"; gap: 14px; }
.step { min-height: 230px; padding: clamp(25px, 4vw, 42px); border-radius: 26px; display: flex; gap: clamp(20px, 3vw, 38px); align-items: flex-start; }
.step-number { flex: 0 0 auto; color: currentColor; font-size: 0.78rem; font-weight: 950; opacity: 0.58; }
.step h3 { margin: 0 0 10px; font-size: clamp(1.45rem, 2.3vw, 2.2rem); font-weight: 950; letter-spacing: -0.045em; line-height: 1; }
.step p { max-width: 42ch; margin: 0; font-weight: 650; line-height: 1.55; }
.step-share { grid-area: share; background: var(--accent-soft); }
.step-rank { grid-area: rank; min-height: 474px; padding-top: 64px; background: var(--accent); color: #fff; align-items: flex-start; }
.step-rank p { color: #f0ebff; }
.step-roast { grid-area: roast; margin-left: 12%; background: color-mix(in srgb, var(--coral) 78%, var(--surface)); color: #281329; }

.screens { padding: clamp(100px, 13vw, 172px) max(20px, calc((100vw - var(--max-width)) / 2)); background: var(--canvas-soft); overflow: hidden; }
.screens-heading { max-width: 720px; margin-bottom: 68px; }
.screens-heading p { max-width: 39rem; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); font-weight: 700; }
.screen-gallery { display: grid; grid-template-columns: 0.86fr 1fr 0.86fr; gap: clamp(16px, 3vw, 38px); align-items: start; }
.screen-shot { margin-bottom: 0; }
.screen-shot:nth-child(2) { margin-top: 86px; }
.screen-shot:nth-child(3) { margin-top: 22px; }
.screen-shot img { width: 100%; border-radius: 30px; filter: drop-shadow(0 24px 30px var(--shadow)); transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1); }
.screen-shot:hover img { transform: translateY(-8px) rotate(-0.6deg); }
.screen-shot:nth-child(2):hover img { transform: translateY(-8px) rotate(0.6deg); }
.screen-shot figcaption { padding: 20px 7px 0; }
.screen-shot figcaption strong { display: block; margin-bottom: 4px; font-size: 1.13rem; font-weight: 950; letter-spacing: -0.025em; }
.screen-shot figcaption span { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 650; line-height: 1.45; }

.privacy-promise { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; padding: clamp(110px, 14vw, 186px) 0; display: grid; grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr); gap: clamp(50px, 9vw, 120px); align-items: center; }
.privacy-icon-wrap { position: relative; aspect-ratio: 1; border-radius: 35% 65% 58% 42%; display: grid; place-items: center; background: var(--accent-soft); transform: rotate(-5deg); }
.privacy-icon-wrap::after { content: ""; position: absolute; width: 32%; aspect-ratio: 1; right: -4%; top: -3%; border-radius: 50%; background: var(--lime); }
.privacy-icon-wrap img { position: relative; z-index: 2; width: 83%; transform: rotate(5deg); filter: drop-shadow(0 16px 20px var(--shadow)); }
.privacy-copy h2 { max-width: 10ch; font-size: clamp(2.65rem, 5.7vw, 5rem); }
.privacy-copy > p { max-width: 39rem; margin-bottom: 34px; color: var(--muted); font-size: 1.06rem; font-weight: 650; }
.privacy-copy ul { margin: 0 0 32px; padding: 0; list-style: none; }
.privacy-copy li { display: grid; grid-template-columns: 142px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.privacy-copy li strong { font-weight: 950; }
.privacy-copy li span { color: var(--muted); }

.final-call { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto clamp(32px, 5vw, 64px); padding: clamp(42px, 7vw, 76px); border-radius: 32px; background: var(--accent-strong); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 46px; align-items: end; overflow: hidden; position: relative; }
.final-call::before { content: ""; position: absolute; width: 250px; aspect-ratio: 1; right: -90px; top: -120px; border-radius: 50%; background: color-mix(in srgb, var(--lime) 25%, transparent); }
.final-call > * { position: relative; z-index: 1; }
.final-call h2 { max-width: 12ch; margin-bottom: 18px; font-size: clamp(2.35rem, 5vw, 4.6rem); }
.final-call p { max-width: 39rem; margin: 0; color: #e6ddff; font-weight: 700; }
.button-light { background: #fff; color: #311873; box-shadow: 0 12px 28px rgba(25, 12, 58, 0.23); }
.button-light:hover { background: var(--lime); color: #20104b; transform: translateY(-2px); }

.marketing-footer { width: min(calc(100% - 40px), var(--max-width)); min-height: 210px; margin: 0 auto; padding: 54px 0 42px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 36px 60px; align-items: start; }
.footer-brand p, .footer-note { color: var(--muted); font-size: 0.86rem; font-weight: 650; }
.footer-brand p { margin: 13px 0 0; }
.marketing-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.footer-note { grid-column: 1 / -1; margin: 0; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sticker-float {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

/* Shared legal pages */
.page-shell { width: min(calc(100% - 40px), 780px); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.header-inner { width: min(calc(100% - 40px), 1120px); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-size: 1.1rem; font-weight: 950; letter-spacing: -0.05em; text-decoration: none; }
.brand span { color: var(--accent); }
.site-header nav, .site-footer > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.site-header nav a, .site-footer a { font-size: 0.91rem; font-weight: 800; text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--ink); }
.hub { min-height: 100dvh; padding: clamp(90px, 16vw, 180px) 0 64px; }
.kicker { margin: 0 0 13px; color: var(--accent-strong); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.hub h1, .document h1, .deletion-page h1 { max-width: 15ch; margin-bottom: 16px; font-size: clamp(2.65rem, 8vw, 5.4rem); line-height: 0.96; letter-spacing: -0.07em; }
.document h2, .deletion-page h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.12; letter-spacing: -0.035em; }
.document h3 { margin: 30px 0 10px; font-size: 1.06rem; line-height: 1.3; letter-spacing: -0.015em; }
.lead { max-width: 37rem; margin-bottom: 38px; color: var(--muted); font-size: 1.12rem; }
.hub-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-link { display: block; min-height: 170px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.hub-link strong { display: block; margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -0.035em; }
.hub-link span { display: block; color: var(--muted); line-height: 1.45; }
.hub-link:hover { border-color: var(--accent); box-shadow: 0 14px 30px var(--shadow); color: var(--ink); transform: translateY(-2px); }
.hub-link:active, button:active { transform: translateY(1px); }
.document { padding-top: clamp(58px, 10vw, 110px); padding-bottom: 72px; }
.document-heading { margin-bottom: 58px; }
.updated { color: var(--muted); font-size: 0.95rem; }
.document section { margin-top: 44px; }
.document p, .document li { max-width: 70ch; }
.document ul, .deletion-details ol { padding-left: 1.3rem; }
.document li + li, .deletion-details li + li { margin-top: 10px; }
.deletion-page { padding-top: clamp(58px, 10vw, 110px); padding-bottom: 72px; }
.deletion-intro { margin-bottom: 48px; }
.deletion-intro h1 { max-width: 12ch; }
.deletion-panel { padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.deletion-panel > p, .deletion-details > p { max-width: 63ch; color: var(--muted); }
.field { margin-top: 25px; }
label { display: block; font-weight: 800; }
input[type="email"] { width: 100%; min-height: 50px; margin-top: 7px; padding: 12px 13px; border: 1px solid #777388; border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
input[type="email"]:focus { border-color: var(--accent); }
.field-help, .field-error { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.45; }
.field-help { color: var(--muted); }
.field-error { color: #ae213f; font-weight: 800; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 23px; font-size: 0.95rem; font-weight: 700; line-height: 1.45; }
.consent-row input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
button { min-height: 50px; margin-top: 24px; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--accent-strong); color: #fff; cursor: pointer; font: inherit; font-weight: 850; transition: background-color 160ms ease, transform 160ms ease; }
button:hover { background: var(--accent); }
.email-fallback { margin: 24px 0 0; font-size: 0.92rem; }
.deletion-details { margin-top: 62px; padding-left: clamp(0px, 7vw, 84px); }
.deletion-details ol { max-width: 63ch; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px max(20px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); background: var(--surface); }

@media (max-width: 900px) {
  .marketing-nav { grid-template-columns: 1fr auto; }
  .marketing-nav nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 72px; gap: 18px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 10ch; }
  .hero-visual { min-height: 680px; }
  .hero-phone { width: min(68%, 430px); }
  .roast-note-top { right: 8%; }
  .roast-note-bottom { left: 8%; }
  .hero-sticker { right: 8%; }
  .steps { grid-template-columns: 1fr; grid-template-areas: "share" "rank" "roast"; }
  .step, .step-rank { min-height: 0; }
  .step-rank { padding-top: clamp(25px, 4vw, 42px); }
  .step-roast { margin-left: 0; }
  .privacy-promise { grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); gap: 42px; }
  .final-call { grid-template-columns: 1fr; align-items: start; }
  .final-call .button { justify-self: start; }
}

@media (max-width: 700px) {
  .marketing-nav, .hero, .privacy-promise, .final-call, .marketing-footer { width: min(calc(100% - 32px), var(--max-width)); }
  .marketing-nav { min-height: 66px; }
  .wordmark { font-size: 1.03rem; }
  .wordmark img { width: 34px; height: 34px; }
  .nav-cta { padding: 8px 13px; font-size: 0.79rem; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(3.05rem, 15vw, 4.4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-visual { min-height: 570px; margin-top: 18px; }
  .hero-phone { width: min(77%, 355px); }
  .roast-note { padding: 9px 12px; border-radius: 12px; }
  .roast-note-top { right: 0; top: 21%; }
  .roast-note-bottom { left: 0; bottom: 18%; }
  .hero-sticker { right: 0; bottom: 0; }
  .confession, .screens { padding-left: 16px; padding-right: 16px; }
  .confession-heading { margin-bottom: 42px; }
  .confession-heading h2, .screens-heading h2, .privacy-copy h2, .final-call h2 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .step { border-radius: 22px; flex-direction: column; gap: 10px; }
  .screen-gallery { grid-template-columns: 78vw 78vw 78vw; gap: 18px; margin-right: -16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 16px; padding-bottom: 20px; }
  .screen-shot, .screen-shot:nth-child(2), .screen-shot:nth-child(3) { margin-top: 0; scroll-snap-align: center; }
  .screen-shot img { border-radius: 24px; }
  .privacy-promise { grid-template-columns: 1fr; gap: 54px; }
  .privacy-icon-wrap { width: min(86vw, 430px); justify-self: center; }
  .privacy-copy li { grid-template-columns: 1fr; gap: 3px; }
  .final-call { padding: 38px 25px; border-radius: 26px; }
  .marketing-footer { grid-template-columns: 1fr; }
  .marketing-footer nav { justify-content: flex-start; }
  .footer-note { grid-column: auto; }
  .page-shell, .header-inner { width: min(calc(100% - 32px), 780px); }
  .header-inner { min-height: 78px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
  .site-header nav { gap: 15px; }
  .hub { padding-top: 88px; }
  .hub-links { grid-template-columns: 1fr; }
  .hub-link { min-height: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 28px 16px; }
  .deletion-details { padding-left: 0; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #16131f;
    --canvas-soft: #1d1928;
    --surface: #201c2b;
    --surface-raised: #272233;
    --ink: #f7f3ff;
    --muted: #c7c0db;
    --line: #433b55;
    --accent: #a78bff;
    --accent-strong: #beaaff;
    --accent-soft: #2c2447;
    --focus: #ff9aac;
    --shadow: rgba(2, 1, 8, 0.42);
  }
  .marketing-header { background: color-mix(in srgb, var(--canvas) 88%, transparent); }
  .nav-cta { color: var(--ink); }
  .nav-cta:hover { color: #171321; }
  .button-primary { color: #171321; }
  .hero-orbit::before { background: color-mix(in srgb, var(--lime) 58%, transparent); }
  .step-rank { background: #5f3bc9; }
  .step-roast { background: #6d383f; color: #fff4f5; }
  .privacy-icon-wrap::after { background: #b9d92f; }
  .final-call { background: #4f2bad; }
  .button-light { color: #311873; }
  input[type="email"] { border-color: #817c92; }
  .field-error { color: #ff9aac; }
  button { background: var(--accent-strong); color: #201b2e; }
  button:hover { background: var(--accent); }
}

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

@media (prefers-reduced-transparency: reduce) {
  .marketing-header { background: var(--canvas); backdrop-filter: none; }
}
