/* ==========================================================================
   PetalQ public site (petalq.com). Built from the owner's approved mockups (2026-11-26).
   --------------------------------------------------------------------------
   One stylesheet for the landing page and the shared reading layout (privacy,
   terms). Structure after the owner's reference (rhythm, generous spacing,
   card sections, a "works with" ring, a dark band, questions, a big-wordmark
   footer); the look is PetalQ's own sign-in page: a warm page, a floating
   dark bar, big serif lines, pill buttons with a circled arrow, and single
   flower heads that float, turn and follow the pointer and the scroll.

   - Colours are the kit's roles (docs/design/mockups/v2/kit.css) and the
     brand kit's stem, sage and blush (branding/tokens.css). One light look by
     choice, like the app (`color-scheme: light`).
   - Logical properties for layout, so a right-to-left language can follow.
     The side gutter is symmetric, so its physical safe-area padding is
     direction-safe.
   - One motion take (the owner chose Balanced of three, 2026-11-24). Reduced
     motion stops all of it; the resting state of every animation is its
     finished state.
   ========================================================================== */

/* ---------- THE ONE SETTING: which way in leads the site ----------
   Every main button is in the pages twice: data-when="demo" (Book a demo leads) and data-when="trial" (Start free
   trial leads, to app.petalq.com/sign-up). This rule hides one of the two forms everywhere at once.
   - [data-when="trial"] hidden (as shipped): Book a demo leads, while sign-up is closed.
   - [data-when="demo"] hidden: Start free trial leads. The owner's choice (2026-11-28, "B: Trial first"): Start
     free trial leads from the day sign-up is open to everyone, and this line flips that day (CTO, 2026-11-29).
   A hidden button is out of the reading and tab order too. */
[data-when="trial"] {
  display: none !important;
}

/* ---------- Fonts, self-hosted (SIL Open Font License; the licence files sit beside them in assets/fonts/) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/young-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/young-serif-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The app's metric-matched stand-in while Hanken Grotesk loads (app base.css): Arial at Hanken's width and metrics,
   so the text does not jump when the font arrives. */
@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial");
  size-adjust: 101.6%;
  ascent-override: 98.4%;
  descent-override: 29.8%;
  line-gap-override: 0%;
}

:root {
  /* Layout: a centred 77.5rem column with a 16-40 px gutter; bands run edge to edge with rounded insets. */
  --page: #ffffff;
  --paper: #fafaf7; /* the app's background, inside the app pictures */
  --mist: #f2f6f3;
  --surface: #ffffff;
  --sunken: #f3f2ee;
  --line: #e7e4dc;
  --line-input: #81887f;
  --ink: #1f2421;
  --ink-2: #4a514b;
  --ink-glass: #343a36; /* secondary text on the fluted glass */
  --muted: #5a5f59;
  --on-ink: #ffffff;
  --primary: #2f6a4a;
  --primary-hover: #275a3e;
  --primary-press: #204a33;
  --primary-tint: #e8f1ea;
  --primary-soft: #cfe2d4;
  --stem-deep: #204b35;
  --sage: #719a80;
  --sage-light: #b3cdba;
  --blush: #f4d1d2;
  --petal-pink: #e28f97;
  --dusty-rose: #c5757d;
  --petal: #a23e5e;
  --petal-tint: #f8e9ee;
  --amber: #9a5f14;
  --amber-tint: #fbf3e3;
  --yellow-solid: #e3b93c;
  --danger: #a93a32;
  --info-tint: #e9f0f7;
  --shadow-rgb: 31 36 33;
  --glass: rgb(16 44 30 / 0.62);
  --glass-line: rgb(255 255 255 / 0.18);
  --on-glass-2: rgb(255 255 255 / 0.86);

  --font-display: "Young Serif", ui-serif, "Noto Serif", Georgia, serif;
  --font-app: "Instrument Serif", ui-serif, "Noto Serif", Georgia, serif; /* the app's own serif, in the app pictures only */
  --font-ui: "Hanken Grotesk", "Hanken Grotesk Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  --h1: clamp(2.6rem, 1.25rem + 5.2vw, 5.6rem);
  --h2: clamp(2rem, 1.35rem + 2.5vw, 3.5rem);
  --h3: clamp(1.45rem, 1.25rem + 0.8vw, 1.9rem);

  --gut: clamp(16px, 4vw, 40px);
  --max: 77.5rem;
  --band-inset: clamp(8px, 1.2vw, 16px);
  --section: clamp(72px, 9vw, 136px);
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: clamp(24px, 3vw, 36px);
  --r-pill: 999px;
  --hit: 44px;
  --e2: 0 14px 30px -14px rgb(var(--shadow-rgb) / 0.3), 0 2px 6px rgb(var(--shadow-rgb) / 0.06);
  --e3: 0 40px 80px -30px rgb(var(--shadow-rgb) / 0.42), 0 6px 18px rgb(var(--shadow-rgb) / 0.08);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Motion: the pointer (-1..1), the scroll (px), and each take's strength. */
  --mx: 0;
  --my: 0;
  --sy: 0;
  --side: 1;
  --follow: 1;
  --drift: 1;
  --rise: 28px;

  /* Texture (owner, 2026-11-24, "backgrounds to make designs less flat"): fine grain blended over a gradient, and a
     square-dot grid. Both are tiny inline SVGs. */
  --noise: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='0.55' intercept='0.22'/><feFuncG type='linear' slope='0.55' intercept='0.22'/><feFuncB type='linear' slope='0.55' intercept='0.22'/><feFuncA type='linear' slope='0' intercept='1'/></feComponentTransfer></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  --dots: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect x='7' y='7' width='2' height='2' fill='%231f2421' fill-opacity='0.14'/></svg>");
  --dots-light: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect x='7' y='7' width='2' height='2' fill='%23ffffff' fill-opacity='0.16'/></svg>");

  color-scheme: light;
}

:root[dir="rtl"] {
  --side: -1;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* The strip above a sticky bar on a phone with a notch. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  block-size: env(safe-area-inset-top, 0px);
  background-color: var(--page);
}

img,
svg {
  display: block;
  max-inline-size: 100%;
}

img {
  block-size: auto;
}

a {
  color: inherit;
}

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

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.on-dark :focus-visible,
.bar :focus-visible,
.foot :focus-visible {
  outline-color: var(--primary-soft);
}

.vh {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background-color: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  translate: 0 -200%;
}

.skip:focus {
  translate: 0 0;
}

.icon {
  inline-size: 1.25em;
  block-size: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The column every band's content sits in; the gutter clears a phone's side bars. */
.wrap {
  inline-size: 100%;
  max-inline-size: calc(var(--max) + 2 * var(--gut));
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}

.section {
  position: relative;
  padding-block: var(--section);
  isolation: isolate;
}

/* Loose petals at the sections' edges, behind the words; they drift and turn as their section passes. */
.drift {
  position: absolute;
  inset-block-start: var(--y);
  inset-inline-start: var(--x);
  z-index: -1;
  inline-size: var(--s);
  rotate: var(--r);
  filter: drop-shadow(0 14px 12px rgb(var(--shadow-rgb) / 0.18));
  pointer-events: none;
}

@media (width < 40rem) {
  .drift {
    inline-size: calc(var(--s) * 0.62);
  }
}

@supports (animation-timeline: view()) {
  :root:not([data-still]) .drift {
    animation: drift-by linear both;
    animation-timeline: view();
    animation-range: cover;
  }

  @keyframes drift-by {
    from {
      translate: 0 calc(var(--drift) * 90px);
      rotate: var(--r);
    }

    to {
      translate: calc(var(--side) * 24px) calc(var(--drift) * -90px);
      rotate: calc(var(--r) + var(--turn));
    }
  }
}

/* Flowers may bleed past the screen's edge; the page never scrolls sideways. (clip, unlike hidden, keeps sticky parts working.) */
main {
  display: block;
  overflow-x: clip;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  inline-size: fit-content;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.on-dark .eyebrow {
  border-color: var(--glass-line);
  background-color: rgb(255 255 255 / 0.08);
  color: var(--on-ink);
}

.on-dark .eyebrow::before {
  background-color: var(--sage-light);
}

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

.h2 em,
.h1 em {
  color: var(--primary);
  font-style: normal;
}

.on-dark .h2 em {
  color: var(--sage-light);
}

.lead {
  max-inline-size: 38rem;
  color: var(--ink-2);
  font-size: var(--text-xl);
  line-height: 1.5;
  text-wrap: pretty;
}

.head {
  display: grid;
  gap: 18px;
  margin-block-end: clamp(36px, 5vw, 64px);
}

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

.head-center .lead {
  margin-inline: auto;
}

/* ---------- Buttons: pills with a circled arrow, as on sign-in ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-block-size: 52px;
  padding-inline: 24px 6px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    translate 200ms var(--ease-out);
}

.btn-plain {
  padding-inline: 24px;
}

.btn .go {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--on-ink);
  transition: transform 200ms var(--ease-out);
}

.btn .go .icon {
  inline-size: 18px;
  block-size: 18px;
  stroke-width: 2.5;
}

:root[dir="rtl"] .btn .go .icon {
  scale: -1 1;
}

.btn-dark {
  background-color: var(--ink);
  box-shadow: 0 16px 30px -16px rgb(var(--shadow-rgb) / 0.7);
  color: var(--on-ink);
}

.btn-light {
  background-color: var(--surface);
  box-shadow: 0 10px 24px -14px rgb(var(--shadow-rgb) / 0.45);
  color: var(--ink);
}

.btn-line {
  border: 1.5px solid var(--line-input);
  background-color: transparent;
  color: var(--ink);
}

.on-dark .btn-line {
  border-color: rgb(255 255 255 / 0.55);
  color: var(--on-ink);
}

.btn-sm {
  min-block-size: var(--hit);
  gap: 10px;
  padding-inline: 18px 5px;
  font-size: 0.9375rem;
}

.btn-sm.btn-plain {
  padding-inline: 18px;
}

.btn-sm .go {
  inline-size: 34px;
  block-size: 34px;
}

@media (hover: hover) {
  .btn:hover .go {
    transform: translateX(calc(var(--side) * 4px));
  }

  .btn-dark:hover {
    background-color: #2b322e;
  }

  .btn-light:hover {
    box-shadow: 0 14px 28px -14px rgb(var(--shadow-rgb) / 0.55);
  }

  .btn-line:hover {
    background-color: rgb(var(--shadow-rgb) / 0.05);
  }

  .on-dark .btn-line:hover {
    background-color: rgb(255 255 255 / 0.08);
  }
}

.btn:active {
  translate: 0 1px;
}

.textlink {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.on-dark .textlink {
  color: var(--sage-light);
}

/* What a "Book a demo" press does, said beside it. */
.cta-note {
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-wrap: balance;
}

.cta-note a {
  color: var(--ink);
  font-weight: 700;
}

/* The trial's two promises (owner, 2026-11-28, "A: Ticks"): the plan lists' ticks, darker and bolder than a note. */
.cta-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.cta-points > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
}

.cta-points .icon {
  inline-size: 18px;
  block-size: 18px;
  padding: 3px;
  border-radius: 50%;
  background-color: var(--surface);
  box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.08);
  color: var(--primary-press);
  stroke-width: 3;
}

/* ---------- The floating bar ---------- */

.bar-slot {
  position: sticky;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 10px);
  z-index: 50;
  margin-block-start: 10px;
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: 64px;
  padding-block: 8px;
  padding-inline: clamp(14px, 2vw, 22px) 8px;
  border-radius: 20px;
  background-color: var(--ink);
  box-shadow: 0 14px 30px -14px rgb(var(--shadow-rgb) / 0.45);
  color: var(--on-ink);
  transition: box-shadow 300ms var(--ease-out);
}

.is-scrolled .bar {
  box-shadow: 0 18px 40px -16px rgb(var(--shadow-rgb) / 0.55);
}

.bar-logo {
  display: block;
  flex: none;
  border-radius: 8px;
}

.bar-logo img {
  inline-size: auto;
  block-size: 30px;
}

.bar-nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.bar-nav a,
.bar-signin {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--hit);
  padding-inline: 14px;
  border-radius: var(--r-pill);
  color: rgb(255 255 255 / 0.84);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 150ms var(--ease-out),
    background-color 150ms var(--ease-out);
}

.bar-nav a[aria-current="true"] {
  background-color: rgb(255 255 255 / 0.1);
  color: var(--on-ink);
}

@media (hover: hover) {
  .bar-nav a:hover,
  .bar-signin:hover {
    background-color: rgb(255 255 255 / 0.08);
    color: var(--on-ink);
  }
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.bar-signin {
  display: none;
}

.bar-menu {
  display: grid;
  place-items: center;
  inline-size: var(--hit);
  block-size: var(--hit);
  border: 0;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.1);
  color: var(--on-ink);
  cursor: pointer;
}

.bar-menu .icon-x,
.bar-menu[aria-expanded="true"] .icon-menu {
  display: none;
}

.bar-menu[aria-expanded="true"] .icon-x {
  display: block;
}

/* Without the script the menu cannot open: the button stays out of the way, and the footer holds every link. */
:root:not(.has-js) .bar-menu {
  display: none;
}

.bar-panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background-color: var(--ink);
  box-shadow: var(--e3);
  transform-origin: 50% 0;
}

.bar-panel[hidden] {
  display: none;
}

.bar-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 52px;
  padding-inline: 14px;
  border-radius: 14px;
  color: var(--on-ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.bar-panel a + a {
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
}

.bar-panel .icon {
  opacity: 0.6;
}

:root[dir="rtl"] .bar-panel .icon {
  scale: -1 1;
}

.bar-panel:not([hidden]) {
  animation: panel-in 260ms var(--ease-soft);
}

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

@media (width < 26rem) {
  .bar .btn-sm {
    padding-inline-start: 14px;
    font-size: 0.875rem;
  }

  .bar-logo img {
    block-size: 26px;
  }
}

/* The smallest phones (320 px): the logo, the longer "Start free trial" pill and the menu button fit inside the bar.
   The logo keeps its size; the spacing, the pill and the menu button give way (40 px still clears the 24 px target). */
@media (width < 22.5rem) {
  .bar {
    gap: 8px;
    padding-inline-start: 10px;
  }

  .bar-end {
    gap: 4px;
  }

  .bar .btn-sm {
    padding-inline: 12px;
    font-size: 0.8125rem;
  }

  .bar-menu {
    inline-size: 40px;
    block-size: 40px;
  }
}

@media (min-width: 64rem) {
  .bar-nav,
  .bar-signin {
    display: flex;
  }

  .bar-menu,
  .bar-panel {
    display: none;
  }

  .bar-end {
    margin-inline-start: 0;
  }
}

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

.hero {
  position: relative;
  margin-block-start: -84px;
  margin-inline: var(--band-inset);
  padding-block: calc(84px + clamp(40px, 7vw, 96px)) clamp(220px, 30vw, 400px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #dde9e1 0%, #eaf2ec 52%, #f6f0f0 100%);
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.2vw, 26px);
  text-align: center;
}

.h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
}

.h1 .ln {
  display: block;
}

/* What PetalQ is, in the words people search for (owner, 2026-11-28): plain type above the headline, part of the
   main heading, rising with its first line. */
.h1 .h1-kicker {
  margin-block-end: 0.9rem;
  color: var(--primary-press);
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.hero-sub {
  max-inline-size: 34rem;
  color: var(--ink-2);
  font-size: var(--text-xl);
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* The product picture: a real piece of the app, drawn at the width it's shown. */
.hero-shot {
  position: relative;
  z-index: 3;
  margin-block-start: calc(clamp(220px, 30vw, 400px) * -1 + clamp(36px, 5vw, 64px));
}

.hero-fl {
  --dx: 0px;
  position: absolute;
  inset-block-start: var(--y);
  inset-inline-start: var(--x);
  z-index: 1;
  inline-size: var(--s);
  block-size: var(--s);
  filter: drop-shadow(0 22px 18px rgb(var(--shadow-rgb) / 0.22));
  translate: calc(var(--side) * var(--mx) * var(--d) * 12px * var(--follow))
    calc(var(--my) * var(--d) * 10px * var(--follow) - var(--sy) * var(--d) * 0.16px * var(--drift));
  transition: translate 1.1s var(--ease-soft);
  pointer-events: none;
}

.hero-fl.is-front {
  z-index: 4;
}

.fl-move {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  rotate: calc(var(--r) + var(--mx) * var(--dir) * 7deg * var(--follow) + var(--sy) * var(--dir) * 0.08deg * var(--drift));
  transition: rotate 1.1s var(--ease-soft);
  animation: float calc(4.6s + var(--d) * 1.2s) ease-in-out calc(var(--i) * -0.9s) infinite;
}

.fl-img {
  inline-size: 100%;
  block-size: 100%;
}

.spin {
  animation: headturn var(--pace, 40s) linear infinite;
}

.rock {
  animation: rockhead var(--pace, 6s) ease-in-out infinite alternate;
}

@keyframes float {
  50% {
    transform: translateY(-18px);
  }
}

@keyframes headturn {
  to {
    rotate: calc(var(--dir, 1) * 1turn);
  }
}

@keyframes rockhead {
  from {
    rotate: calc(var(--dir, 1) * -10deg);
  }

  to {
    rotate: calc(var(--dir, 1) * 10deg);
  }
}

/* Phones show only the flowers marked for them, at their phone places. */
@media (width < 48rem) {
  .hero-fl:not([data-m]) {
    display: none;
  }

  .hero-fl {
    inset-block-start: var(--ym);
    inset-inline-start: var(--xm);
    inline-size: var(--sm);
    block-size: var(--sm);
  }
}

/* The flower that sits on the picture's sidebar shows only where the sidebar has room around it. */
@media (width < 72rem) {
  .hero-fl.is-wide {
    display: none;
  }
}

@media (min-width: 48rem) and (width < 72rem) {
  .hero-fl {
    inline-size: calc(var(--s) * 0.74);
    block-size: calc(var(--s) * 0.74);
  }
}

/* The ground behind the last call: a calm pale sage. */
.glass-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f0f0 0%, #eaf2ec 55%, #dde9e1 100%);
}

/* Secondary words on these grounds are a shade darker than elsewhere, so they keep 4.5:1 or more. */
.hero .hero-sub,
.hero .cta-note,
.final .lead,
.final .cta-note {
  color: var(--ink-glass);
}

/* ---------- The hero (owner, 2026-11-25): a bouquet bursts into its flowers, which stay floating ----------
   The ground is a calm pale sage. The flower heads float, turn slowly and follow the pointer and the scroll as on
   the sign-in page, and landing.js flies them to their places from a bouquet that sits where the app picture then
   comes up. The headline and the button never wait for it. With motion switched off there is no burst: the flowers
   are in place. A flower's place is a side of the hero's middle (--sd) and a distance from it (--off, percent);
   one that floats beside the words also keeps its nearest edge (--hx is its half-reach) at least --keep away from
   the middle, so the words stay clear at every width: they are sized in rem, the hero in percent. */

.burst {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: clip;
  container-type: inline-size;
  pointer-events: none;
}

.fly {
  --keep: -200vw;
  --r: var(--rd, 0deg);
  position: absolute;
  inset-block-start: calc(var(--y) * 1%);
  inset-inline-start: calc(50% + var(--sd) * max(var(--off) * 1%, var(--keep) + var(--hx) * 1cqw));
  inline-size: calc(var(--w) * 1cqw);
  aspect-ratio: var(--ar, 1);
  translate: calc(var(--side) * (-50% + var(--mx) * var(--d) * 12px * var(--follow)))
    calc(-50% + var(--my) * var(--d) * 10px * var(--follow) - var(--sy) * var(--d) * 0.16px * var(--drift));
  filter: drop-shadow(0 22px 18px rgb(var(--shadow-rgb) / 0.2));
  transition: translate 1.1s var(--ease-soft);
}

.fly .fl-img {
  object-fit: contain;
}

@media (min-width: 72rem) {
  .fly[data-k="h"] {
    --keep: calc(var(--h1) * 2.95 + 20px);
  }

  .fly[data-k="s"] {
    --keep: 298px;
  }
}

@media (min-width: 48rem) and (width < 72rem) {
  .fly:not([data-t]) {
    display: none;
  }

  .fly {
    --r: var(--rt, 0deg);
    inset-block-start: calc(var(--yt) * 1%);
    inset-inline-start: calc(50% + var(--sdt) * max(var(--offt) * 1%, var(--keep) + var(--hxt) * 1cqw));
    inline-size: calc(var(--wt) * 1cqw);
  }

  .fly[data-t="h"] {
    --keep: calc(var(--h1) * 2.95 + 20px);
  }

  .fly[data-t="s"] {
    --keep: 298px;
  }
}

@media (width < 48rem) {
  .fly:not([data-m]) {
    display: none;
  }

  .fly {
    --r: var(--rm, 0deg);
    inset-block-start: calc(var(--ym) * 1%);
    inset-inline-start: calc(var(--xm) * 1%);
    inline-size: calc(var(--wm) * 1cqw);
  }
}

/* The bouquet: only there for the burst, over the spot where the app picture comes up. Two pictures cut from one
   canvas lie exactly over each other: the bouquet, and under it the same bunch as bare tied stems. The script shows
   it, gathers it, lets the flowers go and drops the stems; without the script, or with motion off, it never appears. */
.burst-bq {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-start: 50%;
  z-index: 6;
  inline-size: clamp(190px, 23vw, 330px);
  aspect-ratio: 647 / 800;
  translate: calc(var(--side) * -50%) 0;
  transform-origin: 50% 33%; /* the middle of the flowers */
  opacity: 0;
  filter: drop-shadow(0 24px 22px rgb(var(--shadow-rgb) / 0.24));
  pointer-events: none;
}

.burst-bq img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
}

.burst-stems {
  transform-origin: 50% 78%; /* the twine bow */
}

.burst-flash {
  position: absolute;
  inset-block-start: 140px;
  inset-inline-start: 50%;
  z-index: 5;
  inline-size: clamp(280px, 36vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.5) 34%, rgb(255 255 255 / 0) 70%);
  translate: -50% -50%;
  opacity: 0;
  pointer-events: none;
}

/* Until the script has set the burst up, what will fly and rise stays unseen, so nothing shows at rest and then
   jumps. The class is only ever set when the burst is going to play, and comes off by itself after a moment. */
.burst-wait .fly,
.burst-wait .hero-shot .hero-fl,
.burst-wait .hero-shot .devices {
  opacity: 0;
}

:root[data-rm="on"] .fly {
  translate: calc(var(--side) * -50%) -50%;
}

:root[data-rm="on"] .burst-bq,
:root[data-rm="on"] .burst-flash,
:root[data-still] .burst-bq,
:root[data-still] .burst-flash {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .fly {
    translate: calc(var(--side) * -50%) -50%;
  }

  .burst-bq,
  .burst-flash {
    display: none;
  }
}

/* ---------- The product pictures: a small, faithful PetalQ (v2 look, made-up data) ---------- */

.shot {
  position: relative;
  container-type: inline-size;
  border-radius: var(--r-lg);
  background-color: var(--surface);
  box-shadow: var(--e3), 0 0 0 1px rgb(var(--shadow-rgb) / 0.06);
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: 1fr;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  text-align: start;
}

.app-side {
  display: none;
}

.app-body {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-inline-size: 0;
  background-color: var(--paper);
}

.app-phonehead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-block-end: 1px solid var(--line);
  background-color: var(--surface);
}

.app-phonehead img {
  inline-size: 24px;
  block-size: 24px;
}

.app-names {
  display: grid;
  flex: 1;
  min-inline-size: 0;
}

.app-names b {
  font-weight: 700;
}

.app-names small {
  color: var(--muted);
  font-size: 11px;
}

.app-me {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.app-top {
  display: none;
}

.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
}

.app-title {
  font-family: var(--font-app);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.app-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-inline-size: 7rem;
  min-block-size: 34px;
  padding-inline: 10px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--muted);
}

.app-field .icon {
  inline-size: 14px;
  block-size: 14px;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-block-size: 34px;
  padding-inline: 10px;
  border: 1px solid var(--line-input);
  border-radius: var(--r-pill);
  background-color: var(--surface);
}

.app-pill .icon {
  inline-size: 13px;
  block-size: 13px;
}

.app-note {
  display: none;
  color: var(--primary);
  font-size: 11px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 14px 14px;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--surface);
  overflow: hidden;
}

.app-card-pic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background-color: var(--t, var(--primary-tint));
}

/* The owner's product pictures: cut-outs trimmed to the product, standing in the card's tint. */
.app-card-pic img {
  position: absolute;
  inset-block: 6%;
  inset-inline: 0;
  inline-size: auto;
  max-inline-size: 90%;
  block-size: 88%;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgb(var(--shadow-rgb) / 0.16));
}

.app-add {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 6px 12px -6px rgb(var(--shadow-rgb) / 0.6);
  color: var(--on-ink);
}

.app-add .icon {
  inline-size: 15px;
  block-size: 15px;
  stroke-width: 2.6;
}

.app-card-text {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 9px 10px 11px;
}

.app-card-text b {
  font-weight: 700;
}

.app-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.app-can {
  display: block;
  color: var(--ink-2);
  font-size: 11.5px;
}

.app-can::before {
  content: "";
  display: inline-block;
  inline-size: 7px;
  block-size: 7px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background-color: var(--primary);
  vertical-align: 1px;
}

.app-can.is-low {
  color: var(--amber);
}

.app-can.is-low::before {
  background-color: var(--amber);
}

.app-can b {
  font-weight: 700;
}

.app-salebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background-color: var(--ink);
  color: var(--on-ink);
}

.app-salebar b {
  font-variant-numeric: tabular-nums;
}

.app-salebar span {
  color: rgb(255 255 255 / 0.8);
  font-size: 12px;
}

.app-salebar .app-btn {
  min-block-size: 34px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 36px;
  padding-inline: 14px;
  border-radius: 12px;
  background-color: var(--primary);
  color: var(--on-ink);
  font-weight: 700;
  white-space: nowrap;
}

.app-btn-line {
  border: 1px solid var(--line-input);
  background-color: var(--surface);
  color: var(--ink);
}

.app-btn .icon {
  inline-size: 14px;
  block-size: 14px;
}

.app-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 6px 8px;
  border-block-start: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--ink-2);
  font-size: 10.5px;
  text-align: center;
}

.app-tab {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.app-tab .icon {
  inline-size: 18px;
  block-size: 18px;
}

.app-tab.is-on {
  color: var(--primary);
  font-weight: 700;
}

.app-tab-dot {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  margin-block-start: -14px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 6px 14px -6px rgb(var(--shadow-rgb) / 0.7);
  color: var(--on-ink);
}

/* The app's three shells, as the v2 mockups draw them (sell.html at 375, 820 and 1440):
   - phone (under 600 px): header, Sell/Sales switch, two cards across, the sale bar, the tab bar;
   - tablet (600 to 959 px): the same header and tab bar, two cards across with the sale panel beside them;
   - laptop (960 px and up): the sidebar and top bar, four cards across, the sale panel.
   The breakpoints are the screen's own width (container queries), so each device shows its real layout. */
.app-body {
  grid-template-areas: "phead" "seg" "head" "grid" "salebar" "tabs";
}

.app-phonehead {
  grid-area: phead;
}

.app-seg {
  grid-area: seg;
}

.app-top {
  grid-area: top;
}

.app-head {
  grid-area: head;
}

.app-grid {
  grid-area: grid;
  align-content: start;
}

.app-aside {
  display: none;
  grid-area: sale;
}

.app-salebar {
  grid-area: salebar;
}

.app-tabbar {
  grid-area: tabs;
}

.app-search-ic {
  inline-size: 18px;
  block-size: 18px;
  color: var(--ink-2);
}

.app-title,
.app-note {
  display: none;
}

.app-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  inline-size: min(300px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 4px;
  border-radius: var(--r-pill);
  background-color: var(--sunken);
  font-weight: 600;
  text-align: center;
}

.app-seg span {
  padding-block: 7px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
}

.app-seg span.is-on {
  background-color: var(--surface);
  box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / 0.12);
  color: var(--ink);
}

.app-seg small {
  margin-inline-start: 4px;
  font-size: 11px;
}

.app-aside {
  align-content: start;
  gap: 12px;
}

.app-today {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface);
}

.app-today-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.app-today-top span {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.app-today-n {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.app-today-n small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.app-today-sub {
  color: var(--muted);
  font-size: 11.5px;
}

/* A fluid picture (no script) shows a screenful of cards: four on a phone, six on a tablet, eight on a laptop. */
.shot:not(.is-sized) .app-grid .app-card:nth-child(n + 5) {
  display: none;
}

@container (min-width: 600px) {
  .shot:not(.is-sized) .app-grid .app-card:nth-child(n + 5) {
    display: grid;
  }

  .shot:not(.is-sized) .app-grid .app-card:nth-child(n + 7) {
    display: none;
  }

  .app-body {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
    grid-template-areas: "phead phead" "seg seg" "head head" "grid sale" "tabs tabs";
  }

  .app-aside {
    display: grid;
    padding: 0 16px 16px 0;
  }

  .app-salebar {
    display: none;
  }

  .app-grid {
    padding-inline: 16px 12px;
  }

  .app-head {
    padding-inline: 16px;
  }
}

@container (min-width: 960px) {
  .shot:not(.is-sized) .app-grid .app-card:nth-child(n + 7) {
    display: grid;
  }

  .shot:not(.is-sized) .app-grid .app-card:nth-child(n + 9) {
    display: none;
  }

  .app {
    grid-template-columns: 210px minmax(0, 1fr);
    font-size: 13.5px;
  }

  /* The app's side bar as it is today: the floor places, "Back office", and the person at the foot. */
  .app-side {
    display: grid;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 18px 12px;
    border-inline-end: 1px solid var(--line);
    background-color: var(--surface);
  }

  .app-logo {
    inline-size: 118px;
    margin: 2px 6px 6px;
  }

  .app-tenant {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .app-tenant .icon {
    inline-size: 16px;
    block-size: 16px;
  }

  .app-tenant span {
    display: grid;
    min-inline-size: 0;
  }

  .app-tenant b {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-tenant small {
    color: var(--muted);
    font-size: 10.5px;
  }

  .app-nav {
    display: grid;
    gap: 2px;
  }

  .app-nav span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-block-size: 32px;
    padding-inline: 10px;
    border-radius: 10px;
    color: var(--ink);
  }

  .app-nav span.is-on {
    background-color: var(--primary-tint);
    color: var(--primary-press);
    font-weight: 700;
  }

  .app-nav .icon {
    inline-size: 15px;
    block-size: 15px;
  }

  .app-group {
    margin: 4px 10px -6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .app-user {
    display: flex;
    align-items: center;
    align-self: end;
    gap: 9px;
    padding: 8px;
    border-radius: 12px;
  }

  .app-user > span:not(.app-me) {
    display: grid;
    min-inline-size: 0;
  }

  .app-user b {
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-user small {
    color: var(--muted);
    font-size: 10.5px;
  }

  .app-user .icon {
    inline-size: 14px;
    block-size: 14px;
    margin-inline-start: auto;
    color: var(--muted);
  }

  .app-phonehead,
  .app-seg,
  .app-tabbar {
    display: none;
  }

  .app-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-block-end: 1px solid var(--line);
    background-color: var(--surface);
  }

  .app-top .app-field {
    flex: 0 1 300px;
    border-color: var(--line);
    border-radius: var(--r-pill);
  }

  .app-top .app-me {
    margin-inline-start: auto;
  }

  .app-body {
    grid-template-columns: minmax(0, 1fr) 250px;
    grid-template-areas: "top top" "head head" "grid sale";
  }

  .app-head {
    padding: 16px 18px 12px;
  }

  .app-head .app-field {
    flex: 0 1 240px;
  }

  .app-title {
    display: block;
  }

  .app-note {
    display: block;
    margin-inline-start: auto;
  }

  .app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 12px 18px 18px;
  }

  .app-aside {
    padding: 0 18px 18px 0;
  }
}

.app-sale {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface);
}

/* ---------- The devices: the same app on a laptop, a tablet and a phone ---------- */

.devices {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.dev-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dev-switch {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: var(--r-pill);
  background-color: rgb(255 255 255 / 0.72);
  box-shadow: var(--e2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dev-on .dev-switch {
  display: inline-flex;
}

.dev-label {
  padding-inline: 12px 6px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.dev-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: var(--hit);
  padding-inline: 14px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}

.dev-switch button[aria-pressed="true"] {
  background-color: var(--ink);
  color: var(--on-ink);
}

@media (hover: hover) {
  .dev-switch button[aria-pressed="false"]:hover {
    background-color: rgb(var(--shadow-rgb) / 0.06);
    color: var(--ink);
  }
}

@media (width < 30rem) {
  .dev-label {
    display: none;
  }

  .dev-switch button {
    padding-inline: 12px;
  }
}

.stage {
  position: relative;
  inline-size: 100%;
  max-inline-size: 72rem;
}

.device {
  --bz: 14px;
  --br: 22px 22px 8px 8px;
  --sr: 8px;
}

.device[data-device="tablet"] {
  --bz: 18px;
  --br: 36px;
  --sr: 20px;
}

.device[data-device="phone"] {
  --bz: 11px;
  --br: 52px;
  --sr: 42px;
}

.device-body {
  position: relative;
  padding: var(--bz);
  border-radius: var(--br);
  background: linear-gradient(160deg, #2c332f, #171b19);
  box-shadow:
    var(--e3),
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    inset 0 0 0 3px rgb(0 0 0 / 0.35);
}

/* The phone's island; the laptop's camera. */
.device-body::after {
  content: "";
  position: absolute;
  inset-block-start: 5px;
  inset-inline-start: 50%;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background-color: #3a423e;
  translate: -50% 0;
}

.device[data-device="tablet"] .device-body::after {
  inset-block-start: 7px;
}

.device[data-device="phone"] .device-body::after {
  inset-block-start: 22px;
  z-index: 2;
  inline-size: 104px;
  block-size: 30px;
  border-radius: var(--r-pill);
  background-color: #0d0f0e;
}

.device-screen {
  display: flex;
  flex-direction: column;
  border-radius: var(--sr);
  box-shadow: none;
}

.device-screen .app {
  flex: 1;
  min-block-size: 0;
}

.dev-status {
  display: none;
}

.device[data-device="phone"] .dev-status {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  block-size: 50px;
  padding: 14px 30px 0;
  background-color: var(--surface);
  font-size: 15px;
  font-weight: 700;
}

.dev-status-icons {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.dev-status-icons i {
  display: block;
  inline-size: 4px;
  border-radius: 1px;
  background-color: var(--ink);
}

.dev-status-icons i:nth-child(1) {
  block-size: 6px;
}

.dev-status-icons i:nth-child(2) {
  block-size: 9px;
}

.dev-status-icons i:nth-child(3) {
  inline-size: 22px;
  block-size: 11px;
  margin-inline-start: 5px;
  border-radius: 3px;
}

.device-base {
  display: none;
}

.device[data-device="laptop"] .device-base {
  position: relative;
  display: block;
  block-size: 18px;
  margin-inline: -6%;
  border-radius: 2px 2px 20px 20px;
  background: linear-gradient(180deg, #e4e6e2, #b9bdb7 70%, #9da19b);
  box-shadow: 0 20px 30px -18px rgb(var(--shadow-rgb) / 0.6);
}

.device[data-device="laptop"] .device-base::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  inline-size: 18%;
  block-size: 7px;
  border-radius: 0 0 10px 10px;
  background-color: #a9ada7;
  translate: -50% 0;
}

/* With the script: each device at its real size, scaled to fit, the stage as tall as the device shown. */
.dev-on .stage {
  block-size: var(--stage-h, 640px);
  transition: block-size 480ms var(--ease-soft);
}

.dev-on .device {
  position: absolute;
  inset-block-start: 0;
  left: 50%;
  inline-size: var(--ow);
  transform: translateX(-50%) scale(var(--k, 1));
  transform-origin: 50% 0;
  transition:
    opacity 220ms var(--ease-out),
    translate 320ms var(--ease-soft);
}

.dev-on .device-screen {
  inline-size: var(--sw);
  block-size: var(--sh);
}

/* The tablet shows Today (owner, 2026-11-25: "show Today section instead of Purchases"): a picture of the
   app's Today screen at the tablet's size (820 x 1180): the app mockup's page with the real page's other cards drawn in, made-up data. It takes the screen in place of
   the drawn Sell screen. Without the script there is no tablet, and the picture is never asked for. */
.app-shot {
  display: none;
}

.dev-on .device[data-device="tablet"] .device-screen .app {
  display: none;
}

.dev-on .device[data-device="tablet"] .app-shot {
  display: block;
  flex: 1;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  background-color: var(--surface);
  object-fit: cover;
  object-position: 50% 0;
}

.dev-on .device-screen .app-body {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

/* Cards keep their size and run off the bottom of the screen, as on a real one. */
.dev-on .device-screen .app-grid,
.dev-on .device-screen .app-aside {
  grid-auto-rows: max-content;
  overflow: hidden;
}

@container (min-width: 600px) {
  .dev-on .device-screen .app-body {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
}

@container (min-width: 960px) {
  .dev-on .device-screen .app-body {
    grid-template-rows: auto auto minmax(0, 1fr);
  }
}

.stage.is-out .device {
  opacity: 0;
  translate: 0 18px;
}

.app-sale h5 {
  font-size: 15px;
  font-weight: 700;
}

.app-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  border-block-end: 1px solid var(--line);
}

.app-line img {
  inline-size: 30px;
  block-size: 30px;
  padding: 3px;
  border-radius: 8px;
  background-color: var(--primary-tint);
}

.app-line small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.app-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 700;
}

.app-total b {
  font-family: var(--font-app);
  font-size: 26px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.app-paid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  min-block-size: 28px;
  padding-inline: 10px;
  border: 1px solid var(--line-input);
  border-radius: var(--r-pill);
  background-color: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
}

.app-chip.is-on {
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--on-ink);
}

.app-sale .app-btn {
  inline-size: 100%;
  min-block-size: 40px;
}

/* ---------- Intro: the shop day ---------- */

.intro-grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}

@media (min-width: 60rem) {
  .intro-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

.intro-copy {
  position: relative;
  display: grid;
  gap: 22px;
}

.intro-copy .lead {
  max-inline-size: 30rem;
}

/* The thread from sign-in: a line from the page edge, a rounded turn down, a rose hanging from it. */
.thread {
  position: relative;
  display: none;
  block-size: 210px;
  margin-block-start: 18px;
  margin-inline-start: calc(var(--gut) * -1 - var(--band-inset));
}

@media (min-width: 60rem) {
  .thread {
    display: block;
  }
}

.thread::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 62%;
  border-block-start: 2px solid var(--primary);
}

.thread-drop {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: calc(62% - 2px);
  inline-size: 26px;
  block-size: 120px;
  border-block-start: 2px solid var(--primary);
  border-inline-end: 2px solid var(--primary);
  border-start-end-radius: 22px;
}

.thread-hang {
  position: absolute;
  inset-block-start: calc(100% - 6px);
  inset-inline-end: -46px;
  inline-size: 90px;
  block-size: 90px;
  transform-origin: 50% 0;
  filter: drop-shadow(0 12px 12px rgb(var(--shadow-rgb) / 0.22));
  animation: swing 4.5s ease-in-out infinite alternate;
}

@keyframes swing {
  from {
    rotate: -7deg;
  }

  to {
    rotate: 7deg;
  }
}

.day {
  display: grid;
  border-block-end: 1px solid var(--line);
}

.day-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  padding-block: clamp(18px, 2.2vw, 26px);
  border-block-start: 1px solid var(--line);
}

.day-card.is-feature {
  border-color: transparent;
  background-color: var(--primary);
  box-shadow: 0 30px 50px -30px rgb(32 75 53 / 0.7);
  color: var(--on-ink);
}

.day-text {
  display: grid;
  gap: 8px;
  min-inline-size: 0;
}

.day-when {
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
}

.is-feature .day-when {
  color: var(--primary-soft);
}

.day-card h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.day-card p {
  color: var(--ink-2);
}

.is-feature p {
  color: rgb(255 255 255 / 0.88);
}

.day-card .textlink {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-block-size: var(--hit);
}

.is-feature .textlink {
  color: var(--on-ink);
}

.day-pic {
  display: grid;
  place-items: center;
  inline-size: clamp(84px, 9vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--t);
}

.day-pic img {
  inline-size: 82%;
  filter: drop-shadow(0 10px 10px rgb(var(--shadow-rgb) / 0.2));
}

@media (width < 30rem) {
  .day-card {
    grid-template-columns: 1fr;
  }

  .day-pic {
    grid-row: 1;
    inline-size: 76px;
  }
}

/* ---------- Features: the bento, in the owner's order ---------- */

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

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

  .tile-sell {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .tile-sell {
    grid-column: span 7;
  }

  .tile-recipe {
    grid-column: span 5;
  }

  .tile-close,
  .tile-reorder,
  .tile-orders {
    grid-column: span 4;
  }

  .tile-invoice {
    grid-column: span 5;
  }

  .tile-team {
    grid-column: span 7;
  }
}

.tile {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 22px;
  min-inline-size: 0;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background-color: var(--surface);
  overflow: hidden;
}

.tile-text {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tile h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.tile p {
  max-inline-size: 34rem;
  color: var(--ink-2);
}

.tile-sell {
  border-color: transparent;
  background: var(--noise) 0 0 / 220px, linear-gradient(150deg, #2c6145, var(--stem-deep) 70%);
  background-blend-mode: overlay, normal;
  color: var(--on-ink);
}

.tile-sell p {
  color: rgb(255 255 255 / 0.86);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  background-color: var(--petal-tint);
  color: var(--petal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The tile's picture: drawn from the app, decoration for screen readers (the tile's words carry it). */
.pic {
  position: relative;
  display: grid;
  align-content: center;
  min-block-size: 230px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--dots) 0 0 / 16px 16px, var(--mist);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
}

.tile-sell .pic {
  background: var(--dots-light) 0 0 / 16px 16px, rgb(255 255 255 / 0.05);
  color: var(--ink);
}

.mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--surface);
  box-shadow: var(--e2);
}

/* Sell: two cards, the sale and the stock moving. */
.sellpic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

@media (min-width: 30rem) {
  .sellpic {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.sellpic .app-card {
  box-shadow: var(--e2);
}

.sellpic .app-card-pic {
  aspect-ratio: 5 / 4;
}

.sellpic-sale {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 12px 14px;
}

@media (min-width: 30rem) {
  .sellpic-sale {
    grid-column: auto;
  }
}

.sellpic-sale h5 {
  font-size: 14px;
  font-weight: 700;
}

.stockchip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: var(--primary-tint);
  color: var(--primary-press);
  font-size: 12px;
  font-weight: 600;
}

.stockchip .icon {
  inline-size: 14px;
  block-size: 14px;
}

.flip {
  position: relative;
  display: inline-grid;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

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

.flip .was {
  opacity: 0;
}

/* Recipes: what's in a product and how many can still be made. */
.recipe {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.recipe-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recipe-top img {
  inline-size: 52px;
  block-size: 52px;
  padding: 5px;
  border-radius: 12px;
  background-color: var(--petal-tint);
}

.recipe-top b {
  display: block;
  font-size: 14px;
}

.canpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  inline-size: fit-content;
  min-block-size: 28px;
  margin-block-start: 3px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  background-color: var(--primary-tint);
  color: var(--primary-press);
  font-size: 12px;
  font-weight: 700;
}

.recipe-rows {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.recipe-rows li {
  display: grid;
  grid-template-columns: 1.8em 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 9px;
}

.recipe-rows li:nth-child(odd) {
  background-color: var(--paper);
}

.recipe-rows img {
  inline-size: 28px;
  block-size: 28px;
  object-fit: contain;
}

.recipe-rows .n {
  color: var(--primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.recipe-rows small {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.recipe-rows li.is-limit {
  background-color: var(--amber-tint);
}

.recipe-rows li.is-limit small {
  color: var(--amber);
  font-weight: 700;
}

/* Purchases and reorder: the message PetalQ writes; the person presses send. */
.msg {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.msg-to {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msg-avatar {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background-color: var(--info-tint);
  color: #33608f;
  font-size: 12px;
  font-weight: 800;
}

.msg-to small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* The message as the person's own WhatsApp will show it (owner, 2026-11-25: "properly formatted with like bold and
   bullet points. Also mention, time and what branch"). The colours are WhatsApp's, as the app's own preview draws
   them. Bold is what the shop puts between asterisks in its message; the item lines are PetalQ's. */
.msg-wall {
  display: grid;
  padding: 8px;
  border-radius: 12px;
  background-color: #efe7de;
}

.msg-bubble {
  display: grid;
  justify-self: end;
  gap: 3px;
  max-inline-size: 100%;
  padding: 8px 11px;
  border-radius: 14px 14px 4px 14px;
  background-color: #dcf8c6;
  box-shadow: 0 1px 1px rgb(var(--shadow-rgb) / 0.12);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
  transform-origin: 100% 100%;
}

.msg-bubble b {
  font-weight: 700;
}

.msg-bubble ul {
  display: grid;
  gap: 1px;
  padding-inline-start: 1.2em;
  list-style: disc;
}

:root[dir="rtl"] .msg-bubble {
  border-radius: 14px 14px 14px 4px;
  transform-origin: 0 100%;
}

.msg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Close the day, and reorder: what happens, and what the shop gets (owner, 2026-11-25: "change these two
   sections so users can know what each means and what benefit it gives") ----------
   Each picture is the feature as a short story, in the app's own words and shapes.
   Close the day: what was counted beside what PetalQ expected, the one thing that is short picked out, and the day
   closed with tomorrow starting from the count.
   Reorder: the items that run low with how far below their level they are, then the order PetalQ wrote from them
   (the amounts are the gap up to each item's "restock to"), then the person's own send button. */
.cd,
.ro-low {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.cd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cd-head span + span {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.cd-head b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cd-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cd-rows li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-areas:
    "pic name chip"
    "pic note note";
  align-items: center;
  gap: 1px 9px;
  padding: 7px 8px;
  margin-inline: -8px;
  border-radius: 10px;
}

.cd-rows li + li {
  margin-block-start: 1px;
}

.cd-rows img,
.cd-ic {
  grid-area: pic;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 9px;
  background-color: var(--paper);
  object-fit: cover;
  object-position: 50% 12%;
}

.cd-ic {
  display: grid;
  place-items: center;
  background-color: var(--primary-tint);
  color: var(--primary-press);
}

.cd-ic .icon {
  inline-size: 16px;
  block-size: 16px;
}

.cd-rows b {
  grid-area: name;
  min-inline-size: 0;
  font-weight: 700;
}

.cd-rows small {
  grid-area: note;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.cd-chip {
  grid-area: chip;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-block-size: 22px;
  padding-inline: 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cd-chip .icon {
  inline-size: 11px;
  block-size: 11px;
  stroke-width: 3.2;
}

.cd-ok {
  background-color: var(--primary-tint);
  color: var(--primary-press);
}

.cd-short {
  background-color: #f6e3b4;
  color: #6f4409;
}

/* A dot before "Low", as the app marks it. */
.cd-short.has-dot::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* The row PetalQ found: picked out, so the eye lands on it first. */
.cd-rows li.is-off {
  background-color: var(--amber-tint);
  box-shadow: inset 0 0 0 1px #efdcae;
}

.cd-rows li.is-off small {
  color: #6f4409;
}

/* The day is closed: the app's own closing message. */
.cd-done {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: var(--ink);
  color: var(--on-ink);
}

.cd-done .icon {
  flex: none;
  box-sizing: content-box;
  inline-size: 12px;
  block-size: 12px;
  padding: 5px;
  border-radius: 50%;
  background-color: var(--primary);
  stroke-width: 3.2;
}

.cd-done b {
  display: block;
  font-size: 12.5px;
}

.cd-done small {
  display: block;
  color: rgb(255 255 255 / 0.84);
  font-size: 11.5px;
}

/* Reorder: low stock, then the order written from it. */
.ro {
  display: grid;
}

.ro-low .cd-rows li {
  grid-template-areas:
    "pic name chip"
    "pic note meter";
}

/* How little is left of what the shop restocks to: a small gauge under "Low". */
.ro-meter {
  grid-area: meter;
  block-size: 5px;
  border-radius: 3px;
  background-color: #dcd8cd;
  overflow: hidden;
}

.ro-meter::before {
  content: "";
  display: block;
  inline-size: var(--v, 10%);
  block-size: 100%;
  border-radius: 3px;
  background-color: var(--yellow-solid);
}

.ro-link {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 6px;
}

.ro .msg {
  gap: 8px;
  padding: 12px 14px;
}

.ro .msg-avatar {
  inline-size: 28px;
  block-size: 28px;
  font-size: 11px;
}

.ro-link::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  border-inline-start: 2px dashed var(--sage);
}

.ro-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 26px;
  padding-inline: 11px 8px;
  border-radius: var(--r-pill);
  background-color: var(--primary);
  color: var(--on-ink);
  font-size: 11px;
  font-weight: 700;
}

.ro-link .icon {
  inline-size: 13px;
  block-size: 13px;
  stroke-width: 2.6;
}

/* The two pictures PLAY their story, on a loop (owner, 2026-11-25: "animate them with smooth transitions, for
   example, stock went low, it shows order button and then it opens up whats message").

   Each loop starts and ends on the finished picture, which is also what shows with motion off, in a screenshot and
   before the tile comes into view. So nothing ever jumps: the loop first winds the picture back, then plays.

   Restock, 13 s: the stock is full, it falls as the day sells, "Low" lands on each item, the Reorder button comes up
   under the card, a tap, the card moves up as the supplier's message arrives (whole, as a message lands in a chat),
   and the send button asks to be pressed.
   Close the day, 12 s: four things to count, each count comes in and gets its verdict ("2 short" in amber), Close
   Tuesday turns ready, a tap, and it becomes "Tuesday is closed".

   The numbers that run (stock falling, things left to count) are counters driven by a registered property, so they
   count through every value; a browser without @property shows them change in one step. */
@property --ron {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

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

/* A number that can run: the real digits stay in the page, the counter draws over them. */
.ro-n,
.cd-left {
  font-size: 0;
}

.ro-n {
  counter-reset: ron var(--ron);
}

.ro-n::after {
  content: counter(ron);
  font-size: 11.5px;
}

.cd-left {
  counter-reset: cdn var(--cdn);
}

.cd-left::after {
  content: counter(cdn);
  font-size: 11px;
}

/* Two labels in one place: the first shows only while the story is on its way. */
.ro-title,
.cd-sum {
  display: inline-grid;
}

.cd-sum {
  justify-items: end;
}

.ro-title i,
.cd-sum i {
  grid-area: 1 / 1;
  font-style: normal;
}

.ro-title .t0,
.cd-sum .s0 {
  opacity: 0;
}

/* Under the stock card: first the app's Reorder button, then what PetalQ does when it is pressed. */
.ro-link > * {
  grid-area: 1 / 1;
}

.ro-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 30px;
  padding-inline: 14px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background-color: var(--surface);
  box-shadow: var(--e2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
}

.ro-tap,
.cd-tap {
  place-self: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px var(--primary),
    0 0 0 2px rgb(255 255 255 / 0.9);
  opacity: 0;
  pointer-events: none;
}

.ro .msg {
  transform-origin: 50% 0;
}

/* Under the count: the app's Close button, then the day closed. */
.cd-end {
  position: relative;
  display: grid;
}

.cd-end > * {
  grid-area: 1 / 1;
}

.cd-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  background-color: var(--primary);
  color: var(--on-ink);
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
}

.cd-close .icon {
  inline-size: 14px;
  block-size: 14px;
  stroke-width: 3;
}

/* ---- Restock ---- */
.pic.is-on .ro-low,
.pic.is-on .ro-link {
  animation: ro-shift 13s var(--ease-soft) var(--loops, infinite);
}

.pic.is-on .ro-title .t0 { animation: ro-t0 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro-title .t1 { animation: ro-t1 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro-low li:nth-child(1) .ro-n { animation: ro-num-a 13s linear var(--loops, infinite); }
.pic.is-on .ro-low li:nth-child(2) .ro-n { animation: ro-num-b 13s linear var(--loops, infinite); }
.pic.is-on .ro-meter::before { animation: ro-fall 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro-low .cd-chip { animation: ro-chip 13s var(--ease-soft) calc(var(--k, 0) * 220ms) var(--loops, infinite); }
.pic.is-on .ro-btn { animation: ro-btn 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro-tap { animation: ro-tap 13s var(--ease-out) var(--loops, infinite); }
.pic.is-on .ro-pill { animation: ro-pill 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro-link::before { animation: ro-line 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro .msg { animation: ro-msg 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro .msg-bubble { animation: ro-bubble 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro .msg-foot > span:first-child { animation: ro-note 13s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .ro .msg .app-btn { animation: ro-send 13s var(--ease-soft) var(--loops, infinite); }

/* The stock card waits in the middle of the picture, and moves up to make room when the message comes
   (--ro-shift is half of what arrives under it; landing.js measures it). */
@keyframes ro-shift {
  0%, 2.5% { translate: 0 0; }
  8%, 46% { translate: 0 var(--ro-shift, 0px); }
  55%, 100% { translate: 0 0; }
}
@keyframes ro-t0 { 0% { opacity: 0; } 5%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes ro-t1 { 0% { opacity: 1; } 5%, 28% { opacity: 0; } 32%, 100% { opacity: 1; } }
@keyframes ro-num-a { 0% { --ron: 12; } 6%, 14% { --ron: 48; } 30%, 100% { --ron: 12; } }
@keyframes ro-num-b { 0% { --ron: 20; } 6%, 14% { --ron: 84; } 30%, 100% { --ron: 20; } }
@keyframes ro-fall {
  0% { inline-size: var(--v); background-color: var(--yellow-solid); }
  6% { inline-size: var(--v0); background-color: var(--sage); }
  14% { inline-size: var(--v0); background-color: var(--sage); animation-timing-function: linear; }
  30%, 100% { inline-size: var(--v); background-color: var(--yellow-solid); }
}
@keyframes ro-chip {
  0% { opacity: 1; scale: 1; }
  4% { opacity: 0; scale: 0.6; }
  30% { opacity: 0; scale: 0.6; animation-timing-function: var(--ease-spring); }
  34%, 100% { opacity: 1; scale: 1; }
}
@keyframes ro-btn {
  0%, 35% { opacity: 0; translate: 0 8px; scale: 0.92; }
  39%, 43% { opacity: 1; translate: 0 0; scale: 1; }
  44.5% { opacity: 1; translate: 0 0; scale: 0.95; }
  46% { opacity: 1; translate: 0 0; scale: 1; }
  49.5%, 100% { opacity: 0; translate: 0 0; scale: 0.94; }
}
@keyframes ro-tap { 0%, 42.5% { opacity: 0; scale: 0.5; } 44.5% { opacity: 0.9; } 49.5%, 100% { opacity: 0; scale: 2.2; } }
@keyframes ro-pill { 0% { opacity: 1; scale: 1; } 3%, 47.5% { opacity: 0; scale: 0.92; } 51.5%, 100% { opacity: 1; scale: 1; } }
@keyframes ro-line { 0% { opacity: 1; } 3%, 49% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes ro-msg {
  0% { opacity: 1; translate: 0 0; scale: 1; }
  3% { opacity: 0; translate: 0 0; scale: 1; }
  5%, 49% { opacity: 0; translate: 0 20px; scale: 0.97; }
  56%, 100% { opacity: 1; translate: 0 0; scale: 1; }
}
/* The message lands whole, as a message does in a chat, a moment after its card has arrived (owner, 2026-11-25:
   it "appears all together"; the earlier top-to-bottom wipe looked like a receipt printing). */
@keyframes ro-bubble {
  0%, 3% { opacity: 1; translate: 0 0; scale: 1; }
  3.1% { opacity: 0; translate: 0 10px; scale: 0.94; }
  55% { opacity: 0; translate: 0 10px; scale: 0.94; animation-timing-function: var(--ease-spring); }
  60%, 100% { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes ro-note { 0%, 3% { opacity: 1; } 3.1%, 63% { opacity: 0; } 67%, 100% { opacity: 1; } }
@keyframes ro-send {
  0%, 3% { opacity: 1; scale: 1; box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
  3.1%, 63% { opacity: 0; scale: 0.85; box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
  67%, 72% { opacity: 1; scale: 1; box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
  77% { opacity: 1; scale: 1; box-shadow: 0 0 0 7px rgb(47 106 74 / 0.22); }
  82% { opacity: 1; scale: 1; box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
  87% { opacity: 1; scale: 1; box-shadow: 0 0 0 7px rgb(47 106 74 / 0.2); }
  92%, 100% { opacity: 1; scale: 1; box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
}

/* ---- Close the day ---- */
.pic.is-on .cd-sum .s0 { animation: cd-s0 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd-sum .s1 { animation: cd-s1 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd-left { animation: cd-left 12s linear var(--loops, infinite); }
.pic.is-on .cd li:nth-child(1) .cd-you { animation: cd-you-0 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li:nth-child(2) .cd-you { animation: cd-you-1 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li:nth-child(3) .cd-you { animation: cd-you-2 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li:nth-child(4) .cd-you { animation: cd-you-3 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li:nth-child(1) .cd-chip { animation: cd-chip-0 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li:nth-child(2) .cd-chip { animation: cd-chip-1 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li:nth-child(3) .cd-chip { animation: cd-chip-2 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li:nth-child(4) .cd-chip { animation: cd-chip-3 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li.is-off { animation: cd-off 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd li.is-off small { animation: cd-off-note 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd-close { animation: cd-close 12s var(--ease-soft) var(--loops, infinite); }
.pic.is-on .cd-tap { animation: cd-tap 12s var(--ease-out) var(--loops, infinite); }
.pic.is-on .cd-done { animation: cd-done 12s var(--ease-soft) var(--loops, infinite); }

@keyframes cd-s0 { 0% { opacity: 0; } 3%, 53% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes cd-s1 { 0% { opacity: 1; } 3%, 53% { opacity: 0; } 56%, 100% { opacity: 1; } }
@keyframes cd-left {
  0%, 14.9% { --cdn: 4; }
  15%, 24.9% { --cdn: 3; }
  25%, 34.9% { --cdn: 2; }
  35%, 44.9% { --cdn: 1; }
  45%, 100% { --cdn: 0; }
}
@keyframes cd-you-0 { 0% { opacity: 1; } 3%, 12% { opacity: 0; } 15%, 100% { opacity: 1; } }
@keyframes cd-you-1 { 0% { opacity: 1; } 3%, 22% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes cd-you-2 { 0% { opacity: 1; } 3%, 32% { opacity: 0; } 35%, 100% { opacity: 1; } }
@keyframes cd-you-3 { 0% { opacity: 1; } 3%, 42% { opacity: 0; } 45%, 100% { opacity: 1; } }
@keyframes cd-chip-0 { 0% { opacity: 1; scale: 1; } 3% { opacity: 0; scale: 0.6; } 15% { opacity: 0; scale: 0.6; animation-timing-function: var(--ease-spring); } 18.5%, 100% { opacity: 1; scale: 1; } }
@keyframes cd-chip-1 { 0% { opacity: 1; scale: 1; } 3% { opacity: 0; scale: 0.6; } 25% { opacity: 0; scale: 0.6; animation-timing-function: var(--ease-spring); } 28.5%, 100% { opacity: 1; scale: 1; } }
@keyframes cd-chip-2 { 0% { opacity: 1; scale: 1; } 3% { opacity: 0; scale: 0.6; } 35% { opacity: 0; scale: 0.6; animation-timing-function: var(--ease-spring); } 38.5%, 100% { opacity: 1; scale: 1; } }
@keyframes cd-chip-3 { 0% { opacity: 1; scale: 1; } 3% { opacity: 0; scale: 0.6; } 45% { opacity: 0; scale: 0.6; animation-timing-function: var(--ease-spring); } 48.5%, 100% { opacity: 1; scale: 1; } }
@keyframes cd-off {
  0% { background-color: var(--amber-tint); box-shadow: inset 0 0 0 1px #efdcae; }
  3%, 15% { background-color: rgb(251 243 227 / 0); box-shadow: inset 0 0 0 1px rgb(239 220 174 / 0); }
  19%, 100% { background-color: var(--amber-tint); box-shadow: inset 0 0 0 1px #efdcae; }
}
@keyframes cd-off-note { 0% { color: #6f4409; } 3%, 15% { color: var(--muted); } 19%, 100% { color: #6f4409; } }
/* The button waits, greyed, until everything is counted; then it is ready, pressed, and gives way to the closed day. */
@keyframes cd-close {
  0% { opacity: 0; scale: 1; background-color: var(--primary); color: var(--on-ink); }
  4%, 54% { opacity: 1; scale: 1; background-color: #eceae3; color: var(--muted); }
  58%, 63% { opacity: 1; scale: 1; background-color: var(--primary); color: var(--on-ink); }
  64.5% { opacity: 1; scale: 0.97; background-color: var(--primary-press); color: var(--on-ink); }
  66% { opacity: 1; scale: 1; background-color: var(--primary); color: var(--on-ink); }
  70.5%, 100% { opacity: 0; scale: 1; background-color: var(--ink); color: var(--on-ink); }
}
@keyframes cd-tap { 0%, 62.5% { opacity: 0; scale: 0.5; } 64.5% { opacity: 0.9; } 69.5%, 100% { opacity: 0; scale: 2.2; } }
@keyframes cd-done { 0% { opacity: 1; scale: 1; } 4%, 66% { opacity: 0; scale: 0.97; } 71%, 100% { opacity: 1; scale: 1; } }

/* A picture that is off the screen rests: its loop is paused until it is back in view (site.js marks it). */
[data-play].is-away,
[data-play].is-away *,
[data-play].is-away *::before,
[data-play].is-away *::after {
  animation-play-state: paused !important;
}

/* Orders: the stages, one order moving along them. */
.order {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-top b {
  font-size: 14px;
}

.order-top small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0;
  list-style: none;
}

.stages li {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}

.stages li::before {
  content: "";
  block-size: 5px;
  border-radius: 3px;
  background-color: var(--line);
}

.stages li.is-done::before {
  background-color: var(--primary);
}

.stages li.is-now {
  color: var(--ink);
  font-weight: 800;
}

.stages li.is-now::before {
  background-color: var(--primary);
}

.order-who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.order-who > span {
  display: grid;
}

.order-who small {
  color: var(--muted);
  font-size: 11px;
}

.order-photo {
  inline-size: 64px;
  block-size: 43px;
  border-radius: 8px;
  object-fit: cover;
}

.shop-cover {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.av {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 28px;
  block-size: 28px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background-color: var(--c, var(--primary-tint));
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
}

.shoplink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--line-input);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 11.5px;
  overflow: hidden;
}

.shoplink span {
  flex: none;
  white-space: nowrap;
}

.shoplink b {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shoplink .icon {
  inline-size: 14px;
  block-size: 14px;
}

/* Invoices: a receipt-style paper coming out. */
.paperwrap {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.slot {
  inline-size: min(250px, 92%);
  block-size: 10px;
  border-radius: 6px;
  background-color: var(--ink);
}

.paper {
  inline-size: min(220px, 84%);
  margin-block-start: -12px;
  padding: 14px 14px 18px;
  background-color: var(--surface);
  box-shadow: var(--e2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 92% 97%, 84% 100%, 76% 97%, 68% 100%, 60% 97%, 52% 100%, 44% 97%, 36% 100%, 28% 97%, 20% 100%, 12% 97%, 4% 100%, 0 97%);
}

.paper-name {
  font-weight: 800;
  text-align: center;
}

.paper-sub {
  margin-block-end: 8px;
  color: var(--muted);
  text-align: center;
}

.paper dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
}

.paper dt {
  min-inline-size: 0;
}

.paper .sum {
  margin-block-start: 6px;
  padding-block-start: 6px;
  border-block-start: 1px dashed var(--line-input);
  font-size: 13px;
  font-weight: 800;
}

.paper-actions {
  display: flex;
  gap: 8px;
}

.paper-actions .app-btn {
  min-block-size: 32px;
  font-size: 12px;
}

/* Branches and staff. */
.team {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background-color: var(--paper);
}

.team-row .icon {
  inline-size: 18px;
  block-size: 18px;
  color: var(--primary);
}

.team-row b {
  display: block;
  font-size: 13px;
}

.team-row small {
  color: var(--muted);
  font-size: 11px;
}

.stack {
  display: flex;
}

.stack .av + .av {
  margin-inline-start: -8px;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-block-start: 4px;
}

.role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 26px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
}

.role .icon {
  inline-size: 12px;
  block-size: 12px;
}

.role-off {
  color: var(--muted);
}

/* The tiles' moments: they play once the tile is in view. */

/* Sell (from version B, owner 2026-11-24): a tap on +, the bunch flies into the sale, then stock drops by 12.
   landing.js measures where the bunch starts and lands (--f1x … --fs), so it works at every width. */
.sell-tap {
  position: absolute;
  inset-block-end: 4px;
  inset-inline-end: 4px;
  inline-size: 38px;
  block-size: 38px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.sell-flyer {
  --f1x: 0px;
  --f1y: 0px;
  --f2x: 0px;
  --f2y: 0px;
  --fs: 0.3;
  position: absolute;
  z-index: 3;
  inline-size: 100px;
  block-size: 100px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 16px 14px rgb(var(--shadow-rgb) / 0.32));
  pointer-events: none;
}

.stockchip {
  position: relative;
}

.sell-minus {
  position: absolute;
  inset-block-start: -12px;
  inset-inline-end: 10px;
  color: var(--danger);
  font-style: normal;
  font-weight: 800;
  opacity: 0;
}

.pic.is-on .sellpic .app-add {
  animation: press 7s var(--ease-out) var(--loops, infinite);
}

.pic.is-on .sell-tap {
  animation: sell-tap 7s var(--ease-out) var(--loops, infinite);
}

.pic.is-on .sell-flyer {
  animation: sell-fly 7s cubic-bezier(0.45, 0, 0.25, 1) var(--loops, infinite);
}

.pic.is-on .sell-new {
  animation: sell-line 7s var(--ease-soft) var(--loops, infinite);
}

.pic.is-on .flip .was {
  animation: sell-was 7s var(--ease-soft) var(--loops, infinite);
}

.pic.is-on .flip .now {
  animation: sell-now 7s var(--ease-soft) var(--loops, infinite);
}

.pic.is-on .sell-minus {
  animation: sell-minus 7s var(--ease-out) var(--loops, infinite);
}

@keyframes press {
  0%,
  8% {
    scale: 1;
  }

  11% {
    scale: 0.8;
  }

  15%,
  100% {
    scale: 1;
  }
}

@keyframes sell-tap {
  0%,
  6% {
    opacity: 0;
    scale: 0.5;
  }

  9% {
    opacity: 0.9;
  }

  17%,
  100% {
    opacity: 0;
    scale: 2.3;
  }
}

@keyframes sell-fly {
  0%,
  12% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }

  14% {
    opacity: 1;
  }

  27% {
    opacity: 1;
    transform: translate(var(--f1x), var(--f1y)) scale(calc((1 + var(--fs)) / 2)) rotate(-10deg);
  }

  38% {
    opacity: 1;
    transform: translate(var(--f2x), var(--f2y)) scale(var(--fs));
  }

  41%,
  100% {
    opacity: 0;
    transform: translate(var(--f2x), var(--f2y)) scale(var(--fs));
  }
}

@keyframes sell-line {
  0%,
  37% {
    opacity: 0;
    translate: 0 -6px;
  }

  42%,
  92% {
    opacity: 1;
    translate: 0 0;
  }

  98%,
  100% {
    opacity: 0;
  }
}

@keyframes sell-was {
  0%,
  50% {
    opacity: 1;
    translate: 0 0;
  }

  56%,
  93% {
    opacity: 0;
    translate: 0 -10px;
  }

  99%,
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes sell-now {
  0%,
  50% {
    opacity: 0;
    translate: 0 10px;
  }

  56%,
  93% {
    opacity: 1;
    translate: 0 0;
  }

  99%,
  100% {
    opacity: 0;
  }
}

@keyframes sell-minus {
  0%,
  52% {
    opacity: 0;
    translate: 0 6px;
  }

  58% {
    opacity: 1;
  }

  74%,
  100% {
    opacity: 0;
    translate: 0 -20px;
  }
}

/* Recipes (from version B, owner 2026-11-24): a small card where the bouquet comes apart into its stems.
   It plays through once when the card comes into view, not with the scroll. A stage drawn at a fixed size,
   scaled to the card (landing.js sets --k); a narrow card gets its own layout. */
.pic-recipe {
  container-type: inline-size;
}

.stage-fit {
  --w: 480;
  --h: 330;
  position: relative;
  inline-size: 100%;
  block-size: calc(var(--h) * 1px * var(--k, 1));
}

.stage-in {
  position: absolute;
  inset-block-start: 0;
  left: 50%;
  inline-size: calc(var(--w) * 1px);
  block-size: calc(var(--h) * 1px);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  text-align: start;
  transform: translateX(-50%) scale(var(--k, 1));
  transform-origin: 50% 0;
}

.rc-lines {
  position: absolute;
  inset: 0;
  max-inline-size: none;
  overflow: visible;
}

.rc-lines-w {
  inline-size: 480px;
  block-size: 330px;
}

.rc-lines-n {
  display: none;
  inline-size: 300px;
  block-size: 410px;
}

.rc-lines path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
}

.rc-bq {
  position: absolute;
  inset-block-start: 70px;
  left: 175px;
  inline-size: 130px;
  block-size: 130px;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgb(var(--shadow-rgb) / 0.28));
}

.rc-item {
  --ffx: var(--fx);
  --ffy: var(--fy);
  position: absolute;
  inset-block-start: var(--y);
  left: var(--x);
  display: flex;
  align-items: center;
  gap: 8px;
  inline-size: 150px;
  padding: 8px 10px 8px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface);
  box-shadow: var(--e2);
}

.rc-item img {
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  object-fit: contain;
}

.rc-item span {
  display: grid;
  font-size: 13px;
  font-weight: 600;
}

.rc-item b {
  color: var(--primary);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.rc-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.rc-item.is-limit {
  border-color: var(--amber);
  background-color: var(--amber-tint);
}

.rc-item.is-limit small {
  color: var(--amber);
  font-weight: 700;
}

.rc .rc-pill {
  position: absolute;
  inset-block-start: 268px;
  left: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  inline-size: 170px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background-color: var(--primary);
  box-shadow: 0 16px 26px -14px rgb(32 75 53 / 0.8);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 700;
}

.rc-pill b {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@container (width < 400px) {
  .rc-fit {
    --w: 300;
    --h: 410;
  }

  .rc-lines-w {
    display: none;
  }

  .rc-lines-n {
    display: block;
  }

  .rc-bq {
    inset-block-start: 105px;
    left: 90px;
    inline-size: 120px;
    block-size: 120px;
  }

  .rc-item {
    --ffx: var(--fxn);
    --ffy: var(--fyn);
    inset-block-start: var(--yn);
    left: var(--xn);
    inline-size: 140px;
  }

  .rc .rc-pill {
    inset-block-start: 252px;
    left: 70px;
    inline-size: 160px;
  }
}

.pic.is-on .rc-bq {
  animation: rc-bq 800ms var(--ease-soft) 100ms both;
}

.pic.is-on .rc-item {
  animation: rc-out 900ms var(--ease-soft) calc(500ms + var(--k) * 150ms) both;
}

.pic.is-on .rc-item.is-limit {
  animation: rc-out 900ms var(--ease-soft) 500ms both;
}

.pic.is-on .rc-lines path {
  animation: draw 900ms var(--ease-soft) 1300ms both;
}

.pic.is-on .rc-pill {
  animation: rc-pill 700ms var(--ease-spring) 2100ms both;
}

@keyframes rc-bq {
  from {
    opacity: 0;
    scale: 1.3;
    rotate: -8deg;
  }
}

@keyframes rc-out {
  from {
    opacity: 0;
    transform: translate(var(--ffx), var(--ffy)) scale(0.3);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes rc-pill {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.7);
  }
}

.pic.is-on .recipe-rows li {
  animation: row-in 700ms var(--ease-soft) calc(200ms + var(--k) * 140ms) both;
}

.pic.is-on .recipe .canpill {
  animation: pop 700ms var(--ease-spring) 900ms both;
}

@keyframes row-in {
  from {
    opacity: 0;
    translate: calc(var(--side) * -12px) 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.6;
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.pic.is-on .stages li:nth-child(3)::before {
  transform-origin: 0 50%;
  animation: grow 1s var(--ease-soft) 600ms both;
}

.pic.is-on .stages li.is-now {
  animation: pop 600ms var(--ease-spring) 1.4s both;
}

.pic.is-on .paper {
  animation: print 1.8s var(--ease-soft) 200ms both;
}

@keyframes print {
  from {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    translate: 0 -30px;
  }
}

.pic.is-on .team-row {
  animation: row-in 700ms var(--ease-soft) calc(150ms + var(--k) * 160ms) both;
}

.pic.is-on .stack .av {
  animation: pop 500ms var(--ease-spring) calc(500ms + var(--k) * 110ms) both;
}

/* ---------- Substitutes (owner, 2026-11-24): plan B, built into the recipe ----------
   A 10-second story, played when the section arrives (looping): Eucalyptus drains to 0 and its sprig
   falls away; its first substitute, Baby's breath, flies from its chip into the recipe line; the product's card now
   reads "Can make about 6 with Baby's breath"; a tap adds one and the toast says so (the app's own words). The steps
   beside it light in step with the story. At rest (motion off, a screenshot) it shows the finished state. */
.sub-steps {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.sub-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: 48px;
  padding: 6px 16px 6px 6px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
  transition: background-color 300ms var(--ease-out);
}

.sub-steps li > span {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.7);
  color: var(--ink-2);
  font-weight: 800;
}

/* The finished state: the third step is the one lit. */
.sub-steps .icon {
  inline-size: 18px;
  block-size: 18px;
  stroke-width: 2.6;
}

.sub-steps li:nth-child(3) {
  border-color: var(--line);
  background-color: var(--surface);
  box-shadow: var(--e2);
  color: var(--ink);
}

.sub-steps li:nth-child(3) > span {
  background-color: var(--primary);
  color: var(--on-ink);
}

/* The substitutes card: the whole row, a soft blush and sage ground, the words beside the story on a wide screen. */
.tile-subs {
  border-color: transparent;
  background: var(--noise) 0 0 / 220px, linear-gradient(160deg, #eef5f0, #f9eef0);
  background-blend-mode: overlay, normal;
}

.tile-subs .sub-pic {
  container-type: inline-size;
  min-block-size: 0;
  padding: 8px 0 0;
  background: transparent;
  overflow: visible;
}

@media (min-width: 44rem) {
  .tile-subs {
    grid-column: 1 / -1;
  }
}

/* Two columns: Close the day sits beside the recipes, so no row has a gap; the substitutes' row follows. */
@media (min-width: 44rem) and (width < 64rem) {
  .tile-sell {
    order: -3;
  }

  .tile-recipe {
    order: -2;
  }

  .tile-close {
    order: -1;
  }
}

@media (min-width: 64rem) {
  .tile-subs {
    grid-row: span 1;
    grid-template-rows: none;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
    padding: clamp(24px, 2.6vw, 36px);
  }

  .tile-subs .sub-pic {
    padding: 0;
  }
}

.sub-fit {
  --w: 620;
  --h: 400;
}

/* The recipe card: fixed rows, so the substitute's flight lands on its line. */
.sub-card {
  position: absolute;
  inset-block-start: 0;
  left: 0;
  inline-size: 340px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: var(--surface);
  box-shadow: var(--e3);
}

.sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  block-size: 52px;
  margin-block-end: 10px;
}

.sub-head img {
  inline-size: 44px;
  block-size: 44px;
  padding: 3px;
  border-radius: 12px;
  background-color: #f8e9ee;
  object-fit: contain;
}

.sub-head span {
  display: grid;
}

.sub-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sub-head b {
  font-size: 15px;
}

.sub-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  block-size: 52px;
  margin-block-end: 6px;
  padding-inline: 8px 10px;
  border-radius: 12px;
  background-color: var(--paper);
  font-weight: 600;
}

.sub-row img {
  inline-size: 36px;
  block-size: 36px;
  object-fit: contain;
}

.sub-row b {
  color: var(--primary);
  font-weight: 800;
}

.sub-row em,
.sub-roll {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.sub-bar {
  position: absolute;
  inset-inline: 10px;
  inset-block-end: 5px;
  block-size: 3px;
  border-radius: 3px;
  background-color: var(--line);
  overflow: hidden;
}

.sub-bar i {
  display: block;
  block-size: 100%;
  background-color: var(--primary);
  transform: scaleX(var(--fill, 0.5));
  transform-origin: 0 50%;
}

:root[dir="rtl"] .sub-bar i {
  transform-origin: 100% 50%;
}

.sub-row-swap {
  display: block;
  background-color: var(--primary-tint);
}

.sub-layer {
  position: absolute;
  inset: 0 10px 0 8px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
}

.sub-layer > span {
  min-inline-size: 0;
  line-height: 1.25;
}

.sub-layer small {
  display: block;
  color: var(--primary-press);
  font-size: 11px;
  font-weight: 700;
}

/* At rest the substitute is in use: Eucalyptus' layer is gone, Baby's breath's shows. */
.sub-main {
  grid-template-columns: 36px 1fr auto auto;
  opacity: 0;
}

.sub-roll {
  display: inline-grid;
}

.sub-roll > span {
  grid-area: 1 / 1;
  text-align: end;
}

.sub-roll .r0 {
  opacity: 0;
}

.sub-out {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background-color: var(--danger);
  color: var(--on-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sub-bar-swap i {
  --fill: 0.45;
}

.sub-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  block-size: 56px;
  margin: 0 0 6px 24px;
  padding-inline: 12px 10px;
  border: 1.5px solid var(--primary-soft);
  border-radius: 14px;
  background-color: var(--surface);
  font-size: 12.5px;
}

.sub-chip::before {
  content: "";
  position: absolute;
  inset-block: -10px 50%;
  inset-inline-start: -14px;
  inline-size: 12px;
  border-block-end: 1.5px dashed var(--line-input);
  border-inline-start: 1.5px dashed var(--line-input);
  border-end-start-radius: 8px;
}

.sub-swap-ic {
  inline-size: 18px;
  block-size: 18px;
  color: var(--primary);
}

.sub-chip img {
  inline-size: 32px;
  block-size: 32px;
  object-fit: contain;
}

.sub-chip span {
  display: grid;
  flex: 1;
  min-inline-size: 0;
}

.sub-chip small {
  color: var(--muted);
  font-size: 11px;
}

.sub-inuse {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background-color: var(--primary);
  color: var(--on-ink);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
}

.sub-fly {
  position: absolute;
  inset-block-start: 206px;
  left: 78px;
  inline-size: 32px;
  block-size: 32px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 10px 8px rgb(var(--shadow-rgb) / 0.3));
  pointer-events: none;
}

:root[dir="rtl"] .sub-fly {
  left: auto;
  right: 78px;
}

/* The product's card in Sell, and the message after the tap. */
.sub-tile {
  position: absolute;
  inset-block-start: 0;
  left: 384px;
  inline-size: 220px;
  box-shadow: var(--e3);
}

.sub-tile .app-card-text {
  padding: 10px 12px 14px;
}

.sub-cans {
  display: grid;
}

.sub-cans > span {
  grid-area: 1 / 1;
}

.sub-can0 {
  opacity: 0;
}

.app-can.sub-can1::before {
  background-color: var(--primary);
}

.sub-tap {
  position: absolute;
  inset-block-end: 4px;
  inset-inline-end: 4px;
  inline-size: 38px;
  block-size: 38px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
}

.sub-stage .sub-toast {
  position: absolute;
  inset-block-start: 340px;
  left: 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  inline-size: 484px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background-color: var(--ink);
  box-shadow: var(--e3);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 600;
}

.sub-toast .icon {
  flex: none;
  inline-size: 18px;
  block-size: 18px;
  color: var(--sage-light);
  stroke-width: 3;
}

/* A narrow column (phones): the recipe on top, the product's card under it, then the message. */
@container (width < 520px) {
  .sub-fit {
    --w: 340;
    --h: 690;
  }

  .sub-tile {
    inset-block-start: 346px;
    left: 60px;
  }

  .sub-stage .sub-toast {
    inset-block-start: 620px;
    left: 0;
    inline-size: 340px;
  }
}

/* ---------- The story, 10 s, from the start to the finished state ---------- */
.tile-subs.is-on .sub-stage { animation: sub-stage 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-bar-swap i { animation: sub-bar 10s var(--ease-soft) var(--loops, infinite); }
.tile-subs.is-on .sub-roll .r0 { animation: sub-r0 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-roll .r1 { animation: sub-r1 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-out { animation: sub-out 10s var(--ease-spring) var(--loops, infinite); }
.tile-subs.is-on .sub-main { animation: sub-main 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-fall { animation: sub-fall 10s var(--ease-soft) var(--loops, infinite); }
.tile-subs.is-on .sub-chip { animation: sub-chip 10s var(--ease-out) var(--loops, infinite); }
.tile-subs.is-on .sub-fly { animation: sub-fly 10s cubic-bezier(0.45, 0, 0.25, 1) var(--loops, infinite); }
.tile-subs.is-on .sub-alt { animation: sub-alt 10s var(--ease-soft) var(--loops, infinite); }
.tile-subs.is-on .sub-alt img { animation: sub-bloom 10s var(--ease-spring) var(--loops, infinite); }
.tile-subs.is-on .sub-inuse { animation: sub-inuse 10s var(--ease-spring) var(--loops, infinite); }
.tile-subs.is-on .sub-can0 { animation: sub-can0 10s var(--ease-soft) var(--loops, infinite); }
.tile-subs.is-on .sub-can1 { animation: sub-can1 10s var(--ease-soft) var(--loops, infinite); }
.tile-subs.is-on .sub-tile { animation: sub-tile 10s var(--ease-out) var(--loops, infinite); }
.tile-subs.is-on .sub-plus { animation: sub-plus 10s var(--ease-out) var(--loops, infinite); }
.tile-subs.is-on .sub-tap { animation: sub-tap 10s var(--ease-out) var(--loops, infinite); }
.tile-subs.is-on .sub-toast { animation: sub-toast 10s var(--ease-soft) var(--loops, infinite); }
.tile-subs.is-on .sub-steps li:nth-child(1) { animation: sub-step1 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-steps li:nth-child(2) { animation: sub-step2 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-steps li:nth-child(3) { animation: sub-step3 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-steps li:nth-child(1) > span { animation: sub-num1 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-steps li:nth-child(2) > span { animation: sub-num2 10s linear var(--loops, infinite); }
.tile-subs.is-on .sub-steps li:nth-child(3) > span { animation: sub-num3 10s linear var(--loops, infinite); }

@keyframes sub-stage { 0% { opacity: 0; } 3%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sub-bar {
  0%, 6% { transform: scaleX(0.8); background-color: var(--primary); }
  22%, 36% { transform: scaleX(0); background-color: var(--danger); }
  46%, 100% { transform: scaleX(0.45); background-color: var(--primary); }
}
@keyframes sub-r0 { 0%, 20% { opacity: 1; } 23%, 100% { opacity: 0; } }
@keyframes sub-r1 { 0%, 20% { opacity: 0; } 23%, 100% { opacity: 1; } }
@keyframes sub-out { 0%, 21% { opacity: 0; scale: 0.4; } 25%, 100% { opacity: 1; scale: 1; } }
@keyframes sub-main { 0%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes sub-fall {
  0%, 26% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  35%, 100% { opacity: 0; transform: translate(-6px, 46px) rotate(55deg) scale(0.7); }
}
@keyframes sub-chip {
  0%, 30% { box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
  34% { box-shadow: 0 0 0 6px rgb(47 106 74 / 0.22); }
  42%, 100% { box-shadow: 0 0 0 0 rgb(47 106 74 / 0); border-color: var(--primary); }
}
@keyframes sub-fly {
  0%, 33% { opacity: 0; transform: translate(0, 0) scale(1); }
  35% { opacity: 1; transform: translate(0, 0) scale(1.15); }
  40% { opacity: 1; transform: translate(-40px, -46px) scale(1.25) rotate(-12deg); }
  45% { opacity: 1; transform: translate(-54px, -62px) scale(1.125); }
  48%, 100% { opacity: 0; transform: translate(-54px, -62px) scale(1.125); }
}
@keyframes sub-alt { 0%, 44% { opacity: 0; } 47%, 100% { opacity: 1; } }
@keyframes sub-bloom { 0%, 44% { scale: 0.4; rotate: -60deg; } 50%, 100% { scale: 1; rotate: 0deg; } }
@keyframes sub-inuse { 0%, 45% { opacity: 0; scale: 0.5; } 49%, 100% { opacity: 1; scale: 1; } }
@keyframes sub-can0 { 0%, 50% { opacity: 1; translate: 0 0; } 54%, 100% { opacity: 0; translate: 0 -8px; } }
@keyframes sub-can1 { 0%, 50% { opacity: 0; translate: 0 8px; } 54%, 100% { opacity: 1; translate: 0 0; } }
@keyframes sub-tile {
  0%, 50% { box-shadow: var(--e3), 0 0 0 0 rgb(47 106 74 / 0); }
  54% { box-shadow: var(--e3), 0 0 0 6px rgb(47 106 74 / 0.25); }
  60%, 100% { box-shadow: var(--e3), 0 0 0 0 rgb(47 106 74 / 0); }
}
@keyframes sub-plus { 0%, 58% { scale: 1; } 60% { scale: 0.8; } 63%, 100% { scale: 1; } }
@keyframes sub-tap { 0%, 57% { opacity: 0; scale: 0.5; } 60% { opacity: 0.9; } 66%, 100% { opacity: 0; scale: 2.3; } }
@keyframes sub-toast { 0%, 63% { opacity: 0; translate: 0 18px; } 68%, 100% { opacity: 1; translate: 0 0; } }
@keyframes sub-step1 {
  0%, 21% { border-color: var(--line); background-color: var(--surface); box-shadow: var(--e2); color: var(--ink); }
  23%, 100% { border-color: transparent; background-color: transparent; box-shadow: none; color: var(--ink-2); }
}
@keyframes sub-step2 {
  0%, 21% { border-color: transparent; background-color: transparent; box-shadow: none; color: var(--ink-2); }
  23%, 45% { border-color: var(--line); background-color: var(--surface); box-shadow: var(--e2); color: var(--ink); }
  47%, 100% { border-color: transparent; background-color: transparent; box-shadow: none; color: var(--ink-2); }
}
@keyframes sub-step3 {
  0%, 45% { border-color: transparent; background-color: transparent; box-shadow: none; color: var(--ink-2); }
  47%, 100% { border-color: var(--line); background-color: var(--surface); box-shadow: var(--e2); color: var(--ink); }
}
@keyframes sub-num1 { 0%, 21% { background-color: var(--primary); color: var(--on-ink); } 23%, 100% { background-color: rgb(255 255 255 / 0.7); color: var(--ink-2); } }
@keyframes sub-num2 { 0%, 21% { background-color: rgb(255 255 255 / 0.7); color: var(--ink-2); } 23%, 45% { background-color: var(--danger); color: var(--on-ink); } 47%, 100% { background-color: rgb(255 255 255 / 0.7); color: var(--ink-2); } }
@keyframes sub-num3 { 0%, 45% { background-color: rgb(255 255 255 / 0.7); color: var(--ink-2); } 47%, 100% { background-color: var(--primary); color: var(--on-ink); } }

:root[data-still] .tile-subs * {
  animation: none !important;
}

/* The features' cards fly together (owner, 2026-11-24): each from its own side, a little turned, in turn along its
   row, as it comes into view. landing.js marks the grid (.is-gathering) only when motion is on, so without the script,
   with motion off or in a screenshot, the cards simply sit in place. */
.bento.is-gathering .tile:not(.is-in) {
  transform: translate(calc(var(--gx, 0px) * var(--gk, 1)), calc(var(--gy, 80px) * var(--gk, 1))) rotate(var(--gr, 0deg)) scale(0.94);
}

.bento.is-gathering .tile.is-in {
  animation: gather 1100ms cubic-bezier(0.2, 0.9, 0.25, 1.05) calc(var(--gi, 0) * 120ms) both;
}

@keyframes gather {
  from {
    transform: translate(calc(var(--gx, 0px) * var(--gk, 1)), calc(var(--gy, 80px) * var(--gk, 1))) rotate(var(--gr, 0deg)) scale(0.94);
  }

  to {
    transform: none;
  }
}

@media (width < 44rem) {
  .bento {
    --gk: 0.4;
  }
}

:root[data-rm="on"] .bento.is-gathering .tile {
  opacity: 1;
  transform: none;
}

/* ---------- Who it's for: tall cards on a rail ---------- */

.who-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 64rem) {
  .who-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }
}

.who-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

@media (min-width: 64rem) {
  .who-copy {
    position: sticky;
    inset-block-start: 120px;
    padding-block-start: 12px;
  }
}

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

.rail-btn {
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border: 1.5px solid var(--line-input);
  border-radius: 50%;
  background-color: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out);
}

.rail-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

:root[dir="rtl"] .rail-btn .icon {
  scale: -1 1;
}

@media (hover: hover) {
  .rail-btn:not([aria-disabled="true"]):hover {
    background-color: var(--sunken);
  }
}

ul.rail {
  display: grid;
  grid-auto-columns: min(82%, 21rem);
  grid-auto-flow: column;
  gap: 16px;
  margin-inline: calc(var(--gut) * -1);
  padding: 6px var(--gut) 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--gut);
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

@media (min-width: 64rem) {
  ul.rail {
    grid-auto-columns: minmax(18rem, 1fr);
    margin-inline: 0 calc(var(--gut) * -1);
    padding-inline: 0 var(--gut);
    scroll-padding-inline: 0;
  }
}

/* Wide enough for all three: no rail, no arrows. */
@media (min-width: 76rem) {
  .who-grid {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  }

  ul.rail {
    grid-auto-columns: minmax(0, 1fr);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .rail-nav {
    display: none;
  }
}

.who-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-block-size: clamp(30rem, 44vw, 34rem);
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--noise) 0 0 / 220px, var(--g);
  background-blend-mode: overlay, normal;
  color: var(--fg, var(--ink));
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}

.who-card h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 400;
  line-height: 1;
}

.who-card p {
  max-inline-size: 24rem;
  color: var(--fg2, var(--ink-2));
}

.who-for {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  inline-size: fit-content;
  color: var(--fg2, var(--ink-2));
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
}

.who-top {
  display: grid;
  gap: 10px;
}

/* The owner's arrangement for each kind of shop, standing at the card's foot behind its button. */
.who-fl {
  position: absolute;
  inset-block-end: -8px;
  inset-inline-end: 2%;
  z-index: -1;
  block-size: 60%;
  filter: drop-shadow(0 24px 24px rgb(var(--shadow-rgb) / 0.28));
  translate: 0 calc(var(--wy, 0) * 1px);
}

.who-fl img {
  inline-size: auto;
  block-size: 100%;
  max-inline-size: none;
}

.who-fl-wide {
  inset-inline-end: -4%;
  block-size: 46%;
}

.who-card .btn {
  justify-self: start;
}

.who-1 {
  --g: linear-gradient(170deg, #fbeff0, #f0c8cd);
}

.who-2 {
  --g: linear-gradient(170deg, #f0f6f2, #c6ddce);
}

.who-3 {
  --g: linear-gradient(170deg, #2a5d42, #173a29);
  --fg: var(--on-ink);
  --fg2: rgb(255 255 255 / 0.86);
}

.who-3 .badge {
  background-color: rgb(255 255 255 / 0.14);
  color: var(--on-ink);
}

/* ---------- Works with: PetalQ in the middle, what it works with around it ---------- */

.ring {
  position: relative;
  inline-size: min(100%, 44rem);
  aspect-ratio: 1.55;
  margin-inline: auto;
}

@media (width < 40rem) {
  .ring {
    aspect-ratio: 0.95;
  }
}

.ring-lines {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ring-lines span {
  position: absolute;
  inline-size: calc(var(--k) * 24%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 92%, rgb(47 106 74 / 0.05));
}

@media (width < 40rem) {
  .ring-lines span {
    inline-size: calc(var(--k) * 30%);
  }
}

/* The ripple from the middle: two rings, one after the other, without end (as in round 1; taken out on 2026-11-24
   in the clean-up round, and back on 2026-11-25 because the owner asked where it had gone). It rests while the
   picture is off the screen (data-play), and there is none with motion off. */
.ring-pulse {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 22%;
  aspect-ratio: 1;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  translate: -50% -50%;
  opacity: 0;
  animation: ripple 5s var(--ease-out) var(--delay) infinite;
}

:root[dir="rtl"] .ring-pulse {
  translate: 50% -50%;
}

:root[data-still] .ring-pulse {
  animation: none;
}

@keyframes ripple {
  0% {
    opacity: 0.8;
    scale: 0.6;
  }

  100% {
    opacity: 0;
    scale: 3.6;
  }
}

.ring-hub {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: grid;
  place-items: center;
  inline-size: clamp(84px, 13vw, 112px);
  aspect-ratio: 1;
  border-radius: 28px;
  background-color: var(--surface);
  box-shadow: 0 24px 50px -20px rgb(32 75 53 / 0.5), 0 0 0 8px rgb(47 106 74 / 0.06);
  translate: -50% -50%;
}

:root[dir="rtl"] .ring-hub {
  translate: 50% -50%;
}

.ring-hub img {
  inline-size: 62%;
}

.chip {
  position: absolute;
  inset-block-start: var(--y);
  inset-inline-start: var(--x);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: var(--surface);
  box-shadow: var(--e2);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  translate: -50% -50%;
  animation: bob calc(5s + var(--k) * 0.6s) ease-in-out calc(var(--k) * -1.1s) infinite;
}

:root[dir="rtl"] .chip {
  translate: 50% -50%;
}

.chip-ic {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary);
}

.chip-ic .icon {
  inline-size: 17px;
  block-size: 17px;
}

@keyframes bob {
  50% {
    transform: translateY(-7px);
  }
}

@media (width < 40rem) {
  .chip {
    inset-inline-start: var(--xs, var(--x));
    gap: 6px;
    min-block-size: 40px;
    padding-inline-end: 11px;
    font-size: 0.8125rem;
  }

  .chip-ic {
    inline-size: 28px;
    block-size: 28px;
  }
}

.works-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 32px;
  max-inline-size: 60rem;
  margin: clamp(28px, 4vw, 48px) auto 0;
}

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

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

.works-list li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-block: 14px;
  border-block-start: 1px solid var(--line);
}

.works-list b {
  font-weight: 700;
}

.works-list span {
  color: var(--ink-2);
}

/* ---------- The dark band: why PetalQ, over a meadow ---------- */

.band {
  position: relative;
  padding-block: var(--section) 0;
  background: var(--noise) 0 0 / 220px, linear-gradient(180deg, #1d4430, var(--stem-deep) 55%, #163826);
  background-blend-mode: overlay, normal;
  color: var(--on-ink);
  overflow: hidden;
  isolation: isolate;
}

.band .lead {
  color: var(--on-glass-2);
}

.glass-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
}

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

@media (min-width: 72rem) {
  .glass-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 32px;
  }
}

.glass {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--glass-line);
}

.glass-ic {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 12px;
  background-color: rgb(255 255 255 / 0.12);
  color: var(--sage-light);
}

.glass h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.05;
}

.glass p {
  color: var(--on-glass-2);
}

.band-cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-start: clamp(48px, 6vw, 84px);
}

.band-cta p {
  max-inline-size: 30rem;
  color: var(--on-glass-2);
}

.meadow {
  position: relative;
  z-index: 1;
  block-size: clamp(190px, 22vw, 300px);
  margin-block-start: clamp(12px, 2vw, 24px);
  pointer-events: none;
}

.stem {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: var(--x);
  inline-size: calc(var(--s) * var(--ss, 1));
  block-size: var(--h);
  transform-origin: 50% 100%;
  rotate: calc(var(--lean) + var(--mx) * 5deg * var(--follow));
  transition: rotate 1.1s var(--ease-soft);
}

.stem-sway {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  animation: stemsway calc(4.5s + var(--k) * 0.35s) ease-in-out calc(var(--k) * -0.7s) infinite alternate;
}

.stem-line {
  position: absolute;
  inset-block: calc(var(--s) * var(--ss, 1) * 0.45) 0;
  inset-inline-start: calc(50% - 1px);
  inline-size: 2px;
  border-radius: 2px;
  background: linear-gradient(to top, transparent, var(--sage) 45%);
}

.stem-head {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  aspect-ratio: 1;
  filter: drop-shadow(0 14px 12px rgb(0 0 0 / 0.3));
}

.stem-head img {
  inline-size: 100%;
}

@keyframes stemsway {
  from {
    rotate: -3deg;
  }

  to {
    rotate: 3deg;
  }
}

@media (width < 60rem) {
  .stem {
    --ss: 0.78;
  }
}

@media (width < 37.5rem) {
  .stem {
    --ss: 0.72;
  }

  .stem:nth-child(even) {
    display: none;
  }
}

/* ---------- Prices and ticks (the pricing page) ---------- */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.price-n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

.price-per {
  color: var(--muted);
}

.tick {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 22px;
  block-size: 22px;
  margin-block-start: 1px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary-press);
}

.tick .icon {
  inline-size: 13px;
  block-size: 13px;
  stroke-width: 3;
}


/* ---------- Plans, made final (owner, 2026-11-26) ----------
   Monthly or yearly (2 months free), the price of a branch on each tag, Enterprise under the shelf, and every plan
   row by row. The switch and the table's plan picker are radio buttons read by :has(), so they work without the
   script; a browser without :has() shows the monthly prices and the whole table. */

.bill {
  display: flex;
  gap: 4px;
  inline-size: max-content;
  max-inline-size: 100%;
  min-inline-size: 0;
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: var(--surface);
  box-shadow: var(--e2);
}

.bill-opt,
.cmp-pick label {
  position: relative;
  display: grid;
}

.bill-opt input,
.cmp-pick input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.bill-opt span,
.cmp-pick span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: var(--hit);
  padding-inline: 18px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.bill-opt input:checked + span,
.cmp-pick input:checked + span {
  background-color: var(--ink);
  color: var(--on-ink);
}

.bill-opt input:focus-visible + span,
.cmp-pick input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.bill-free {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background-color: var(--primary-tint);
  color: var(--primary-press);
  font-size: 0.75rem;
  font-weight: 700;
}

.bill-opt input:checked + span .bill-free {
  background-color: rgb(255 255 255 / 0.16);
  color: var(--on-ink);
}

/* Monthly shows by default; Yearly swaps every price on the section at once. */
.price > .by-month,
.price > .by-year {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.price-sub {
  margin-block-start: -6px;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* The owner's upsell: what one branch costs on the plan, and how much less than on Basic. Two lines on every tag,
   so the three tags keep their rows level. */
/* Enterprise: for 6 or more branches, quoted. A slim card under the shelf, so the three tags stay as approved. */
.ent {
  display: grid;
  gap: 20px 32px;
  align-items: center;
  margin-block-start: clamp(44px, 6vw, 72px);
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--r-lg);
  background: var(--noise) 0 0 / 220px, linear-gradient(150deg, #2c6145, var(--stem-deep) 70%);
  background-blend-mode: overlay, normal;
  color: var(--on-ink);
}

.ent h3 {
  margin-block-end: 8px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

.ent p {
  max-inline-size: 58ch;
  color: rgb(255 255 255 / 0.86);
}

.ent-points {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

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

.ent-points .icon {
  flex: none;
  inline-size: 20px;
  block-size: 20px;
  color: var(--sage-light);
}

@media (min-width: 60rem) {
  .ent {
    grid-template-columns: minmax(0, 1.4fr) auto auto;
  }
}

@media (min-width: 44rem) and (width < 60rem) {
  .ent {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ent .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Every plan, row by row. */
.cmp-box {
  margin-block-start: clamp(56px, 7vw, 96px);
}

.cmp-head {
  display: grid;
  gap: 16px;
  margin-block-end: 18px;
}

.cmp-h {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 400;
  line-height: 1.1;
}

.cmp-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  min-inline-size: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: var(--surface);
}

.cmp-pick span {
  padding-inline: 4px;
  font-size: var(--text-sm);
}

@media (min-width: 44rem) {
  .cmp-pick {
    display: none;
  }
}

.cmp {
  inline-size: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}

.cmp thead th {
  position: sticky;
  inset-block-start: 84px;
  z-index: 2;
  padding: 14px 8px;
  border-block-end: 1px solid var(--ink);
  background-color: var(--page);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.cmp thead td {
  inline-size: 40%;
  border-block-end: 1px solid var(--ink);
}

.cmp th[scope="row"] {
  inline-size: 40%;
  padding: 12px 12px 12px 0;
  font-weight: 500;
  text-align: start;
}

.cmp td {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cmp tbody tr:not(.cmp-group) > * {
  border-block-end: 1px solid var(--line);
}

/* Growth, the best value, is lightly marked down its whole column. */
.cmp [data-col="3"] {
  background-color: var(--mist);
}

.cmp-group th {
  padding: 30px 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  text-align: start;
}

.cmp-f {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* The eye: a real button; it shows one line on what the feature is (owner, 2026-11-26). 44 px to press, drawn smaller. */
.eye {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: var(--hit);
  block-size: var(--hit);
  margin-block: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.eye .icon {
  inline-size: 30px;
  block-size: 30px;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.eye:hover .icon {
  background-color: var(--sunken);
  color: var(--ink);
}

.eye[aria-expanded="true"] .icon {
  background-color: var(--primary-tint);
  color: var(--primary-press);
}

.eye:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
}

.tip {
  display: block;
  max-inline-size: 52ch;
  margin-block-start: 6px;
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.45;
}

.tip[hidden] {
  display: none;
}

.yes {
  display: inline-grid;
  place-items: center;
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary-press);
  vertical-align: middle;
}

.yes .icon {
  inline-size: 14px;
  block-size: 14px;
  stroke-width: 3;
}

.no {
  color: var(--muted);
  font-weight: 400;
}

/* A phone shows one plan at a time, picked above the table. */
@media (width < 44rem) {
  .cmp-box:has(#cmp-1:checked) .cmp [data-col]:not([data-col="1"]),
  .cmp-box:has(#cmp-2:checked) .cmp [data-col]:not([data-col="2"]),
  .cmp-box:has(#cmp-3:checked) .cmp [data-col]:not([data-col="3"]),
  .cmp-box:has(#cmp-4:checked) .cmp [data-col]:not([data-col="4"]) {
    display: none;
  }

  .cmp {
    table-layout: auto;
  }

  .cmp thead td,
  .cmp th[scope="row"] {
    inline-size: 62%;
  }

  .cmp thead th {
    inset-block-start: 72px;
  }
}

/* ---------- The pricing page (owner, 2026-11-26) ----------
   A scene in layers, back to front: sky, drifting clouds, hazy hills, his meadow, the three plans as glass panels
   floating over the grass (each with its shadow on the ground), and out-of-focus grass close to the eye. Every
   layer shifts by its own depth (--d with the pointer, --pr-sp with the scroll; the script sets --pr-x, --pr-y and --pr-s).
   Sizes follow the scene's width (cqw), so the meadow, hills and clouds keep their places at every screen size. */

.pr {
  --mw: 104cqw; /* the meadow's width; its picture is 4000 x 1048 (cut from his 6336 x 2688) */
  --mh: calc(var(--mw) * 0.262);
  position: relative;
  container-type: inline-size;
  margin-block-start: -84px;
  overflow: hidden; /* full width, edge to edge, no frame (owner, 2026-11-26: no white strips at the sides) */
  background:
    radial-gradient(70% 55% at 16% 0%, rgb(255 248 230 / 0.55), transparent 70%),
    linear-gradient(180deg, #7ea8d2 0%, #9fc0de 30%, #c4d9ea 56%, #e2ecef 76%, #eef2ec 100%);
  isolation: isolate;
}

/* The foot of the scene: the page rises into the meadow in one wide, gentle curve, like another hill (owner,
   2026-11-26: no blur, "1, the curve"). A crisp edge; the meadow stays sharp right down to it. */
.pr::after {
  content: "";
  position: absolute;
  inset: auto -18% -1px;
  z-index: 4;
  block-size: clamp(40px, 5.2vw, 96px);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background-color: var(--page);
  pointer-events: none;
}

.pr-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pr-layer {
  translate:
    calc(var(--pr-x, 0) * var(--d, 0) * -1px)
    calc(var(--pr-y, 0) * var(--d, 0) * -0.5px + var(--pr-s, 0) * var(--pr-sp, 0) * 1px);
  transition: translate 900ms var(--ease-soft);
  will-change: translate;
}

.pr-clouds {
  position: absolute;
  inset: 0;
}

/* Each cloud crosses the whole sky, left to right, and comes round again; a negative delay spreads them out. */
.pr-cloud {
  position: absolute;
  inset-block-start: var(--y);
  inset-inline-start: 0;
  inline-size: var(--w);
  max-inline-size: none;
  opacity: var(--o, 1);
  animation: pr-drift var(--dur) linear var(--delay) infinite;
}

.pr-cloud.is-far {
  filter: blur(1px);
}

@keyframes pr-drift {
  from {
    transform: translateX(-70cqw);
  }

  to {
    transform: translateX(112cqw);
  }
}

.pr-hills {
  position: absolute;
  inset-block-end: calc(var(--mh) - var(--mw) * 0.07);
  inset-inline-start: calc((100cqw - var(--mw)) / 2);
  inline-size: var(--mw);
  max-inline-size: none; /* the page's own svg rule caps it at 100%, which left the hills short of the right edge */
  block-size: calc(var(--mw) * 0.14);
  filter: blur(0.6px);
}

.pr-meadow {
  position: absolute;
  inset-block-end: calc(var(--mw) * -0.012);
  inset-inline-start: calc((100cqw - var(--mw)) / 2);
  inline-size: var(--mw);
  max-inline-size: none;
  block-size: auto;
}

.pr-inner {
  position: relative;
  z-index: 2;
  padding-block: calc(84px + clamp(36px, 5vw, 72px)) calc(var(--mh) * 0.8);
}

.pr-head {
  margin-block-end: clamp(22px, 3vw, 36px);
}

.pr-head .lead {
  color: #2e3a33;
}

/* The switch, in glass too. */
.pr .bill {
  border-color: rgb(255 255 255 / 0.7);
  background-color: rgb(255 255 255 / 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

/* Monthly or yearly (owner, 2026-11-26: "a smooth liquid transition whenever you press annual to monthly or vice
   versa"). Both prices sit in the same place; the old one blurs and slips away as the new one comes into focus.
   The switch's dark pill slides like a drop: its front edge leads, its back edge catches up with a little bounce.
   Pure CSS, read from the switch, so it works without the script. */
.pr .bill {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  isolation: isolate;
}

.pr .bill::before {
  content: "";
  position: absolute;
  inset-block: 4px;
  inset-inline: 4px calc(50% + 2px);
  z-index: -1;
  border-radius: var(--r-pill);
  background-color: var(--ink);
  box-shadow: 0 8px 18px -8px rgb(var(--shadow-rgb) / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition:
    inset-inline-start 420ms var(--ease-soft),
    inset-inline-end 520ms var(--ease-spring) 90ms;
}

.pr .bill:has(#bill-year:checked)::before {
  inset-inline: calc(50% + 2px) 4px;
  transition:
    inset-inline-end 420ms var(--ease-soft),
    inset-inline-start 520ms var(--ease-spring) 90ms;
}

.pr .bill-opt input:checked + span {
  background-color: transparent;
}

.pr .bill-opt span {
  transition: color 300ms var(--ease-out) 80ms;
}

/* The smallest phones (320 px): "Yearly" and its "Save 17%" fit their half of the switch, clear of the dark pill. */
@media (width < 22.5rem) {
  .pr .bill-opt span {
    gap: 6px;
    padding-inline: 10px;
  }
}

.pr :is(.price, .price-sub, .pb-price, .pb-note) {
  display: grid;
}

.pr :is(.price, .price-sub, .pb-price, .pb-note) > :is(.by-month, .by-year) {
  grid-area: 1 / 1;
  transition:
    opacity 360ms var(--ease-soft) 120ms,
    filter 420ms var(--ease-soft) 120ms,
    translate 560ms var(--ease-spring) 120ms,
    scale 560ms var(--ease-spring) 120ms,
    visibility 0s;
}

.pr .price > :is(.by-month, .by-year) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.pr .by-year,
#plans:has(#bill-year:checked) .by-month {
  visibility: hidden;
  opacity: 0;
  filter: blur(10px);
  translate: 0 0.45em;
  scale: 1 0.9;
  transition:
    opacity 240ms var(--ease-out),
    filter 280ms var(--ease-out),
    translate 280ms var(--ease-out),
    scale 280ms var(--ease-out),
    visibility 0s linear 280ms;
}

#plans:has(#bill-year:checked) .by-month {
  translate: 0 -0.45em;
}

#plans:has(#bill-year:checked) .by-year {
  visibility: visible;
  opacity: 1;
  filter: none;
  translate: 0 0;
  scale: 1;
  transition:
    opacity 360ms var(--ease-soft) 120ms,
    filter 420ms var(--ease-soft) 120ms,
    translate 560ms var(--ease-spring) 120ms,
    scale 560ms var(--ease-spring) 120ms,
    visibility 0s;
}

/* The yearly price a month, with its cents set small. */
.price-c {
  margin-inline-start: 1px;
  font-size: 0.5em;
  vertical-align: 0.78em;
}

/* The three plans, side by side on a wide screen. */
.pr-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  max-inline-size: 1120px;
  margin-inline: auto;
}

.pr-plan {
  position: relative;
  display: flex;
  min-inline-size: 0;
}

/* The glass: frosted, with a bright rim where the light catches it and a sheen that follows the pointer. The whole
   panel floats; all three tilt a little with the pointer, as if the eye moved. */
.pr-glass {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 10px 10px 12px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.36) 55%, rgb(255 255 255 / 0.46));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(255 255 255 / 0.35),
    0 40px 70px -34px rgb(22 52 34 / 0.5),
    0 10px 24px -12px rgb(22 52 34 / 0.2);
  color: var(--ink);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  transform: perspective(1400px) rotateX(calc(var(--pr-y, 0) * 2.5deg)) rotateY(calc(var(--pr-x, 0) * -3deg));
  transition: transform 900ms var(--ease-soft);
  animation: pr-float 7s ease-in-out calc(var(--i) * -2.4s) infinite;
}

.pr-glass::before,
.pr-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pr-glass::before {
  padding: 1.5px;
  background: radial-gradient(130% 90% at calc(30% + var(--pr-x, 0) * 35%) calc(0% + var(--pr-y, 0) * 25%), rgb(255 255 255 / 1), rgb(255 255 255 / 0.25) 50%, rgb(255 255 255 / 0.6));
  -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);
}

.pr-glass::after {
  background: radial-gradient(55% 35% at calc(28% + var(--pr-x, 0) * 40%) calc(6% + var(--pr-y, 0) * 20%), rgb(255 255 255 / 0.4), transparent 70%);
}

@keyframes pr-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

/* Its shadow on the grass: smaller and lighter while the panel rises. */
.pr-shadow {
  position: absolute;
  inset-inline: 5%;
  inset-block-end: calc(-1 * clamp(50px, 6vw, 88px));
  z-index: 0;
  block-size: clamp(30px, 3.8vw, 56px);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 6 0 / 0.95), rgb(0 6 0 / 0.62) 48%, transparent);
  filter: blur(7px);
  animation: pr-shadow 7s ease-in-out calc(var(--i) * -2.4s) infinite;
}

@keyframes pr-shadow {
  0%,
  100% {
    scale: 1;
    opacity: 0.95;
  }

  50% {
    scale: 0.84 0.8;
    opacity: 0.6;
  }
}

/* The top of each panel: the name, who it is for, and the price, on brighter glass. */
.pr-top {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 20px 20px 22px;
  border-radius: 22px;
  background-color: rgb(255 255 255 / 0.7);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 8px 20px -14px rgb(22 52 34 / 0.35);
}

.pr-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.pr-name h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
}

.pr-for {
  padding-block-end: 14px;
  border-block-end: 1px dashed rgb(var(--shadow-rgb) / 0.22);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

/* The rows of the three panels line up: the "for" line keeps room for two lines on a wide screen. */
@media (min-width: 60rem) {
  .pr-for {
    min-block-size: calc(2lh + 15px);
  }
}

.pr-top .price-sub {
  margin-block-start: -4px;
}

/* Growth: the best value, in the brand's deep green. */
.pr-plan-3 .pr-top {
  background: var(--noise) 0 0 / 220px, linear-gradient(155deg, #2f6a4a, var(--stem-deep) 75%);
  background-blend-mode: overlay, normal;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 14px 28px -16px rgb(22 52 34 / 0.6);
  color: var(--on-ink);
}

.pr-plan-3 .pr-for {
  border-color: rgb(255 255 255 / 0.25);
  color: rgb(255 255 255 / 0.85);
}

.pr-plan-3 .price-per,
.pr-plan-3 .price-sub {
  color: rgb(255 255 255 / 0.8);
}

.pr-plan-3 .badge {
  background-color: rgb(255 255 255 / 0.16);
  color: #ffffff;
}

/* The yearly price, with the full year of monthly payments struck through beside it (owner, 2026-11-26). */
.price-was {
  align-self: center;
  color: var(--muted);
  font-size: 1.15rem;
  text-decoration-color: var(--petal);
  text-decoration-thickness: 2px;
}

.pr-plan-3 .price-was {
  color: rgb(255 255 255 / 0.7);
  text-decoration-color: #f4c2cf;
}

/* The price of one branch: his upsell, made hard to miss. No card (owner, 2026-11-26: "I don't like the green card
   popping out"): the shop icon, Basic's price struck through and the saving sit straight on the glass, with a dashed
   line under them like the one under "for" in the top. */
.pr-branch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 12px;
  margin-inline: 12px;
  padding-block: 4px 16px;
  border-block-end: 1px dashed rgb(var(--shadow-rgb) / 0.2);
  color: var(--primary-press);
}

.pb-ic {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 12px;
  background-color: var(--primary);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
  color: #ffffff;
}

.pb-ic .icon {
  inline-size: 20px;
  block-size: 20px;
}

.pb-price {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
}

.pb-price b {
  margin-inline-end: 2px;
  color: var(--stem-deep);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.pb-was {
  margin-inline-end: 4px;
  color: rgb(32 74 51 / 0.62);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration-color: var(--petal);
  text-decoration-thickness: 1.5px;
}

.pb-unit {
  white-space: nowrap;
}

.pb-save {
  display: inline-block;
  margin-inline-end: 2px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
}

.pb-note {
  grid-column: 2;
  color: #3f4741;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.pr-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding-inline: 12px;
}

.pr-label {
  color: #3f4741;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pr-list ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pr-list li {
  display: flex;
  gap: 10px;
  font-weight: 500;
}

.pr-list .tick {
  background-color: rgb(255 255 255 / 0.75);
}

.pr-btn {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  margin-block-start: auto;
  padding-inline-start: 22px;
}

/* Start free trial leads: Book a demo as the small second way in, under each plan's button. */
.pr-alt {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-block-start: -8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-glass);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(52 58 54 / 0.35);
  text-underline-offset: 3px;
}

.pr-alt:hover {
  text-decoration-color: currentColor;
}

.pr-btn.btn-light {
  background-color: rgb(255 255 255 / 0.9);
}

/* On a phone and a tablet: the panels in a row to swipe, one in view with the next peeking in. */
.pr-dots {
  display: none;
}

@media (width < 60rem) {
  .pr-row {
    display: flex;
    gap: 14px;
    max-inline-size: none;
    margin-inline: calc(50% - 50cqw);
    padding: 14px 20px clamp(84px, 11vw, 104px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pr-row::-webkit-scrollbar {
    display: none;
  }

  .pr-plan {
    flex: 0 0 min(84cqw, 340px);
    scroll-snap-align: start;
  }

  .pr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-block-start: -30px;
  }

  .pr-dots i {
    inline-size: 8px;
    block-size: 8px;
    border-radius: 50%;
    background-color: rgb(255 255 255 / 0.6);
    box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / 0.25);
    transition: inline-size 300ms var(--ease-out), background-color 300ms var(--ease-out);
  }

  .pr-dots i.is-on {
    inline-size: 22px;
    border-radius: 4px;
    background-color: #ffffff;
  }
}

/* A tablet: the meadow is drawn larger, so its grass reaches up under the panels and their shadows land on it. */
@media (44rem <= width < 60rem) {
  .pr {
    --mw: 150cqw;
  }

  .pr-inner {
    padding-block-end: calc(var(--mh) * 0.42);
  }
}

@media (width < 44rem) {
  .pr {
    --mw: 230cqw;
  }

  .pr-inner {
    padding-block-end: calc(var(--mh) * 0.56);
  }

  .pr-glass {
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    background: linear-gradient(160deg, rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.5));
  }
}

/* Motion switched off (or a still preview): the clouds stay where they are, the panels hold still. */
@media (prefers-reduced-motion: reduce) {
  .pr-cloud,
  .pr-glass,
  .pr-shadow {
    animation-play-state: paused;
  }

  .pr-layer,
  .pr-glass,
  .pr .bill::before,
  .pr :is(.by-month, .by-year) {
    transition: none !important;
  }
}

:root[data-still] .pr-cloud,
:root[data-still] .pr-glass,
:root[data-still] .pr-shadow {
  animation-play-state: paused;
}

/* Below the scene: Enterprise and the full table. */
/* The table's prices follow the switch up in the scene, as they did on the landing page. Yearly is
   shown a month too (owner, 2026-11-26: the year's total "can scare people off"). */
.cmp-billed {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.pr-more .by-year {
  display: none;
}

body:has(#bill-year:checked) .pr-more .by-month {
  display: none;
}

body:has(#bill-year:checked) .pr-more .by-year {
  display: inline;
}

.pr-more {
  padding-block-start: clamp(40px, 6vw, 80px);
}

/* Paying, through Stripe (owner, 2026-11-26: no card, "how most premium brands" do it). Quiet lines of type,
   straight on the page and centred under the table of every plan; the marks small and in their own colours, with no boxes. */
.pay {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-inline-size: 64rem;
  margin-inline: auto;
  text-align: center;
}

.pay-h {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.pay-h .icon {
  inline-size: 18px;
  block-size: 18px;
  color: var(--primary);
  stroke-width: 2.4;
}

.pay-stripe {
  inline-size: auto;
  block-size: 18px;
  margin-block-start: 2px;
}

.pay-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px clamp(16px, 3.4vw, 40px);
  padding: 0;
  list-style: none;
}

/* Each brand's own acceptance mark, unchanged (site-worker/README.md, "Payment marks"). Apple Pay and Google Pay are
   32px high and never smaller than the others; Visa (at least 23px) and the Mastercard symbol (at least 24px) sit
   just under them. */
.pay-marks img {
  display: block;
  max-inline-size: none;
  inline-size: auto;
  block-size: 32px;
}

.pay-marks .pay-visa {
  block-size: 24px;
}

/* Mastercard's file carries its clear space inside it (the symbol is 72 of its 108 units high): drawn so the symbol
   is 26px high, with that space taken back. */
.pay-marks .pay-mc {
  block-size: 39px;
  margin: -6.5px;
}

/* Google's file carries its clear space inside it (the mark is 400 of its 742 units high): drawn so the mark itself is
   32px high, with that built-in space taken back so the gaps between the marks stay even. */
.pay-marks .pay-gpay {
  block-size: 59.4px;
  margin: -13.7px;
}

.pay-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  padding: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
  list-style: none;
}

.pay-points li + li::before {
  content: "\00b7";
  margin-inline: 12px;
  color: var(--sage);
}

/* Where the four promises don't fit on one line (a phone or a tablet), one promise a line, without the dots,
   so no line starts with a dot. */
@media (width < 66rem) {
  .pay-points {
    flex-direction: column;
    align-items: center;
  }

  .pay-points li + li::before {
    content: none;
  }
}

.pr-more .ent {
  margin-block-start: 0;
}

.pr-more .pay {
  margin-block-start: clamp(48px, 6vw, 80px);
}

.pr-more .ent h2 {
  margin-block-end: 8px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

.bar-nav a[aria-current="page"] {
  background-color: rgb(255 255 255 / 0.1);
  color: var(--on-ink);
}

/* ---------- Questions ---------- */

.faq-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 60rem) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .faq-grid .head {
    position: sticky;
    inset-block-start: 120px;
    align-self: start;
  }
}

.faq {
  display: grid;
  border-block-start: 1px solid var(--line);
}

.qa {
  border-block-end: 1px solid var(--line);
  interpolate-size: allow-keywords;
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 64px;
  padding-block: 14px;
  font-size: var(--text-lg);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.qa-ic {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  background-color: var(--sunken);
  transition:
    rotate 300ms var(--ease-soft),
    background-color 200ms var(--ease-out);
}

.qa[open] .qa-ic {
  rotate: 45deg;
  background-color: var(--primary-tint);
  color: var(--primary);
}

.qa p {
  max-inline-size: 40rem;
  padding-block-end: 20px;
  color: var(--ink-2);
}

.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 360ms var(--ease-soft),
    content-visibility 360ms allow-discrete;
}

.qa[open]::details-content {
  block-size: auto;
}

/* ---------- The catalog (owner, 2026-11-25): "all the pictures from the order becomes your catalog that you can
   share with your customers" ----------
   A dark showroom, so the photos carry it. Four steps in the owner's own order ("camera taking picture -> adding in
   gallery -> displaying on shop page -> customer place order"), each a phone screen under its words: the florist's
   camera, the product's gallery in PetalQ, the shop's own page on a customer's phone, and the customer's order in
   the shop's WhatsApp. The same photo travels through all four.

   Each screen plays its step on a 16 s loop that starts and ends on the finished screen, which is what shows with
   motion off. In one row (wide screens) the four play one after another, 3.2 s apart, so the row reads from left to
   right; stacked, each plays as it comes into view. */
.cat {
  position: relative;
  margin-inline: var(--band-inset);
  margin-block-end: var(--section); /* the next section starts without space of its own */
  padding-block: clamp(64px, 8vw, 116px);
  border-radius: var(--r-xl);
  background: var(--noise) 0 0 / 220px, linear-gradient(160deg, #2c3430, var(--ink) 62%);
  background-blend-mode: overlay, normal;
  color: var(--on-ink);
  overflow: hidden;
  isolation: isolate;
}

.cat-head {
  display: grid;
  gap: 22px;
  margin-block-end: clamp(40px, 5vw, 68px);
}

@media (min-width: 60rem) {
  .cat-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 56px;
  }
}

.cat-text,
.cat-side {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.cat .badge {
  background-color: rgb(255 255 255 / 0.14);
  color: var(--on-ink);
}

.cat .h2 {
  max-inline-size: 15ch;
}

.cat .lead {
  color: var(--on-glass-2);
}

.cat-note {
  margin-block-start: clamp(32px, 4vw, 52px);
  color: rgb(255 255 255 / 0.8);
  font-size: var(--text-sm);
  text-align: center;
}

/* The four steps. */
.cat-flow {
  --cat-gap: 0s;
  --t1: 1;
  --t0: 0;
  display: grid;
  grid-template-columns: 264px;
  justify-content: center;
  gap: 44px clamp(24px, 6vw, 72px);
  padding: 0;
  list-style: none;
  counter-reset: cat;
  container-type: inline-size;
}

@media (min-width: 40rem) {
  .cat-flow {
    grid-template-columns: repeat(2, 264px);
  }
}

@media (min-width: 78rem) {
  .cat-flow {
    --cat-gap: 3.2s;
    --t1: 0;
    --t0: 1;
    grid-template-columns: repeat(4, 264px);
    justify-content: space-between;
    column-gap: 0;
  }
}

.cat-step {
  --cd: calc(var(--i, 0) * var(--cat-gap, 0s));
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 16px;
  counter-increment: cat;
}

.cat-cap {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  gap: 2px 12px;
  color: var(--on-glass-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.cat-cap::before {
  content: counter(cat);
  grid-row: span 2;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.13);
  color: var(--on-ink);
  font-weight: 700;
}

.cat-cap b {
  padding-block-start: 4px;
  color: var(--on-ink);
  font-size: var(--text-md);
}

.cat-cap span {
  grid-column: 2;
}

/* In one row: an arrow in each gap, at the screens' middle, which lights as its step finishes. */
@media (min-width: 78rem) {
  .cat-step:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block-end: 219px;
    inset-inline-start: calc(100% + (100cqw - 1056px) / 6);
    inline-size: 28px;
    block-size: 28px;
    border-radius: 50%;
    /* One drawn chevron with round ends and a round corner (two crossed gradients looked broken at the tip). */
    background:
      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m9.5 5.5 6.5 6.5-6.5 6.5'/></svg>") 54% 50% / 16px 16px no-repeat,
      rgb(255 255 255 / 0.16);
    opacity: 0.6;
    translate: -50% 0;
  }

  :root[dir="rtl"] .cat-step:not(:last-child)::after {
    scale: -1 1;
  }

  .cat-step:has(.cat-phone.is-on)::after {
    animation: cat-arrow 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards;
  }

  .cat-step:has(.cat-phone.is-away)::after {
    animation-play-state: paused;
  }
}

/* A phone, and its screen. */
.cat-phone {
  inline-size: 264px;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #414a45, #101312);
  box-shadow:
    0 40px 70px -30px rgb(0 0 0 / 0.8),
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    inset 0 0 0 3px rgb(0 0 0 / 0.4);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-align: start;
}

.cat-screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  block-size: 448px;
  padding: 9px 9px 10px;
  border-radius: 31px;
  background-color: #f2f0e9;
  overflow: hidden;
}

.cat-screen img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* Where the bouquet is in each of the owner's three photos, so a crop keeps it. The hand-held one is cut from
   above (the wall), never from below (owner, 2026-11-25: "crop it from above so the product is clearly visible"). */
.cat-screen img[src*="bouquet-hand"] {
  object-position: 50% 80%;
}

.cat-screen img[src*="bouquet-lying"] {
  object-position: 50% 36%;
}

.cat-tap {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 34px;
  inline-size: 36px;
  block-size: 36px;
  margin-block-start: -18px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px var(--primary),
    0 0 0 2px rgb(255 255 255 / 0.9);
  opacity: 0;
  pointer-events: none;
}

/* 1. The camera. */
.cam {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  background-color: #0d0f0e;
  color: #fff;
}

.cam-top {
  padding-block: 5px 1px;
  color: rgb(255 255 255 / 0.86);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.cam-view {
  position: relative;
  border-radius: 18px;
  background-color: #1b1f1d;
  overflow: hidden;
}

/* The viewfinder's four corners. */
.cam-frame {
  --c: rgb(255 255 255 / 0.9);
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 18px 2px,
    linear-gradient(var(--c), var(--c)) 0 0 / 2px 18px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 18px 2px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 2px 18px,
    linear-gradient(var(--c), var(--c)) 0 100% / 18px 2px,
    linear-gradient(var(--c), var(--c)) 0 100% / 2px 18px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 18px 2px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 2px 18px;
  background-repeat: no-repeat;
}

.cam-focus {
  position: absolute;
  inset-block-start: 52%;
  inset-inline-start: 50%;
  inline-size: 62px;
  block-size: 62px;
  margin: -31px 0 0 -31px;
  border: 1.5px solid #f4d35e;
  border-radius: 6px;
  opacity: 0;
}

.cam-flash {
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 0;
}

.cam-chip,
.cat-onshop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 24px;
  padding-inline: 9px;
  border-radius: var(--r-pill);
  background-color: var(--primary-tint);
  color: var(--primary-press);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cam-chip {
  position: absolute;
  inset-block-end: 24px;
  inset-inline-start: 50%;
  translate: -50% 0;
}

.cam-chip .icon,
.cat-onshop .icon,
.gal-add .icon {
  inline-size: 11px;
  block-size: 11px;
  stroke-width: 3.2;
}

.cam-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px 12px 8px;
}

.cam-slot {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.45);
  overflow: hidden;
}

.cam-shutter {
  display: grid;
  place-items: center;
  inline-size: 58px;
  block-size: 58px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
}

.cam-shutter i {
  inline-size: 46px;
  block-size: 46px;
  border-radius: 50%;
  background-color: #fff;
}

.cam-flip {
  display: grid;
  justify-self: end;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.14);
}

.cam-flip .icon {
  inline-size: 18px;
  block-size: 18px;
}

.cam-bar .cat-tap {
  inset-inline: 50% auto;
  inline-size: 58px;
  block-size: 58px;
  margin: -30px 0 0 -29px;
  box-shadow:
    inset 0 0 0 2px #f4d35e,
    0 0 0 2px rgb(0 0 0 / 0.4);
}

/* 2. The product's gallery, in PetalQ. */
.gal {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 10px;
  padding: 14px 10px 10px;
  background-color: var(--paper);
}

.gal-more {
  display: flex;
  align-items: center;
  align-self: end;
  justify-content: center;
  gap: 6px;
  min-block-size: 36px;
  border: 1px solid var(--line-input);
  border-radius: 12px;
  background-color: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.gal-more .icon {
  inline-size: 13px;
  block-size: 13px;
  stroke-width: 2.6;
}

.gal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 8px;
  padding-inline: 2px;
}

.gal-head small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gal-head > b {
  font-family: var(--font-app);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.05;
}

.gal-head span {
  color: var(--muted);
  font-size: 11px;
}

.gal-head span b {
  color: var(--ink);
}

/* A number that changes: both are in the page, one shows. */
.cat-count,
.cat-cartn {
  display: inline-grid;
  place-items: center;
}

.cat-count i,
.cat-cartn i {
  grid-area: 1 / 1;
  font-style: normal;
}

.cat-count .n0,
.cat-cartn .n0 {
  opacity: 0;
}

.gal-from {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--surface);
}

.gal-from > img {
  block-size: 40px;
  border-radius: 9px;
}

.gal-from b {
  display: block;
  font-size: 12px;
}

.gal-from small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.gal-add {
  display: inline-grid;
}

.gal-add i {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-block-size: 28px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

.gal-add .a0 {
  background-color: var(--primary);
  color: var(--on-ink);
  opacity: 0;
}

.gal-add .a1 {
  background-color: var(--primary-tint);
  color: var(--primary-press);
}

.gal-from .cat-tap {
  inset-inline-end: 20px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cat-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.86;
  border-radius: 12px;
  background-color: var(--t, #efece4);
  overflow: hidden;
}

/* A photo fills its place exactly, so the crop is the one chosen below and not the photo's top. */
.cat-cell img {
  position: absolute;
  inset: 0;
}

.cat-add {
  border: 1.5px dashed #b9b6ab;
  background-color: transparent;
  color: var(--muted);
}

.cat-add .icon {
  inline-size: 18px;
  block-size: 18px;
}

.cat-onshop {
  justify-self: start;
}

/* 3. The shop's own page, on a customer's phone. */
.shp {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  align-content: stretch;
  gap: 8px;
}

.cat-addr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-block-size: 24px;
  border-radius: var(--r-pill);
  background-color: #e4e1d7;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.cat-addr .icon {
  inline-size: 10px;
  block-size: 10px;
}

.cat-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 5px 5px 6px;
  border-radius: var(--r-pill);
  background-color: var(--ink);
  color: var(--on-ink);
}

.cat-m {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
  background-color: var(--primary);
  font-family: var(--font-app);
  font-size: 14px;
}

.cat-bar b {
  flex: 1;
  min-inline-size: 0;
  overflow: hidden;
  font-family: var(--font-app);
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-cart {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-block-size: 26px;
  padding-inline: 10px 3px;
  border-radius: var(--r-pill);
  background-color: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.cat-cartn {
  inline-size: 20px;
  block-size: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--on-ink);
  font-size: 11px;
}

.cat-hero {
  position: relative;
  border-radius: 20px;
  background-color: #f6f1ee;
  overflow: hidden;
}

.cat-screen .cat-main {
  position: absolute;
  inset: 0;
}

/* "1 / 2" while the gallery has two photos, "3 / 3" once the new one is in and shown. */
.cat-of {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  display: inline-grid;
  justify-items: end;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background-color: rgb(31 36 33 / 0.86);
  color: var(--on-ink);
  font-size: 10.5px;
  font-weight: 700;
}

.cat-of i {
  grid-area: 1 / 1;
  font-style: normal;
}

.cat-of .o0 {
  opacity: 0;
}

.cat-thumbs {
  display: flex;
  gap: 6px;
  padding-inline: 2px;
}

.cat-thumb {
  inline-size: 42px;
  block-size: 42px;
  border-radius: 11px;
  background-color: var(--t, #efece4);
  overflow: hidden;
}

/* The first photo is the chosen one until the new photo is there. */
.cat-thumb-1 {
  position: relative;
}

.cat-thumb-1::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2.5px var(--primary);
  opacity: 0;
}

.cat-thumb.is-on {
  box-shadow:
    0 0 0 2px #f2f0e9,
    0 0 0 4px var(--primary);
}

.cat-meta {
  display: grid;
  gap: 2px;
  padding-inline: 3px;
}

.cat-meta small {
  color: var(--muted);
  font-size: 11px;
}

.cat-meta b {
  font-family: var(--font-app);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.02;
}

.cat-buy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border-radius: var(--r-pill);
  background-color: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
}

.cat-addcart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 30px;
  padding-inline: 12px 4px;
  border-radius: var(--r-pill);
  background-color: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.cat-addcart .icon {
  box-sizing: content-box;
  inline-size: 12px;
  block-size: 12px;
  padding: 5px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--on-ink);
  stroke-width: 3;
}

/* 4. The customer's order, in the shop's WhatsApp (a picture of that app, in its colours). */
.wa {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  padding: 0;
  background-color: #efe7de;
}

.wa-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px 10px;
  background-color: #16493c;
  color: #fff;
}

.wa-av {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background-color: #dfe7e3;
  color: #16493c;
  font-size: 13px;
  font-weight: 700;
}

.wa-top b {
  display: block;
  font-size: 13px;
}

.wa-top small {
  display: block;
  color: rgb(255 255 255 / 0.84);
  font-size: 10.5px;
}

.wa-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 9px 12px;
}

.wa-day {
  align-self: center;
  margin-block-end: auto;
  padding: 3px 9px;
  border-radius: 8px;
  background-color: rgb(255 255 255 / 0.8);
  color: var(--ink-2);
  font-size: 10.5px;
}

.wa-out,
.wa-in {
  display: grid;
  gap: 3px;
  max-inline-size: 92%;
  padding: 7px 10px;
  box-shadow: 0 1px 1px rgb(var(--shadow-rgb) / 0.12);
  font-size: 12px;
  line-height: 1.4;
}

.wa-out {
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  background-color: #dcf8c6;
}

.wa-out u {
  color: #1f6b4a;
  overflow-wrap: anywhere;
}

.wa-slot {
  display: grid;
  justify-items: start;
  align-items: end;
}

.wa-slot > * {
  grid-area: 1 / 1;
}

.wa-in {
  max-inline-size: 96%;
  border-radius: 12px 12px 12px 4px;
  background-color: #fff;
  transform-origin: 0 100%;
}

.wa-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-block-end: 3px;
  padding: 5px;
  border-radius: 9px;
  background-color: #f1efe9;
}

.wa-card img {
  block-size: 44px;
  border-radius: 7px;
}

.wa-card b {
  display: block;
  font-size: 11.5px;
  line-height: 1.25;
}

.wa-card small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.wa-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background-color: #fff;
  opacity: 0;
}

.wa-typing i {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background-color: #9aa19c;
}

/* The loops, 16 s. Before its turn a screen shows how things were (the gallery has two photos, the shop page shows
   the old one, no order has come); it plays its step, then stays finished. --cd is each step's turn.
   In one row every screen goes back to "before" together as the camera starts again: --t1 and --t0 are what a
   screen shows from then until its own turn (in a row: as before; stacked: still finished, until its loop ends). */
.cat-phone.is-on .cam-focus { animation: cam-focus 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cam-shutter i { animation: cam-press 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cam-bar .cat-tap { animation: cam-tap 16s var(--ease-out) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cam-flash { animation: cam-flash 16s var(--ease-out) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cam-thumb { animation: cam-thumb 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cam-chip { animation: cam-chip 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .gal .n0,
.cat-phone.is-on .gal-add .a0 { animation: gal-was 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .gal .n1,
.cat-phone.is-on .gal-add .a1 { animation: gal-now 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .gal-from { animation: gal-from 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .gal-from .cat-tap { animation: gal-tap 16s var(--ease-out) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-new img { animation: gal-new 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-onshop { animation: gal-onshop 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-thumb-new { animation: shp-thumb 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-thumb-1::after,
.cat-phone.is-on .cat-of .o0 { animation: shp-was 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-main-new,
.cat-phone.is-on .cat-of .o1 { animation: shp-now 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-buy .cat-tap { animation: shp-tap 16s var(--ease-out) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-addcart { animation: shp-press 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-cartn .n0 { animation: shp-cart0 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .cat-cartn .n1 { animation: shp-cart1 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .wa-typing { animation: wa-typing 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }
.cat-phone.is-on .wa-in { animation: wa-in 16s var(--ease-soft) var(--cd) var(--loops, infinite) backwards; }

/* 1. The focus square settles, the shutter is pressed, a flash, and the photo is with the order. */
@keyframes cam-focus { 0%, 3% { opacity: 0; scale: 1.35; } 5.5% { opacity: 1; scale: 1.35; } 8.5% { opacity: 1; scale: 1; } 10.5%, 100% { opacity: 0; scale: 1; } }
@keyframes cam-press { 0%, 10% { scale: 1; } 11.3% { scale: 0.84; } 13%, 100% { scale: 1; } }
@keyframes cam-tap { 0%, 9% { opacity: 0; scale: 0.6; } 11% { opacity: 0.95; } 15%, 100% { opacity: 0; scale: 1.5; } }
@keyframes cam-flash { 0%, 11% { opacity: 0; } 12% { opacity: 0.95; } 16%, 100% { opacity: 0; } }
@keyframes cam-thumb {
  0% { opacity: 0; scale: 0.5; }
  13.5% { opacity: 0; scale: 0.5; animation-timing-function: var(--ease-spring); }
  17%, 97% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 0.5; }
}
@keyframes cam-chip {
  0%, 16.5% { opacity: 0; translate: -50% 8px; }
  20%, 97% { opacity: 1; translate: -50% 0; }
  100% { opacity: 0; translate: -50% 8px; }
}
/* 2. A tap on Add, and the photo is in the gallery. (This screen's turn comes 3.2 s in: 80 % is the row's restart.) */
@keyframes gal-was { 0%, 9.5% { opacity: 1; } 11.5%, 80% { opacity: 0; } 82%, 97% { opacity: var(--t0); } 100% { opacity: 1; } }
@keyframes gal-now { 0%, 9.5% { opacity: 0; } 11.5%, 80% { opacity: 1; } 82%, 97% { opacity: var(--t1); } 100% { opacity: 0; } }
/* The order's new photo turns up in the gallery screen only once it has been taken. */
@keyframes gal-from {
  0% { opacity: 0; translate: 0 8px; }
  4%, 80% { opacity: 1; translate: 0 0; }
  82%, 97% { opacity: var(--t1); translate: 0 0; }
  100% { opacity: 0; translate: 0 8px; }
}
@keyframes gal-tap { 0%, 6.5% { opacity: 0; scale: 0.5; } 8.5% { opacity: 0.9; } 13%, 100% { opacity: 0; scale: 2.1; } }
@keyframes gal-new {
  0% { opacity: 0; scale: 1.14; }
  10% { opacity: 0; scale: 1.14; animation-timing-function: var(--ease-spring); }
  14%, 80% { opacity: 1; scale: 1; }
  82%, 97% { opacity: var(--t1); scale: 1; }
  100% { opacity: 0; scale: 1.14; }
}
@keyframes gal-onshop {
  0%, 14% { box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
  17.5% { box-shadow: 0 0 0 6px rgb(47 106 74 / 0.22); }
  21%, 100% { box-shadow: 0 0 0 0 rgb(47 106 74 / 0); }
}
/* 3. The new photo is on the shop page; a customer adds the design to the cart. (Its turn: 6.4 s in, restart at 60 %.) */
@keyframes shp-thumb {
  0% { opacity: 0; scale: 0.6; }
  5% { opacity: 0; scale: 0.6; animation-timing-function: var(--ease-spring); }
  9%, 60% { opacity: 1; scale: 1; }
  62%, 97% { opacity: var(--t1); scale: 1; }
  100% { opacity: 0; scale: 0.6; }
}
@keyframes shp-was { 0%, 8% { opacity: 1; } 11%, 60% { opacity: 0; } 62%, 97% { opacity: var(--t0); } 100% { opacity: 1; } }
@keyframes shp-now { 0%, 8% { opacity: 0; } 13%, 60% { opacity: 1; } 62%, 97% { opacity: var(--t1); } 100% { opacity: 0; } }
@keyframes shp-tap { 0%, 15% { opacity: 0; scale: 0.5; } 17% { opacity: 0.9; } 21.5%, 100% { opacity: 0; scale: 2.1; } }
@keyframes shp-press { 0%, 16% { scale: 1; } 17.3% { scale: 0.95; } 19%, 100% { scale: 1; } }
@keyframes shp-cart0 { 0%, 17.5% { opacity: 1; } 18.5%, 60% { opacity: 0; } 62%, 97% { opacity: var(--t0); } 100% { opacity: 1; } }
@keyframes shp-cart1 { 0%, 17.5% { opacity: 0; } 18.5%, 60% { opacity: 1; } 62%, 97% { opacity: var(--t1); } 100% { opacity: 0; } }
/* 4. The customer is typing, and the order lands whole. (Its turn: 9.6 s in, restart at 40 %.) */
@keyframes wa-typing { 0%, 3% { opacity: 0; } 5%, 11% { opacity: 1; } 12.5%, 100% { opacity: 0; } }
@keyframes wa-in {
  0% { opacity: 0; translate: 0 10px; scale: 0.94; }
  12.5% { opacity: 0; translate: 0 10px; scale: 0.94; animation-timing-function: var(--ease-spring); }
  16.5%, 40% { opacity: 1; translate: 0 0; scale: 1; }
  42%, 97% { opacity: var(--t1); translate: 0 0; scale: 1; }
  100% { opacity: 0; translate: 0 10px; scale: 0.94; }
}
@keyframes cat-arrow { 0%, 17% { opacity: 0.6; scale: 1; } 20.5% { opacity: 1; scale: 1.22; } 27%, 100% { opacity: 0.6; scale: 1; } }

:root[data-still] .cat-flow *,
:root[data-still] .cat-flow *::before,
:root[data-still] .cat-flow *::after {
  animation: none !important;
}

/* ---------- The last call ---------- */

.final {
  position: relative;
  margin-inline: var(--band-inset);
  padding-block: clamp(72px, 9vw, 130px) clamp(270px, 30vw, 340px);
  border-radius: var(--r-xl);
  background-color: #eef3ef;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.final-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.final .h2 {
  max-inline-size: 12ch;
}

.final-rose {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  z-index: 1;
  inline-size: clamp(120px, 12vw, 150px);
  block-size: clamp(242px, 24.2vw, 303px);
  translate: -50% calc(var(--ry, 0) * 1px);
  pointer-events: none;
}

:root[dir="rtl"] .final-rose {
  translate: 50% calc(var(--ry, 0) * 1px);
}

.final-rose-sway {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  animation: stemsway 5.5s ease-in-out infinite alternate;
}

.final-rose-stem {
  position: absolute;
  inset-block: 34% 0;
  inset-inline-start: calc(50% - 1.5px);
  inline-size: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--stem-deep), var(--primary));
}

.final-rose-leaf {
  position: absolute;
  inset-block-start: 62%;
  inset-inline-start: 50%;
  inline-size: 38px;
  block-size: 18px;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, var(--sage), var(--primary));
  rotate: -24deg;
  transform-origin: 0 50%;
}

.final-rose img {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  filter: drop-shadow(0 16px 16px rgb(var(--shadow-rgb) / 0.22));
}

.final-side {
  position: absolute;
  z-index: 0;
  inline-size: var(--s);
  inset-block-start: var(--y);
  inset-inline-start: var(--x);
  filter: drop-shadow(0 18px 16px rgb(var(--shadow-rgb) / 0.2));
  /* They settle into place as the band comes into view (--fin runs 0 to 1, site.js). Until 2026-11-25 they moved
     with the whole page's scroll, which at the foot of the page had carried them far out of the band: nobody
     scrolling there ever saw them. */
  translate: 0 calc((1 - var(--fin, 1)) * var(--d) * 22px * var(--drift));
  pointer-events: none;
}

/* The two side flowers keep clear of the words, as the hero's do: the lead is 38rem wide at most, so each flower
   stays outside that column with a little air. On a wide screen that changes nothing; on a tablet it moves them
   outward, where the section's edge may cut a little off them. Narrower than that there is no room, and no flower. */
.final-side.is-start {
  inset-inline-start: min(var(--x), calc(50% - 19rem - 20px - var(--s)));
}

.final-side.is-end {
  inset-inline-start: max(var(--x), calc(50% + 19rem + 20px));
}

@media (width < 52rem) {
  .final-side {
    display: none;
  }
}

/* ---------- Footer: links, then the wordmark, big ---------- */

.foot {
  margin-block-start: clamp(56px, 7vw, 96px);
  padding-block: clamp(48px, 6vw, 80px) clamp(20px, 3vw, 36px);
  background: var(--noise) 0 0 / 220px, var(--ink);
  background-blend-mode: overlay, normal;
  color: var(--on-ink);
  overflow: hidden;
}

.foot-top {
  display: grid;
  gap: 36px;
}

@media (min-width: 60rem) {
  .foot-top {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr));
  }
}

.foot-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.foot-brand img {
  inline-size: 168px;
}

.foot-brand p {
  max-inline-size: 22rem;
  color: rgb(255 255 255 / 0.8);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

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

@media (min-width: 60rem) {
  .foot-cols {
    display: contents;
  }
}

.foot-col {
  display: grid;
  align-content: start;
  gap: 4px;
}

.foot-col h2 {
  margin-block-end: 6px;
  color: rgb(255 255 255 / 0.66);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  color: var(--on-ink);
  text-decoration: none;
}

@media (hover: hover) {
  .foot-col a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.foot-word {
  margin-block: clamp(40px, 6vw, 80px) clamp(16px, 2vw, 28px);
}

.foot-word img {
  inline-size: 100%;
  block-size: auto;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block-start: 18px;
  border-block-start: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.72);
  font-size: var(--text-sm);
}

/* ---------- The reading layout: privacy and terms ---------- */

.doc-hero {
  margin-block-start: -84px;
  margin-inline: var(--band-inset);
  padding-block: calc(84px + clamp(36px, 6vw, 72px)) clamp(36px, 5vw, 56px);
  border-radius: var(--r-xl);
  background: var(--noise) 0 0 / 220px, linear-gradient(180deg, #dfeae2, #eef4f0);
  background-blend-mode: overlay, normal;
}

.doc-hero-inner {
  display: grid;
  gap: 16px;
}

/* On a wide screen the title sits over the text column, so the page reads down one edge. */
@media (min-width: 60rem) {
  .doc-hero-inner {
    grid-template-columns: 15rem minmax(0, 44rem);
    justify-content: center;
    column-gap: clamp(40px, 6vw, 96px);
  }

  .doc-hero-inner > * {
    grid-column: 2;
  }
}

/* The 404 page: one centred column (no contents beside it), with room above the footer. */
.doc-hero.is-alone {
  padding-block-end: clamp(80px, 12vw, 160px);
}

.doc-hero.is-alone .hero-ctas {
  justify-content: flex-start;
}

@media (min-width: 60rem) {
  .doc-hero.is-alone .doc-hero-inner {
    grid-template-columns: minmax(0, 44rem);
  }

  .doc-hero.is-alone .doc-hero-inner > * {
    grid-column: 1;
  }
}

.doc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.7rem + 3vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.doc-meta {
  color: var(--ink-2);
}

/* The page's one-line summary under the title (final legal pages, 2026-11-26). */
.doc-lead {
  max-inline-size: 44rem;
  color: var(--ink);
  font-size: var(--text-xl);
  line-height: 1.5;
  text-wrap: pretty;
}

.doc-body {
  display: grid;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
}

@media (min-width: 60rem) {
  .doc-body {
    grid-template-columns: 15rem minmax(0, 44rem);
    justify-content: center;
    gap: clamp(40px, 6vw, 96px);
  }
}

.toc {
  align-self: start;
}

@media (min-width: 60rem) {
  .toc {
    position: sticky;
    inset-block-start: 112px;
  }
}

.toc details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background-color: var(--surface);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 52px;
  padding-inline: 16px;
  font-weight: 700;
  cursor: pointer;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 8px 10px;
  list-style: none;
}

.toc a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-block-size: 40px;
  padding-inline: 8px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
}

.toc a[aria-current="true"] {
  background-color: var(--primary-tint);
  color: var(--primary-press);
  font-weight: 700;
}

@media (hover: hover) {
  .toc a:hover {
    color: var(--ink);
  }
}

.prose {
  display: grid;
  gap: 18px;
  max-inline-size: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose h2 {
  margin-block-start: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  font-weight: 400;
  line-height: 1.05;
  scroll-margin-block-start: 112px;
}

.prose h2:first-child {
  margin-block-start: 0;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-inline-start: 1.2em;
}

.ph {
  padding: 2px 6px;
  border-radius: 6px;
  background-color: #fdf8e6;
  box-shadow: inset 0 0 0 1px rgb(138 106 16 / 0.35);
  color: #6e5408;
}

/* ---------- Book a demo: the form, a sheet over the page (owner, 2026-11-24: "a web form, that goes to email ...
   but there should be a whatsapp option on the form too") ----------
   A native dialog: the page behind is inert, Escape closes it, and focus stays inside. A centred card on a wide
   screen; the whole screen on a phone, where its head stays in place while the fields scroll. */

.demo {
  inline-size: min(35rem, 100% - 24px);
  max-inline-size: none;
  block-size: fit-content;
  max-block-size: min(56rem, 100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background-color: var(--surface);
  box-shadow: var(--e3);
  color: var(--ink);
  overflow: hidden;
}

.demo[open] {
  display: flex;
  flex-direction: column;
  animation: panel-in 300ms var(--ease-soft);
}

.demo::backdrop {
  background-color: rgb(var(--shadow-rgb) / 0.55);
}

.demo-in {
  display: grid;
  gap: 22px;
  min-block-size: 0;
  padding: 0 clamp(18px, 4vw, 30px) clamp(20px, 4vw, 30px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.demo-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  margin-inline: calc(clamp(18px, 4vw, 30px) * -1);
  padding: clamp(18px, 4vw, 26px) clamp(18px, 4vw, 30px) 14px;
  border-block-end: 1px solid var(--line);
  background-color: var(--surface);
}

.demo-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.demo-head h2:focus-visible {
  outline: 0;
}

.demo-lead {
  grid-column: 1 / -1;
  color: var(--ink-2);
}

.demo-x {
  display: grid;
  place-items: center;
  inline-size: var(--hit);
  block-size: var(--hit);
  border: 0;
  border-radius: 50%;
  background-color: var(--sunken);
  color: var(--ink);
  cursor: pointer;
}

.demo-x .icon {
  inline-size: 20px;
  block-size: 20px;
}

.demo-form {
  display: grid;
  gap: 18px;
}

.demo-form[hidden],
.demo-done[hidden] {
  display: none;
}

.demo-plan {
  padding: 10px 14px;
  border-radius: 12px;
  background-color: var(--primary-tint);
  color: var(--stem-deep);
}

.field {
  display: grid;
  gap: 6px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.field legend {
  margin-block-end: 8px;
}

.field .opt {
  margin-inline-start: 4px;
  color: var(--muted);
  font-weight: 500;
}

.field .opt[hidden] {
  display: none;
}

.field input:not([type="radio"]),
.field textarea {
  inline-size: 100%;
  min-block-size: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-input);
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16 px: a phone doesn't zoom the page on focus */
}

.field textarea {
  min-block-size: 92px;
  resize: vertical;
}

.field input::placeholder {
  color: #7b817b;
}

.field input:not([type="radio"]):focus-visible,
.field textarea:focus-visible {
  border-color: var(--primary);
  border-radius: 12px;
  outline-offset: 1px;
}

.field input[aria-invalid="true"]:not([type="radio"]),
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
}

.field-hint {
  color: var(--muted);
  font-size: var(--text-sm);
}

.field-err {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 600;
}

.field-err[hidden] {
  display: none;
}

.field-err .icon {
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  margin-block-start: 2px;
}

/* A choice of a few: pills that are real radio buttons. */
.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick {
  position: relative;
}

.pick input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pick span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: var(--hit);
  padding-inline: 16px;
  border: 1.5px solid var(--line-input);
  border-radius: var(--r-pill);
  font-weight: 600;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.pick .icon {
  inline-size: 18px;
  block-size: 18px;
}

.pick input:checked + span {
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--on-ink);
}

.pick input:focus-visible + span {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.demo-fail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background-color: #fbeceb;
  color: #7d2a24;
  font-weight: 600;
}

.demo-fail[hidden] {
  display: none;
}

.demo-fail .icon {
  flex: none;
  inline-size: 18px;
  block-size: 18px;
  margin-block-start: 3px;
}

.demo-fail a {
  color: inherit;
}

/* Cloudflare's robot check runs out of sight, so its empty box stays out of the form's layout (no extra gap); it
   takes its place in the form only while it asks the visitor something (site.js adds .is-asking). */
.demo-check {
  position: absolute;
}

.demo-check.is-asking {
  position: static;
}

.demo-send {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.demo-send .btn {
  min-inline-size: 12rem;
}

.demo-send .btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.demo-legal {
  color: var(--muted);
  font-size: var(--text-sm);
}

.demo-done {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: 28px 8px;
  text-align: center;
}

.demo-done-ic {
  display: grid;
  place-items: center;
  inline-size: 64px;
  block-size: 64px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary);
}

.demo-done-ic .icon {
  inline-size: 30px;
  block-size: 30px;
  stroke-width: 2.4;
}

.demo-done h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
}

.demo-done h3:focus-visible {
  outline: 0;
}

.demo-done p {
  max-inline-size: 26rem;
  color: var(--ink-2);
  text-wrap: balance;
}

@media (width < 40rem) {
  .demo {
    inline-size: 100%;
    block-size: 100dvh;
    max-block-size: none;
    margin: 0;
    border-radius: 0;
  }

  .demo-in {
    flex: 1;
    align-content: start;
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    padding-block-end: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .demo-head {
    margin-inline: calc(max(16px, env(safe-area-inset-left, 0px)) * -1) calc(max(16px, env(safe-area-inset-right, 0px)) * -1);
    padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px
      max(16px, env(safe-area-inset-left, 0px));
  }

  .demo-send {
    justify-items: stretch;
  }
}

/* ---------- Falling petals and the growing stem (from version B, owner 2026-11-24) ---------- */

.petal-sky {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
}

.petal-sky img {
  position: absolute;
  max-inline-size: none;
  filter: drop-shadow(0 8px 6px rgb(var(--shadow-rgb) / 0.18));
  will-change: transform, opacity;
}

/* The stem climbs down the page's free edge as the page scrolls; a flower blooms as the stem reaches it. It runs
   behind the page's coloured bands (owner, 2026-11-24: "This should go behind the green cards"), so they cover it as
   it passes, and no flower opens where a band would hide it. It grows only where the lane beside the page is wide
   enough to hold it clear of the words and pictures; on phones, tablets and small laptops landing.js hides it
   (owner, 2026-11-25). */
.vine {
  position: absolute;
  inset-block-start: 0;
  left: 0;
  z-index: -1;
  inline-size: 100%;
  overflow: hidden;
  pointer-events: none;
}

.vine-svg {
  position: absolute;
  inset: 0;
  max-inline-size: none;
  overflow: visible;
}

.vine-path {
  fill: none;
  stroke: var(--sage);
  stroke-width: var(--vine-stroke, 2.5px);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.vine-fl {
  position: absolute;
  opacity: 0;
  scale: 0;
  rotate: -120deg;
  filter: drop-shadow(0 12px 10px rgb(var(--shadow-rgb) / 0.22));
  transition:
    scale 900ms var(--ease-spring),
    rotate 1100ms var(--ease-soft),
    opacity 400ms var(--ease-out);
}

.vine-fl img {
  inline-size: 100%;
  block-size: 100%;
  animation: headturn var(--pace, 40s) linear infinite;
}

.vine-leaf {
  position: absolute;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, var(--sage), var(--primary));
  transform-origin: 0 50%;
  scale: 0;
  transition: scale 700ms var(--ease-soft);
}

.vine-fl.is-open {
  opacity: 1;
  scale: 1;
  rotate: 0deg;
}

.vine-leaf.is-open {
  scale: 1;
}

:root[data-rm="on"] .petal-sky,
:root[data-still] .petal-sky {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .petal-sky {
    display: none;
  }
}

/* ---------- Motion: load, scroll reveals, and the three takes ---------- */

/* Load: the words rise into place (they're readable from the first frame). The bouquet's burst is landing.js's. */
.is-loading .h1 .ln {
  animation: rise-solid 900ms var(--ease-soft) calc(var(--k, 0) * 90ms) both;
}

.is-loading .hero-sub,
.is-loading .hero-ctas,
.is-loading .hero-inner .cta-note,
.is-loading .hero-inner .eyebrow {
  animation: rise-solid 900ms var(--ease-soft) var(--delay, 0ms) both;
}

@keyframes rise-solid {
  from {
    translate: 0 var(--rise);
  }
}

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

/* Reduced motion (the system's setting): nothing moves; everything sits finished. */
:root[data-rm="on"] *,
:root[data-rm="on"] *::before,
:root[data-rm="on"] *::after,
:root[data-rm="on"] *::details-content {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

:root[data-rm="on"] .hero-fl,
:root[data-rm="on"] .fl-move,
:root[data-rm="on"] .stem,
:root[data-rm="on"] .who-fl,
:root[data-rm="on"] .final-rose,
:root[data-rm="on"] .final-side {
  translate: none;
  rotate: var(--r, 0deg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  *::details-content {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-fl,
  .fl-move,
  .stem,
  .who-fl,
  .final-rose,
  .final-side {
    translate: none;
    rotate: var(--r, 0deg);
  }
}

/* A screenshot or a printed copy: everything finished, nothing waiting to reveal. */
:root[data-still] .pic *,
:root[data-still] .pic *::before {
  animation: none !important;
}

@media (forced-colors: active) {
  .btn,
  .bar,
  .tile,
  .glass,
  .chip {
    border: 1px solid CanvasText;
  }
}
