/* Bel launch page. Art direction: docs/site/BRIEF.md. Phone first. */

/* ---------- Fallback faces matched to the web fonts, to keep the swap still ---------- */

@font-face {
  font-family: "Rozha Fallback";
  src: local("Georgia"), local("Palatino"), local("Times New Roman");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 30%;
}

@font-face {
  font-family: "Hind Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 96%;
  ascent-override: 116%;
  descent-override: 56%;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #f8f0e1; /* cream paper */
  --surface: #fffaf2; /* card paper */
  --surface-sunk: #f1e5cf; /* wells, free-gap rows */
  --border: #e3d2b6; /* hairlines */
  --border-strong: #bfa27e;
  --ink: #3a1f12; /* henna ink, body text */
  --ink-muted: #6b4a36;
  --henna: #6e2f12; /* primary: buttons, wordmark, vine */
  --henna-hover: #57230c;
  --on-henna: #fff6e6;
  --marigold: #e0a325; /* accent: current day, highlights, leaf fills */
  --marigold-soft: #fbedc8; /* summary bands */
  --on-marigold: #2e1806;
  --link: #8a3a10;
  --maroon: #8c1d2c; /* clashes and warnings only */
  --maroon-soft: #f8e1df;
  --maroon-text: #8c1d2c;
  --focus: #9a4d00;
  --shadow: 0 1px 2px rgb(58 31 18 / 0.08), 0 8px 24px -8px rgb(110 47 18 / 0.18);
  --shadow-lift: 0 2px 4px rgb(58 31 18 / 0.08), 0 24px 48px -16px rgb(110 47 18 / 0.28);

  /* The closing band: henna by day, marigold by night. */
  --band: var(--henna);
  --on-band: var(--on-henna);
  --bezel: var(--ink);
  --bezel-outline: transparent;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");

  --font-display: "Rozha One", "Rozha Fallback", "Iowan Old Style", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Hind", "Hind Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-headline: clamp(2.75rem, 8vw + 1rem, 6rem);
  --text-title: clamp(2rem, 4vw + 1rem, 3.5rem);
  --text-lead: clamp(1.125rem, 1vw + 0.9rem, 1.375rem);
  --text-body: 1.0625rem;
  --text-caption: 0.875rem;

  --side: clamp(1.25rem, 4vw, 3rem);
  --rhythm: clamp(5rem, 12vw, 9rem);
  --header-h: 64px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tap: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1216; /* plum-brown night */
    --surface: #2a1a1f;
    --surface-sunk: #170d10;
    --border: #47303a;
    --border-strong: #6e4f58;
    --ink: #f7e9d6;
    --ink-muted: #cfb6a3;
    --henna: #f0b545; /* at night the marigold leads */
    --henna-hover: #f6c768;
    --on-henna: #2a1407;
    --marigold: #f0b545;
    --marigold-soft: #3d2a1c;
    --on-marigold: #2a1407;
    --link: #f5c47e;
    --maroon: #c4455a;
    --maroon-soft: #3f1a22;
    --maroon-text: #f3a1ad;
    --focus: #ffd27a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 48px -16px rgb(0 0 0 / 0.7);

    --band: var(--marigold);
    --on-band: var(--on-marigold);
    --bezel: #0d0709;
    --bezel-outline: var(--border-strong);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  }
}

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

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

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  overflow-x: clip;
}

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

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

a {
  color: var(--link);
}

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

main:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.flower-centre {
  fill: var(--marigold);
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-muted);
}

.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: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1rem;
  border-radius: 10px;
  background: var(--henna);
  color: var(--on-henna);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

.wrap {
  position: relative;
  max-width: calc(72rem + 2 * var(--side));
  margin-inline: auto;
  padding-inline: var(--side);
}

.section {
  position: relative;
  padding-block: calc(var(--rhythm) / 2);
}

.eyebrow,
.smallcaps,
.hour {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.section-title,
.close__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-title);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  font-size: var(--text-lead);
  color: var(--ink);
  text-wrap: pretty;
}

.caption {
  font-size: var(--text-caption);
  color: var(--ink-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.625rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.btn--primary {
  background: var(--henna);
  color: var(--on-henna);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--henna-hover);
}

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

.btn--secondary:hover {
  background: var(--surface-sunk);
  border-color: var(--henna);
}

.btn--compact {
  padding-inline: 1rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--inverse {
  background: var(--on-band);
  color: var(--band);
}

.btn--inverse:hover {
  background: color-mix(in srgb, var(--on-band) 88%, var(--band));
}

.btn--inverse:focus-visible {
  outline-color: var(--on-band);
}

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

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: calc(72rem + 2 * var(--side));
  margin-inline: auto;
  padding-inline: var(--side);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  color: var(--henna);
  border-radius: 8px;
}

.logo {
  display: block;
  height: 32px;
  width: 96px;
  fill: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__links {
  display: none;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.site-nav__links a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (min-width: 48rem) {
  .site-nav__links {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.5rem;
  }
}

/* ---------- The vine and the hours ---------- */

.day {
  position: relative;
}

.vine,
.hour {
  display: none;
}

.eyebrow--hour,
.eyebrow__hour {
  color: var(--link);
}

.eyebrow--hour {
  margin-bottom: 0.75rem;
}

@media (min-width: 64rem) {
  .day .wrap,
  .close .wrap {
    padding-left: calc(var(--side) + 7rem);
  }

  .eyebrow--hour,
  .eyebrow__hour {
    display: none;
  }

  .hour {
    display: block;
    position: absolute;
    top: 0.25rem;
    left: calc(var(--side) + 2rem);
    white-space: nowrap;
    color: var(--link);
  }

  .hour--close {
    color: var(--on-band);
  }

  .vine {
    display: block;
    position: absolute;
    top: clamp(2.5rem, 8vw, 5rem);
    bottom: 0;
    left: calc(max(0px, (100% - 72rem - 2 * var(--side)) / 2) + var(--side) + 0.25rem);
    width: 24px;
    overflow: hidden;
    pointer-events: none;
  }

  .vine__stroke {
    position: absolute;
    inset: 0;
    width: 24px;
    height: 100%;
  }

  /* The SVG is stretched about four times tall, so both paths keep a 1.5 px stroke. */
  .vine__stroke path {
    fill: none;
    stroke: var(--henna);
    stroke-width: 1.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }

  /* The whole stem, always there, so the leaves never float. */
  .vine__ghost {
    opacity: 0.22;
  }

  .vine i {
    position: absolute;
    top: calc(var(--i) * 160px + 60px);
    left: 12px;
    width: 10px;
    height: 18px;
    margin-left: -5px;
    margin-top: -18px;
    background: var(--marigold);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -11 4 7.5'%3E%3Cpath d='M0 -3.6 C 2.6 -5.4, 2.6 -8.6, 0 -11 C -2.6 -8.6, -2.6 -5.4, 0 -3.6 Z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -11 4 7.5'%3E%3Cpath d='M0 -3.6 C 2.6 -5.4, 2.6 -8.6, 0 -11 C -2.6 -8.6, -2.6 -5.4, 0 -3.6 Z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    transform-origin: 50% 100%;
    rotate: 55deg;
  }

  .vine i:nth-child(odd) {
    rotate: -55deg;
  }
}

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

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

.hero__grid {
  display: grid;
  gap: 3rem;
}

.hero__copy {
  display: grid;
  gap: 1.25rem;
  align-content: center;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-headline);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--henna);
  hyphens: manual;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 30rem) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.board-stack {
  position: relative;
}

.board {
  position: relative;
  display: grid;
  gap: 0.875rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  font-size: 0.9375rem;
  line-height: 1.4;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.board--blank {
  position: absolute;
  inset: 0;
  transform: translate(24px, 24px) rotate(2deg);
  opacity: 0.6;
  box-shadow: var(--shadow);
  display: none;
}

.board__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.tab {
  display: grid;
  gap: 0.125rem;
  padding: 0.25rem 0.375rem 0.625rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  min-width: 0;
}

.tab__date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.tab__name {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab--current {
  border-bottom-color: var(--marigold);
}

.tab--current .tab__date,
.tab--current .tab__name {
  color: var(--ink);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.125rem;
  border-radius: 50%;
  background: var(--maroon);
  vertical-align: 0.15em;
}

.board__head {
  display: grid;
  gap: 0.25rem;
}

.board__festival {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--ink);
}

.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1rem;
  margin-top: 0.375rem;
  padding: 0.625rem 0.75rem;
  background: var(--marigold-soft);
  border-left: 4px solid var(--marigold);
  border-radius: 8px;
  color: var(--ink);
}

.summary b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.chip--clash {
  background: var(--maroon-soft);
  color: var(--maroon-text);
  border: 1px solid var(--maroon);
}

.slots {
  display: grid;
  gap: 0.5rem;
}

.slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.125rem 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--marigold);
  border-radius: 10px;
}

.slot > * {
  grid-column: 1;
}

.slot__time {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.slot__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
}

.slot__meta {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.slot--clash {
  border-left-color: var(--maroon);
}

.slot .chip {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.gap {
  padding: 0.625rem 0.75rem;
  background: var(--surface-sunk);
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* On the phone the board shows rows 1 to 5 and fades out. */
.slots > :nth-child(n + 6) {
  display: none;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center;
    gap: 3rem;
  }

  /* The brief's scale, held to what the half column can carry in three lines. */
  .headline {
    font-size: min(var(--text-headline), 4.8vw);
  }

  .board-stack {
    transform: rotate(-1.5deg);
    margin: 0 1.5rem 1.5rem 0;
  }

  .board {
    padding: 1.5rem;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .board--blank {
    display: block;
  }

  .slots > :nth-child(n + 6) {
    display: block;
  }

  .slots > .slot:nth-child(n + 6) {
    display: grid;
  }

  .tab {
    padding-inline: 0.75rem;
  }
}

/* ---------- The problem ---------- */

.problem__col {
  max-width: 40rem;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.problem__body {
  font-size: var(--text-lead);
  text-wrap: pretty;
}

.notebook {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink-muted);
}

.notebook li:nth-child(1) {
  rotate: -1.5deg;
}

.notebook li:nth-child(2) {
  rotate: 1deg;
  margin-left: 1.25rem;
}

.notebook li:nth-child(3) {
  rotate: -0.5deg;
  margin-left: 0.5rem;
}

.notebook s {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.notebook s::after {
  content: "";
  position: absolute;
  left: -0.25rem;
  right: -0.25rem;
  top: 52%;
  height: 1.5px;
  background: var(--henna);
  transform-origin: left center;
}

.notebook li:nth-child(2) s::after {
  transition-delay: 160ms;
}

.notebook li:nth-child(3) s::after {
  transition-delay: 320ms;
}

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

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 48rem;
}

.steps {
  display: grid;
  gap: 2.5rem;
}

.step {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

/* A short vine joins the steps. On the phone it turns upright and sits centred
   in the gap under the previous step's illustration, clear of the numerals. */
.step__join {
  position: absolute;
  top: calc(-1.25rem - 12px);
  left: calc(50% - 1.25rem);
  width: 2.5rem;
  height: 24px;
  overflow: visible;
  rotate: 90deg;
}

.step__join-stem {
  fill: none;
  stroke: var(--henna);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
}

.step__join-leaf {
  fill: var(--marigold);
}

.step__num {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--marigold);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}

.illo {
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--surface-sunk);
  border-radius: 12px;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  font-size: 0.9375rem;
  line-height: 1.4;
  min-width: 0;
}

.mini-card {
  display: grid;
  gap: 0.125rem;
  padding: 0.75rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--marigold);
  border-radius: 10px;
}

.mini-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.designs {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.875rem;
}

.designs td {
  padding: 0.4375rem 0.625rem;
  border-top: 1px solid var(--border);
}

.designs tr:first-child td {
  border-top: 0;
}

.designs td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  color: var(--ink-muted);
}

.gap--book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--on-marigold);
  font-weight: 600;
  white-space: nowrap;
}

.form-chip {
  justify-self: start;
  padding: 0.375rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
}

@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .step__join {
    top: 1.25rem;
    left: -2.5rem;
    rotate: none;
  }
}

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

.bento {
  display: grid;
  gap: 1.25rem;
}

.feature {
  display: grid;
  gap: 0.625rem;
  align-content: start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-top: 0.5rem;
}

.feature p {
  color: var(--ink-muted);
}

.feature .illo {
  margin-top: 0;
}

@media (min-width: 48rem) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature--4 {
    grid-column: span 4;
  }

  .feature--2 {
    grid-column: span 2;
  }

  .feature--3 {
    grid-column: span 3;
  }

  .feature {
    padding: 1.5rem;
  }
}

/* Clashes, caught */
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.25rem;
}

.lanes {
  position: relative;
  display: grid;
  gap: 0;
  padding-bottom: 0.25rem;
}

.overlap {
  position: absolute;
  top: -0.5rem;
  bottom: 0;
  left: 87.5%;
  width: 8.33%;
  background: var(--maroon-soft);
  border-inline: 1.5px solid var(--maroon);
}

.lane-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.lane-card .num {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.lane-card b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  grid-column: 1;
}

.lane-card .chip {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.lane-card--ritika {
  width: 100%;
}

.lane-card--anjali {
  justify-self: end;
  width: min(100%, 15rem);
  margin-top: -0.75rem;
  margin-right: 0.5rem;
  rotate: 1deg;
}

/* Overbooked */
.over {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
}

.over__track {
  flex: 0 0 86%;
  height: 14px;
  border-radius: 7px 0 0 7px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-right: 2px solid var(--ink);
  overflow: hidden;
}

.over__fill {
  display: block;
  height: 100%;
  background: var(--henna);
}

.over__tail {
  flex: 0 0 11%;
  height: 14px;
  border-radius: 0 7px 7px 0;
  background: var(--maroon);
}

.illo .chip {
  justify-self: start;
}

/* Earnings */
.earnings {
  display: grid;
  gap: 0.25rem;
}

.earnings div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.earnings dt {
  color: var(--ink-muted);
}

.earnings .earnings__total {
  align-items: baseline;
  border-bottom: 0;
  padding-top: 0.375rem;
}

.earnings__total dt {
  font-weight: 600;
  color: var(--ink);
}

.earnings__total dd {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--henna);
}

/* One tap to confirm */
.illo--chat {
  justify-items: start;
}

.bubble {
  position: relative;
  max-width: 26rem;
  padding: 0.75rem 1rem;
  background: var(--marigold-soft);
  color: var(--ink);
  border-radius: 14px 14px 14px 4px;
  overflow-wrap: anywhere;
}

.bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--marigold-soft);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.copy-btn {
  display: inline-grid;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--henna);
  font-weight: 600;
}

.copy-btn > span {
  grid-area: 1 / 1;
}

.copy-btn__copied {
  opacity: 0;
}

@media (min-width: 40rem) {
  .illo--chat {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* A sheet for the wall: paper is always white */
.illo--sheet {
  justify-items: center;
  padding-block: 1.5rem;
}

.sheet {
  position: relative;
  width: min(100%, 15rem);
  aspect-ratio: 210 / 297;
  padding: 1.5rem 1rem 1rem;
  background: #ffffff;
  color: #2b1a10;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15), 0 14px 28px -12px rgb(0 0 0 / 0.3);
  rotate: -2deg;
  font-size: 0.6875rem;
  line-height: 1.3;
}

.sheet__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 72px;
  height: 22px;
  margin-left: -36px;
  background: #e0a325;
  opacity: 0.85;
  rotate: 3deg;
}

.sheet__title {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.sheet td {
  padding: 0.3rem 0.125rem;
  border-bottom: 1px solid #d8cdbd;
}

.sheet td:last-child {
  text-align: right;
}

.sheet tfoot td {
  border-bottom: 0;
  border-top: 1.5px solid #2b1a10;
  font-weight: 600;
}

/* The two half-width cards share a row: each well fills its card. */
.feature--3 {
  grid-template-rows: 1fr auto auto;
}

.feature--3 .illo {
  align-content: center;
  justify-items: center;
}

/* Yours, on your phone: saved on the phone, one tap to a file. */
.illo--device {
  gap: 0.25rem;
  padding-block: 1.5rem;
}

.device {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  width: 120px;
  height: 220px;
  padding: 1.75rem 0.75rem 0.75rem;
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
}

.device__notch {
  position: absolute;
  top: 0.625rem;
  left: 50%;
  width: 32px;
  height: 5px;
  margin-left: -16px;
  border-radius: 999px;
  background: var(--border-strong);
}

.device__slot {
  height: 48px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-left: 4px solid var(--marigold);
  border-radius: 6px;
}

.device__slot--short {
  height: 28px;
}

.device__arrow {
  overflow: visible;
}

.device__arrow-line,
.device__arrow-head {
  fill: none;
  stroke: var(--henna);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device__arrow-line {
  stroke-dasharray: 4 4;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: center;
  max-width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--henna);
  font-weight: 500;
  box-shadow: var(--shadow);
}

.file-chip svg {
  flex: none;
}

.file-chip .num {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.features__note {
  margin-top: 2rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- Try it ---------- */

.try {
  overflow-x: clip;
}

.try__grid {
  display: grid;
  gap: 2.5rem;
}

.try__copy {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.try__list {
  display: grid;
  gap: 0.625rem;
}

.try__list li {
  position: relative;
  padding-left: 1.5rem;
}

.try__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marigold);
}

.try__embed {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: center;
  min-width: 0;
}

.mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  color: var(--marigold);
  fill: var(--marigold);
  opacity: 0.1;
  pointer-events: none;
  display: none;
}

.phone {
  position: relative;
  width: 100%;
}

.phone iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.try__embed .caption {
  justify-self: start;
}

@media (min-width: 48rem) {
  .try__full {
    display: none;
  }

  .mandala {
    display: block;
  }

  .phone {
    width: auto;
    padding: 14px;
    background: var(--bezel);
    border-radius: 44px;
    box-shadow:
      0 0 0 1px var(--bezel-outline),
      var(--shadow-lift);
  }

  .phone iframe {
    width: 390px;
    height: 780px;
    min-height: 0;
    border: 0;
    border-radius: 30px;
  }

  .try__embed .caption {
    justify-self: center;
    text-align: center;
  }
}

@media (min-width: 64rem) {
  .try__grid {
    grid-template-columns: 4fr 8fr;
    align-items: start;
    gap: 3rem;
  }
}

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

.close {
  margin-top: calc(var(--rhythm) / 2);
  padding-block: var(--rhythm);
  background: var(--band);
  color: var(--on-band);
  overflow: hidden;
}

.close__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--on-band);
  fill: var(--on-band);
  opacity: 0.12;
  pointer-events: none;
}

.close__inner {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.close .eyebrow--hour,
.close .hour {
  color: var(--on-band);
}

.close__title {
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  max-width: 18ch;
}

.close__line {
  font-size: var(--text-lead);
  max-width: 36rem;
}

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

.site-footer {
  padding-block: 2.5rem;
  font-size: var(--text-caption);
  color: var(--ink-muted);
}

.site-footer__inner {
  display: grid;
  gap: 1rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__mark {
  flex: none;
  width: 28px;
  height: 28px;
  fill: var(--henna);
}

.site-footer__fine {
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer__fine {
    text-align: right;
  }
}

/* ---------- Motion: only when it is allowed ---------- */

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

@keyframes pulse {
  50% {
    transform: scale(1.08);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes vine-draw {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes leaf-in {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .drop {
    animation: drop-in 480ms var(--ease) both;
    animation-delay: calc(200ms + var(--i) * 60ms);
  }

  .hero .pulse {
    animation: pulse 500ms var(--ease) 1;
    animation-delay: 1000ms;
  }

  /* Reveals: hidden only when JS can show them again. */
  .js .reveal {
    transition:
      opacity 560ms var(--ease),
      transform 560ms var(--ease);
  }

  .js .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(12px);
  }

  .js .problem .notebook s::after {
    transition: transform 600ms var(--ease);
  }

  .js .problem .reveal:not(.is-in) .notebook s::after {
    transform: scaleX(0);
  }

  .js .feature--copy.is-in .copy-btn__copy {
    opacity: 0;
    transition: opacity 320ms var(--ease) 900ms;
  }

  .js .feature--copy.is-in .copy-btn__copied {
    opacity: 1;
    transition: opacity 320ms var(--ease) 900ms;
  }

  .mandala {
    animation: spin 120s linear infinite;
  }

  @media (hover: hover) and (pointer: fine) {
    .feature,
    .js .feature.reveal {
      transition:
        transform 320ms var(--ease),
        box-shadow 320ms var(--ease),
        opacity 560ms var(--ease);
    }

    .feature:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lift);
    }
  }

  @supports (animation-timeline: scroll()) {
    /* The solid stroke follows the viewport down the day, so on load it is
       already drawn to the bottom of the screen. It is revealed with a clip,
       not a dash, because a non-scaling stroke measures dashes on screen.
       The range ends at exit 0%, when the day's foot reaches the bottom of
       the screen, so the tip stays at the bottom edge all the way down. */
    .day {
      view-timeline: --day block;
    }

    .vine__draw {
      animation: vine-draw linear both;
      animation-timeline: --day;
      animation-range: entry 0% exit 0%;
    }

    .vine i {
      animation: leaf-in linear both;
      animation-timeline: view();
      animation-range: entry 100% cover 60%;
    }
  }
}
