/* Habit Guard website.
   A sibling of the Eye Tracker site: the same dark ground and system type, a strip of
   colour bars, and one signal colour. Here the bars are the four habit colours (nail
   biting, mustache, brows and hair, face touching, the same colours the app draws its
   zones in) and the signal is the app icon's teal, used only where something is
   selected, watched or primary.
   Text uses the visitor's own system face. No web fonts, nothing loaded from other
   sites. */

:root {
  color-scheme: dark;

  --nail: #f08c00;
  --mustache: #1c9be6;
  --hair: #9a5cf0;
  --touch: #3fb36b;
  --bars: linear-gradient(90deg,
    var(--nail) 0 25%, var(--mustache) 0 50%, var(--hair) 0 75%, var(--touch) 0 100%);

  --bg: #0f1012;
  --bg-band: #15161a;
  --surface: #1c1d22;
  --surface-hover: #23252b;
  --surface-sunken: #17181c;
  --border: #2c2e35;
  --border-strong: #3d4049;
  --control: #24262c;
  --control-hover: #2c2f36;
  --control-border: #3a3d46;
  --control-edge: #30333b;

  --text: #f4f4f5;
  --text-2: #b9bbc2;
  --text-3: #9a9ca4;

  /* The signal: selection, focus, the primary action */
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-press: #14b8a6;
  --accent-text: #2dd4bf;
  --accent-soft: #0f2623;
  --on-accent: #04201c;
  --on-accent-2: #063a33;

  --link: #4fdbec;
  --alarm: #e5484d;

  --ink: #050506;
  --on-ink: #ffffff;

  --canvas: #0a0b0d;
  --canvas-grid: #1b1d22;

  --yes: #3ccf4e;
  --no: #ff6a5f;
  --focus: #2dd4bf;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-raised: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.35);

  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "SF Pro Text", system-ui, Cantarell, Ubuntu, "Noto Sans", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "SF Pro Display", system-ui, Cantarell, Ubuntu, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.55, 0, 0, 1);
  --radius-control: 4px;
  --radius-card: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
}

.bars {
  display: block;
  height: 4px;
  background: var(--bars);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-color: var(--border-strong) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

h1 {
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0;
  text-wrap: pretty;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--control-border);
  border-bottom-color: var(--control-edge);
  border-radius: var(--radius-control);
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 167ms var(--ease), color 167ms var(--ease),
    border-color 167ms var(--ease);
}

.btn:hover {
  background: var(--control-hover);
  text-decoration: none;
}

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

.btn-accent {
  border-color: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.3);
  background: var(--accent);
  color: var(--on-accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-accent:active {
  background: var(--accent-press);
  color: var(--on-accent-2);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 14px;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease);
}

.topbar.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0 0 0 8px;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 167ms var(--ease), color 167ms var(--ease);
}

.nav-links a:hover {
  background: var(--control-hover);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--surface-sunken);
}

.segmented > * {
  min-width: 40px;
  padding: 4px 10px;
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.segmented a:hover {
  color: var(--text);
  background: var(--control-hover);
}

.segmented [aria-current] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--control-border), var(--shadow-card);
}

.github-link {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
}

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

.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
}

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

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  color: var(--accent-text);
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 14px;
}

.hero-meta a {
  color: inherit;
}

.alpha {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-sunken);
  color: var(--text-2);
  font-size: 14px;
}

.alpha strong {
  color: var(--text);
}

/* ---------- The zone demo (the hero figure) ---------- */

.demo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.demo-title {
  font-size: 14px;
  font-weight: 600;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.demo-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yes);
  transition: background-color 200ms var(--ease);
}

.demo.alarm .demo-live .dot {
  background: var(--alarm);
}

.demo-canvas {
  position: relative;
  background-color: var(--canvas);
  background-image: linear-gradient(var(--canvas-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--canvas-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  transition: box-shadow 200ms var(--ease);
}

.demo.alarm .demo-canvas {
  box-shadow: inset 0 0 0 5px var(--alarm);
  animation: pulse 700ms ease-in-out infinite alternate;
}

@keyframes pulse {
  from { box-shadow: inset 0 0 0 3px rgba(229, 72, 77, 0.45); }
  to { box-shadow: inset 0 0 0 7px var(--alarm); }
}

.demo-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 560;
  max-height: 600px;
  margin-inline: auto;
}

.zone ellipse {
  fill: currentColor;
  fill-opacity: 0.1;
  stroke: currentColor;
  stroke-opacity: 0.55;
  stroke-width: 2;
  transition: fill-opacity 220ms var(--ease), stroke-opacity 220ms var(--ease);
}

.zone.is-hit ellipse {
  fill-opacity: 0.42;
  stroke-opacity: 1;
  stroke-width: 3.5;
}

/* Zones the visitor has not picked stay quiet. */
.demo[data-active] .zone:not(.is-hit) ellipse {
  fill-opacity: 0.06;
  stroke-opacity: 0.35;
}

.hand {
  transform: translate(470px, 560px);
}

.demo.ready .hand {
  transition: transform 700ms var(--ease-in-out);
}

.hand .skin {
  fill: #eab68e;
  stroke: #b98258;
  stroke-width: 3;
}

.ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  opacity: 0;
}

.ring.dwelling {
  opacity: 1;
  animation: dwell var(--dwell, 1000ms) linear forwards;
}

.ring.done {
  opacity: 1;
  stroke: var(--alarm);
  stroke-dashoffset: 0;
}

@keyframes dwell {
  to { stroke-dashoffset: 0; }
}

.alarm-pill {
  position: absolute;
  left: 50%;
  top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--alarm);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  pointer-events: none;
}

.demo.alarm .alarm-pill {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 167ms var(--ease), border-color 167ms var(--ease);
}

.chip:hover {
  background: var(--control-hover);
}

.chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}

.chip[aria-pressed="true"] {
  border-color: var(--c);
  background: var(--surface-sunken);
  box-shadow: 0 0 0 1px var(--c);
}

.demo-foot {
  padding: 8px 18px 16px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 2.7em;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.35;
}

.status svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent-text);
}

.demo.alarm .status svg {
  color: var(--alarm);
}

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

.section {
  padding: var(--section) 0;
}

.band {
  background: var(--bg-band);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}

/* ---------- Measured ---------- */

.measured {
  padding: 0 0 var(--section);
}

.props {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.props h2 {
  font-size: clamp(26px, 2.6vw, 32px);
}

.props-intro p {
  margin-top: 12px;
  color: var(--text-2);
}

.prop-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.prop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}

.prop:nth-child(-n + 2) {
  border-top: 0;
}

.prop:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.prop dt {
  color: var(--text-2);
  font-size: 14px;
}

.prop dd {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  text-align: right;
}

.prop dd strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 8px;
  align-items: start;
}

.identify {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

.step:nth-child(1) .identify { background: var(--nail); }
.step:nth-child(2) .identify { background: var(--mustache); }
.step:nth-child(3) .identify { background: var(--touch); }

.step h3 {
  padding-top: 2px;
  font-size: 22px;
}

.step p {
  color: var(--text-2);
}

/* ---------- Video ---------- */

.watch {
  padding-top: 0;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.watch-figure {
  margin: 0;
}

.watch-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--canvas);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.watch-figure figcaption {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 14px;
}

.watch-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: watch;
}

.watch-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  counter-increment: watch;
}

.watch-steps li::before {
  content: counter(watch);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--tone, var(--accent));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.watch-steps li:nth-child(3) { --tone: var(--nail); }
.watch-steps li:nth-child(4) { --tone: var(--alarm); }

.watch-steps strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}

.watch-steps span {
  color: var(--text-2);
  font-size: 15px;
}

@media (max-width: 1080px) {
  /* One column: the video no wider than a comfortable player, the steps in two columns below */
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-figure {
    max-width: 640px;
  }

  .watch-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

.shots {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.shot-row {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.shot-row.two-one { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.shot-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot-row.one-two { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); }

.shot {
  margin: 0;
}

.shot a {
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.shot figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 15px;
}

.shots-note {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 14px;
}

.side-note {
  align-self: center;
  max-width: 52ch;
}

.side-note h3 {
  font-size: 22px;
}

.side-note p {
  margin-top: 12px;
  color: var(--text-2);
}

/* ---------- Zones ---------- */

.zones-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.zones-grid > img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-raised);
}

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

.habit {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.habit .swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--c);
}

.habit strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.habit p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.habit .value {
  font-size: 13px;
}

/* ---------- Settings-style rows (alarms, privacy) ---------- */

.settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px clamp(24px, 3vw, 40px);
  align-items: start;
}

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

.settings .rows {
  display: contents;
}

.row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.row > svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

.row strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.row p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
}

.value strong {
  color: var(--text);
  font-weight: 600;
}

.switch {
  position: relative;
  width: 40px;
  height: 20px;
  border: 1px solid var(--text-2);
  border-radius: 999px;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-2);
}

.switch.on {
  border-color: var(--accent);
  background: var(--accent);
}

.switch.on::after {
  left: 23px;
  background: var(--on-accent);
}

.combo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  padding: 4px 10px 4px 12px;
  border: 1px solid var(--control-border);
  border-bottom-color: var(--control-edge);
  border-radius: var(--radius-control);
  background: var(--control);
  color: var(--text);
}

.combo svg {
  width: 12px;
  height: 12px;
  color: var(--text-2);
}

.settings-note {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 14px;
}

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

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.privacy-grid .section-head {
  margin-bottom: 32px;
}

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

.notice h3 {
  font-size: 17px;
}

.notice p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.verified svg {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}

.rows.joined {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.rows.joined .row {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.rows.joined .row:first-child {
  border-top: 0;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-top: 0;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

tbody th {
  width: 30%;
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--text-2);
}

.mark {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.mark svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
}

.mark.yes svg {
  color: var(--yes);
}

.mark.maybe svg {
  color: #f5b73b;
}

.mark.no svg {
  color: var(--no);
}

/* ---------- Install ---------- */

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

.install p {
  margin-top: 12px;
  color: var(--text-2);
}

.install ol {
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: var(--text-2);
}

.install li + li {
  margin-top: 8px;
}

.install pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--ink);
  color: #ececec;
  font-size: 14px;
  line-height: 1.8;
}

.install pre ::selection,
.install pre::selection {
  background: var(--accent);
  color: #000000;
}

.install-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: 14px;
}

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

.faq {
  display: grid;
  gap: 4px;
  max-width: 880px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  border-radius: 6px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary:hover {
  background: var(--surface-hover);
}

.faq summary svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--text-2);
  transition: transform 250ms var(--ease);
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 68ch;
  padding: 16px 20px 20px;
  color: var(--text-2);
}

/* ---------- Closing band ---------- */

.closing {
  background: var(--bg-band);
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(56px, 7vw, 88px) 0;
}

.closing p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 18px;
}

.closing .actions {
  margin-top: 0;
}

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

.footer {
  padding: 56px 0 40px;
  font-size: 14px;
}

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

.footer-about p {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--text-2);
}

.footer-title {
  margin-bottom: 10px;
  font-weight: 600;
}

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

.footer ul a {
  color: var(--text-2);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Responsive ---------- */

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

  .hero-grid,
  .props,
  .privacy-grid,
  .zones-grid,
  .install,
  .settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 680px;
  }

  .shot-row.two-one,
  .shot-row.one-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-row.one-two .shot {
    max-width: 320px;
  }
}

@media (max-width: 820px) {
  .steps,
  .shot-row.three,
  .shot-row.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .github-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .github-link {
    padding: 6px 10px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .row {
    grid-template-columns: 20px minmax(0, 1fr);
    row-gap: 10px;
  }

  .row .value {
    grid-column: 2;
  }

  .habit {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .habit .value {
    grid-column: 2;
  }

  .prop-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .prop:nth-child(2) {
    border-top: 1px solid var(--border);
  }

  .prop:nth-child(odd) {
    border-right: 0;
  }

  .closing .actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Downloads (one tile per system; the visitor's is selected) ---------- */

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

.download {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}

.download.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-raised);
}

.download-screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 104px;
  margin: 10px 10px 0;
  overflow: hidden;
  border: 4px solid #000;
  border-radius: 6px;
  background: var(--bars);
  color: var(--on-ink);
}

.download-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b0c0f;
  opacity: 0.8;
  transition: opacity 333ms var(--ease);
}

.download.recommended .download-screen::before {
  opacity: 0.12;
}

.download-screen > svg {
  position: relative;
  width: 64px;
  height: 52px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--ink);
}

.badge {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  padding: 3px 8px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
}

.download.recommended .badge {
  display: block;
}

.download-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.download h3 {
  font-size: 20px;
}

.req {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
}

.download-files {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.download-files .btn {
  justify-content: space-between;
  width: 100%;
}

.btn-meta {
  font-weight: 400;
  opacity: 0.82;
}

.btn-meta:empty {
  display: none;
}

.download .note {
  margin-top: auto;
  padding-top: 16px;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.5;
}

.download-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: 14px;
}

.source {
  margin-top: 40px;
}

.source h3 {
  margin-bottom: 14px;
  font-size: 17px;
}

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