/* Timezone — site styles.
   Every colour here is transcribed from the app's Shared/AppTheme.swift.
   If the app's theme changes, this file follows it. See DESIGN.md. */

:root {
  --bg-top: #050B16;
  --bg-bottom: #071120;
  --card: rgba(11, 26, 49, .72);
  --card-elevated: rgba(16, 37, 68, .78);
  --accent: #2EA8FF;
  --accent-border: rgba(46, 168, 255, .28);
  --text: #F4F7FB;
  --text-secondary: #8EA3BC;
  --border: rgba(255, 255, 255, .12);

  --radius: 22px;
  --radius-inner: 14px;
  --radius-device: 44px;

  /* Minimum air between prose and any bordered block that follows it.
     Inherited from the Thermometer site, where panels crowding the paragraph
     above them was recurring feedback. Use this, don't invent a number. */
  --gap-panel: 44px;

  --shell: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-top);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--card-elevated); color: var(--text);
  padding: 12px 18px; border-radius: 0 0 var(--radius-inner) 0;
}
.skip:focus { left: 0; }

.muted { color: var(--text-secondary); }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -0.012em; }

p { margin: 0 0 16px; max-width: 68ch; }

/* The app's `MY LOCATIONS` label, verbatim. */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.shell { width: min(100% - 44px, var(--shell)); margin-inline: auto; }

/* Reading measure for prose pages and article heads. This is a class rather
   than an inline style on purpose: the CSP in src/_headers is `style-src
   'self'`, which blocks style attributes outright — an inline max-width here
   is silently dropped and the heading block ends up 1140px wide while the body
   below it is 760px. Never reach for a style attribute in this project. */
.shell-narrow { max-width: 760px; }

.page-title { font-size: clamp(32px, 4.6vw, 48px); }
.article-title { font-size: clamp(30px, 4.2vw, 46px); }

section { padding-block: clamp(72px, 10vw, 112px); }

/* Digits never reflow as they tick — same rule the app follows. */
.tnum { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: relative;
  z-index: 3;
  width: min(100% - 44px, var(--shell));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.brand img { border-radius: 9px; }

/* Mirrors the app's floating tab bar. */
.pillnav {
  display: flex; gap: 4px;
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pillnav a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  min-height: 36px; display: inline-flex; align-items: center;
  transition: color .16s ease-out, background-color .16s ease-out;
}
.pillnav a:hover { color: var(--text); }
.pillnav a[aria-current="page"] { color: var(--accent); background: rgba(46, 168, 255, .12); }

/* ------------------------------------------------------------------- hero */

.hero { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(64px, 8vw, 104px); }

/* The map is the page's ground, not an illustration behind it. */
.hero-map {
  position: absolute;
  inset: -40px 0 auto;
  width: 100%;
  height: clamp(520px, 62vw, 820px);
  z-index: 0;
  pointer-events: none;
  /* The lattice is ground, not content: held well below the text so the
     headline keeps its full contrast, and faded out at the bottom edge so it
     dissolves into the page rather than stopping on a line. */
  opacity: .38;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 94%);
}
.hero-map canvas { width: 100%; height: 100%; display: block; }

/* Scrim under the copy column only — keeps AA contrast over the densest part
   of the lattice without dimming the map on the right. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto;
  height: clamp(520px, 62vw, 820px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
    var(--bg-top) 0%,
    rgba(5, 11, 22, .92) 26%,
    rgba(5, 11, 22, .55) 48%,
    rgba(5, 11, 22, 0) 68%);
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--text-secondary); max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease-out, background-color .16s ease-out, border-color .16s ease-out;
}
.btn-primary { background: var(--accent); color: #04101F; }
.btn-primary:hover { transform: translateY(-1px); background: #4FB7FF; }
.btn-secondary {
  background: var(--card); color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn-secondary:hover { border-color: var(--accent-border); color: var(--accent); }

.store-download {
  width: min(100%, 390px);
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(12, 27, 49, .72);
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .18s ease-out, background-color .18s ease-out, transform .18s ease-out;
}
.store-download:hover, .store-download:focus-visible {
  border-color: var(--accent-border);
  background: rgba(17, 36, 63, .88);
  transform: translateY(-1px);
}
.store-download:active { transform: translateY(1px) scale(.99); }
.store-download-main {
  min-width: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.store-download-main > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: var(--text);
}
.store-download-copy { min-width: 0; display: grid; gap: 4px; }
.store-download-copy strong { font-size: 14px; line-height: 1.2; }
.store-download-copy small { color: var(--text-secondary); font-size: 11px; line-height: 1.25; }
.store-download-qr {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--border);
}
.store-download-qr img { width: 64px; aspect-ratio: 1; border-radius: 8px; }

.hero-device { justify-self: center; width: 100%; max-width: 340px; }

.device {
  border: 1px solid var(--border);
  border-radius: var(--radius-device);
  overflow: hidden;
  background: var(--bg-top);
  box-shadow: 0 26px 60px rgba(2, 8, 18, .62), 0 0 0 1px rgba(46, 168, 255, .06);
}

/* Live UTC + visitor's own zone, anchoring the fold. Real data, no claims. */
.fold-readout {
  position: relative; z-index: 2;
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: baseline;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.readout-item { display: flex; align-items: baseline; gap: 12px; }
.readout-value { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.readout-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary);
}

/* --------------------------------------------------------------- sections */

.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }

/* Three questions — the product's spine. */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 18px rgba(46, 168, 255, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 30px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 15.5px; color: var(--text-secondary); }

.q-num {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--accent); display: block; margin-bottom: 16px;
}

/* Feature rows: screenshot beside prose, alternating side. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature.flip .feature-shot { order: -1; }

.feature-shot { justify-self: center; width: 100%; max-width: 330px; }

.speclist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 13px; }
.speclist li {
  position: relative; padding-left: 26px;
  color: var(--text-secondary); font-size: 15.5px; line-height: 1.55;
}
.speclist li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: .85;
}
.speclist strong { color: var(--text); font-weight: 600; }

/* Widgets */
.widgetgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.widgetgrid .card { padding: 26px; }
.families { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.families span {
  font-size: 12.5px; font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Privacy panel — the strongest true differentiator, so it gets the accent. */
.privacy-panel {
  background: var(--card-elevated);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: clamp(32px, 4.5vw, 52px);
  box-shadow: 0 10px 18px rgba(46, 168, 255, .08);
}
.nolist { list-style: none; margin: var(--gap-panel) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.nolist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15.5px; color: var(--text-secondary);
}
.nolist svg { flex: none; margin-top: 3px; color: var(--accent); }
.nolist strong { color: var(--text); font-weight: 600; }

/* Facts strip */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: #08111F; padding: 28px 26px; }
.fact-value { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; display: block; }
.fact-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary); margin-top: 6px; display: block;
}

/* Language marquee-free list */
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--gap-panel); }
.langs span {
  font-size: 13.5px; color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
}

/* Closing CTA */
.closer {
  text-align: center;
  border-top: 1px solid var(--border);
}
.closer .shell > p { margin-inline: auto; }
.closer .cta-row { justify-content: center; }
.closer-icon { width: 82px; height: 82px; border-radius: 20px; margin: 0 auto 28px; }

/* ------------------------------------------------------------ prose pages */

.page-head { padding-block: clamp(56px, 7vw, 88px) 0; }
.prose { padding-block: clamp(36px, 5vw, 56px) clamp(72px, 9vw, 112px); }
.prose .shell { max-width: 760px; }
.prose h2 { font-size: clamp(23px, 2.6vw, 29px); margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; margin: 0 0 18px; color: var(--text-secondary); }
.prose li { margin-bottom: 9px; }
.prose .card { margin-top: var(--gap-panel); }
.prose .card p:last-child { margin-bottom: 0; }
.prose dl { margin: var(--gap-panel) 0 0; display: grid; gap: 24px; }
.prose dt { font-weight: 600; margin-bottom: 6px; }
.prose dd { margin: 0; color: var(--text-secondary); }

/* -------------------------------------------------------- articles & hubs */

.crumbs { display: flex; gap: 9px; align-items: center; font-size: 13.5px; margin-bottom: 20px; }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text-secondary); opacity: .5; }

.dek { font-size: clamp(17px, 1.7vw, 19px); color: var(--text-secondary); max-width: 58ch; }

/* Answer first, details after — the research's editorial rule, given a
   component so every guide obeys it structurally rather than by discipline. */
.answer {
  background: var(--card-elevated);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 44px;
  box-shadow: 0 10px 18px rgba(46, 168, 255, .08);
}
.answer .eyebrow { margin-bottom: 10px; }
.answer p { margin-bottom: 10px; font-size: 17px; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--text); }

.prose table {
  width: 100%; border-collapse: collapse;
  margin: var(--gap-panel) 0 24px;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}
.prose thead th {
  text-align: left; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 14px 12px 0; border-bottom: 1px solid var(--border);
}
.prose tbody td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.prose tbody td:first-child { color: var(--text); font-weight: 500; }
/* Wide tables scroll inside themselves; the page body never scrolls sideways. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 460px; }

.article-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 56px; padding-top: var(--gap-panel);
  border-top: 1px solid var(--border);
}
.article-cta img { border-radius: 13px; }
.article-cta > div { flex: 1 1 260px; }
.article-cta p { margin: 0; font-size: 14.5px; }

.updated { font-size: 12.5px; margin-top: 28px; }

/* Hub listings */
.hub-list { display: grid; gap: 14px; margin-top: var(--gap-panel); }
.hub-item {
  display: block; text-decoration: none; color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 22px 24px;
  transition: border-color .16s ease-out, transform .16s ease-out;
}
.hub-item:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.hub-item h3 { margin-bottom: 6px; font-size: 18px; }
.hub-item p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.hub-item .eyebrow { margin-bottom: 9px; }

.bucket { margin-top: clamp(48px, 6vw, 72px); }
.bucket > p.muted { max-width: 62ch; }

@media (max-width: 620px) {
  .store-download { min-height: 56px; display: flex; }
  .store-download-main { width: 100%; justify-content: center; padding: 0 20px; }
  .store-download-copy small, .store-download-qr { display: none; }
  .answer { padding: 22px; }
  .article-cta { gap: 14px; }
}

/* ----------------------------------------------------------------- footer */

.footsite {
  border-top: 1px solid var(--border);
  padding-block: 52px 40px;
  margin-top: 0;
}
.foot-inner {
  width: min(100% - 44px, var(--shell)); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center;
}
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 11px; }
.foot-name { margin: 0; font-weight: 600; font-size: 16px; }
.foot-brand p { margin: 0; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text-secondary); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--accent); }
.foot-legal {
  width: min(100% - 44px, var(--shell)); margin: 34px auto 0;
  font-size: 12.5px; line-height: 1.6; max-width: 78ch;
}

/* ----------------------------------------------------------------- reveal */

/* Content ships visible; JS opts in to animating it. No-JS and
   reduced-motion both get the final state with no work. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .32s ease-out, transform .32s ease-out; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { max-width: 300px; margin-top: 8px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature .feature-shot, .feature.flip .feature-shot { order: 0; max-width: 300px; }
  .questions, .widgetgrid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .nolist { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell, .masthead, .foot-inner, .foot-legal { width: min(100% - 32px, var(--shell)); }
  .masthead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pillnav { width: 100%; justify-content: space-between; }
  /* 44px is the iOS minimum tap target; the desktop 36px is too small here,
     and this nav is thumb-operated on the device most visitors arrive on. */
  .pillnav a { padding: 8px 12px; flex: 1; justify-content: center; min-height: 44px; font-size: 13.5px; }
  .hero-map { inset: -60px 0 auto; height: 460px; }
  .fold-readout { gap: 18px 28px; }
  .card { padding: 24px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Conversion index chips — a dense grid of hour links, one per generated page. */
.chipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: var(--gap-panel); }
.chip {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 14px 16px;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
  transition: border-color .16s ease-out;
}
.chip:hover { border-color: var(--accent-border); }
.chip strong { font-size: 15px; font-weight: 600; }
.chip span { font-size: 13px; color: var(--text-secondary); }

/* Card that is itself a link — used for the section pointing at the guides,
   scenarios and conversion hubs. Same surface as .card, plus affordance. */
.linkcard { text-decoration: none; color: inherit; display: block; transition: border-color .16s ease-out, transform .16s ease-out; }
.linkcard:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.linkcard h3::after { content: " →"; color: var(--accent); }
