/* Bikewarden site. Colours are the app's own (Shared/ScoutStyle.swift); the display face stands in
   for the app's SF Pro Expanded Black. */
:root {
  --paper: #EEF1EC;
  --surface: #F8FAF6;
  --ink: #0B3326;
  --muted: #4A5E55;
  --rule: #CCD6CE;
  --link: #7B5713;
  --racing-top: #1B6248;
  --racing-bottom: #0A3024;
  --racing-ink: #0B3326;
  --brass: #E2B04A;
  --cream: #F4EBD6;
  --siren-top: #EF5338;
  --siren-bottom: #A51E12;
  --tyre: #141414;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #070D0A;
    --surface: #101A15;
    --ink: #EEEBDF;
    --muted: #A3B4AA;
    --rule: #22342B;
    --link: #E2B04A;
  }
}
:root[data-theme="dark"] {
  --paper: #070D0A;
  --surface: #101A15;
  --ink: #EEEBDF;
  --muted: #A3B4AA;
  --rule: #22342B;
  --link: #E2B04A;
}

*, *::before, *::after { 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-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.display {
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-variation-settings: "wdth" 120; font-size: 1.125rem; }
.brand img { width: 34px; height: 34px; }
.topbar nav { display: flex; gap: 20px; font-size: 0.9375rem; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }

/* Hero: the app's armed card, with the phone where the wheel would be. */
.hero {
  border-radius: 32px;
  background: linear-gradient(180deg, var(--racing-top) 0%, var(--racing-bottom) 100%);
  color: var(--cream);
  padding: 40px 22px 0;
  overflow: hidden;
  display: grid;
  gap: 36px;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 56px 0 0 56px; gap: 24px; }
}
.hero h1 { margin: 0; font-size: clamp(2.5rem, calc(7vw + 8px), 4.5rem); }
/* Japanese headline phrases don't break, so the first one must fit the column on its own. */
:lang(ja) .hero h1 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
.hero .lede { margin: 20px 0 0; max-width: 32ch; font-size: clamp(1.125rem, 2.2vw, 1.3125rem); line-height: 1.45; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(244, 235, 214, 0.35);
  font-size: 0.9375rem;
  font-weight: 600;
}
.hero .note { margin: 20px 0 0; font-size: 0.875rem; color: rgba(244, 235, 214, 0.7); }
@media (min-width: 880px) { .hero-copy { padding-bottom: 56px; } }

/* The phone rises from the bottom edge of the card; the hero crops it. */
.stage { position: relative; height: 470px; align-self: end; }
@media (min-width: 880px) { .stage { height: 560px; } }
.stage .rings { position: absolute; left: 50%; top: 50%; width: 600px; transform: translate(-50%, -50%); pointer-events: none; }
.stage .phone { position: absolute; left: 50%; top: 0; width: 270px; transform: translateX(-50%); }
.stage .watch { position: absolute; left: calc(50% - 215px); bottom: 36px; transform: scale(0.82); transform-origin: bottom left; }
@media (max-width: 520px) {
  .stage { height: 430px; }
  .stage .phone { width: 230px; left: calc(50% + 36px); }
  .stage .watch { left: calc(50% - 160px); bottom: 28px; transform: scale(0.7); }
  .stage .rings { width: 540px; }
}

/* The rings sound once when the page opens. First and last keyframes are the resting state,
   so the rings show even if the animation never runs. */
.ring { transform-box: view-box; transform-origin: 512px 512px; }
@media (prefers-reduced-motion: no-preference) {
  .ring { animation: ring 1200ms cubic-bezier(.3, .6, .2, 1) 1; }
  .ring-inner { animation-delay: 250ms; }
  .ring-outer { animation-delay: 420ms; }
  @keyframes ring {
    0% { opacity: 1; transform: scale(1); }
    30% { opacity: 0.1; transform: scale(0.86); }
    100% { opacity: 1; transform: scale(1); }
  }
}

/* Phone screenshot */
.phone {
  border-radius: 40px;
  border: 7px solid #111;
  background: #111;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 33px; }

/* Apple Watch, drawn from WatchApp/WatchHomeView.swift */
.watch {
  width: 196px;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(160deg, #3a3d3c, #121413 60%);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}
.watch::after {
  content: ""; position: absolute; right: -7px; top: 58px;
  width: 9px; height: 34px; border-radius: 4px;
  background: linear-gradient(90deg, #2a2c2b, #565a58);
}
.watch-screen {
  aspect-ratio: 172 / 210;
  border-radius: 40px;
  background: linear-gradient(180deg, var(--racing-top), var(--racing-bottom));
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 12px 12px;
  text-align: center;
}
.watch-screen.alarm { background: linear-gradient(180deg, var(--siren-top), var(--siren-bottom)); color: #fff; }
.watch-screen .mini { height: 44px; width: auto; }
.watch-screen .status { margin-top: 6px; font-size: 1.5rem; }
.watch-screen .since { font-size: 0.75rem; opacity: 0.8; margin-top: 2px; }
.watch-screen .btn {
  margin-top: auto; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 0; border-radius: 999px;
  background: var(--cream); color: var(--racing-ink);
  font-weight: 900; font-variation-settings: "wdth" 118; font-size: 0.95rem;
}
.watch-screen.alarm .btn { background: #fff; color: var(--siren-bottom); }
.btn svg, .pill svg { width: 15px; height: 15px; flex: none; }
/* Longer labels (German "Unscharf schalten") wrap to two lines, as they do in the app. */
.watch-screen { container-type: inline-size; }
.watch-screen .btn { line-height: 1.1; text-align: center; padding-left: 10px; padding-right: 10px; font-size: min(0.95rem, 10.5cqi); }
/* The app gives the Live Activity's Disarm pill a fixed 112 pt width. */
.activity .pill { width: 112px; justify-content: center; line-height: 1.15; text-align: center; padding-left: 8px; padding-right: 8px; gap: 4px; }
/* One-word Disarm labels that can't wrap (Hungarian "Hatástalanítás", Dutch "Uitschakelen"):
   use the face's normal width instead of the expanded one. */
:lang(hu) .watch-screen .btn, :lang(nl) .watch-screen .btn { font-variation-settings: "wdth" 90; }
:lang(hu) .activity .pill, :lang(nl) .activity .pill { font-variation-settings: "wdth" 88; }

/* Sections */
main > section { padding: 88px 0 0; }
.kicker-free h2 { margin: 0 0 16px; }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 4.6vw, 2.875rem); }
h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 800; }
p, li { max-width: 62ch; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.intro { font-size: 1.1875rem; line-height: 1.5; max-width: 40ch; }

.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
}

.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.points li { padding-left: 22px; border-left: 3px solid var(--brass); }
.points p { margin: 0; color: var(--muted); }

/* Alert visual: the real alarm screen with the notification over it */
.alert-visual { position: relative; width: min(320px, 86vw); margin: 0 auto; padding-top: 36px; }
.alert-visual .phone {
  width: 82%; margin-left: auto;
  aspect-ratio: 600 / 980; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.banner {
  position: absolute; left: 0; top: 0; width: 92%; z-index: 2;
  display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 22px;
  background: rgba(250, 250, 248, 0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #111; font-size: 0.875rem; line-height: 1.3;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.45);
}
.banner img { width: 38px; height: 38px; border-radius: 9px; }
.banner .app { font-size: 0.75rem; font-weight: 700; color: #555; display: flex; justify-content: space-between; }
.banner .title { font-weight: 700; margin-top: 1px; }
.banner .pill {
  grid-column: 2; justify-self: start; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: #e7e9e6; font-weight: 700; font-size: 0.8125rem;
}

/* Lock Screen, drawn from the widget and Live Activity code */
.lockscreen {
  width: min(360px, 100%); margin: 0 auto;
  border-radius: 44px; padding: 34px 14px 18px;
  background:
    radial-gradient(120% 70% at 50% 0%, #2a5f4b 0%, transparent 60%),
    linear-gradient(180deg, #16352a 0%, #0b1712 70%, #050907 100%);
  color: #fff; text-align: center;
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.6);
  border: 7px solid #111;
}
.ls-inline { font-size: 0.9375rem; font-weight: 600; opacity: 0.9; display: inline-flex; align-items: center; gap: 6px; }
.ls-inline svg { width: 13px; height: 13px; }
.ls-time { font-size: 5.25rem; line-height: 1; font-weight: 700; font-variation-settings: "wdth" 100; letter-spacing: -0.03em; margin-top: 2px; }
.ls-widgets { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.ls-circle { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; }
.ls-circle svg { width: 22px; height: 22px; }
.ls-rect { width: 150px; text-align: left; padding: 4px 6px; line-height: 1.25; }
.ls-rect b { display: inline-flex; align-items: center; gap: 5px; font-size: 1rem; }
.ls-rect b svg { width: 14px; height: 14px; }
.ls-rect span { display: block; font-size: 0.8125rem; opacity: 0.85; }
.ls-rect small { display: block; font-size: 0.75rem; opacity: 0.6; }
.activity {
  margin-top: 130px;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 14px; border-radius: 26px; text-align: left;
  background: linear-gradient(180deg, var(--racing-top), var(--racing-bottom));
  color: var(--cream);
}
.activity .t { font-weight: 900; font-variation-settings: "wdth" 120; font-size: 0.95rem; line-height: 1.2; }
.activity .d { font-size: 0.75rem; opacity: 0.78; }
.activity .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--cream); color: var(--racing-ink); font-weight: 800; font-size: 0.8125rem;
}

.surfaces { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.surfaces li { padding: 14px 0; border-top: 1px solid var(--rule); max-width: none; }
.surfaces li:last-child { border-bottom: 1px solid var(--rule); }
.surfaces b { display: block; font-weight: 800; }
.surfaces span { color: var(--muted); }
.surfaces q { font-weight: 700; color: var(--ink); quotes: "\201C" "\201D"; }

/* Watch section */
.watches { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.watches .watch:last-child { transform: translateY(-28px); }
@media (max-width: 520px) { .watches .watch { width: 158px; padding: 10px; border-radius: 44px; } .watches .watch-screen { border-radius: 33px; padding-top: 16px; } .watch-screen .status { font-size: 1.2rem; } }

/* Proximity scale, from the app's zones */
.scale { margin: 30px 0 6px; max-width: 520px; }
.scale-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.scale-bar i { height: 10px; border-radius: 5px; background: var(--rule); }
.scale-bar i.on { background: var(--brass); }
.scale-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); line-height: 1.25; }
.prox { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 700px) { .prox { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.prox div { padding: 20px; border-radius: 22px; background: var(--surface); border: 1.5px solid rgba(226, 176, 74, 0.55); }
.prox p { margin: 0; color: var(--muted); font-size: 0.9688rem; }

/* Free and Pro */
.plans { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1.25fr; gap: 22px; } }
.plan { border-radius: 28px; padding: 28px; }
.plan.free { background: var(--surface); border: 1px solid var(--rule); }
.plan.pro { background: linear-gradient(180deg, var(--racing-top), var(--racing-bottom)); color: var(--cream); }
.plan h3 { font-size: 1.5rem; font-weight: 900; font-variation-settings: "wdth" 120; margin-bottom: 4px; }
.plan .sub { margin: 0 0 18px; opacity: 0.8; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 11px; height: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg); opacity: 0.85;
}
.plan.pro li::before { color: var(--brass); opacity: 1; }

ol.steps { margin: 0; padding: 0 0 0 1.4em; }
ol.steps li { margin: 0 0 10px; padding-left: 6px; }
ol.steps li::marker { font-weight: 900; color: var(--muted); }

.contact {
  margin: 8px 0 22px;
  font-size: clamp(1.375rem, 4.4vw, 2rem);
  font-weight: 900; font-variation-settings: "wdth" 115;
  overflow-wrap: anywhere;
}
.contact a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 3px; }

details { border-top: 1px solid var(--rule); max-width: 62ch; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details > p { margin: -4px 0 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

.help-grid { display: grid; gap: 40px; }
@media (min-width: 880px) { .help-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

/* Privacy page */
.doc { padding: 24px 0 0; max-width: 720px; }
.doc h1 { margin: 0; font-size: clamp(2.25rem, 7vw, 3.5rem); }
.doc .updated { margin: 10px 0 0; color: var(--muted); }
.doc .summary {
  margin: 32px 0 8px; padding: 20px 22px; border-radius: 20px;
  background: var(--surface); border-left: 5px solid var(--brass);
  font-size: 1.1875rem; line-height: 1.5;
}
.doc h2 { font-size: 1.375rem; margin: 36px 0 8px; }

footer { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer p { max-width: 75ch; margin: 0 0 8px; }
