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

/* Palettes: "powder" is the site's colour, "night" is the dark mode behind the moon button. */

:root,
[data-theme="powder"] {
  --bg: #fbf4f1;
  --bg-raised: #f5e9e5;
  --ribbon-bg: #fce8e3;
  --surface-1: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(255, 255, 255, 0.5);
  --surface-hover: #ffffff;
  --border: rgba(94, 69, 53, 0.11);
  --border-strong: rgba(94, 69, 53, 0.2);
  --border-control: rgba(94, 69, 53, 0.65); /* 3:1 against the page, for fields and checkboxes */
  --border-hover: rgba(94, 69, 53, 0.35);
  --text: #3d2b24;
  --muted: #7a645b;
  --rose: #e2a3ad;
  --peach: #efc4af;
  --lilac: #c9b6da;
  --blush: #f2d3d6;
  --ink: #a65266;
  --ink-2: #8a5a4e;
  --on-accent: #3d2b24;
  --grad: linear-gradient(115deg, #f0c8b4 0%, #e4a7b2 50%, #cdb9de 100%);
  --grad-text: linear-gradient(115deg, #b8725c 0%, #b25a72 50%, #8b73ac 100%);
  --accent-shadow: rgba(201, 120, 140, 0.35);
  --accent-shadow-strong: rgba(201, 120, 140, 0.5);
  --nav-bg: rgba(251, 244, 241, 0.82);
  --grid-line: rgba(94, 69, 53, 0.045);
  --glow-1: #f4c5cd;
  --glow-2: #f7dcc8;
  --glow-3: #e0d3ef;
  --glow-opacity: 0.75;
  --ghost-stroke: rgba(94, 69, 53, 0.08);
  --streak: rgba(214, 140, 156, 0.6);
  --spot: rgba(226, 163, 173, 0.22);
  --shadow: rgba(94, 69, 53, 0.28);
  --featured-bg: linear-gradient(180deg, #fffaf8, #fdf3f0);
  --cal-bg: var(--featured-bg);
  --cal-day-bg: var(--surface-1);
  --cal-muted: var(--muted);
  --cal-ink: var(--ink);
  --cta-bg: #fffaf8;
  --scrollbar: #e2cfc8;
  --danger: #b3263e;
  --logo-light: none;
  --logo-dark: block;
  --logo-ink: #5e4534; /* the flat colour of logo-brown.webp */
  color-scheme: light;
}

[data-theme="night"] {
  --bg: #0e090c;
  --bg-raised: #160e13;
  --ribbon-bg: #241219;
  --surface-1: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.015);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 228, 238, 0.1);
  --border-strong: rgba(255, 228, 238, 0.18);
  --border-control: rgba(255, 228, 238, 0.45);
  --border-hover: rgba(255, 228, 238, 0.38);
  --text: #f8f0ec;
  --muted: #c2b3b6;
  --rose: #f06a8f;
  --peach: #ffa27a;
  --lilac: #b89cf0;
  --blush: #f7c6d3;
  --ink: #f06a8f;
  --ink-2: #f7c6d3;
  --on-accent: #1d0b12;
  --grad: linear-gradient(115deg, #ffa27a 0%, #f06a8f 48%, #b89cf0 100%);
  --grad-text: var(--grad);
  --accent-shadow: rgba(240, 106, 143, 0.75);
  --accent-shadow-strong: rgba(240, 106, 143, 0.95);
  --nav-bg: rgba(14, 9, 12, 0.72);
  --grid-line: rgba(255, 235, 242, 0.04);
  --glow-1: #a8244f;
  --glow-2: #b4512f;
  --glow-3: #5a3f9e;
  --glow-opacity: 0.45;
  --ghost-stroke: rgba(255, 228, 238, 0.06);
  --streak: rgba(255, 196, 214, 0.55);
  --spot: rgba(240, 106, 143, 0.16);
  --shadow: rgba(0, 0, 0, 0.8);
  --featured-bg: linear-gradient(180deg, #1b1117, #130c10);
  --cal-bg: var(--featured-bg);
  --cal-day-bg: var(--surface-1);
  --cal-muted: var(--muted);
  --cal-ink: var(--ink);
  --cta-bg: #140c11;
  --scrollbar: #3a2630;
  --danger: #ff98a8;
  --logo-light: block;
  --logo-dark: none;
  --logo-ink: #f4e8da; /* the flat colour of logo-ivory.webp */
  color-scheme: dark;
}

:root {
  --font: "Rubik", "Arial Hebrew", Arial, sans-serif;
  --font-brand: "Unbounded", "Rubik", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 12vw, 168px);
  --radius: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* the nav once it turns solid */
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--scrollbar) var(--bg);
}

body {
  margin: 0;
  transition: background-color 0.5s, color 0.5s;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

::selection { background: var(--rose); color: var(--text); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Links to #top hand focus to the whole page; Safari would ring all of it. */
main:focus { outline: none; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }

p { margin: 0; }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gradient-text {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s var(--ease-in-out) infinite alternate;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.skip {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

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

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out), background-position 0.6s var(--ease-out), border-color 0.25s, background-color 0.25s;
}

.pill:active { transform: scale(0.97); }

.pill-primary {
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 100% 50%;
  color: var(--on-accent);
  box-shadow: 0 10px 34px -12px var(--accent-shadow);
}

.pill-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

.pill-lg { padding: 17px 30px; font-size: 1.0625rem; }

@media (hover: hover) {
  .pill-primary:hover {
    background-position: 0% 50%;
    box-shadow: 0 16px 44px -12px var(--accent-shadow-strong);
    transform: translateY(-2px);
  }
  .pill-ghost:hover { border-color: var(--border-hover); background: var(--surface-hover); }
}

/* Nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease-out), background-color 0.4s, border-color 0.4s;
}

.nav.is-solid {
  height: 70px;
  background: var(--nav-bg);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

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

.brand img { width: 46px; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark { display: var(--logo-dark); }

.brand-word {
  color: var(--logo-ink);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  direction: ltr;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }

@media (hover: hover) {
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { transform: scaleX(1); }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--glow-opacity);
  will-change: transform;
}

.glow-rose { width: 46vw; height: 46vw; top: -12vw; left: -8vw; background: var(--glow-1); animation: drift-a 18s var(--ease-in-out) infinite alternate; }
.glow-peach { width: 34vw; height: 34vw; bottom: -14vw; right: -6vw; background: var(--glow-2); animation: drift-b 22s var(--ease-in-out) infinite alternate; }
.glow-lilac { width: 38vw; height: 38vw; top: -10vw; right: 6vw; background: var(--glow-3); animation: drift-c 20s var(--ease-in-out) infinite alternate; }

@keyframes drift-a { to { transform: translate(8vw, 6vw) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-6vw, -5vw) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-7vw, 7vw) scale(1.08); } }

.ghost {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  width: max-content;
  direction: ltr;
  transform: translateY(-50%);
  animation: ghost 60s linear infinite;
}

.ghost span {
  padding-inline-end: 0.3em;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 19vw;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost-stroke);
}

@keyframes ghost { to { transform: translate(-50%, -50%); } }

.streak {
  position: absolute;
  top: 62%;
  left: -30%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--streak), transparent);
  animation: streak 7s var(--ease-in-out) infinite;
}

@keyframes streak {
  0%, 30% { transform: translateX(0); opacity: 0; }
  40% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(450%); opacity: 0; }
}

.petals { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  max-width: 1100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 60%, transparent);
  animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ink) 0%, transparent); } }

.hero-title {
  margin-top: 30px;
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hero-title .line { display: block; padding-bottom: 0.06em; }

.hero-sub {
  max-width: 44rem;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}

.chip-icon.rose { background: color-mix(in srgb, var(--rose) 22%, transparent); color: var(--ink); }
.chip-icon.peach { background: color-mix(in srgb, var(--peach) 24%, transparent); color: var(--ink); }
.chip-icon.lilac { background: color-mix(in srgb, var(--lilac) 26%, transparent); color: var(--ink); }
.chip-icon.big { width: 56px; height: 56px; border-radius: 16px; }
.chip-icon.big .icon { width: 28px; height: 28px; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--border-strong);
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: var(--grad);
  animation: cue 2.2s var(--ease-in-out) infinite;
}

@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Hero entrance */

.js [data-hero] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .is-loaded [data-hero] { opacity: 1; transform: none; filter: none; }

/* Ribbon */

/* The whole strip links to the quote form. Left to right, because what runs through it is English. */
.ribbon {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 12px 0;
  border-block: 1px solid var(--border);
  background: var(--ribbon-bg);
  direction: ltr;
  text-decoration: none;
}

.ribbon:focus-visible { outline-offset: -3px; }

/* Hold still under the pointer so the line can be read before the click. */
@media (hover: hover) {
  .ribbon:hover .ribbon-track { animation-play-state: paused; }
}

/* The end padding equals the gap so the loop stays seamless. */
.ribbon-track {
  --wall-h: 32px;
  display: flex;
  align-items: center;
  gap: calc(var(--wall-h) * 0.6);
  width: max-content;
  padding-inline-end: calc(var(--wall-h) * 0.6);
  animation: ribbon 130s linear infinite;
}

/* A picture, since hundreds of live SVG flowers would stutter on a phone. */
.ribbon-track img { flex: none; width: auto; max-width: none; height: var(--wall-h); }

.ribbon-spark {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1C12.9 8 16 11.1 23 12 16 12.9 12.9 16 12 23 11.1 16 8 12.9 1 12 8 11.1 11.1 8 12 1Z'/%3E%3C/svg%3E");
  flex: none;
  width: calc(var(--wall-h) * 0.95);
  height: calc(var(--wall-h) * 0.95);
  background: linear-gradient(135deg, #efb39f, #d98198 50%, #b79ad0);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

@keyframes ribbon { to { transform: translateX(-50%); } }

.ribbon-wrap { position: relative; }

/* The one switch that freezes everything on the page that moves for ever (WCAG 2.2.2). */
.motion-toggle {
  appearance: none;
  position: absolute;
  inset-block: 0;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-block: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--text);
  cursor: pointer;
}

.motion-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.motion-toggle svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: currentColor; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }

html[data-motion="off"] :is(.gradient-text, .glow-rose, .glow-peach, .glow-lilac, .ghost, .streak, .dot, .ribbon-track) { animation-play-state: paused; }
html[data-motion="off"] .scroll-cue i::after { animation-play-state: paused; }
html[data-motion="off"] .cta-box::before { animation-play-state: paused; }

/* Privacy and accessibility pages */

.legal-head { padding: 24px var(--gutter) 0; max-width: 780px; margin-inline: auto; }
.legal { max-width: 780px; margin-inline: auto; padding: 32px var(--gutter) 72px; }
.legal:focus { outline: none; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-bottom: 18px; }
.legal h2 { font-size: 1.25rem; margin-top: 34px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--text); font-size: 1.0625rem; line-height: 1.75; }
.legal ul { padding-inline-start: 22px; list-style: disc; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { font-weight: 600; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 10px; }
.legal-fill { padding-inline: 4px; border-radius: 4px; background: #fbe08a; color: #3d2b24; }
.legal-updated { margin-top: 40px; color: var(--muted); font-size: 0.9375rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sections */

.section {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  padding-top: var(--section);
  /* Links land on the heading, just under the nav, not on the section's empty top. */
  scroll-margin-top: calc(28px - var(--section));
}

.section.narrow { width: min(100% - 2 * var(--gutter), 860px); }

.section-head { max-width: 760px; margin-bottom: 56px; }

.section-head p a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.section-head h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.1875rem;
  max-width: 36rem;
}

/* Cards */

.card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 30px 60px -30px var(--shadow);
  }
  .card:hover::before { opacity: 1; }
}

.card h3 { font-size: 1.6rem; line-height: 1.15; }
.card p { color: var(--muted); }

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

.workshop { display: flex; flex-direction: column; gap: 18px; min-height: 440px; }

.workshop h3 { margin-top: 10px; font-size: 1.85rem; }

/* Every workshop card wears the gradient frame. */
.card.workshop {
  border-color: transparent;
  background:
    var(--featured-bg) padding-box,
    var(--grad) border-box;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.tags li {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.875rem;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}

.more .icon { transition: transform 0.35s var(--ease-out); }

@media (hover: hover) {
  .more:hover .icon { transform: translateX(-5px); }
}

.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.why-card { padding-top: 46px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; }

.why-card::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 34px;
  width: 38px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  transition: width 0.5s var(--ease-out);
}

@media (hover: hover) {
  .why-card:hover::after { width: 76px; }
}

.why-icon { width: 34px; height: 34px; margin-top: 12px; color: var(--line); }

.why-card h3 { margin-top: 12px; }

/* Steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

/* The track runs between the first and last node; JS measures them into --track-start and --track-len. */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 31px;
  right: var(--track-start, 31px);
  width: var(--track-len, calc(100% - 62px));
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}

/* The fill grows to where the reader is, with a soft bead at its tip that slips under each node it reaches. */
.steps::after {
  top: 27px;
  width: calc(var(--track-len, 0px) * var(--progress, 0));
  height: 10px;
  background:
    radial-gradient(circle at 5px 50%, var(--rose) 0 3.5px, transparent 4px),
    var(--grad) right center / calc(100% - 3px) 2px no-repeat;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--rose) 55%, transparent));
}

.step { position: relative; z-index: 1; }

.step-node {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--muted);
  transition: border-color 0.5s, box-shadow 0.5s, color 0.5s;
}

/* The lit face, faded in over the plain one (gradients don't transition). */
.step-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.5s;
}

.step-node .icon { width: 26px; height: 26px; }

.step.is-lit .step-node {
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--rose) 16%, transparent), 0 12px 28px -10px var(--accent-shadow-strong);
  animation: node-lit 0.6s var(--ease-out);
}

.step.is-lit .step-node::before { opacity: 1; }

@keyframes node-lit { 40% { transform: scale(1.08); } }

.step h3,
.step p { transition: opacity 0.5s; }

/* Steps the reader hasn't reached yet wait a little quieter. */
.js .step:not(.is-lit) h3 { opacity: 0.7; }

.step h3 { margin-top: 26px; font-size: 1.45rem; }
.step p { margin-top: 10px; color: var(--muted); }
.step-note { display: block; margin-top: 8px; font-size: 0.8125rem; }

/* Open workshops calendar: every Friday carries the Bloomz sticker. */

.cal {
  --muted: var(--cal-muted);
  --ink: var(--cal-ink);
  padding: clamp(18px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--cal-bg);
  box-shadow: 0 34px 70px -46px var(--shadow);
}

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

.cal-title { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 16px); min-width: 0; }

.cal-month { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }

.cal-nav { display: flex; gap: 10px; }

.cal-btn .icon { width: 20px; height: 20px; }
.cal-prev .icon { transform: scaleX(-1); }
.cal-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.cal-week,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 0.8vw, 10px);
}

.cal-week { margin-bottom: 10px; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.cal-week .short { display: none; }

.cal-day {
  position: relative;
  min-height: clamp(54px, 9.5vw, 128px);
  border: 1px solid var(--border);
  border-radius: clamp(12px, 1.6vw, 20px);
  background: var(--cal-day-bg);
}

.cal-num {
  position: absolute;
  top: clamp(5px, 0.9vw, 12px);
  inset-inline-start: clamp(6px, 1vw, 14px);
  display: grid;
  place-items: center;
  min-width: clamp(22px, 2.4vw, 30px);
  height: clamp(22px, 2.4vw, 30px);
  border-radius: 999px;
  font-size: clamp(0.8125rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cal-day.is-today .cal-num { background: var(--ink); color: var(--bg); }
.cal-day.is-past { opacity: 0.45; }

.cal-day.is-workshop {
  border-color: transparent;
  background: var(--grad);
}

/* A full workshop stays on the calendar, faded, and can't be chosen. */
.cal-day.is-full { border-style: dashed; border-color: var(--border-strong); background: var(--cal-day-bg); }
.cal-day.is-full .cal-tag { color: var(--muted); }

.cal-open,
.cal-day.is-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 0.8vw, 10px);
  padding: clamp(24px, 3vw, 40px) 4px clamp(6px, 1.2vw, 14px);
}

.cal-open {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  color: var(--on-accent);
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.3s, background-color 0.3s;
}

.cal-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.cal-open[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--text); }

.cal-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(26px, 3.6vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fbf6f1;
  box-shadow: inset 0 0 0 2px #fbf6f1, inset 0 0 0 3px rgba(94, 68, 51, 0.3), 0 4px 10px -4px rgba(0, 0, 0, 0.3);
  transform: rotate(-8deg);
  transition: transform 0.45s var(--ease-out);
}

.cal-seal img { width: 68%; height: auto; }

.cal-tag { color: var(--on-accent); font-size: clamp(0.75rem, 1vw, 0.9375rem); font-weight: 500; line-height: 1.2; }

@media (hover: hover) {
  .cal-open:hover { background: rgba(255, 255, 255, 0.22); }
}

.cal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.cal-pick { display: flex; align-items: center; gap: 14px; }
.cal-pick small { display: block; color: var(--muted); font-size: 0.9375rem; }
.cal-pick small:empty { display: none; }
.cal-pick strong { display: block; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.25; }

/* Booking an open workshop: name, phone and consent, sent to the tracker. */

.cal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  grid-template-areas:
    "pick fields"
    "consent send";
  align-items: center;
  gap: 22px 32px;
}

.cal-form .cal-pick { grid-area: pick; }

.cal-fields {
  grid-area: fields;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.cal-fields .field > label { margin-bottom: 8px; font-size: 1rem; }

.cal-consent { grid-area: consent; }

.cal-send { grid-area: send; justify-self: end; }

.cal-send .send-error { text-align: end; }

.consent-note { margin-top: 6px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.consent-note a,
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 0.9375rem; }

.cal-note { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

.quote-form[hidden],
.cal-form[hidden],
.sent[hidden] { display: none; }

.send-error { margin-top: 12px; color: var(--danger); font-size: 0.9375rem; font-weight: 500; text-align: center; }

/* Thank-you panel: takes the form's place once a lead has arrived. */

.sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: clamp(30px, 4vw, 48px) 20px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--featured-bg);
  text-align: center;
}

.sent:focus { outline: none; }
.sent .cal-seal { width: 64px; margin-bottom: 6px; }
.sent h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.sent p { max-width: 34rem; color: var(--muted); font-size: 1.0625rem; }
.sent .sent-sum { color: var(--ink); font-weight: 500; }
.sent-sum span { white-space: nowrap; }

/* Open-workshop calendar: numbers in circles at every size, the same shape as the
   quote form's date picker. On a phone the hour is left out; the key explains the marks. */
#calendar .cal-days { gap: clamp(2px, 0.6vw, 8px) 0; }
#calendar .cal-day,
#calendar .cal-day.is-workshop,
#calendar .cal-day.is-full { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: clamp(40px, 7.2vw, 96px); padding: 0; border: 0; border-radius: 0; background: none; }
#calendar .cal-num { position: static; width: clamp(36px, 4.2vw, 54px); min-width: 0; height: clamp(36px, 4.2vw, 54px); font-size: clamp(0.9375rem, 1.3vw, 1.125rem); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
#calendar .cal-day.is-today .cal-num { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
#calendar .cal-open,
#calendar .cal-open[aria-pressed="true"] { justify-content: center; gap: 6px; padding: 0; background: none; box-shadow: none; }
#calendar .cal-open .cal-num,
#calendar .cal-day.is-today .cal-open .cal-num { background: var(--grad); color: var(--on-accent); font-weight: 700; }
#calendar .cal-open[aria-pressed="true"] .cal-num { box-shadow: 0 0 0 2px var(--cta-bg), 0 0 0 4px var(--ink); }
#calendar .cal-day.is-full .cal-num { border: 1.5px dashed var(--border-strong); color: var(--muted); text-decoration: line-through; }
#calendar .cal-tag { color: var(--text); font-size: clamp(0.75rem, 0.95vw, 0.875rem); font-weight: 500; }
#calendar .cal-day.is-full .cal-tag { color: var(--muted); }
#calendar .cal-key { display: flex; }

@media (hover: hover) {
  #calendar .cal-open:hover { background: none; }
  #calendar .cal-open:hover .cal-num { transform: scale(1.06); }
}

@media (max-width: 560px) {
  #calendar .cal-day.is-full .cal-tag { display: none; }
}

/* The key under the month: what a coloured, dashed or ringed day means. */
.cal-key { display: none; justify-content: center; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 0.8125rem; }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.cal-key i.key-full { background: none; border: 1.5px dashed var(--border-strong); }
.cal-key i.key-today { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* What the open workshop includes: a pill that raises a sheet. */

.cal-perks-open {
  display: flex;
  width: fit-content;
  margin: 22px auto 0;
  align-items: center;
  gap: 14px;
  padding: 10px;
  padding-inline-end: 14px;
  border: 0;
  border-radius: 999px;
  /* Same face as the primary pills, so it reads as a button. */
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 100% 50%;
  color: var(--on-accent);
  box-shadow: 0 10px 34px -12px var(--accent-shadow);
  font: inherit;
  cursor: pointer;
  transition: background-position 0.5s var(--ease-out), box-shadow 0.3s;
}

.cal-perks-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.cal-perks-open .chip-icon,
.perks-sheet .chip-icon { background: rgba(255, 255, 255, 0.45); color: var(--on-accent); }

[data-theme="night"] .cal-perks-open .chip-icon,
[data-theme="night"] .perks-sheet .chip-icon { background: rgba(255, 255, 255, 0.22); }

.cal-perks-q { font-size: 1.0625rem; font-weight: 600; }

.cal-perks-toggle { display: grid; place-items: center; width: 34px; height: 34px; margin-inline-start: auto; }

/* Chevron points up: the answer rises from the bottom. */
.cal-perks-toggle .icon { width: 20px; height: 20px; transform: rotate(180deg); }

@media (hover: hover) {
  .cal-perks-open:hover { background-position: 0% 50%; box-shadow: 0 16px 44px -12px var(--accent-shadow-strong); }
}

/* The phone's line under the month; the desktop has the form there instead. */
.cal-phone { display: none; }

/* Sheets: native dialogs that rise from the bottom of the screen. */

.sheet {
  position: fixed;
  inset: auto 0 var(--sheet-lift, 0px);
  width: min(100%, 760px);
  max-width: 100%;
  max-height: var(--sheet-max, 88svh);
  margin: 0 auto;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 -18px 50px -22px var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(105%);
  transition: transform 0.45s var(--ease-out);
  transition: transform 0.45s var(--ease-out), overlay 0.45s allow-discrete, display 0.45s allow-discrete;
}

.sheet[open] { transform: none; }

@starting-style {
  .sheet[open] { transform: translateY(105%); }
}

.sheet::backdrop {
  background: rgba(30, 18, 22, 0);
  transition: background-color 0.3s;
  transition: background-color 0.3s, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

.sheet[open]::backdrop { background: rgba(30, 18, 22, 0.34); }

@starting-style {
  .sheet[open]::backdrop { background: rgba(30, 18, 22, 0); }
}

/* The page behind stays put while a sheet is up. */
html:has(.sheet[open]) { overflow: hidden; scrollbar-gutter: stable; }

.sheet-head { position: sticky; top: -8px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.sheet-head h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

.sheet-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-inline-end: -10px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.sheet-close:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }

.perks-sheet { background: var(--grad); color: var(--on-accent); }

/* The booking form inside its sheet: the date is already in the sheet's title. */
.cal-book .cal-foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 0; border: 0; }
.cal-book .cal-form[hidden] { display: none; }
.cal-book .cal-pick { display: none; }
.cal-book .sent { margin-top: 4px; }
.cal-book:has([data-cal-thanks]:not([hidden])) [data-cal-sheet-title],
.cal-book:has([data-cal-thanks]:not([hidden])) .cal-note { visibility: hidden; }
.cal-book:has([data-cal-thanks]:not([hidden])) .cal-note { display: none; }

.perks-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px dashed color-mix(in srgb, var(--on-accent) 22%, transparent);
}

.perks-list p,
.cal-perks-seats { color: color-mix(in srgb, var(--on-accent) 88%, transparent); }

.perks-list strong { display: block; color: var(--on-accent); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }

.cal-perks-seats { padding-top: 14px; font-size: 0.9375rem; }

/* Quotes */

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

.quote { margin: 0; display: flex; flex-direction: column; gap: 22px; }

.quote blockquote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
}

.quote figcaption { color: var(--ink); font-weight: 500; }

/* Real WhatsApp messages, shown as received bubbles: the corner on the
   reading side is squared like a chat tail, and each keeps its own length. */
.quotes:has(.chat) { align-items: start; }

.quote.chat { border-start-start-radius: 6px; }
.quote.chat blockquote { font-size: 1.125rem; line-height: 1.65; overflow-wrap: anywhere; }

.quote.chat figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

.quote.chat figcaption .icon { width: 18px; height: 18px; color: var(--ink); }

/* FAQ */

.faq { border-top: 1px solid var(--border); }

.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}

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

.faq summary .icon {
  width: 22px;
  height: 22px;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out);
}

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

@media (hover: hover) {
  .faq summary:hover { color: var(--ink); }
}

.faq details p {
  padding: 0 0 28px;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.faq details[open] p { animation: open 0.5s var(--ease-out); }

/* A phone line under the questions, for anything they don't answer. */
.faq-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.faq-more h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }

.faq-call { font-weight: 600; }

.faq-call .icon { width: 18px; height: 18px; }

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

/* CTA */

.cta-box {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 8vw, 96px) clamp(22px, 6vw, 80px);
  border-radius: 34px;
  background: var(--cta-bg);
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--peach), var(--rose), var(--lilac), transparent 40%, transparent 60%, var(--peach));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}

@keyframes spin { to { --angle: 360deg; } }

.cta-glow {
  position: absolute;
  inset: auto 15% -60% 15%;
  height: 80%;
  z-index: -1;
  border-radius: 50%;
  background: var(--rose);
  filter: blur(110px);
  opacity: 0.3;
}

.cta-box h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; }

.quote-head p { margin: 20px auto 0; max-width: 32rem; color: var(--muted); font-size: 1.1875rem; }

/* Quote form */

.quote-form {
  --leaf: #a9ba9c;
  --leaf-2: #8ea383;
  --track: color-mix(in srgb, var(--text) 10%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 52px;
  text-align: start;
}


.quote-fields { display: flex; flex-direction: column; gap: 34px; padding-top: 6px; }

.field { min-width: 0; margin: 0; padding: 0; border: 0; }

.field > label,
.field legend,
.count-head label {
  display: block;
  padding: 0;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--border-control);
  border-radius: 16px;
  background: var(--surface-1);
  color: var(--text);
  font: 400 1.0625rem/1.3 var(--font);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.field input[dir="ltr"] { text-align: right; }

.field input::placeholder { color: var(--muted); opacity: 1; }

.field input[type="text"]:focus-visible,
.field input[type="tel"]:focus-visible {
  outline: none;
  border-color: var(--ink);
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 30%, transparent);
}

.field input[aria-invalid="true"] { border-color: var(--danger); }

.field-error { margin-top: 8px; color: var(--danger); font-size: 0.9375rem; }

/* Head count */

/* The label keeps the field's start edge; the number sits over the middle of the slider. */
.count-head { display: grid; justify-items: start; }

.count-head label { white-space: nowrap; margin-bottom: 4px; }

.count-value { justify-self: center; display: flex; align-items: baseline; gap: 10px; color: var(--muted); }

.count-value bdi {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.6vw, 3.25rem);
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.count-control { display: flex; align-items: center; gap: 12px; margin-top: 6px; }

.step-btn {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 0 2px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--text);
  font: 400 1.5rem/1 var(--font);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: border-color 0.25s, background-color 0.25s, transform 0.2s var(--ease-out);
}

.step-btn:active { transform: scale(0.92); }

@media (hover: hover) {
  .step-btn:hover { border-color: var(--border-hover); background: var(--surface-hover); }
}

/* Both handles sit on one drawn track. The minimum is on the right in RTL;
   --from and --to are the filled stretch as fractions 0..1. */
.range-pair {
  --thumb: 34px;
  --from: 0;
  --to: 0.065;
  position: relative;
  flex: 1;
  min-width: 0;
  height: 44px;
}

.range-pair::before,
.range-pair::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 10px;
  margin-top: -5px;
  border-radius: 999px;
  pointer-events: none;
}

.range-pair::before { inset-inline: 0; background: var(--track); }

.range-pair::after {
  right: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--from));
  left: calc(100% - var(--thumb) / 2 - (100% - var(--thumb)) * var(--to));
  background: var(--grad);
}

.quote-form:not([data-range]) .range-pair::after { right: 0; }

.range {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  direction: rtl;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.range:focus-visible { outline: none; }

.range::-webkit-slider-runnable-track { height: 10px; background: transparent; }

.range::-webkit-slider-thumb {
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((10px - var(--thumb)) / 2);
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 5px, var(--bg) 6px);
  box-shadow: 0 0 0 1px var(--border-strong), 0 8px 20px -8px var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.range:active::-webkit-slider-thumb,
.range.is-dragging::-webkit-slider-thumb { transform: scale(1.12); }

.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px color-mix(in srgb, var(--rose) 35%, transparent); }

.range::-moz-range-track { height: 10px; background: transparent; }

.range::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 5px, var(--bg) 6px);
  box-shadow: 0 0 0 1px var(--border-strong), 0 8px 20px -8px var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s var(--ease-out);
}

.range.is-dragging::-moz-range-thumb { transform: scale(1.12); }

.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px color-mix(in srgb, var(--rose) 35%, transparent); }

/* With two handles the pair takes the pointer itself and moves the nearer
   one, so handles that overlap can still be pulled apart. */
.quote-form[data-range] .range-pair { touch-action: pan-y; cursor: pointer; }
.quote-form[data-range] .range { pointer-events: none; }
.quote-form[data-range] .step-btn { display: none; }
.range-top { z-index: 2; animation: handle-in 0.45s var(--ease-out); }

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

.quote-form[data-range] .count-value bdi { font-size: clamp(2.125rem, 4vw, 2.75rem); }

/* Date: a button that opens a month calendar right under it. */

.date-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 15px 18px;
  border: 1px solid var(--border-control);
  border-radius: 16px;
  background: var(--surface-1);
  color: var(--muted);
  font: 400 1.0625rem/1.3 var(--font);
  text-align: start;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.date-trigger > span { flex: 1; min-width: 0; }
.date-trigger .icon { flex: none; width: 20px; height: 20px; color: var(--ink); }
.date-trigger.has-date { color: var(--text); font-weight: 500; }
.date-trigger[aria-invalid="true"] { border-color: var(--danger); }
.date-chevron { transition: transform 0.35s var(--ease-out); }
.date-trigger[aria-expanded="true"] .date-chevron { transform: rotate(180deg); }

.date-trigger:focus-visible,
.date-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--ink);
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 30%, transparent);
}

@media (hover: hover) {
  .date-trigger:hover { border-color: var(--border-hover); }
  .date-day:not(:disabled):not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--rose) 22%, transparent); }
}

.date-picker {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-1);
  box-shadow: 0 24px 50px -34px var(--shadow);
  animation: date-in 0.35s var(--ease-out);
}

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

.date-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.date-month { font-size: 1.125rem; font-weight: 600; }
.date-head .step-btn { width: 38px; height: 38px; }
.date-head .cal-btn .icon { width: 18px; height: 18px; }

.date-week,
.date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.date-week { margin-bottom: 6px; color: var(--muted); font-size: 0.8125rem; }

.date-days li { display: grid; place-items: center; }

.date-day {
  appearance: none;
  width: min(100%, 42px);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  font: 500 0.9375rem/1 var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s, color 0.2s;
}

.date-day:disabled { opacity: 0.35; cursor: default; }
.date-day.is-today { box-shadow: inset 0 0 0 1px var(--border-strong); }
.date-day[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.date-day:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Not sure yet */

.field > .unsure {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 16px 0 0;
  font-size: 1rem;
  cursor: pointer;
}

.unsure input,
.consent input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.unsure-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border-control);
  border-radius: 7px;
  background: var(--surface-1);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.25s;
}

.unsure-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.3s var(--ease-out);
}

.unsure small { color: var(--muted); font-weight: 400; font-size: 0.875rem; }

.unsure input:checked + .unsure-box,
.consent input:checked + .unsure-box { border-color: var(--ink); background: var(--ink); }

.unsure input:checked + .unsure-box svg,
.consent input:checked + .unsure-box svg { stroke-dashoffset: 0; }

.unsure input:focus-visible + .unsure-box,
.consent input:focus-visible + .unsure-box { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Consent: the same tick box, asked once before anything is sent. */

.consent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.35;
  cursor: pointer;
}

.consent input[aria-invalid="true"] + .unsure-box { border-color: var(--danger); }

@media (hover: hover) {
  .unsure:hover .unsure-box,
  .consent:hover .unsure-box { border-color: var(--border-hover); }
}

/* Bouquet size */

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

/* Who the workshop is for: two option cards, built like the size cards. */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.size-option { position: relative; cursor: pointer; }

.size-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 118px;
  padding: 14px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface-1);
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.35s var(--ease-out), color 0.25s;
}

.size-card svg { flex: none; color: var(--rose); transition: transform 0.45s var(--ease-out); }
.size-m svg { width: 30px; height: 30px; }
.size-l svg { width: 42px; height: 42px; }
.size-xl svg { width: 56px; height: 56px; }

.size-option input:checked + .size-card {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--rose) 14%, var(--surface-hover));
  box-shadow: inset 0 0 0 1px var(--ink), 0 14px 30px -18px var(--accent-shadow-strong);
  color: var(--ink);
}

.size-option input:checked + .size-card svg { transform: rotate(18deg) scale(1.06); }

.kind-card { flex-direction: row; justify-content: center; height: auto; min-height: 60px; padding: 12px 14px; }
.kind-card svg { width: 22px; height: 22px; }
.size-option input:checked + .kind-card svg { transform: none; }

.size-option input:focus-visible + .size-card { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (hover: hover) {
  .size-option:hover input:not(:checked) + .size-card { border-color: var(--border-hover); background: var(--surface-hover); }
}

/* What they get */

.quote-summary {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--featured-bg);
  box-shadow: 0 34px 70px -46px var(--shadow);
}

.quote-summary h3 { font-size: 1.6rem; line-height: 1.15; }

.bouquet { position: relative; width: min(100%, 300px); margin: -8px auto 0; }

.bouquet::before {
  content: "";
  position: absolute;
  inset: 12% 6% 22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
  opacity: 0.8;
}

.field > .bouquet { width: min(64vw, 240px); margin: -4px auto 6px; }

.bouquet-art { display: block; width: 100%; height: auto; overflow: visible; }

.bouquet-art .grow { transform: scale(var(--s, 1)); transform-origin: 150px 352px; transition: transform 0.8s var(--ease-out); }
[data-size="m"] .grow { --s: 0.92; }
[data-size="xl"] .grow { --s: 1.06; }

.bouquet-art .t-l,
.bouquet-art .t-xl {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
  transition-delay: calc(var(--i, 0) * 45ms);
}

[data-size="m"] .t-l,
[data-size="m"] .t-xl,
[data-size="l"] .t-xl { transform: scale(0.2); opacity: 0; transition-delay: 0s; }

.bouquet-art use { color: var(--leaf); }
.bouquet-art .leaf-2 { color: var(--leaf-2); }
.bouquet-art .c-rose { color: var(--rose); }
.bouquet-art .c-peach { color: var(--peach); }
.bouquet-art .c-lilac { color: var(--lilac); }
.bouquet-art .c-blush { color: var(--blush); }
/* A mixed bouquet needs a few colours past the palette: butter, coral, a deep rose and a petal white. */
.bouquet-art { --butter: #f2d98d; --coral: #ee9f8c; --deep: #c97586; --petal: #fffaf6; }
[data-theme="night"] .bouquet-art { --butter: #f5d26e; --coral: #ff8f78; --deep: #e0577f; --petal: #f8eee9; }
.bouquet-art .c-butter { color: var(--butter); }
.bouquet-art .c-coral { color: var(--coral); }
.bouquet-art .c-deep { color: var(--deep); }
.bouquet-art .c-petal { color: var(--petal); }
.bq-stem { fill: none; stroke: var(--leaf); stroke-width: 2.6; stroke-linecap: round; }
.bq-paper-back { fill: color-mix(in srgb, var(--lilac) 26%, var(--cta-bg)); }
.bq-paper { fill: color-mix(in srgb, var(--blush) 34%, var(--cta-bg)); }
.bq-fold { fill: color-mix(in srgb, var(--text) 5%, transparent); }
/* The round Bloomz sticker on the wrap. It is a printed object, so it keeps
   its cream face and brown mark in every palette. */
.bq-seal-shadow { fill: #000; opacity: 0.12; }
.bq-seal-face { fill: #fbf6f1; }
.bq-seal-ring { fill: none; stroke: #5e4433; stroke-width: 0.8; opacity: 0.35; }

.bq-stems { fill: none; stroke: var(--leaf-2); stroke-width: 3.2; stroke-linecap: round; }
.bq-ribbon { fill: var(--ink); }
.bq-bow { fill: color-mix(in srgb, var(--ink) 82%, var(--cta-bg)); }

.gets { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 26px; }

.gets li { display: flex; align-items: center; gap: 14px; }

.gets strong { display: block; font-weight: 500; line-height: 1.3; }

.gets small { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }

.quote-consent { margin-top: auto; padding-top: 22px; }

.quote-submit { width: 100%; margin-top: 14px; }

.quote-note { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; text-align: center; }

.quote-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.faq details p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */

.footer {
  margin-top: var(--section);
  padding: 0 var(--gutter) 40px;
  overflow: hidden;
}

/* The word sits between two lines of the same length, the same distance from each. */
.footer-word {
  margin: 0 auto;
  padding-block: 0.05em;
  border-block: 1px solid var(--border);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 16vw;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
  direction: ltr;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding-top: 28px;
  color: var(--muted);
}

.social { display: flex; gap: 10px; }

.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

@media (hover: hover) {
  .social a:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
}

.footer-small { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.875rem; }

/* Floating quote button */

.float-cta {
  position: fixed;
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  padding: 14px 20px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  visibility: hidden; /* out of the tab order until it appears */
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.35s, visibility 0.4s;
}

.float-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }

.cta-box .pill { max-width: 100%; white-space: normal; text-align: center; }

/* Night mode toggle */

.theme-toggle {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  margin-inline-end: -18px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.2s var(--ease-out);
}

.theme-toggle .icon { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 0.35s, transform 0.5s var(--ease-out); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle[aria-pressed="true"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.theme-toggle[aria-pressed="true"] .icon-sun { opacity: 1; transform: none; }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (hover: hover) {
  .theme-toggle:hover { border-color: var(--border-hover); background: var(--surface-hover); }
}

/* Reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  transition-delay: var(--d, 0s);
}

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

@media (hover: hover) {
  .js .card[data-reveal].is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
}

/* Responsive */

@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .workshops { grid-template-columns: minmax(0, 1fr); }
  .workshop { min-height: 0; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .perks-list { grid-template-columns: minmax(0, 1fr); }
  .cal-form .cal-pick { justify-content: center; text-align: center; }
  .cal-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pick" "fields" "consent" "send";
    gap: 20px;
  }
  .cal-send { justify-self: stretch; }
  .cal-send .pill { width: 100%; }
  .cal-send .quote-note { text-align: center; }
  html { scroll-padding-top: 100px; }

  /* Phones get the links as a second row under the logo and buttons, scrollable sideways if they don't fit. */
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    height: auto;
    gap: 0 12px;
    padding-top: 12px;
    transition: padding 0.4s var(--ease-out), background-color 0.4s, border-color 0.4s;
  }
  .nav.is-solid { height: auto; padding-top: 8px; }
  .nav .brand { justify-self: start; min-width: 0; }
  .nav-links {
    grid-area: 2 / 1 / 3 / -1;
    justify-content: space-between;
    gap: 18px;
    margin: 4px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  /* Fade the edge that has more links behind it (the start is on the right). */
  .nav-links[data-more="end"] { mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
  .nav-links[data-more="start"] { mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .nav-links[data-more="start end"] { mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
  .nav-links a { flex: none; padding-block: 9px; font-size: 0.9375rem; white-space: nowrap; }
  .nav-links a::after { bottom: 3px; }
  .theme-toggle { width: 40px; height: 40px; margin-inline: auto 0; }
  .nav-cta { padding: 10px 16px; font-size: 0.95rem; }
  .brand img { width: 38px; }
  .brand-word { font-size: 1rem; }

  .hero { padding-top: 140px; padding-bottom: 100px; }
  .hero-title { margin-top: 24px; }
  .hero-sub { margin-top: 22px; }
  .hero-actions { margin-top: 30px; width: 100%; }
  .hero-actions .pill { flex: 1 1 200px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps::before,
  .steps::after { top: var(--track-start, 31px); right: 31px; width: 2px; height: var(--track-len, calc(100% - 62px)); }
  .steps::after {
    right: 27px;
    width: 10px;
    height: calc(var(--track-len, 0px) * var(--progress, 0));
    background:
      radial-gradient(circle at 50% calc(100% - 5px), var(--rose) 0 3.5px, transparent 4px),
      var(--grad) center top / 2px calc(100% - 3px) no-repeat;
  }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; }
  .step-node { grid-row: span 2; }
  .step h3 { margin-top: 6px; }
  .step p { margin-top: 6px; }

  .float-cta { width: 58px; height: 58px; padding: 0; left: 16px; }
  .float-cta span { display: none; }
  .float-cta .icon { width: 26px; height: 26px; }

  .quote-form { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }

  .footer-row { flex-direction: column; text-align: center; }
  .footer-small { flex-basis: auto; text-align: center; }
  /* On phones the small logo moves to the bottom right, opposite the WhatsApp button. */
  .footer-row .brand { order: 1; align-self: flex-start; }
}

@media (max-width: 560px) {
  /* Logo, month and arrows share one row on a phone. */
  .cal-title { gap: 8px; }
  .cal-title .cal-month { font-size: 1.25rem; white-space: nowrap; }
  .motion-toggle { width: 30px; height: 30px; inset-inline-end: 8px; }
  /* A slimmer ribbon on phones. */
  .ribbon { padding-block: 10px; }
  .ribbon-track { --wall-h: 26px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why-card { min-height: 0; }
  .card { padding: 28px 24px; }
  .why-card::after { right: 24px; }
  .section-head { margin-bottom: 40px; }
  .ghost span { font-size: 34vw; }
  .cta-box { padding-inline: 18px; border-radius: 28px; }
  .quote-summary { padding: 24px 18px; }
  .quote-submit { padding-inline: 16px; }
  .count-control { gap: 8px; }
  .quote-form[data-range] .count-value bdi { font-size: 2rem; }
  .kind-card { flex-direction: column; gap: 6px; }
  /* A smaller bouquet and size cards, so the choice and its picture fit on one phone screen. */
  .field > .bouquet { width: min(46vw, 176px); margin: -8px auto 2px; }
  .sizes .size-card { height: 92px; gap: 8px; padding-block: 10px; font-size: 0.9375rem; }
  .size-m svg { width: 24px; height: 24px; }
  .size-l svg { width: 33px; height: 33px; }
  .size-xl svg { width: 44px; height: 44px; }
  .cal { border-radius: 24px; }
  .cal-week { font-size: 0.8125rem; }
  .cal-week .long, .cal-tag { display: none; }

  /* One screen on a phone: a low month, a line under it, and everything else in sheets. */
  .js #calendar [data-reveal] { opacity: 1; transform: none; transition: none; }
  #calendar { scroll-margin-top: calc(10px - var(--section)); }
  #calendar .section-head { max-width: none; margin-bottom: 12px; text-align: center; }
  #calendar .section-head h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; }
  #calendar .section-head p { display: none; }
  #calendar .cal { padding: 12px; border-radius: 24px; }
  #calendar .cal-head { margin-bottom: 8px; }
  #calendar .cal-btn { width: 36px; height: 36px; padding: 0; }
  #calendar .cal-week { margin-bottom: 4px; }
  #calendar .cal-days { gap: 4px; }
  .cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 43px; border-radius: 12px; }
  .cal-num { position: static; min-width: 22px; height: 22px; font-size: 0.875rem; }
  .cal-open, .cal-day.is-full { justify-content: center; gap: 0; padding: 0; }
  .cal-day.is-full .cal-tag { display: block; color: var(--muted); font-size: 0.6875rem; line-height: 1; }
  .cal-perks-open { display: none; }
  .cal-phone { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .cal-phone .pill { width: 100%; padding-block: 15px; }
  .cal-phone .pill-ghost .icon { color: var(--ink); }
  .cal-phone-pick { text-align: center; }
  .cal-phone-pick small { display: block; color: var(--muted); font-size: 0.875rem; }
  .cal-phone-pick small:empty { display: none; }
  .cal-phone-pick strong { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
  .perks-list li { padding-block: 9px; gap: 12px; }
  .perks-sheet .chip-icon { width: 38px; height: 38px; }
  .perks-list strong { font-size: 1rem; }
  .perks-list p { font-size: 0.9375rem; line-height: 1.3; }
  .cal-week .short { display: inline; }
  .cal-foot .pill { width: 100%; }
  .cal-fields { grid-template-columns: minmax(0, 1fr); }
  .glow { filter: blur(70px); }
}


/* Quote form on a phone: three short steps. The script adds .is-steps only there. */

.q-steps-head,
.q-steps-foot,
.q-perks { display: none; }

.quote-form.is-steps { display: block; margin-top: 28px; }
.is-steps .q-steps-head { display: block; text-align: start; }
.q-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.q-progress i { height: 5px; border-radius: 3px; background: var(--border-strong); transition: background-color 0.3s; }
.q-progress i.is-on { background: var(--grad); }
.q-steps-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; }
.q-steps-top strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.q-steps-top span { color: var(--muted); font-size: 0.875rem; }

.is-steps .quote-fields { gap: 18px; padding-top: 14px; }
.quote-form.is-steps[data-step="1"] [data-q-step]:not([data-q-step="1"]),
.quote-form.is-steps[data-step="2"] [data-q-step]:not([data-q-step="2"]),
.quote-form.is-steps[data-step="3"] [data-q-step]:not([data-q-step="3"]) { display: none; }
.is-steps .field > label,
.is-steps .field legend,
.is-steps .count-head label { margin-bottom: 8px; font-size: 1rem; }
.is-steps .kind-card { flex-direction: row; min-height: 52px; }
.is-steps .sizes .size-card { height: 80px; }
/* The bouquet above the sizes: large enough to see it grow, clear of the cards. */
.is-steps .field > .bouquet { width: 156px; margin: 0 auto 12px; }

/* The number and its buttons sit next to the label; the slider runs under them. */
.is-steps .count-field {
  display: grid;
  grid-template-columns: auto auto auto auto minmax(0, 1fr);
  grid-template-areas:
    "label minus value plus ."
    "range range range range range"
    "unsure unsure unsure unsure unsure";
  align-items: center;
  column-gap: 10px;
}
.is-steps .count-head,
.is-steps .count-control { display: contents; }
.is-steps .count-head label { grid-area: label; margin: 0; }
.is-steps .count-value { grid-area: value; }
.is-steps .count-value bdi { font-size: 1.875rem; }
.quote-form.is-steps[data-range] .count-value bdi { font-size: 1.625rem; }
.is-steps .count-control [data-step="-1"] { grid-area: minus; }
.is-steps .count-control [data-step="1"] { grid-area: plus; }
.is-steps .range-pair { grid-area: range; margin-top: 10px; }
.is-steps .count-field > .unsure { grid-area: unsure; margin-top: 8px; }

.is-steps .date-trigger { display: none; }
.is-steps .date-picker { display: block; margin-top: 0; animation: none; }

.is-steps .quote-summary { display: contents; }
.is-steps .quote-summary > h3 { display: none; }
.quote-form.is-steps:not([data-step="3"]) :is(.quote-consent, .send-error, .quote-note) { display: none; }
.is-steps .quote-consent { padding-top: 18px; }
.is-steps .send-error { margin-top: 12px; }

.is-steps .q-steps-foot { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.q-steps-foot .pill { flex: 1; margin: 0; }
.q-back { width: 56px; height: 56px; }
.q-back .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.q-back[hidden] { display: none; }
.quote-form.is-steps:not([data-step="3"]) .quote-submit,
.quote-form.is-steps[data-step="3"] .q-next { display: none; }
.is-steps .quote-note { margin-top: 12px; font-size: 0.875rem; text-align: start; }
.is-steps #q-date-error { margin-top: 10px; }
.quote-form.is-steps:not([data-step="2"]) #q-date-error { display: none; }

/* What's included: a card that stands out and opens the list from the bottom. */
.is-steps .q-perks { display: flex; }
.q-perks {
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--rose) 16%, var(--surface-hover));
  box-shadow: 0 14px 30px -20px var(--accent-shadow-strong);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s;
}
.q-perks:active { transform: scale(0.98); }
.q-perks:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.q-perks-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: var(--on-accent); }
.q-perks-icon .icon { width: 22px; height: 22px; }
.q-perks-text { flex: 1; min-width: 0; }
.q-perks-text strong { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.q-perks-text small { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.q-perks-go { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-1); color: var(--ink); }
.q-perks-go .icon { width: 18px; height: 18px; transform: rotate(180deg); }

.perks-sheet .gets { gap: 0; margin: 0; }
.perks-sheet .gets li { gap: 12px; padding-block: 9px; border-bottom: 1px dashed color-mix(in srgb, var(--on-accent) 22%, transparent); }
.perks-sheet .gets strong { color: var(--on-accent); font-weight: 700; }
.perks-sheet .gets small { color: color-mix(in srgb, var(--on-accent) 88%, transparent); font-size: 0.875rem; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-hero],
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
