/* FertTools marketing page — "Charcoal" palette (Specs/marketing-landing/v1.0-01.md, D3a).
   Cool-neutral ground, charcoal ink, one amber accent. Deliberately neither Ravensdown-green nor
   Ballance-blue (independence is the brand). Light tokens on :root; dark under the two guarded blocks.

   AA adjustment (coordinator, 2026-10-03): D3a light amber #B9791B is 3.2:1 on the ground / 3.6:1 on white,
   which fails AA for text-bearing elements. In LIGHT mode --accent / --signal / --accent-text are therefore
   #96600F (5.3:1 on white, 4.7:1 on the ground); #B9791B is kept as --mark for non-text marks only (logo).
   Dark is unchanged (#E0A24A, with #17120A button text). See Specs/marketing-landing/DECISIONS-build.md. */
:root {
  --max: 1080px;
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --bg: #F2F2F1;
  --surface: #FFFFFF;
  --fg: #1A1C1E;
  --muted: #5E6468;
  --line: #E3E2E0;
  --accent: #96600F;
  --accent-ink: #232629;
  --signal: #96600F;
  --mark: #B9791B;
  --accent-text: #96600F;
  --on-accent: #FFFFFF;
  --error: #A32A1E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121315;
    --surface: #191B1D;
    --fg: #ECECEA;
    --muted: #9AA0A4;
    --line: #292B2E;
    --accent: #E0A24A;
    --accent-ink: #232629;
    --signal: #E0A24A;
    --accent-text: #E0A24A;
    --mark: #E0A24A;
    --on-accent: #17120A;
    --error: #F08A7E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121315;
  --surface: #191B1D;
  --fg: #ECECEA;
  --muted: #9AA0A4;
  --line: #292B2E;
  --accent: #E0A24A;
  --accent-ink: #232629;
  --signal: #E0A24A;
  --accent-text: #E0A24A;
  --mark: #E0A24A;
  --on-accent: #17120A;
  --error: #F08A7E;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: 1.06; margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }

/* ---- Phase seam: html[data-phase] set from config.json (default ComingSoon in the HTML) ---- */
html[data-phase="ComingSoon"] .ph-beta, html[data-phase="ComingSoon"] .ph-live,
html[data-phase="Beta"] .ph-coming, html[data-phase="Beta"] .ph-live,
html[data-phase="Live"] .ph-coming, html[data-phase="Live"] .ph-beta,
html[data-phase="Live"] .ph-notlive, html[data-phase="ComingSoon"] .ph-notcoming { display: none !important; }

/* ---- Header ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; }
.mark { width: 26px; height: 26px; flex: 0 0 auto; }
.mark circle, .mark path { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signin { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-block: 8px 3px; text-align: right; }
.signin:hover { color: var(--fg); border-color: var(--accent); }
.signin-btn { font-family: var(--f-display); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--fg); border: 1px solid var(--accent); border-radius: 10px; padding: 9px 16px; white-space: nowrap; }
.signin-btn:hover { background: var(--accent); color: var(--on-accent); }

/* ---- Hero ---- */
.hero { padding-block: clamp(36px, 6vw, 78px) clamp(32px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4.3rem); font-weight: 800; max-width: 15ch; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.lede { margin: 22px 0 0; max-width: 52ch; font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--muted); }
.lede b { color: var(--fg); font-weight: 600; }

.capture { margin-top: 34px; max-width: 540px; }
.capture h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input[type=email] {
  flex: 1 1 220px; min-width: 0; font-family: var(--f-body); font-size: 1rem; color: var(--fg);
  background: var(--surface); border: 1px solid var(--muted); border-radius: 10px; padding: 13px 15px;
}
input[type=email]:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
input[type=email][aria-invalid="true"] { border-color: var(--error); }

/* Button text is 1.2rem bold (large text per WCAG): white on D3a amber is 3.6:1, which is AA for large text. */
.cta {
  display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  cursor: pointer; text-decoration: none; text-align: center;
  color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); border-radius: 10px; padding: 11px 22px;
}
.cta:hover { filter: brightness(1.06); }
.cta:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.cta[disabled] { opacity: .6; cursor: progress; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.note { margin: 12px 0 0; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); max-width: 60ch; }
.error { margin: 12px 0 0; font-size: .92rem; color: var(--error); min-height: 1.4em; }
.success { background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 18px 20px; max-width: 540px; margin-top: 34px; }
.success h2 { font-size: 1.1rem; color: var(--accent-text); }
.success p { margin: .4rem 0 0; color: var(--muted); font-size: .94rem; }

.units { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; color: var(--muted); list-style: none; }
.units li { white-space: nowrap; }
.units b { color: var(--accent-text); font-weight: 500; }

/* ---- Sections ---- */
section { padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }
.sec-head { max-width: 46ch; }
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
.sec-head p { color: var(--muted); margin: 10px 0 0; }
.grid { display: grid; gap: clamp(18px, 3vw, 28px); margin-top: 34px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .who > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card .n { font-family: var(--f-mono); font-size: .76rem; color: var(--accent-text); letter-spacing: .1em; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-top: 12px; }
.card p, .who p { color: var(--muted); margin: 9px 0 0; font-size: .95rem; }
.who { display: grid; gap: 14px; margin-top: 34px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.who h3 { font-size: 1.05rem; font-weight: 700; }

.manifesto { background: var(--accent-ink); border: 1px solid var(--accent-ink); border-radius: 20px; padding: clamp(28px, 5vw, 56px); margin-block: clamp(44px, 6vw, 72px); color: #ECEDEA; }
:root[data-theme="dark"] .manifesto { border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .manifesto { border-color: var(--line); } }
.manifesto .eyebrow { color: #E0A24A; }
.manifesto p { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 3.2vw, 2rem); line-height: 1.28; max-width: 30ch; margin: 18px 0 0; letter-spacing: -.01em; }
.manifesto p b { color: #fff; font-weight: 700; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: .9rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; justify-content: space-between; }
.foot-brand { font-family: var(--f-display); font-weight: 800; color: var(--fg); font-size: 1rem; }
.foot-meta { font-size: .86rem; line-height: 1.8; }
.foot-meta a { color: var(--muted); }
.foot-meta a:hover { color: var(--fg); }
.foot-meta span + span::before { content: "·"; margin-inline: 8px; }

/* ---- Notice pages (confirmed / unsubscribed / invalid link / 404) ---- */
.notice { padding-block: clamp(48px, 10vw, 120px); max-width: 620px; }
.notice h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; margin-top: 14px; }
.notice p { color: var(--muted); font-size: 1.1rem; margin: 18px 0 28px; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lede { animation-delay: .06s; }
  .hero .capture, .hero .success { animation-delay: .12s; }
  .hero .units { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
