/* joinochre.com — the app's own palette (src/theme.ts) and type: EB Garamond italic for display,
   as the app's SerifText; Inter for everything read. */
:root {
  --bg: #05081a;
  --bg2: #0b1130;
  --surface: #131a35;
  --ink: #f2f4ff;
  --ink2: #9aa3c7;
  --ink3: #7a86b2;
  --gold: #eaa43a;
  --gold2: #f6c76f;
  --line: rgba(255, 255, 255, 0.10);
  --max: 1180px;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* A sky: two soft lights and a scatter of stars, under everything. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 8%, rgba(56, 86, 210, 0.22), transparent 60%),
    radial-gradient(700px 500px at 8% 30%, rgba(234, 164, 58, 0.10), transparent 60%),
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 72% 42%, #fff6, transparent),
    radial-gradient(1px 1px at 38% 76%, #fff5, transparent), radial-gradient(1.5px 1.5px at 88% 82%, #fff7, transparent),
    radial-gradient(1px 1px at 55% 12%, #fff6, transparent), radial-gradient(1px 1px at 22% 58%, #fff4, transparent),
    var(--bg);
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
img { max-width: 100%; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bg) 20%, rgba(5, 8, 26, 0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 800; }
.brand b span { color: var(--gold); }
.brand:hover { color: var(--ink); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav nav a { color: var(--ink2); }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav .navCta { color: #201703; background: linear-gradient(135deg, var(--gold2), var(--gold)); padding: 9px 18px; border-radius: 999px; }
.nav .navCta:hover { color: #201703; filter: brightness(1.06); }

/* ── type ── */
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; }
.display { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(46px, 7vw, 92px); line-height: 0.98; letter-spacing: -1.5px; margin: 0; }
.display.sm { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.8px; }
.lede { color: var(--ink2); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 34em; margin: 24px 0 0; }

/* ── hero ── */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 40px 24px 40px; min-height: calc(100vh - 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px;
}
.ctaRow { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 16px;
  background: #fff; color: #0b0b0f; font-weight: 700; font-size: 20px; line-height: 1;
  box-shadow: 0 10px 40px rgba(234, 164, 58, 0.18);
  transition: transform .2s ease;
}
.store:hover { color: #0b0b0f; transform: translateY(-2px); }
.store span { display: flex; flex-direction: column; gap: 3px; }
.store small { font-size: 11.5px; font-weight: 600; color: #4a4a55; letter-spacing: 0.2px; }
.ghost { color: var(--ink); font-weight: 600; font-size: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.ghost:hover { color: var(--gold2); border-color: var(--gold); }

.globeWrap { position: relative; aspect-ratio: 1; width: 100%; min-width: 0; max-width: 640px; justify-self: center; }
/* Absolute, so the canvas's own pixel size can never feed back into the layout and grow it. */
#globe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.globeGlow {
  position: absolute; inset: 6%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(70, 110, 255, 0.35) 0%, rgba(70, 110, 255, 0.10) 55%, transparent 70%);
  filter: blur(30px);
}
.legend { position: absolute; z-index: 2; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; gap: 16px; margin: 0; padding: 10px 18px; list-style: none;
  border-radius: 999px; background: rgba(13, 18, 48, 0.72); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.legend li { display: flex; }
.legend button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 4px 8px; margin: -4px -2px; border-radius: 999px; transition: background .2s, color .2s, opacity .2s; }
.legend button:hover { color: var(--ink); }
.legend button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.legend button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.10); color: var(--ink); }
/* While filtering, the kinds not chosen step back. */
.globeWrap.filtering .legend button[aria-pressed="false"] { opacity: 0.45; }
.legend em { font-style: normal; color: var(--ink3); font-weight: 700; font-size: 12px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ── stats ── */
.statsBlock { max-width: var(--max); margin: 60px auto 0; padding: 0 24px; }
.statsNote { color: var(--ink2); font-size: 15px; margin: 0 0 16px; max-width: 46em; }
.textBtn { all: unset; cursor: pointer; color: var(--gold); font-weight: 700; }
.textBtn:hover { color: var(--gold2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.stat b { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.stat b.unit { color: var(--ink3); font-size: clamp(22px, 2.4vw, 30px); margin-left: 2px; }
.stat span { display: block; margin-top: 10px; color: var(--ink2); font-size: 15px; font-weight: 500; }

/* ── features ── */
.feature { max-width: var(--max); margin: 0 auto; padding: 110px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .fText { order: 2; }
.fText p:not(.eyebrow) { color: var(--ink2); font-size: 18px; margin: 22px 0 0; max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.card { border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }

/* trips */
.tripArt { position: relative; padding: 30px 26px 26px; aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; }
.route { width: 100%; height: auto; overflow: visible; }
.routeBase { fill: none; stroke: rgba(255, 255, 255, 0.10); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.routeLine { fill: none; stroke: url(#rg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; filter: drop-shadow(0 0 6px rgba(234, 164, 58, 0.6)); }
.feature.in .routeLine { animation: draw 2.6s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stop { fill: var(--bg); stroke: var(--gold2); stroke-width: 3; }
.stopT { fill: var(--ink2); font: 600 13px var(--sans); }
.tripPill { position: absolute; left: 22px; top: 22px; display: flex; gap: 10px; align-items: stretch; padding: 9px 14px 9px 10px; border-radius: 14px;
  background: rgba(10, 14, 36, 0.85); border: 1px solid var(--gold); }
.tripPill .tab { width: 3px; border-radius: 2px; background: var(--gold); }
.tripPill b { display: block; color: var(--gold2); font-size: 14px; }
.tripPill small { color: var(--ink2); font-size: 12px; font-weight: 600; }

/* passport */
.passport { display: flex; justify-content: center; }
.page { position: relative; width: min(100%, 420px); aspect-ratio: 0.72; border-radius: 10px 18px 18px 10px;
  background: linear-gradient(135deg, #f3ead6, #e7dcc0); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 14px 0 30px rgba(120, 90, 40, 0.18);
  overflow: hidden; }
.page::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(120, 90, 40, 0.06) 22px 23px); }
/* The page fills as you scroll (stamps.js): the section is tall and the passport is pinned in it,
   about one stamp per wheel step. Sizes are in cqw — a share of the page's own width. */
.stampScroll { position: relative; height: calc(100vh + 2600px); }
.stampSticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.stampSticky .feature { padding-top: 0; width: 100%; }
.stampScroll.still { height: auto; }
.stampScroll.still .stampSticky { position: static; height: auto; padding-top: 110px; }
.page { container-type: inline-size; }
.ppCount { color: var(--ink3) !important; font-size: 15px !important; font-weight: 600; }
.ppCount b { color: var(--gold2); font-size: 22px; font-variant-numeric: tabular-nums; }
.stamp {
  position: absolute; left: var(--x); top: var(--y); color: var(--ink); border-color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--sans); line-height: 1.05; mix-blend-mode: multiply;
  opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(1.9); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.stamp.down { opacity: 0.86; transform: translate(-50%, -50%) rotate(var(--r)) scale(1);
  transition: opacity .12s ease, transform .34s cubic-bezier(.3, 1.6, .5, 1); }
.stamp b { font-weight: 900; font-size: 5.2cqw; letter-spacing: 0.08em; }
.stamp small { font-weight: 800; font-size: 2.3cqw; letter-spacing: 0.08em; margin-top: 0.5cqw; }
.stamp small.code { font-size: 2cqw; opacity: 0.8; }
/* Ink is never perfectly even: a faint speckle knocks a little out of every stamp. */
.stamp::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(243, 234, 214, 0.55) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
              radial-gradient(circle at 70% 60%, rgba(243, 234, 214, 0.45) 0 1px, transparent 1.6px) 0 0 / 11px 9px; }
.stamp.round { width: 30cqw; height: 30cqw; border: 0.7cqw solid; border-radius: 50%; }
.stamp.double { width: 31cqw; height: 31cqw; border: 1.1cqw double; border-radius: 50%; }
.stamp.oval { width: 38cqw; height: 25cqw; border: 0.7cqw solid; border-radius: 50%; }
.stamp.rect { width: 34cqw; height: 22cqw; border: 0.8cqw solid; border-radius: 3cqw; }
.stamp.ticket { width: 40cqw; height: 20cqw; border: 0.6cqw dashed; border-radius: 1.5cqw; }
.stamp.banner { width: 42cqw; height: 19cqw; border: 1.2cqw double; border-radius: 1cqw; }
.stamp.ticket b, .stamp.banner b { font-size: 6cqw; }

/* timeline */
.timeline { padding: 34px 32px; display: grid; gap: 4px; }
.tl { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 16px; padding: 16px 0 16px 22px; border-left: 2px solid rgba(255, 255, 255, 0.10); }
.tl::before { content: ''; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); }
.tl.on::before { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.tl b { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold2); line-height: 1.1; }
.tl span { color: var(--ink); font-weight: 500; }

/* duo */
.duo { max-width: var(--max); margin: 0 auto; padding: 110px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duoCard { padding: 36px 34px; }
.duoCard h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1.05; margin: 0; }
.duoCard p:not(.eyebrow) { color: var(--ink2); margin: 14px 0 0; }
.flames { display: flex; align-items: flex-end; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.flames img { height: 84px; width: auto; filter: drop-shadow(0 8px 20px rgba(255, 140, 40, 0.35)); }
/* Growing by height, as the streak does — the later stages are wider renders, so width would shrink them. */
.flames img:nth-child(1) { height: 44px; } .flames img:nth-child(2) { height: 56px; } .flames img:nth-child(3) { height: 68px; } .flames img:nth-child(4) { height: 78px; } .flames img:nth-child(5) { height: 92px; }
.stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 30px; }
.stickers img { width: 100%; transition: transform .25s ease; }
.stickers img:hover { transform: rotate(-8deg) scale(1.12); }

/* privacy */
.private { max-width: var(--max); margin: 120px auto 0; padding: 70px 40px; text-align: center; border-radius: 34px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(234, 164, 58, 0.12), transparent 70%), rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.privRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 44px 0 30px; text-align: left; }
.privRow b { display: block; font-size: 19px; }
.privRow span { color: var(--ink2); font-size: 15.5px; }
.textLink { font-weight: 700; }

/* end */
.end { max-width: var(--max); margin: 0 auto; padding: 130px 24px 120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.end img { border-radius: 20px; margin-bottom: 26px; box-shadow: 0 0 60px rgba(234, 164, 58, 0.35); }
.end .lede { margin: 18px 0 34px; }

/* reveal */
.feature, .duoCard, .statsBlock, .private, .end { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.in { opacity: 1 !important; transform: none !important; }

/* footer */
.foot { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 34px 24px 46px; }
.footRow { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; }
.foot nav a { color: var(--ink2); }
.foot nav a:hover { color: var(--ink); }
.fine { color: var(--ink3); font-size: 12.5px; margin: 22px 0 0; }

/* ── legal & support pages ── */
.docMain { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.docTitle { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(44px, 6vw, 68px); line-height: 1; margin: 0; letter-spacing: -1px; }
.docSub { color: var(--ink2); font-size: 19px; margin: 18px 0 40px; }
.docSec { padding: 22px 0; border-top: 1px solid var(--line); }
.docSec h2, .docH { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.2px; }
.docH { margin-top: 30px; margin-bottom: 14px; }
.docSec p { color: var(--ink2); margin: 0; }
.docNote { color: var(--ink3); font-size: 14px; margin-top: 36px; }
.faq { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink2); margin: 12px 0 0; }

/* ── phones ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 20px; text-align: left; }
  .globeWrap { max-width: 520px; margin-top: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature, .duo { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 80px; }
  .feature.flip .fText { order: 0; }
  .privRow { grid-template-columns: 1fr; }
  .private { margin-left: 16px; margin-right: 16px; padding: 50px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 14px 16px; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.navCta) { display: none; }
  .hero, .statsBlock, .feature, .duo, .end, .foot { padding-left: 16px; padding-right: 16px; }
  .legend { gap: 6px 12px; padding: 8px 14px; font-size: 12px; flex-wrap: wrap; justify-content: center; white-space: normal; width: max-content; max-width: calc(100% - 8px); bottom: -24px; }
  .stickers { grid-template-columns: repeat(3, 1fr); }
  .duoCard { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .routeLine { stroke-dashoffset: 0; }
  .feature.in .routeLine { animation: none; }
}

/* ── the globe's country card ── */
.pickCard { position: absolute; z-index: 5; width: 236px; padding: 14px; border-radius: 18px;
  background: rgba(13, 18, 48, 0.94); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pickHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pickHead b { font-size: 16px; line-height: 1.25; }
.pickX { all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; text-align: center; line-height: 25px; font-size: 18px;
  color: var(--ink2); background: rgba(255, 255, 255, 0.08); flex: none; }
.pickRow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pickBtn, .pickClear { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; }
.pickBtn:hover, .pickClear:hover { background: rgba(255, 255, 255, 0.10); }
.pickBtn:focus-visible, .pickClear:focus-visible { outline: 2px solid var(--gold); }
.pickBtn.on { border-color: var(--gold); background: rgba(234, 164, 58, 0.12); }
.pickBtn i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.pickClear { margin-top: 6px; justify-content: center; color: var(--ink2); width: calc(100% - 22px); }

/* The pinned passport must fit the screen it is pinned to. */
.stampSticky .page { width: min(100%, 420px, 66vh); }
@media (max-width: 900px) {
  .stampSticky .feature { gap: 14px; }
  .stampSticky .fText p:not(.eyebrow):not(.ppCount) { display: none; }
  .stampSticky .page { width: min(100%, 46vh); }
  .stampSticky .display.sm { font-size: 34px; }
  .stampScroll.still .fText p { display: block; }
}
.pickCard:focus { outline: none; }
