/* Thermocline website. One stylesheet for every page. */

:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-2: #edf3f9;
  --text: #0b1a2b;
  --text-2: #42566b;
  --text-3: #6b7d90;
  --line: #dbe5ee;
  --accent: #0a6fd6;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0fd;
  --warm: #ff9f4a;
  --warm-2: #ffc27a;
  --cyan: #4fd1ff;
  --deep: #031628;
  --deep-2: #072a4a;
  --on-deep: #eef6ff;
  --on-deep-2: #a9c3dd;
  --glass: rgba(10, 34, 60, .55);
  --glass-line: rgba(160, 210, 255, .22);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(4, 34, 63, .06), 0 10px 30px rgba(4, 34, 63, .09);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06111c;
    --surface: #0c1b2b;
    --surface-2: #10243a;
    --text: #e8f1fa;
    --text-2: #b0c2d4;
    --text-3: #8297ab;
    --line: #1b3149;
    --accent: #4aa3ff;
    --accent-ink: #03182c;
    --accent-soft: #0f2f4e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 780; }
h3 { font-size: 1.14rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header: clear over the hero photo, frosted once it sits over content */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(3, 22, 40, .62);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-deep); text-decoration: none; font-weight: 750; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--on-deep-2); text-decoration: none; font-size: .94rem; font-weight: 520; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 9px 16px; font-size: .9rem; color: var(--accent-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 680; font-size: 1rem; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.btn.glow {
  background: linear-gradient(135deg, #2d8cff, #0a6fd6 55%, #0757b0);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 30px rgba(45, 140, 255, .45);
}
.btn.glow:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 14px 40px rgba(45, 140, 255, .6); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn.warm { background: linear-gradient(135deg, var(--warm-2), var(--warm)); color: #2a1300; box-shadow: 0 10px 30px rgba(255, 159, 74, .35); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero: a wreck photo, light rays, rising bubbles ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--on-deep);
  min-height: min(94vh, 900px);
  display: flex; align-items: center;
  padding: 110px 0 200px;
  margin-top: -62px; /* slide under the sticky header */
  background: var(--deep);
}
.hero-bg {
  position: absolute; inset: -4%; z-index: -3;
  background: url("images/wreck-hatch.jpg") center 40% / cover no-repeat;
  animation: drift 32s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 22, 40, .92) 0%, rgba(3, 22, 40, .72) 38%, rgba(3, 22, 40, .25) 70%, rgba(3, 22, 40, .35) 100%),
    linear-gradient(180deg, rgba(3, 22, 40, .35) 0%, rgba(3, 22, 40, 0) 30%, rgba(3, 22, 40, .55) 75%, var(--deep) 100%);
}
@media (max-width: 820px) {
  .hero-shade { background: linear-gradient(180deg, rgba(3, 22, 40, .55) 0%, rgba(3, 22, 40, .78) 45%, rgba(3, 22, 40, .92) 80%, var(--deep) 100%); }
}
.rays {
  position: absolute; inset: -20% -10% 30% -10%; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background:
    linear-gradient(100deg, transparent 20%, rgba(150, 220, 255, .16) 24%, transparent 30%),
    linear-gradient(108deg, transparent 40%, rgba(150, 220, 255, .12) 44%, transparent 49%),
    linear-gradient(95deg, transparent 58%, rgba(150, 220, 255, .10) 61%, transparent 66%);
  animation: sway 14s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute; bottom: -30px; display: block;
  width: var(--s, 8px); height: var(--s, 8px); border-radius: 50%;
  left: var(--x, 50%);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(190, 230, 255, .25) 45%, rgba(190, 230, 255, .05) 70%);
  border: 1px solid rgba(220, 240, 255, .35);
  animation: rise var(--d, 12s) linear infinite;
  animation-delay: var(--t, 0s);
  opacity: 0;
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes sway { from { transform: rotate(-2deg) translateX(-2%); } to { transform: rotate(2deg) translateX(2%); } }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate3d(14px, -48vh, 0); }
  90% { opacity: .7; }
  100% { transform: translate3d(-8px, -100vh, 0); opacity: 0; }
}

.hero .wrap { width: 100%; }
.hero-copy { max-width: 660px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ffe1c2; background: rgba(255, 159, 74, .16); border: 1px solid rgba(255, 159, 74, .45);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 159, 74, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 159, 74, 0); } }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.grad {
  background: linear-gradient(90deg, var(--warm-2) 0%, #ffd9a8 30%, var(--cyan) 70%, #9be6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: #d3e3f3; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
.fineprint { font-size: .88rem; color: var(--on-deep-2); }
.fineprint a { color: #fff; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.platforms span {
  font-size: .82rem; font-weight: 600; color: #d6e8fa; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}

/* The chart floats up out of the hero */
.showcase { position: relative; z-index: 2; margin-top: -150px; }
.chart-card {
  max-width: 1040px; margin: 0 auto; padding: 14px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(120, 200, 255, .35), rgba(255, 159, 74, .25));
  box-shadow: 0 30px 80px rgba(3, 22, 40, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
.chart-card .inner { background: #fff; border-radius: 16px; padding: 14px 14px 10px; overflow: hidden; }
.chart-card img { border-radius: 8px; }
.chart-card figcaption { text-align: center; font-size: .9rem; color: var(--text-3); padding: 14px 8px 2px; }
@media (max-width: 600px) { .showcase { margin-top: -120px; } .chart-card { padding: 8px; border-radius: 18px; } .chart-card .inner { padding: 6px; } }

/* ---------- Live profile chart (profile-demo.js) ---------- */
.demo {
  --d-card: #ffffff; --d-fill: rgba(120, 120, 128, .10); --d-text: #000; --d-sec: rgba(60, 60, 67, .62); --d-grid: rgba(60, 60, 67, .13);
  --d-blue: #007aff; --d-orange: #ff9500; --d-teal: #30b0c7; --d-purple: #af52de;
  --d-tank: #34c759; --d-use: #5856d6; --d-temp: #30b0c7; --d-ppo2: #ff2d55; --d-asc: #8e8e93; --d-yellow: #ffcc00; --d-red: #ff3b30;
  color: var(--d-text);
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  .demo {
    --d-card: #1c1c1e; --d-fill: rgba(120, 120, 128, .24); --d-text: #fff; --d-sec: rgba(235, 235, 245, .6); --d-grid: rgba(235, 235, 245, .13);
    --d-blue: #0a84ff; --d-orange: #ff9f0a; --d-teal: #40c8e0; --d-tank: #30d158; --d-use: #7d7aff; --d-temp: #40c8e0; --d-ppo2: #ff375f; --d-asc: #98989d; --d-yellow: #ffd60a; --d-red: #ff453a;
  }
  .chart-card .inner { background: #1c1c1e; }
}
.demo .fallback { display: block; }
.demo.live .fallback { display: none; }
.demo svg { display: block; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.demo svg:focus-visible { outline: 2px solid var(--d-blue); outline-offset: 2px; border-radius: 4px; }
.demo svg text { fill: var(--d-sec); font-size: 10.5px; font-family: inherit; }
.d-head { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; padding: 6px 4px 12px; }
.d-title b { display: block; font-size: 1.15rem; letter-spacing: -0.01em; }
.d-title span { font-size: .82rem; color: var(--d-sec); }
.d-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.d-seg { display: inline-flex; background: var(--d-fill); border-radius: 10px; padding: 2px; flex: none; }
.d-seg button { border: 0; background: transparent; color: var(--d-text); font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.d-seg button.on { background: var(--d-card); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); font-weight: 650; }
.d-seg button:focus-visible, .d-chip:focus-visible { outline: 2px solid var(--d-blue); outline-offset: 1px; }
.d-readout { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 8px 6px 10px; min-height: 52px; }
.d-kv i { font-style: normal; font-size: 11.5px; color: var(--d-sec); display: flex; align-items: center; gap: 5px; }
.d-kv b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-chart { position: relative; }
.d-hint {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); pointer-events: none;
  background: rgba(3, 22, 40, .78); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  display: flex; gap: 8px; align-items: center; white-space: nowrap; transition: opacity .4s ease; animation: nudge 1.8s ease-in-out infinite;
}
.d-hint.gone { opacity: 0; animation: none; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(calc(-50% + 10px), -50%); } }
.d-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--d-sec); padding: 4px 6px 0; }
.d-legend span { display: inline-flex; align-items: center; gap: 5px; }
.d-note { margin-left: auto; font-size: 12px; color: var(--d-sec); }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px 4px; align-items: center; }
.d-lbl { font-size: 12px; color: var(--d-sec); margin-left: 4px; }
.d-chip { border: 1px solid var(--d-grid); background: transparent; color: var(--d-text); font: inherit; font-size: 14px; padding: 6px 13px 6px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s ease; }
.d-chip.on { background: var(--d-fill); border-color: transparent; font-weight: 650; }
.d-chip:not(.on) .d-dot { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--d-sec); }
.d-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.d-strip { margin-top: 12px; }
.d-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; padding: 0 4px; gap: 8px; }
.d-name { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.d-sum { color: var(--d-sec); font-variant-numeric: tabular-nums; }
.d-about { font-size: .88rem; color: var(--d-sec); margin: 12px 6px 4px; }
@media (prefers-reduced-motion: reduce) { .d-hint { animation: none; } }

/* Apple-only banner */
.apple-only {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  padding: 10px 16px 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: .95rem;
}
.apple-only svg { width: 26px; height: 26px; flex: none; }
.apple-only b { font-weight: 750; }
.apple-only span { color: #cfe0f1; }

/* Numbers band */
.stats { padding: 56px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat strong { display: block; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), #12b5d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-2); font-size: .95rem; }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.kicker { font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* ---------- Testers wanted (dark, with a wreck behind) ---------- */
.testers { position: relative; isolation: isolate; color: var(--on-deep); background: var(--deep); overflow: hidden; }
.testers::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("images/wreck-deck.jpg") center 40% / cover no-repeat;
}
.testers::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 22, 40, .55), rgba(3, 22, 40, 0) 60%),
    linear-gradient(180deg, var(--deep) 0%, rgba(3, 22, 40, .6) 22%, rgba(3, 22, 40, .66) 60%, rgba(3, 22, 40, .92) 100%);
}
.testers .kicker { color: var(--warm-2); }
.testers h2 { color: #fff; }
.testers .section-head p { color: var(--on-deep-2); }
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr; } }
.track {
  position: relative; border-radius: var(--radius); padding: 28px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.track:hover { transform: translateY(-4px); border-color: rgba(160, 210, 255, .45); }
.track.hot { border-color: rgba(255, 159, 74, .6); box-shadow: 0 0 0 1px rgba(255, 159, 74, .25), 0 20px 50px rgba(255, 159, 74, .14); }
.tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(79, 209, 255, .14); color: #aeeaff; border: 1px solid rgba(79, 209, 255, .35);
}
.track.hot .tag { background: rgba(255, 159, 74, .18); color: #ffd3a6; border-color: rgba(255, 159, 74, .5); }
.track h3 { color: #fff; font-size: 1.3rem; }
.track p { color: var(--on-deep-2); font-size: .98rem; }
.track ul { margin: 0 0 18px; padding-left: 1.1em; color: #cfe0f1; font-size: .95rem; }
.track li { margin-bottom: 4px; }
.track .ask { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--glass-line); font-size: .92rem; color: #dbe9f7; }
.track .ask strong { color: #fff; }

.join-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
@media (max-width: 820px) { .join-cards { grid-template-columns: 1fr; } }
.join {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-radius: var(--radius); padding: 22px 24px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line);
}
.join h3 { margin: 0 0 4px; color: #fff; }
.join p { margin: 0; color: var(--on-deep-2); font-size: .93rem; }
.join .btn { white-space: nowrap; }
@media (max-width: 480px) { .join { flex-direction: column; align-items: flex-start; } }
.steps-line { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; color: #cfe0f1; font-size: .95rem; }
.steps-line b {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: .8rem; font-weight: 750; margin-right: 8px;
}
.subhead { max-width: 700px; margin: 72px 0 28px; }
.subhead h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 760; letter-spacing: -0.02em; }
.subhead p { color: #d0e1f2; margin: 0; }
.tracks .hot { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px 40px; align-items: start; }
.tracks .hot .ask { margin-top: 18px; }
.models { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.models li {
  padding: 10px 14px; border-radius: 12px; font-size: .95rem; color: #eaf3fc;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line);
}
@media (max-width: 760px) { .tracks .hot { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--warm), var(--cyan)); opacity: 0; transition: opacity .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(4, 34, 63, .06), 0 18px 40px rgba(4, 34, 63, .14); }
.feature:hover::before { opacity: 1; }
.feature p { color: var(--text-2); margin: 0; font-size: .98rem; }
.ficon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  color: #fff; background: linear-gradient(135deg, #2d8cff, #12b5d8);
  box-shadow: 0 8px 18px rgba(18, 140, 230, .3);
}
.ficon svg { width: 23px; height: 23px; }
.also { margin-top: 44px; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { font-size: .9rem; padding: 7px 13px; border-radius: 999px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line); }

/* ---------- Principles over a full-bleed wreck ---------- */
.principles { position: relative; isolation: isolate; color: var(--on-deep); padding: 140px 0; overflow: hidden; background: var(--deep); }
.principles::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("images/wreck-bow.jpg") center 30% / cover no-repeat;
}
.principles::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3, 22, 40, .55), rgba(3, 22, 40, .72) 50%, rgba(3, 22, 40, .9));
}
.principles .kicker { color: var(--warm-2); }
.principles h2 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); }
.principles .section-head p { color: #d0e1f2; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .pgrid { grid-template-columns: 1fr; } }
.pgrid > div {
  padding: 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pgrid h3 { color: #fff; }
.pgrid p { color: #c8dbee; margin: 0; }
.pnum { font-size: .8rem; font-weight: 800; color: var(--warm-2); letter-spacing: .1em; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
@media (min-width: 1000px) {
  .faq-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 100px; margin-bottom: 0; }
  .faq-grid .faq details:first-child { padding-top: 0; }
}
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 680; font-size: 1.07rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* ---------- Closing call to action ---------- */
.closing { position: relative; isolation: isolate; text-align: center; color: var(--on-deep); padding: 130px 0; overflow: hidden; background: var(--deep); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("images/wreck-deck.jpg") center 60% / cover no-repeat; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at center, rgba(3, 22, 40, .82), rgba(3, 22, 40, .6) 70%, rgba(3, 22, 40, .85)); }
.closing h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.closing p { color: #d0e1f2; max-width: 560px; margin-left: auto; margin-right: auto; font-size: 1.12rem; }
.closing .cta-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding: 48px 0 56px; font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.site-footer a { color: var(--on-deep); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer p { margin: 0 0 6px; max-width: 660px; }

/* Short screens (a phone held sideways, a small laptop window): keep the buttons in view */
@media (max-height: 560px) and (min-width: 560px) {
  .hero { min-height: 0; padding: 92px 0 170px; }
  .hero h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
  .eyebrow { margin-bottom: 14px; }
  .lede { font-size: 1.02rem; }
  .cta-row { margin: 18px 0 10px; }
  .apple-only { margin-top: 12px; }
}

/* Touch screens: bigger tap targets in the chart */
@media (pointer: coarse) {
  .d-seg button { min-height: 40px; padding: 8px 13px; }
  .d-chip { min-height: 40px; padding: 8px 15px 8px 12px; }
  .faq summary { padding: 4px 0; }
}

/* Scroll reveal (only when JS has marked the page; without JS everything shows) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .rays, .bubbles span, .eyebrow .dot { animation: none !important; }
  .bubbles { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature, .track { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Plain document pages (privacy, support) ---------- */
.doc-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 120px 0 56px; margin-top: -62px; background: var(--deep); }
.doc-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--photo, url("images/wreck-bow.jpg")) center 35% / cover no-repeat; }
.doc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 22, 40, .6), rgba(3, 22, 40, .88)); }
.doc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); color: #fff; margin-bottom: .3em; }
.doc-hero p { color: #d0e1f2; margin: 0; max-width: 40em; }
.doc { max-width: 780px; padding: 48px 24px 96px; margin: 0 auto; }
@media (max-width: 600px) { .doc { padding: 36px 16px 64px; } }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 680; }
.doc td { color: var(--text-2); }
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; }
  .doc thead { display: none; }
  .doc td:first-child { font-weight: 680; color: var(--text); border-bottom: 0; padding-bottom: 0; }
}
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 14px; padding: 18px 20px; margin: 4px 0 20px; }
.callout p { margin: 0; color: var(--text); }

/* ---------- Guide and troubleshooting: contents rail, platform panels ---------- */
.doc-layout { max-width: 1120px; margin: 0 auto; padding: 48px 24px 96px; }
.doc-layout .doc { padding: 0; margin: 0; max-width: 760px; }
@media (min-width: 1000px) {
  .doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: 92px; }
}
@media (max-width: 600px) { .doc-layout { padding: 32px 16px 64px; } }
.toc { font-size: .93rem; margin-bottom: 32px; }
.toc p { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, var(--text-2)); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 999px) {
  .toc { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; }
  .toc ol { border-left: 0; columns: 2; column-gap: 24px; }
  .toc a { padding: 5px 0; margin: 0; border: 0; }
}
@media (max-width: 480px) { .toc ol { columns: 1; } }
.doc h2 { scroll-margin-top: 84px; }
.doc h3 { font-size: 1.08rem; margin: 1.6em 0 .4em; }
.doc ol { padding-left: 1.3em; }
.path { font-weight: 640; color: var(--text); }
.plat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 12px 0 18px; }
@media (max-width: 640px) { .plat { grid-template-columns: 1fr; } }
.plat > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.plat h4 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.plat p, .plat ol, .plat ul { margin: 0; font-size: .96rem; }
.plat li { margin-bottom: .3em; }
.note { font-size: .94rem; background: var(--surface-2); border-radius: 12px; padding: 12px 16px; }
.doc .faq { max-width: none; }
.doc .faq details:first-of-type { border-top: 1px solid var(--line); }
.doc .faq details > :not(summary) { margin-top: 12px; }
.doc .faq details ul, .doc .faq details ol { margin-bottom: 0; }

/* ---------- Guide screenshots ---------- */
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 24px 0 28px; }
.shot { margin: 0; flex: 0 1 230px; text-align: center; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line, rgba(0,0,0,.12)); box-shadow: 0 6px 24px rgba(4,34,63,.14); background: #fff; }
.shot.part { flex-basis: 380px; }
.shot.part img { border-radius: 14px; }
.shot.wide { flex-basis: 100%; }
.shot.wide img { border-radius: 10px; }
.shot figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.4; opacity: .8; }
@media (max-width: 480px) { .shot { flex-basis: 78%; } .shot.part, .shot.wide { flex-basis: 100%; } }

/* ---------- Home: see the app, guide links ---------- */
@media (max-width: 760px) { .nav a.keep { display: inline; } .nav { gap: 16px; } }
.hero-links { margin-top: 22px; font-size: .95rem; color: var(--on-deep-2); }
.hero-links a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.hero-links a:hover { text-decoration-color: #fff; }
.app-tour { padding-bottom: 40px; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.phone, .mac-shot { margin: 0; }
.phone img, .mac-shot img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(4,34,63,.18); }
.phone img { border-radius: 26px; }
.mac-shot { margin-top: 40px; }
.mac-shot img { border-radius: 12px; }
.phone figcaption, .mac-shot figcaption { margin-top: 14px; font-size: .95rem; line-height: 1.45; color: var(--text-2); }
.phone figcaption b, .mac-shot figcaption b { display: block; color: var(--text); font-size: 1rem; }
.mac-shot figcaption b { display: inline; margin-right: 6px; }
.help-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.help-card { display: block; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.help-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.help-card .tag { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.help-card h3 { margin: 8px 0 6px; }
.help-card p { color: var(--text-2); margin: 0 0 14px; }
.help-card .go { font-weight: 650; color: var(--accent); }
@media (max-width: 900px) {
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -24px; padding: 4px 24px 16px; }
  .phone { flex: 0 0 min(62%, 260px); scroll-snap-align: center; }
}
@media (max-width: 600px) { .phones { margin: 0 -16px; padding: 4px 16px 16px; } .help-cards { grid-template-columns: 1fr; } }

/* ---------- Beta buttons in the logo's colours: cold blue for iPhone & iPad, warm for Mac ---------- */
.btn.cold {
  background: linear-gradient(135deg, #c4ecff, #7fd0f5 50%, #45ade3);
  color: #04223f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 30px rgba(127, 208, 245, .35);
}
.btn.cold:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 14px 40px rgba(127, 208, 245, .5); }
.btn.mac {
  background: linear-gradient(135deg, #ffe6c6, #ffd9a8 45%, #ffb26b);
  color: #2a1300;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 30px rgba(255, 178, 107, .35);
}
.btn.mac:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 14px 40px rgba(255, 178, 107, .5); }

/* ---------- Wordmark: as on the app's splash screen. Warm above, cold below, split sharply. ---------- */
.wordmark {
  font-family: "Saira Semi Condensed", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600; letter-spacing: 0;
  background: linear-gradient(to bottom, #ffd9a8 0 52%, #7fd0f5 52% 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.brand .wordmark { font-size: 1.4rem; line-height: 1; }
.join { flex-direction: column; align-items: flex-start; }
.join .btn { margin-top: 4px; }
/* Headline: every line runs warm to cold, however the headline wraps. */
.grad.lines { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nav .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand .wordmark { font-size: 1.22rem; }
  .nav { gap: 12px; }
  .nav .btn { padding: 8px 13px; font-size: .86rem; }
}

/* ---------- White headings get the headline's warm-to-cold gradient ---------- */
.testers h2, .track h3, .join h3, .subhead h3, .principles h2, .pgrid h3, .closing h2, .doc-hero h1 {
  background: linear-gradient(90deg, var(--warm-2) 0%, #ffd9a8 30%, var(--cyan) 70%, #9be6ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  width: fit-content; max-width: 100%;
}
.closing h2 { margin-left: auto; margin-right: auto; }

/* ---------- Share button in the header (phones: icon only) ---------- */
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--on-deep);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.share-btn svg { width: 17px; height: 17px; flex: none; }
.share-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }
.share-btn:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
@media (max-width: 760px) {
  .share-btn { width: 38px; padding: 0; justify-content: center; }
  .share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.share-note {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: #04223f; color: #fff;
  font-size: .95rem; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.share-note.show { opacity: 1; transform: translate(-50%, 0); }

/* Phone header with the share button: tighter spacing; on the narrowest phones the
   header Guide link gives way (the hero's "Read the guide" link stays). */
@media (max-width: 420px) {
  .brand .wordmark { font-size: 1.14rem; }
  .nav { gap: 8px; }
  .nav .btn { padding: 8px 10px; }
  .share-btn { width: 34px; height: 34px; }
}
@media (max-width: 369px) { .nav a.keep { display: none; } }
