/* Nature Strip's own look for the public pages: landing, about, support,
 * privacy and terms. THIS FILE IS OURS, not the factory's. It loads after the
 * factory's pages.css on the sub-pages and wins over it; the landing page
 * links it too, then adds its own section styles inline.
 *
 * Direction: "Hi-Vis" (DESIGN.md), the same as the app. Tradie workwear:
 * navy and white glass, one fluoro for the action, a strip of silver
 * reflective tape as the only ornament. Light and dark follow the device, as
 * the app does on System. One family, Archivo (variable weight and width),
 * self-hosted from /fonts because the server's CSP allows no other font origin.
 * Expanded for names and money, condensed for small labels, normal for copy. */

@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'), url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2'); }

:root {
  --font: 'Archivo Variable', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Constant across schemes */
  --vis: #D6F04A;            /* fluoro: fills only — the primary button, the brand mark, focus */
  --vis-press: #A9C21E;
  --on-vis: #0D1720;
  --tape-hi: #F3F6F8;
  --tape-lo: #9DA8AF;
  --navy: #0D1720;
  --navy-deep: #0B141C;

  /* Light */
  --ground: #E9EDE6;
  --surface: #FFFFFF;
  --glass: rgba(250, 251, 248, .86);
  --sunk: rgba(13, 23, 32, .07);
  --text: #0D1720;
  --mute: #4C5B63;
  --line: rgba(13, 23, 32, .13);
  --vis-ink: #4B5E00;        /* the accent as text: olive on light */
  --shadow: 0 10px 28px rgba(13, 23, 32, .16), 0 1px 2px rgba(13, 23, 32, .08);

  /* The dark bands (hero, closer, footer) are navy in both schemes. */
  --band: #0D1720;
  --band-text: #F2F5F3;
  --band-mute: #A7B7BF;
  --band-line: rgba(195, 204, 210, .18);
  --band-glass: rgba(242, 245, 243, .06);

  --gutter: clamp(16px, 4.5vw, 64px);
  --wrap: 1180px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B141C;
    --surface: #0D1720;
    --glass: rgba(13, 23, 32, .84);
    --sunk: rgba(195, 204, 210, .13);
    --text: #F2F5F3;
    --mute: #A7B7BF;
    --line: rgba(195, 204, 210, .18);
    --vis-ink: #D6F04A;
    --shadow: 0 10px 30px rgba(0, 0, 0, .32);
    --band: #111D27;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--text);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 560px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; font-stretch: 125%; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.x { font-stretch: 125%; }
.c { font-stretch: 78%; }
.num { font-variant-numeric: tabular-nums; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vis); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: light) { main :focus-visible { outline-color: var(--text); } }

/* An inline link in running text: padded to a 44px hit area without moving
   the line box, so the paragraph reads the same. */
.prose a, .inline-link { padding-block: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Skip link. Kept inside the viewport and invisible until focused. */
.skip { position: absolute; left: 12px; top: 12px; z-index: 20; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); background: var(--vis); color: var(--on-vis);
  font: 800 16px/1 var(--font); font-stretch: 125%; text-decoration: none; opacity: 0; pointer-events: none; }
.skip:focus, .skip:focus-visible { opacity: 1; pointer-events: auto; outline-color: var(--navy); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* --- the tape: the one ornament --------------------------------------- */
.tape { display: block; height: 4px; background: linear-gradient(180deg, var(--tape-hi), var(--tape-lo)); }

/* --- labels: small, condensed, sentence case --------------------------- */
.label { font: 700 14px/1.2 var(--font); font-stretch: 78%; letter-spacing: .04em; color: var(--mute); }

/* --- glass panels ------------------------------------------------------- */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }

/* --- the site header ---------------------------------------------------- */
.board-bar { position: relative; z-index: 5; background: var(--band); color: var(--band-text); }
.board-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(180deg, var(--tape-hi), var(--tape-lo)); }
.board-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none;
  font: 800 20px/1 var(--font); font-stretch: 125%; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.board-bar nav ul { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.board-bar nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--band-mute);
  text-decoration: none; font: 700 16px/1 var(--font); }
.board-bar nav a:not(.btn):hover { color: var(--band-text); }
@media (max-width: 860px) { .board-bar .nav-section { display: none; } }
@media (max-width: 380px) { .brand { font-size: 18px; } .brand img { width: 32px; height: 32px; } }

/* --- buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 26px;
  border: 0; border-radius: var(--r); font: 800 19px/1 var(--font); font-stretch: 125%; letter-spacing: -.005em;
  text-decoration: none; text-align: center; cursor: pointer; }
.btn-primary { background: var(--vis); color: var(--on-vis); box-shadow: inset 0 -2px 0 var(--vis-press), 0 6px 16px rgba(13, 23, 32, .18); }
.btn-primary:hover { background: #DDF566; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: var(--r-sm); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: var(--band-glass); }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary { transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease; }
  .btn-primary:active { transform: translateY(2px); box-shadow: inset 0 0 0 var(--vis-press); }
}

/* A store link that does not exist yet: a dashed empty slot, never a link. */
.btn-soon { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px;
  border: 1.5px dashed currentColor; border-radius: var(--r); color: var(--band-mute); opacity: .9;
  font: 700 16px/1.2 var(--font); text-align: center; }
.btn-soon small { font: inherit; margin-left: .4em; font-weight: 500; }

/* --- footer ------------------------------------------------------------- */
.site-footer { position: relative; background: var(--navy-deep); color: var(--band-mute); padding-block: 44px 52px; font-size: 16px; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(180deg, var(--tape-hi), var(--tape-lo)); }
.site-footer .wrap { display: grid; gap: 18px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer .brand { color: var(--band-text); }
.site-footer nav ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin-left: -12px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 12px; color: var(--band-text);
  font: 700 16px/1 var(--font); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer nav a[aria-current="page"] { color: var(--vis); }
.attrib { max-width: 72ch; color: var(--band-mute); font-size: 15px; line-height: 1.6; }
.attrib a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--band-text); }
.site-footer .copyright { color: var(--band-mute); font-size: 15px; }

/* --- the prose pages (about, support, privacy, terms) ------------------ */
.page-head { background: var(--band); color: var(--band-text); }
.page-head .wrap { padding-block: 48px 48px; max-width: 46rem; }
.page-head .label { display: none; } /* Hi-Vis: never an eyebrow over a heading */
.page-head h1 { font-size: clamp(32px, 5vw, 52px); }
.page-head .sub { margin-top: 14px; color: var(--band-mute); font-size: 18px; max-width: 52ch; }

.prose { max-width: 46rem; padding-block: 40px 64px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--text); text-decoration-color: var(--vis-ink); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-thickness: 3px; }
.prose .updated { color: var(--mute); font-size: 16px; margin-bottom: 20px; }
.prose .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 20px 22px 22px; margin: 0 0 24px; overflow: hidden; position: relative; }
.prose .card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(180deg, var(--tape-hi), var(--tape-lo)); }
.prose .card h2 { margin-top: 0; }
.prose .note { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0 0 24px; color: var(--mute); font-size: 16px; }
.prose kbd { display: inline-block; min-width: 1.7em; padding: 1px 7px; border-radius: 6px; background: var(--sunk); color: var(--text);
  border: 1px solid var(--line); font: 700 15px/1.4 var(--font); text-align: center; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 32px; margin-left: -2px;
  font: 700 17px/1 var(--font); font-stretch: 125%; }
.prose a.back { padding-block: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .board-bar nav, .skip, .btn, .btn-soon { display: none; }
  .page-head, .site-footer { background: none; color: #000; }
}
