/* Wherelo marketing site. Colours and type follow the app (Wherelo/Views/Design.swift) and the App Store screenshots. */
@font-face { font-family: "Playfair"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #F7F2E8; --surface: #FFFDF8; --ink: #213338; --muted: #57615A; --coral: #B83821;
  --button: #B83821; --sand: #EBD3C0; --ocean: #D6E3DE; --deep: #1F3038; --on-deep: #F7F2E8;
  --on-deep-muted: #B8C2BA; --on-deep-accent: #FF8C66; --line: rgba(33, 51, 56, 0.14);
  --shadow: 0 30px 60px rgba(10, 18, 20, 0.22), 0 6px 16px rgba(10, 18, 20, 0.14);
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141F21; --surface: #1C2A2D; --ink: #F0EDE3; --muted: #B8C2BA; --coral: #FF8C66;
    --sand: #2A2622; --ocean: #1D2C2D; --deep: #0E1719; --line: rgba(240, 237, 227, 0.16);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--coral); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7vw, 5.2rem); }
h1 span, .closing h2 span { display: block; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.accent { color: var(--coral); }
.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font: 600 1.45rem/1 ui-rounded, "SF Pro Rounded", var(--sans); letter-spacing: -0.035em; }
.top nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: 0.95rem; font-weight: 600; }
.top nav a { color: var(--ink); text-decoration: none; padding-block: 0.6rem; }
.top nav a:hover { color: var(--coral); }
@media (max-width: 560px) { .top nav .wide { display: none; } }

/* Buttons. The page shows one of the two, set by data-launch on <html>. */
.cta { display: inline-flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 0.7rem 1.6rem; border-radius: 18px;
  background: var(--button); color: #fff; text-decoration: none; font-weight: 700; line-height: 1.2; transition: transform 0.15s ease, opacity 0.15s ease; }
.cta small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0.85; }
a.cta:hover { transform: translateY(-1px); opacity: 0.92; }
[data-launch="soon"] .cta.live, [data-launch="live"] .cta.soon { display: none; }
.cta.soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.on-deep .cta.soon { color: var(--on-deep); box-shadow: inset 0 0 0 2px var(--on-deep); }
.note { font-size: 0.92rem; color: var(--muted); }

/* Phone frame */
.phone { width: min(300px, 100%); padding: 8px; border-radius: 50px; background: #0B0E0F; box-shadow: inset 0 0 0 2px #30373A, var(--shadow); }
.phone > img, .phone > .screen { width: 100%; height: auto; aspect-ratio: 708 / 1538; border-radius: 42px; object-fit: cover; background: #0B0E0F; }
.phone > .screen { position: relative; display: grid; place-items: center; overflow: hidden; }
.phone > .screen::before { content: ""; position: absolute; top: 3%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); border-radius: 99px; background: #000; box-shadow: 0 0 0 1px #1b2022; }
.phone video { width: 100%; height: auto; aspect-ratio: 9 / 16; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero .stage { position: relative; display: grid; place-items: center; padding-block: 1.5rem; }
.hero .stage::before { content: ""; position: absolute; inset: 22% -100vw -100vw 12%; background: var(--sand); border-top-left-radius: 48px; }
.hero .phone { position: relative; width: min(310px, 78vw); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .stage::before { inset: 30% -100vw -100vw -100vw; border-radius: 0; }
}

/* Sections */
section { padding-block: clamp(4rem, 9vw, 7rem); }
.head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.on-deep { background: var(--deep); color: var(--on-deep); }
.on-deep .accent { color: var(--on-deep-accent); }
.on-deep .lede, .on-deep .eyebrow, .on-deep figcaption { color: var(--on-deep-muted); }

/* Film strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 0.9rem; margin: 0; padding: 0 0 0.5rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.strip li { scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip img { width: 100%; height: auto; aspect-ratio: 420 / 746; border-radius: 14px; box-shadow: 0 0 0 1px rgba(247, 242, 232, 0.12); }
.strip figcaption { margin-top: 0.7rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 900px) { .strip { grid-auto-columns: 46%; margin-right: -1.5rem; padding-right: 1.5rem; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; gap: 1.6rem; justify-items: center; align-content: start; counter-increment: step; }
.steps .phone { width: min(250px, 100%); border-radius: 44px; padding: 7px; }
.steps .phone > img { border-radius: 37px; }
.steps .text { display: grid; gap: 0.6rem; justify-self: stretch; }
.steps .text::before { content: "0" counter(step); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; color: var(--coral); }
.steps p { color: var(--muted); font-size: 1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 3.5rem; } .steps .text { max-width: 30rem; justify-self: center; text-align: center; } }

/* Atlas */
.atlas { background: var(--sand); }
.atlas .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.atlas .copy { display: grid; gap: 1.2rem; }
.atlas .pair { position: relative; display: flex; justify-content: center; padding-bottom: 3rem; }
.atlas .pair .phone { width: min(250px, 52%); border-radius: 44px; padding: 7px; }
.atlas .pair .phone > img { border-radius: 37px; }
.atlas .pair .phone + .phone { margin: 3rem 0 -3rem -2.5rem; }
@media (max-width: 820px) { .atlas .wrap { grid-template-columns: 1fr; } }

/* Privacy band */
.private { background: var(--ocean); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.facts li { background: var(--surface); border-radius: 20px; padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.facts p { color: var(--muted); font-size: 1rem; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.plans li { position: relative; background: var(--surface); border-radius: 20px; padding: 1.6rem 1.4rem; display: grid; gap: 0.9rem; align-content: start; box-shadow: inset 0 0 0 1px var(--line); }
.plans .best { box-shadow: inset 0 0 0 2px var(--coral); }
.plans .tag { position: absolute; top: -0.7rem; left: 1.3rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: #fff; background: var(--button); border-radius: 99px; padding: 0.2rem 0.6rem; }
.plans h3 { font-size: 1.3rem; }
.plans .price { font: 800 2.3rem/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.plans .price small { font: 600 0.9rem/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.plans ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.95rem; color: var(--muted); }
.plans ul li { all: unset; display: block; padding-left: 1.3rem; position: relative; }
.plans ul li::before { content: "✓"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* Closing */
.closing .wrap { display: grid; gap: 1.6rem; justify-items: center; text-align: center; }
.closing img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.92rem; color: var(--muted); }
footer .wrap { display: grid; gap: 1.25rem; }
footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; font-weight: 600; }
footer nav a { color: var(--ink); text-decoration: none; padding-block: 0.5rem; }
footer nav a:hover { color: var(--coral); }
footer .fine { font-size: 0.8rem; }

/* Support, privacy and terms */
.doc { padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 8vw, 6rem); }
.doc .wrap { width: min(760px, 100% - 3rem); }
.doc header { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); }
.doc h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; margin: 2.75rem 0 0.9rem; }
.doc h3 { font: 700 1.05rem/1.4 var(--sans); letter-spacing: 0; margin: 1.6rem 0 0.4rem; }
.doc p, .doc ul, .doc ol { margin: 0 0 1rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.45rem; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }
.doc .summary { background: var(--ocean); border-radius: 20px; padding: 1.5rem 1.6rem; margin-bottom: 1rem; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc .contact { display: grid; gap: 0.9rem; justify-items: start; background: var(--surface); border-radius: 20px; padding: 1.6rem; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 1rem; }
.doc .contact p { margin: 0; }
.doc .contact .cta { min-height: 52px; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 700; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--coral); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { color: var(--muted); }
details > :last-child { margin-bottom: 1.2rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } }
