/* pistebuddy.online — one stylesheet. Palette and faces are the app's (CLAUDE.md). One look, no dark mode, like the map. */
:root {
  --violet: #8780D4; --violet-dark: #766FBD; --violet-tint: #EDECF8;
  --card: #FBFBFB; --bg: #F4F4F7; --ink: #3F3F3F; --muted: #8E8C9C; --line: #E7E7E7;
  --green: #1F9E54; --blue: #2563EB; --red: #DC2626; --black: #1E2024;
  --display: "Host Grotesk", "Albert Sans", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, sans-serif;
  --gutter: 16px; --max: 1040px; --bar: 61px;
}
* { box-sizing: border-box; }
html { color-scheme: light only; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 62ch; }
main ul { padding-left: 1.1em; margin: 0 0 1em; }
main li { margin: 0 0 .45em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--violet); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 30; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ---------- Header: sticky; wordmark · nav · pill. Under 720px the nav hides and a <details> hamburger opens a full-height pane. No JS. ---------- */
/* No backdrop-filter here: it would make the header the containing block for the menu pane's position: fixed, collapsing the pane to a sliver. */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244,244,247,.97); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 8px; padding: 8px var(--gutter); max-width: var(--max); margin: 0 auto; min-height: var(--bar); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; min-height: 44px; margin-right: auto; }
.wordmark img { height: 32px; width: auto; }
.nav-wide { display: none; gap: 2px; }
.nav-wide a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 22px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-wide a:hover, .nav-wide a:focus, .nav-wide a[aria-current] { background: var(--violet-tint); }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 20px; background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .9rem; }
@media (min-width: 720px) { .wordmark { font-size: 1.25rem; gap: 10px; } .pill { padding: 0 16px; font-size: .95rem; } }
.pill:hover, .pill:focus { background: var(--violet-dark); }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; cursor: pointer; border-radius: 22px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.menu[open] summary { background: var(--violet-tint); }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pane { position: fixed; left: 0; right: 0; top: var(--bar); bottom: 0; background: var(--bg); display: flex; flex-direction: column; padding: 24px var(--gutter); gap: 4px; overflow-y: auto; }
.pane a { display: flex; align-items: center; min-height: 56px; padding: 0 14px; font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 16px; }
.pane a:hover, .pane a:focus, .pane a[aria-current] { background: var(--violet-tint); }
.pane .pill { justify-content: center; margin-top: 20px; font-size: 1.1rem; min-height: 54px; border-radius: 28px; color: #fff; font-family: var(--body); }
.pane .pill[aria-current] { background: var(--violet); }
@media (min-width: 720px) { .nav-wide { display: flex; } .menu { display: none; } }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.page-title { margin: 28px 0 8px; }

/* ---------- Hero: full-bleed photo, text and two tilted phones over it ---------- */
.hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); background: var(--black) url(/img/bg.jpg) center 30%/cover; color: #fff; }
/* Darkens the top for the white text, then fades the photo out into the page background so the hero has no hard bottom edge. */
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,32,36,.40) 0%, rgba(30,32,36,.28) 35%, rgba(244,244,247,0) 50%, rgba(244,244,247,.55) 70%, rgba(244,244,247,.92) 85%, #F4F4F7 100%); }
.hero .inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(44px, 8vw, 96px) var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 42ch; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.tag { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); color: #fff; border-radius: 28px; padding: 5px 13px; font-weight: 500; font-size: .9rem; margin-bottom: 14px; backdrop-filter: blur(4px); }
.hero .button { background: #fff; color: var(--ink); text-shadow: none; }
.hero .button:hover, .hero .button:focus { background: var(--violet-tint); }
@media (min-width: 720px) { .hero .inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-bottom: clamp(44px, 8vw, 96px); } }

/* ---------- Phone frames with a static tilt ---------- */
.phone { --tilt: -10deg; width: min(66vw, 240px); border-radius: 30px; border: 7px solid var(--black); background: var(--black); overflow: hidden; box-shadow: 0 28px 56px rgba(0,0,0,.35); transform: perspective(1400px) rotateY(var(--tilt)) rotateX(3deg); }
.phone img { width: 100%; height: auto; border-radius: 22px; }
.phones { display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 0; min-width: 0; }
.phones .phone { width: min(46vw, 220px); flex: none; }
.phones .phone + .phone { margin-left: -10%; margin-top: 44px; --tilt: 10deg; }
@media (min-width: 720px) { .phones .phone { width: 230px; } }

/* ---------- About: our own contour map behind the whole page (the "PB static contours" style, terrain layers only), text straight on it ---------- */
body[data-page="about"] { background: #F1F3F6; }
/* A fixed layer behind the page rather than background-attachment: fixed, which iOS ignores and Android Chrome repaints badly. */
body[data-page="about"]::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(244,244,247,.55) 0%, rgba(244,244,247,.7) 100%), #F1F3F6 url(/img/contours.jpg) center / cover no-repeat; }
body[data-page="about"] .site-header { background: rgba(244,244,247,.85); }
body[data-page="about"] .strip { background: none; border: 0; box-shadow: none; padding: 8px 0; margin: 20px 0; }
body[data-page="about"] .site-footer { background: rgba(244,244,247,.7); border-top-color: rgba(0,0,0,.06); }

/* ---------- Blocks ---------- */
.strip, .card { background: var(--card); border: 1px solid #F0F0F0; border-radius: 24px; padding: 24px; box-shadow: 0 4px 20px rgba(31,34,43,.04); margin: 28px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 28px; background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; }
.button:hover, .button:focus { background: var(--violet-dark); }

/* ---------- Features: five sections, five shapes ---------- */
.f-nav { position: relative; border-radius: 24px; margin: 24px 0 96px; min-height: 600px; background: var(--black); }
.f-nav .band { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 24px; }
.f-nav .over { position: relative; background: rgba(251,251,251,.86); border-radius: 18px; padding: 18px 20px; margin: 20px 16px 0; max-width: 34ch; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.f-nav .over ul, .f-nav .over p { margin: 0; }
.f-nav .phone { position: absolute; right: 12px; bottom: -64px; width: min(38vw, 160px); --tilt: 8deg; }
.f-aware { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 0 0 40px; }
.f-aware .phone { margin: 0 auto; width: min(60vw, 230px); --tilt: 10deg; }
.f-together { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 0 0 40px; }
.f-together .phones { padding: 0; }
.f-together .phones .phone { width: min(42vw, 170px); }
.f-together .phones .phone + .phone { margin-left: 4%; margin-top: 28px; --tilt: 10deg; }
.f-hill { background: var(--card); border: 1px solid #F0F0F0; border-radius: 24px; padding: 28px 24px; margin: 0 0 24px; }
.f-hill p { max-width: 60ch; }
@media (min-width: 720px) {
  .f-nav { min-height: 440px; margin-bottom: 72px; }
  .f-nav .over { margin: 40px 0 0 40px; }
  .f-nav .phone { right: 64px; bottom: -48px; width: 190px; }
  .f-aware { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .f-together { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

/* ---------- FAQ, Contact ---------- */
.contact-box { background: var(--card); border-radius: 24px; padding: 28px; border: 1px solid #F0F0F0; margin: 20px 0; }
.contact-box .email { font-family: var(--display); font-size: clamp(1.2rem, 3.5vw, 1.6rem); font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 .5em; max-width: none; }
