:root {
  color-scheme: light dark;

  /* Paper and ink */
  --surface: #f4eee4;
  --surface-raised: #fffdf8;
  --surface-sunken: #ebe4d8;
  --border: #ddd4c6;
  --border-strong: #b9ae9d;
  --text: #1f1b16;
  --text-muted: #6b6257;

  /* Accent: act, selected, today */
  --accent: #1f5f5b;
  --accent-text: #ffffff;
  --accent-soft: #dfeae6;

  /* Danger: clash, and only clash */
  --danger: #b3261e;
  --danger-text: #ffffff;
  --danger-soft: #f9e4e1;

  /* Category tints and inks */
  --category-class: #cfe3d4;
  --category-class-text: #173b25;
  --category-meeting: #d6def0;
  --category-meeting-text: #1f2f5c;
  --category-event: #f6d9b5;
  --category-event-text: #5c3200;
  --category-hire: #e8d4e8;
  --category-hire-text: #4b1f4e;

  /* Site only */
  --wash-a: #dfeae6; /* hero wash, top left, teal */
  --wash-b: #f6d9b5; /* hero wash, top right, apricot */
  --frame: #e6dfd3; /* browser-frame chrome behind the app embed */

  --shadow-1: 0 1px 2px rgba(31, 27, 22, 0.06), 0 1px 1px rgba(31, 27, 22, 0.04);
  --shadow-2: 0 12px 32px rgba(31, 27, 22, 0.16), 0 2px 6px rgba(31, 27, 22, 0.08);
  --shadow-3: 0 32px 80px rgba(31, 27, 22, 0.22), 0 8px 24px rgba(31, 27, 22, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --duration-story: 600ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);

  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 24px;
  --section-gap: 112px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1a1816;
    --surface-raised: #26221e;
    --surface-sunken: #141210;
    --border: #3d3731;
    --border-strong: #5c544a;
    --text: #f1ebe2;
    --text-muted: #a89f93;
    --accent: #7fc4b7;
    --accent-text: #0f2a27;
    --accent-soft: #203733;
    --danger: #ff8a80;
    --danger-text: #3a0b08;
    --danger-soft: #3e1d1a;
    --category-class: #244a33;
    --category-class-text: #c9ead3;
    --category-meeting: #2a3a66;
    --category-meeting-text: #d5def5;
    --category-event: #6b4210;
    --category-event-text: #fbe1bf;
    --category-hire: #55305a;
    --category-hire-text: #efd8ef;
    --wash-a: #203733;
    --wash-b: #3a2a14;
    --frame: #2e2924;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-3: 0 32px 80px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-story: 0ms;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --section-gap: 72px;
  }
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--surface);
  background-image:
    radial-gradient(
      900px 420px at 18% -140px,
      color-mix(in oklab, var(--wash-a) 70%, transparent),
      transparent 70%
    ),
    radial-gradient(
      700px 380px at 92% -120px,
      color-mix(in oklab, var(--wash-b) 45%, transparent),
      transparent 70%
    );
  background-repeat: no-repeat;
  overflow-x: hidden;
}

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

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

svg {
  display: block;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main > section + section {
  margin-top: var(--section-gap);
}

/* ---------- Type ---------- */

h1,
h2,
h3,
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 30;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.section-title,
.statement {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 30;
}

.statement {
  max-width: 56ch;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: pretty;
}

.kicker {
  margin-bottom: 14px;
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.body-muted {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.section-title + .body-muted {
  margin-top: 16px;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.btn--lg {
  height: 48px;
  padding: 0 24px;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 18%, transparent),
    var(--shadow-1);
}

.btn--primary:hover {
  background: color-mix(in oklab, var(--accent), var(--text) 12%);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn--secondary {
  background: var(--surface-raised);
  border-color: var(--border);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
}

.btn--secondary:active {
  transform: translateY(1px);
}

.arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(3px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.link:hover {
  color: color-mix(in oklab, var(--accent), var(--text) 12%);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link:active {
  transform: translateY(1px);
}

/* ---------- Logo ---------- */

.mark {
  display: block;
  flex: none;
  border-radius: 25%;
}

.mark svg {
  width: 100%;
  height: 100%;
}

.mark--header {
  width: 40px;
  height: 40px;
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 25%, transparent),
    var(--shadow-1);
}

.mark--start {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 25%, transparent),
    var(--shadow-1);
}

.mark--footer {
  width: 28px;
  height: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wordmark {
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.descriptor {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.brand--footer .wordmark {
  font-size: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-link:active {
  color: var(--text);
}

@media (max-width: 760px) {
  .nav-link,
  .btn-long {
    display: none;
  }
  .btn--header {
    height: 36px;
  }
}

@media (max-width: 640px) {
  .descriptor {
    display: none;
  }
}

/* ---------- Entrance fades ---------- */

.js main > section.will-reveal:not(.is-in) .reveal {
  opacity: 0;
  transform: translateY(8px);
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.js main > section.is-in .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal:nth-child(2) {
  --i: 1;
}
.reveal:nth-child(3) {
  --i: 2;
}
.reveal:nth-child(4) {
  --i: 3;
}
.reveal:nth-child(5) {
  --i: 4;
}
.reveal:nth-child(6) {
  --i: 5;
}
.reveal:nth-child(7) {
  --i: 6;
}

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

.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}

.hero-sub {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-muted);
}

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

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
}

.facts li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: var(--radius-full);
  background: var(--border-strong);
}

.hero-story figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero {
    padding-top: 40px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 520px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* The story: a hand-built Week view. */

.story {
  --row: 44px;
  --gutter-w: 52px;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  font-variant-numeric: tabular-nums;
}

.story-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.story-today,
.story-chevrons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
}

.story-today {
  border-radius: var(--radius-sm);
  opacity: 0.7;
}

.story-chevrons {
  display: inline-flex;
}

.story-chevrons span {
  width: 28px;
  padding: 0;
  font-size: 1rem;
}

.story-chevrons span:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.story-chevrons span:last-child {
  margin-left: -1px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.story-period {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  white-space: nowrap;
}

.story-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: var(--danger-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.story-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.story-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.story-seg span {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.story-seg .is-on {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

.week {
  display: grid;
  /* Friday is wider than the brief's equal columns so the two clash lanes stay readable. */
  grid-template-columns:
    var(--gutter-w) repeat(4, minmax(0, 1fr)) minmax(0, 2fr)
    repeat(2, minmax(0, 1fr));
}

.week--head {
  border-bottom: 1px solid var(--border);
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 6px;
  border-left: 1px solid var(--border);
  border-bottom: 2px solid transparent;
  line-height: 1.2;
}

.day b {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.day i {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.125rem;
}

.day.is-today {
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.day.is-today b {
  color: inherit;
}

.week--body {
  height: calc(12 * var(--row));
}

.gutter {
  position: relative;
}

.gutter span {
  position: absolute;
  top: calc(var(--h) * var(--row) + 2px);
  right: 8px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.col {
  position: relative;
  border-left: 1px solid var(--border);
  background-image:
    linear-gradient(to bottom, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 45%, transparent) 1px, transparent 1px);
  background-size:
    100% var(--row),
    100% calc(var(--row) / 2);
}

.col--today {
  background-color: color-mix(in oklab, var(--accent-soft) 35%, transparent);
}

.block {
  --ink: var(--category-class-text);
  position: absolute;
  top: calc(var(--start) * var(--row) + 1px);
  height: calc(var(--dur) * var(--row) - 2px);
  left: 3px;
  width: calc(100% - 6px);
  overflow: hidden;
  padding: 4px 8px 4px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 3px;
  background: var(--ink);
}

.block strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.8125rem;
  font-weight: 600;
}

.block span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.cat-class {
  background: var(--category-class);
  color: var(--category-class-text);
  --ink: var(--category-class-text);
}
.cat-meeting {
  background: var(--category-meeting);
  color: var(--category-meeting-text);
  --ink: var(--category-meeting-text);
}
.cat-event {
  background: var(--category-event);
  color: var(--category-event-text);
  --ink: var(--category-event-text);
}
.cat-hire {
  background: var(--category-hire);
  color: var(--category-hire-text);
  --ink: var(--category-hire-text);
}

/* Final state: two lanes, two outlines, two badges. */

.block--a {
  width: calc(50% - 4px);
}

.block--b {
  left: calc(50% + 1px);
  width: calc(50% - 4px);
  box-shadow: 0 0 0 1px var(--surface-raised);
}

.block--a {
  box-shadow: 0 0 0 1px var(--surface-raised);
}

.is-clash::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--danger);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: var(--danger-text);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.block--a strong,
.block--b strong {
  padding-top: 18px;
  font-size: 0.75rem;
}

.story.is-done .block,
.story.is-done .badge,
.story.is-done .story-pill,
.story.is-done .is-clash::after {
  animation: none;
}

/* Playing: the story runs once. */

.js .story:not(.is-playing) .block,
.js .story:not(.is-playing) .story-pill {
  opacity: 0;
}

.story.is-playing .block {
  animation: block-in var(--duration-base) var(--ease-out) calc(var(--n, 0) * 40ms) both;
}

.story.is-playing .block--a {
  animation:
    block-in var(--duration-base) var(--ease-out) calc(var(--n, 0) * 40ms) both,
    lane-a var(--duration-story) var(--ease-out) 1250ms both;
}

.story.is-playing .block--b {
  animation:
    pop-in var(--duration-slow) var(--ease-spring) 900ms both,
    lane-b var(--duration-story) var(--ease-out) 1250ms both;
}

.story.is-playing .is-clash::after,
.story.is-playing .badge {
  animation: fade-in var(--duration-base) var(--ease-out) 1250ms both;
}

.story.is-playing .story-pill {
  animation: pill-in var(--duration-base) var(--ease-out) 1500ms both;
}

@keyframes block-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes lane-a {
  from {
    width: calc(100% - 6px);
  }
}

@keyframes lane-b {
  from {
    left: 3px;
    width: calc(100% - 6px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes pill-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (max-width: 760px) {
  .story {
    --row: 36px;
  }
  .story-seg {
    display: none;
  }
  .story-period {
    font-size: 1rem;
  }
  .block.is-short span {
    display: none;
  }
}

@media (max-width: 480px) {
  .week {
    grid-template-columns: var(--gutter-w) minmax(0, 1fr) minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }
  .d-early {
    display: none;
  }
  .story-toolbar {
    gap: 8px;
    padding-inline: 8px;
  }
  .story-today {
    display: none;
  }
  .block {
    padding: 2px 3px 2px 7px;
  }
  .block strong {
    font-size: 0.6875rem;
  }
  .block span {
    font-size: 0.625rem;
  }
  .block--a span,
  .block--b span {
    display: none;
  }
  .badge {
    top: 2px;
    right: 2px;
    padding: 0 4px;
    font-size: 0.625rem;
  }
  .block--a strong,
  .block--b strong {
    padding-top: 14px;
  }
}

/* ---------- Content sections ---------- */

.statement + .body-muted {
  margin-top: 28px;
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  padding: 28px;
  box-shadow: var(--shadow-1);
}

.step h3,
.feature h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

.step-no {
  margin-top: 24px;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--accent);
}

.step h3 + p,
.feature h3 + p {
  margin-top: 8px;
  color: var(--text-muted);
}

.illo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 160px;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.field small {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
}

.toggle-row svg {
  width: 16px;
  height: 16px;
  padding: 1px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-text);
}

.callout {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.callout svg {
  flex: none;
  color: var(--danger);
}

.callout strong {
  display: block;
  font-weight: 600;
  color: var(--danger);
}

.callout span {
  display: block;
}

.illo--sheet {
  padding-bottom: 0;
  justify-content: flex-end;
}

.sheet {
  padding: 14px 16px 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-raised);
  box-shadow: var(--shadow-1);
  font-size: 0.75rem;
  line-height: 1.3;
}

.sheet small {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.sheet b,
.sheet i {
  font-family: var(--font-display);
  font-style: normal;
}

.sheet b {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.sheet i {
  color: var(--text-muted);
}

.sheet hr {
  height: 0;
  margin: 8px 0 6px;
  border: 0;
  border-top: 2px solid var(--text);
}

.sheet-row {
  display: grid;
  grid-template-columns: 6.5em 1fr auto;
  gap: 8px;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}

.sheet-row span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sheet-row em {
  font-style: normal;
  color: var(--text-muted);
}

.sq {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature {
  padding: 24px;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon svg text {
  fill: currentColor;
}

.icon .s-class {
  fill: var(--category-class);
  stroke: var(--category-class-text);
}
.icon .s-meeting {
  fill: var(--category-meeting);
  stroke: var(--category-meeting-text);
}
.icon .s-event {
  fill: var(--category-event);
  stroke: var(--category-event-text);
}
.icon .s-hire {
  fill: var(--category-hire);
  stroke: var(--category-hire-text);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 32px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checks svg {
  flex: none;
  color: var(--accent);
}

/* Try it */

.band {
  padding-block: 96px;
  background: var(--surface-sunken);
}

.frame {
  max-width: 1120px;
  margin: 40px auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--frame);
  box-shadow: var(--shadow-3);
}

.frame-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
}

.address {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 16px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

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

.frame-link {
  max-width: 1120px;
  margin: 16px auto 0;
  text-align: right;
}

@media (max-width: 760px) {
  .band {
    padding-block: 64px;
  }
  .frame iframe {
    height: 640px;
  }
}

@media (max-width: 480px) {
  .frame iframe {
    height: 560px;
  }
}

/* Privacy, start, footer */

.privacy {
  margin-top: 48px !important;
}

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

.privacy h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.privacy .body-muted {
  margin-top: 0;
}

.start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  text-align: center;
}

.start-inner .body-muted {
  margin-top: 16px;
}

.start-inner .btn {
  margin-top: 32px;
}

.start-inner .caption {
  margin-top: 16px;
}

.site-footer {
  margin-top: var(--section-gap);
  padding-block: 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js main > section.will-reveal:not(.is-in) .reveal {
    opacity: 1;
    transform: none;
  }
  .story *,
  .story *::after {
    animation: none !important;
  }
  .js .story:not(.is-playing) .block,
  .js .story:not(.is-playing) .story-pill {
    opacity: 1;
  }
  * {
    transition-duration: 0ms !important;
  }
}
