/* Grabber website. Same visual language as the app (docs/design.md, v5 "quiet").
   One container, one type scale:
   H1 64/44 · H2 44/32 · H3 17 · body 18/16 · small 15 · label 13. Headlines Geist 700, -0.045em, 0.96. */

:root {
  --bg: #F3F2EF;
  --surface: #FFFFFF;
  --ink: #161514;
  --text: #161514;
  --text2: #5E5C58;
  --muted: #8A8781;
  --hairline: rgba(22, 21, 20, .08);
  --line: rgba(22, 21, 20, .12);
  --fill: rgba(22, 21, 20, .05);
  --red: #D2382C;
  --band-bg: #161514;
  --band-text: #F2F1ED;
  --band-text2: #A3A09A;
  --bezel: #161514;
  --card-shadow: 0 1px 2px rgba(22, 21, 20, .03), 0 8px 24px -12px rgba(22, 21, 20, .08);
  --phone-shadow: 0 30px 60px -24px rgba(22, 21, 20, .30), 0 12px 24px -12px rgba(22, 21, 20, .16);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 24px;
  --max: 1120px;
  --section: 72px;
  color-scheme: light dark;
}
@media (min-width: 768px) { :root { --gutter: 40px; --section: 120px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F0F;
    --surface: #1A1A19;
    --ink: #F2F1ED;
    --text: #F2F1ED;
    --text2: #A3A09A;
    --muted: #7C7A75;
    --hairline: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .12);
    --fill: rgba(255, 255, 255, .06);
    --band-bg: #1A1A19;
    --bezel: #2A2A28;
    --card-shadow: none;
    --phone-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
strong, b { font-weight: 600; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 15px;
}
.skip:focus-visible { top: 12px; }

/* the one container: every section, the nav and the footer share these edges */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ type scale */

.h1, .hero h1 {
  margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: .96;
  font-size: 44px;
}
.h2, .section h2, .doc h1 {
  margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: .98;
  font-size: 32px;
}
@media (min-width: 768px) {
  .h1, .hero h1 { font-size: 64px; }
  .h2, .section h2, .doc h1 { font-size: 44px; }
}
.sub { margin: 16px 0 0; color: var(--text2); text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.label { font-size: 13px; font-weight: 500; color: var(--text2); letter-spacing: 0; }

/* ------------------------------------------------------------ header */

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hairline); }
.header-nav { display: flex; align-items: center; gap: 4px; margin-right: -12px; }
.header-nav a { text-decoration: none; font-size: 15px; color: var(--text2); padding: 8px 12px; border-radius: 999px; }
.header-nav a:hover { color: var(--text); background: var(--fill); }
.header-nav .lang { color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); margin-left: 6px; margin-right: 12px; }
@media (max-width: 520px) { .header-nav .hide-sm { display: none; } }

/* ------------------------------------------------------------ App Store badge */

.badge-link { display: inline-block; border-radius: 10px; line-height: 0; transition: opacity .15s ease, transform .15s ease; }
.badge-link:hover { opacity: .86; }
.badge-link:active { transform: scale(.98); }
.badge-link svg { height: 52px; width: auto; }
.badge-row { display: flex; justify-content: center; margin-top: 36px; padding: 6px; }

/* ------------------------------------------------------------ hero */

.hero { padding: 8px 0 var(--section); text-align: center; }
.hero-stage { position: relative; margin: 0 calc(var(--gutter) * -1); overflow: hidden; }
.hero-art { width: 100%; height: auto; }
.hero-art .i { fill: var(--ink); }
.hero-art .p { fill: var(--surface); }
.hero-art .r { fill: var(--red); }
/* phones: show the middle of the skyline, larger */
@media (max-width: 767px) { .hero-stage .hero-art { width: 220%; max-width: none; margin-left: -73%; } }
@media (min-width: 768px) { .hero-stage { margin: 0; overflow: visible; } }

.hero-copy { max-width: 760px; margin: 32px auto 0; }
.hero-copy .sub { max-width: 40em; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .hero-copy { margin-top: 48px; } .hero-copy .sub { margin-top: 20px; } }

.replay {
  position: absolute; right: var(--gutter); top: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; width: 32px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text2); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 13px/1 var(--font); cursor: pointer;
  transition: opacity .4s ease, color .15s ease, background .15s ease;
}
.replay:hover { color: var(--text); background: var(--fill); }
.replay svg { width: 15px; height: 15px; }
.replay span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.replay[hidden] { display: none; }
.replay.is-busy { opacity: 0; pointer-events: none; }
@media (min-width: 768px) {
  .replay { right: 0; width: auto; padding: 0 12px 0 10px; }
  .replay span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* intro states, only while the animation runs (set by the inline head script) */
.intro-art .ha-trail, .intro-art .ha-scorch, .intro-art .ha-smoke, .intro-art .ha-dust, .intro-art .ha-damage,
.intro-art .ha-sparks, .intro-art .ha-debris { visibility: hidden; }
.intro-text [data-reveal] { opacity: 0; transform: translateY(14px); }
.intro-text [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------ sections */

.section { padding: 0 0 var(--section); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }

/* ------------------------------------------------------------ phones */

.phones {
  list-style: none; margin: 0; padding: 8px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 236px)); justify-content: center; gap: 40px;
}
.phones li { margin: 0; text-align: center; }
.phone {
  position: relative; border-radius: 15.5% / 7.2%; padding: 3.2%;
  background: var(--bezel); box-shadow: var(--phone-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: auto; aspect-ratio: 554 / 1200; border-radius: 12.4% / 5.8%; background: var(--surface); }
.phones h3 { margin: 24px 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.phones p { margin: 0; font-size: 15px; color: var(--text2); line-height: 1.45; }
@media (max-width: 1023px) {
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px; justify-content: start;
    gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px; scroll-padding: 0 var(--gutter);
  }
  .phones::-webkit-scrollbar { display: none; }
  .phones li { scroll-snap-align: start; }
}

/* ------------------------------------------------------------ feature cards */

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px;
  box-shadow: var(--card-shadow); padding: 20px;
  display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; align-items: start;
}
.card picture { display: block; grid-row: span 2; }
.card img { width: 56px; height: 56px; }
.card h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text2); }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { display: block; padding: 24px; }
  .card img { width: 64px; height: 64px; }
  .card picture { margin-bottom: 20px; }
  .card h3 { margin: 0 0 6px; }
}
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ------------------------------------------------------------ privacy band */

.band {
  background: var(--band-bg); color: var(--band-text); border-radius: 28px;
  padding: 56px 24px; text-align: center;
}
.band h2 { color: var(--band-text); }
.band .sub { color: var(--band-text2); max-width: 32em; margin-left: auto; margin-right: auto; }
.band a { color: var(--band-text); font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 28px; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-size: 15px; line-height: 1.2; }
@media (min-width: 768px) { .band { padding: 96px 48px; border-radius: 32px; } }
@media (prefers-color-scheme: dark) { .band { box-shadow: inset 0 0 0 1px var(--hairline); } }

/* ------------------------------------------------------------ closing */

.closing { text-align: center; }
.closing .sub { max-width: 40em; margin-left: auto; margin-right: auto; }
.note { margin: 32px auto 0; max-width: 52em; text-wrap: balance; font-size: 13px; line-height: 1.5; color: var(--text2); }
.note::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.note strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--text2); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
@media (min-width: 768px) {
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ------------------------------------------------------------ document pages */

.doc { padding: 32px 0 var(--section); }
.doc-body { max-width: 720px; }
.doc h1 { margin: 0 0 28px; }
.doc h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; margin: 44px 0 12px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted); }
.doc a { font-weight: 500; }
.doc .contact { margin: 28px 0 8px; }
.doc .btn {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 600 16px/1 var(--font); text-decoration: none;
}
.doc .btn:hover { opacity: .9; }
.doc .notice {
  margin: 24px 0 8px; padding: 16px 18px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--hairline); font-size: 15px; color: var(--text2);
}
.doc .notice::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 2px; }
.doc .notice strong { color: var(--text); }

.table-wrap { margin: 16px 0 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--hairline); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.doc th { font-weight: 600; font-size: 13px; color: var(--text2); background: var(--fill); }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table { background: none; box-shadow: none; border-radius: 0; }
  .doc tr { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--hairline); padding: 6px 0; margin-bottom: 10px; }
  .doc td { border: 0; padding: 6px 16px; }
  .doc td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 1px; }
}

/* 404 */
.lost { padding: 48px 0 var(--section); text-align: center; }
.lost img { width: 140px; height: 140px; margin: 0 auto; }
.lost h1 { margin-top: 24px; }
.lost .sub { margin-left: auto; margin-right: auto; }
.lost .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: 15px; }
.lost .links a { font-weight: 600; }
