/* ============================================================
   Pharos — website design system
   Palette mirrors ios_app PharosTheme.swift (warm cream + amber
   sun identity, adaptive light/dark).
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #FAF6EE;
  --surface: #FFFEF9;
  --surface-muted: #F5F0E8;
  --surface-elevated: #FFFFFF;

  /* The sun (same in both appearances) */
  --sun: #FAC74D;
  --sun-deep: #F59933;
  --honey: #F5DDA8;
  --gold: #8A6D2E;
  --on-sun: #2A1F10;

  /* Text */
  --ink: #2A1F10;
  --ink-soft: #665E59;
  --ink-muted: #99918C;

  /* Lines & fills */
  --border: #E8DCC0;
  --positive: #2D6A4F;

  /* Fixed */
  --night: #1A1714;

  --radius: 20px;
  --radius-card: 24px;

  --nav-bg: rgba(250, 246, 238, 0.78);
  --shadow-card: 0 10px 30px rgba(42, 31, 16, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1814;
    --surface: #211C14;
    --surface-muted: #2A2418;
    --surface-elevated: #2A2218;

    --honey: #4A3C1C;
    --gold: #C4A060;

    --ink: #F0E6D0;
    --ink-soft: #A69E96;
    --ink-muted: #7A726A;

    --border: #332B1E;
    --positive: #84CDA9;

    --nav-bg: rgba(28, 24, 20, 0.78);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

/* Narrow screens: the links stay on one line and scroll sideways instead of
   wrapping into a three-line block that doubles the height of the bar. */
@media (max-width: 768px) {
  .nav-inner { gap: 14px; height: 54px; }

  /* The scroller must be the only flexible item, or it grows under the brand. */
  .nav-brand { flex: 0 0 auto; }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Fade the RIGHT edge only: it hints "more links this way" without
       clipping the first word, which reads as a rendering bug. */
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px);
    mask-image: linear-gradient(to left, transparent 0, #000 16px);
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; font-size: 13.5px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  margin: 0 auto 32px;
  box-shadow: 0 18px 44px rgba(245, 153, 51, 0.28);
}

/* Hero layout: sun beside the copy on desktop, stacked above it on narrow
   screens. Flex (not absolute positioning) so the two can never overlap —
   the sphere used to sit on top of the headline below ~768px. */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  text-align: left;
}

.hero-copy {
  flex: 1 1 0;
  min-width: 0;          /* let the column shrink instead of pushing the sun out */
  max-width: 640px;
}

/* The hero mark is a Three.js sphere (3d-sun.js). The <img> inside is the
   fallback: it stays until the first frame is actually drawn, so a blocked CDN
   or a browser without WebGL still shows the icon. */
.hero-3d {
  position: relative;
  flex: 0 0 auto;        /* never squeezed by the text column */
  order: 2;              /* desktop: sun to the right of the copy */
  width: clamp(200px, 24vw, 320px);
  height: clamp(200px, 24vw, 320px);
  display: grid;
  place-items: center;
}

.hero .sub { margin-left: 0; margin-right: 0; }
.hero-ctas { justify-content: flex-start; }

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;   /* stack: sun first, then the words */
    text-align: center;
  }

  .hero-3d {
    order: 0;
    width: clamp(160px, 46vw, 240px);
    height: clamp(160px, 46vw, 240px);
    margin-bottom: 4px;
  }

  .hero-copy { max-width: 100%; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
}

.hero-3d .hero-icon {
  margin: 0;
  width: 108px;
  height: 108px;
}

.hero-3d.is-live .hero-icon { display: none; }

.sun3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* The glow is additive, so the canvas keeps its own soft halo underneath. */
  filter: drop-shadow(0 16px 34px rgba(245, 153, 51, 0.34));
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(42px, 7.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--sun), var(--sun-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-soft);
}

.hero-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-link:hover {
  color: var(--ink);
  border-color: var(--sun);
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-sun {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--on-sun);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(245, 153, 51, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-sun:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(245, 153, 51, 0.36);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-quiet:hover { background: var(--surface-elevated); }

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--on-sun);
  margin-bottom: 18px;
}

.card .glyph svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Steps ---------- */

.steps { display: grid; gap: 18px; }

.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--on-sun);
  font-weight: 700;
  font-size: 17px;
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Phone / loading demo ---------- */

.demo {
  display: flex;
  gap: 56px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-copy { max-width: 400px; }

.demo-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.demo-copy p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
}

.phone {
  width: 300px;
  height: 610px;
  border-radius: 48px;
  background: var(--bg);
  border: 10px solid var(--night);
  box-shadow: 0 30px 70px rgba(26, 23, 20, 0.35);
  position: relative;
  overflow: hidden;
  flex: none;
}

.phone::before {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 14px;
  background: var(--night);
  z-index: 3;
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  gap: 0;
}

/* Pharos companion avatar (mirrors PharosAvatar.swift) */

.avatar {
  width: 130px;
  height: 130px;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF9E0, #FDF0D8 55%, #FBF0C0);
  box-shadow:
    0 0 46px rgba(250, 199, 77, 0.55),
    0 14px 34px rgba(245, 153, 51, 0.30);
  animation: float 2.4s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.avatar .eyes {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}

.avatar .eye {
  width: 15px;
  height: 17px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E8B84B, #C87820);
  animation: blink 4.6s infinite;
  transform-origin: center;
}

@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%, 97%      { transform: scaleY(0.15); }
}

.avatar .mouth {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 16px;
}

.avatar .mouth path {
  stroke: rgba(245, 153, 51, 0.6);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

/* Rotating loading phrases (mirrors LoadingView.swift) */

.phrases {
  position: relative;
  height: 44px;
  width: 100%;
  margin-top: 30px;
}

.phrases span {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink);
  opacity: 0;
  animation: phrase 16s infinite;
}

.phrases span:nth-child(1) { animation-delay: 0s; }
.phrases span:nth-child(2) { animation-delay: 3.2s; }
.phrases span:nth-child(3) { animation-delay: 6.4s; }
.phrases span:nth-child(4) { animation-delay: 9.6s; }
.phrases span:nth-child(5) { animation-delay: 12.8s; }

@keyframes phrase {
  0%        { opacity: 0; transform: translateY(6px); }
  3%, 17%   { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(-6px); }
}

.phone-caption {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.dots {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: bounce 1.2s ease-in-out infinite;
}

.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.notify-pill {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notify-pill svg { width: 12px; height: 12px; color: var(--sun-deep); }

@media (prefers-reduced-motion: reduce) {
  .avatar, .avatar .eye, .dots i { animation: none; }
  .phrases span { animation: none; }
  .phrases span:first-child { opacity: 1; }
}

/* ---------- Hero badge ---------- */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  flex: none;
}

.hero-badge:hover { color: var(--ink); }

/* ---------- UNESCO / MIL section ---------- */

.mil-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.mil-band .eyebrow { margin-bottom: 10px; }

.mil-band h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.mil-band > p {
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- Support page ---------- */

.support-hero {
  text-align: center;
  padding: 64px 0 8px;
}

.support-hero img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 14px 34px rgba(245, 153, 51, 0.26);
}

.support-hero h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.support-hero p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 17px;
  color: var(--ink-soft);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px;
  text-align: center;
  margin: 40px auto 0;
  max-width: 620px;
}

.contact-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

.contact-card .email {
  display: inline-block;
  margin-top: 20px;
  font-size: clamp(16px, 3.2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.contact-card .btn-sun { margin-top: 22px; }

.contact-card .meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
}

/* FAQ */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--sun-deep);
  flex: none;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.faq details p + p { margin-top: 8px; }

.faq a { color: var(--gold); }

/* ---------- Privacy deep dive ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.compare-col {
  border-radius: var(--radius-card);
  padding: 28px;
  border: 1px solid var(--border);
}

.compare-col.stays {
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.compare-col.leaves {
  background: var(--surface-muted);
}

.compare-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.compare-col h3 svg { width: 20px; height: 20px; flex: none; }

.compare-col.stays h3 svg { color: var(--positive); }
.compare-col.leaves h3 svg { color: var(--sun-deep); }

.compare-col ul { list-style: none; }

.compare-col li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.compare-col.stays li::before { background: var(--positive); }
.compare-col.leaves li::before { background: var(--sun-deep); }

.compare-col .note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Serpentine map strip ---------- */

.map-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 28px 30px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.map-strip svg { width: 100%; min-width: 560px; height: auto; display: block; }

/* ---------- Privacy banner ---------- */

.privacy-banner {
  background: var(--night);
  border-radius: var(--radius-card);
  padding: 56px 40px;
  text-align: center;
  color: #F0E6D0;
  position: relative;
  overflow: hidden;
}

.privacy-banner::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 199, 77, 0.22), transparent 70%);
  pointer-events: none;
}

.privacy-banner h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.privacy-banner p {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 16px;
  color: #A69E96;
}

.privacy-banner .btn-sun { margin-top: 28px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 60px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  width: 100%;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 28px;
  font-weight: 600;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 36px 0 10px;
}

.legal p, .legal li {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }

.legal a { color: var(--gold); }

.legal strong { color: var(--ink); }

.legal .callout {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}

.legal .callout p { margin: 0; font-size: 15px; }

/* ---------- Authority tiers (the Sources section) ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.tier-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  /* Written out as rgba() rather than color-mix(): color-mix only landed in
     Safari 16.4, and older Safari drops the whole declaration, leaving the
     badges as bare text. */
  color: #8a5a10;
  background: rgba(138, 90, 16, 0.14);
  border: 1px solid rgba(138, 90, 16, 0.3);
}

/* Same tiers, same colours as the badges inside the app. */
.tier-badge.t1 { color: #2c7a6f; background: rgba(51, 140, 128, 0.16); border-color: rgba(51, 140, 128, 0.34); }
.tier-badge.t2 { color: #a9660f; background: rgba(199, 122, 24, 0.16); border-color: rgba(199, 122, 24, 0.34); }
.tier-badge.t3 { color: #2f6ba6; background: rgba(66, 133, 199, 0.16); border-color: rgba(66, 133, 199, 0.34); }
.tier-badge.t4 { color: #b4525c; background: rgba(212, 107, 117, 0.16); border-color: rgba(212, 107, 117, 0.34); }
.tier-badge.t5 { color: #6d59a3; background: rgba(133, 112, 189, 0.16); border-color: rgba(133, 112, 189, 0.34); }
.tier-badge.t6 { color: #b3621f; background: rgba(217, 123, 43, 0.16); border-color: rgba(217, 123, 43, 0.34); }

@media (prefers-color-scheme: dark) {
  .tier-badge.t1 { color: #57b3a5; background: rgba(87, 179, 165, 0.16); border-color: rgba(87, 179, 165, 0.34); }
  .tier-badge.t2 { color: #f5a93d; background: rgba(245, 169, 61, 0.16); border-color: rgba(245, 169, 61, 0.34); }
  .tier-badge.t3 { color: #6ba6e0; background: rgba(107, 166, 224, 0.16); border-color: rgba(107, 166, 224, 0.34); }
  .tier-badge.t4 { color: #e08b93; background: rgba(224, 139, 147, 0.16); border-color: rgba(224, 139, 147, 0.34); }
  .tier-badge.t5 { color: #a692d9; background: rgba(166, 146, 217, 0.16); border-color: rgba(166, 146, 217, 0.34); }
  .tier-badge.t6 { color: #f0954a; background: rgba(240, 149, 74, 0.16); border-color: rgba(240, 149, 74, 0.34); }
}

.tier p {
  font-size: 15px;
  color: var(--ink-soft);
}

.tier-eg {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.tiers-note {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}

.tiers-note strong { color: var(--ink); }

/* ---------- Open by default ---------- */

.open-band {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 38px;
}

.open-copy h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.open-copy p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 54ch;
}

.open-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.open-facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.open-facts strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

@media (max-width: 760px) {
  .open-band { grid-template-columns: 1fr; padding: 28px 24px; }
}

/* ---------- Team ---------- */

.team-grid .card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.team-where {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.team-role {
  font-size: 14px !important;
  font-weight: 600;
  color: var(--ink) !important;
  margin-bottom: 8px;
}
