:root {
  --paper: #f6eee2;
  --surface: #fbf6ec;
  --line: #e9decf;
  --ink: #123647;
  --secondary: #4a5862;
  --tertiary: #8b96a0;
  --accent: #ed6a45;
  --accent-deep: #9e3a20;
  --deep: #0b2633;
  --light: #f3eee5;
  --shadow: 0 24px 60px rgba(18, 54, 71, 0.14);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 48px));

  /* Type scale — lib/theme.ts */
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand: "Funnel Display", sans-serif;
  --text-hero: 2.75rem;
  --text-h1: 2.375rem;
  --text-feature: 2rem;
  --text-title: 1.75rem;
  --text-body-l: 1rem;
  --text-body: 0.875rem;
  --text-eyebrow: 0.6875rem;
  --ls-hero: -0.027em;
  --ls-h1: -0.026em;
  --ls-feature: -0.025em;
  --ls-title: -0.021em;
  --ls-eyebrow: 0.127em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.43;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(18, 54, 71, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 71, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1;
}

h1 {
  max-width: 12em;
  margin-block-end: 18px;
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: var(--ls-hero);
  line-height: 0.955;
}

h2 {
  max-width: 13em;
  margin-block-end: 16px;
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: var(--ls-h1);
}

h3 {
  margin-block-end: 12px;
  font-size: var(--text-feature);
  font-weight: 800;
  letter-spacing: var(--ls-feature);
  line-height: 1.0625;
}

p {
  color: var(--secondary);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--light);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(233, 222, 207, 0.78);
  background: rgba(246, 238, 226, 0.88);
  backdrop-filter: blur(18px);
}

.nav,
.container {
  width: var(--container);
  margin-inline: auto;
}

.nav {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

:target {
  scroll-margin-top: 5.5rem;
}

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header.is-measuring,
.site-header.is-measuring * {
  transition: none !important;
}

.menu-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.site-header .menu-button {
  anchor-name: --menu-button;
}

.site-menu {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.site-header .site-menu {
  position: fixed;
  inset: auto 1rem auto 1rem;
  inset-block-start: 4.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inline-size: auto;
  max-inline-size: none;
  margin-block-start: 0.75rem;
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  overflow: auto;
}

.site-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-menu a {
  position: relative;
  transition: background-color 150ms ease;
}

.site-menu a:hover {
  background: rgba(18, 54, 71, 0.06);
}

.site-menu a[aria-current="page"] {
  font-weight: 800;
}

.site-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  inset-block: 11px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.site-header.is-wide .site-menu a[aria-current="page"]::after {
  inset-inline: 10px;
  inset-block: auto 0;
  width: auto;
  height: 2px;
}

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
  }
}

.site-header.is-wide .menu-button {
  display: none;
}

.site-header.is-wide .site-menu {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header.is-wide .site-menu::backdrop {
  display: none;
}

.site-header.is-wide .site-menu a {
  padding: 6px 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-decoration: none;
}

.wordmark-text {
  transform: scaleY(1.04);
  transform-origin: center;
}

.wordmark-mark {
  width: 1.05em;
  height: 0.65em;
  flex: none;
}

.wordmark .endot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.04em);
}

.brand-mark {
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: var(--accent-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 11;
}

.brand-mark circle {
  fill: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--light);
  padding: 12px 20px 13px;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--deep);
  background: var(--deep);
  color: var(--light);
}

.button-small {
  min-height: 38px;
  padding: 9px 14px 10px;
  font-size: 0.88rem;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
}

.section-pad {
  padding-block: 88px;
}

.section-tight {
  padding-block: 64px;
}

.hero {
  overflow: hidden;
  padding-block-start: 80px;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 72px;
}

.hero-subhead {
  max-width: 34rem;
  margin-block-end: 26px;
  font-size: var(--text-body-l);
  font-weight: 500;
  line-height: 1.4375;
}

.hero-mark {
  width: 64px;
  height: 40px;
  margin-block-end: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: block;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: auto;
  max-width: none;
}

.store-badge-apple img {
  height: 44px;
}

.store-badge-play-en img {
  height: 66px;
  margin-inline: -11px;
}

.store-badge-play-fr img {
  height: 57px;
}

.legal-doc .store-badges {
  margin-block: 1.5rem 0.25rem;
}

.eyebrow,
.mono,
.card-number,
.stat-label,
.placeholder-note,
figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 400;
  letter-spacing: var(--ls-eyebrow);
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow {
  margin-block-end: 14px;
  color: var(--accent-deep);
}

.phone-wrap {
  margin: 0;
}

.phone-shell {
  width: min(100%, 300px);
  margin-inline: auto;
  border: 1px solid rgba(18, 54, 71, 0.22);
  border-radius: 36px;
  background: var(--ink);
  box-shadow: var(--shadow);
  padding: 10px;
  transform: rotate(2.2deg);
}

.app-screen-img {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 27px;
  background: var(--light);
}

.phone-screen {
  min-height: 610px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  padding: 22px;
}

.screen-top,
.mini-row {
  display: flex;
  align-items: center;
}

.screen-top {
  justify-content: space-between;
  gap: 14px;
  margin-block-end: 26px;
}

.screen-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.screen-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.mono {
  color: var(--tertiary);
  line-height: 1.35;
}

.live-pill {
  border-radius: 999px;
  background: rgba(237, 106, 69, 0.14);
  color: var(--accent-deep);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.session-card,
.feature-card,
.reef-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.session-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.session-card.featured {
  background: var(--deep);
  color: var(--light);
}

.session-card strong,
.mini-row strong {
  display: block;
  color: inherit;
  line-height: 1.1;
}

.session-card span:not(.rating),
.mini-row span {
  color: var(--tertiary);
  font-size: 0.92rem;
}

.rating,
.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0;
}

.rating {
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
}

.mini-feed {
  display: grid;
  gap: 12px;
  margin-block-start: 20px;
}

.mini-row {
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-block: 13px;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.mini-row .time {
  margin-left: auto;
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.reef-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-block-start: 28px;
}

.reef-meter span {
  min-height: 74px;
  border: 1px solid rgba(237, 106, 69, 0.45);
  border-radius: 999px 999px 8px 8px;
  background: rgba(237, 106, 69, 0.18);
}

.reef-meter span:nth-child(2),
.reef-meter span:nth-child(5) {
  min-height: 112px;
}

figcaption {
  max-width: 390px;
  margin: 14px auto 0;
  color: var(--tertiary);
  line-height: 1.45;
}

.product {
  overflow: hidden;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.screen-card {
  margin: 0;
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(18, 54, 71, 0.16);
  border-radius: 30px;
  background: var(--light);
  box-shadow: 0 18px 44px rgba(18, 54, 71, 0.12);
}

.screen-card figcaption {
  max-width: none;
  margin: 14px 0 0;
  color: var(--accent-deep);
}

.screen-card-rise {
  margin-block-start: 28px;
}

.narrow {
  max-width: 780px;
}

.problem {
  border-block: 1px solid var(--line);
  background: rgba(251, 246, 236, 0.62);
}

.problem h2,
.problem p {
  max-width: 780px;
}

.problem p,
.stance p,
.split p {
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.43;
}

.section-head {
  margin-block-end: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 300px;
  padding: 28px;
}

.card-number {
  display: inline-block;
  margin-block-end: 42px;
  color: var(--accent-deep);
}

.feature-card p {
  margin-block-end: 0;
}

.reef {
  background: var(--deep);
  color: var(--light);
}

.reef .brand-mark path {
  stroke: var(--light);
}

.reef .brand-mark circle {
  fill: var(--light);
}

.reef p,
.reef .eyebrow {
  color: var(--light);
}

.reef .eyebrow {
  opacity: 0.78;
}

.reef-visual {
  min-height: 340px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  background: #123647;
  padding: 26px;
}

.reef-stat {
  position: relative;
  z-index: 1;
}

.stat-number {
  display: block;
  color: var(--accent);
  font-size: 4rem;
  line-height: 0.88;
}

.stat-label {
  color: var(--light);
}

.reef-art {
  display: block;
  width: min(100%, 294px);
  height: auto;
  margin: 18px auto 0;
}

.split-reverse {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.02fr);
}

.app-mock {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

/* App component mocks. Shared by the landing and the beta page so both
   render the same session/live cards the app does. */
.capp {
  --capp-bg: #F3EEE5;
  --capp-surface: #FBF6EC;
  --capp-ink: #123647;
  --capp-ink2: #4A5862;
  --capp-ink3: #8B96A0;
  --capp-accent: #ED6A45;
  --capp-accent-ink: #9E3A20;
  --capp-on-ink: #F3EEE5;
  --capp-hair: rgba(18, 54, 71, 0.10);
  --capp-sans: "Bricolage Grotesque", sans-serif;
  --capp-mono: "JetBrains Mono", ui-monospace, monospace;
  font-family: var(--capp-sans);
  color: var(--capp-ink);
  -webkit-font-smoothing: antialiased;
}

.capp-session {
  background: var(--capp-surface);
  border: 1px solid var(--capp-hair);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.capp-session-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.capp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--capp-accent);
  color: var(--capp-on-ink);
  display: grid;
  place-items: center;
  font: 600 12px var(--capp-sans);
  flex: none;
}

.capp-session-id {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.capp-session-name {
  font: 600 15px/1.2 var(--capp-sans);
  color: var(--capp-ink);
}

.capp-mono-meta {
  font: 400 12px var(--capp-mono);
  color: var(--capp-ink3);
  letter-spacing: 0.2px;
}

.capp-session-hero {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.capp-duration {
  font: 800 26px/1.05 var(--capp-sans);
  letter-spacing: -0.6px;
  color: var(--capp-ink);
  font-variant-numeric: tabular-nums;
}

.capp-stars {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--capp-accent);
}

.capp-stars .capp-star-off {
  color: var(--capp-ink3);
  opacity: 0.3;
}

.capp-kcal {
  font: 400 12px var(--capp-mono);
  color: var(--capp-ink2);
  letter-spacing: 0.2px;
}

.capp .capp-note {
  font: 500 13px/1.45 var(--capp-sans);
  font-style: italic;
  color: var(--capp-ink);
  margin: 0;
}

.capp-spot {
  display: flex;
  align-items: center;
  gap: 6px;
}

.capp-spot svg {
  flex: none;
}

.capp-spot span {
  font: 400 12px var(--capp-mono);
  color: var(--capp-ink2);
  letter-spacing: 0.4px;
}

.capp-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font: 400 11px var(--capp-mono);
  color: var(--capp-ink3);
}

.capp-senders {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.capp-senders-stack {
  display: flex;
}

.capp-senders-stack .capp-avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
  border: 1.5px solid var(--capp-bg);
}

.capp-senders-stack .capp-avatar + .capp-avatar {
  margin-left: -8px;
}

.capp-senders-stack .capp-avatar:nth-child(2) {
  background: var(--capp-ink2);
}

.capp-senders-label {
  font: 500 13px var(--capp-sans);
  color: var(--capp-ink2);
}

.capp-session-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.capp-react {
  display: flex;
  align-items: center;
  gap: 5px;
}

.capp-react-count {
  font: 400 12px var(--capp-mono);
}

.capp-react-coral .capp-react-count {
  color: var(--capp-accent-ink);
}

.capp-react-comment {
  margin-left: auto;
  color: var(--capp-ink3);
}

.capp-react-comment .capp-react-count {
  color: var(--capp-ink3);
}

.capp-live {
  background: var(--capp-ink);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 18px;
  color: var(--capp-on-ink);
}

.capp-live-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.capp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--capp-accent);
  animation: capp-pulse 2s ease-in-out infinite;
}

@keyframes capp-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(237, 106, 69, 0.45);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(237, 106, 69, 0);
  }
}

.capp-live-label {
  font: 500 11px var(--capp-mono);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(243, 238, 229, 0.72);
}

.capp-live-count {
  margin-left: auto;
  font: 400 10px var(--capp-mono);
  letter-spacing: 0.6px;
  color: rgba(243, 238, 229, 0.55);
}

.capp .capp-live-title {
  font-family: var(--capp-sans);
  font-size: clamp(1.875rem, 5vw, 2.375rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--capp-on-ink);
  margin: 0;
}

.capp-live-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--capp-accent);
}

.capp-live-member {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.capp-live-member .capp-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.capp-live-member-name {
  font: 600 15px var(--capp-sans);
  color: var(--capp-on-ink);
}

.capp-live-member-meta {
  font: 400 12px var(--capp-mono);
  color: rgba(243, 238, 229, 0.65);
}

.capp-live-cta {
  display: block;
  text-align: center;
  background: var(--capp-accent);
  color: var(--capp-on-ink);
  font: 600 15px var(--capp-sans);
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  width: 100%;
}

.capp-reef {
  margin: 0;
}

.capp-reef img {
  width: 100%;
  height: auto;
  display: block;
}

.capp-reef-stage {
  margin-block-start: 10px;
  font: 500 11px var(--capp-mono);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--capp-accent-ink);
}

.stance {
  border-block: 1px solid var(--line);
}

.stance h2 {
  max-width: 960px;
}

.stance p {
  max-width: 720px;
}

.beta {
  padding-block-start: 64px;
}

.beta-inner {
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--light);
  padding: 48px;
}

.beta-inner .button {
  color: #fff;
}

.beta-inner h2 {
  max-width: 9ch;
}

.beta-inner p {
  max-width: 560px;
  color: var(--light);
}

.beta-inner .placeholder-note {
  margin-block: 18px 0;
  color: rgba(243, 238, 229, 0.76);
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer p {
  margin-block: 10px 0;
  color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
  font-weight: 700;
}

.legal {
  padding-block: 72px;
}

.legal-article {
  max-width: 820px;
}

.legal-kicker {
  margin-block-end: 8px;
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 400;
  letter-spacing: var(--ls-eyebrow);
  line-height: 1;
  text-transform: uppercase;
}

.legal-updated {
  margin-block-end: 0;
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.385;
  opacity: 0.6;
}

.source-list {
  display: grid;
  gap: 20px;
  margin-block-start: 32px;
}

.source-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(18, 54, 71, 0.1);
  border-radius: var(--radius);
  background: rgba(251, 246, 236, 0.76);
  padding: 22px;
}

.source-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.source-body p {
  max-width: 56ch;
  margin-block-end: 10px;
}

.source-license {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-body .text-link {
  font-weight: 700;
}

.legal-hairline {
  height: 1px;
  margin-block: 24px 0;
  border: 0;
  background: rgba(18, 54, 71, 0.1);
}

.legal-article h1 {
  max-width: none;
  margin-block-end: 8px;
  font-size: var(--text-title);
  font-weight: 800;
  letter-spacing: var(--ls-title);
  line-height: 1;
}

.legal-article h2 {
  max-width: none;
  margin-block: 28px 8px;
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 400;
  letter-spacing: var(--ls-eyebrow);
  line-height: 1;
  text-transform: uppercase;
}

.legal-article .source-body h2 {
  margin-block: 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: none;
}

.data-page .legal-article h2 {
  margin-block: 2rem 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: none;
}

.data-page .data-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  margin-block-start: 14px;
  border: 1px solid rgba(18, 54, 71, 0.1);
  border-radius: 16px;
  background: rgba(251, 246, 236, 0.76);
  padding: 16px 18px 8px;
}

.data-page .data-card:first-of-type {
  margin-block-start: 28px;
}

.data-page .data-mark {
  grid-row: 1 / span 20;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(18, 54, 71, 0.08);
}

.data-page .data-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-page .data-mark .mark-ink {
  fill: currentColor;
  stroke: none;
}

.data-page .data-mark .mark-fill {
  fill: var(--accent);
  stroke: none;
}

.data-page .data-mark .mark-strong {
  stroke: var(--accent);
}

.data-page .data-card h2,
.data-page .data-card p,
.data-page .data-card ul {
  grid-column: 2;
}

.data-page .data-card h2 {
  margin-block: 2px 6px;
}

.data-page .legal-article p,
.data-page .legal-article li {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.legal-article p,
.legal-article li,
.legal-article dd {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.385;
}

.legal-article ul,
.legal-article ol {
  padding-inline-start: 1.25rem;
}

.legal-article li + li {
  margin-block-start: 10px;
}

.faq {
  margin: 0;
}

.faq dt {
  margin-block-start: 24px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.007em;
  line-height: 1.2;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--secondary);
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 720px) {
  .source-card {
    grid-template-columns: minmax(140px, 180px) 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 880px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.125rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .hero-subhead {
    font-size: var(--text-body-l);
  }

  .stat-number {
    font-size: 3.5rem;
  }

  .hero-grid,
  .split,
  .split-reverse,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block-start: 56px;
  }

  .phone-shell {
    width: min(100%, 300px);
    transform: none;
  }

  .screen-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc((100vw - var(--container)) / -2);
    overflow-x: auto;
    padding-inline: calc((100vw - var(--container)) / 2);
    padding-block-end: 10px;
    scroll-snap-type: x mandatory;
  }

  .screen-card {
    min-width: min(70vw, 280px);
    scroll-snap-align: start;
  }

  .screen-card-rise {
    margin-block-start: 0;
  }

  .card-grid {
    gap: 14px;
  }

  .feature-card {
    min-height: auto;
  }

  .card-number {
    margin-block-end: 28px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 32px, 1120px);
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 3.25rem;
  }

  .nav {
    min-height: 62px;
  }

  .button-small {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .page-home .hero-actions .text-link {
    width: auto;
    text-align: start;
  }

  .hero-actions .store-badges {
    align-self: flex-start;
  }

  .section-pad {
    padding-block: 64px;
  }

  .section-tight {
    padding-block: 48px;
  }

  .hero {
    padding-block-start: 44px;
  }

  .hero-mark {
    width: 44px;
    height: 44px;
    margin-block-end: 18px;
  }

  .phone-shell {
    width: min(100%, 280px);
  }

  .session-card {
    grid-template-columns: 1fr;
  }

  .rating {
    font-size: 2.25rem;
  }

  .reef-visual {
    min-height: 300px;
  }

  .beta-inner {
    padding: 32px 24px;
  }
}

/* Analytics consent banner. Shared by the landing and beta pages —
   see assets/analytics.js. */
.consent-banner {
  position: fixed;
  z-index: 60;
  inset-block-end: 16px;
  inset-inline: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 720px;
  margin-inline: auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.consent-banner p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--secondary);
  font-size: var(--text-body);
  line-height: 1.45;
}

.consent-banner a {
  color: var(--ink);
  text-decoration: underline;
}

.consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-inline-start: auto;
}

.consent-decline {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 9px 14px 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.consent-accept {
  border: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .consent-banner {
    inset-block-end: 0;
    inset-inline: 0;
    border-radius: 0;
    border-inline: 0;
    border-block-end: 0;
  }

  .consent-banner-actions {
    width: 100%;
    margin-inline-start: 0;
  }

  .consent-decline,
  .consent-accept {
    flex: 1 1 auto;
  }
}

.page-home .nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-home .lang-switch {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.page-home {
  overflow-x: clip;
}

.page-home::before {
  display: none;
}

.page-home .button {
  min-height: 52px;
  border-radius: 999px;
  padding-inline: 22px;
  font-size: 1rem;
}

.page-home .button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.page-home h1 {
  max-width: 9em;
  font-size: clamp(2.7rem, 5.4vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.page-home h2 {
  max-width: 12em;
  font-size: clamp(2.15rem, 3.4vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.page-home .hero {
  overflow: visible;
  padding-block: 28px 72px;
}

.page-home .hero-mark {
  display: none;
}

.page-home .section-pad {
  padding-block: 96px;
}

.page-home .home-eyebrow {
  margin-block-end: 14px;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.page-home .spark {
  color: var(--accent);
}

.page-home .section-copy p,
.page-home .hero-subhead {
  max-width: 28rem;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.5;
}

.page-home .section-copy {
  max-width: none;
  margin-block-end: 0;
}

.page-home .home-band {
  background: rgba(251, 246, 236, 0.72);
}

.page-home .data-band {
  border-top: 1px solid var(--line);
}

.page-home .device-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.page-home .device {
  margin: 0;
}

.page-home .device-phone,
.page-home .hero .device-phone {
  width: min(100%, 340px);
}

.page-home .device-row:has(.device + .device) .device-phone {
  width: min(48%, 230px);
}

.page-home .device-row:has(.device + .device) .device:last-child {
  margin-block-start: 52px;
}

.page-home .device-bezel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 36px;
  background: var(--deep);
  box-shadow: 0 28px 60px rgba(11, 38, 51, 0.2);
  padding: 8px;
}

.page-home .device-bezel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.page-home .device:not(:has(img)) .device-bezel {
  aspect-ratio: 9 / 19.5;
}

.page-home .device-slot {
  margin: 0;
  padding-inline: 12px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.page-home .section-copy .plus-price {
  margin-block-end: 8px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-home .section-copy .plus-price-line {
  color: var(--accent-deep);
}

:is(.page-home, .page-plus) .table-wrap {
  margin-block-start: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 8px 8px 4px;
}

:is(.page-home, .page-plus) .plus-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

:is(.page-home, .page-plus) .plus-table caption {
  margin-block-end: 8px;
  padding: 12px 12px 4px;
  caption-side: top;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

:is(.page-home, .page-plus) .plus-table th,
:is(.page-home, .page-plus) .plus-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  text-align: left;
  vertical-align: top;
}

:is(.page-home, .page-plus) .plus-table thead th {
  color: var(--ink);
  font-weight: 600;
}

:is(.page-home, .page-plus) .plus-table thead th:last-child {
  color: var(--accent-deep);
}

:is(.page-home, .page-plus) .plus-table th[scope="row"] {
  width: 46%;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  :is(.page-home, .page-plus) .plus-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  :is(.page-home, .page-plus) .plus-table,
  :is(.page-home, .page-plus) .plus-table tbody,
  :is(.page-home, .page-plus) .plus-table tr,
  :is(.page-home, .page-plus) .plus-table th,
  :is(.page-home, .page-plus) .plus-table td {
    display: block;
    width: auto;
  }

  :is(.page-home, .page-plus) .plus-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
  }

  :is(.page-home, .page-plus) .plus-table th[scope="row"] {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
  }

  :is(.page-home, .page-plus) .plus-table td {
    padding: 0;
    border: 0;
  }

  :is(.page-home, .page-plus) .plus-table td::before {
    content: attr(data-col);
    display: block;
    margin-block-end: 2px;
    color: var(--secondary);
    font-size: 0.8125rem;
    font-weight: 600;
  }

  :is(.page-home, .page-plus) .plus-table td[data-col="Plus"]::before {
    color: var(--accent-deep);
  }
}

@media (max-width: 980px) {
  .page-home .hero-grid,
  .page-home section > .container:has(.device-row),
  .page-home section > .container:has(.device + .device) {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-home .section-pad {
    padding-block: 72px;
  }

  .page-home .device-phone,
  .page-home .hero .device-phone {
    width: min(100%, 280px);
  }

  .page-home .device-row:has(.device + .device) .device-phone {
    width: min(46%, 148px);
  }

  .page-home .device-row:has(.device + .device) .device:last-child {
    margin-block-start: 22px;
  }
}

@media (max-width: 560px) {
  .page-home .nav {
    gap: 10px;
  }

  .page-home .wordmark {
    font-size: 1.4rem;
  }

  .page-home .nav-actions {
    gap: 8px;
  }

  .page-home .lang-switch {
    font-size: 0.8125rem;
  }

  .page-home .button-small {
    padding-inline: 10px;
  }

  .page-home h1 {
    font-size: 2.45rem;
  }

  .page-home h2 {
    font-size: 2rem;
  }

  .page-home .section-pad {
    padding-block: 64px;
  }

  .page-home .hero {
    padding-block: 20px 48px;
  }

  .page-home .device-phone,
  .page-home .hero .device-phone {
    width: min(100%, 260px);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.legal-doc .legal-kicker {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.legal-doc h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
}

.legal-doc h2 {
  margin-block: 2rem 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: none;
}

.legal-doc p,
.legal-doc li {
  max-width: 65ch;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.legal-doc .legal-updated {
  max-width: 65ch;
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.45;
  opacity: 1;
}

.legal-doc a {
  font-weight: 600;
}

.legal-doc ul {
  margin-block: 0.25rem 0;
}

.legal-doc .faq dt {
  margin-block-start: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.legal-doc .faq dd {
  max-width: 65ch;
  margin-block-start: 0.25rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .page-legal .nav {
    gap: 10px;
  }

  .page-legal .wordmark {
    font-size: 1.4rem;
  }

  .page-legal .nav-actions {
    gap: 8px;
  }

  .page-legal .lang-switch {
    font-size: 0.8125rem;
  }

  .page-legal .button-small {
    padding-inline: 10px;
  }

  .legal {
    padding-block: 40px 64px;
  }
}

.guide-index {
  display: grid;
  gap: 1.35rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-doc .guide-index h2 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.legal-doc .guide-index p {
  margin: 0;
}

.plus-stage {
  position: relative;
  padding: 28px 16px 56px;
  background: var(--deep);
  overflow: hidden;
}

.plus-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 62%;
}

.plus-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 38, 51, 0.18);
}

.plus-card {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  margin-inline: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(11, 38, 51, 0.28);
  padding: 28px 22px 22px;
}

.plus-pitch {
  text-align: center;
}

.plus-pitch h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.plus-deck {
  max-width: 26ch;
  margin: 14px auto 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.plus-price-line {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.plus-trial {
  margin-block-start: 22px;
  border: 1px solid rgba(18, 54, 71, 0.12);
  border-radius: 16px;
  padding: 16px 16px 4px;
  text-align: left;
}

.plus-trial-label {
  margin: 0 0 12px;
  color: var(--tertiary);
  font-size: 0.92rem;
  font-weight: 500;
}

.plus-trial ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plus-trial li {
  position: relative;
  margin: 0;
  padding: 0 0 16px 28px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
}

.plus-trial li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.plus-trial li:first-child::before {
  background: var(--accent);
}

.plus-trial li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 2px;
  left: 7px;
  width: 2px;
  background: rgba(237, 106, 69, 0.4);
}

.page-plus .plus-cta {
  width: 100%;
  min-height: 54px;
  margin-block-start: 18px;
  border-radius: 999px;
  font-size: 1.05rem;
}

.plus-cancel,
.plus-alt {
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.plus-alt {
  color: var(--tertiary);
}

.plus-includes {
  margin: 28px 0 4px;
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.plus-perks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plus-perks li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-block: 12px;
}

.plus-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  background: var(--paper);
}

.plus-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.plus-mark .mark-ink {
  fill: var(--ink);
  stroke: none;
}

.plus-mark .mark-fill {
  fill: var(--accent);
  stroke: none;
}

.plus-mark .mark-strong {
  stroke: var(--accent);
}

.plus-perks h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.plus-perks p {
  margin: 2px 0 0;
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.plus-free {
  margin: 8px 0 0;
  border-top: 1px solid rgba(18, 54, 71, 0.1);
  padding-block-start: 16px;
  color: var(--secondary);
  font-size: 0.95rem;
  text-align: center;
}

.plus-free a {
  color: var(--ink);
  font-weight: 600;
}

.plus-rest {
  padding-block: 48px 72px;
}

.page-plus .table-wrap {
  margin-block-start: 0;
}

.page-book h1 {
  max-width: 16em;
  font-size: clamp(2.1rem, 5vw, 2.75rem);
}

.page-book h2,
.page-book h3 {
  max-width: none;
  margin-block: 1.75rem 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.book {
  padding-block: 36px 72px;
}

.book-article > p,
.book-list p,
.book-faq dd {
  max-width: 65ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin-block-end: 18px;
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.book-kicker {
  margin-block: -8px 16px;
  color: var(--secondary);
  font-weight: 600;
}

.spot-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0 0 18px;
}

.spot-facts div {
  min-width: 7rem;
}

.spot-facts dt {
  color: var(--tertiary);
  font-size: 0.78rem;
  font-weight: 600;
}

.spot-facts dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.book-list,
.book-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-list li + li,
.book-links li + li {
  margin-block-start: 0.85rem;
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.book-links li + li {
  margin-block-start: 0;
}

.book-list a,
.book-links a,
.page-book h2 a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.book-list p {
  margin: 2px 0 0;
  color: var(--secondary);
}

.book-faq dt {
  margin-block-start: 0.9rem;
  font-weight: 700;
}

.book-faq dd {
  margin: 2px 0 0;
}

.book-count {
  color: var(--tertiary);
  font-weight: 600;
}

.book-app {
  margin-block-start: 1.5rem;
}

.book-footer {
  display: grid;
  gap: 28px;
}

.book-brand p {
  max-width: 24ch;
}

.book-cols {
  display: grid;
  gap: 22px 28px;
}

.book-cols nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.book-label {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 700;
}

.book-cols a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

.book-more,
.book-cols a:hover {
  color: var(--ink);
}

.book-footer .store-badges {
  margin-block-start: 14px;
}

@media (min-width: 880px) {
  .book-cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .plus-stage {
    padding: 48px 28px 72px;
  }

  .plus-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 64px;
    align-items: start;
    padding: 52px 52px 28px;
  }

  .plus-includes {
    margin-block-start: 6px;
  }

  .plus-free {
    grid-column: 1 / -1;
    margin-block-start: 20px;
  }
}

/* ---- Home, 2026-11-14: full-bleed hero (Komoot), one idea per section
   (Opal), the reef as a collection, the spot book as cards (AllTrails). ---- */
.hx h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.hx p {
  text-wrap: pretty;
}

.hx-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.hx-tag {
  border-radius: 999px;
  background: var(--deep);
  color: var(--light);
  padding: 3px 10px 4px;
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.hx-tag .spark,
.hx-plus .hx-eyebrow .spark {
  color: var(--accent);
}

.hx-more {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.hx-more::after {
  content: " →";
}

/* Hero */
.hx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 12vw, 136px) 0 0;
  background: var(--deep);
  color: var(--light);
  text-align: center;
}

.hx-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 32%;
}

@media (max-width: 720px) {
  .hx-hero-photo {
    object-position: 50% 30%;
  }
}

.hx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 38, 51, 0.46) 0%, rgba(11, 38, 51, 0.66) 55%, var(--deep) 100%);
}

.hx-hero-copy {
  display: grid;
  justify-items: center;
}

.hx-hero .hx-eyebrow {
  color: #f6b39f;
}

.hx-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}

.hx-sub {
  max-width: 36ch;
  margin: 22px 0 0;
  color: rgba(243, 238, 229, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.45;
}

.hx-actions {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 32px;
}

.hx-actions .store-badges {
  justify-content: center;
}

.hx-hero-phone {
  display: flex;
  justify-content: center;
  height: clamp(300px, 46vw, 470px);
  margin-top: clamp(48px, 7vw, 72px);
  overflow: hidden;
}

.hx-hero-phone .device-phone {
  width: min(78vw, 340px) !important;
}

.hx-hero-phone .device-bezel {
  border-radius: 40px 40px 0 0 !important;
  padding-bottom: 0 !important;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.35) !important;
}

.hx-hero-phone .device-bezel img {
  border-radius: 32px 32px 0 0 !important;
}

/* Features */
.hx-feature {
  padding: clamp(64px, 10vw, 120px) 0;
}

.hx-feature:nth-of-type(odd) {
  background: var(--surface);
}

.hx-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 40px clamp(40px, 8vw, 120px);
}

.hx-flip .hx-copy {
  order: 2;
}

.hx-copy > p:not(.hx-eyebrow) {
  max-width: 44ch;
  margin: 20px 0 0;
  color: var(--secondary);
  font-size: 1.125rem;
  line-height: 1.55;
}

.hx-copy a:not(.button) {
  color: var(--ink);
  font-weight: 700;
}

.hx-visual {
  display: flex;
  justify-content: center;
}

.hx-visual .device-phone {
  width: min(100%, 320px) !important;
}

/* Spot book cards */
.hx-spots {
  padding: clamp(64px, 10vw, 112px) 0;
  overflow: hidden;
}

.hx-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hx-head-center {
  justify-content: center;
  text-align: center;
}

.hx-head-center .hx-eyebrow {
  justify-content: center;
}

.hx-head-center p:not(.hx-eyebrow) {
  max-width: 46ch;
  margin: 18px auto 0;
  color: rgba(243, 238, 229, 0.78);
  font-size: 1.1rem;
  line-height: 1.5;
}

.hx-spot-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0 0 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  scrollbar-width: thin;
}

.hx-spot-row > li {
  scroll-snap-align: start;
}

.hx-spot {
  display: grid;
  gap: 6px;
  height: 100%;
  min-height: 220px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  padding: 22px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hx-spot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hx-spot-where {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.hx-spot-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hx-spot-break {
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.hx-spot-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hx-spot-facts span {
  display: grid;
  gap: 2px;
}

.hx-spot-facts small {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.hx-spot-facts b {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Reef */
.hx-reef {
  padding: clamp(72px, 11vw, 128px) 0;
  background: var(--deep);
  color: var(--light);
}

.hx-reef .hx-eyebrow {
  color: #f6b39f;
}

.hx-reef-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.hx-reef-grid li {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.hx-reef-grid img {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
}

.hx-reef-name {
  font-weight: 700;
}

.hx-reef-how {
  max-width: 18ch;
  color: rgba(243, 238, 229, 0.7);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Plus */
.hx-plus {
  padding: clamp(72px, 11vw, 128px) 0;
  background: #071c26;
  color: var(--light);
}

.hx-plus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
  gap: 48px clamp(40px, 8vw, 120px);
}

.hx-plus .hx-eyebrow {
  color: var(--light);
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 800;
}

.hx-plus .hx-copy > p:not(.hx-eyebrow) {
  color: rgba(243, 238, 229, 0.8);
}

.hx-plus .hx-price {
  color: var(--light) !important;
  font-family: var(--font-mono);
  font-size: 1rem !important;
  font-weight: 600;
}

.hx-plus-cta {
  margin-top: 28px;
  border-color: var(--light);
  background: var(--light);
  color: var(--ink);
}

.hx-plus-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--deep);
}

.hx-perks {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-perks li {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hx-perks .plus-mark {
  flex: none;
  background: rgba(243, 238, 229, 0.08);
}

.hx-perks .plus-mark svg {
  stroke: var(--light);
}

.hx-perks .plus-mark .mark-ink {
  fill: var(--light);
}

.hx-perks h3 {
  margin: 0;
  font-size: 1.1rem;
}

.hx-perks p {
  margin: 2px 0 0;
  color: rgba(243, 238, 229, 0.72);
}

.hx-split {
  margin-top: 56px;
  border-top: 1px solid rgba(243, 238, 229, 0.16);
  padding-top: 20px;
}

.hx-split summary {
  cursor: pointer;
  font-weight: 700;
}

.hx-split .table-wrap {
  margin-top: 20px;
  border-radius: 16px;
  background: var(--light);
  color: var(--ink);
}

/* Data */
.hx-data {
  padding: clamp(56px, 8vw, 96px) 0;
}

.hx-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 24px 64px;
}

.hx-data ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

.hx-data .hx-more {
  grid-column: 2;
}

@media (max-width: 820px) {
  .hx-feature-grid,
  .hx-plus-grid,
  .hx-data-grid {
    grid-template-columns: 1fr;
  }

  .hx-flip .hx-copy {
    order: 0;
  }

  .hx-data .hx-more {
    grid-column: auto;
  }

  .hx-visual .device-phone {
    width: min(80%, 300px) !important;
  }

  .hx-spot-row {
    grid-auto-columns: 78%;
  }
}

@media (max-width: 980px) {
  .hx-reef-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hx-reef-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 10px;
  }

  .hx-reef-grid img {
    width: 76px;
    height: 76px;
  }

  .hx-reef-how {
    font-size: 0.8rem;
  }
}

/* ---- Home visuals, 2026-11-17: the crew's own photos behind each phone,
   two photo bands, and the log's language (mono chips) on top. ---- */
.hx-feature {
  overflow: clip;
}

@media (min-width: 821px) {
  .hx-feature-grid:has(.hx-visual-photo) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  }
}

.hx-visual-photo {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
}

.hx-flip .hx-visual-photo {
  justify-content: flex-start;
}

.hx-visual-photo .device-phone {
  width: min(58%, 290px) !important;
}

.hx-backdrop {
  position: absolute;
  z-index: -1;
  top: 9%;
  bottom: 9%;
  left: 0;
  width: 74%;
  margin: 0;
}

.hx-flip .hx-backdrop {
  right: 0;
  left: auto;
}

.hx-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.hx-backdrop .hx-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  max-width: min(160px, 40%);
  border-radius: 14px;
  background: var(--light);
  color: var(--ink);
  padding: 7px 12px;
  box-shadow: 0 8px 24px rgba(11, 38, 51, 0.22);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.hx-flip .hx-backdrop .hx-chip {
  right: 16px;
  left: auto;
}

.hx-modes,
.hx-rel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hx-modes li {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 16px;
}

.hx-modes b {
  display: flex;
  align-items: center;
  height: 28px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
}

.hx-modes svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.hx-modes span {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.hx-rel li {
  display: grid;
  gap: 2px;
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--deep);
}

.hx-rel li:nth-child(1) { background: var(--accent); }
.hx-rel li:nth-child(2) { background: rgba(237, 106, 69, 0.5); }
.hx-rel li:nth-child(3) { background: rgba(237, 106, 69, 0.2); }

.hx-rel span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.hx-rel b {
  font-size: 1rem;
}

/* Photo bands */
.hx-band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(380px, 52vw, 600px);
  overflow: hidden;
  background: var(--deep);
  color: var(--light);
}

.hx-band-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 38, 51, 0) 10%, rgba(11, 38, 51, 0.5) 50%, rgba(11, 38, 51, 0.88) 100%);
}

.hx-band-copy {
  padding-block: clamp(40px, 7vw, 80px);
}

.hx-band .hx-band-line {
  max-width: 20ch;
  margin: 0;
  color: var(--light);
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hx-band .hx-band-meta {
  margin: 16px 0 0;
  color: rgba(243, 238, 229, 0.82);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 820px) {
  .hx-visual-photo .device-phone {
    width: min(58%, 270px) !important;
  }

  .hx-backdrop .hx-chip {
    font-size: 0.72rem;
  }
}

/* ---- Spot book, 2026-11-15: a map, the place, and the conditions locked in
   the app. The values are not in the HTML, only their names. ---- */
.page-book .book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: 28px 48px;
  margin-block-end: 36px;
}

.page-book .book-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.page-book .book-hero .book-kicker {
  margin: 0 0 10px;
}

.book-kind {
  margin: 12px 0 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.book-lead {
  max-width: 52ch;
  margin: 16px 0 0;
  color: var(--secondary);
  font-size: 1.15rem;
  line-height: 1.5;
}

.book-map {
  position: relative;
  margin: 0;
}

.book-map svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(18, 54, 71, 0.08);
}

.book-map figcaption {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: var(--secondary);
  font-size: 0.7rem;
}

.map-sea {
  fill: #dbe7ea;
}

.map-land {
  fill: var(--surface);
  stroke: #c9d6da;
  stroke-width: 2;
  stroke-linejoin: round;
}

.map-dot {
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 4;
}

.book-map a:hover .map-dot {
  fill: var(--accent);
}

.map-label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.map-pin path {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 4;
}

.map-pin .map-halo {
  fill: var(--accent);
  opacity: 0.2;
}

.map-pin-eye {
  fill: #fff;
}

.book-locked {
  border-radius: 28px;
  background: var(--deep);
  color: var(--light);
  padding: clamp(24px, 4vw, 40px);
}

.page-book .book-locked h2 {
  margin: 0 0 20px;
  color: var(--light);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.book-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.book-tiles li {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  background: rgba(243, 238, 229, 0.07);
  padding: 16px;
}

.book-tile-label {
  color: rgba(243, 238, 229, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
}

.book-tile-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.book-tile-blur {
  width: 72%;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(243, 238, 229, 0.55), rgba(243, 238, 229, 0.15));
  filter: blur(5px);
}

.book-tile-value {
  color: #f6b39f;
  font-size: 0.9rem;
}

.book-locked .book-cta > p:first-child,
.book-sticky p {
  color: var(--light);
}

.page-book .book-locked .book-cta-note {
  color: rgba(243, 238, 229, 0.72);
}

.book-locked .book-open {
  color: var(--light);
}

.lock {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.book-cta {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.book-cta > p:first-child {
  max-width: 46ch;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
}

.page-book main > article > .book-cta,
.page-book .book-article > .book-cta {
  margin-block: 8px 28px;
  border-radius: 24px;
  background: var(--surface);
  padding: 24px;
}

.book-open {
  color: inherit;
  font-weight: 700;
}

.book-cta-note {
  margin: 0;
  color: rgba(243, 238, 229, 0.66);
  font-size: 0.9rem;
}

.book-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-cards a {
  display: grid;
  gap: 4px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  padding: 16px 18px;
  text-decoration: none;
}

.book-cards a:hover {
  border-color: var(--ink);
}

.book-card-where {
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.book-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.book-card-kind {
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.book-hazards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-hazards li {
  border-radius: 999px;
  background: var(--surface);
  padding: 6px 12px;
  font-weight: 600;
}

.book-countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.book-country-card {
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.book-country-card .book-map {
  margin-bottom: 10px;
}

.book-country-card .book-map figcaption {
  display: none;
}

.book-country details {
  margin-top: 8px;
}

.book-country summary {
  cursor: pointer;
  color: var(--secondary);
  font-weight: 600;
}

.book-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--light);
  padding: 10px 10px 10px 22px;
  box-shadow: 0 16px 40px rgba(11, 38, 51, 0.3);
}

.book-sticky p {
  margin: 0;
  font-weight: 700;
}

.book-sticky .button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--deep);
}

@media (max-width: 820px) {
  .page-book .book-hero {
    grid-template-columns: 1fr;
  }
}

/* Guides index */
.guides-cta {
  border-radius: 24px;
  background: var(--deep);
  color: var(--light);
  padding: 24px;
}

.guides-cta p {
  color: var(--light);
}

.guide-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px 24px;
}

/* A fixed column for the mark, and every card starts at the top: titles line up across a row. */
.guide-topics li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding-block: 0;
}

.guide-topics .plus-mark {
  height: 44px;
}

.guide-topics h3 {
  margin: 0 !important;
  font-size: 1.05rem;
}

.guide-topics p {
  margin: 2px 0 0;
  color: var(--secondary);
}

.guide-places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-place h3 {
  margin: 12px 0 0 !important;
  font-size: 1.2rem;
}

.guide-place p {
  margin: 4px 0 8px;
  color: var(--secondary);
}

.guide-place .book-map figcaption {
  display: none;
}

/* Trip guides (drafts show their slots) */
.guide-slot {
  display: inline-block;
  margin: 10px 0 0;
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  color: var(--accent-deep);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.guide-nomap {
  display: grid;
  place-items: center;
  aspect-ratio: 1000 / 620;
  border-radius: 24px;
  background: #dbe7ea;
}

.guide-part {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* Desktop sheet for the "get the app" buttons */
.get-app-sheet {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  border: 0;
  border-radius: 24px;
  background: var(--light);
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 30px 80px rgba(11, 38, 51, 0.35);
}

.get-app-sheet::backdrop {
  background: rgba(11, 38, 51, 0.45);
}

.get-app-sheet p {
  margin: 0 0 14px;
  color: var(--secondary);
}

.get-app-sheet .get-app-title {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.get-app-close {
  margin-top: 18px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.get-app-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.get-app-qr img {
  flex: none;
  border-radius: 12px;
}

.get-app-qr p {
  margin: 0;
}

/* Footer, 2026-11-15, after Komoot: a closing band, then the links on dark. */
footer.footer {
  border-top: 0;
  padding-block: 0 28px;
  background: var(--deep);
  color: var(--light);
}

.foot-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 112px) 0;
  background: var(--accent);
  color: var(--deep);
  text-align: center;
}

.foot-cta-inner {
  display: grid;
  justify-items: center;
}

.foot-mark {
  width: 84px;
  height: 54px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--deep);
  stroke-width: 7;
  stroke-linecap: round;
}

.foot-mark circle {
  fill: var(--deep);
  stroke: none;
}

.footer .foot-cta-title {
  max-width: 16ch;
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.footer .foot-cta-sub {
  margin: 18px 0 0;
  color: var(--deep);
  font-size: 1.15rem;
  font-weight: 600;
}

.foot-get {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.foot-get .store-badges {
  margin: 0 !important;
}

.foot-qr {
  display: block;
  box-sizing: content-box;
  width: 80px;
  height: 80px;
  padding: 8px;
  border-radius: 14px;
  background: var(--paper);
}

@media (hover: none), (max-width: 700px) {
  .foot-qr {
    display: none;
  }
}

.footer .book-footer {
  padding-top: 56px;
}

.footer .wordmark,
.footer .book-label {
  color: var(--light);
}

.footer .wordmark .brand-mark {
  stroke: var(--accent);
}

.footer .book-brand p,
.footer .book-cols a {
  color: rgba(243, 238, 229, 0.7);
}

.footer .book-cols a:hover,
.footer .book-more {
  color: var(--light);
}

.footer .book-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (min-width: 680px) and (max-width: 879px) {
  .book-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(243, 238, 229, 0.14);
  padding-top: 20px;
}

.footer .foot-bottom p {
  margin: 0;
  color: rgba(243, 238, 229, 0.55);
  font-size: 0.85rem;
}

/* Home hero search, after AllTrails */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hx-search {
  position: relative;
  width: min(100%, 520px);
  margin-top: 28px;
}

.hx-search > svg {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--secondary);
  stroke-width: 1.9;
  stroke-linecap: round;
}

.hx-search input {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--light);
  color: var(--ink);
  padding: 0 22px 0 52px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hx-search input::placeholder {
  color: var(--secondary);
}

.hx-search input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.hx-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 20px;
  background: var(--light);
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.hx-results a {
  display: grid;
  gap: 2px;
  border-radius: 12px;
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
}

.hx-results a:hover,
.hx-results a:focus-visible {
  background: rgba(18, 54, 71, 0.07);
}

.hx-results span,
.hx-note {
  color: var(--secondary);
  font-size: 0.88rem;
}

.hx-note {
  padding: 6px 14px;
  font-weight: 700;
}

.hx-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(243, 238, 229, 0.35);
  border-radius: 999px;
  background: rgba(11, 38, 51, 0.35);
  color: var(--light);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hx-chip:hover {
  background: rgba(11, 38, 51, 0.6);
}

.hx-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* QR and badges beside each home feature, after AllTrails */
.hx-get {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hx-get .store-badges {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.hx-qr {
  display: block;
}

/* Over the hero photo the code needs its own light ground. */
.hx-hero-qr {
  box-sizing: content-box;
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 14px;
  background: var(--paper);
}

@media (hover: none), (max-width: 700px) {
  .hx-qr {
    display: none;
  }

  .hx-get .store-badges {
    display: flex;
  }
}

/* ---- Language menu, in the footer: the current flag opens both languages, upward. ---- */
.flag {
  display: block;
  flex: none;
  width: 21px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(18, 54, 71, 0.14);
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(243, 238, 229, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--light);
  padding: 6px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  anchor-name: --lang-button;
}

.lang-button:hover {
  border-color: var(--light);
}

.lang-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-caret {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transform: rotate(180deg);
}

.lang-list {
  position: fixed;
  inset: auto auto 1rem 1rem;
  inset-block-end: anchor(--lang-button top);
  inset-inline-start: anchor(--lang-button left);
  min-inline-size: 180px;
  margin: 0 0 0.5rem;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  list-style: none;
}

/* On a phone the button sits at the right edge: the list hangs from its right side. */
@media (max-width: 720px) {
  .lang-list {
    inset-inline: auto 1rem;
    inset-inline-end: anchor(--lang-button right);
  }
}

.footer .lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer .lang-list a:hover {
  background: rgba(18, 54, 71, 0.06);
}

.footer .lang-list a[aria-current] {
  font-weight: 800;
}

.lang-list a[aria-current]::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
}

.foot-bottom {
  align-items: center;
}

/* Explore block in the footer, after Komoot: radio tabs, every link in the HTML */
.explore {
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--light);
  color: var(--ink);
}

.footer .explore-title {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.explore-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.explore-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.explore-tabs label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

.explore-tabs input:checked + label {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--light);
}

.explore-tabs input:focus-visible + label {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.explore-panel {
  display: none;
}

.explore:has(#explore-spots:checked) [data-tab="spots"],
.explore:has(#explore-coasts:checked) [data-tab="coasts"],
.explore:has(#explore-countries:checked) [data-tab="countries"],
.explore:has(#explore-guides:checked) [data-tab="guides"] {
  display: block;
}

.explore-panel ul {
  columns: 4 150px;
  column-gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explore-panel li {
  break-inside: avoid;
  padding: 5px 0;
}

.explore-panel a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.explore-panel a:hover {
  text-decoration: underline;
}

.footer .explore-panel span {
  color: var(--secondary);
  font-size: 0.85rem;
}

.footer .explore .book-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
}

/* QR beside the store badges in the home hero (desktop only, via .hx-qr) */
.hx-hero-get {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hx-hero-get .store-badges {
  display: grid;
  gap: 8px;
}

@media (hover: none), (max-width: 700px) {
  .hx-hero-get .store-badges {
    display: flex;
  }
}

/* The pixel mascot: 12-frame strips of 48 px art stored at 6x, played at 12 fps.
   Shown at 48 or 96 px so every art pixel lands on whole screen pixels. */
.mascot {
  --s: 96px;
  position: relative;
  display: block;
  width: var(--s);
  height: var(--s);
}

.mascot i {
  position: absolute;
  inset: 0;
  background: 0 0 / calc(var(--s) * 12) var(--s) no-repeat;
  image-rendering: pixelated;
  animation: mascot-run 1s steps(12) infinite;
}

.mascot .m-idle { background-image: url("/assets/mascot/mascot-idle.png"); }
.mascot .m-talk { background-image: url("/assets/mascot/mascot-talking.png"); }
.mascot .m-shaka { background-image: url("/assets/mascot/mascot-shaka.png"); }

/* Hero: one shaka, then it rests. */
.mascot-hero .m-idle {
  opacity: 0;
  animation: mascot-run 1s steps(12) infinite, mascot-show 0s 1.6s forwards;
}

.mascot-hero .m-shaka {
  animation: mascot-run 1s steps(12) 0.6s 1 both, mascot-hide 0s 1.6s forwards;
}

@keyframes mascot-run {
  to { background-position-x: calc(var(--s) * -12); }
}

@keyframes mascot-show { to { opacity: 1; } }
@keyframes mascot-hide { to { opacity: 0; } }

.hx-hero-phone .device-phone {
  position: relative;
}

.mascot-hero {
  position: absolute;
  top: -78px;
  left: 28px;
  z-index: 1;
  pointer-events: none;
}

.mascot-ask {
  --s: 96px;
  margin: 0 0 8px -12px;
}

@media (max-width: 700px) {
  .mascot-hero {
    left: 16px;
  }

  .mascot-ask {
    --s: 48px;
    margin-left: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot i,
  .mascot-hero .m-idle {
    animation: none;
  }

  /* Hold the shaka with the hand out. */
  .mascot-hero .m-idle { opacity: 0; }
  .mascot-hero .m-shaka { animation: none; background-position-x: calc(var(--s) * -3); }
}

.mascot-gone {
  margin: 32px 0 8px -12px;
}

/* Download-first. html[data-os] is set in <head> (home, 404) or by nav.js:
   a phone sees its own store only, a computer keeps both badges and the QR. */
html[data-os="ios"] .store-badge[class*="store-badge-play"],
html[data-os="android"] .store-badge-apple,
html[data-os="ios"] .hx-qr,
html[data-os="android"] .hx-qr,
html[data-os="ios"] .foot-qr,
html[data-os="android"] .foot-qr {
  display: none;
}

/* The burger: the button keeps "Menu" for screen readers and draws three lines. */
.site-header .menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border-radius: 12px;
  background:
    linear-gradient(currentColor, currentColor) center calc(50% - 6px) / 20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center calc(50% + 6px) / 20px 2px no-repeat;
}

.site-header .menu-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header .menu-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Narrow header: logo, then the download button, then the burger on the right. */
.site-header:not(.is-wide) .site-nav {
  order: 3;
}

.site-header:not(.is-wide) .nav-actions {
  margin-left: auto;
}

/* App banner on top of the page (Android, and iPhone browsers without Apple's). */
.app-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 8px;
  background: var(--deep);
  color: var(--light);
}

.app-banner-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(243, 238, 229, 0.7);
  cursor: pointer;
}

.app-banner-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.app-banner-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.app-banner-text {
  display: grid;
  flex: 1;
  min-width: 0;
  margin: 0;
  color: rgba(243, 238, 229, 0.78);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.app-banner-text b {
  color: var(--light);
  font-family: var(--font-brand);
  font-size: 1rem;
}

.app-banner-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-banner-get {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--light);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}

@media (min-width: 880px) {
  .app-banner { display: none; }
}

/* 404: flat. The mascot at rest on a flat line, then home and the download. */
.lost {
  display: grid;
  min-height: calc(100dvh - 69px);
  align-content: center;
  padding: 48px 0 72px;
  overflow: hidden;
}

.lost-sea {
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
}

.lost-mascot {
  margin-bottom: -6px;
}

.lost-flat {
  display: block;
  width: min(320px, 70vw);
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.35;
}

.lost-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.lost-code {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
}

.lost h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  letter-spacing: var(--ls-hero);
}

.lost-sub {
  max-width: 32ch;
  margin: 12px 0 28px;
  font-size: var(--text-body-l);
}

.lost-get {
  justify-content: center;
}


/* Corail Plus lockup, as in the app (PlusLockup): "corail" in Funnel Display 800,
   the trailing dot turned into a coral ✦. No wave mark. */
.plus-lockup {
  display: inline-flex;
  align-items: baseline;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.plus-lockup-word {
  display: inline-block;
  transform: scaleY(1.04);
}

.plus-lockup-spark {
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.04em;
  fill: var(--accent);
  transform: translateY(-0.02em);
}

/* "Read the conditions" articles (scripts/articles.mjs). */
.guide-article-head {
  margin-bottom: 28px;
}

.guide-article > ul,
.guide-article > ol {
  display: grid;
  gap: 8px;
  max-width: 68ch;
  margin: 0 0 20px;
  padding-left: 1.25rem;
  color: var(--secondary);
}

.guide-article > ul strong,
.guide-article > ol strong {
  color: var(--ink);
}

.article-table td,
.article-table th {
  vertical-align: top;
  text-align: left;
}

.guide-topics h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

/* Blog: signed by Corail, the pixel mascot. */
.blog-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: var(--text-body);
}

.blog-byline > span:last-child {
  display: grid;
}

.blog-byline b {
  color: var(--ink);
}

.blog-mascot {
  --s: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.blog-hero {
  margin-bottom: 28px;
}

.blog-hero-mascot {
  --s: 96px;
  margin: 0 0 8px -12px;
}

.blog-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-card a {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

.blog-card a:hover {
  border-color: var(--accent);
}

.blog-card a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.blog-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.375rem;
  letter-spacing: var(--ls-title);
}

.blog-card p {
  margin: 0;
}

.blog-card-meta {
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.04em;
}

@media (min-width: 760px) {
  .blog-list { grid-template-columns: 1fr 1fr; }
}

/* Guide series: the steps of "Read a forecast". */
.series-nav {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.series-nav .book-label {
  margin: 0 0 8px;
}

.series-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding-left: 1.1rem;
}

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

.series-nav [aria-current] {
  color: var(--accent-deep);
  font-weight: 700;
}

.series-next {
  margin: 8px 0 28px;
}

/* Glossary. */
.gloss-index {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
}

.gloss-index a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
}

.gloss-letter h2 {
  margin: 28px 0 8px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
}

.gloss-letter dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.gloss-entry {
  max-width: 68ch;
  scroll-margin-top: 5.5rem;
}

.gloss-entry dt {
  color: var(--ink);
  font-weight: 700;
}

.gloss-entry dd {
  margin: 2px 0 0;
  color: var(--secondary);
}

.gloss-entry:target dt {
  color: var(--accent-deep);
}

.blog-card-kind {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.blog-more {
  margin-top: 24px;
}

.guide-article > .blog-list {
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 14px;
}

.series-nav {
  max-width: 68ch;
}

/* Article images: the cover, app screenshots, diagrams. */
.article-cover {
  max-width: 760px;
  margin: 0 0 28px;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--deep);
}

.article-shot {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 68ch;
  margin: 8px 0 28px;
}

.article-shot img {
  width: min(250px, 68vw);
  height: auto;
  border: 6px solid var(--deep);
  border-radius: 34px;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.article-shot figcaption,
.article-diagram figcaption {
  max-width: 46ch;
  color: var(--tertiary);
  font-size: var(--text-body);
  text-align: center;
}

.article-diagram {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 68ch;
  margin: 8px 0 28px;
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.article-diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dg-label { fill: var(--ink); font: 700 15px var(--font-display); }
.dg-note { fill: var(--secondary); font: 500 13px var(--font-display); }
.dg-small { fill: var(--tertiary); font: 500 12px var(--font-mono); }
.dg-wave { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dg-wave.dg-fill { fill: rgba(18, 54, 71, 0.08); }
.dg-gap { fill: none; stroke: var(--accent); stroke-width: 2; }
.dg-land { fill: #e3d3b8; }
.dg-spray { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0.6; }
.dg-arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.dg-arrow-head { fill: var(--accent); }
.dg-axis { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.dg-tide-big { fill: none; stroke: var(--accent); stroke-width: 3; }
.dg-tide-small { fill: none; stroke: var(--ink); stroke-width: 2.5; opacity: 0.55; }
.dg-key-big { fill: var(--accent); }
.dg-key-small { fill: var(--ink); opacity: 0.55; }
.dg-sea { fill: #dbe7ea; }
.dg-foam { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.dg-board { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.dg-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.7; }
.dg-flow-head { fill: var(--accent); opacity: 0.7; }
.dg-zone { fill: #fff; fill-opacity: 0.55; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 6; }
.dg-pict { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dg-dot { fill: var(--ink); }

.blog-card a {
  overflow: hidden;
}

.blog-card-img {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  height: auto;
  aspect-ratio: 2 / 1;
  margin: -20px -22px 8px;
  object-fit: cover;
}

.article-diagram figcaption,
.article-shot figcaption {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.article-diagram > svg {
  max-width: 460px;
}

.dg-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  width: 100%;
}

.dg-pair svg {
  width: min(100%, 320px);
}

.dg-label { font-size: 17px; }
.dg-note { font-size: 14px; }
.dg-small { font-size: 13px; }

/* Guides and blog: one centred reading column on desktop. */
.book-article.guide-article {
  width: min(760px, calc(100vw - 48px));
}

.book-article.guide-article:has(.blog-list) {
  width: min(1000px, calc(100vw - 48px));
}

.guide-article > p,
.guide-article > ul,
.guide-article > ol,
.guide-article .article-diagram,
.guide-article .article-shot,
.guide-article .series-nav,
.guide-article .gloss-entry {
  max-width: none;
}

.article-table th[scope="row"] {
  width: 10.5em;
}

.article-table th[scope="row"] a {
  overflow-wrap: anywhere;
}

.site-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 5px;
  vertical-align: -4px;
}

/* A site's own logo, set beside the paragraph that names it. */
.site-note {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-note p {
  flex: 1;
  margin: 0;
}

.site-logo {
  flex: none;
  width: min(132px, 30vw);
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .article-table th[scope="row"] {
    width: 6.5em;
  }

  .article-table .site-icon {
    display: block;
    margin: 0 0 4px;
  }
}

/* ---- How it works: why keep a session, then three steps. ---- */
.how-why {
  padding: clamp(64px, 10vw, 120px) 0;
}

.how-why-inner {
  max-width: 760px;
}

.how-why h2 {
  margin-bottom: 28px;
}

.how-why p {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.how-why p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.page-how .hx-feature:nth-of-type(odd) {
  background: none;
}

.page-how .hx-feature:nth-of-type(even) {
  background: var(--surface);
}

/* The slider sits under the site header here, so it gives the header its room back. */
.page-how .before-after-hero,
.page-how .ba-stage {
  min-height: calc(100dvh - 60px);
}

@media (min-width: 721px) {
  .page-how .ba-copy {
    inset-block-start: 36px;
  }
}

@media (max-width: 720px) {
  /* Room for the header and the install banner, so the button stays on the first screen. */
  .page-how .before-after-hero,
  .page-how .ba-stage {
    min-height: calc(100svh - 126px);
  }
}

/* ---- Free and Plus, side by side: marks instead of yes and no, the Plus column lit. ---- */
.plus-support {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.plus-support h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.plus-support p {
  margin: 0;
  color: var(--secondary);
  font-size: 1.125rem;
  line-height: 1.5;
}

:is(.page-home, .page-plus) .table-wrap:has(.plus-compare) {
  padding: 12px 12px 12px 20px;
}

:is(.page-home, .page-plus) .plus-compare {
  border-collapse: separate;
  border-spacing: 0;
}

:is(.page-home, .page-plus) .plus-compare th,
:is(.page-home, .page-plus) .plus-compare td {
  vertical-align: middle;
}

:is(.page-home, .page-plus) .plus-compare tbody tr:last-child > * {
  border-bottom: 0;
}

:is(.page-home, .page-plus) .plus-compare th[scope="row"] {
  width: 44%;
  padding-left: 0;
}

:is(.page-home, .page-plus) .plus-compare thead th {
  border-bottom: 0;
  padding-block: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

:is(.page-home, .page-plus) .plus-compare td {
  width: 28%;
  color: var(--secondary);
  font-size: 0.95rem;
}

/* The Plus column: one tinted panel from the heading to the last row. */
:is(.page-home, .page-plus) .plus-compare :is(thead th, td):last-child {
  background: rgba(237, 106, 69, 0.09);
  color: var(--ink);
  font-weight: 600;
  padding-inline: 18px;
}

:is(.page-home, .page-plus) .plus-compare tbody td:last-child {
  border-bottom-color: rgba(237, 106, 69, 0.16);
}

:is(.page-home, .page-plus) .plus-compare thead th:last-child {
  border-radius: 14px 14px 0 0;
  color: var(--accent-deep);
}

:is(.page-home, .page-plus) .plus-compare thead th:last-child::after {
  content: " ✦";
  color: var(--accent);
}

:is(.page-home, .page-plus) .plus-compare tbody tr:last-child td:last-child {
  border-radius: 0 0 14px 14px;
}

/* Yes and no stay in the text for screen readers; the eye gets a mark. */
.plus-compare td[data-v] {
  font-size: 0;
}

.plus-compare td[data-v]::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.6' fill='none' stroke='%23f6eee2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.plus-compare td[data-v="yes"]:last-child::after {
  background-color: var(--accent);
}

.plus-compare td[data-v="no"]::after {
  background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat;
  border-radius: 0;
  opacity: 0.45;
}

@media (max-width: 720px) {
  :is(.page-home, .page-plus) .table-wrap:has(.plus-compare) {
    padding: 8px 14px 4px;
  }

  :is(.page-home, .page-plus) .plus-compare tr {
    align-items: stretch;
  }

  :is(.page-home, .page-plus) .plus-compare th[scope="row"] {
    width: auto;
  }

  :is(.page-home, .page-plus) .plus-compare caption {
    display: block;
    padding-inline: 0;
  }

  :is(.page-home, .page-plus) .plus-compare tbody tr:last-child {
    border-bottom: 0;
  }

  :is(.page-home, .page-plus) .plus-compare td,
  :is(.page-home, .page-plus) .plus-compare td:last-child {
    width: auto;
    border-radius: 12px;
    padding: 10px 12px;
  }

  :is(.page-home, .page-plus) .plus-compare td:first-of-type {
    background: rgba(18, 54, 71, 0.04);
  }

  :is(.page-home, .page-plus) .plus-compare tbody tr:last-child td:last-child {
    border-radius: 12px;
  }

  .plus-compare td[data-v]::before {
    font-size: 0.8125rem;
  }
}
