/* Tourpod — layout concept: a walking route. Sections are stops on the tour;
   the steps that really are a sequence are joined by a dashed route line.
   Signal orange is the guide's flag the group follows. */
:root {
  --paper: #ffffff;
  --paper-2: #fff0e4;
  --paper-glass: rgba(255, 255, 255, 0.86);
  --ink: #23170f;
  --ink-2: #6b5b4f;
  --line: #eadfd4;
  --card: #ffffff;
  --flag: #e8743c;
  --flag-ink: #a84a16;
  --on-flag: #23170f;
  --night: #1c140e;
  --night-2: #2a1e16;
  --night-ink: #f6ece3;
  --night-ink-2: #c9b8a9;
  --live: #2e9e5b;
  --probe: #e0961f;
  --down: #c9472f;
  --shadow: 0 1px 2px rgba(35, 23, 15, 0.06), 0 18px 40px rgba(35, 23, 15, 0.12);

  /* The app's own light palette, used inside the phone mock-ups in both themes */
  --app-bg: #f5efe6;
  --app-card: #ffffff;
  --app-brown: #6b3a24;
  --app-peach: #fcdcc2;
  --app-ink: #2a1b11;
  --app-muted: #7a6a5e;
  --app-frame: #120c08;
  --app-red: #c62828;
  --app-green: #2e9e5b;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 14px;
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15100c;
    --paper-2: #21170f;
    --paper-glass: rgba(21, 16, 12, 0.86);
    --ink: #f4eae1;
    --ink-2: #bba999;
    --line: #3a2c22;
    --card: #1d1611;
    --flag: #f0864e;
    --flag-ink: #f6a070;
    --on-flag: #1b120b;
    --night: #0c0907;
    --night-2: #1c140f;
    --night-ink: #f4eae1;
    --night-ink-2: #bba999;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #15100c;
  --paper-2: #21170f;
  --paper-glass: rgba(21, 16, 12, 0.86);
  --ink: #f4eae1;
  --ink-2: #bba999;
  --line: #3a2c22;
  --card: #1d1611;
  --flag: #f0864e;
  --flag-ink: #f6a070;
  --on-flag: #1b120b;
  --night: #0c0907;
  --night-2: #1c140f;
  --night-ink: #f4eae1;
  --night-ink-2: #bba999;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Paints the strip under the phone's status bar so content never scrolls into it */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 30;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--flag);
  color: var(--on-flag);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  left: max(16px, env(safe-area-inset-left, 0px));
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 84%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
  font-stretch: 92%;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flag-ink);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 36ch;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--flag);
  color: var(--on-flag);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--paper-2);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper-glass);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-2);
}

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

.topbar .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .topbar .btn {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .topbar .btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .brand {
    font-size: 1.3rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero h1 .flagged {
  color: var(--flag-ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts .icon {
  width: 18px;
  height: 18px;
  color: var(--flag-ink);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Phone mock-ups ---------- */
.phones {
  --pw: clamp(168px, 46vw, 250px);
  position: relative;
  width: calc(var(--pw) * 1.8);
  max-width: 100%;
  height: calc(var(--pw) * 2.3);
  margin-inline: auto;
}

.phone {
  position: absolute;
  width: var(--pw);
  aspect-ratio: 9 / 18.6;
  font-size: calc(var(--pw) / 22);
  border-radius: 2.4em;
  border: 0.55em solid var(--app-frame);
  background: var(--app-bg);
  color: var(--app-ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--font-body);
  line-height: 1.3;
}

.phone.guide {
  left: 0;
  top: 0;
  z-index: 2;
}

.phone.tourist {
  right: 0;
  top: calc(var(--pw) * 0.2);
  z-index: 3;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  height: 100%;
  padding: 0.7em 0.9em 1em;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  font: 500 0.72em/1 var(--font-mono);
  color: var(--app-muted);
  padding: 0.15em 0.3em 0.3em;
}

.app-title {
  display: grid;
  gap: 0.1em;
}

.app-title strong {
  font-size: 1.12em;
}

.app-title span {
  font-size: 0.78em;
  color: var(--app-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.72em;
  font-weight: 700;
  padding: 0.3em 0.6em;
  border-radius: 999px;
  background: var(--app-card);
  border: 1px solid #e7dccf;
}

.chip .dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--app-green);
}

.chip .ms {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--app-muted);
}

.chip.count {
  margin-left: auto;
  background: var(--app-brown);
  color: #fbeee2;
  border-color: var(--app-brown);
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 0.35em;
  padding: 0.8em;
  border-radius: 1em;
  background: var(--app-card);
}

.qr {
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.qr-label {
  font-size: 0.7em;
  color: var(--app-muted);
}

.join-code {
  font: 500 1.15em/1 var(--font-mono);
  letter-spacing: 0.22em;
  color: var(--app-ink);
}

.talk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 0.7em 0.8em;
  border-radius: 999px;
  background: var(--app-brown);
  color: #fbeee2;
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.04em;
}

.talk .rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: var(--app-red);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
}

.talk .rec::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #fff;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45em;
  margin-top: auto;
}

.tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.25em;
  padding: 0.55em 0.2em;
  border-radius: 0.8em;
  background: var(--app-card);
  font-size: 0.66em;
  font-weight: 700;
  color: var(--app-brown);
}

.tile .icon {
  width: 1.9em;
  height: 1.9em;
}

.badge {
  position: absolute;
  top: 0.25em;
  right: 0.45em;
  min-width: 1.5em;
  padding: 0.1em 0.35em;
  border-radius: 999px;
  background: var(--flag);
  color: var(--on-flag);
  font-size: 0.9em;
  line-height: 1.3;
}

.listening {
  display: grid;
  justify-items: center;
  gap: 0.4em;
  margin-block: 0.4em;
}

.ear {
  width: 6.2em;
  height: 6.2em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-peach);
  color: var(--app-brown);
  box-shadow: 0 0 0 0.7em rgba(232, 116, 60, 0.18);
}

.ear .icon {
  width: 3em;
  height: 3em;
}

.listening span {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--app-brown);
}

.caption {
  display: grid;
  gap: 0.3em;
  padding: 0.7em 0.8em;
  border-radius: 0.9em;
  background: rgba(42, 27, 17, 0.88);
  color: #fff7ef;
  font-size: 0.8em;
}

.caption .lang {
  justify-self: start;
  font: 500 0.78em/1 var(--font-mono);
  padding: 0.25em 0.5em;
  border-radius: 0.4em;
  background: var(--flag);
  color: var(--on-flag);
}

.t-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45em;
  margin-top: auto;
}

.t-actions .tile.sos {
  background: var(--app-red);
  color: #fff;
}

/* ---------- Benefit strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 4vw, 40px);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.strip-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
}

.strip-item .icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: var(--flag-ink);
  margin-top: 2px;
}

.strip-item strong {
  font-family: var(--font-display);
  font-stretch: 92%;
  font-size: 1.15rem;
}

.strip-item p {
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .strip-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Steps along the route ---------- */
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.route::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  border-top: 3px dashed var(--flag);
  opacity: 0.55;
}

.stop {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.stop-no {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--flag);
  color: var(--on-flag);
  font: 800 1.5rem/1 var(--font-display);
  box-shadow: 0 0 0 8px var(--paper);
}

.stop p {
  color: var(--ink-2);
  max-width: 34ch;
}

@media (max-width: 760px) {
  .route {
    grid-template-columns: minmax(0, 1fr);
  }

  .route::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    border-top: 0;
    border-left: 3px dashed var(--flag);
  }

  .stop {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;
  }

  .stop-no {
    grid-row: span 2;
  }
}

/* ---------- Captions demo ---------- */
.band-peach {
  background: var(--paper-2);
}

.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cap-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ticks {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
}

.ticks .icon {
  color: var(--flag-ink);
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.demo {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background: var(--night);
  color: var(--night-ink);
  box-shadow: var(--shadow);
  min-width: 0;
}

.demo-src {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--night-2);
}

.demo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-ink-2);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #ff8a73;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot::before {
    animation: pulse 1.6s ease-in-out infinite;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.demo-src p {
  font-size: 1.05rem;
  color: var(--night-ink-2);
}

.demo-out {
  min-height: 7.5em;
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  text-wrap: pretty;
}

.demo-out .cursor {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--flag);
}

.demo-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-langs button {
  font: 700 0.9rem/1 var(--font-body);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--night-2);
  background: var(--night-2);
  color: var(--night-ink);
  cursor: pointer;
}

.demo-langs button[aria-pressed="true"] {
  background: var(--flag);
  border-color: var(--flag);
  color: var(--on-flag);
}

@media (max-width: 900px) {
  .cap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Features ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 36px);
}

.feat {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.feat-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--flag-ink);
}

.feat p {
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Offline band ---------- */
.band-night {
  background: var(--night);
  color: var(--night-ink);
}

.band-night .eyebrow {
  color: var(--flag);
}

.band-night .lead {
  color: var(--night-ink-2);
  max-width: 44ch;
}

.off-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.off-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.band-night .ticks .icon {
  color: var(--flag);
}

.legend {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--night-2);
}

.legend-title {
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-ink-2);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.95rem;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-row i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.lg-ok {
  background: var(--live);
}

.lg-probe {
  background: var(--probe);
}

.lg-down {
  background: var(--down);
}

.scene {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px) 16px;
  border-radius: 22px;
  border: 1px dashed var(--night-2);
  min-width: 0;
}

.no-net {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-ink-2);
}

.no-net .icon {
  width: 18px;
  height: 18px;
  color: var(--down);
}

.router {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--flag);
}

.router .icon {
  width: 72px;
  height: 72px;
  stroke-width: 1.6;
}

.router span {
  font-weight: 700;
  color: var(--night-ink);
}

.listeners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.listener {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--night-2);
  font: 500 0.8rem/1 var(--font-mono);
  color: var(--night-ink);
}

.listener .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
}

@media (max-width: 900px) {
  .off-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 44px) clamp(28px, 5vw, 64px);
}

.qa {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.qa h3 {
  font-size: 1.2rem;
}

.qa p {
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Beta call ---------- */
.band-flag {
  background: var(--flag);
  color: var(--on-flag);
}

.beta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.beta-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.beta-copy p {
  max-width: 44ch;
  font-size: 1.15rem;
}

.mailbox {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mail-addr {
  font: 500 clamp(1.15rem, 2.2vw, 1.45rem)/1.2 var(--font-mono);
  overflow-wrap: anywhere;
  user-select: all;
}

.mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.band-flag .btn-dark {
  background: var(--on-flag);
  color: var(--flag);
}

.band-flag .btn-line {
  border-color: var(--on-flag);
  color: var(--on-flag);
  background: transparent;
}

@media (max-width: 760px) {
  .beta-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.footer .brand {
  color: var(--ink);
  font-size: 1.2rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-left: auto;
}

.footer nav a {
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Document pages (privacy, deletion) ---------- */
.doc {
  padding-block: clamp(40px, 6vw, 72px);
}

.doc-body {
  max-width: 46rem;
  display: grid;
  gap: 18px;
}

.doc-body h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.doc-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-top: 18px;
}

.doc-body ul,
.doc-body ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
}

.doc-body .meta {
  font: 500 0.85rem/1.4 var(--font-mono);
  color: var(--ink-2);
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.doc-table {
  overflow-x: auto;
}

.doc-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.doc-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.steps-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

.steps-card h2 {
  margin-top: 0;
}
