/* Kept launch site. Palette, type and logo from docs/site/BRIEF.md. */

:root {
  color-scheme: light dark;

  --paper: #f6f2ea; /* page */
  --paper-raised: #fffdf8; /* cards, sheets */
  --paper-sunken: #efe9de; /* wells, alternating bands */
  --rule: #e2d9ca; /* hairlines */
  --rule-strong: #c9bca7;
  --ink: #2b2620;
  --ink-muted: #6b6257;
  --accent: #2f6b4f; /* the one green */
  --accent-hover: #255a41;
  --accent-soft: #dcebe1;
  --on-accent: #fffdf8;
  --warning-bg: #fbecc9;
  --warning-fg: #7a4f00;
  --danger: #b23a2e;
  --danger-bg: #f8dcd7;
  --danger-fg: #8c2a20;
  --success-bg: #d9ecdc;
  --success-fg: #24603a;
  --cat-hvac: #2f72b8;
  --cat-plumbing: #138a8a;
  --cat-electrical: #b98200;
  --cat-exterior: #5d8a2f;
  --cat-safety: #c4422f;
  --cat-appliances: #7a58b5;
  --cat-interior: #a8673b;
  --shadow-paper: 0 1px 2px rgb(43 38 32 / 0.06), 0 8px 24px -8px rgb(43 38 32 / 0.14);
  --shadow-lift: 0 2px 4px rgb(43 38 32 / 0.08), 0 24px 48px -16px rgb(43 38 32 / 0.22);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 120ms;
  --slow: 320ms;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1815;
    --paper-raised: #24211d;
    --paper-sunken: #1f1c19;
    --rule: #3a352e;
    --rule-strong: #544c42;
    --ink: #eee8dd;
    --ink-muted: #a89e90;
    --accent: #7fc29b;
    --accent-hover: #98d1af;
    --accent-soft: #23382b;
    --on-accent: #14261c;
    --warning-bg: #3d3014;
    --warning-fg: #f2c66b;
    --danger: #e5776a;
    --danger-bg: #42221e;
    --danger-fg: #f3a197;
    --success-bg: #1f3526;
    --success-fg: #8fd1a5;
    --cat-hvac: #6ea6e0;
    --cat-plumbing: #4cc2bd;
    --cat-electrical: #e4b844;
    --cat-exterior: #96c464;
    --cat-safety: #ec7a68;
    --cat-appliances: #b394e6;
    --cat-interior: #d8a17a;
    --shadow-paper: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -8px rgb(0 0 0 / 0.5);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.35), 0 24px 48px -16px rgb(0 0 0 / 0.6);
  }
}

@property --rot {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow-x: clip;
}

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

.band-sunken {
  background: var(--paper-sunken);
}

.band-accent {
  background: var(--accent-soft);
}

/* Type */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin-top: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 18em;
}

.feature-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 500;
  margin-top: 14px;
}

.caps {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.lede {
  max-width: 34em;
  margin-top: 24px;
  font-size: 1.1875rem;
  color: var(--ink-muted);
}

.lede,
.fineprint,
.feature-copy p {
  text-wrap: pretty;
}

.fineprint {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  border-radius: 10px;
}

.mark {
  display: block;
  flex: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 600 1rem / 1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.btn:active,
.text-link:active,
.copy-btn:active,
.header-nav a:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgb(43 38 32 / 0.12);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-paper);
}

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

.btn-secondary:hover {
  background: var(--paper-sunken);
}

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-large {
  min-height: 56px;
  padding: 0 34px;
  font-size: 1.125rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  border-radius: 6px;
  transition:
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.text-link:hover {
  color: var(--accent-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}

/* 0. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.header-nav a:hover {
  color: var(--ink);
  background: var(--paper-sunken);
}

/* 1. Hero */

.hero {
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-visual {
  --fx: 0px;
  --fy: 0px;
  --bx: 0px;
  --by: 0px;
  position: relative;
}

.hero-stage {
  position: relative;
  padding: 40px 40px 0 0;
}

.sheet-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 82%;
  transform: translate(var(--bx), var(--by)) rotate(3deg);
}

.sheet-back .print-sheet {
  height: 100%;
  overflow: hidden;
}

.sheet-back .magnet {
  top: -12px;
}

.today-sheet {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-lift);
  transform: translate(var(--fx), var(--fy)) rotate(-1.5deg);
}

.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sheet-date {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.group-label {
  margin: 18px 0 8px;
}

.job-row {
  --stripe: var(--rule-strong);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 8px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-raised);
  overflow: hidden;
}

.job-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--stripe);
  transition: background-color var(--slow) var(--ease);
}

.job-row.is-overdue {
  --stripe: var(--danger);
}

.job-row.is-soon {
  --stripe: var(--warning-fg);
}

.job-row.is-later {
  --stripe: transparent;
}

.job-row.is-later .job-name {
  color: var(--ink-muted);
}

.job-row.is-done {
  --stripe: var(--success-fg);
}

.dot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}

.job-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.job-name {
  font-weight: 600;
}

.job-meta {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.row-actions {
  grid-column: 2 / -1;
  display: flex;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-fg);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-fg);
}

.badge-neutral {
  background: var(--paper-sunken);
  color: var(--ink-muted);
}

.badge-swap,
.label-swap {
  display: grid;
  justify-items: end;
}

.badge-swap > *,
.label-swap > * {
  grid-area: 1 / 1;
  transition: opacity var(--slow) var(--ease);
}

.badge-swap .badge-success {
  opacity: 0;
}

.is-done .badge-swap .badge-danger {
  opacity: 0;
}

.is-done .badge-swap .badge-success {
  opacity: 1;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform var(--fast) var(--ease);
}

.mini-done {
  background: var(--accent);
  color: var(--on-accent);
}

.mini-ghost {
  border-color: var(--rule-strong);
  color: var(--ink-muted);
}

.mini-btn.is-pressed {
  transform: scale(0.97);
}

.collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows var(--slow) var(--ease),
    opacity var(--slow) var(--ease);
}

.collapse > div {
  min-height: 0;
  overflow: hidden;
}

.collapse.is-collapsed,
.seq-end {
  grid-template-rows: 0fr;
  opacity: 0;
}

.seq-end.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.hero-caption {
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  text-align: center;
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}

.hero-caption.is-shown {
  opacity: 1;
}

/* Printed paper: white with black ink in both themes */

.print-sheet {
  position: relative;
  padding: 28px 26px;
  border-radius: 4px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: var(--shadow-paper);
}

.print-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111111;
  margin-bottom: 10px;
}

.print-caps {
  margin: 14px 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555555;
}

.print-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e3e3e3;
  font-size: 1rem;
}

.print-dated {
  margin-top: 14px;
}

.box {
  flex: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #111111;
  border-radius: 2px;
}

.magnet {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0) 46%),
    var(--cat-safety);
  box-shadow:
    inset 0 -2px 3px rgb(0 0 0 / 0.18),
    0 2px 4px rgb(0 0 0 / 0.28);
}

/* 2. How it works */

.how .section-title {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.steps-wrap {
  position: relative;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.steps-line {
  position: absolute;
  overflow: visible;
}

.steps-line > line {
  stroke: var(--rule-strong);
  stroke-width: 2;
  stroke-dasharray: 6 7;
}

.steps-line-x {
  top: 2.2rem;
  left: 0;
  width: 100%;
  height: 2px;
}

.steps-line-y {
  display: none;
}

.step-num {
  position: relative;
  display: inline-block;
  padding-right: 16px;
  background: var(--paper-sunken);
  color: var(--accent);
  font-size: 4.5rem;
  line-height: 1;
}

.step-title {
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.step p {
  margin-top: 8px;
  color: var(--ink-muted);
  max-width: 34em;
}

.illus {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-paper);
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.9375rem;
}

.mini-list .is-off {
  color: var(--ink-muted);
}

.tick {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 5px;
}

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

.tick.is-on::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-row .label-swap {
  justify-items: start;
  flex: 1;
}

.pill-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* 3. Features */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.feature-grid.is-flipped > .feature-copy {
  order: 2;
}

.feature-copy > p:not(.caps) {
  max-width: 34em;
  margin-top: 18px;
  color: var(--ink-muted);
}

.feature-visual {
  min-width: 0;
}

.paper-card {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-paper);
}

/* 3a. Timelines */

.timelines {
  display: grid;
  gap: 20px;
}

.timeline + .timeline {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.timeline figcaption {
  font-size: 0.9375rem;
  font-weight: 600;
}

.timeline svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ticks line {
  stroke: var(--rule-strong);
  stroke-width: 2;
}

.tick-mark {
  stroke: var(--rule-strong);
  stroke-width: 1.5;
}

.tl-month,
.tl-label {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tl-month {
  fill: var(--ink-muted);
}

.tl-label {
  fill: var(--ink);
}

.ghost {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.cross {
  stroke: var(--ink-muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.due {
  fill: var(--paper-raised);
  stroke: var(--cat-hvac);
  stroke-width: 2.5;
}

.next {
  fill: var(--paper-raised);
  stroke: var(--accent);
  stroke-width: 2.5;
}

.arc,
.arrow-head {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.season {
  fill: var(--cat-exterior);
  opacity: 0.28;
}

/* 3b. Season ring */

.ring-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ring-wrap {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
}

.ring {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform: rotate(var(--rot));
}

.ring-track {
  fill: var(--paper-raised);
  fill-rule: evenodd;
  stroke: var(--rule-strong);
  stroke-width: 1.5;
}

.ring-dividers {
  stroke: var(--rule-strong);
  stroke-width: 1;
  pointer-events: none;
}

.ring-notch {
  fill: var(--accent);
}

.seg {
  cursor: pointer;
  outline: none;
}

.wedge {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  transition:
    fill var(--fast) var(--ease),
    stroke var(--fast) var(--ease);
}

.seg-alt .wedge {
  fill: color-mix(in srgb, var(--paper-sunken) 60%, transparent);
}

.seg:hover .wedge,
.seg:focus .wedge {
  fill: color-mix(in srgb, var(--accent-soft) 70%, transparent);
}

.seg:focus-visible .wedge {
  stroke: var(--accent);
}

.ring-dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--fast) var(--ease);
}

.seg:hover .ring-dot,
.seg:focus .ring-dot {
  transform: scale(1.3);
}

.seg:active .wedge {
  fill: var(--accent-soft);
}

.ring-label {
  fill: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(calc(-1 * var(--rot)));
}

.ring-centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.ring-month {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.ring-count {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.ring-detail {
  min-height: 7.5rem;
  margin-top: 20px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.ring-detail ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 8px;
  max-width: 30rem;
  color: var(--ink);
}

.ring-detail li,
.legend li,
.linked-jobs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 0.9375rem;
}

/* 3c. Appliances */

.appliances {
  position: relative;
  max-width: 32rem;
  margin-inline: auto;
  padding-top: 92px;
}

.appliance-back {
  position: absolute;
  top: 0;
  right: -8px;
  width: 72%;
  transform: rotate(2.5deg);
  background: var(--paper-sunken);
}

.appliance-front {
  position: relative;
  z-index: 1;
  margin-right: 28px;
  box-shadow: var(--shadow-lift);
}

.appliance-name {
  font-size: 1.6rem;
}

.appliance-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.appliance-loc {
  margin: 4px 0 12px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 8px;
}

.spec-list dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.spec-list code {
  font-family: var(--font-mono);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.copy-btn {
  flex: none;
  min-height: 44px;
  min-width: 76px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--paper-raised);
  color: var(--ink);
  font: 600 0.9375rem / 1 var(--font-body);
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.copy-btn:hover {
  background: var(--paper-sunken);
  border-color: var(--ink-muted);
}

.copy-btn.is-copied {
  border-color: var(--success-fg);
  color: var(--success-fg);
}

.linked-jobs {
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
}

/* 3d. Fridge checklist */

.fridge {
  padding: 24px 8px;
}

.print-sheet-big {
  max-width: 26rem;
  margin-inline: auto;
  padding: 40px 32px 32px;
  transform: rotate(-1deg);
  box-shadow: var(--shadow-lift);
  transition:
    transform var(--slow) var(--ease),
    box-shadow var(--slow) var(--ease);
}

.print-sheet-big .print-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50;
  letter-spacing: -0.02em;
}

/* 4. Privacy */

.privacy-inner {
  max-width: calc(40rem + 2 * var(--gutter));
  text-align: center;
}

.privacy .section-title {
  margin-inline: auto;
}

.privacy-inner > p {
  margin: 20px auto 0;
  max-width: 34em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 32px;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.facts svg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 5. The real app */

.try-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.app-frame {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-lift);
}

.frame-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-raised);
}

.frame-dots {
  display: flex;
  gap: 7px;
}

.frame-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule-strong);
}

.frame-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 16px;
  border-radius: 999px;
  background: var(--paper-sunken);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.app-frame iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: var(--paper);
}

.try-actions {
  justify-content: center;
}

/* 6. Closing */

.closing-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.closing-card .mark {
  margin: 0 auto 24px;
}

.closing-card .section-title {
  margin-inline: auto;
}

.closing-card > p:not(.fineprint) {
  max-width: 30em;
  margin: 18px auto 32px;
  color: var(--ink-muted);
}

/* 7. Footer */

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-credit {
  margin-left: auto;
}

/* Motion, only when the visitor hasn't asked for less */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .step {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 500ms var(--ease),
      transform 500ms var(--ease);
  }

  .js [data-reveal].is-in .step {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal].is-in .step:nth-child(2) {
    transition-delay: 120ms;
  }

  .js [data-reveal].is-in .step:nth-child(3) {
    transition-delay: 240ms;
  }

  .js .how .draw,
  .js .arc,
  .js .draw-roof,
  .js .draw-tick {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .js .how .draw {
    transition: stroke-dashoffset 900ms var(--ease);
  }

  .js .arc {
    transition: stroke-dashoffset 700ms var(--ease);
  }

  .js .arc-2 {
    transition-delay: 300ms;
  }

  .js .arrow-head {
    opacity: 0;
    transition: opacity var(--fast) var(--ease) 650ms;
  }

  .js .arrow-2 {
    transition-delay: 950ms;
  }

  .js .draw-roof {
    transition: stroke-dashoffset 400ms var(--ease);
  }

  .js .draw-tick {
    transition: stroke-dashoffset 300ms var(--ease) 400ms;
  }

  .js .is-in .draw,
  .js .is-in .arc,
  .js .is-in .draw-roof,
  .js .is-in .draw-tick {
    stroke-dashoffset: 0;
  }

  .js .is-in .arrow-head {
    opacity: 1;
  }

  .js .label-swap .swap-from {
    opacity: 1;
  }

  .js .label-swap .swap-to {
    opacity: 0;
  }

  .js .is-in .label-swap .swap-from {
    opacity: 0;
    transition-delay: 1100ms;
  }

  .js .is-in .label-swap .swap-to {
    opacity: 1;
    transition-delay: 1100ms;
  }

  @media (hover: hover) {
    .print-sheet-big:hover {
      transform: translateY(-4px) rotate(0deg);
    }
  }

  @supports (animation-timeline: view()) {
    .feature-ring {
      view-timeline: --ring-section block;
    }

    .ring {
      animation: ring-turn linear both;
      animation-timeline: --ring-section;
      animation-range: cover 25% cover 75%;
    }
  }
}

@keyframes ring-turn {
  from {
    --rot: 0deg;
  }
  to {
    --rot: -90deg;
  }
}

/* Reduced motion: every final state, nothing moving */

.label-swap .swap-from {
  opacity: 0;
}

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

  .seq-start {
    display: none;
  }

  .seq-end {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .hero-caption {
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation: none !important;
  }

  .btn:active,
  .text-link:active,
  .copy-btn:active,
  .header-nav a:active,
  .mini-btn.is-pressed {
    transform: none;
  }
}

/* Tablet: single column for hero and features */

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

  .feature-grid.is-flipped > .feature-copy {
    order: 0;
  }

  .hero-visual {
    max-width: 40rem;
  }
}

/* Phone */

@media (max-width: 719.98px) {
  :root {
    --gutter: 24px;
  }

  .header-nav {
    display: none;
  }

  .header-inner > .btn {
    margin-left: auto;
  }

  .hero-stage {
    padding: 24px 0 0;
  }

  .sheet-back {
    left: 16px;
    right: 16px;
    width: auto;
    height: 160px;
    transform: translate(var(--bx), var(--by)) rotate(2deg);
  }

  .today-sheet {
    padding: 18px 16px;
    transform: none;
  }

  .job-row {
    padding: 12px 12px 12px 16px;
    grid-template-columns: auto 1fr;
  }

  .job-row .badge,
  .job-row .badge-swap {
    grid-column: 2;
    justify-self: start;
    justify-items: start;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .step {
    position: relative;
    padding-left: 4.25rem;
  }

  .step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    padding: 0 0 8px;
    text-align: center;
    font-size: 3.25rem;
  }

  .step-title {
    margin-top: 6px;
  }

  .steps-line-x {
    display: none;
  }

  .steps-line-y {
    display: block;
    top: 0;
    bottom: 0;
    left: calc(1.5rem - 1px);
    width: 2px;
    height: 100%;
  }

  .ring-wrap {
    width: min(342px, 100%);
  }

  .ring-label {
    font-size: 21px;
  }

  .tl-month,
  .tl-label {
    font-size: 24px;
  }

  .timelines {
    padding: 18px;
  }

  .appliances {
    padding-top: 104px;
  }

  .appliance-back {
    left: 12px;
    right: -4px;
    width: auto;
  }

  .appliance-front {
    margin-right: 0;
    padding: 20px 18px;
  }

  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .print-sheet-big {
    padding: 36px 22px 24px;
  }

  .app-frame {
    max-width: 390px;
    margin-inline: auto;
    border-radius: 28px;
  }

  .frame-bar {
    display: none;
  }

  .app-frame iframe {
    height: 680px;
  }

  .try-actions {
    flex-direction: column;
  }

  .footer-credit {
    margin-left: 0;
  }
}
