/* The same licensed fonts, surfaces, and accent used by the app and main site. */
@font-face { font-family: 'Space Grotesk'; src: url('/assets/SpaceGrotesk-Regular.e2f576b8f635.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/SpaceGrotesk-Medium.97f26a8febcb.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/SpaceGrotesk-SemiBold.e5cf02ec3649.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/SpaceGrotesk-Bold.c658f3a7dea3.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --cm-bg: #050814;
  --cm-surface: #0e1424;
  --cm-surface-raised: #111a33;
  --cm-ink: #f4f7ff;
  --cm-muted: #aeb9cb;
  --cm-line: #27334b;
  --cm-mint: #6af6d8;
  --cm-mint-soft: rgb(106 246 216 / 10%);
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  background: var(--cm-bg);
  color: var(--cm-ink);
  font-size: 15px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #0a0f23, #0e162f 28%, #050814 68%); }
a { color: var(--cm-mint); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button, .download-link { transition: background .18s, border-color .18s, transform .18s; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cm-mint); outline-offset: 4px; }
section[id], details[id] { scroll-margin-top: 110px; }
.skip-link { position: fixed; z-index: 60; top: 10px; inset-inline-start: 14px; padding: 10px 18px; border-radius: 999px; background: var(--cm-mint); color: var(--cm-bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px max(48px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--cm-line); background: rgb(5 8 20 / 94%); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 30; }
.brand { color: var(--cm-ink); font-size: 22px; font-weight: 700; letter-spacing: -.9px; white-space: nowrap; }
.brand-accent { color: var(--cm-mint); }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-link:hover { text-decoration: none; color: var(--cm-mint); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-inline-start: auto; font-size: .8rem; font-weight: 600; }
.site-nav a { color: var(--cm-muted); padding: 9px 0; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--cm-mint); }
.site-nav a[aria-current='page'] { color: var(--cm-ink); border: 1px solid var(--cm-line); border-radius: 999px; padding: 9px 16px; background: var(--cm-surface); }
.site-nav .header-sign-out { width: auto; min-height: 38px; margin-inline-start: auto; padding: 7px 14px; font-size: .8rem; white-space: nowrap; }
.language-control { width: auto; margin: 0; }
.language-control select { width: 120px; min-height: 38px; margin: 0; padding: 7px 10px; border: 1px solid var(--cm-line); border-radius: 999px; background: var(--cm-bg); color: var(--cm-muted); font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(1180px, calc(100% - 96px)); margin: 0 auto; min-height: 70vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; gap: 28px; padding: 56px 0 72px; }
.portal-shell, .desktop-shell { display: block; }
.card { width: min(100%, 520px); padding: 32px; border: 1px solid var(--cm-line); border-radius: 20px; background: var(--cm-surface); box-shadow: 0 20px 48px -25px rgb(0 0 0 / 30%); }
.card-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1, h2, h3 { font-family: inherit; color: var(--cm-ink); font-weight: 600; }
h1 { margin: 20px 0 16px; font-size: clamp(1.9rem, 4.8vw, 2.7rem); line-height: 1.12; letter-spacing: -.06em; }
h2 { margin: 26px 0 10px; font-size: 1.25rem; line-height: 1.35; letter-spacing: -.025em; }
h3 { font-size: 1rem; line-height: 1.4; }
p { color: var(--cm-muted); line-height: 1.65; }
.eyebrow { margin: 0 0 14px; color: var(--cm-mint); font-size: .73rem; font-weight: 700; letter-spacing: .14em; }
.portal-intro { margin-bottom: 32px; max-width: 820px; }
.portal-intro h1 { margin: 12px 0 14px; font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
.portal-intro > p:last-child { max-width: 640px; margin: 0; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.account-layout:has(> .billing-panel.hidden) { grid-template-columns: minmax(0, 620px); }
.account-layout > .card { width: 100%; min-width: 0; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 1.3rem; }
.step-marker { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--cm-mint-soft); color: var(--cm-mint); font-size: .8rem; font-weight: 700; }
button, input, select, textarea { width: 100%; }
button { min-height: 46px; padding: 11px 16px; border: 1px solid var(--cm-line); border-radius: 999px; background: var(--cm-surface-raised); color: var(--cm-ink); cursor: pointer; font-weight: 600; font-size: .92rem; line-height: 1.5; }
button:hover { border-color: var(--cm-mint); background: #15243c; }
button:disabled { cursor: wait; opacity: .55; transform: none; }
.provider { margin-top: 10px; background: #f4f7ff; color: var(--cm-bg); border-color: #f4f7ff; }
.provider:hover { background: #dfe8f2; border-color: #dfe8f2; }
.provider.apple { background: var(--cm-bg); color: var(--cm-ink); border-color: #536078; }
.provider.apple:hover { background: var(--cm-surface-raised); border-color: var(--cm-ink); }
.provider-note { margin: 8px 2px 0; font-size: .8rem; color: var(--cm-muted); }
.primary, .button.primary, .download-link.primary { background: var(--cm-mint); color: var(--cm-bg); border-color: var(--cm-mint); }
.primary:hover, .button.primary:hover, .download-link.primary:hover { background: #8cf9e1; border-color: #8cf9e1; }
.danger { margin-top: 12px; border-color: #8c4650; color: #ffb6bf; }
.danger:hover { background: #381b24; border-color: #ffb6bf; }
.button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; margin: 10px 0; padding: 11px 20px; border: 1px solid var(--cm-line); border-radius: 999px; background: var(--cm-surface-raised); color: var(--cm-ink); text-decoration: none; font-size: .92rem; font-weight: 600; line-height: 1.5; text-align: center; }
.button:hover { text-decoration: none; border-color: var(--cm-mint); }
.legal { margin: 24px 0 0; text-align: center; font-size: .8rem; }
.legal a { color: var(--cm-muted); }
.legal a:hover { color: var(--cm-mint); }
code { display: block; overflow-wrap: anywhere; margin: 8px 0; padding: 12px; border-radius: 12px; background: var(--cm-bg); color: var(--cm-mint); letter-spacing: .08em; }
.wide { margin: 16px 0; }
label { display: block; margin-top: 14px; color: #cbd5e1; font-size: .88rem; }
input, select, textarea { margin-top: 6px; padding: 13px 14px; border: 1px solid #36465f; border-radius: 12px; background: var(--cm-bg); color: var(--cm-ink); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cm-mint); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #8190a9; }
.divider { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; color: #8492a7; font-size: .8rem; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--cm-line); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.text-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.link { width: auto; min-height: auto; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--cm-mint); font-weight: 500; font-size: .8rem; }
.link:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.notice { margin: 18px 0; padding: 14px 16px; border: 1px solid #3e5b70; border-radius: 12px; background: #11263a; color: #d9f8f1; line-height: 1.5; overflow-wrap: anywhere; }
.notice.error { border-color: #8c4650; background: #381b24; color: #ffd9de; }
.account { padding: 12px 14px; border-radius: 12px; background: var(--cm-bg); color: #dbe4f2; overflow-wrap: anywhere; }
.nodes { margin: 16px 0; }
.node { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--cm-line); }
.node strong, .node small { display: block; overflow-wrap: anywhere; }
.node small { margin-top: 3px; color: var(--cm-muted); }
.node button { width: auto; min-height: 38px; color: #ffb6bf; }
.node.peer { padding-inline-start: 18px; border-top-style: dashed; }
.fallback { margin-top: 22px; color: var(--cm-muted); font-size: .9rem; }
.fallback summary { cursor: pointer; color: var(--cm-ink); }
.hidden { display: none !important; }
.privacy-card { width: 100%; margin-top: 28px; padding: 20px 28px; color: var(--cm-muted); }
.privacy-card summary { cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--cm-ink); }
.privacy-card p { max-width: 960px; font-size: .88rem; }
.billing-panel { background: var(--cm-surface); }
.billing-panel h2 { margin-top: 0; }
.billing-panel > .eyebrow { margin-bottom: 8px; }
.billing-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 20px; }
.billing-plan { display: flex; flex-direction: column; align-items: start; justify-content: start; gap: 6px; padding: 18px; border-radius: 16px; text-align: start; font-weight: 500; }
.billing-plan[aria-pressed='true'] { border-color: var(--cm-mint); background: var(--cm-mint-soft); box-shadow: inset 0 0 0 1px var(--cm-mint); }
.billing-plan strong { font-weight: 600; }
.billing-plan span, .billing-plan small { color: var(--cm-muted); }
.billing-price { font-size: clamp(1rem, 1.65vw, 1.5rem); font-weight: 600; letter-spacing: -.04em; color: var(--cm-ink) !important; line-height: 1.4; }
.billing-price small { font-size: .75rem; font-weight: 400; letter-spacing: 0; }
.billing-status { padding: 14px 16px; margin: 18px 0; border: 1px solid var(--cm-line); border-radius: 12px; color: var(--cm-muted); background: var(--cm-bg); font-size: .9rem; line-height: 1.5; }
.billing-benefits { display: grid; gap: 10px; list-style: none; padding: 0; margin: 22px 0; color: var(--cm-muted); font-size: .9rem; }
.billing-benefits li { display: flex; align-items: start; gap: 10px; }
.billing-benefits li::before { content: '✓'; color: var(--cm-mint); font-weight: 600; }
.billing-footnote { margin: 12px 0 0; font-size: .78rem; line-height: 1.6; }
.billing-panel .actions { margin-top: 12px; }
.billing-plan-name { color: var(--cm-ink) !important; font-size: .92rem; font-weight: 600; }
.billing-details { margin: 0 0 18px; font-size: .84rem; line-height: 1.7; }
.billing-details:empty { display: none; }
.billing-status.error { border-color: #8c4650; background: #381b24; color: #ffd9de; }
.billing-download { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .86rem; font-weight: 500; }
.billing-download::after { content: '↗'; font-size: 1rem; }
.billing-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--cm-line); font-size: .78rem; line-height: 1.7; }
.desktop-card { width: min(100%, 760px); margin-inline: auto; }
.desktop-page { width: 100%; }
.desktop-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.desktop-copy h1 { margin: 22px 0; font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.055; letter-spacing: -.065em; }
.desktop-lede { max-width: 480px; font-size: 1rem; line-height: 1.85; }
.desktop-copy .release-note { margin-top: 26px; max-width: 460px; }
.desktop-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 42px 0; }
.desktop-feature { padding: 24px; border: 1px solid var(--cm-line); border-radius: 20px; background: var(--cm-surface); }
.desktop-feature > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: var(--cm-mint-soft); color: var(--cm-mint); font-size: 1.5rem; }
.desktop-feature strong, .desktop-feature small { display: block; }
.desktop-feature strong { font-weight: 600; font-size: 1rem; }
.desktop-feature small { margin-top: 8px; color: var(--cm-muted); line-height: 1.7; font-size: .85rem; }
.release-panel { padding: 30px; border: 1px solid var(--cm-line); border-radius: 20px; background: var(--cm-surface); }
.release-panel h2 { margin: 18px 0 12px; font-size: 1.6rem; }
.release-panel > p { font-size: .9rem; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: var(--cm-mint-soft); color: var(--cm-mint); font-size: .73rem; font-weight: 600; }
.status-pill.removed { background: rgb(255 182 191 / 12%); color: #ffb6bf; }
.desktop-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.download-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 13px 20px; border: 1px solid var(--cm-line); border-radius: 999px; background: var(--cm-surface-raised); color: var(--cm-ink); text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.5; }
.download-link::after { content: '↓'; font-size: 1.2rem; font-weight: 400; }
.download-link:hover { text-decoration: none; border-color: var(--cm-mint); transform: translateY(-1px); }
.release-note { margin-top: 14px; color: var(--cm-muted); font-size: .8rem; line-height: 1.7; }
.share-button { margin-top: 10px; min-height: 40px; background: transparent; font-size: .8rem; }
.share-status { min-height: 1.4em; margin: 8px 0 0; color: var(--cm-muted); font-size: .8rem; }
.share-status:empty { display: none; }
.setup-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; border-top: 1px solid var(--cm-line); padding-top: 40px; }
.setup-panel h2 { margin: 12px 0 18px; font-size: 1.85rem; }
.setup-panel .button { width: fit-content; }
.setup-steps { display: grid; gap: 22px; margin: 0; padding-inline-start: 26px; }
.setup-steps li { padding-inline-start: 8px; color: var(--cm-mint); }
.setup-steps strong, .setup-steps span { display: block; }
.setup-steps strong { color: var(--cm-ink); font-weight: 500; }
.setup-steps span { margin-top: 4px; color: var(--cm-muted); line-height: 1.65; font-size: .9rem; }
.beta-program, .mesh-program { margin: 24px 0; padding: 20px; border: 1px solid var(--cm-line); border-radius: 20px; background: var(--cm-surface-raised); }
.beta-program h2, .mesh-program h2 { margin-top: 8px; }
.beta-program h3, .mesh-program h3 { margin: 26px 0 8px; font-size: 1rem; }
.beta-rules { display: grid; gap: 8px; padding-inline-start: 22px; color: #b9c6d8; line-height: 1.55; }
.check-label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; line-height: 1.5; }
.check-label input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cm-mint); }
.beta-deadline { padding: 12px 14px; border-radius: 12px; background: var(--cm-bg); color: #dbe4f2; }
.rewarded-card { width: min(100%, 620px); }
.reward-summary { display: grid; gap: 5px; margin: 22px 0; padding: 16px; border: 1px solid var(--cm-line); border-radius: 16px; background: var(--cm-mint-soft); }
.reward-summary strong { color: var(--cm-mint); font-size: 1.05rem; }
.reward-summary span { color: var(--cm-muted); line-height: 1.55; }
.rewarded-video { min-height: 0; margin-top: 16px; overflow: hidden; border-radius: 16px; background: var(--cm-bg); }
.rewarded-video.active { min-height: 2px; }
.console-link { margin-top: 18px; }
.console-hint { margin-top: 6px; font-size: .9rem; }
.mesh-node { grid-template-columns: 1fr; }
.node-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.node-actions button { width: auto; min-height: 36px; padding: 6px 12px; font-size: .86rem; }
button.quiet { color: #cbd5e1; }
.node-actions button:last-child { color: #ffb6bf; }
.scope-summary { margin: 14px 2px 4px; font-size: 1.05rem; }
.site-footer { width: min(1180px, calc(100% - 96px)); margin: 0 auto; padding: 24px 0 30px; border-top: 1px solid var(--cm-line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--cm-muted); font-size: .78rem; }
.site-footer a { color: var(--cm-muted); text-decoration: none; }
.site-footer > .brand-link { color: var(--cm-ink); font-weight: 600; font-size: .92rem; }
.site-footer a:hover { color: var(--cm-mint); }
/* Keep existing page-usage consent controls consistent with the site. */
.usage-consent { font-family: inherit !important; background: var(--cm-surface) !important; border-color: var(--cm-line) !important; border-radius: 20px !important; color: var(--cm-ink) !important; }
.usage-consent button, .usage-choices { font-family: inherit !important; border-radius: 999px !important; background: var(--cm-surface-raised) !important; border-color: var(--cm-line) !important; width: auto; }
@media (max-width: 1000px) {
  .site-header { padding-inline: 30px; gap: 20px; }
  .site-nav { gap: 18px; }
  .shell, .site-footer { width: calc(100% - 60px); }
  .desktop-hero { gap: 32px; }
  .card, .release-panel { padding: 26px; }
  .desktop-features { gap: 14px; }
  .desktop-feature { padding: 20px; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding: 16px 22px 12px; gap: 12px; }
  .brand { font-size: 20px; }
  .language-control { margin-inline-start: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 10px 24px; justify-content: start; }
  .site-nav a { padding: 6px 0; }
  .site-nav a[aria-current='page'] { padding: 6px 12px; }
  .shell, .site-footer { width: calc(100% - 44px); }
  .shell { padding-top: 34px; padding-bottom: 48px; }
  .account-layout, .account-layout:has(> .billing-panel.hidden), .desktop-hero { grid-template-columns: 1fr; gap: 20px; }
  .portal-intro { margin-bottom: 24px; }
  .portal-intro h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .desktop-copy h1 { max-width: 620px; font-size: clamp(2.4rem, 8vw, 3.8rem); }
  .desktop-lede { max-width: 560px; }
  .desktop-hero { gap: 26px; }
  .desktop-features { grid-template-columns: 1fr; margin: 28px 0; }
  .desktop-feature { display: grid; grid-template-columns: 42px 1fr; gap: 16px; }
  .desktop-feature > span { margin: 0; }
  .desktop-feature small { margin-top: 5px; }
  .setup-panel { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .site-header { padding-inline: 16px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-icon { width: 30px; height: 30px; }
  .language-control select { width: 100px; font-size: .75rem; }
  .shell, .site-footer { width: calc(100% - 32px); }
  .card, .release-panel { padding: 22px 18px; }
  .actions { grid-template-columns: 1fr; }
  .text-actions { flex-direction: column; gap: 6px; }
  .billing-plan-grid { gap: 8px; }
  .billing-plan { padding: 14px 12px; }
  .billing-price { font-size: 1rem; }
  .node { grid-template-columns: minmax(0, 1fr); }
  .node button { justify-self: start; }
  .site-footer > span { width: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button, .download-link { transition: none; }
  .download-link:hover { transform: none; }
}
