/* OurTab website.
   One type system (Plus Jakarta Sans, as in the app), one spacing scale, one accent.
   Colours come from the app's Polish tokens (lib/theme/polish_tokens.dart).
   Type steps follow the Tailwind scale; spacing uses 2 4 8 12 16 24 32 40 48 64 80 96. */

/* Plus Jakarta Sans, served from this site (fonts/, SIL OFL, see fonts/OFL.txt)
   rather than Google Fonts, so a visit makes no request to Google. The same
   files are loaded by the pages Cloud Functions serve (statement links, guest
   and claim pages), which is why /fonts/* allows any origin in _headers. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-Bold.woff2") format("woff2");
}

/* A fallback sized to match Plus Jakarta Sans, so text does not move when the
   web font arrives. It is only on screen for the first moments of a visit. */
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 105.5%;
  ascent-override: 98.39%;
  descent-override: 21.04%;
  line-gap-override: 0%;
}

:root {
  --page: #ffffff;
  --panel: #f3f4f8;
  --raised: #e9eaf2;
  --line: #e1e3ec;
  --text: #0b0c1a;
  --text-2: #585b6e;
  --text-3: #686b7e;
  --text-muted: rgb(11 12 26 / 0.28);
  --accent: #3a49f5;
  --accent-hover: #2f3de0;
  --accent-ink: #3341e0;
  --on-accent: #ffffff;
  --store: #0b0c1a;
  --store-hover: #24263a;
  --on-store: #ffffff;
  /* The device frame: natural titanium, the app's page under the screen, and
     the status bar drawn for a light screen. */
  --ti: #bdb8b0;
  --ti-edge: #9a958d;
  --ti-hi: #e0dcd5;
  --screen: #f3f4f8;
  --status: #000000;
  --nav: rgb(243 244 248 / 0.82);
  --menu: rgb(255 255 255 / 0.94);
  --heading-from: #0b0c1a;
  --heading-to: #626474;
  --mark-left: #3a49f5;
  --mark-right: #a2abff;
  --mark-lens: #151a7a;
  --focus: #3a49f5;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --section: 64px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #07080e;
    --panel: #13141d;
    --raised: #20222d;
    --line: #282a36;
    --text: #f4f5fb;
    --text-2: #a4a7ba;
    --text-3: #8c8fa3;
    --text-muted: rgb(244 245 251 / 0.3);
    --accent: #4c5aff;
    --accent-hover: #5f6cff;
    --accent-ink: #a3acff;
    --store: #f4f5fb;
    --store-hover: #ffffff;
    --on-store: #0b0c1a;
    --ti: #8c8881;
    --ti-edge: #a39f97;
    --ti-hi: #b4b0a8;
    --screen: #07080e;
    --status: #ffffff;
    --nav: rgb(19 20 29 / 0.8);
    --menu: rgb(7 8 14 / 0.94);
    --heading-from: #f4f5fb;
    --heading-to: #9b9dad;
    --mark-left: #4c5aff;
    --mark-right: #a2abff;
    --mark-lens: #e4e7ff;
    --focus: #a3acff;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --section: 96px; }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
summary { text-wrap: balance; }
button { font: inherit; color: inherit; }

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip:focus { transform: none; }

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

.br-wide { display: none; }
@media (min-width: 768px) { .br-wide { display: inline; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Brand */

.mark { width: 30px; height: 20px; flex: none; }
.mark .l { fill: var(--mark-left); }
.mark .r { fill: var(--mark-right); }
.mark .x { fill: var(--mark-lens); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 9999px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-quiet { background: var(--raised); color: var(--text); }
.btn-quiet:hover { background: var(--line); }

/* The web app (/app/) is offered on computers only: a wide screen with a
   mouse or trackpad. Elsewhere it is not shown at all. */
.btn.web-only { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .btn.web-only { display: inline-flex; }
  .nav .nav-end { gap: 8px; }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 168px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--store);
  color: var(--on-store);
  text-decoration: none;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.store:hover { background: var(--store-hover); transform: translateY(-1px); }
@media (max-width: 379px) {
  .stores .store { flex: 1 1 100%; justify-content: center; }
}
.store:active { transform: scale(0.98); }
/* Beside the store badges, at their height. */
.stores .store-web { min-height: 56px; }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 0.75rem; line-height: 1rem; font-weight: 500; opacity: 0.8; }
.store strong { font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }

/* Navigation */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 16px;
  border-radius: 9999px;
  background: var(--nav);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.nav-links {
  display: none;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 9999px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); background: var(--raised); }
.nav-cta {
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 9999px;
  white-space: nowrap;
}
/* The narrowest phones: room for the button's label on one line. */
@media (max-width: 359px) {
  .nav { gap: 16px; }
}
.nav-end { display: flex; align-items: center; gap: 4px; }

.menu-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 300ms var(--ease);
}
.menu-toggle:hover { background: var(--raised); }
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 500ms var(--ease);
}
.menu-toggle span:first-child { top: 14px; }
.menu-toggle span:last-child { top: 20px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 48px;
  background: var(--menu);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s var(--ease) 300ms;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms var(--ease), visibility 0s var(--ease);
}
.menu ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.menu a:not(.store) {
  display: block;
  padding: 8px 0;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu li, .menu .stores {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.menu.is-open li, .menu.is-open .stores { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) { transition-delay: 60ms; }
.menu.is-open li:nth-child(2) { transition-delay: 120ms; }
.menu.is-open li:nth-child(3) { transition-delay: 180ms; }
.menu.is-open li:nth-child(4) { transition-delay: 240ms; }
.menu.is-open .stores { transition-delay: 300ms; }
.menu .stores { margin-top: auto; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle, .menu { display: none; }
}
@media (max-width: 899px) {
  .nav { left: var(--gutter); right: var(--gutter); transform: none; width: auto; max-width: none; justify-content: space-between; }
}

/* Device: an iPhone 16 Pro, straight on, at its real proportions. The frame
   (#iphone in the page's sprite) is drawn in points over the screen: body
   431.2 x 903.2 with 3 pt either side for the buttons, screen 402 x 874 at
   17.6, 15.6 with 62 pt continuous corners. Everything is a percentage of the
   device's width, so it scales cleanly to any size. */

.device {
  --home: var(--status);
  position: relative;
  flex: none;
  /* Its height comes from its width, never from a flex row around it. */
  align-self: flex-start;
  width: 100%;
  aspect-ratio: 437.2 / 905.2;
}
.device img {
  position: absolute;
  left: 4.0256%;
  top: 1.7234%;
  width: 91.9488%;
  height: 96.5532%;
  max-width: none;
  /* 62 pt, so the picture never shows past the body; the bezel covers the rest. */
  border-radius: 15.42% / 7.09%;
  background: var(--screen);
}
.device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* A camera view at the top of the screen takes a white status bar. */
.device.on-camera { --status: #ffffff; --home: #000000; }
@media (prefers-color-scheme: dark) {
  .device.on-camera { --home: #ffffff; }
}

/* Sections */

main > section { padding: var(--section) 0; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 64px; }
  .section-head h2 { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Hero */

.hero { padding-top: 96px !important; padding-bottom: 64px !important; }
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  max-width: 680px;
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--heading-from), var(--heading-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 4px;
}
.hero-sub {
  max-width: 680px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.hero .stores { margin-top: 32px; }
.hero-note {
  margin-top: 24px;
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
/* The whole phone on the page itself, no card behind it. */
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual .device { max-width: 280px; }

@media (min-width: 768px) {
  .hero-grid { margin-top: 32px; }
  .hero h1 { font-size: 3rem; line-height: 1; }
  .hero-sub { font-size: 1.25rem; line-height: 1.75rem; }
  .hero-visual .device { max-width: 320px; }
}
@media (min-width: 1024px) {
  .hero { padding-bottom: 32px !important; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; }
  .br-wide { display: none; }
}
@media (min-width: 1200px) {
  .br-wide { display: inline; }
}

/* Feature rows */

.features { display: grid; gap: 24px; }
.feature {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
}
.feature-text { padding: 32px 24px; }
.feature h3, .card h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.02em;
}
.feature-text p, .card-text p {
  margin-top: 12px;
  color: var(--text-2);
}
.feature-text p + p { margin-top: 12px; }
.feature-visual {
  height: 440px;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.feature-visual .device { max-width: 280px; }


@media (min-width: 640px) {
  .feature-text { padding: 48px 40px 40px; }
  .feature-text p { font-size: 1.125rem; line-height: 1.75rem; }
  .feature-visual { height: 480px; }
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature-text { padding: 64px 48px; align-self: center; }
  .feature-visual { height: 560px; padding-top: 64px; }
  .feature.flip .feature-text { order: 2; }
}
@media (min-width: 1024px) {
  .feature-text { padding: 64px; }
  .feature h3 { font-size: 1.875rem; line-height: 2.25rem; }
  .feature-visual .device { max-width: 300px; }
}

.cards { display: grid; gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
}
.card-text { padding: 32px 24px; }
.card-visual {
  height: 400px;
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.card-visual .device { max-width: 260px; }
@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-text { padding: 48px 40px 40px; }
  .card-visual { height: 440px; }
  .card-visual .device { max-width: 280px; }
}

/* Small facts list */

.facts {
  list-style: none;
  display: grid;
  gap: 24px;
  padding: 0 24px 32px;
}
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; }
.facts svg { width: 24px; height: 24px; fill: var(--text-2); grid-row: span 2; }
.facts strong { font-weight: 600; }
.facts span { color: var(--text-2); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
  .facts { padding: 0 40px 48px; }
}

/* Tagline reveal */

.tagline { padding: 96px 0 !important; }
.tagline p {
  max-width: 680px;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.tagline .w { color: var(--text); transition: color 500ms var(--ease); }
.js .tagline .w { color: var(--text-muted); }
.js .tagline .w.on { color: var(--text); }
@media (min-width: 768px) {

  .tagline p { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1280px) {
  .tagline p { max-width: 880px; font-size: 3.75rem; line-height: 1; }
}

/* How it works */

.steps {
  list-style: none;
  display: grid;
  gap: 40px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: 9999px;
  background: var(--panel);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}
.steps h3 { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--text-2); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Pro */

.pro {
  display: grid;
  gap: 40px;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--panel);
}
.pro h2 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.025em; }
.pro-intro p { margin-top: 16px; color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }
.pro-price {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.pro-price strong { display: block; color: var(--text); font-size: 1rem; line-height: 1.5rem; font-weight: 600; margin-bottom: 4px; }
.checks { list-style: none; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checks svg { width: 20px; height: 20px; margin: 2px; fill: var(--text); }
.checks strong { font-weight: 600; }
.checks span { display: block; color: var(--text-2); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
  .pro { padding: 64px 48px; grid-template-columns: 1fr 1fr; gap: 64px; }
  .pro h2 { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .pro { padding: 64px; }
}

/* FAQ */

.faq-grid { display: grid; gap: 32px; }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .section-head a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 4px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: none;
  fill: var(--text-2);
  transition: transform 500ms var(--ease);
}
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list summary:hover svg { fill: var(--text); }
.faq-list .answer { padding: 0 40px 24px 0; color: var(--text-2); }
.faq-list .answer p + p { margin-top: 12px; }
.faq-list .answer a { color: var(--accent-ink); text-underline-offset: 3px; }
.js .faq-list details[open] .answer { animation: answer-in 500ms var(--ease); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 112px; }
}

/* Final CTA */

.final { text-align: center; }
.final h2 {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}
.final p { max-width: 680px; margin: 16px auto 0; color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }
.final .stores { justify-content: center; margin-top: 32px; }
.final .mark { width: 60px; height: 40px; margin: 0 auto 32px; }
@media (min-width: 768px) {
  .final h2 { font-size: 3rem; line-height: 1; }
}

/* Footer */

.footer { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: none;
  transition: color 300ms var(--ease);
}
.footer nav a:hover, .footer nav a[aria-current] { color: var(--text); }
.footer nav a[aria-current] { font-weight: 600; }
.footer small { color: var(--text-3); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
  .footer-grid { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Scroll reveals: rise 32px and fade in once */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Legal pages and 404 */

.doc { padding: 96px 0; }
.doc-grid { display: grid; gap: 48px; }
.doc-head h1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; }
.doc-head p { margin-top: 12px; color: var(--text-3); font-size: 0.875rem; line-height: 1.25rem; }
.doc-head .lead { margin-top: 24px; color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }
.toc { display: none; }
.prose { max-width: 680px; }
.prose section { padding-top: 40px; }
.prose h2 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h3 { font-size: 1.125rem; line-height: 1.75rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
}
.prose dl { display: grid; gap: 16px; }
.prose dt { font-weight: 600; }
.prose dd { margin-top: 4px; color: var(--text-2); }

@media (min-width: 768px) {
  .doc-grid { margin-top: 32px; }
  .doc-head h1 { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .doc-grid { grid-template-columns: 240px minmax(0, 680px); gap: 64px; justify-content: center; }
  .doc-grid > .doc-head { grid-column: 2; }
  .toc {
    display: block;
    grid-row: 1 / span 2;
    position: sticky;
    top: 112px;
    align-self: start;
    max-height: calc(100vh - 144px);
    overflow-y: auto;
  }
  .toc p { margin-bottom: 12px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
  .toc ol { list-style: none; display: grid; gap: 4px; }
  .toc a {
    display: block;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
    transition: color 300ms var(--ease), background-color 300ms var(--ease);
  }
  .toc a:hover { color: var(--text); background: var(--panel); }
}

.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 0;
  text-align: center;
}
.notfound .mark { width: 60px; height: 40px; margin: 0 auto 32px; }
.notfound h1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; }
.notfound p { max-width: 480px; margin: 16px auto 0; color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) {
  .notfound h1 { font-size: 3rem; line-height: 1; }
}

/* Windows high contrast: drop the clipped gradient so the heading stays visible */

@media (forced-colors: active) {
  .hero h1 { background: none; color: CanvasText; }
}

/* Reduced motion: no movement, only plain opacity changes */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 600ms var(--ease); }
  .menu li, .menu .stores { transform: none; }
  .menu-toggle span { transition: none; }
  .store:hover, .btn:active, .store:active { transform: none; }
  .js .faq-list details[open] .answer { animation: none; }
  .faq-list summary svg { transition: none; }
}
