/* ==========================================================================
   JOURNEY — shared theme
   One file drives every page. Change a token here, the whole site follows.
   ========================================================================== */

:root {
  /* neutrals */
  --canvas:   #F4F7FB;   /* page background — matches the app's Daylight canvas */
  --panel:    #FFFFFF;   /* cards */
  --wash:     #E8F0FB;   /* soft blue band, used to alternate sections */
  --line:     #DDE6F1;   /* hairlines */
  --ink:      #0C1722;   /* headings */
  --slate:    #54677A;   /* body copy */
  --mist:     #8496A8;   /* captions, mono labels */

  /* blues */
  --blue:      #1668D6;  /* primary accent — the app's accent */
  --blue-deep: #0B47A0;  /* pressed states, gradient end */
  --sky:       #3B93F7;  /* accent on dark */

  /* dark */
  --night:   #0B0E11;    /* matches the app's dark canvas */
  --night-2: #141B24;

  /* semantic */
  --mint: #2E7D5B;       /* positive change */

  --header-bg: rgba(244, 247, 251, .82);
  --hover:     rgba(12, 23, 34, .04);
  --edge:      #BFD6F2;   /* hover borders */
  --dev-shadow: drop-shadow(0 34px 54px rgba(11, 39, 77, .26));

  --shadow-sm: 0 1px 2px rgba(12, 23, 34, .05);
  --shadow-md: 0 10px 30px -12px rgba(12, 23, 34, .18);
  --shadow-lg: 0 40px 80px -32px rgba(11, 71, 160, .38);

  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}


/* ==========================================================================
   THEME SYSTEM — light by default, dark follows the phone (AUTO),
   and the header sun/moon button pins either one (saved per visitor).
   Old browsers that don't know light-dark() simply stay light.
   ========================================================================== */
:root { color-scheme: light dark; }
:root {
  --canvas: light-dark(#F4F7FB, #0B0E11);
  --panel:  light-dark(#FFFFFF, #131A23);
  --wash:   light-dark(#E8F0FB, #0F151D);
  --line:   light-dark(#DDE6F1, #202B37);
  --ink:    light-dark(#0C1722, #F2F6FA);
  --slate:  light-dark(#54677A, #A6B7C9);
  --mist:   light-dark(#8496A8, #74869A);
  --blue:      light-dark(#1668D6, #3F93F5);
  --blue-deep: light-dark(#0B47A0, #1E6FD9);
  --mint:   light-dark(#2E7D5B, #45A97D);
  --header-bg: light-dark(rgba(244, 247, 251, .82), rgba(11, 14, 17, .8));
  --hover:     light-dark(rgba(12, 23, 34, .04), rgba(255, 255, 255, .06));
  --edge:      light-dark(#BFD6F2, #34475E);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* filters aren't colors, so the device shadow switches the classic way */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dev-shadow: drop-shadow(0 0 1px rgba(178, 198, 219, .5)) drop-shadow(0 30px 50px rgba(0, 0, 0, .65));
  }
}
:root[data-theme="dark"] {
  --dev-shadow: drop-shadow(0 0 1px rgba(178, 198, 219, .5)) drop-shadow(0 30px 50px rgba(0, 0, 0, .65));
}

/* header theme toggle */
.tbtn {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--slate);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.tbtn:hover { color: var(--ink); border-color: var(--edge); }
.tbtn svg { width: 16px; height: 16px; }
.tbtn .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tbtn .sun  { display: block; }
  :root:not([data-theme="light"]) .tbtn .moon { display: none; }
}
:root[data-theme="dark"] .tbtn .sun  { display: block; }
:root[data-theme="dark"] .tbtn .moon { display: none; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1, h1.big {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.038em;
  margin: 0;
}

h2 { font-size: clamp(1.65rem, 3.3vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 1.0625rem; letter-spacing: -.015em; }
h4 { font-size: .9375rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong, b { color: var(--ink); font-weight: 700; }

.eyebrow,
.tag,
.mono {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.5;
}

.eyebrow { color: var(--blue); }
.tag     { color: var(--mist); }

.sub, .lead {
  color: var(--slate);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 34em;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 720px; }

/* in-page jumps land below the sticky header, not under it */
[id] { scroll-margin-top: 78px; }

section { padding: 0; }

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 13px 0;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

header .brand,
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .32em;
  text-decoration: none;
}
header .brand img, .brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
header a > .brand { flex: 1; }

header nav { margin-left: auto; display: flex; align-items: center; gap: 6px; white-space: nowrap; }

header nav a {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 8px 10px;
  border-radius: var(--r-sm);
}
header nav a:hover { color: var(--ink); background: var(--hover); }

header nav a.go,
header nav a:last-child {
  color: #fff;
  background: var(--blue);
  font-weight: 600;
  padding: 9px 15px;
  box-shadow: var(--shadow-sm);
}
header nav a.go:hover,
header nav a:last-child:hover { background: var(--blue-deep); color: #fff; }

@media (max-width: 560px) {
  .brand { letter-spacing: .22em; font-size: .78rem; }
  header nav a { font-size: .5625rem; padding: 7px 7px; }
  header nav a.go, header nav a:last-child { padding: 8px 11px; }
}
@media (max-width: 400px) {
  header nav a:not(.go):not(:last-child) { display: none; }
}

/* ---------- buttons ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(11, 71, 160, .7);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.cta:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(11, 71, 160, .8);
}
.cta:active { transform: translateY(0); }

.cta2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--slate);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.cta2:hover { border-color: var(--blue); color: var(--ink); }

/* ---------- cards (shared by guides / support / legal) ---------- */

.hero { padding: 64px 0 40px; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 30px 0 12px;
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--slate); font-size: .875rem; }

/* guide / download rows */
.g {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.g:hover { border-color: var(--edge); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.g .d {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--wash);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.g h3 { font-size: .9375rem; margin: 0; }
.g h3 a { color: var(--ink); }
.g h3 a:hover { color: var(--blue); }
.g p { color: var(--slate); font-size: .8125rem; margin: 2px 0 0; }

.legal h2 { margin: 30px 0 8px; font-size: 1.15rem; }
.legal p { color: var(--slate); font-size: .9375rem; margin-top: 10px; }
.legal .lead { color: var(--ink); font-size: 1.0625rem; }

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

footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 52px 0 40px;
  background: var(--panel);
}
footer .wrap { max-width: 1080px; }

.fcols { display: flex; flex-wrap: wrap; gap: 34px; }
.fbrand { flex: 0 1 210px; }
.fbrand .row { display: flex; align-items: center; gap: 9px; }
.fbrand .brand { font-size: .8125rem; letter-spacing: .3em; }
.fbrand .row img { width: 26px; height: 26px; }

.socials { display: flex; gap: 9px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.socials a:hover { border-color: var(--blue); }
.socials svg { width: 15px; height: 15px; }

.fcol { flex: 1 1 130px; min-width: 130px; }
.fcol h4 {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 12px;
}
.fcol a { display: block; color: var(--slate); font-size: .8125rem; padding: 4px 0; }
.fcol a:hover { color: var(--blue); }

.fbar { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; }
.fbar .links { display: flex; flex-wrap: wrap; gap: 18px; }
.fbar .links a { color: var(--slate); font-size: .75rem; }
.fbar p {
  color: var(--mist);
  font-size: .6875rem;
  font-family: var(--mono);
  letter-spacing: .01em;
  line-height: 1.75;
  margin: 12px 0 0;
}

@media (max-width: 720px) {
  .fcols { gap: 24px; }
  .fbrand { flex: 1 1 100%; }
}
