/* Posy launch site. Tokens follow docs/site/BRIEF.md, which shares the app's palette. */

:root {
  color-scheme: light dark;

  /* Paper and ink */
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-sunken: #efe8da;
  --ink: #1b3326;
  --ink-muted: #4f6457;
  --ink-faint: #8a978f; /* decorative only, never text */

  /* Green */
  --accent: #2f6b4a;
  --accent-hover: #275a3e;
  --accent-soft: #e3ece4;
  --on-accent: #fffdf8;

  /* Blush */
  --blush: #d9a5a0;
  --blush-soft: #f3e4e1;
  --glow: rgb(217 165 160 / 28%);

  /* Lines and depth */
  --border: #d9d0c0;
  --border-strong: #b9ad98;
  --shadow-sm: 0 1px 2px rgb(27 51 38 / 6%), 0 1px 1px rgb(27 51 38 / 4%);
  --shadow-md: 0 4px 12px rgb(27 51 38 / 8%), 0 1px 3px rgb(27 51 38 / 6%);
  --shadow-lg: 0 16px 40px rgb(27 51 38 / 16%), 0 4px 12px rgb(27 51 38 / 8%);

  /* Status */
  --warning: #7d4f0b;
  --warning-soft: #f7e8cc;

  /* The sample bouquet, from the seed catalogue */
  --bloom-rose: #b3122e;
  --bloom-eucalyptus: #8da399;
  --bloom-tissue: #f3d9dc;
  --bloom-sunflower: #f2c230;
  --bloom-carnation: #e03c5a;
  --bloom-kraft: #c49a6c;
  --bloom-lily: #f7f4ec;
  --bloom-chrysanthemum: #f5e6c8;
  --bloom-ruscus: #4f7a4a;
  --bloom-linen: #d8cfc0;

  /* Type */
  --font-display:
    "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body:
    "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  --text-headline: clamp(2.5rem, 1.624rem + 3.596vw, 4.5rem);
  --text-section: clamp(1.75rem, 1.421rem + 1.348vw, 2.5rem);
  --text-lead: clamp(1.125rem, 1.07rem + 0.225vw, 1.25rem);
  --text-price: clamp(1.5rem, 1.281rem + 0.899vw, 2rem);

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --content-max: 72rem;
  --gutter: 3rem;
  --section-gap: 6rem;
  --control-height: 2.75rem;
  --control-height-sm: 2.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --focus-ring: 0 0 0 3px rgb(47 107 74 / 35%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15201a;
    --surface: #1c2a22;
    --surface-raised: #233328;
    --surface-sunken: #111a15;
    --ink: #ece6d8;
    --ink-muted: #b4bcb0;
    --ink-faint: #7e8a81;
    --accent: #7fc39a;
    --accent-hover: #93d0ab;
    --accent-soft: #24392d;
    --on-accent: #10231a;
    --blush: #c98d88;
    --blush-soft: #3a2a28;
    --glow: rgb(127 195 154 / 10%);
    --border: #34463b;
    --border-strong: #4c6253;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 35%);
    --shadow-lg: 0 16px 40px rgb(0 0 0 / 50%);
    --warning: #e8b86d;
    --warning-soft: #3b2d14;
    --focus-ring: 0 0 0 3px rgb(127 195 154 / 40%);
  }
}

@media (max-width: 47.99rem) {
  :root {
    --gutter: 1.5rem;
    --section-gap: 4rem;
  }
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The app's soft blush glow behind the hero. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    60rem 24rem at 20% 30%,
    var(--glow),
    transparent 70%
  );
  pointer-events: none;
}

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

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

a {
  color: inherit;
}

svg {
  display: block;
}

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main > .container {
  padding-top: calc(var(--section-gap) / 2);
  padding-bottom: calc(var(--section-gap) / 2);
}

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

.headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-headline);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-section);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.card-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  max-width: 60ch;
}

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

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

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-head--centred {
  justify-items: center;
  text-align: center;
}

.section-head--centred .lead {
  text-wrap: balance;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

.btn--primary:focus-visible {
  box-shadow:
    0 0 0 2px var(--surface),
    var(--focus-ring);
}

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

.btn--secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* The primary button on the dark close band. */
.btn--paper {
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--paper:hover {
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
}

.btn--paper:focus-visible {
  box-shadow:
    0 0 0 2px var(--ink),
    0 0 0 5px var(--bg);
}

/* ------------------------------------------------------------------ */
/* Cards and wells                                                     */
/* ------------------------------------------------------------------ */

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

.well {
  border-radius: var(--radius-md);
  background:
    radial-gradient(80% 60% at 50% 100%, var(--glow), transparent 70%),
    var(--surface-sunken);
}

.swatch {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 12%),
    inset 0 -2px 4px rgb(0 0 0 / 10%),
    inset 0 2px 3px rgb(255 255 255 / 35%);
}

.swatch--sm {
  width: 1rem;
  height: 1rem;
}

/* The bouquet drawings, as the app draws them. */
.bouquet {
  max-width: 100%;
  height: auto;
}

.bouquet .cone {
  stroke: rgb(0 0 0 / 16%);
  stroke-width: 1;
  stroke-linejoin: round;
}

.bouquet .leaf {
  opacity: 0.92;
}

.bouquet .bloom circle {
  stroke: rgb(0 0 0 / 12%);
  stroke-width: 1;
}

.bouquet .bloom ellipse {
  fill: rgb(255 255 255 / 28%);
}

/* ------------------------------------------------------------------ */
/* 0. Header                                                           */
/* ------------------------------------------------------------------ */

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.brand:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.brand__mark {
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.site-nav__links {
  display: flex;
  gap: 1.75rem;
}

.site-nav__links a,
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-nav__links a:hover,
.site-footer__links a:hover {
  color: var(--ink);
}

.site-nav__links a:focus-visible,
.site-footer__links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-nav__links a:active,
.site-footer__links a:active {
  color: var(--accent);
}

@media (max-width: 47.99rem) {
  .site-nav__links,
  .brand__kicker {
    display: none;
  }

  .site-nav__cta {
    min-height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.875rem;
  }
}

/* ------------------------------------------------------------------ */
/* 1. Hero                                                             */
/* ------------------------------------------------------------------ */

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
}

.hero__copy .kicker {
  margin-bottom: -0.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.hero__well {
  padding: 1.5rem;
}

.hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.5rem;
  padding: 1.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.bouquet--hero {
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgb(27 51 38 / 14%));
}

.ticket {
  flex: 1 1 11rem;
  min-width: 0;
}

.ticket__count {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.meter {
  display: block;
  height: 0.375rem;
  margin: 0.5rem 0 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  overflow: hidden;
}

.meter::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--fill, 0) * 100%);
  border-radius: inherit;
  background: var(--accent);
}

.ticket__rows {
  margin-bottom: 1rem;
}

.ticket__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.ticket__row dd {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.ticket__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--bg);
}

.ticket__total-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket__total-value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: 7fr minmax(0, 5fr);
    min-height: 80vh;
  }
}

/* On desktop (docs/site/REVIEW.md, item 1): the bouquet is the brief's
   240 px, the well is a real picture well with 2rem of padding, and the total
   label and value share one line. The page is capped at 72rem, so the picture
   column is at most 420 px wide; the card cannot hold a 240 px bouquet and a
   legible ticket side by side, so the ticket sits under the bouquet and takes
   the card's full width. The copy column keeps the brief's 7fr so the headline
   stays on two lines. */
@media (min-width: 64rem) {
  .hero {
    gap: 4rem;
  }

  .hero-card {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .hero__well {
    padding: 2rem;
  }

  .bouquet--hero {
    width: 240px;
    height: 288px;
  }

  .ticket {
    flex: 1 1 10rem;
  }

  .ticket__total {
    flex-wrap: nowrap;
  }
}

@media (max-width: 47.99rem) {
  .bouquet--hero {
    width: 200px;
    height: 240px;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .hero__well {
    padding: 1rem;
  }
}

/* The signature move: the roses assemble and the ticket adds up.
   Only once the script has confirmed motion is welcome (.js-motion). */
@keyframes bloom-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

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

.js-motion .bouquet--hero .leaf {
  animation: fade-in var(--duration-base) var(--ease-out) both;
}

.js-motion .bouquet--hero .bloom {
  transform-box: fill-box;
  transform-origin: center;
  animation: bloom-in var(--duration-slow) var(--ease-out) both;
  animation-delay: calc(200ms + var(--i) * 60ms);
}

.js-motion .bouquet--hero .cone {
  animation: fade-in var(--duration-slow) var(--ease-out) both;
  animation-delay: 1180ms;
}

.js-motion .ticket__row {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.js-motion .ticket__row.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* 2. At the counter                                                   */
/* ------------------------------------------------------------------ */

.counter {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.counter__argument {
  display: grid;
  gap: 1.25rem;
  max-width: 60ch;
  font-size: var(--text-lead);
}

.counter__argument strong {
  font-weight: 600;
}

.counter__close {
  max-width: 60ch;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-section);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ */
/* 3. How it works                                                     */
/* ------------------------------------------------------------------ */

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

.step {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
}

.step__number {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

.step__art {
  margin: 0.5rem 0 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.step .card-title {
  margin-top: 0.25rem;
}

.step p:last-child {
  color: var(--ink-muted);
}

/* Side by side, the three cards share rows on a subgrid so number, art,
   title and copy line up across the row (docs/site/REVIEW.md, item 2). */
@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
  }

  .step {
    grid-row: span 4;
    grid-template-rows: subgrid;
  }

  .step__art {
    min-height: 13rem;
    display: grid;
    align-content: center;
  }
}

/* Step 1: the picker rows. */
.mini-picker {
  display: grid;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mini-picker__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "swatch name stepper"
    "swatch price stepper";
  align-items: center;
  gap: 0 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.mini-picker__row + .mini-picker__row {
  border-top: 1px solid var(--border);
}

.mini-picker__row .swatch {
  grid-area: swatch;
}

.mini-picker__name {
  grid-area: name;
  font-weight: 500;
  line-height: 1.3;
}

.mini-picker__price {
  grid-area: price;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.mini-stepper {
  grid-area: stepper;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 0.875rem;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.mini-stepper__value {
  min-width: 2ch;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini-stepper--set {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.js-motion .mini-stepper--set:not(.is-set) {
  border-color: var(--border-strong);
  box-shadow: none;
}

/* Step 2: the choice rows. */
.mini-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: var(--control-height);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
  font-size: 0.875rem;
}

.mini-choice + .mini-choice {
  margin-top: 0.5rem;
}

.mini-choice__radio {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--surface-raised);
  box-shadow:
    inset 0 0 0 3px var(--surface-raised),
    inset 0 0 0 8px var(--accent);
}

.mini-choice__name {
  flex: 1 1 auto;
  font-weight: 500;
}

.mini-choice__detail {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* Step 3: the order card. */
.mini-order {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
}

.mini-order::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.mini-order__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}

.mini-order__shop {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1rem;
  font-weight: 500;
}

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

.mini-order__message {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
}

.bouquet--tiny {
  justify-self: center;
}

.mini-order__rows {
  display: grid;
}

.mini-order__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.mini-order__total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.25rem;
  border-top: 1px solid var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* 4. What it does                                                     */
/* ------------------------------------------------------------------ */

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.5rem;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    opacity var(--duration-slow) var(--ease-out);
}

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

.feature__icon {
  margin-bottom: 0.25rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ */
/* 5. Change a price once                                              */
/* ------------------------------------------------------------------ */

.guide {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.guide__copy {
  display: grid;
  gap: 1rem;
}

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

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

.preset {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.preset__picture {
  display: grid;
  place-items: center;
  padding: 0.5rem;
}

.preset__picture .bouquet {
  filter: drop-shadow(0 3px 5px rgb(27 51 38 / 14%));
}

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

.preset__name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  font-weight: 500;
}

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

.preset__price {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-price);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: color var(--duration-slow) var(--ease-out);
}

.js-motion .preset__price:not(.is-in) {
  color: var(--ink-muted);
}

@media (min-width: 48rem) {
  .guide {
    grid-template-columns: 5fr 7fr;
  }
}

@media (max-width: 47.99rem) {
  .guide__copy {
    order: -1;
  }
}

/* ------------------------------------------------------------------ */
/* 6. Try it                                                           */
/* ------------------------------------------------------------------ */

.tablet {
  padding: 12px;
  background: var(--ink);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.tablet__screen {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: calc(1.5rem - 12px);
  background: var(--bg);
}

.try__after {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 47.99rem) {
  .tablet {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 12px 0;
    border-radius: 0;
  }

  .tablet__screen {
    aspect-ratio: auto;
    height: 700px;
    border-radius: 0;
  }
}

/* ------------------------------------------------------------------ */
/* 7. The back room                                                    */
/* ------------------------------------------------------------------ */

.backroom {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.backroom__copy {
  display: grid;
  gap: 1rem;
}

.editor {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  font-size: 0.875rem;
}

.editor__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.mini-field {
  display: grid;
  gap: 0.25rem;
}

.mini-field__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.mini-field__input {
  display: flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  font-variant-numeric: tabular-nums;
}

.mini-field__swatch {
  width: var(--control-height);
  height: var(--control-height);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 -2px 4px rgb(0 0 0 / 10%);
}

.months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.month {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: var(--control-height-sm);
  padding: 0 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  font-weight: 500;
}

.month::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border-radius: 0.2rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
}

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

.month--on::before {
  border-color: var(--accent);
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.5l2 2 4-5' fill='none' stroke='%23fffdf8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.catalogue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "swatch name badge price"
    "swatch season badge price";
  align-items: center;
  gap: 0 0.75rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.catalogue-row .swatch {
  grid-area: swatch;
}

.catalogue-row__name {
  grid-area: name;
  font-weight: 500;
}

.catalogue-row__season {
  grid-area: season;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.catalogue-row__price {
  grid-area: price;
  font-variant-numeric: tabular-nums;
}

.badge {
  grid-area: badge;
  padding: 0 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .backroom {
    grid-template-columns: 7fr 5fr;
  }
}

@media (max-width: 47.99rem) {
  .editor {
    padding: 1rem;
  }

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

  .editor__fields .mini-field:first-child {
    grid-column: 1 / -1;
  }

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

/* ------------------------------------------------------------------ */
/* 8. Close                                                            */
/* ------------------------------------------------------------------ */

.close {
  margin-top: calc(var(--section-gap) / 2);
  padding: 6rem 0;
  background: var(--ink);
  color: var(--bg);
}

.close__inner {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}

.close__text {
  opacity: 0.85;
}

/* ------------------------------------------------------------------ */
/* 9. Footer                                                           */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--bg);
  padding: 2rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

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

.site-footer__name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-footer__credit {
  flex: 1 0 100%;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 47.99rem) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Reveals on entry                                                    */
/* ------------------------------------------------------------------ */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.js-motion .feature[data-reveal].is-in {
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    opacity var(--duration-slow) var(--ease-out);
}

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

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

  html {
    scroll-behavior: auto;
  }

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