/* Alert website.
   Layout concept: a left-aligned page built around one instrument, the "budget line".
   Sticker-style buttons, ruled lists instead of card grids, signal yellow used sparingly.
   Fonts are self-hosted (no requests to Google), in keeping with Alert's privacy promise. */

@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");
}
@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #F3F5F7;
  --surface: #FFFFFF;
  --ink: #0F1419;
  --muted: #4A5561;
  --line: #D5DCE3;
  --signal: #FFD21F;
  --on-signal: #0F1419;
  --signal-soft: #FFEFA6;
  --good: #0A7545;
  --good-soft: #D9F2E5;
  --amber: #8A5300;
  --amber-soft: #FFEFC2;
  --slate: #3C4753;
  --slate-soft: #E4E9EE;
  --frame: #0F1419;
  --focus: #0F1419;
  --shadow: rgba(15, 20, 25, 0.14);
  --mark-bg: linear-gradient(transparent 60%, var(--signal) 60%);
  --mark-fg: var(--ink);
  --font-display: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree Variable", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1014; --surface: #151B21; --ink: #F1F4F7; --muted: #A6B1BC; --line: #27313A;
    --signal-soft: #5A4A0C; --good: #52D694; --good-soft: #11362A;
    --amber: #FFC857; --amber-soft: #3A2E10; --slate: #C3CCD4; --slate-soft: #212A32;
    --frame: #070A0D; --focus: #FFD21F; --shadow: rgba(0, 0, 0, 0.5);
    --mark-bg: var(--signal); --mark-fg: var(--on-signal);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1014; --surface: #151B21; --ink: #F1F4F7; --muted: #A6B1BC; --line: #27313A;
  --signal-soft: #5A4A0C; --good: #52D694; --good-soft: #11362A;
  --amber: #FFC857; --amber-soft: #3A2E10; --slate: #C3CCD4; --slate-soft: #212A32;
  --frame: #070A0D; --focus: #FFD21F; --shadow: rgba(0, 0, 0, 0.5);
  --mark-bg: var(--signal); --mark-fg: var(--on-signal);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--signal); color: var(--on-signal); padding: 10px 16px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

/* header ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 16px; }
.brand { display: inline-flex; gap: 3px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 82%; font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.brand i { width: 0.34em; height: 0.34em; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--ink); margin-top: 0.1em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 0.97rem; font-weight: 600; }
.nav a { text-decoration: none; padding-block: 4px; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.75em 1.35em; border: 2px solid var(--ink); border-radius: 10px; background: var(--signal); color: var(--on-signal); font: 700 1rem/1.2 var(--font-body); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; transform: none; background: var(--slate-soft); }
.btn--small { padding: 0.5em 1em; font-size: 0.93rem; }

/* hero -------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 7vw, 88px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.display { font-family: var(--font-display); font-weight: 800; font-stretch: 76%; font-size: clamp(2.9rem, 8vw + 0.4rem, 6.2rem); line-height: 0.93; letter-spacing: -0.012em; text-wrap: balance; }
.mark { background: var(--mark-bg); color: var(--mark-fg); padding-inline: 0.06em; margin-inline: -0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-sub { max-width: 52ch; margin-top: 24px; font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 0.93rem; color: var(--muted); }
.hero-visual { display: grid; gap: 26px; min-width: 0; }

/* the budget line --------------------------------------------------- */
.budgetline { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 18px 20px 18px; box-shadow: 6px 6px 0 var(--ink); }
.bl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.bl-name { font-weight: 700; }
.bl-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bl-ends { display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.bl-track { position: relative; height: 14px; border-radius: 7px; background: var(--slate-soft); margin-bottom: 64px; }
.bl-zone { position: absolute; inset: 0 auto 0 0; width: 56.25%; background: var(--signal-soft); border-radius: 7px 0 0 7px; }
.bl-dream { position: absolute; inset: 0 auto 0 0; width: 66.667%; background: var(--signal); border-radius: 7px 0 0 7px; }
.bl-tick { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--ink); }
.bl-label { position: absolute; top: calc(100% + 14px); font-size: 0.8rem; line-height: 1.25; color: var(--muted); white-space: nowrap; }
.bl-label strong { display: block; font-size: 1.02rem; color: var(--ink); }
.bl-label--left { transform: translateX(-100%); text-align: right; padding-right: 8px; }
.bl-label--right { padding-left: 8px; }
.bl-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: 99px; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; line-height: 1.2; white-space: nowrap; background: var(--ink); color: var(--bg); }
.bl-mark--was { background: var(--surface); color: var(--muted); border: 2px dashed var(--muted); }
.bl-caption { margin-top: 2px; font-size: 0.93rem; color: var(--muted); }

/* notifications ------------------------------------------------------ */
.notif { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 30px var(--shadow); }
.notif-top { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.notif-icon { width: 20px; height: 20px; border-radius: 6px; background: var(--frame); display: grid; place-items: center; }
.notif-icon i { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.notif-title { font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.notif-body { margin-top: 4px; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

/* sections ---------------------------------------------------------- */
.section { padding-block: clamp(44px, 7vw, 88px); border-top: 1px solid var(--line); }
.section h2, .prose h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: clamp(2rem, 3.6vw + 0.8rem, 3.2rem); line-height: 1; letter-spacing: -0.008em; text-wrap: balance; }
.lede { max-width: 60ch; margin-top: 14px; font-size: 1.12rem; color: var(--muted); }
.section-head { margin-bottom: clamp(26px, 4vw, 44px); }

.steps { list-style: none; padding: 0; display: grid; gap: 30px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.steps li { border-top: 3px solid var(--ink); padding-top: 16px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; background: var(--signal); color: var(--on-signal); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; border: 2px solid var(--ink); border-radius: 8px; }
.steps h3, .rules h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 6px; }
.steps p, .rules p { color: var(--muted); }

.rules { display: grid; gap: 0 clamp(24px, 5vw, 64px); }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rules > div { padding-block: 20px; border-top: 1px solid var(--line); }
.rules > div:first-child { border-top: 0; }
@media (min-width: 760px) { .rules > div:nth-child(2) { border-top: 0; } }

/* try-it ------------------------------------------------------------- */
.tryit { margin-top: 36px; display: grid; gap: 22px; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: clamp(18px, 3vw, 28px); box-shadow: 6px 6px 0 var(--ink); }
@media (min-width: 760px) { .tryit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.tryit h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tryit-fields { display: grid; gap: 16px; }
.tryit label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 6px; }
.tryit input[type="number"] { width: 100%; max-width: 12rem; padding: 0.55em 0.7em; font: 700 1.2rem var(--font-body); color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 8px; }
.tryit input[type="range"] { width: 100%; accent-color: var(--ink); }
.tryit-out { padding: 18px; border-radius: 10px; background: var(--signal-soft); font-size: 1.05rem; }
.tryit-out .big { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 2.6rem; line-height: 1.05; }
.tryit-out p { margin-top: 6px; font-size: 0.93rem; color: var(--ink); }

/* phone screens ------------------------------------------------------ */
.shots { display: grid; gap: 44px 28px; justify-items: center; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.shot { display: grid; gap: 14px; width: 100%; max-width: 320px; }
.shot figcaption { font-size: 0.93rem; color: var(--muted); text-align: center; }
.shot figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.phone { width: 100%; max-width: 300px; margin-inline: auto; background: var(--frame); border-radius: 40px; padding: 9px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px var(--shadow); }
.screen { background: var(--bg); border-radius: 32px; min-height: 690px; padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: 0.86rem; line-height: 1.4; }
.screen::before { content: ""; width: 78px; height: 20px; border-radius: 12px; background: var(--frame); align-self: center; margin-bottom: 2px; flex: none; }
.app-title { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 1.7rem; line-height: 1; }
.app-sub { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.app-sub svg { width: 12px; height: 12px; flex: none; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; display: grid; gap: 6px; }
.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.item-name { font-weight: 700; line-height: 1.25; min-width: 0; }
.item-price { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.35rem; line-height: 1; }
.item-meta { font-size: 0.78rem; color: var(--muted); }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.item-note { font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.spark { width: 100%; height: 30px; display: block; color: var(--muted); }
.pill { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill--good { background: var(--good-soft); color: var(--good); }
.pill--close { background: var(--amber-soft); color: var(--amber); }
.pill--above { background: var(--slate-soft); color: var(--slate); }
.screen-cta { margin-top: auto; text-align: center; }
.screen-cta .btn { width: 100%; }
.screen .btn { font-size: 0.9rem; padding: 0.7em 0.9em; }
.eyebrow-sm { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bigprice { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 3.2rem; line-height: 1; }
.bigprice-sub { color: var(--muted); font-size: 0.86rem; }
.mini-line { position: relative; height: 10px; border-radius: 5px; background: var(--slate-soft); margin: 6px 2px 28px; }
.mini-line .bl-zone { border-radius: 5px 0 0 5px; }
.mini-line .bl-dream { border-radius: 5px 0 0 5px; }
.mini-line .dot { position: absolute; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.mini-line small { position: absolute; top: 16px; font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.detail-body { color: var(--muted); }
.adtag { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1.5px solid currentColor; border-radius: 4px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; vertical-align: 0.1em; }
.fine { font-size: 0.74rem; color: var(--muted); line-height: 1.4; }
.links-row { display: flex; gap: 16px; justify-content: center; font-weight: 700; font-size: 0.86rem; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field-box { background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.6rem; line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 4px 8px; border: 2px solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 0.78rem; background: var(--surface); }
.chip--on { background: var(--ink); color: var(--bg); }
.result { background: var(--signal-soft); border-radius: 12px; padding: 12px 14px; }
.result .fine { color: var(--ink); }
.result b { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.5rem; display: block; line-height: 1.1; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }

/* earn / faq / cta --------------------------------------------------- */
.split { display: grid; gap: 28px 56px; }
@media (min-width: 820px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.split p + p { margin-top: 12px; }
.split p { color: var(--muted); max-width: 60ch; }
.text-link { font-weight: 700; color: var(--ink); }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 18px; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 62ch; }

.cta-band { background: var(--signal); color: var(--on-signal); border-block: 2px solid var(--ink); }
.cta-band .wrap { padding-block: clamp(34px, 6vw, 64px); display: grid; gap: 22px; }
@media (min-width: 820px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: clamp(1.8rem, 3.2vw + 0.8rem, 2.8rem); line-height: 1; text-wrap: balance; }
.cta-band p { margin-top: 10px; max-width: 52ch; }
.cta-band .btn { background: var(--on-signal); color: var(--signal); border-color: var(--on-signal); box-shadow: none; }
.cta-band :focus-visible { outline-color: var(--on-signal); }

/* legal / long-form pages ---------------------------------------------- */
.prose { padding-block: clamp(36px, 6vw, 72px); }
.prose .wrap > * { max-width: 70ch; }
.prose h1 { margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-size: 0.93rem; margin-bottom: 30px; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.6rem; line-height: 1.15; margin: 40px 0 10px; text-wrap: balance; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-top: 12px; }
.prose ul { padding-left: 1.25em; margin-top: 10px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.callout { margin-top: 22px; padding: 16px 18px; border-left: 6px solid var(--signal); background: var(--surface); border-radius: 0 10px 10px 0; }
.callout p { margin: 0; color: var(--ink); }

/* footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 28px 40px; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1.2fr 0.8fr 1fr; } }
.site-footer h2 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); }
.site-footer address { font-style: normal; }
.legal-line { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
