/* NotifDetox website, on the NotifDetox design system ("slips and noise"): fog ground, flat paper with
   hairline edges, squared corners, Unbounded for display, Archivo for reading, Martian Mono for numbers and
   printed labels. ultra = the app and anything kept; hush (amber, hatched) = promotional, folded away. */

@font-face { font-family: "Unbounded"; src: url("/static/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/static/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/static/fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --fog: #ecede7; --paper: #fafaf6; --paper-sunk: #e2e4dc; --rule: #d3d5cc; --rule-strong: #73786f;
  --ink: #121418; --ink-muted: #565b57; --on-ink: #ecede7;
  --ultra: #2536d9; --on-ultra: #ffffff; --ultra-soft: #dfe2fa; --on-ultra-soft: #1a2699;
  --hush: #f0a030; --hush-soft: #f7e5c6; --hush-ink: #874b00; --hush-hatch: #f0a03059;
  --dock: #15171c; --on-dock: #ecede7; --on-dock-muted: #a3a8b0; --dock-mark: #94a0ff;
  --focus: #2536d9;
  --shadow-dock: 0 10px 28px rgba(10,12,16,0.28), 0 2px 6px rgba(10,12,16,0.18);
  --font-display: "Unbounded", "Archivo", system-ui, sans-serif;
  --font-text: "Archivo", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;
  --notch: 7px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fog: #0f1013; --paper: #181a1f; --paper-sunk: #0a0b0d; --rule: #2b2e35; --rule-strong: #666c78;
    --ink: #edeee8; --ink-muted: #9da2aa; --on-ink: #121418;
    --ultra: #94a0ff; --on-ultra: #0f1013; --ultra-soft: #1f2556; --on-ultra-soft: #d3d8ff;
    --hush-soft: #33250f; --hush-ink: #f4bd68; --hush-hatch: #f0a03040;
    --dock: #262a31; --on-dock: #edeee8; --on-dock-muted: #a9aeb7;
    --focus: #94a0ff;
    --shadow-dock: 0 10px 28px rgba(0,0,0,0.6), 0 0 0 1px rgba(237,238,232,0.08);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fog); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, figure { margin: 0; }
a { color: var(--ultra); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.overline { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--fog) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; list-style: none; padding: 0; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 6px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 90ms ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ultra); color: var(--on-ultra); }
.btn-secondary { color: var(--ink); border-color: var(--rule-strong); background: transparent; }
.btn-s { min-height: 40px; padding: 0 14px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--ink-muted); }

/* ---------- hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; margin: 14px 0 20px; }
.hero .lead { font-size: 19px; line-height: 1.55; max-width: 34em; margin-bottom: 28px; }
.hero .fine { margin-top: 14px; }

/* ---------- slips (the illustration) */
.slips { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.slip { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.slip-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.slip-app { display: flex; justify-content: space-between; gap: 8px; }
.slip-title { font-size: 17px; line-height: 22px; font-weight: 600; }
.slip-text { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.perf { position: relative; height: 0; border-top: 1.5px dashed var(--rule-strong); margin: 0 12px; }
.perf::before, .perf::after { content: ""; position: absolute; top: calc(-1 * var(--notch) - 1px); width: calc(2 * var(--notch)); height: calc(2 * var(--notch)); border-radius: 50%; background: var(--fog); border: 1px solid var(--rule); }
.perf::before { left: calc(-12px - var(--notch) - 1px); }
.perf::after { right: calc(-12px - var(--notch) - 1px); }
.stub { display: flex; align-items: center; gap: 8px; padding: 9px 16px; min-height: 46px; }
.stub .action { margin-left: auto; font-size: 13px; font-weight: 600; border: 1.5px solid var(--rule-strong); border-radius: 6px; padding: 4px 10px; background: var(--paper); color: var(--ink); }
.slip.hushed .slip-title { color: var(--ink-muted); font-weight: 500; }
.slip.hushed .stub, .hatched { background-color: var(--hush-soft); background-image: repeating-linear-gradient(135deg, var(--hush-hatch) 0 1.5px, transparent 1.5px 7px); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: 2px; background: var(--paper-sunk); color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.tag.kept { background: var(--ultra-soft); color: var(--on-ultra-soft); }
.tag.promo { background: transparent; color: var(--hush-ink); padding: 0; }
.bundle { display: inline-block; width: 16px; height: 13px; position: relative; flex: none; }
.bundle i { position: absolute; left: 0; right: 0; height: 3px; border-radius: 1px; background: var(--hush); }
.bundle i:nth-child(1) { top: 0; left: 4px; right: 4px; opacity: .55; }
.bundle i:nth-child(2) { top: 5px; left: 2px; right: 2px; opacity: .8; }
.bundle i:nth-child(3) { top: 10px; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }

/* ---------- figures strip */
.facts { padding: 8px 0 56px; }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 18px 16px; display: flex; flex-direction: column-reverse; gap: 4px; justify-content: flex-end; }
.fact dd { margin: 0; font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.fact dt { font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.facts .fine { margin-top: 12px; }

/* ---------- sections */
section.band { padding: 72px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin: 10px 0 12px; }
.section-head p { font-size: 18px; color: var(--ink-muted); }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; }
.panel h3 { font-size: 18px; line-height: 1.35; margin: 8px 0 6px; }
.panel p { color: var(--ink-muted); font-size: 16px; }
.grid { display: grid; gap: 12px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.steps { list-style: none; padding: 0; }
.more { margin-top: 16px; }
.price .amount .per { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0; color: var(--ink-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--rule-strong); border-radius: 6px; font-weight: 600; font-size: 15px; background: var(--paper); }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--ultra); }

.slot { display: inline-flex; border: 1.5px solid var(--rule-strong); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.slot span { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink-muted); background: var(--paper); }
.slot span + span { border-left: 1px solid var(--rule-strong); }
.slot span.on { background: var(--ink); color: var(--on-ink); }

.ruler { margin-top: 14px; }
.ruler-track { position: relative; height: 34px; }
.ruler-ticks { position: absolute; inset: 0 0 14px 0; display: flex; justify-content: space-between; align-items: flex-end; }
.ruler-ticks i { width: 1.5px; height: 8px; background: var(--rule-strong); }
.ruler-ticks i:nth-child(5n+1) { height: 16px; }
.ruler-fill { position: absolute; left: 0; bottom: 14px; height: 4px; width: 61%; background: var(--ultra); }
.ruler-needle { position: absolute; left: 61%; bottom: 10px; width: 4px; height: 24px; margin-left: -2px; background: var(--ultra); border-radius: 1px; }
.ruler-nums { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }

.privacy-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.privacy-list li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.privacy-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--ultra); transform: translateY(1px); }

.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.price .panel { display: flex; flex-direction: column; gap: 8px; }
.price .amount { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); margin: 6px 0; }
.price .panel.main { border: 1.5px solid var(--ultra); }
.price .anchor { align-self: flex-start; background: var(--ultra-soft); color: var(--on-ultra-soft); border-radius: 2px; padding: 4px 10px; font-weight: 600; font-size: 15px; }

/* ---------- FAQ: native disclosure, works without JavaScript */
.faq { display: grid; gap: 10px; max-width: 52em; }
.faq details { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-muted); }

/* ---------- closing call to action: the one heavy object */
.closing { padding: 72px 0 96px; }
.closing .card { background: var(--dock); color: var(--on-dock); border-radius: 18px; padding: 44px; box-shadow: var(--shadow-dock); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.closing h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.03em; max-width: 18em; }
.closing p { color: var(--on-dock-muted); margin-top: 8px; }
.closing .btn-primary { background: var(--dock-mark); color: #0f1013; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 15px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; }
.site-footer a { color: var(--ink-muted); }

/* ---------- phones: the dock carries the install button */
.dock { display: none; }
@media (max-width: 900px) {
  .hero .wrap, .price, .grid.two { grid-template-columns: minmax(0, 1fr); }
  .grid.four, .grid.three, .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
  .site-header .cta-head { margin-left: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 40px; }
  .grid.four, .grid.three, .facts dl { grid-template-columns: minmax(0, 1fr); }
  .site-header .cta-head { display: none; }
  .closing .card { padding: 28px 22px; }
  body.has-dock { padding-bottom: 92px; }
  .dock { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 15; background: var(--dock); border-radius: 18px; box-shadow: var(--shadow-dock); padding: 8px; }
  .dock .btn { width: 100%; }
  .dock .btn-primary { background: var(--dock-mark); color: #0f1013; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
