:root {
  --brand: #d3342b;
  --brand-dark: #a8231c;
  --link: #b52a21;
  --ink: #241d1b;
  --muted: #655955;
  --paper: #fffaf8;
  --card: #ffffff;
  --line: #eadbd6;
  --shadow: 0 1px 2px rgba(60, 30, 25, 0.06), 0 10px 28px rgba(60, 30, 25, 0.08);
  --radius: 22px;
  --max: 1040px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --link: #ff9088;
    --ink: #f6eeec;
    --muted: #c0b0ab;
    --paper: #161111;
    --card: #211918;
    --line: #3a2d2b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Header */
.site-header { background: var(--brand); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 6px; }
.nav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.2); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: 56px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 90px; pointer-events: none; }
.hero::before { width: 720px; height: 380px; left: -240px; top: -190px; background: rgba(255, 255, 255, 0.1); transform: rotate(-7deg); }
.hero::after { width: 760px; height: 380px; right: -240px; bottom: -200px; background: var(--brand-dark); opacity: 0.8; transform: rotate(6deg); }
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero .app-icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 40px rgba(60, 10, 6, 0.35); }
.hero h1 { margin: 22px 0 0; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.hero .tagline { margin: 10px 0 0; font-size: clamp(1.25rem, 3.4vw, 1.75rem); font-weight: 600; }
.hero .lede { margin: 18px auto 0; max-width: 34em; font-size: 1.1rem; }
.pill { display: inline-block; margin-top: 26px; padding: 12px 22px; border-radius: 999px; background: #fff; color: var(--brand-dark); font-weight: 700; }
.fine { margin-top: 14px; font-size: 0.92rem; opacity: 0.92; }

/* Sections */
section { padding-block: 56px; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; }
.lead { color: var(--muted); max-width: 40em; margin: 0 0 28px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }

.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.shots img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; background: #000; }

/* Documents (privacy, support) */
.doc { padding-block: 40px 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.4rem; margin-top: 40px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 12px 0; }
.doc summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.doc details[open] summary { margin-bottom: 2px; }
.summary-box { background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 8px; }
.summary-box p { margin: 0; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }
.contact p { margin: 4px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 44px; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; }

@media (max-width: 520px) {
  .nav a { padding: 8px 10px; }
  .hero { padding: 40px 0 56px; }
}
