:root {
  color-scheme: dark;
  --bg: #091416;
  --panel: #101f22;
  --line: #2b4144;
  --text: #f1f6f5;
  --muted: #b0c0c2;
  --accent: #67dfcf;
  --max-width: 1120px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.7; }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { margin: 0 0 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 4.9vw, 4.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.container { width: min(calc(100% - 3rem), var(--max-width)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 6.5rem); }
.section-muted { background: var(--panel); }
.eyebrow { margin-bottom: 1.2rem; font-size: 0.875rem; font-weight: 650; letter-spacing: 0.075em; text-transform: uppercase; color: var(--accent); }
.skip-link { position: fixed; z-index: 30; top: 0.75rem; left: 0.75rem; transform: translateY(-160%); background: var(--accent); color: var(--bg); padding: 0.75rem 1rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; text-decoration: none; font-family: var(--mono); font-weight: 700; }
.brand-prompt { color: #ffad5c; font-size: 1.7rem; }
.brand-name { font-size: 1.15rem; letter-spacing: 0.1em; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding-block: 0.7rem; text-decoration: none; color: var(--muted); font-size: 0.9375rem; }
.nav-links a:hover, .site-footer a:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; padding: 0.85rem 1.3rem; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: var(--bg); font-weight: 650; line-height: 1.5; text-decoration: none; }
.button:hover { background: #99ecdf; border-color: #99ecdf; }
.text-link { font-weight: 600; padding-block: 0.7rem; }
.text-link:hover { color: var(--accent); }

.hero { padding-block: 3.8rem; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
.hero-copy h1 span { color: var(--accent); }
.hero-text { font-size: 1.125rem; max-width: 51ch; margin-top: 1.7rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero-note { font-size: 0.875rem; max-width: 43ch; margin-top: 1.4rem; }
.hero-device { margin: 0; justify-self: center; width: min(100%, 250px); }
.hero-device .screenshot-link { border: 1px solid #486065; box-shadow: 0 20px 65px #0005; }
.hero-device figcaption { color: var(--muted); text-align: center; font-size: 0.8125rem; margin-top: 0.9rem; }
.screenshot-link { display: block; border-radius: 12px; overflow: hidden; background: #061012; border: 1px solid var(--line); }
.screenshot-link:hover { border-color: var(--accent); }
.facts { border-block: 1px solid var(--line); }
.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 1.6rem; margin-block: 0; }
.fact-grid div { display: flex; flex-direction: column-reverse; align-items: center; padding: 0.25rem 1rem; border-right: 1px solid var(--line); }
.fact-grid div:last-child { border: 0; }
.fact-grid dt { font-size: 0.875rem; color: var(--muted); }
.fact-grid dd { margin: 0; font-size: 1.9rem; font-weight: 600; line-height: 1.4; }

.section-heading { margin-bottom: 2.6rem; }
.section-heading > p:not(.eyebrow) { margin-top: 1rem; }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: end; }
.split-heading > p { max-width: 48ch; }
.turn-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.turn-flow li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.step-number { display: block; font-family: var(--mono); color: var(--accent); font-size: 0.9375rem; margin-bottom: 1.75rem; }
.turn-flow h3, .mode-card h3, .card-tier h3, .feature-list h3 { margin-bottom: 0.8rem; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.mode-card { border: 1px solid var(--line); border-radius: 8px; padding: 2rem; background: var(--bg); }
.mode-label { font-size: 0.875rem; color: var(--accent); margin-bottom: 1.8rem; }
.mode-card h3 { font-size: 1.75rem; }
.board-note { margin-top: 1.6rem; font-size: 0.9375rem; }
.board-note strong { color: var(--text); font-weight: 600; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.card-tier { padding-top: 1.8rem; border-top: 2px solid var(--accent); }
.card-tier:nth-child(2) { border-color: #e6be65; }
.card-tier:nth-child(3) { border-color: #c9afff; }
.tier-count { color: var(--text); font-size: 2.6rem; line-height: 1; margin-bottom: 1.7rem; letter-spacing: -0.04em; }
.tier-count span { color: var(--muted); font-size: 0.875rem; letter-spacing: 0; }
.section-note { margin-top: 1.6rem; font-size: 0.875rem; }
.learn-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; }
.learn-intro { max-width: 35ch; margin-top: 1.4rem; }
.feature-list article { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.feature-list article:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }

.screenshot-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.screenshot-gallery figure { min-width: 0; margin: 0; }
.screenshot-gallery figcaption { font-size: 0.875rem; margin-top: 0.8rem; color: var(--muted); }
.screenshot-carousel.is-carousel { display: grid; grid-template-columns: 48px minmax(0, 280px) 48px; justify-content: center; align-items: center; gap: 1rem clamp(0.75rem, 4vw, 3rem); }
.is-carousel .screenshot-gallery { display: block; }
.is-carousel .screenshot-gallery .screenshot-link { max-width: none; }
.is-carousel .screenshot-gallery figcaption { text-align: center; }
.carousel-arrow { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 2.3rem; padding: 0; border: 1px solid var(--accent); border-radius: 5px; background: var(--panel); color: var(--accent); font-family: var(--mono); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.carousel-arrow:hover { background: var(--accent); color: var(--bg); }
.carousel-arrow:active { background: #99ecdf; }
.carousel-arrow[hidden], .carousel-status[hidden] { display: none; }
.carousel-status { grid-column: 1 / -1; margin: 0; text-align: center; font-family: var(--mono); font-size: 0.8125rem; }
.download { border-top: 1px solid var(--line); background: var(--panel); padding-block: 3.5rem; }
.download-layout { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.download h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.download p:last-child { max-width: 55ch; margin-top: 1rem; }
.download .button { flex-shrink: 0; }
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); }
.footer-layout { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; }
.site-footer nav a { font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.copyright { margin-top: 1.5rem; font-size: 0.8125rem; }

.screenshot-dialog { max-width: min(94vw, 620px); width: 100%; max-height: 92vh; max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--panel); }
.screenshot-dialog::backdrop { background: #000d; }
.dialog-content { padding: 1.25rem; }
.dialog-close { display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; margin: 0 0 1rem auto; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--text); cursor: pointer; }
.dialog-close:hover { border-color: var(--accent); }
.dialog-content img { max-height: 70vh; max-height: 70dvh; width: auto; margin-inline: auto; }
.dialog-text { margin: 1.5rem auto 0; max-width: 45ch; }
.dialog-text h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.dialog-text p { font-size: 0.9375rem; }

/* Both existing privacy URLs share the site's typography and navigation. */
.policy-layout { width: min(calc(100% - 3rem), 760px); margin-inline: auto; }
.policy-hero { padding-block: 4rem 2rem; }
.policy-hero h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); margin-bottom: 1.25rem; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--muted); font-size: 0.875rem; margin-top: 1.5rem; }
.policy-content { padding-bottom: 4rem; }
.policy-content section { margin-top: 2.2rem; }
.policy-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.policy-content a { color: var(--accent); overflow-wrap: anywhere; }
.policy-note { padding: 1.4rem; background: var(--panel); border-left: 2px solid var(--accent); }

@media (min-width: 1400px) {
  .hero { padding-block: 4.5rem; }
  .hero-device { width: 270px; }
}
@media (max-width: 900px) {
  .hero-layout { gap: 2rem; }
  .hero-device { width: min(100%, 230px); }
  .screenshot-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .screenshot-gallery .screenshot-link { max-width: 240px; }
  .learn-layout { gap: 3rem; }
  .mode-grid { grid-template-columns: 1fr; }
  .download-layout { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 9rem; }
  .container, .policy-layout { width: min(calc(100% - 2.5rem), var(--max-width)); }
  .nav-wrap { flex-direction: column; gap: 0.25rem; padding-block: 0.65rem 0.4rem; }
  .brand-name { font-size: 1rem; }
  .brand-prompt { font-size: 1.5rem; }
  .nav-links { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 0.875rem; padding-block: 0.45rem; }
  .hero { padding-block: 3rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  h1 { font-size: clamp(2.4rem, 8.3vw, 3.5rem); }
  .hero-text { font-size: 1.0625rem; }
  .hero-device { width: 230px; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0; }
  .fact-grid div:nth-child(2) { border: 0; }
  .split-heading, .turn-flow, .mode-grid, .tier-grid, .learn-layout { grid-template-columns: 1fr; gap: 2rem; }
  .section-heading { margin-bottom: 2rem; }
  .split-heading { gap: 1rem; }
  .split-heading > p { margin-top: 0.5rem; }
  .step-number { margin-bottom: 0.85rem; }
  .mode-card { padding: 1.5rem; }
  .mode-label { margin-bottom: 1.2rem; }
  .card-tier { display: grid; grid-template-columns: 90px 1fr; column-gap: 1rem; padding-top: 1.5rem; }
  .tier-count { grid-row: span 2; margin: 0; }
  .tier-count span { display: block; margin-top: 0.75rem; }
  .card-tier p:last-child { grid-column: 2; }
  .learn-layout { gap: 2.5rem; }
  .learn-intro { max-width: 100%; }
  .screenshot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem 1rem; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
