/* offlinecontent.app shared styles (design-v2, 2026-10-10): landing, legal pages,
   links and 404 are one system. Port of impeccable-preview/landing-after.html.
   External file because the CSP allows style-src 'self'; fonts are same-origin. */

/* Outfit (variable, 100-900), same files as the app (src/pipeline/web/static/fonts),
   SIL OFL 1.1: see fonts/outfit.OFL.txt. swap (app uses optional): the marketing
   page should always land in the brand face, a brief reflow is acceptable. */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens: landing aubergine is the brand (Decisions log 10-10). */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --fg: #16131d; --fg-2: #3d3750; --muted: #5d5670;
  --card: #f7f5fb; --border: #e7e3f0;
  --accent: #5f4f80; --accent-strong: #4b3d68; --accent-fg: #ffffff; --accent-soft: #efeaf7;
  --band: #3e3157; --band-fg: #f3effa; --band-muted: #cfc5e3;
  --band-btn: #ffffff; --band-btn-fg: #2c2240; --band-btn-hover: #ece6f7; --band-line: rgba(255,255,255,.35);
  --discord: #5865f2; --discord-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f0d14; --fg: #ece8f4; --fg-2: #cfc8de; --muted: #a59cbb;
          --card: #181520; --border: #2a2536; --accent: #b9a9e0;
          --accent-strong: #cdc0ec; --accent-fg: #1b1626; --accent-soft: #1e1a2b;
          --band: #241d36; --band-fg: #f3effa; --band-muted: #bfb4d6; }
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--border) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 'Outfit', -apple-system, "Segoe UI", system-ui, sans-serif;
       color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--fg-2); text-decoration: none; font-size: .95rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--fg); background: var(--card); }
.nav .cta { margin-left: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 600; padding: 10px 16px; }
.nav .cta:hover { background: var(--accent-strong); color: var(--accent-fg); }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 12px;
       font-weight: 600; text-decoration: none; font-size: 1rem; transition: background-color .15s ease-out, border-color .15s ease-out; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { color: var(--fg); border: 1px solid var(--border); background: var(--bg); }
.btn-secondary:hover { border-color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero: left-aligned type, no duplicate logo (it is in the nav). */
.hero { padding-top: 112px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; max-width: 14ch; }
.hero .sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fg-2); max-width: 54ch; margin: 28px 0 36px; line-height: 1.55; }
.hero .notes { margin-top: 28px; display: grid; gap: 6px; font-size: .95rem; color: var(--muted); max-width: 70ch; }

/* Sections */
section.block { padding: 96px 0; border-top: 1px solid var(--border); }
.sec-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px 64px; align-items: start; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.sec-head .lead { color: var(--fg-2); font-size: 1.1rem; max-width: 56ch; padding-top: 6px; }
.sec-head.solo { grid-template-columns: 1fr; margin-bottom: 40px; }

/* Features: a ruled two-column list instead of icon-tile cards. */
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.feature { padding: 28px 0; border-top: 1px solid var(--border); display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 600; }
.feature p { color: var(--fg-2); font-size: 1rem; max-width: 52ch; }

/* Steps: the order is the information, so the numerals stay, set as type. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 2px solid var(--fg); }
.steps li::before { content: counter(s); display: block; font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--fg-2); font-size: 1rem; }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.who h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.who p { color: var(--fg-2); }

/* Pricing: the only tinted panels on the page. */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card { padding: 32px; border-radius: 16px; background: var(--card); }
.price-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.price-card p { color: var(--fg-2); }
.price-card b, .example b { color: var(--fg); font-weight: 600; }
.example { margin-top: 24px; color: var(--fg-2); font-size: 1.05rem; max-width: 80ch; }
.block .note { margin-top: 20px; font-size: .95rem; color: var(--muted); max-width: 80ch; }
.note .more { font-weight: 600; white-space: nowrap; }

/* FAQ */
.faq { max-width: 820px; border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center;
               padding: 22px 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 12px; height: 12px; background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat; transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--fg-2); max-width: 68ch; }

/* Closing band: the brand colour owns one region instead of tinting everything. */
.band-wrap { padding-bottom: 32px; }
.band { background: var(--band); color: var(--band-fg); border-radius: 24px; padding: 72px 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: end; }
.band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.band p { color: var(--band-muted); margin-top: 16px; font-size: 1.1rem; }
.band .btn-primary { background: var(--band-btn); color: var(--band-btn-fg); }
.band .btn-primary:hover { background: var(--band-btn-hover); }
.band .btn-secondary { background: transparent; color: var(--band-fg); border-color: var(--band-line); }
.band .btn-secondary:hover { border-color: var(--band-btn); }
.band .note { margin-top: 16px; font-size: .95rem; color: var(--band-muted); }

/* Footer */
footer.site { padding: 48px 0 56px; color: var(--muted); font-size: .95rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; }
.foot-brand img { width: 24px; height: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--fg); }
.copy { margin-top: 20px; font-size: .9rem; }

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .band { grid-template-columns: 1fr; padding: 48px 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  section.block { padding: 64px 0; }
  .feature { padding: 24px 0; }
  .steps, .who, .pricing { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .actions .btn { flex: 1 1 100%; }
  .price-card { padding: 24px; }
  .band { padding: 40px 24px; border-radius: 20px; }
}

/* Legal documents (terms, privacy): long-form reading measure. Markup unchanged. */
body.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.doc .brandbar { display: flex; align-items: center; min-height: 64px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.doc .brandbar a { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.doc .brandbar img { width: 30px; height: 30px; display: block; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 12px; }
.doc h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--fg-2); }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc ul { padding-left: 1.25rem; margin: 12px 0; }
.doc li + li { margin-top: 8px; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc .meta + p:not(.meta) { margin-top: 32px; }
.doc code { background: var(--card); border: 1px solid var(--border); padding: .05rem .35rem; border-radius: 4px; font-size: .9em; }
.doc footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .95rem; color: var(--muted); }

/* Centered single-card pages (404, links). */
body.center { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; text-align: center; }
.center .mark { display: block; margin: 0 auto 20px; }
.center h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 12px; }
.center .sub { color: var(--fg-2); max-width: 440px; margin: 0 auto 32px; }
.center .actions { justify-content: center; }

/* Links page (link-in-bio): stacked full-width buttons. */
.links { width: 100%; max-width: 430px; }
.links h1 span { color: var(--accent); }
.links .sub { margin-bottom: 12px; }
.links .pill { display: inline-block; margin: 0 0 28px; padding: 6px 16px; border-radius: 999px; background: var(--accent-soft);
               color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.links .btn { display: flex; width: 100%; margin: 0 0 12px; min-height: 56px; }
.links .discord { background: var(--discord); color: var(--discord-fg); }
.links .foot { margin-top: 24px; font-size: .85rem; color: var(--muted); }
.links .foot a { color: var(--muted); }
