/* Inner pages: privacy, terms, FAQ, guides, about, what's new, subscribe,
   unsubscribe, 404. Same tokens, type and motion as the landing page. */

.page { position: relative; padding-top: 130px; }
.page::before {
  content: ""; position: absolute; z-index: -1; top: -20vh; left: 50%; width: 120vw; height: 80vh; translate: -50% 0;
  background: radial-gradient(40% 50% at 30% 40%, rgba(90, 214, 154, .12), transparent 70%), radial-gradient(40% 50% at 70% 30%, rgba(47, 151, 224, .12), transparent 70%);
  pointer-events: none;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* hero */
.page-hero { max-width: 880px; margin: 0 auto 72px; padding: 0 32px; text-align: center; }
.page-hero.left { text-align: left; margin-left: 0; padding: 0; }
.page-hero h1 { font-size: clamp(42px, 6vw, 78px); letter-spacing: -.045em; line-height: .98; margin-bottom: 22px; }
.page-hero h1 em { font-size: 1.04em; }
.page-hero .lede { margin: 0 auto; max-width: 36em; }
.page-hero.left .lede { margin: 0; }
.page-meta { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.page-meta span { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #aab3af; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.page-meta span b { color: #fff; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(90, 214, 154, .3); background: rgba(90, 214, 154, .07); margin-bottom: 24px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: pulse 2.2s infinite; }

/* reading progress */
.progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--mint), var(--sea), var(--sky)); }

/* long-form */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; max-width: 1120px; margin: 0 auto; padding: 0 32px 40px; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow: auto; padding: 4px 4px 4px 0; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc p { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6f7a76; margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: #8f9894; text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: #e6ebe8; }
.toc a.on { color: #fff; border-left-color: var(--mint); }

.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: #c3cbc8; }
.prose > section, .prose > .block { padding-bottom: 8px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.15; color: #fff; margin: 56px 0 18px; scroll-margin-top: 100px; }
.prose > section:first-child h2, .prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; letter-spacing: -.015em; color: #f0f3f1; margin: 32px 0 10px; scroll-margin-top: 100px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 9px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--mint), var(--sky)); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 34px; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); color: #03140c; background: var(--mint); }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(90, 214, 154, .35); transition: border-color .2s, color .2s; }
.prose a:hover { color: #8ff0bf; border-bottom-color: currentColor; }
.prose code { font: 500 .9em var(--mono); background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 6px; }

/* cards */
.card-x { background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.cta-card { text-align: center; padding: 44px 32px; border-radius: 32px; background: linear-gradient(180deg, rgba(90, 214, 154, .08), rgba(47, 151, 224, .05)), var(--ink-2); border: 1px solid rgba(90, 214, 154, .22); }
.cta-card h2, .cta-card h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; margin-bottom: 12px; color: #fff; }
.cta-card p { color: #c3cbc8; margin: 0 auto 22px; max-width: 32em; }
.mail-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: #fff; color: #000; text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .45s var(--spring), box-shadow .3s; box-shadow: 0 8px 30px rgba(90, 214, 154, .18); }
.mail-btn:hover { transform: translateY(-2px) scale(1.03); }
.mail-btn svg { width: 18px; height: 18px; }

/* ads keep the old placements */
.ad-slot { margin: 36px 0; border-radius: 22px; overflow: hidden; }
.ad-slot ins { width: 100%; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

/* FAQ */
.faq-search { position: relative; max-width: 560px; margin: 0 auto 34px; }
.faq-search input { width: 100%; appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; font: 400 16px "Geist", sans-serif; padding: 15px 18px 15px 48px; border-radius: 999px; outline: none; transition: border-color .2s, background .2s; }
.faq-search input:focus { border-color: rgba(90, 214, 154, .5); background: rgba(255, 255, 255, .06); }
.faq-search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: #7f8a86; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 22px; background: var(--ink-2); transition: border-color .25s, background .25s; }
.faq-list details[open] { border-color: rgba(90, 214, 154, .3); background: #141a18; }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 11px; height: 11px; border: solid #8a948f; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .45s var(--spring), border-color .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--mint); }
.faq-list .ans { padding: 0 26px 24px; color: #bcc4c0; line-height: 1.65; }
.faq-list details[open] .ans { animation: fadeUp .45s var(--spring); }
.faq-empty { text-align: center; color: var(--muted); padding: 30px 0; display: none; }
.faq-list mark { background: rgba(90, 214, 154, .25); color: #fff; border-radius: 3px; padding: 0 2px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* Guides */
.guide-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.guide-nav a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; color: #e6ebe8; font-size: 15px; font-weight: 500; line-height: 1.3; transition: border-color .25s, transform .45s var(--spring), background .25s; }
.guide-nav a:hover { border-color: rgba(90, 214, 154, .35); transform: translateY(-2px); background: #151a19; }
.guide-nav a span:first-child, .guide-card .g-num { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 600 13px/1 var(--mono); color: #03140c; background: linear-gradient(135deg, var(--mint), var(--sky)); }
.guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 64px 0 22px; }
.guide-head h3 { font-size: 22px; letter-spacing: -.02em; margin: 0; }
.guides-list { display: grid; gap: 18px; }
.guide-card { scroll-margin-top: 96px; padding: 34px 36px 26px; border-radius: 28px; background: var(--ink-2); border: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 22px; }
.guide-card .g-num { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; }
.guide-card h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; margin: 6px 0 10px; color: #fff; }
.guide-card .g-body > p:first-of-type { color: #aeb7b3; margin-bottom: 18px; }
.guide-card .g-body > p:last-child { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(90, 214, 154, .07); border: 1px solid rgba(90, 214, 154, .18); color: #cfe9dc; font-size: 15.5px; }
.guide-card .g-body > p:last-child strong { color: var(--mint); }
.guide-card.hit { animation: flash 1.2s ease; }
@keyframes flash { 0% { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(90, 214, 154, .15); } 100% { border-color: var(--line); box-shadow: none; } }

/* About */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 8px; }
.value { padding: 28px 26px; border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); transition: transform .5s var(--spring), border-color .3s; }
.value:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .16); }
.value i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; margin-bottom: 20px; background: linear-gradient(135deg, var(--mint), var(--sky)); color: #03140c; }
.value i svg { width: 24px; height: 24px; }
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 15.5px; margin: 0; line-height: 1.6; }
.mission { margin: 90px auto 60px; max-width: 900px; text-align: center; }
.mission .kicker { margin-bottom: 22px; }
.mission h2 { font-size: 18px; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 20px; }
.mission p { font: 400 clamp(28px, 3.4vw, 44px)/1.22 "Instrument Serif", Georgia, serif; color: #f1efe8; margin: 0; }

/* What's New */
.feature-shot { position: relative; max-width: 980px; margin: 0 auto 90px; padding: 0 32px; }
.feature-shot img { width: 100%; height: auto; border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 30px 80px -40px rgba(90, 214, 154, .35); background: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 24px 24px; border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line); transition: transform .5s var(--spring), border-color .3s; }
.steps li:hover { transform: translateY(-4px); border-color: rgba(90, 214, 154, .3); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 44px/1 "Instrument Serif", Georgia, serif; font-style: italic; margin-bottom: 16px; background: linear-gradient(100deg, var(--mint), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; line-height: 1.6; }

/* status screens: subscribe, unsubscribe, 404 */
.status { min-height: 100vh; display: grid; place-items: center; padding: 120px 16px 60px; }
.status-card { width: min(100%, 440px); text-align: center; padding: 44px 34px 38px; border-radius: 34px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)), var(--ink-2); border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); animation: popIn .8s var(--spring) both; }
.status-card .app-mark { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 28px; background: #fff; box-shadow: 0 16px 44px -8px rgba(68, 184, 194, .5); }
.status-card h1 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.status-card p { color: #b9c2be; margin: 0 auto 26px; line-height: 1.6; }
.status-card .small { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.status-card .store-btn { font-size: 19px; }
.btn-main { appearance: none; border: 0; cursor: pointer; width: 100%; height: 52px; border-radius: 999px; background: #fff; color: #000; font: 600 16px "Geist", sans-serif; transition: transform .45s var(--spring), opacity .2s; }
.btn-main:hover { transform: scale(1.02); }
.btn-main:disabled { opacity: .55; cursor: default; transform: none; }
.spinner { width: 50px; height: 50px; margin: 0 auto 30px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .14); border-top-color: var(--go); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.status-card .state-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 22px; background: rgba(255, 255, 255, .06); }
.status-card .state-ico svg { width: 30px; height: 30px; }
.big-404 { font: 400 clamp(120px, 22vw, 220px)/.85 "Instrument Serif", Georgia, serif; font-style: italic; letter-spacing: -.03em; background: linear-gradient(100deg, var(--mint), var(--sea) 45%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 10px; }

/* footer used on every page */
.footer-full { border-top: 1px solid var(--line); max-width: 1200px; margin: 60px auto 0; padding: 44px 32px 48px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; color: var(--muted); font-size: 14px; }
.footer-full .foot-brand { font-size: 16px; }
.footer-full .foot-tag { margin: 12px 0 0; max-width: 22em; line-height: 1.55; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols p { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6f7a76; margin: 0 0 14px; }
.foot-cols a { display: block; color: #c3cbc8; text-decoration: none; padding: 5px 0; transition: color .2s; }
.foot-cols a:hover, .foot-cols a[aria-current] { color: #fff; }
.foot-copy { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 1080px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; margin-bottom: 40px; padding: 18px 20px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); }
  .toc ol { columns: 2; column-gap: 24px; border: 0; }
  .toc a { border: 0; padding: 6px 0; }
  .guide-nav { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-full { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page { padding-top: 104px; }
  .wrap, .wrap-narrow, .page-hero, .doc, .feature-shot { padding-left: 16px; padding-right: 16px; }
  .page-hero { margin-bottom: 48px; }
  .toc ol { columns: 1; }
  .guide-nav, .values, .steps { grid-template-columns: 1fr; }
  .guide-card { grid-template-columns: 1fr; padding: 26px 22px 20px; }
  .guide-card .g-num { margin-bottom: 14px; }
  .faq-list summary { font-size: 16.5px; padding: 19px 52px 19px 20px; }
  .faq-list .ans { padding: 0 20px 20px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-full { padding: 36px 16px 40px; }
  .status-card { padding: 36px 22px 30px; }
}

/* Sign in + dashboard */
.btn-apple { appearance: none; border: 0; cursor: pointer; width: 100%; height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #000; font: 600 17px "Geist", sans-serif; letter-spacing: -.01em; transition: transform .45s var(--spring), opacity .2s; box-shadow: 0 10px 30px -8px rgba(90, 214, 154, .35); }
.btn-apple svg { width: 20px; height: 20px; margin-top: -2px; }
.btn-apple:hover { transform: scale(1.02); }
.btn-apple:disabled { opacity: .6; cursor: default; transform: none; }
.auth-err { margin: 16px 0 0 !important; padding: 10px 14px; border-radius: 14px; background: rgba(255, 69, 58, .12); border: 1px solid rgba(255, 69, 58, .3); color: #ff9a92 !important; font-size: 14px; }
.auth-card .small a { color: #dfe5e2; }
.dash { padding-bottom: 40px; min-height: 80vh; }
.dash-bar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.dash-out { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: none; color: #dfe5e2; font: 500 13px "Geist", sans-serif; transition: background .2s; }
.dash-out:hover { background: rgba(255, 255, 255, .07); }
.dash-out svg { width: 14px; height: 14px; }
.dash-loading { display: grid; place-items: center; padding: 80px 0; }
.sub-card, .sub-empty { max-width: 580px; margin: 0 auto; border-radius: 30px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; animation: popIn .7s var(--spring) both; }
.sub-state { display: flex; align-items: center; gap: 10px; padding: 16px 24px; font-weight: 600; font-size: 15px; border-bottom: 1px solid; }
.sub-state i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.sub-state.ok { color: #4cd07a; background: rgba(48, 209, 88, .08); border-color: rgba(48, 209, 88, .2); }
.sub-state.bad { color: #ff7a70; background: rgba(255, 69, 58, .08); border-color: rgba(255, 69, 58, .2); }
.sub-rows { margin: 0; padding: 8px 24px; }
.sub-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sub-rows > div:last-child { border-bottom: 0; }
.sub-rows dt { color: var(--muted); font-size: 15px; }
.sub-rows dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }
.sub-actions { display: grid; gap: 10px; padding: 8px 24px 24px; }
.sub-actions .mail-btn { justify-content: center; }
.btn-ghost { appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: none; color: #e6ebe8; font: 500 15px "Geist", sans-serif; transition: background .2s; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-ghost svg { width: 16px; height: 16px; }
.btn-ghost.busy svg { animation: spin 1s linear infinite; }
.btn-ghost:disabled { opacity: .7; cursor: default; }
.sub-actions .small { text-align: center; font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.sub-empty { text-align: center; padding: 40px 30px; }
.sub-empty .state-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 20px; background: rgba(255, 255, 255, .06); color: #8f9894; }
.sub-empty .state-ico svg { width: 30px; height: 30px; }
.sub-empty h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.sub-empty p { color: var(--muted); max-width: 22em; margin: 0 auto 22px; }
