/* The landing pages under /for (#535 part 1). Served by routes_landing as
   /landing.css, never inline: production's CSP is default-src 'self' with no
   'unsafe-inline', so a <style> block or a style="" attribute would be dropped.

   The palette is the app's own (web/src/styles.css): the accent is a surface,
   never a text colour, so the button carries --on-accent and links use --ink
   with an underline. The scheme follows the visitor's setting and there is no
   ?theme= override here, so the values are written out twice, light and dark,
   and tests/test_landing.py checks 4.5:1 on every pairing used below. */

:root {
  color-scheme: light dark;
  --accent: #2458db;
  --on-accent: #ffffff;
  --paper: #f8faff;
  --white: #ffffff;
  --ink: #16233b;
  --muted: #52627a;
  --line: #d5ddeb;
  --tint: #edf2ff;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a3bdff;
    --on-accent: #142443;
    --paper: #111921;
    --white: #1b242d;
    --ink: #f0f3f8;
    --muted: #b5c0ce;
    --line: #3d4b5c;
    --tint: #263752;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-underline-offset: .15em; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.lp-header {
  display: flex; align-items: center;
  padding: .9rem max(1.15rem, calc((100vw - 60rem) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.lp-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -.04em;
  text-decoration: none;
}

.lp-main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 3rem;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: .5rem 0 1rem; letter-spacing: -.03em; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; letter-spacing: -.02em; }
h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; color: var(--muted); font-weight: 600; }

.lp-crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.lp-crumbs li + li::before { content: "/"; margin-right: .3rem; }
.lp-crumbs a { color: var(--muted); }

.lp-lead { font-size: 1.15rem; max-width: 42rem; }
.lp-lines { max-width: 42rem; padding-left: 1.2rem; }
.lp-also { color: var(--muted); font-size: .95rem; }

.lp-actions { margin: 1.4rem 0; }
.lp-cta {
  display: inline-block;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.lp-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.lp-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.lp-frame iframe { display: block; width: 100%; height: 42rem; border: 0; }

.lp-list { margin: 0; padding-left: 1.2rem; }
.lp-catalog .lp-list li + li { margin-top: .25rem; }

.lp-offer {
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 32rem;
}
.lp-offer-points { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.lp-offer-points li { display: flex; gap: .55rem; }
.lp-tick { flex: 0 0 auto; font-weight: 900; }
.lp-offer-row { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.lp-offer-row + .lp-offer-row { border-top: 1px dashed var(--line); margin-top: .5rem; padding-top: .5rem; }
.lp-offer-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.lp-offer-what { font-weight: 600; }
.lp-offer-footnote { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); }

.lp-links { display: flex; flex-wrap: wrap; gap: .5rem .5rem; list-style: none; margin: 0; padding: 0; }
.lp-links a {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
}
.lp-links a:hover { background: var(--tint); }

.lp-footer { border-top: 1px solid var(--line); padding: 1.2rem max(1.15rem, calc((100vw - 60rem) / 2)); }
.lp-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .92rem; }
.lp-footer a { color: var(--muted); }

@media (max-width: 40rem) {
  .lp-frame iframe { height: 34rem; }
}
