/* Roam website. A map's palette: land, water, ink, and the app's coral. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --land: #eef2f5;
  --water: #cde2f1;
  --street: #dfe6ec;
  --ink: #13212e;
  --ink-soft: #4d5d6c;
  --line: #d3dce4;
  --card: #ffffff;
  --coral: #e85435;
  --coral-press: #c9401f;
  --coral-text: #b93a1c;
  --on-coral: #ffffff;
  --radius-phone: 46px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 34rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --land: #0e1a26;
    --water: #15293b;
    --street: #142231;
    --ink: #eaf0f5;
    --ink-soft: #9db0c1;
    --line: #22384c;
    --card: #142333;
    --coral: #ff6f4e;
    --coral-press: #ff8a6e;
    --coral-text: #ff8d70;
    --on-coral: #1a0d08;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--land);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--coral-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; }
h1 { font-size: clamp(46px, 8.4vw, 96px); line-height: 0.94; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; font-variation-settings: "opsz" 72; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: var(--measure); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 17px/1 inherit; text-decoration: none; cursor: pointer;
  background: var(--coral); color: var(--on-coral);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--coral-press); }
.button:active { transform: scale(0.98); }
.button[aria-disabled="true"] { background: var(--line); color: var(--ink-soft); cursor: default; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.button svg { width: 20px; height: 20px; flex: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--land) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.languages { position: relative; }
.languages summary { list-style: none; cursor: pointer; color: var(--ink-soft); font-weight: 600; display: flex; align-items: center; gap: 6px; padding: 8px 2px; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary svg { width: 18px; height: 18px; }
.languages ul { position: absolute; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--card); border-radius: 14px; box-shadow: 0 12px 32px rgb(10 25 40 / 0.16); min-width: 160px; }
.languages a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.languages a:hover, .languages a[aria-current] { background: var(--land); }
.nav .button { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 760px) {
  .nav-links, .nav .button { display: none; }
  .languages { margin-left: auto; }
}

/* Hero: a map with one teleport on it */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(28deg, transparent 0 46px, var(--street) 46px 49px),
    repeating-linear-gradient(-62deg, transparent 0 78px, var(--street) 78px 82px);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 30%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 26px; justify-items: start; }
.hero-heading { display: grid; gap: 8px; }
.kicker { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--ink-soft); font-size: 15px; max-width: var(--measure); }

.readout { display: grid; gap: 4px; padding-top: 8px; }
.readout-coords { font-size: clamp(22px, 3vw, 30px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.readout-city { color: var(--ink-soft); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.readout-city::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent); }

.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual .phone { width: min(330px, 78vw); transform: rotate(3deg); }
.jump { position: absolute; inset: -6% -10% 30% -40%; pointer-events: none; overflow: visible; }
.jump path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 11; }
.jump .trail { stroke-dashoffset: 0; animation: none; }
.jump .ghost { fill: var(--coral); opacity: 0.35; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual .phone { width: min(260px, 64vw); }
  .jump { display: none; }
}

/* Phones */
.phone { position: relative; border-radius: var(--radius-phone); padding: 9px; background: #0d151d; box-shadow: 0 30px 60px -24px rgb(8 22 36 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06) inset; }
.phone img, .phone picture { border-radius: calc(var(--radius-phone) - 9px); width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; }

/* Sections */
section { padding: clamp(56px, 9vw, 112px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 40rem; }

/* Screens: a strip you can swipe */
.screens { background: var(--water); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 23vw, 250px); gap: clamp(18px, 3vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.strip figure { margin: 0; scroll-snap-align: start; display: grid; gap: 16px; align-content: start; }
.strip figcaption { display: grid; gap: 4px; }
.strip figcaption p { color: var(--ink-soft); font-size: 15px; }

/* Features: three plain lists */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.features h3 { font-size: 24px; margin-bottom: 18px; }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.features li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.features li svg { width: 24px; height: 24px; color: var(--coral); margin-top: 2px; }
.features li strong { display: block; font-weight: 700; }
.features li span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); font-size: 44px; font-weight: 800; line-height: 1; color: var(--coral); font-variation-settings: "opsz" 72; }
.steps p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Passes, drawn as tickets */
.passes { background: var(--card); }
.pass-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pass {
  --notch: 14px;
  /* The stub has a fixed height, so the perforation always sits between price and button. */
  --stub: 92px;
  position: relative; display: grid; grid-template-rows: 1fr var(--stub); min-height: 300px;
  background: var(--land); border-radius: 22px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), transparent 98%, #000) right / 51% 100% no-repeat;
}
.pass-top { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 4px; }
.pass-name { font-weight: 700; }
.pass-price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 18px; font-variation-settings: "opsz" 72; }
.pass-per { color: var(--ink-soft); font-size: 15px; }
.pass-stub { border-top: 2px dashed var(--line); margin: 0 var(--notch); padding: 0 calc(24px - var(--notch)); display: grid; align-content: center; }
.pass-stub .button { width: 100%; }
.pass.best { background: var(--ink); color: var(--land); }
.pass.best .pass-per { color: color-mix(in srgb, var(--land) 70%, transparent); }
.pass.best .pass-stub { border-top-color: color-mix(in srgb, var(--land) 30%, transparent); }
.pass-badge { justify-self: start; font-size: 14px; font-weight: 700; color: var(--coral); }
.passes-note { margin-top: 24px; color: var(--ink-soft); font-size: 15px; max-width: 44rem; }
@media (max-width: 1000px) { .pass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pass-grid { grid-template-columns: 1fr; } .pass { min-height: 0; } }

/* Questions */
.faq { display: grid; gap: 10px; max-width: 48rem; }
.faq details { background: var(--card); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 42rem; }

/* Footer */
footer { padding: 48px 0 120px; color: var(--ink-soft); font-size: 15px; border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.footer-company { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-company strong { color: var(--ink); width: 100%; font-size: 17px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a, .link { color: var(--ink-soft); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-note { grid-column: 1 / -1; font-size: 14px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }

/* The chat, always within reach */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 58px; height: 58px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--land); box-shadow: 0 12px 28px rgb(8 22 36 / 0.3); cursor: pointer; }
.chat svg { width: 30px; height: 30px; }

/* Text pages */
.page { padding: clamp(40px, 7vw, 88px) 0; }
.page .wrap { max-width: 46rem; display: grid; gap: 18px; }
.page h2 { font-size: 26px; margin-top: 18px; }
.page p, .page li { color: var(--ink-soft); }

/* The Find My guide: a long title, numbered steps, and the Roam alternative set apart */
.page.guide h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.02; }
.page.guide .guide-intro { font-size: clamp(18px, 2vw, 20px); color: var(--ink); }
.page.guide h2 { font-size: clamp(26px, 3vw, 32px); scroll-margin-top: 24px; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.guide-steps li { counter-increment: step; position: relative; background: var(--card); border-radius: 18px; padding: 16px 18px 16px 62px; }
.guide-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-text); font-weight: 800; }
.page.guide .guide-steps strong { color: var(--ink); }
.guide-alt { background: var(--water); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.page.guide .guide-alt h2 { margin-top: 0; }
.page.guide .faq { max-width: none; }

/* The iOS 27 requirement: on every page, impossible to miss */
.notice { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px var(--gutter); background: var(--ink); color: var(--land); font-size: 15px; font-weight: 600; text-align: center; }
.notice svg { width: 18px; height: 18px; flex: none; }
.requirement { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px 8px 10px; border-radius: 999px; background: color-mix(in srgb, var(--coral) 12%, transparent); color: var(--coral-text); font-weight: 700; font-size: 15px; }
.requirement svg { width: 20px; height: 20px; }

/* Apps it works with: our own marks, Apple's icons are its trademarks */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: clamp(28px, 5vw, 48px) 0 0; color: var(--ink-soft); font-size: 15px; }
.works-label { font-weight: 700; color: var(--ink); }
.works-item { display: inline-flex; align-items: center; gap: 7px; }
.works-item svg { width: 20px; height: 20px; color: var(--coral); }

/* Reasons to trust: payment, refund, a person, a registered business */
.trust-band { padding: 28px 0; background: var(--card); border-block: 1px solid var(--line); }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 32px; }
.trust li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.trust svg { width: 26px; height: 26px; color: var(--coral); }
.trust strong { display: block; font-weight: 700; }
.trust span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

.about { background: var(--water); }
.about .section-head { margin-bottom: 22px; }

/* Buying, the UDID check, thanks and personal invites */
.flow { padding: clamp(36px, 6vw, 72px) 0 72px; }
.flow .wrap { max-width: 40rem; display: grid; gap: 26px; }
.flow-head { display: grid; gap: 14px; justify-items: start; }
.flow-head h1 { font-size: clamp(36px, 7vw, 56px); }
.flow-price { margin: 0; display: flex; align-items: baseline; gap: 12px; color: var(--ink-soft); }
.flow-price span { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.flow-mark { margin: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #23a35a 16%, transparent); color: #1d8a4b; }
.flow-mark svg { width: 30px; height: 30px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.flow-steps li { counter-increment: step; position: relative; background: var(--card); border-radius: 18px; padding: 18px 20px 18px 64px; display: grid; gap: 8px; justify-items: start; }
.flow-steps li::before { content: counter(step); position: absolute; left: 20px; top: 17px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-text); font-weight: 800; }
.flow-steps p { color: var(--ink-soft); }
.flow-alert { margin: 0; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--coral) 12%, transparent); color: var(--coral-text); font-weight: 600; }
.flow-alert[hidden] { display: none; }
.flow-alert svg { width: 24px; height: 24px; }
.flow-actions { display: grid; gap: 10px; }
.udid-box { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--card); }
.udid-box code { font: 700 17px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; }
.button.wide { width: 100%; }
.button[hidden] { display: none; }
.muted { color: var(--ink-soft); font-size: 15px; margin: 0; }
.error { color: var(--coral-text); font-weight: 600; }
@media (hover: none) and (pointer: coarse) { .only-desktop { display: none; } }

/* Location sharing and Find My: the claim, then the anonymized screenshot */
.sharing { background: var(--water); }
.sharing .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sharing-copy { display: grid; gap: 16px; }
.sharing-copy .lead { color: var(--ink); max-width: 40rem; }
.sharing-note { color: var(--ink-soft); max-width: 40rem; }
.sharing .phone { width: min(300px, 100%); justify-self: center; }
.sharing .phone img { aspect-ratio: 392 / 800; object-fit: contain; height: auto; }
@media (max-width: 800px) {
  .sharing .wrap { grid-template-columns: 1fr; }
  .sharing .phone { width: min(260px, 72%); }
}

/* What Roam is, in one quotable paragraph, and what people use it for */
.what .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.what-text { display: grid; gap: 16px; }
.what-text .lead { max-width: 38rem; color: var(--ink); }
.uses { background: var(--card); border-radius: 22px; padding: 24px; display: grid; gap: 14px; }
.uses ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.uses li { display: grid; gap: 2px; padding-left: 18px; border-left: 3px solid var(--coral); }
.uses span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .what .wrap { grid-template-columns: 1fr; } }
