/* getlidless.com
   One stylesheet for every page. No scripts, no web fonts, no cookies.
   Colours come from the app itself: the eye mark's steel blue on deep ink,
   and the web client's light and dark tokens. */

:root {
  --bg: #f3f4f6;
  --bg-2: #e8ecf0;
  --surface: #ffffff;
  --raised: #eceef1;
  --line: #d3d8de;
  --line-soft: #e1e5ea;
  --text: #151a1f;
  --muted: #56616c;
  --accent: #1b6a8b;
  --accent-hover: #155874;
  --accent-ink: #ffffff;
  --accent-soft: rgba(27, 106, 139, 0.1);
  --good: #1f7a4d;
  --glow: rgba(27, 106, 139, 0.2);
  --shadow-device: 0 40px 70px -30px rgba(20, 34, 48, 0.45), 0 14px 28px -12px rgba(20, 34, 48, 0.25);
  --ink: #0f1317;
  --ink-2: #171c22;
  --ink-line: #2a333c;
  --ink-text: #e9ecef;
  --ink-muted: #9ba6b1;
  --ink-accent: #6fb1d1;
  --steel: #3d6f8a;
  --iris: #e6f4fb;
  --radius: 10px;
  --radius-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1317;
    --bg-2: #13181d;
    --surface: #171c22;
    --raised: #222931;
    --line: #2f3842;
    --line-soft: #232a32;
    --text: #e9ecef;
    --muted: #9ba6b1;
    --accent: #6fb1d1;
    --accent-hover: #8cc4de;
    --accent-ink: #08151c;
    --accent-soft: rgba(111, 177, 209, 0.13);
    --good: #7fcaa2;
    --glow: rgba(106, 169, 201, 0.26);
    --shadow-device: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 14px 28px -12px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

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

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--accent-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

kbd, .menu-item {
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }

/* The nav is the flex child, so the auto margin goes here and pushes
   the links and the call to action to the right. */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Small screens: a menu that needs no JavaScript. */
.menu { display: none; position: relative; }
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before {
  /* three lines, drawn with borders */
  content: "";
  width: 14px;
  height: 10px;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.menu[open] summary { background: var(--accent-soft); border-color: transparent; }
.menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(15, 25, 35, 0.35);
}
.menu li a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.menu li a:hover, .menu li a[aria-current="page"] { background: var(--accent-soft); }
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

.header-cta {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.header-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* ---------- Buttons and badges ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px var(--accent);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: var(--accent-ink); }
.button:active { transform: translateY(1px); }
.button svg { width: 20px; height: 20px; flex: none; }

.soon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 16px 5px 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  line-height: 1.2;
}
.soon svg { width: 24px; height: 24px; flex: none; opacity: 0.8; }
.soon strong { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.soon span { font-size: 13px; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  isolation: isolate;
}

.hero::before {
  /* the iris glow from the app icon, sitting behind the devices */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -12% 0 36%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 36rem; }

.hero h1 {
  font-size: clamp(42px, 8.4vw, 80px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.lede {
  margin: 22px 0 32px;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.5;
}

.hero-note {
  margin: 14px 0 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: 14px;
}
.hero .soon-row { margin-top: 22px; }

/* The stage holds three real screenshots in drawn device frames.
   Everything inside is sized in cqw so the group scales as one picture. */
.stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.96;
}

.device {
  position: absolute;
  margin: 0;
  background: linear-gradient(150deg, #4a525c 0%, #1d2126 22%, #0c0e11 60%, #23282e 100%);
  box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device img {
  width: 100%;
  background: #0f1317;
}

.device.ipad {
  left: 30%;
  top: 0;
  width: 54%;
  padding: 10px;
  padding: 1.7cqw;
  border-radius: 28px;
  border-radius: 4.6cqw;
}
.device.ipad img { border-radius: 18px; border-radius: 3cqw; }

.device.iphone {
  left: 4%;
  top: 30%;
  width: 29%;
  padding: 6px;
  padding: 1.05cqw;
  border-radius: 40px;
  border-radius: 6.2cqw;
}
.device.iphone img { border-radius: 34px; border-radius: 5.2cqw; }
.device.iphone::after {
  /* Dynamic Island: simulator screenshots leave it out */
  content: "";
  position: absolute;
  left: 50%;
  top: 2.1%;
  width: 30%;
  aspect-ratio: 3.4;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.device.fold {
  left: 68%;
  top: 46%;
  width: 30%;
  padding: 6px;
  padding: 1.05cqw;
  border-radius: 30px;
  border-radius: 4.8cqw;
}
.device.fold img { border-radius: 24px; border-radius: 3.9cqw; }

@media (prefers-reduced-motion: no-preference) {
  .device { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .device.ipad { animation-delay: 0.05s; }
  .device.iphone { animation-delay: 0.22s; }
  .device.fold { animation-delay: 0.38s; }
  .hero::before { animation: fade 1.6s ease-out both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Screens that only exist in light mode: take the glare off on a dark page. */
@media (prefers-color-scheme: dark) {
  img.light-only { filter: brightness(0.82) contrast(1.04); }
}

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

.section { padding: 88px 0; }
.section + .section { padding-top: 24px; }

.section-head { max-width: 40rem; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 720;
  letter-spacing: -0.028em;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 19px;
}

/* ---------- How it works ---------- */

.diagram {
  margin: 0 0 72px;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.diagram svg { width: 100%; height: auto; margin-inline: auto; }
.diagram .tall { display: none; max-width: 360px; }
.diagram figcaption {
  max-width: 44rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.dg-text { fill: var(--text); font: 600 15px var(--font); }
.dg-sub { fill: var(--muted); font: 400 13px var(--font); }
.dg-thing { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.dg-thing-soft { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.dg-path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.dg-path-alt { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 8; }
.dg-pill { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.dg-pill-dash { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg-lock { fill: var(--accent); }
.dg-lock-ink { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dg-lock-body { fill: var(--accent-ink); }
.dg-eye { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.dg-iris { fill: var(--accent); }

.connect {
  display: grid;
  gap: 48px;
  align-items: center;
}

.steps-title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 30px 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 19px var(--font-display);
}
.steps li:not(:last-child)::after {
  /* the thread between steps */
  content: "";
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(var(--accent-soft), transparent);
}
.steps h4 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.steps p { color: var(--muted); }
.steps p strong, .steps p .menu-item { color: var(--text); }

.tailscale-note {
  margin-top: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 15px;
}
.tailscale-note strong { color: var(--text); }

.match {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.06;
}
.match .device.iphone { left: 0; top: 0; width: 46%; padding: 1.5cqw; border-radius: 9cqw; }
.match .device.iphone img { border-radius: 7.6cqw; }
.match .device.iphone::after { top: 2.1%; }

/* A redrawn copy of the Mac's real alert (RelayMenu.swift): the title is the
   code, and neither button is the default, so Return can't approve. It sits
   beside the phone so the phone's Codes match button stays visible. */
.mac-dialog {
  position: absolute;
  left: 44%;
  top: 24%;
  width: 56%;
  padding: 6cqw 5cqw 5cqw;
  border-radius: 5cqw;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-device);
  text-align: center;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.mac-dialog svg { width: 11cqw; height: 11cqw; margin: 0 auto 3cqw; }
.mac-dialog .title {
  margin: 0 0 2cqw;
  font: 700 4.4cqw/1.25 var(--font-display);
}
.mac-dialog .title .digits {
  display: block;
  margin-top: 0.6cqw;
  font-size: 7.4cqw;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.mac-dialog .msg {
  margin: 0 0 2cqw;
  color: var(--muted);
  font-size: 3cqw;
  line-height: 1.35;
}
.mac-dialog .btns { display: flex; gap: 2cqw; margin-top: 3.4cqw; }
.mac-dialog .btns span {
  flex: 1;
  padding: 1.7cqw 0;
  border-radius: 1.8cqw;
  background: var(--raised);
  border: 1px solid var(--line-soft);
  font-size: 3.2cqw;
  font-weight: 600;
}
.match-caption {
  margin: 18px auto 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Screens gallery ---------- */

.gallery-band {
  background: var(--bg-2);
  padding: 88px 0 96px;
}
.gallery-band .section-head { margin-bottom: 56px; }

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 56px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { width: 200px; }
.gallery li.wide { width: 300px; }
.gallery li.ipad-item { width: 330px; }
.gallery li.cover { width: 230px; }

.gallery:focus-visible { outline-offset: 8px; border-radius: 14px; }
.swipe-hint { display: none; }

.shot { margin: 0; }
.frame {
  position: relative;
  padding: 6px;
  border-radius: 34px;
  background: linear-gradient(150deg, #4a525c 0%, #1d2126 22%, #0c0e11 60%, #23282e 100%);
  box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.frame img { width: 100%; border-radius: 28px; background: #0f1317; }
.frame.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.4%;
  width: 30%;
  aspect-ratio: 3.4;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.frame.tablet { padding: 9px; border-radius: 26px; }
.frame.tablet img { border-radius: 17px; }
.frame.foldable { border-radius: 26px; }
.frame.foldable img { border-radius: 20px; }

.shot figcaption {
  min-height: 7.6em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.shot figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 650;
}

.demo-note {
  margin: 56px auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.feature p { color: var(--muted); font-size: 16px; }

/* ---------- Privacy band (always night) ---------- */

.privacy-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--ink);
  color: var(--ink-text);
  isolation: isolate;
  --accent: #6fb1d1;
  --accent-hover: #8cc4de;
  --accent-ink: #08151c;
  --muted: var(--ink-muted);
  --text: var(--ink-text);
}
.privacy-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12%;
  top: 50%;
  width: 760px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 169, 201, 0.22), transparent 70%);
}

@media (prefers-color-scheme: dark) {
  .privacy-band {
    background: radial-gradient(120% 140% at 85% 0%, #142029 0%, #0a0d10 60%);
    border-block: 1px solid var(--line-soft);
  }
}

.privacy-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.privacy-mark { width: min(300px, 70%); margin-inline: auto; }

.privacy-band h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 720;
  letter-spacing: -0.028em;
  margin-bottom: 20px;
}
.privacy-band .intro { color: var(--ink-muted); font-size: 19px; max-width: 38rem; }

.ledger {
  display: grid;
  gap: 18px;
  margin: 32px 0;
}
.ledger div {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
}
.ledger h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink-text);
}
.ledger p { color: var(--ink-muted); font-size: 15px; }

.privacy-band a { color: var(--ink-accent); }
.privacy-band a:hover { color: #a9d4e8; }
.privacy-band :focus-visible { outline-color: var(--ink-accent); }

.text-link { font-weight: 600; }

/* ---------- Requirements ---------- */

.reqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.reqs div {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--line);
}
.reqs dt {
  margin-bottom: 6px;
  font-weight: 650;
  font-size: 18px;
}
.reqs dd { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Get Lidless ---------- */

.get {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.get-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.get-item.now { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-soft)); }
.get-item svg.platform {
  width: 34px;
  height: 34px;
  color: var(--text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.get-item h3 { font-size: 21px; font-weight: 680; letter-spacing: -0.015em; }
.get-item p { color: var(--muted); font-size: 16px; }
.get-item .button, .get-item .ghost { margin-top: auto; align-self: flex-start; }

.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.status.testing { background: var(--accent-soft); color: var(--accent); }
.status.live { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.status.live::before { opacity: 1; }

.fine { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 44rem; }

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

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand svg { width: 26px; height: 26px; }
.footer-line { margin: 8px 0 0; }

/* ---------- Documents: privacy, terms, support, 404 ---------- */

.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 46rem; }
.doc h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc .summary {
  margin: 0 0 40px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 17px;
}
.doc .summary p + p { margin-top: 0.8em; }
.doc h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 650;
}
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.doc li::marker { color: var(--muted); }
.doc a { overflow-wrap: anywhere; }
.doc code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--raised);
  font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.toc {
  margin: 0 0 40px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc h2 { margin: 0 0 10px; font-size: 16px; letter-spacing: 0; }
.toc ol { margin: 0; columns: 2 220px; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; }

.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th, .doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th { font-weight: 650; }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--text); }

.problem {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.problem h3 { margin: 0 0 8px; }
.problem p, .problem li { color: var(--muted); }
.problem p strong, .problem li strong { color: var(--text); }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.contact-card p { margin: 0; color: var(--muted); }
.contact-card strong { display: block; color: var(--text); font-size: 18px; }

.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.lost svg { width: 120px; height: 120px; margin: 0 auto 28px; }
.lost h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.03em; margin-bottom: 12px; }
.lost p { color: var(--muted); font-size: 18px; }
.lost .actions { justify-content: center; margin-top: 28px; }
.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.ghost:hover { background: var(--accent-soft); color: var(--text); }
.ghost { gap: 10px; justify-content: center; font-size: 17px; }
.ghost svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* ---------- Layout breakpoints ---------- */

@media (min-width: 720px) {
  .wrap { width: min(1160px, 100% - 64px); }
  .ledger { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; }
  .connect { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; }
  .privacy-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 72px; }
  .privacy-mark { width: 100%; max-width: 340px; }
  .split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
  .split .section-head { position: sticky; top: 100px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-header .wrap { gap: 12px; }
}

@media (max-width: 719px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .hero { padding: 36px 0 24px; }
  .hero + .section { padding-top: 48px; }
  .stage { aspect-ratio: 1 / 0.9; }
  .hero::before { inset: 38% -30% 0 -30%; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 17px; }
  .diagram { margin-bottom: 56px; padding: 20px 12px; }
  .diagram .wide { display: none; }
  .diagram .tall { display: block; }
  .gallery-band { padding: 64px 0 72px; }
  /* swipe through the screens on a phone */
  .gallery {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 8px 16px 28px;
    margin-inline: -16px;
    scrollbar-width: thin;
  }
  .gallery li { flex: none; width: 62vw; max-width: 230px; scroll-snap-align: start; }
  .gallery li.wide, .gallery li.ipad-item { width: 78vw; max-width: 320px; }
  .gallery li.cover { width: 70vw; max-width: 260px; }
  .swipe-hint { display: block; margin: 4px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
  .swipe-hint::after { content: " \2192"; }
  .get-item.now { order: -1; }
  .features { gap: 28px; }
  .feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .feature svg { grid-row: 1 / span 2; margin: 0; }
  .feature h3 { margin-top: 8px; }
  .privacy-band { padding: 72px 0; }
  .privacy-mark { width: 160px; margin: 0; }
  .reqs div { padding-right: 0; }
  .get-item { padding: 22px; }
  .actions .button, .actions .ghost { flex: 1 1 100%; justify-content: center; }
  .soon-row .soon { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .menu-item { white-space: normal; }
  .brand { font-size: 17px; }
  .soon-row .soon { flex-basis: 100%; }
  .steps li { padding-left: 54px; }
  .steps li::before { width: 38px; height: 38px; font-size: 17px; }
  .steps li:not(:last-child)::after { left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .hero::before, .privacy-band::before { display: none; }
  .privacy-band { background: none; color: #000; }
}
