/* Surplus landing — single stylesheet, copied verbatim to public/styles.css by generate.py.
   Tokens come from assets/brand/README.md (logo + web accents). Dark mode follows the OS. */

@font-face { font-family: "Noto Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/noto-sans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/noto-sans-Bold.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #f5f4fd;
  --surface-2: #ebe9fb;
  --text: #2d3436;
  --muted: #5a6468;
  --line: #dcdaf0;
  --primary: #2a1be3;
  --on-primary: #ffffff;
  --accent: #af1be3;
  --ok: #0f7b4b;
  --radius: 14px;
  --shell: 1312px;
  --gap: 48px;
  --prose: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111c;
    --surface: #1b1a2a;
    --surface-2: #25243a;
    --text: #ececf3;
    --muted: #a9acbd;
    --line: #34334d;
    --primary: #8f86ff;
    --on-primary: #12111c;
    --accent: #d27cf5;
    --ok: #55d19a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 400 15px/1.5 "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 36px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; line-height: 1.5; }
@media (min-width: 760px) { h1 { font-size: 56px; } h2 { font-size: 34px; } }
p { margin: 0 0 1em; }
@media (min-width: 760px) { :root { --gap: 96px; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.shell, .shell-row { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 16px; }
.shell-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* chrome */
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .shell-row { min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: inline; } }
.site-nav { display: flex; gap: 1.25rem; margin-inline-start: auto; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: .4rem 0; }
.site-nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; text-underline-offset: 6px; }
.cta-header { display: none; }
@media (min-width: 720px) { .cta-header { display: inline-flex; } }
@media (max-width: 480px) { .site-nav { gap: .9rem; font-size: .9rem; } }

.btn { font-size: 15px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.4rem;
  background: var(--primary); color: var(--on-primary); border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--primary); }
.btn:hover { filter: brightness(1.08); }
.btn-small { min-height: 40px; padding: .35rem 1rem; }
.btn-ghost { background: transparent; color: var(--primary); }

footer.site { margin-top: var(--gap); border-top: 1px solid var(--line); background: var(--surface); padding-block: 1.5rem; font-size: 13px; }
footer.site .shell-row { justify-content: space-between; row-gap: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-links a { color: var(--text); }
.copyright { color: var(--muted); }
.langsel { position: relative; }
.langsel summary { cursor: pointer; font-weight: 700; padding: .3rem .2rem; }
.langsel ul { list-style: none; margin: .4rem 0 0; padding: .4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; position: absolute; bottom: 100%; inset-inline-start: 0; z-index: 10; min-width: 10rem; }
.langsel li a { display: block; padding: .3rem .7rem; text-decoration: none; color: var(--text); }
.langsel li a:hover { color: var(--primary); }

/* hero: copy stacked over the two device placeholders (Figma Home / Hero) */
.hero { display: flex; flex-direction: column; gap: 24px; margin-top: var(--gap); padding-top: 16px; }
@media (min-width: 760px) { .hero { padding-top: 48px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1, .hero p { margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
@media (min-width: 760px) { .lead { font-size: 22px; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .btn { font-size: 16px; min-height: 52px; padding: 0 28px; }
.btn-ghost { background: transparent; color: var(--primary); }
.note { color: var(--muted); font-size: 14px; }
.hero-art { display: flex; gap: 16px; }
.hero-art .device { flex: none; }
.hero-art .device-2 { display: none; }
@media (min-width: 760px) { .hero-art .device-2 { display: block; } }

/* app screenshots (generate.py screen()): the box keeps its size and shows the top of the screen */
.device { display: block; width: 100%; height: 360px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 760px) { .hero-art .device { width: 260px; height: 420px; } }

/* sections: 48px apart on phones, 96px on wide screens; 24px from heading to content */
.section { margin-top: var(--gap); scroll-margin-top: 72px; }
.section > h2 { margin: 0 0 24px; }
.section > p { margin: 0 0 24px; }
.grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
ul.plain, ol.plain { list-style: none; padding: 0; margin: 0; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3, .card p { margin: 0; }
.card p { color: var(--muted); }
.step-n { font-weight: 700; font-size: 14px; color: var(--primary); }

/* feature story: four cards (Figma); with JS on wide screens a sticky device cross-fades instead */
.story-sticky { display: none; }
.story-beats { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .story-beats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .story-beats { grid-template-columns: repeat(4, 1fr); } }
.beat { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.beat h3, .beat p { margin: 0; }
.beat p:not(.tag) { font-size: 14px; color: var(--muted); }
.beat .tag { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.beat-device .device { height: 160px; border-radius: 14px; background: var(--bg); }
@media (min-width: 760px) { .beat-device .device { height: 220px; } }
@media (min-width: 900px) {
  .js .story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .js .story-sticky { display: block; }
  .js .story-stage { position: sticky; top: 96px; height: min(540px, 80vh); display: grid; place-items: center; }
  .js .panel { grid-area: 1 / 1; opacity: 0; transition: opacity .4s ease; }
  .js .panel.is-active { opacity: 1; }
  .js .panel .device { width: 260px; height: 420px; }
  .js .story-beats { display: block; }
  .js .beat { min-height: 360px; justify-content: center; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0; transition: color .3s ease; }
  /* dim with colour, never opacity: opacity would pull the tag below AA contrast in dark mode */
  .js .beat h3 { color: var(--muted); }
  .js .beat.is-active h3, .js .beat.is-active p:not(.tag) { color: var(--text); }
  .js .beat-device { display: none; }
}

/* pricing: one note line, then the bordered table (50/25/25; 46/27/27 on phones) */
.proposal { font-size: 14px; color: var(--muted); }
.plans { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 14px; }
@media (min-width: 720px) { .plans { min-width: 520px; } }
.plans th, .plans td { text-align: start; vertical-align: top; padding: 10px; }
.plans col:first-child { width: 46%; }
.plans col + col { width: 27%; }
@media (min-width: 720px) { .plans col:first-child { width: 50%; } .plans col + col { width: 25%; } }
.plans thead th { background: var(--surface); font-weight: 700; color: var(--muted); }
.plans thead th:first-child { color: var(--text); }
.plans tbody tr { border-top: 1px solid var(--line); }
.plans tbody th { font-weight: 400; color: var(--text); }
.plans td { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

/* faq: every question with its answer, no accordion (Figma) */
.faq { display: flex; flex-direction: column; gap: 24px; }
.faq h3, .faq p { font-size: 15px; margin: 0; }
.faq p { color: var(--text); }

/* newsletter */
html:not(.js) .nl form { display: none; }
.nl { gap: 12px; padding: 24px; }
.nl h2 { font-size: 22px; margin: 0; }
@media (min-width: 760px) { .nl h2 { font-size: 28px; } }
.nl > p { margin: 0; }
.nl form { display: grid; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nl input[type="email"] { min-height: 49px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.nl input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.nl .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.nl .consent input { flex: none; margin: 1px 0 0; width: 16px; height: 16px; }
.nl .hp { position: absolute; left: -9999px; }
.nl button { justify-self: start; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; min-height: 47px; padding: 12px 24px; }
.nl button:disabled { opacity: .6; }
.status { min-height: 20px; margin: 0; font-size: 13px; color: var(--muted); }

/* closing cta */
.cta-band { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--primary); color: var(--on-primary); border-radius: 24px; padding: 40px 32px; }
.cta-band h2 { font-size: 28px; margin: 0; }
@media (min-width: 760px) { .cta-band h2 { font-size: 40px; } }
.cta-band p { margin: 0; font-size: 16px; }
.cta-band .note { color: inherit; }
.cta-band .btn { min-height: 47px; padding: 12px 24px; }
.btn-light { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); }

/* legal, support, delete-account: zero-JS reading pages */
.prose { width: 100%; max-width: var(--prose); margin: 0 auto; padding: 2.5rem 16px 0; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; scroll-margin-top: 80px; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-inline-start: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .3rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose .intro { font-size: 1.1rem; color: var(--muted); }
.prose .notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); }

.cta-band :focus-visible { outline-color: currentColor; }
.prose blockquote { margin: 0 0 1em; padding: .2rem 1rem; border-inline-start: 4px solid var(--primary); background: var(--surface); }
