/* brung.me — warm-monochrome site styles. No inline styles anywhere: the CSP forbids them. */

/* Fonts (self-hosted, latin subsets; OFL licences next to the files) */
@font-face { font-family: 'Geist'; src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* Tokens: light by default, dark from the OS setting */
:root {
  color-scheme: light dark;
  --bg: #F7F6F3; --surface: #FFFFFF; --sunken: #F1F1EF; --border: #EAEAEA;
  --text: #111111; --muted: #6F6E69;
  --accent: #111111; --on-accent: #FFFFFF; --accent-hover: #333333;
  --progress: #FF1493; --halo: rgba(255,20,147,.18); --track: #EAEAEA;
  --c-transit-bg: #F1F1EF; --c-transit-fg: #2F3437;
  --c-out-bg: #E1F3FE; --c-out-fg: #1F6C9F;
  --c-pickup-bg: #FBF3DB; --c-pickup-fg: #956400;
  --c-done-bg: #EDF3EC; --c-done-fg: #346538;
  --c-late-bg: #FDEBEC; --c-late-fg: #9F2F2D;
  --glow: rgba(214,170,120,.14); --dot: rgba(17,17,17,.06);
  --logo-light: block; --logo-dark: none;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: Geist, 'Helvetica Neue', Arial, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919; --surface: #202020; --sunken: #2A2A28; --border: rgba(255,255,255,.08);
    --text: #EDEDEB; --muted: #9B9A97;
    --accent: #EDEDEB; --on-accent: #191919; --accent-hover: #FFFFFF;
    --progress: #FF1493; --halo: rgba(255,20,147,.25); --track: #333331;
    --c-transit-bg: #2A2A28; --c-transit-fg: #D3D3D0;
    --c-out-bg: #1B3445; --c-out-fg: #9CD0F5;
    --c-pickup-bg: #3A2F14; --c-pickup-fg: #EBC56F;
    --c-done-bg: #1F3522; --c-done-fg: #A5D3A8;
    --c-late-bg: #3B2425; --c-late-fg: #F2A9A6;
    --glow: rgba(214,170,120,.05); --dot: rgba(255,255,255,.05);
    --logo-light: none; --logo-dark: block;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }

/* Type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.serif em { font-style: italic; }
.mono { font-family: var(--mono); }
.label { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label-sm { font-size: 11px; }
.muted { color: var(--muted); }
.m-0 { margin: 0; }
.h1 { margin: 0; font-size: 84px; }
.h2 { margin: 20px 0 56px; font-size: 60px; }
.h2.tight { margin-bottom: 16px; }
.h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.desc { margin: 8px 0 0; }
.max-380 { max-width: 380px; }
.max-440 { max-width: 440px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 6px;
  font: 500 15px/1 var(--sans); text-decoration: none;
  border: 1px solid transparent; transition: background .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* Header + footer */
.top { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--border); }
.top.static { position: static; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); }
.foot { border-top: 1px solid var(--border); padding: 40px 0 56px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; font-size: 14px; }
.foot a { color: var(--muted); }

/* Cards, chips, progress */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; flex: none; }
.c-transit { background: var(--c-transit-bg); color: var(--c-transit-fg); }
.c-out { background: var(--c-out-bg); color: var(--c-out-fg); }
.c-pickup { background: var(--c-pickup-bg); color: var(--c-pickup-fg); }
.c-done { background: var(--c-done-bg); color: var(--c-done-fg); }
.c-late { background: var(--c-late-bg); color: var(--c-late-fg); border: 1px dashed var(--c-late-fg); }
.bar { position: relative; height: 16px; margin-top: 8px; }
.bar .tr { position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 2px; background: var(--track); }
.bar .fl { position: absolute; left: 0; top: 6px; height: 4px; border-radius: 2px; background: var(--progress); }
.bar .hd { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--progress); box-shadow: 0 0 0 5px var(--halo); }
.bar.lg { height: 20px; margin-top: 14px; }
.bar.lg .tr, .bar.lg .fl { top: 8px; }
.bar.lg .hd { top: 4px; }
/* Progress amounts (classes, not inline styles) */
.bar.p40 .fl { width: 40%; } .bar.p40 .hd { left: 40%; }
.bar.p48 .fl { width: 48%; } .bar.p48 .hd { left: 48%; }
.bar.p72 .fl { width: 72%; } .bar.p72 .hd { left: 72%; }
.bar.p92 .fl { width: 92%; } .bar.p92 .hd { left: 92%; }

/* Sections */
.sec { padding: 128px 0; border-top: 1px solid var(--border); }
.hero { padding: 128px 0 136px; border-top: 0; }
.hero-bg {
  background-image: radial-gradient(ellipse 60% 50% at 78% 30%, var(--glow), transparent 70%), radial-gradient(circle, var(--dot) 1px, transparent 1.5px);
  background-size: auto, 24px 24px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 64px; align-items: center; }
.hero-label { margin: 0 0 28px; }
.lede { margin: 32px 0 0; font-size: 19px; line-height: 1.6; max-width: 480px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.note { margin: 28px 0 0; font-size: 14px; }
.sec-lede { margin: 0 0 56px; font-size: 19px; max-width: 560px; }

/* Hero app mock */
.mock { overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.mock-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; }
.mock-url { flex: 1; text-align: center; font-size: 12px; margin-right: 44px; }
.mock-body { background: var(--bg); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 20px; }
.mock-title { font-size: 36px; }
.mock-sub { font-size: 14px; margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.pcard { padding: 14px 16px 10px; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prow-c { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.pname { font-weight: 600; font-size: 16px; }
.ptime { font-size: 13px; text-align: right; }
.psmall { font-size: 13px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.row2 { grid-row: span 2; }
.tile { padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.tile-wide { padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 36px; align-items: center; }
.tile-tall { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.tile-row { padding: 32px 36px; display: flex; gap: 20px; align-items: flex-start; }
.push { margin-top: auto; }
.h3-serif { margin: 0; font-size: 36px; }
.desc-lg { margin: 12px 0 0; }
.icon { flex: none; width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon.done { background: var(--c-done-bg); color: var(--c-done-fg); }
.icon.out { background: var(--c-out-bg); color: var(--c-out-fg); }
.icon.late { background: var(--c-late-bg); color: var(--c-late-fg); }

/* Inbox list */
.inboxes { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.inbox { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.inbox + .inbox { border-top: 1px solid var(--border); }
.inbox svg { flex: none; }
.inbox-meta { flex: 1; min-width: 0; }
.inbox-name { font-weight: 500; font-size: 15px; }
.inbox-sub { font-size: 12px; }

/* Email sample */
.email { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: var(--bg); font-size: 14px; line-height: 1.7; }
.email-from { font-size: 12px; }
.email-body { margin-top: 6px; }
.hl { background: var(--c-pickup-bg); color: var(--c-pickup-fg); padding: 1px 5px; border-radius: 4px; font-size: 13px; white-space: nowrap; }

/* Journey */
.jrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.jname { font-weight: 600; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-top: 10px; line-height: 1.4; }
.stages .now { color: var(--text); }
.stages .end { text-align: right; }

/* Carriers */
.carriers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 48px; border-top: 1px solid var(--border); }
.carrier { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cname { font-weight: 500; }

/* Privacy policy page */
.doc-main { padding-top: 112px; padding-bottom: 128px; }
.layout { display: grid; grid-template-columns: 200px minmax(0, 680px); gap: 96px; }
.toc { position: sticky; top: 32px; align-self: start; padding-top: 12px; }
.toc .label { margin: 0 0 12px; }
.toc a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; padding: 6px 0; }
.toc a:hover { color: var(--text); }
.doc { line-height: 1.7; }
.doc-h1 { margin: 20px 0 0; font-size: 72px; letter-spacing: -0.025em; line-height: 1.1; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; margin: 72px 0 16px; scroll-margin-top: 24px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 10px 0; }
.doc li::marker { color: var(--muted); }
.doc b { font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 13px; background: var(--sunken); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; word-break: break-all; }
.summary { margin-top: 48px; padding: 28px 32px; }
.summary .label { margin: 0 0 10px; }
.summary-text { margin: 0; font-size: 17px; }
.callout { padding-left: 20px; border-left: 2px solid var(--text); font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); }
.doc th { font: 500 11px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc td:last-child, .doc th:last-child { padding-right: 0; }

/* Narrow screens */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .bento { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .row2 { grid-row: auto; }
  .carriers { grid-template-columns: 1fr; }
  .nav .opt { display: none; }
  .h1 { font-size: 52px; }
  .h2 { font-size: 40px; }
  .sec, .hero { padding: 80px 0; }
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { display: none; }
  .doc-main { padding-top: 64px; padding-bottom: 80px; }
  .doc-h1 { font-size: 48px; }
  .doc h2 { margin-top: 56px; }
}
@media (max-width: 480px) {
  .tile, .tile-wide, .tile-tall { padding: 24px; }
  .tile-row { padding: 24px; }
  .summary { padding: 24px 20px; }
  .mock-body { padding: 24px 16px 16px; }
  .mock-url { margin-right: 0; }
}

/* Scroll reveal: only hidden when JS runs (reveal.js sets .js) and motion is welcome */
.i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0; transform: translateY(12px);
    transition: opacity .6s var(--ease) calc(var(--i, 0) * 80ms), transform .6s var(--ease) calc(var(--i, 0) * 80ms), box-shadow .2s;
  }
  .js .rv.is-in { opacity: 1; transform: none; }
}
