/* INTER IS TWO FILES UNDER ONE NAME (November 14, 2026, tools/web-fonts.py).
   The full face is declared first with every character it can draw. The
   Latin file is declared after it, so the browser prefers it for any
   character in its range and fetches the full 341KB face only when the
   page holds a character outside that range (a Greek or Cyrillic name, a
   letter with a combining accent). Nothing ever falls back to another
   typeface, and the Latin file is cut from the full one glyph for glyph.
   Both ranges are printed by: python3 tools/web-fonts.py --split-only --check --ranges */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter/Inter-VariableFont_opsz,wght.woff2") format("woff2"),
       url("assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-0148, U+014A-01C3, U+01C5-0254, U+0256-027B, U+027E-0284, U+0286-0290, U+0292-02A4, U+02A6-0304, U+0306-030A, U+030C, U+030F, U+0313, U+0315, U+031B, U+0323, U+0326-0328, U+032C, U+0337-0338, U+0342-0343, U+0346-036F, U+0374-0376, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03D7, U+03DC-03DD, U+03F0-03F6, U+03F9-03FA, U+03FC-0479, U+0480-049D, U+04A0-04FF, U+052F, U+0E3F, U+1D00, U+1D0D, U+1D1B, U+1D43, U+1D47-1D49, U+1D4D, U+1D4F-1D50, U+1D52, U+1D56-1D58, U+1D5B, U+1D62-1D65, U+1D9C, U+1DA0, U+1DBB, U+1DBF-1DF5, U+1DFC-1E9B, U+1E9D-1F15, U+1F18-1F1D, U+1F20-1F45, U+1F48-1F4D, U+1F50-1F57, U+1F59, U+1F5B, U+1F5D, U+1F5F-1F7D, U+1F80-1FB4, U+1FB6-1FC4, U+1FC6-1FD3, U+1FD6-1FDB, U+1FDD-1FEF, U+1FF2-1FF4, U+1FF6-1FFE, U+2000-200B, U+2010-2027, U+202F-2055, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+20DB-20DE, U+20E8, U+20F0, U+2100-2101, U+2103, U+2105-2106, U+2109, U+2113, U+2116-2117, U+211E-2122, U+2126, U+212A-212B, U+212E, U+2132, U+213B, U+214D, U+2150-217F, U+2183-2186, U+2189, U+2190-2199, U+21A9-21AA, U+21B0-21B1, U+21B3-21B5, U+21BA-21BB, U+21D0, U+21D2, U+21D4, U+21DE-21DF, U+21E4-21E5, U+21E7, U+21EA, U+2202, U+2205-2206, U+220F, U+2211-2212, U+221A, U+221E, U+222B, U+2236, U+2248, U+2260, U+2264-2265, U+2295-2298, U+2303-2305, U+2318, U+2325-2327, U+232B, U+2380, U+2387, U+238B, U+23CE-23CF, U+2423, U+2460-2468, U+24B6-24CF, U+24EA, U+25A0-25A2, U+25AA, U+25B2-25B3, U+25B6-25B7, U+25BA-25BD, U+25C0-25C1, U+25C4-25C7, U+25CA-25CB, U+25CF, U+25E6, U+25EF, U+2600, U+2605-2606, U+263C, U+2661, U+2665, U+26A0, U+2713, U+2717, U+2756, U+2764, U+2780-2788, U+27EF, U+27F5-27FA, U+2913, U+2A38, U+2B06, U+2B12-2B13, U+2B1C, U+2B24, U+2C7C, U+2C7F, U+2DFF, U+2E18, U+A69F, U+A7FF, U+A92E, U+E000, U+E002-E05E, U+E06A-E0BD, U+E0C8-E0CC, U+E0DC-E0E6, U+E0F3-E0F5, U+E106, U+E109-E10A, U+E10C-E10F, U+E111-E113, U+E117-E118, U+E121-E122, U+E124, U+E12A-E15E, U+E163, U+E1C3, U+E1D2-E1DF, U+E1E1-E2DC, U+EE01-EE07, U+EE09-EE0A, U+EE0C-EE12, U+EE14, U+EE17, U+EE1D-EE45, U+EE47-EE84, U+EE87-EED6, U+EED8-EEE1, U+F6C3, U+FEFF, U+1F12F-1F149, U+1F16A-1F16B, U+1F850, U+1F852;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter/Inter-Latin-VariableFont_opsz,wght.woff2") format("woff2"),
       url("assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0000-024F, U+02C6, U+02DA, U+02DC, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F, U+2150-218F, U+2190-21FF, U+2200-22FF, U+2300-23FF, U+2500-25FF, U+2600-27BF, U+FB00-FB06, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.woff2") format("woff2"),
       url("assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-display: swap;
  font-style: italic;
  font-weight: 100 900;
}

@font-face {
  font-family: "Recoleta";
  src: url("assets/fonts/Recoleta/Recoleta-Regular.woff2") format("woff2"),
       url("assets/fonts/Recoleta/Recoleta-Regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Recoleta";
  src: url("assets/fonts/Recoleta/Recoleta-SemiBold.woff2") format("woff2"),
       url("assets/fonts/Recoleta/Recoleta-SemiBold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Recoleta";
  src: url("assets/fonts/Recoleta/Recoleta-Bold.woff2") format("woff2"),
       url("assets/fonts/Recoleta/Recoleta-Bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat/static/Caveat-Regular.woff2") format("woff2"),
       url("assets/fonts/Caveat/static/Caveat-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat/static/Caveat-Medium.woff2") format("woff2"),
       url("assets/fonts/Caveat/static/Caveat-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat/static/Caveat-SemiBold.woff2") format("woff2"),
       url("assets/fonts/Caveat/static/Caveat-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat/static/Caveat-Bold.woff2") format("woff2"),
       url("assets/fonts/Caveat/static/Caveat-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: light;
  --ink: #0f2a24;
  --ink-deep: #0f2a24;
  --body: #23342f;
  --muted: #6e7672;
  --muted-strong: #4f5a55;
  --paper: #fff9f3;
  --paper-deep: #f4e7d8;
  --surface: rgba(255, 253, 248, 0.94);
  --surface-solid: #fffdfa;
  --line: #ddd6c9;
  --line-strong: #cfc5b7;
  --coral: #f45a46;
  --coral-dark: #de4634;
  --coral-soft: #fff0ec;
  --sage: #dfece2;
  --green: #11873e;
  --amber: #f7b329;
  --blue-soft: #e8f1f5;
  --shadow-sm: 0 6px 18px rgba(33, 39, 34, 0.08);
  --shadow-md: 0 16px 42px rgba(33, 39, 34, 0.12);
  --shadow-lg: 0 30px 80px rgba(33, 39, 34, 0.16);
  --radius: 8px;
  --serif:
    Recoleta, "IvyPresto Display", "Canela", "Freight Display Pro", Georgia,
    "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --hand: "Caveat", "Bradley Hand", "Noteworthy", "Segoe Print", "Snell Roundhand", cursive;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1280px;
  margin: 0;
  color: var(--body);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.92), transparent 32rem),
    linear-gradient(120deg, rgba(23, 44, 39, 0.035) 0 1px, transparent 1px 9px),
    linear-gradient(0deg, rgba(23, 44, 39, 0.03) 0 1px, transparent 1px 8px),
    var(--paper);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.server-warning {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  color: #102d25;
  background: #fff2df;
  border-bottom: 1px solid #f2c89f;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(56, 36, 20, 0.08);
}

.server-warning[hidden] {
  display: none;
}

.server-warning strong {
  font-family: var(--serif);
  font-size: 18.5px;
}

.server-warning a {
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* Live test, August 22, 2026: with no column gap the nav's last link sat
     flush against the Your cards pill at laptop widths and read as a mistake. */
  column-gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
  min-height: 82px;
  padding: 10px clamp(28px, 3.1vw, 42px);
  background: rgba(255, 253, 250, 0.94);
  border-bottom: 1px solid rgba(207, 197, 183, 0.82);
  box-shadow: 0 3px 16px rgba(33, 39, 34, 0.045);
  backdrop-filter: blur(20px) saturate(155%);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand img {
  width: 220px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

/* Trademark mark beside the header wordmark (November 12, 2026).
   The overlay fills the logo link and is drawn in the lockup's own pixel
   grid (see the viewBox in index.html), fitted the same way the image is:
   left edge, centred top to bottom. So the numbers below are lockup pixels
   and scale with the image at every breakpoint. The mark hangs past the
   right edge on purpose: it takes no room in the layout, so the wordmark,
   the nav and the buttons sit exactly where they did.
   Size: the wordmark is set at about 150 lockup pixels, and 57 is 38% of
   that. Colour: the wordmark's own ink in the image, which is a shade off
   the site's --ink token. */
.brand-tm {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.brand-tm text {
  font-family: "Recoleta", Georgia, serif;
  font-size: 57px;
  font-weight: 400;
  fill: #092c25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 48px);
  color: #171d1a;
  font-size: 17.5px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 15px 0;
}

.nav-links svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--coral);
  border-radius: 99px;
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--coral);
}

.start-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.start-button {
  justify-self: end;
  min-width: 142px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--coral);
  border: 1px solid rgba(182, 48, 36, 0.28);
  box-shadow: 0 10px 24px rgba(255, 81, 63, 0.24);
  font-size: 17.5px;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.plan-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.plan-status svg {
  width: 24px;
  height: 24px;
}

.plan-status span,
.plan-status strong,
.plan-status small {
  display: block;
}

.plan-status strong {
  color: #18231f;
  font-size: 16px;
  line-height: 1.1;
  /* The live chip sits beside a full nav (August 16, 2026): without
     nowrap the flex squeeze folds "2 card credits" into a one-word
     column. The chip takes its natural width; the nav gap absorbs it. */
  white-space: nowrap;
}

.plan-status small {
  margin-top: 2px;
  color: #7d8782;
  font-size: 14px;
  white-space: nowrap;
}

.start-button svg,
.primary-button svg,
.secondary-button svg {
  width: 22px;
  height: 22px;
}

.generate-icon {
  flex: 0 0 auto;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.generate-icon-waves {
  display: none;
}

.is-generating-preview [data-generate-preview] .generate-icon-spark {
  display: none;
}

.is-generating-preview [data-generate-preview] .generate-icon-waves {
  display: block;
  animation: mail-waves 1.25s ease-in-out infinite;
}

@keyframes mail-waves {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-1px);
  }

  50% {
    opacity: 1;
    transform: translateX(2px);
  }
}

.start-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.start-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.tabs button:focus-visible,
.admin-card button:focus-visible,
select:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(255, 81, 63, 0.22);
  outline-offset: 2px;
}

main {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(30px, 3.8vw, 58px) clamp(18px, 3vw, 42px) 58px;
}

.home-page {
  margin: calc(clamp(30px, 3.8vw, 58px) * -1) calc(clamp(18px, 3vw, 42px) * -1) -58px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(500px, 40.7%) minmax(760px, 59.3%);
  align-items: stretch;
  height: clamp(570px, 44.5vw, 685px);
  min-height: 0;
  overflow: hidden;
  background: #fffdfa;
  border-bottom: 1px solid #dfd7cc;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px 40px clamp(48px, 4.5vw, 70px);
}

.home-eyebrow {
  color: var(--coral);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-script-note {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(16px, 1.1vw, 21px);
  font-weight: 400;
  line-height: 1.25;
}

.brand-script-note::after {
  display: none;
  content: none;
}

.home-hero h1 {
  max-width: 540px;
  margin-top: 15px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 51px;
  line-height: 1.06;
}

.home-hero h1 span {
  color: var(--coral);
}

.home-lede {
  max-width: 500px;
  margin-top: 21px;
  color: #65716b;
  font-size: 18px;
  line-height: 1.5;
}

.home-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 540px;
  margin-top: 24px;
}

.home-proof-row article {
  display: grid;
  gap: 6px;
}

.home-proof-row svg {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  color: var(--coral);
}

.home-proof-row strong {
  color: var(--ink);
  font-size: 16px;
}

.home-proof-row span {
  color: #65716b;
  font-size: 15px;
  line-height: 1.45;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 23px;
}

.home-hero-actions .primary-button,
.home-hero-actions .secondary-button {
  min-width: 154px;
  padding: 0 26px;
}

.home-product-scene {
  position: relative;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
}

.home-product-scene::before {
  display: none;
}

.home-hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.home-hero-slides {
  position: absolute;
  inset: 0;
}

.home-scene-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  background: #f5ebdd;
  pointer-events: none;
  transition: opacity 480ms ease;
}

.home-scene-image.is-active {
  opacity: 1;
}

.home-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(36, 52, 46, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(31, 38, 33, 0.12);
  transform: translateX(-50%);
}

.home-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(36, 52, 46, 0.3);
  border: 0;
  border-radius: 999px;
}

.home-carousel-dots button.is-active,
.home-carousel-dots button:hover,
.home-carousel-dots button:focus-visible {
  background: var(--coral);
}

@media (prefers-reduced-motion: reduce) {
  .home-scene-image {
    transition: none;
  }
}

.home-cup {
  position: absolute;
  left: 2%;
  top: 210px;
  width: 168px;
  height: 210px;
  background: linear-gradient(90deg, #a7794b, #d5ad77 45%, #8f673c);
  clip-path: polygon(13% 0, 87% 0, 70% 100%, 30% 100%);
  filter: blur(0.1px);
  opacity: 0.62;
}

.home-hero-card {
  position: absolute;
  left: 25%;
  top: 74px;
  width: 300px;
  aspect-ratio: 0.72;
  overflow: hidden;
  background: #f6efe3;
  box-shadow: 0 28px 52px rgba(53, 42, 32, 0.28);
}

.home-hero-card::after {
  position: absolute;
  inset: 0;
  border: 12px solid rgba(255, 253, 248, 0.88);
  content: "";
}

.home-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-card span {
  position: absolute;
  top: 19%;
  left: 12%;
  right: 12%;
  z-index: 2;
  color: #a98247;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.home-envelope {
  position: absolute;
  right: 5%;
  top: 212px;
  width: 360px;
  height: 220px;
  background: #efe7d8;
  box-shadow: 0 25px 48px rgba(53, 42, 32, 0.16);
}

.home-envelope::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 49%, rgba(255, 255, 255, 0.22) 50%, transparent 51%),
    linear-gradient(35deg, transparent 49%, rgba(116, 92, 68, 0.14) 50%, transparent 51%);
  content: "";
}

.home-envelope p {
  position: absolute;
  left: 120px;
  top: 94px;
  color: #806d5b;
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.45;
}

.home-stamp {
  position: absolute;
  right: 34px;
  top: 36px;
  width: 46px;
  height: 58px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.7), rgba(255, 253, 248, 0.7)),
    url("assets/card-holiday-bike-ai.png") center / cover;
  border: 3px solid #d7c4a2;
}

.home-pen {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 250px;
  height: 18px;
  background: linear-gradient(90deg, #7b4d23, #d5a35b 22%, #684019);
  border-radius: 999px;
  transform: rotate(-9deg);
  box-shadow: 0 10px 16px rgba(53, 42, 32, 0.2);
}

.how-it-works {
  padding: 24px clamp(54px, 5.4vw, 76px) 34px;
  background: #fffdfa;
  border-bottom: 1px solid #dfd7cc;
}

.how-it-works h2 {
  color: #1d2925;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.05;
  text-align: center;
}

.home-steps {
  display: grid;
  grid-template-columns:
    minmax(250px, 1fr) 58px minmax(250px, 1fr) 58px minmax(250px, 1fr) 58px
    minmax(250px, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 28px;
}

.home-steps article {
  display: grid;
  grid-template-columns: 78px 22px minmax(142px, 1fr);
  grid-template-rows: max-content max-content;
  column-gap: 16px;
  row-gap: 17px;
  align-items: start;
  min-height: 116px;
}

.home-steps article > span {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--coral);
  background: #fffdfa;
  border: 1px solid #ded4c8;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.home-steps svg {
  width: 34px;
  height: 34px;
}

.home-steps small {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding-top: 2px;
  color: var(--coral);
  font-weight: 850;
  font-size: 16px;
  line-height: 1;
}

.home-steps strong {
  grid-column: 3;
  grid-row: 1;
}

.home-steps strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.home-steps p {
  grid-column: 3;
  grid-row: 2;
  color: #5d6a65;
  font-size: 15px;
  line-height: 1.5;
}

.home-steps > i {
  align-self: start;
  margin-top: 45px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 9px, transparent 9px 18px);
  opacity: 0.55;
}

.home-trust-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(380px, 0.88fr) minmax(300px, 0.72fr);
  gap: 64px;
  align-items: center;
  padding: 34px clamp(54px, 5.4vw, 76px) 31px;
  background: #fffdfa;
}

.home-trust-copy h2 {
  max-width: 440px;
  margin-top: 16px;
  color: #1d2925;
  font-family: var(--serif);
  font-size: 35px;
  line-height: 1.12;
}

.home-trust-copy > p:last-child {
  max-width: 430px;
  margin-top: 18px;
  color: #65716b;
  font-size: 17.5px;
  line-height: 1.55;
}

.testimonial-card {
  padding: 28px 32px;
  background: #fffdfa;
  border: 1px solid #ded4c8;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--coral);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.testimonial-card blockquote {
  margin: 16px 0 24px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.testimonial-card div:last-child {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 14px;
  align-items: center;
}

.avatar {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fffdfa, 0 0 0 3px rgba(222, 212, 200, 0.95);
}

.testimonial-card strong {
  color: var(--ink);
  font-size: 17px;
}

.testimonial-card small {
  color: #5d6a65;
  font-size: 14px;
}

.home-assurance-list {
  display: grid;
  gap: 24px;
}

.home-assurance-list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
}

.home-assurance-list svg {
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.home-assurance-list strong,
.home-assurance-list span {
  display: block;
}

.home-assurance-list strong {
  color: var(--ink);
  font-size: 16px;
}

.home-assurance-list span {
  margin-top: 4px;
  color: #65716b;
  font-size: 15px;
  line-height: 1.45;
}

.app-page {
  display: none;
}

.app-page.is-active {
  display: block;
}

.page-heading {
  margin-bottom: 32px;
}

.page-heading h1 {
  max-width: 760px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(70px, 6.6vw, 116px);
  line-height: 0.94;
}

.page-heading p {
  max-width: 760px;
  margin-top: 18px;
  color: #4d5e58;
  font-size: 22px;
  line-height: 1.5;
}

.order-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.order-summary-card,
.order-stage {
  min-height: 360px;
}

.order-stage {
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(207, 197, 183, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.order-stage .primary-button {
  width: 100%;
  margin-top: 22px;
}

.order-steps {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.order-steps article {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: #fffdf9;
  border: 1px solid #eee5db;
  border-radius: 18px;
}

.order-steps strong {
  color: var(--ink-deep);
  font-size: 17.5px;
}

.order-steps span {
  color: #5d6a65;
  font-size: 16px;
  line-height: 1.45;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(560px, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  margin-bottom: clamp(28px, 3.2vw, 40px);
}

.brand-title {
  display: grid;
  grid-template-columns: minmax(0, auto) 1px minmax(280px, 0.58fr);
  gap: clamp(28px, 3vw, 42px);
  align-items: center;
}

.brand-title::before {
  grid-column: 2;
  display: block;
  width: 1px;
  height: 96px;
  background: var(--line-strong);
  content: "";
}

h1,
h2,
p,
dl {
  margin: 0;
}

h1 {
  grid-column: 1;
  grid-row: 1;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(84px, 8.3vw, 128px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
}

#page-create .brand-title h1 {
  font-size: clamp(56px, 5.4vw, 82px);
  line-height: 0.95;
}

#page-create .brand-title {
  grid-template-columns: minmax(260px, 0.72fr) 1px minmax(350px, 0.9fr);
}

.brand-title p {
  grid-column: 3;
  color: #1d2925;
  font-family: var(--serif);
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.25;
}

.brand-title .brand-script-note {
  grid-column: 3;
  margin-top: -12px;
}

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

.proof-points article {
  min-height: 132px;
  padding: 8px clamp(18px, 2vw, 34px);
  text-align: center;
}

.proof-points article + article {
  border-left: 1px solid var(--line-strong);
}

.proof-points svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  color: var(--coral);
  stroke-width: 1.9;
}

.proof-points h2 {
  margin-bottom: 7px;
  color: #15211d;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.05;
}

.proof-points p {
  max-width: 150px;
  margin: 0 auto;
  color: #394741;
  font-size: 16px;
  line-height: 1.32;
}

.calendar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: end;
  margin-bottom: 28px;
}

.workspace-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border: 1px solid #f2d1ca;
  background: #fff7f5;
  color: #d44a38;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 780;
}

.workspace-pill {
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 16px;
}

.workspace-pill svg {
  width: 16px;
  height: 16px;
}

.calendar-copy h1 {
  max-width: 760px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(62px, 6.3vw, 106px);
  line-height: 0.94;
}

.calendar-copy p {
  max-width: 760px;
  margin-top: 18px;
  color: #4d5e58;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.calendar-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.calendar-metrics div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  place-items: center;
  padding: 14px 10px;
  background: #fff7f3;
  border-radius: 18px;
  text-align: center;
}

.calendar-metrics .metric-green {
  background: #ecf8f0;
}

.calendar-metrics strong {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
}

.calendar-metrics span {
  color: #8b7e75;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.calendar-flow article {
  min-height: 142px;
  padding: 18px;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid #e9e0d7;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.calendar-flow svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  padding: 9px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 15px;
}

.calendar-flow h2 {
  color: var(--ink-deep);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.calendar-flow p {
  margin-top: 6px;
  color: #6b7771;
  font-size: 14px;
  line-height: 1.45;
}

.calendar-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.calendar-main-column,
.calendar-sidebar {
  display: grid;
  gap: 22px;
}

.month-card,
.occasion-detail,
.upcoming-card,
.credit-card-module,
.fulfillment-card {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid #e7e0d6;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.month-card,
.occasion-detail,
.upcoming-card,
.credit-card-module,
.fulfillment-card {
  padding: 24px;
}

.month-heading,
.detail-heading,
.sidebar-heading,
.credit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.month-heading {
  margin-bottom: 20px;
}

.month-heading p,
.credit-heading p {
  color: #7b6861;
  font-size: 15px;
  font-weight: 700;
}

.month-heading h2,
.detail-heading h2,
.sidebar-heading h2,
.credit-heading h2 {
  color: var(--ink-deep);
  font-family: var(--serif);
  line-height: 1.05;
}

.month-heading h2 {
  margin-top: 3px;
  font-size: 34px;
}

.month-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.month-actions button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 15px;
}

.month-actions svg,
.detail-actions svg,
.one-time-button svg {
  width: 17px;
  height: 17px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  color: #9a8e86;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  margin-top: 12px;
}

.calendar-day {
  min-height: 104px;
  padding: 9px;
  color: #415049;
  background: #fffdf9;
  border: 1px solid #ece5db;
  border-radius: 16px;
  text-align: left;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.calendar-day.has-occasion {
  cursor: pointer;
}

.calendar-day.has-occasion:hover,
.calendar-day.is-selected {
  background: #fff3f0;
  border-color: var(--coral);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.day-number {
  display: block;
  color: #415049;
  font-size: 15px;
  font-weight: 750;
}

.occasion-chip {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 9px;
  background: #ffffff;
  border: 1px solid rgba(231, 224, 214, 0.72);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(31, 37, 32, 0.06);
}

.occasion-chip strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-deep);
  font-size: 14px;
  line-height: 1.2;
}

.occasion-chip strong::before {
  display: block;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(var(--coral), var(--coral)) 50% 50% / 9px 1.5px no-repeat,
    linear-gradient(var(--coral), var(--coral)) 50% 50% / 1.5px 9px no-repeat;
  border: 1.5px solid var(--coral);
  border-radius: 2px;
  content: "";
}

.occasion-chip span {
  color: #6a7770;
  font-size: 12.5px;
}

.mini-status,
.status-badge {
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11.5px;
  font-weight: 800;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 5px;
}

.status-needs {
  color: #c84230;
  background: #fff1ee;
  border-color: #ffd6cf;
}

.status-ready {
  color: #157347;
  background: #ecf8f0;
  border-color: #cdebd8;
}

.status-planned {
  color: #8a5a00;
  background: #fff8e9;
  border-color: #f5e1a9;
}

.status-multi {
  color: #255b48;
  background: #edf6f2;
  border-color: #c8e0d5;
}

.detail-heading {
  margin-bottom: 18px;
}

.status-badge {
  margin-bottom: 9px;
}

.detail-heading h2 {
  font-size: 30px;
}

.detail-heading p,
.sidebar-heading p {
  margin-top: 5px;
  color: #687771;
  font-size: 15px;
}

.detail-icon,
.fulfillment-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 16px;
}

.detail-icon svg,
.fulfillment-icon svg,
.sidebar-heading > svg,
.credit-heading > svg {
  width: 23px;
  height: 23px;
}

.detail-readiness {
  display: grid;
  gap: 11px;
  padding: 16px;
  margin-bottom: 20px;
  background: #fffdf9;
  border: 1px solid #eee5db;
  border-radius: 18px;
}

.detail-readiness div,
.fulfillment-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-readiness span,
.fulfillment-list dt {
  color: #6a7770;
  font-size: 15px;
  font-weight: 650;
}

.detail-readiness strong {
  color: var(--ink-deep);
  font-size: 15px;
}

.green-text {
  color: var(--green) !important;
}

.amber-text {
  color: #8a5a00 !important;
}

.detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-fields label {
  display: grid;
  gap: 8px;
}

.detail-fields span {
  color: #243b35;
  font-size: 15px;
  font-weight: 760;
}

.wide-field {
  grid-column: 1 / -1;
}

.detail-fields textarea {
  min-height: 94px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.detail-actions button {
  min-height: 48px;
}

.sidebar-heading {
  margin-bottom: 18px;
}

.sidebar-heading h2,
.credit-heading h2 {
  font-size: 26px;
}

.sidebar-heading > svg {
  color: var(--coral);
}

.upcoming-list {
  display: grid;
  gap: 12px;
}

.upcoming-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #fffdf9;
  border: 1px solid #eee5db;
  border-radius: 18px;
}

.upcoming-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 14px;
}

.upcoming-icon svg {
  width: 19px;
  height: 19px;
}

.upcoming-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-deep);
  font-size: 16px;
  font-weight: 800;
}

.upcoming-title-row span {
  flex: 0 0 auto;
  color: #8b7e75;
  font-size: 14px;
  font-weight: 750;
}

.upcoming-item p {
  color: #6b7771;
  font-size: 15px;
}

.upcoming-item button {
  width: max-content;
  margin-top: 7px;
  padding: 0;
  color: var(--coral);
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 800;
}

.credit-card-module {
  color: #ffffff;
  background: var(--ink-deep);
  border-color: rgba(255, 255, 255, 0.08);
}

.credit-heading {
  align-items: center;
  margin-bottom: 18px;
}

.credit-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.credit-heading h2 {
  color: #ffffff;
}

.credit-heading > svg {
  color: #f7b1a6;
}

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

.credit-stats div {
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.credit-stats strong,
.credit-stats span {
  display: block;
}

.credit-stats strong {
  font-size: 25px;
}

.credit-stats span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
}

.one-time-button {
  width: 100%;
  margin-top: 16px;
  color: var(--ink-deep);
  background: #ffffff;
  border-color: #ffffff;
}

.fulfillment-icon {
  color: #255b48;
  background: #edf6f2;
}

.fulfillment-list {
  display: grid;
  gap: 0;
}

.fulfillment-list div {
  padding: 13px 0;
  border-top: 1px solid #efe7dc;
}

.fulfillment-list dd {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(292px, 360px) minmax(500px, 1fr) minmax(288px, 320px);
  gap: 22px;
  align-items: start;
}

.builder-panel,
.preview-panel,
.action-card,
.summary-card,
.admin-card {
  background: var(--surface);
  border: 1px solid rgba(207, 197, 183, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.builder-panel {
  padding: 24px 22px 28px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.builder-panel.is-submitted {
  border-color: rgba(17, 135, 62, 0.24);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px rgba(17, 135, 62, 0.05);
}

.builder-panel.is-locked {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(249, 244, 235, 0.93)),
    var(--surface);
}

.starting-point {
  position: relative;
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.starting-point-title {
  display: inline-flex;
  align-items: center;
  margin-bottom: 13px;
  color: #16251f;
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.1;
}

.path-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.path-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 128px;
  padding: 44px 13px 14px;
  color: #263631;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.builder-panel.is-locked .path-card,
.builder-panel.is-locked .segmented-control label {
  cursor: default;
}

.path-card:hover,
.path-card:focus-within {
  border-color: rgba(244, 90, 70, 0.55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.path-card.is-selected {
  background:
    linear-gradient(145deg, rgba(255, 246, 242, 0.92), rgba(255, 253, 250, 0.84)),
    #fff7f4;
  border-color: var(--coral);
  box-shadow:
    inset 0 0 0 1px rgba(244, 90, 70, 0.06),
    0 10px 24px rgba(244, 90, 70, 0.09);
}

.path-card input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.path-card-control {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 18px;
  height: 18px;
  background: #fffdfa;
  border: 1.6px solid #9aa49e;
  border-radius: 999px;
}

.path-card.is-selected .path-card-control {
  border-color: var(--coral);
  box-shadow: inset 0 0 0 4px #fffdfa;
  background: var(--coral);
}

.path-card strong {
  color: #15211d;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.path-card small {
  margin-top: 8px;
  color: #4f5d57;
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.42;
}

.panel-title,
.mobile-panel-title,
.rail-title,
.field-label,
.preview-label,
.inside-caption,
.postage-note {
  display: flex;
  align-items: center;
}

.panel-title,
.mobile-panel-title,
.rail-title {
  gap: 12px;
}

.panel-title {
  margin-bottom: 22px;
}

.panel-title svg {
  width: 24px;
  height: 24px;
  color: var(--coral);
}

.panel-title h2,
.mobile-panel-title h2,
.rail-title h2 {
  color: #18231f;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
}

.field-list {
  display: grid;
  gap: 17px;
}

.field-row {
  position: relative;
  display: grid;
  gap: 9px;
}

.form-check-complete {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 7px;
  background: #168b47;
  border-radius: 999px;
  box-shadow: none;
}

.builder-panel.is-submitted .form-check-complete {
  display: inline-flex;
}

.form-check-complete svg {
  width: 12px;
  height: 12px;
  color: #ffffff;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.starting-point-title .form-check-complete svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.builder-panel.is-locked select:disabled,
.builder-panel.is-locked input:disabled,
.builder-panel.is-locked textarea:disabled {
  color: #2f403a;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  -webkit-text-fill-color: #2f403a;
}

.style-picker {
  display: grid;
  gap: 8px;
}

.field-label {
  gap: 10px;
  color: #202c28;
  font-size: 16px;
  font-weight: 760;
}

.field-label svg {
  width: 19px;
  height: 19px;
  color: #4c5d57;
}

select,
input,
textarea {
  width: 100%;
  color: #1f2c28;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

select,
input {
  min-height: 42px;
  padding: 0 13px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #40524b 50%),
    linear-gradient(135deg, #40524b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

textarea {
  min-height: 96px;
  padding: 12px 13px 28px;
  resize: vertical;
  line-height: 1.4;
}

.field-help {
  color: #6b766f;
  font-size: 14px;
  line-height: 1.35;
}

.style-picker .field-help {
  margin-top: -1px;
}

/* The custom-interest help line counts the four ingredients down. At the
   limit it turns coral so a refused comma has a visible reason. */
.field-help.is-at-limit {
  color: var(--coral-dark);
  font-weight: 640;
}

/* Brand-name guidance (brief 07): a polite in-step callout, not an error
   screen. Coral accent says "look here", warm tint keeps it friendly. */
.marks-callout {
  margin: 2px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--coral);
  border-left-width: 4px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.message-control {
  position: relative;
  display: block;
}

.char-count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #68756f;
  font-size: 12.5px;
  font-weight: 650;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 48px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.segmented-control label {
  position: relative;
  display: grid;
}

.segmented-control input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: #31413c;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 720;
}

.segmented-control svg {
  width: 18px;
  height: 18px;
}

.segmented-control input:checked + span {
  color: var(--coral-dark);
  background: var(--coral-soft);
  border-color: var(--coral);
}

.style-family-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.style-family-toggle span {
  min-height: 30px;
  padding: 0 10px;
  color: #31413c;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.style-family-toggle label:hover span,
.style-family-toggle label:focus-within span {
  border-color: rgba(244, 90, 70, 0.55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.style-family-toggle input:checked + span {
  color: var(--coral-dark);
  background:
    linear-gradient(145deg, rgba(255, 246, 242, 0.92), rgba(255, 253, 250, 0.84)),
    #fff7f4;
  border-color: var(--coral);
  box-shadow:
    inset 0 0 0 1px rgba(244, 90, 70, 0.06),
    0 8px 18px rgba(244, 90, 70, 0.08);
}

.primary-button,
.secondary-button {
  border: 1px solid transparent;
}

.primary-button {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 14px 28px rgba(255, 81, 63, 0.22);
}

.primary-button:hover {
  background: var(--coral-dark);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.secondary-button {
  color: #27352f;
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line-strong);
}

.secondary-button:hover {
  border-color: rgba(255, 81, 63, 0.55);
  box-shadow: var(--shadow-sm);
}

.generate-button,
.approve-button {
  width: 100%;
}

.ai-note {
  margin-top: 18px;
  color: #7a817d;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance; /* Oct 14: on a 393pt iPhone this stranded "printed card." */
}

.ai-note::before {
  color: var(--coral);
  content: "* ";
}

.reroll-note {
  margin: -2px 0 0;
  padding: 10px 12px;
  color: #5d6b64;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 213, 190, 0.82);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.version-tray {
  display: grid;
  gap: 10px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(232, 247, 238, 0.94), rgba(255, 253, 248, 0.92));
  border: 1px solid rgba(21, 134, 71, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(28, 61, 48, 0.08);
}

.version-tray[hidden] {
  display: none;
}

.version-tray-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-tray-heading-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.version-tray-heading-text strong {
  color: #25332e;
  font-size: 16px;
  font-weight: 780;
}

.version-tray-heading-text span {
  color: #68756e;
  font-size: 14px;
  line-height: 1.35;
}

/* Fresh-start confirmation (August 20, 2026): the Start a New Card button
   scrolls the buyer to step 1, so the reassurance that their old card
   survived has to live up here where they land, not in the status line
   next to the generate button they can no longer see. */
.fresh-start-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(232, 247, 238, 0.94), rgba(255, 253, 248, 0.92));
  border: 1px solid rgba(21, 134, 71, 0.24);
  border-radius: var(--radius);
}

.fresh-start-note[hidden] {
  display: none;
}

.fresh-start-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: #158647;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fresh-start-note p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  color: #25332e;
  font-size: 15px;
  line-height: 1.4;
}

.fresh-start-note p span:first-child {
  font-weight: 720;
}

.fresh-start-note a {
  color: #158647;
  font-weight: 650;
}

.version-tray-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.version-tray-reroll,
.version-tray-edit,
.version-tray-newcard {
  flex: 0 0 auto;
  min-height: 38px;
  min-width: 0;
  padding: 0 16px;
  font-size: 15px;
  white-space: nowrap;
}

.version-tray-edit svg,
.version-tray-newcard svg {
  width: 16px;
  height: 16px;
}

/* Start a New Card is the destructive door: far right, lightest weight, so
   the spectrum reads Re-roll, Change a detail, Start a New Card. */
.version-tray-newcard {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #505b56;
  font-weight: 650;
}

.version-tray-newcard:hover,
.version-tray-newcard:focus-visible {
  background: rgba(33, 39, 34, 0.05);
  border-color: transparent;
  box-shadow: none;
}

.version-tray-edit[disabled],
.version-tray-newcard[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.version-tray-reroll .generate-icon {
  width: 16px;
  height: 16px;
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.version-chip {
  display: inline-grid;
  gap: 2px;
  min-width: 126px;
  min-height: 52px;
  padding: 9px 12px;
  color: #34433d;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
}

.version-chip strong {
  font-size: 15px;
  font-weight: 780;
}

.version-chip span {
  color: #6d7972;
  font-size: 12.5px;
  font-weight: 700;
}

.version-chip.is-selected {
  color: #17352a;
  background: #ffffff;
  border-color: rgba(21, 134, 71, 0.58);
  box-shadow: inset 0 0 0 1px rgba(21, 134, 71, 0.18), 0 10px 22px rgba(21, 134, 71, 0.14);
}

.version-chip.is-selected span {
  color: #158647;
}

.preview-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(250, 243, 232, 0.92)),
    var(--surface);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
}

.mobile-panel-title {
  display: none;
}

.mobile-panel-title svg,
.preview-label svg {
  width: 22px;
  height: 22px;
}

.preview-label {
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 740;
}

.tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 176px;
  padding: 2px;
  background: #f5efe8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tabs button {
  min-height: 28px;
  color: #283630;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 760;
}

.tabs button.active {
  color: var(--coral-dark);
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 81, 63, 0.12);
}

.preview-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-seals span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #22362f;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(207, 197, 183, 0.82);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(33, 39, 34, 0.045);
}

.preview-panel.has-generated-preview .preview-seals span {
  color: #0f4b2a;
  background: #e8f4e8;
  border-color: rgba(25, 138, 73, 0.24);
}

.preview-panel.is-generating .preview-seals span {
  color: #9c392b;
  background: #fff2ee;
  border-color: rgba(244, 90, 70, 0.22);
}

.preview-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.preview-stage::before {
  display: none;
}

.preview-stage::after {
  display: none;
}

.postal-loading {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--coral);
  background: rgba(255, 249, 243, 0.9);
  border: 1px solid rgba(244, 90, 70, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(33, 39, 34, 0.1);
}

.postal-loading::after {
  color: #22362f;
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  content: "Personalizing";
}

.postal-loading span {
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-radius: 999px 999px 0 0;
  animation: postal-wave 1.05s ease-in-out infinite;
}

.postal-loading span:nth-child(2) {
  animation-delay: 0.12s;
}

.postal-loading span:nth-child(3) {
  animation-delay: 0.24s;
}

.preview-panel.is-generating .postal-loading {
  display: none;
}

@keyframes postal-wave {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(2px);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.preview-view {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 0;
}

.preview-view:not(.is-active) {
  display: none;
}

.preview-view.is-active {
  display: grid;
  align-items: center;
  justify-items: center;
}

.generation-progress-card {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 6;
  display: grid;
  align-content: start;
  width: min(252px, 38%);
  padding: 18px;
  color: #20342e;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(246, 235, 220, 0.88)),
    rgba(255, 249, 243, 0.94);
  border: 1px solid rgba(222, 203, 181, 0.82);
  border-radius: 8px;
  box-shadow:
    0 16px 34px rgba(42, 31, 22, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.generation-progress-card::before,
.generation-progress-card::after {
  /* Was a faux postage-perforation strip (repeat-x coral ellipses).
     At the enlarged card size it read as oval artifacts — removed
     per founder note, July 7, 2026. */
  display: none;
}

.preview-panel.is-generating .generation-progress-card {
  opacity: 1;
  transform: translateX(0);
}

/* The coral "Snailmail studio" label above the headline retired
   September 16, 2026 (founder type study): it named nothing the
   headline did not, and it was the fifth text style on one small card. */

.generation-progress-card h3 {
  max-width: 188px;
  margin: 0 0 15px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.004em;
  line-height: 1.08;
}

.generation-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.generation-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: rgba(15, 42, 36, 0.64);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
}

.generation-steps li + li::before {
  position: absolute;
  top: -10px;
  left: 8px;
  width: 1px;
  height: 10px;
  background: rgba(156, 133, 110, 0.34);
  content: "";
}

.generation-steps li > span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 2px solid rgba(156, 133, 110, 0.42);
  border-radius: 999px;
}

.generation-steps li > span svg {
  display: none;
  width: 10px;
  height: 10px;
  stroke: #ffffff;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.generation-steps li.is-active {
  color: var(--ink-deep);
}

.generation-steps li.is-active > span {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(244, 90, 70, 0.1);
  animation: generation-pulse 1.2s ease-in-out infinite;
}

.generation-steps li.is-active > span::after {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 999px;
  content: "";
}

.generation-steps li.is-complete {
  color: var(--ink-deep);
}

.generation-steps li.is-complete > span {
  background: var(--coral);
  border-color: var(--coral);
}

.generation-steps li.is-complete > span svg {
  display: block;
}

.generation-progress-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

@keyframes generation-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.preview-panel.is-generating .preview-view.is-active {
  filter: saturate(0.92);
}

.create-preview-photo {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.create-preview-photo-front,
.create-preview-photo-inside {
  /* Must match the shell photo's true dimensions or the overlay
     percentages drift. Both shells share ONE footprint (July 5, 2026)
     so the stage never resizes between Front and Inside. */
  aspect-ratio: 1408 / 1180;
}

.create-preview-photo-inside::before {
  position: absolute;
  z-index: 3;
  top: 11.3%;
  bottom: 11.2%;
  left: 50.0%;
  width: 1px;
  background: linear-gradient(180deg, rgba(125, 103, 75, 0.12), rgba(88, 71, 50, 0.2), rgba(255, 255, 255, 0.3));
  box-shadow:
    -1px 0 2px rgba(80, 57, 39, 0.12),
    1px 0 2px rgba(255, 255, 255, 0.58);
  content: "";
  pointer-events: none;
}

.preview-shell-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-scene.is-generating .create-preview-photo::after,
.inside-scene.is-generating .create-preview-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 249, 243, 0.68), rgba(255, 249, 243, 0.12) 44%, rgba(255, 249, 243, 0.04)),
    rgba(20, 34, 30, 0.06);
  content: "";
  pointer-events: none;
}

.card-scene:not(.has-generated-art) .envelope,
.card-scene:not(.has-generated-art) .card-front,
.inside-scene:not(.has-generated-inside) .card-inside {
  display: none;
}

.card-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card-scene::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(23, 44, 39, 0.025) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 56% 58%, rgba(70, 49, 33, 0.1), transparent 16rem);
  content: "";
}

.card-scene.is-generating .card-front::after {
  display: none;
}

.envelope {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(44%, 380px);
  min-width: 320px;
  aspect-ratio: 0.72;
  z-index: 1;
  background: linear-gradient(90deg, #f9f4ea, #e9dfcf);
  border: 1px solid rgba(136, 120, 99, 0.18);
  box-shadow: 0 28px 46px rgba(62, 50, 39, 0.14);
  transform: translate(-8%, -52%) rotate(-3deg);
}

.envelope::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 24%);
  content: "";
}

.seal {
  display: none;
}

.seal::after {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 231, 171, 0.8);
  border-radius: 50%;
  content: "";
}

.card-front {
  position: absolute;
  z-index: 2;
  top: 16.6%;
  left: 27.5%;
  width: 44.7%;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #fffaf1;
  border: 1px solid rgba(99, 68, 52, 0.08);
  box-shadow: 0 12px 24px rgba(42, 31, 22, 0.11);
}

.card-placeholder {
  position: absolute;
  inset: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  color: #22342f;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.64), transparent 46%),
    repeating-linear-gradient(0deg, rgba(85, 62, 43, 0.035) 0 1px, transparent 1px 8px),
    #fff8ee;
  border: 1px dashed rgba(111, 89, 61, 0.24);
  text-align: center;
}

.card-placeholder::before,
.card-placeholder::after {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 16px;
  opacity: 0.24;
  background:
    radial-gradient(ellipse at center, transparent 46%, var(--coral) 48% 52%, transparent 54%) 0 0 / 26px 16px repeat-x;
  content: "";
}

.card-placeholder::before {
  top: 18px;
}

.card-placeholder::after {
  bottom: 18px;
}

.placeholder-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: var(--coral);
  background: #fff3ed;
  border: 1px solid rgba(244, 90, 70, 0.18);
  border-radius: 50%;
}

.placeholder-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.card-placeholder strong {
  max-width: 230px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.08;
}

.card-placeholder span:not(.placeholder-mark),
.card-placeholder em {
  max-width: 220px;
  color: #62706b;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.card-placeholder em {
  color: var(--coral-dark);
  font-weight: 780;
}

.card-front img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-scene.has-generated-art .card-front img {
  display: block;
  object-fit: contain;
  background: #fffaf1;
}

.card-scene.has-generated-art .envelope {
  display: none;
}

.card-scene.has-generated-art .card-front {
  display: block;
  background: #fffaf1;
  border-color: rgba(99, 68, 52, 0.16);
}

.front-copy {
  position: absolute;
  display: none;
  left: 12%;
  right: 12%;
  top: 9%;
  padding: 12px 10px;
  color: #9d4d2c;
  background: rgba(253, 239, 220, 0.84);
  border: 1px solid rgba(158, 94, 56, 0.18);
  border-radius: 3px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.02;
  text-align: center;
}

.card-scene.has-generated-art .front-copy {
  display: none;
}

.card-scene.has-generated-art .card-placeholder {
  display: none;
}

.inside-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.inside-page-art,
.inside-spread-art {
  position: absolute;
  z-index: 2;
  display: none;
  height: 64.6%;
  object-fit: cover;
  background: #fbf4e6;
  border: 0;
  box-shadow: none;
  transform: none;
}

.inside-page-art {
  top: 22%;
}

.inside-left-art {
  left: 8%;
  width: 42.35%;
}

.inside-right-art {
  left: 50.35%;
  width: 41.65%;
}

.inside-spread-art {
  top: 22%;
  left: 8%;
  width: 84%;
}

.inside-scene.has-split-inside .inside-page-art,
.inside-scene.has-legacy-inside .inside-spread-art {
  display: block;
}

.inside-scene.has-generated-inside .card-inside {
  display: none;
}

.inside-caption {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  color: #2e3f39;
}

.inside-caption svg {
  width: 24px;
  height: 24px;
}

.inside-caption strong {
  color: #15211d;
  font-size: 16px;
  line-height: 1.2;
}

.inside-caption span {
  font-size: 15px;
  line-height: 1.4;
}

.card-inside {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(82%, 760px);
  aspect-ratio: 1.62;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: #fbf4e6;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow:
    0 18px 32px rgba(45, 37, 27, 0.12),
    inset 0 0 0 10px rgba(255, 252, 246, 0.34);
}

.card-inside.interior-placeholder {
  grid-template-columns: 1fr;
  width: min(74%, 620px);
  aspect-ratio: 1.34;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.85), transparent 15rem),
    repeating-linear-gradient(0deg, rgba(89, 68, 47, 0.035) 0 1px, transparent 1px 10px),
    #fff8ee;
}

.card-inside.interior-placeholder::before {
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(111, 89, 61, 0.18);
  border-radius: 3px;
  content: "";
  pointer-events: none;
}

.card-inside::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(90deg, rgba(120, 107, 91, 0.28), rgba(255, 255, 255, 0.8));
  content: "";
}

.card-inside.interior-placeholder::after {
  display: none;
}

.inside-placeholder-copy {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 3vw, 44px);
  text-align: center;
}

.inside-placeholder-copy .placeholder-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--coral);
  background: rgba(255, 236, 231, 0.82);
  border: 1px solid rgba(255, 77, 61, 0.18);
  border-radius: 999px;
}

.inside-placeholder-copy .placeholder-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.inside-placeholder-copy strong {
  max-width: 300px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
}

.inside-placeholder-copy p {
  max-width: 280px;
  color: #62706b;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.inside-art,
.inside-message {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 24px;
}

.inside-art {
  background:
    linear-gradient(90deg, rgba(160, 135, 105, 0.08), transparent),
    #f5eddf;
}

.inside-art span {
  width: 112px;
  height: 112px;
  background:
    radial-gradient(circle at 63% 29%, #b83e2d 0 6px, transparent 7px),
    radial-gradient(circle at 44% 44%, #d85436 0 6px, transparent 7px),
    radial-gradient(circle at 57% 61%, #9f2f28 0 6px, transparent 7px),
    linear-gradient(25deg, transparent 0 48%, #507351 49% 51%, transparent 52%),
    repeating-linear-gradient(150deg, transparent 0 11px, rgba(72, 109, 75, 0.65) 12px 14px, transparent 15px 24px);
  transform: rotate(-12deg);
}

.inside-message {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.25;
  text-align: center;
}

.inside-message p {
  max-width: 320px;
}

.inside-message i {
  position: absolute;
  bottom: 22px;
  width: 74px;
  height: 12px;
  background:
    linear-gradient(#8c948a, #8c948a) left 50% / 28px 1px no-repeat,
    linear-gradient(#8c948a, #8c948a) right 50% / 28px 1px no-repeat,
    radial-gradient(circle, #586e56 0 3px, transparent 4px);
}

.inside-scene.is-generating .card-inside::before {
  display: none;
}

.personalization-label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
  padding: 14px 16px;
  color: #24342f;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.86), rgba(250, 238, 220, 0.74)),
    #fff9f3;
  border: 1px solid rgba(207, 197, 183, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(33, 39, 34, 0.07);
}

.label-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #fff5ee;
  border: 1px solid rgba(244, 90, 70, 0.18);
  border-radius: 6px;
}

.label-mark img {
  width: 42px;
  height: auto;
}

.label-content {
  min-width: 0;
}

.label-content strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.label-content dl {
  display: grid;
  /* Interest is the only cell that holds a list, and at four ingredients an
     even fifth of the row broke every detail across two lines. Give it the
     width the others do not need. */
  grid-template-columns:
    minmax(74px, 0.78fr) minmax(80px, 0.86fr) minmax(148px, 1.95fr)
    minmax(92px, 1fr) minmax(78px, 0.88fr);
  gap: 0;
  margin: 0;
  text-align: left;
}

.ingredient-part {
  display: inline-block;
}

.personalization-label.is-classic-path .interest-label-item {
  display: none;
}

.personalization-label.is-classic-path .label-content dl {
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

.label-content div {
  display: grid;
  justify-items: start;
  align-content: start;
  min-width: 0;
  padding: 0 12px;
  text-align: left;
  border-left: 1px solid rgba(207, 197, 183, 0.74);
}

.label-content div:first-child {
  padding-left: 0;
  border-left: 0;
}

.label-content dt,
.label-content dd {
  margin: 0;
}

.label-content dt {
  color: #6e7672;
  font-size: 11.5px;
  font-weight: 760;
}

.label-content dd {
  justify-self: start;
  max-width: 100%;
  color: #1e2e29;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}

.personalization-label p {
  grid-column: 2 / -1;
  justify-self: start;
  margin: 0;
  padding-left: 0;
  color: var(--coral-dark);
  border-left: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  white-space: normal;
}

.side-rail {
  display: grid;
  gap: 16px;
}

.action-card,
.summary-card,
.admin-card {
  padding: 20px;
}

.rail-title {
  margin-bottom: 16px;
}

.icon-bubble {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.icon-bubble svg {
  width: 19px;
  height: 19px;
}

.icon-bubble.coral {
  color: var(--coral);
  background: var(--coral-soft);
}

.action-card h2 span {
  display: block;
}

.action-title-generating {
  display: none !important;
}

.is-generating-preview .action-title-default {
  display: none !important;
}

.is-generating-preview .action-title-generating {
  display: block !important;
}

.icon-bubble.blue {
  color: #3d6875;
  background: var(--blue-soft);
}

.icon-bubble.gray {
  color: #53615d;
  background: #f1eee7;
}

.action-card .action-copy {
  margin-bottom: 18px;
  color: #505b56;
  font-size: 16px;
  line-height: 1.42;
}

.action-copy-generating {
  display: none;
}

.action-card .primary-button {
  margin-bottom: 12px;
}

/* Cell 4 (founder walk, September 16, 2026): Approve went secondary in
   round 1 and lost the primary-only bottom margin, leaving a 2px seam to
   the calendar module. Same air as between the rail cards. */
.action-card .approve-button {
  margin-bottom: 14px;
}

#scheduleButton {
  display: none;
}

.is-generating-preview .action-card {
  border-color: rgba(244, 90, 70, 0.18);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px rgba(244, 90, 70, 0.05);
}

.is-generating-preview .action-copy-default {
  display: none;
}

.is-generating-preview .action-copy-generating {
  display: grid;
}

.is-generating-preview .approve-button {
  cursor: wait;
  opacity: 0.58;
}

.calendar-save-module {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(250, 239, 226, 0.76)),
    #fff9f3;
  border: 1px solid rgba(222, 203, 181, 0.82);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.calendar-save-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.calendar-save-heading svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 10px;
}

.calendar-save-heading strong,
.calendar-save-heading span {
  display: block;
}

.calendar-title-generating {
  display: none !important;
}

.is-generating-preview .calendar-title-default {
  display: none !important;
}

.is-generating-preview .calendar-title-generating {
  display: block !important;
}

.calendar-save-heading strong {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.05;
}

.calendar-save-heading span {
  margin-top: 4px;
  color: #68756f;
  font-size: 14px;
  line-height: 1.35;
}

.calendar-save-module label {
  display: grid;
  gap: 7px;
}

.calendar-save-module label > span {
  color: #33423d;
  font-size: 12.5px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-save-module input,
.calendar-save-module select {
  min-height: 44px;
  background-color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
}

.calendar-save-button {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

.calendar-save-button svg {
  width: 18px;
  height: 18px;
}

.calendar-save-status {
  margin: -2px 0 0;
  color: #748078;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.35;
}

.calendar-save-module.is-saved {
  border-color: rgba(17, 135, 62, 0.24);
}

.calendar-save-module.is-saved .calendar-save-status {
  color: #157347;
}

.summary-card dl,
.admin-card dl {
  display: grid;
  gap: 13px;
}

.summary-card dl div,
.admin-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

dt {
  color: #34423d;
  font-size: 15px;
  font-weight: 650;
}

dd {
  margin: 0;
  color: #121a17;
  font-size: 16px;
  font-weight: 730;
  text-align: right;
}

.summary-card dd {
  font-size: 17.5px;
}

.included {
  color: var(--green);
}

.total-row {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.total-row dt,
.total-row dd {
  color: #121a17;
  font-size: 21px;
  font-weight: 760;
}

.postage-note {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 13px;
  color: #1f352c;
  background: var(--sage);
  border: 1px solid #c7d9cc;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 680;
}

.postage-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.postage-note span {
  flex: 1;
}

.order-page {
  padding-top: 10px;
}

.order-progress {
  display: grid;
  grid-template-columns: auto 82px auto 82px auto 82px auto;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: #6d746f;
  font-size: 16px;
  font-weight: 650;
}

.order-progress span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.order-progress strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #24332f;
  background: #fffdfa;
  border: 1px solid #d7cec2;
  border-radius: 50%;
  font-size: 17px;
}

.order-progress i {
  height: 1px;
  background: #cfc6b9;
}

.order-progress .is-done {
  color: var(--ink);
}

.order-progress .is-done strong {
  color: #ffffff;
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}

.order-progress .is-current {
  color: var(--coral);
}

.order-progress .is-current strong {
  color: #ffffff;
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 10px 24px rgba(255, 81, 63, 0.22);
}

.order-hero {
  margin-bottom: 20px;
}

.order-hero h1 {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 58px;
  line-height: 0.98;
}

.order-hero p {
  margin-top: 8px;
  color: #25332e;
  font-size: 17.5px;
}

.order-grid-v2 {
  display: grid;
  /* Sep 7, 2026: the three columns share the width. The old 400px + 470px +
     382px + gaps demanded 1,316px and clipped the Order Summary (and the $13
     total) off the right edge on every laptop between 1241 and ~1400 wide. */
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.order-grid-v2 > * {
  min-width: 0;
}

.order-panel {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid #e1d8cc;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.order-panel h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}

.order-panel h2 svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.your-card-panel,
.delivery-panel,
.order-total-panel,
.next-panel {
  padding: 22px 20px;
}

.order-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 432px;
  margin-top: 18px;
  padding: 18px;
  overflow: hidden;
  background: #f6f1e8;
  border-radius: 7px;
}

.order-card-scene {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 468px;
  object-fit: contain;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 248, 232, 0.9), transparent 54%),
    #f6f1e8;
  box-shadow: 0 18px 32px rgba(15, 42, 36, 0.12);
}

.order-envelope-visual {
  position: absolute;
  left: 50px;
  top: 45px;
  width: 230px;
  height: 170px;
  background:
    linear-gradient(145deg, transparent 49%, rgba(255, 255, 255, 0.14) 50%, transparent 51%),
    linear-gradient(35deg, transparent 49%, rgba(0, 0, 0, 0.14) 50%, transparent 51%),
    #344f40;
  box-shadow: 0 18px 28px rgba(29, 43, 36, 0.2);
  transform: rotate(-7deg);
}

.order-envelope-visual i {
  position: absolute;
  left: 38px;
  bottom: 30px;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 239, 192, 0.7), transparent 32%),
    #b87931;
  border: 4px solid rgba(122, 70, 25, 0.35);
  border-radius: 50%;
}

.order-card-cover {
  position: absolute;
  left: 126px;
  top: 16px;
  z-index: 2;
  width: 164px;
  height: 230px;
  overflow: hidden;
  color: #e04935;
  background: #f9efe4;
  box-shadow: 0 18px 28px rgba(69, 44, 35, 0.22);
  text-align: center;
}

.order-card-cover img {
  position: absolute;
  inset: auto 0 25px;
  width: 100%;
  height: 104px;
  object-fit: cover;
  opacity: 0.72;
}

.order-card-cover strong,
.order-card-cover small,
.order-card-cover em {
  position: relative;
  z-index: 1;
  display: block;
}

.order-card-cover strong {
  margin-top: 29px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.order-card-cover small {
  margin-top: 8px;
  color: #493b32;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.order-card-cover em {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  color: #2c2824;
  font-size: 11.5px;
  font-style: normal;
}

.order-card-details {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.order-card-details div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #e0d8cd;
}

.order-card-details dt {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.order-card-details dd {
  color: #25332e;
  font-size: 16px;
  font-weight: 650;
  text-align: right;
}

.order-card-details em {
  font-style: italic;
  font-weight: 500;
}

.order-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid #cfc6b9;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
}

.order-edit-button svg {
  width: 18px;
  height: 18px;
}

.delivery-panel > p {
  margin: 8px 0 20px;
  color: #54605b;
  font-size: 16px;
}

.delivery-choice-list {
  display: grid;
  gap: 10px;
}

.delivery-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 70px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 98px;
  padding: 18px 18px;
  background: #fffdfa;
  border: 1px solid #ded6ca;
  border-radius: 7px;
}

.delivery-choice-card.is-selected {
  border-color: var(--coral);
  box-shadow: inset 0 0 0 1px rgba(255, 81, 63, 0.2);
}

.delivery-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-radio {
  width: 20px;
  height: 20px;
  border: 1.5px solid #53605a;
  border-radius: 50%;
}

.delivery-choice-card.is-selected .choice-radio {
  border: 5px solid var(--coral);
}

.choice-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 58px;
  background: #f6f1ea;
  border-radius: 7px;
}

.choice-art svg {
  width: 30px;
  height: 30px;
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-choice-card strong,
.delivery-choice-card small {
  display: block;
}

.delivery-choice-card strong {
  color: var(--ink);
  font-size: 17.5px;
}

.delivery-choice-card small {
  margin-top: 7px;
  color: #4f5c56;
  font-size: 16px;
  line-height: 1.35;
}

.delivery-choice-card em {
  align-self: start;
  padding: 5px 10px;
  color: #157347;
  background: #e7f0e8;
  border-radius: 999px;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 750;
}

.print-kit-card {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 237, 209, 0.95), transparent 118px),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(247, 238, 226, 0.88));
  border: 1px solid #e4d3bf;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.print-kit-card[hidden] {
  display: none;
}

.print-kit-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
}

.print-kit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink-deep);
  background: #e3efe6;
  border-radius: 8px;
}

.print-kit-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.print-kit-card .home-eyebrow {
  margin: 0 0 4px;
  color: var(--coral);
  font-size: 11px;
}

.print-kit-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.print-kit-card p:not(.home-eyebrow) {
  margin: 7px 0 0;
  color: #4f5c56;
  font-size: 13px;
  line-height: 1.4;
}

.print-kit-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 142px;
  padding: 10px;
  border: 1px dashed #d7c6b3;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(34, 49, 43, 0.035) 0 1px, transparent 1px 12px),
    #fffdfa;
}

.kit-preview-item {
  position: relative;
  display: grid;
  grid-template-rows: 86px auto auto;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  padding: 0 8px 10px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(250, 242, 231, 0.54));
  border: 1px solid rgba(225, 212, 195, 0.74);
  border-radius: 8px;
}

.kit-preview-item img {
  display: block;
  width: calc(100% + 16px);
  height: 86px;
  margin: 0 -8px 2px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(225, 212, 195, 0.74);
  filter: saturate(0.95) contrast(1.02);
}

.kit-preview-item strong,
.kit-preview-item small {
  display: block;
  max-width: 100%;
  text-align: center;
}

.kit-preview-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.15;
}

.kit-preview-item small {
  color: #69756f;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.2;
}

.print-kit-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.print-kit-list li {
  position: relative;
  padding-left: 18px;
  color: #394741;
  font-size: 13px;
  line-height: 1.35;
}

.print-kit-list li::before {
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
  content: "";
}

.kit-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dccfbd;
  border-radius: 8px;
  cursor: pointer;
}

.kit-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kit-toggle input:checked + .choice-radio {
  border: 5px solid var(--coral);
}

.kit-toggle strong,
.kit-toggle small {
  display: block;
}

.kit-toggle strong {
  color: var(--ink);
  font-size: 16px;
}

.kit-toggle small {
  margin-top: 3px;
  color: #59645f;
  font-size: 14px;
  line-height: 1.32;
}

.kit-toggle em {
  color: var(--ink);
  font-style: normal;
  font-weight: 820;
}

@media (max-width: 760px) {
  .print-kit-visual {
    grid-template-columns: 1fr;
  }

  .kit-preview-item {
    grid-template-columns: 106px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    text-align: left;
    padding: 0 10px 0 0;
  }

  .kit-preview-item img {
    grid-row: span 2;
    width: 106px;
    height: 76px;
    margin: 0;
    border-right: 1px solid rgba(225, 212, 195, 0.74);
    border-bottom: 0;
  }

  .kit-preview-item strong,
  .kit-preview-item small {
    text-align: left;
  }
}

/* minmax(0, 1fr) on the address column and a cap on the status rail
   (August 16, 2026): the rail used to be a bare `auto`, so a longer
   status chip won the width argument and squeezed the address into a
   ragged one-word-per-line column. The address is the content; the
   chip is the annotation, and it now yields rather than the reverse. */
.recipient-address-block {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid #dcd3c7;
}

.recipient-address-block > svg {
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.recipient-address-block h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18.5px;
}

.recipient-address-block address {
  color: #38443f;
  font-style: normal;
  font-size: 16px;
  line-height: 1.45;
}

.recipient-address-block button {
  padding: 0;
  color: #158647;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  /* On mobile this button becomes a full-width grid item (single-column
     layout below), and a <button>'s default centered text then reads as
     the label floating mid-row instead of sitting with the address. */
  text-align: left;
}

/* The edit control and its status chip are one unit ("here's the address
   control, here's whether it's set"), so they live in their own compact
   column instead of two grid items auto-placed a row apart. Without this,
   the chip's row height is set by whatever the ADDRESS TEXT column needs
   (which can wrap to several lines), stranding the chip far below the
   button it belongs with (August 2026 founder catch: "floating" on wide
   viewports where the address column is narrow enough to wrap). */
.recipient-address-actions {
  grid-column: 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  /* Right-aligned on desktop: the link and the chip share the card's
     right edge and read as one tidy status rail, instead of hanging
     off a ragged left edge in the middle of the whitespace. */
  align-items: flex-end;
  gap: 10px;
  /* Hard ceiling so no future status wording can starve the address
     column again. Past this the chip wraps inside the rail. */
  max-width: 190px;
}

/* Optically seat the link on the heading's first line: the 18px serif
   cap height sits lower than a 14px label pinned to the same grid top. */
.recipient-address-actions button {
  padding-top: 3px;
}

.recipient-address-actions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #1e783f;
  background: #dfeee3;
  border-radius: 999px;
  font-size: 16px;
}

.recipient-address-block span svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border: 1px solid #1e783f;
  border-radius: 50%;
}

/* ---- The missing address is the next step, not a status (design review
   item 6, September 15, 2026). No chip while it is missing: the coral
   "Add Shelby's address" button carries the state. Saved keeps the earned
   green chip beside a quiet Edit link. */
.recipient-address-block.is-missing .recipient-address-actions {
  max-width: none;
}

.recipient-address-block.is-missing .recipient-address-actions span {
  display: none;
}

.recipient-address-block.is-missing .recipient-address-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--coral-dark, #d64533);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  background: #fff;
  border: 1.5px solid var(--coral);
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.recipient-address-block.is-missing .recipient-address-actions button:hover,
.recipient-address-block.is-missing .recipient-address-actions button:focus-visible {
  background: var(--coral-soft, #fff0ec);
}

/* The pay or continue button waits, muted but alive, until the envelope
   has both addresses on a mailed route. A tap still opens the form. */
.payment-button.is-waiting {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--coral);
  box-shadow: none;
  opacity: 0.72;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.payment-button.is-waiting:hover,
.payment-button.is-waiting:focus-visible {
  opacity: 0.92;
  background: var(--coral-soft, #fff0ec);
}

.payment-button {
  width: 100%;
  min-height: 42px;
  margin-top: 22px;
  font-size: 17.5px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  color: #54605b;
  font-size: 14px;
}

.secure-note svg {
  width: 16px;
  height: 16px;
}

.order-side-stack {
  display: grid;
  gap: 24px;
}

.order-total-panel dl {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-total-panel dl div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.order-total-panel dt,
.order-total-panel dd {
  color: var(--ink);
  font-size: 16px;
}

.order-total-panel dd {
  font-weight: 800;
  text-align: right;
}

.order-total-panel .total-row {
  margin-top: 4px;
  padding-top: 17px;
}

.order-total-panel .total-row dt,
.order-total-panel .total-row dd {
  font-size: 22px;
}

.order-total-panel .postage-note {
  margin-top: 18px;
  padding: 14px;
}

.next-panel h2 {
  margin-bottom: 20px;
}

.next-panel ol {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: next-step;
}

.next-panel li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  counter-increment: next-step;
}

.next-panel li > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--ink-deep);
  background: #e4efe6;
  border-radius: 50%;
}

.next-panel li > span svg {
  width: 28px;
  height: 28px;
}

.next-panel li::after {
  position: absolute;
  left: 47px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: var(--ink-deep);
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 800;
  content: counter(next-step);
}

.next-panel strong,
.next-panel small {
  display: block;
}

.next-panel strong {
  color: var(--ink);
  font-size: 16px;
}

.next-panel small {
  margin-top: 4px;
  color: #55615c;
  font-size: 14px;
  line-height: 1.35;
}

.order-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  padding: 20px 28px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid #e1d8cc;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.order-trust-strip article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 0 26px;
}

.order-trust-strip article + article {
  border-left: 1px solid #ddd4c8;
}

.order-trust-strip span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--ink-deep);
  background: #e4efe6;
  border-radius: 50%;
}

.order-trust-strip svg {
  width: 28px;
  height: 28px;
}

.order-trust-strip strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
}

.order-trust-strip p {
  margin-top: 4px;
  color: #4f5c56;
  font-size: 15px;
  line-height: 1.35;
}

.gallery-page {
  margin: calc(clamp(30px, 3.8vw, 58px) * -1) calc(clamp(18px, 3vw, 42px) * -1) -58px;
  min-height: calc(100vh - 82px);
  padding: clamp(52px, 5vw, 82px) 0 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.8), transparent 30rem),
    linear-gradient(180deg, rgba(255, 253, 250, 0.92), rgba(255, 248, 240, 0.76)),
    var(--paper);
}

.gallery-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 120px, 1320px);
  margin: 0 auto 28px;
}

.gallery-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(58px, 5.2vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.gallery-hero p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.45;
}

.gallery-motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 184px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(207, 197, 183, 0.82);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(33, 39, 34, 0.08);
  font-size: 16px;
  font-weight: 800;
}

.gallery-motion-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  stroke-width: 2.2;
}

.gallery-motion-toggle i {
  width: 7px;
  height: 7px;
  margin-left: auto;
  background: #19a65b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25, 166, 91, 0.1);
}

.gallery-motion-toggle.is-paused i {
  background: var(--muted);
  box-shadow: none;
}

.gallery-filter-bar {
  position: sticky;
  top: 83px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 120px, 1320px);
  margin: 0 auto 24px;
  padding: 8px 0;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.96), rgba(255, 249, 243, 0.74));
  backdrop-filter: blur(16px) saturate(150%);
  scrollbar-width: none;
}

.gallery-filter-bar::-webkit-scrollbar {
  display: none;
}

.gallery-filter-bar button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
  color: #2c342f;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(207, 197, 183, 0.9);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 750;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.gallery-filter-bar button:hover,
.gallery-filter-bar button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(244, 90, 70, 0.5);
}

.gallery-filter-bar button.is-active {
  color: var(--coral-dark);
  background: var(--coral-soft);
  border-color: rgba(244, 90, 70, 0.38);
}

.gallery-wall-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery-wall-shell::before,
.gallery-wall-shell::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(9vw, 120px);
  pointer-events: none;
  content: "";
}

.gallery-wall-shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), rgba(255, 249, 243, 0));
}

.gallery-wall-shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), rgba(255, 249, 243, 0));
}

.gallery-wall {
  display: grid;
  gap: 18px;
  padding: 0 0 34px;
}

.gallery-row {
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation: gallery-marquee 82s linear infinite;
}

.gallery-row:nth-child(2) .gallery-track {
  animation-duration: 96s;
  animation-direction: reverse;
}

.gallery-row:nth-child(3) .gallery-track {
  animation-duration: 88s;
}

.gallery-row:nth-child(4) .gallery-track {
  animation-duration: 104s;
  animation-direction: reverse;
}

.gallery-wall.is-paused .gallery-track,
.gallery-wall:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-card {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid rgba(207, 197, 183, 0.78);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(56, 46, 36, 0.12);
}

.gallery-card.is-cover {
  width: clamp(196px, 16vw, 270px);
  aspect-ratio: 2 / 3;
}

.gallery-card.is-spread {
  width: clamp(330px, 29vw, 470px);
  aspect-ratio: 3 / 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 9px 11px;
  color: #1e2b26;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(207, 197, 183, 0.7);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(33, 39, 34, 0.09);
}

.gallery-card figcaption span,
.gallery-card figcaption strong,
.gallery-card figcaption small {
  display: block;
}

.gallery-card figcaption span {
  color: var(--coral-dark);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.gallery-card figcaption strong {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.15;
}

.gallery-card figcaption small {
  margin-top: 3px;
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.2;
}

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

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
  }
}

.fulfillment-page {
  padding-top: 10px;
}

.fulfillment-progress {
  grid-template-columns: auto 68px auto 68px auto 68px auto;
}

.fulfillment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.fulfillment-hero h1 {
  max-width: 760px;
  margin-top: 10px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.98;
}

.fulfillment-hero p:not(.home-eyebrow):not(.brand-script-note) {
  max-width: 650px;
  margin-top: 10px;
  color: #3f4c47;
  font-size: 17.5px;
  line-height: 1.5;
}

.fulfillment-status-card {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid #e1d8cc;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.fulfillment-status-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
}

.fulfillment-status-card p {
  margin-top: 5px;
  color: #53605a;
  font-size: 15px;
  line-height: 1.4;
}

.fulfillment-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.86), rgba(244, 231, 216, 0.44)),
    #fff9f3;
  border: 1px solid rgba(207, 197, 183, 0.82);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.fulfillment-mode-rail {
  position: sticky;
  top: 92px;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 560px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 231, 216, 0.58)),
    #f8efe3;
  border: 1px solid rgba(207, 197, 183, 0.72);
  border-radius: 14px;
}

.fulfillment-mode-rail > span {
  display: block;
  margin: 0 8px 8px;
  color: var(--coral);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fulfillment-mode-rail button {
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 11px 12px;
  text-align: left;
  color: #34433e;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.fulfillment-mode-rail button.is-active {
  color: var(--coral-dark);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(244, 90, 70, 0.2);
  box-shadow: 0 5px 18px rgba(33, 39, 34, 0.055);
}

.fulfillment-mode-rail strong {
  color: currentColor;
  font-size: 16px;
  font-weight: 850;
}

.fulfillment-mode-rail small {
  color: #66736d;
  font-size: 14px;
  line-height: 1.3;
}

.fulfillment-panel {
  display: none;
}

.fulfillment-panel.is-active {
  display: block;
}

.consumer-print-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.consumer-print-hero h2 {
  max-width: 760px;
  margin-top: 8px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
}

.consumer-print-hero p:not(.home-eyebrow) {
  max-width: 680px;
  margin-top: 12px;
  color: #48564f;
  font-size: 16px;
  line-height: 1.55;
}

.consumer-ready-card {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  background: #fffdfa;
  border: 1px solid #e1d8cc;
  border-radius: 8px;
}

.consumer-ready-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.05;
}

.consumer-ready-card p {
  margin-top: 6px;
  color: #59675f;
  font-size: 15px;
  line-height: 1.45;
}

.consumer-print-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.1fr) minmax(320px, 0.95fr);
  gap: 22px;
  margin-top: 22px;
}

.consumer-download-panel,
.consumer-instructions-panel,
.consumer-status-panel {
  padding: 24px;
}

.consumer-download-panel p {
  margin: 10px 0 20px;
  color: #53605a;
  font-size: 16px;
  line-height: 1.5;
}

.consumer-download-panel .primary-button {
  width: 100%;
  min-height: 56px;
}

.consumer-download-panel .primary-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
  pointer-events: none;
}

/* The wait, made visible (September 5, 2026): while the home PDF is being
   laid out the button reads "Preparing your PDF…" at a calmer opacity with
   its icon breathing, and a short line underneath names the wait. A build
   that failed reads as a problem, not as a button that never woke up. */
.consumer-download-panel .primary-button.is-preparing {
  opacity: 0.74;
}

.consumer-download-panel .primary-button.is-preparing svg {
  animation: pah-prep-breathe 1.4s ease-in-out infinite;
}

.consumer-download-panel .primary-button.is-failed {
  opacity: 0.62;
}

.consumer-download-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 0 !important;
  color: #53605a !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-wrap: pretty;
}

.consumer-download-note::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.consumer-download-note.is-preparing::before {
  animation: pah-prep-pulse 1.4s ease-in-out infinite;
}

.consumer-download-note.is-problem::before {
  background: #c0392b;
}

@keyframes pah-prep-breathe {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(2px);
    opacity: 0.55;
  }
}

@keyframes pah-prep-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consumer-download-panel .primary-button.is-preparing svg,
  .consumer-download-note.is-preparing::before {
    animation: none;
  }
}

.consumer-instructions-panel ol,
.consumer-status-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.consumer-instructions-panel li {
  padding: 14px 0;
  border-top: 1px solid #e0d8cd;
}

.consumer-instructions-panel strong,
.consumer-instructions-panel span,
.consumer-status-list strong,
.consumer-status-list small {
  display: block;
}

.consumer-instructions-panel strong {
  color: var(--ink);
  font-size: 16px;
}

.consumer-instructions-panel span {
  margin-top: 5px;
  color: #59675f;
  font-size: 15px;
  line-height: 1.45;
}

.consumer-status-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.consumer-status-list li > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  background: #f5b434;
  border: 2px solid #fff6e7;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(245, 180, 52, 0.35);
}

.consumer-status-list li.is-done > span {
  background: #28b46e;
  box-shadow: 0 0 0 1px rgba(40, 180, 110, 0.35);
}

.consumer-status-list strong,
.consumer-status-list small {
  grid-column: 2;
}

.consumer-status-list strong {
  color: var(--ink);
  font-size: 16px;
}

.consumer-status-list small {
  margin-top: 4px;
  color: #66736d;
  font-size: 14px;
  line-height: 1.4;
}

.fulfillment-grid {
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(520px, 1.15fr) 340px;
  gap: 28px;
  align-items: start;
}

.fulfillment-artwork-panel,
.packet-builder-panel,
.packet-manifest-panel,
.packet-reality-panel,
.printer-instructions-panel {
  padding: 22px 20px;
}

.fulfillment-artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fulfillment-artwork-grid figure {
  margin: 0;
  padding: 12px;
  background: #f8f1e8;
  border: 1px dashed #d8cdbf;
  border-radius: 7px;
}

.fulfillment-artwork-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--coral);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fulfillment-artwork-grid img {
  width: 100%;
  aspect-ratio: 0.74;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 248, 232, 0.9), transparent 54%),
    #f6f1e8;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(43, 34, 25, 0.12);
}

.fulfillment-card-summary {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.fulfillment-card-summary div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid #e0d8cd;
}

.fulfillment-card-summary dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fulfillment-card-summary dd {
  color: #263530;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.packet-builder-copy {
  max-width: 620px;
  margin: 10px 0 18px;
  color: #53605a;
  font-size: 16px;
  line-height: 1.5;
}

.print-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.print-spec-grid article {
  min-height: 82px;
  padding: 14px;
  background: #fff8f3;
  border: 1px solid #ead8ce;
  border-radius: 7px;
}

.print-spec-grid span {
  display: block;
  color: var(--coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-spec-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.05;
}

.packet-checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.packet-checklist li {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 13px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid #e0d8cd;
}

.packet-checklist strong,
.packet-checklist small {
  display: block;
  grid-column: 2;
}

.packet-checklist strong {
  color: var(--ink);
  font-size: 16px;
}

.packet-checklist small {
  margin-top: 4px;
  color: #65716b;
  font-size: 14px;
  line-height: 1.35;
}

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

.fulfillment-actions button,
.fulfillment-actions .secondary-button {
  min-height: 50px;
}

.fulfillment-actions button:disabled,
.fulfillment-actions .secondary-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.fulfillment-side-stack {
  display: grid;
  gap: 20px;
}

.packet-manifest-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.packet-manifest-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #34413c;
  font-size: 15px;
  font-weight: 700;
}

.packet-manifest-panel li::before {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--coral);
  border-radius: 4px;
  content: "";
}

.packet-reality-panel p {
  margin-top: 14px;
  color: #53605a;
  font-size: 16px;
  line-height: 1.5;
}

.packet-reality-panel a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--coral);
  font-size: 15px;
  font-weight: 850;
}

.printer-instructions-panel {
  margin-top: 28px;
}

.printer-instructions-panel pre {
  min-height: 190px;
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  color: #263530;
  background:
    linear-gradient(rgba(15, 42, 36, 0.035) 0 1px, transparent 1px 28px),
    #fffaf4;
  border: 1px solid #e1d8cc;
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-card {
  font-size: 14px;
}

.admin-card dl {
  gap: 0;
}

.admin-card dl div {
  grid-template-columns: minmax(98px, 0.48fr) 1fr;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-card dd {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  color: #24332e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}

.admin-card dd svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.status-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 1px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.status-dot.amber {
  background: var(--amber);
}

.status-dot.green {
  background: #20a45a;
}

.packet-row {
  align-items: center;
}

.packet-row button {
  min-height: 36px;
  padding: 0 14px;
  color: #25332e;
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 720;
}

/* The Re-roll / Approve row lives directly under the card on every device
   (design review item 1, September 15, 2026). It used to be display:none
   above 900px, which left the desktop preview column with no Approve at
   all; the rail's step 4 keeps a quiet mirror. */
.preview-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  margin-top: 14px;
}

.preview-actions button {
  min-height: 46px;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}

.preview-actions .preview-approve {
  background: #1f7a4d;
  border-color: #1f7a4d;
  box-shadow: 0 14px 28px rgba(31, 122, 77, 0.22);
}

.preview-actions.is-arriving {
  animation: approve-row-in 260ms ease both;
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

.approve-caption {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.approve-caption[hidden] {
  display: none;
}

.is-approved .approve-button,
.is-approved .preview-approve {
  color: #fff;
  border-color: #158647;
  background: #158647;
  box-shadow: 0 14px 28px rgba(21, 134, 71, 0.18);
}

.is-scheduled .secondary-button {
  border-color: rgba(21, 134, 71, 0.45);
}

/* Calendar page v2: matched to latest Image 2.0 calendar references */
.calendar-page-v2 {
  --calendar-card: rgba(255, 253, 248, 0.92);
}

.calendar-page-v2 .calendar-topline {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(650px, 1.08fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-title-block h1 {
  max-width: 680px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.95;
}

.calendar-title-block p {
  max-width: 650px;
  margin-top: 14px;
  color: #26332f;
  font-size: 17.5px;
  line-height: 1.55;
}

.calendar-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 110px;
  padding: 18px 22px;
  background: var(--calendar-card);
  border: 1px solid rgba(207, 197, 183, 0.72);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.calendar-stat-strip article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 0 18px;
}

.calendar-stat-strip article + article {
  border-left: 1px solid rgba(207, 197, 183, 0.72);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--coral);
  background: #fffdfa;
  border: 1px solid #e9dfd5;
  border-radius: 12px;
}

.stat-icon svg {
  width: 25px;
  height: 25px;
}

.stat-icon.mark-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.calendar-stat-strip strong,
.calendar-stat-strip span,
.calendar-stat-strip button {
  display: block;
}

.calendar-stat-strip strong {
  color: #18231f;
  font-size: 28px;
  line-height: 1;
}

.calendar-stat-strip span {
  margin-top: 5px;
  color: #5c6963;
  font-size: 14px;
  line-height: 1.25;
}

.calendar-stat-strip button {
  margin-top: 9px;
  padding: 0;
  color: var(--coral);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.calendar-step-rail {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr 32px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px 24px;
  background: var(--calendar-card);
  border: 1px solid rgba(207, 197, 183, 0.72);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.calendar-step-rail article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.calendar-step-rail article span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--coral);
  background: #fffdfa;
  border: 1px solid #e7ddd2;
  border-radius: 50%;
}

.calendar-step-rail article svg {
  width: 22px;
  height: 22px;
}

.calendar-step-rail strong,
.calendar-step-rail small {
  display: block;
}

.calendar-step-rail strong {
  color: var(--ink);
  font-size: 16px;
}

.calendar-step-rail small {
  margin-top: 3px;
  color: #6f7a74;
  font-size: 14px;
}

.calendar-step-rail > i {
  height: 1px;
  background: #9eaaa4;
  position: relative;
}

.calendar-step-rail > i::after {
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #9eaaa4;
  border-right: 1px solid #9eaaa4;
  transform: rotate(45deg);
  content: "";
}

.calendar-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.calendar-left-column,
.calendar-right-column {
  display: grid;
  gap: 14px;
}

.month-card-v2,
.occasion-detail-v2,
.upcoming-card-v2,
.credit-card-v2,
.fulfillment-card-v2 {
  background: var(--calendar-card);
  border: 1px solid rgba(207, 197, 183, 0.72);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.month-card-v2 {
  padding: 14px 16px 16px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-nav-controls button,
.month-title-button {
  min-height: 34px;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid #ded4c8;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
}

.calendar-nav-controls button {
  padding: 0 14px;
}

.calendar-nav-controls button:first-child,
.calendar-nav-controls button:nth-child(2) {
  width: 38px;
  padding: 0;
}

.calendar-nav-controls svg,
.month-title-button svg {
  width: 17px;
  height: 17px;
}

.month-jump {
  position: relative;
  justify-self: center;
}

.month-title-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
}

.month-title-button[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 74, 0.12);
}

.month-jump-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 6px;
  width: 292px;
  padding: 8px;
  background: #fffdfa;
  border: 1px solid #ded4c8;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(41, 30, 19, 0.16);
  transform: translateX(-50%);
}

.month-jump-menu[hidden] {
  display: none;
}

.month-jump-menu button {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--ink);
  text-align: left;
  background: #fff8ef;
  border: 1px solid transparent;
  border-radius: 7px;
}

.month-jump-menu button:hover,
.month-jump-menu button.is-selected {
  background: rgba(255, 92, 74, 0.1);
  border-color: rgba(255, 92, 74, 0.34);
}

.month-jump-menu span {
  font-size: 14px;
  font-weight: 800;
}

.month-jump-menu small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.month-card-v2 .calendar-weekdays {
  gap: 0;
  color: #2a342f;
  border-top: 1px solid #ded6cb;
  border-left: 1px solid #ded6cb;
  font-size: 12.5px;
  letter-spacing: 0;
}

.month-card-v2 .calendar-weekdays span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border-right: 1px solid #ded6cb;
  border-bottom: 1px solid #ded6cb;
}

.calendar-grid-v2 {
  gap: 0;
  margin-top: 0;
  border-left: 1px solid #ded6cb;
}

.calendar-grid-v2 .calendar-day {
  position: relative;
  min-height: 89px;
  padding: 10px;
  background: rgba(255, 253, 248, 0.68);
  border: 0;
  border-right: 1px solid #ded6cb;
  border-bottom: 1px solid #ded6cb;
  border-radius: 0;
  box-shadow: none;
}

.calendar-grid-v2 .calendar-day.is-muted .day-number {
  color: #a3a8a4;
}

.calendar-grid-v2 .calendar-day.has-occasion:hover,
.calendar-grid-v2 .calendar-day.is-selected {
  z-index: 2;
  background: #fffaf6;
  border-color: var(--coral);
  box-shadow: inset 0 0 0 2px var(--coral);
  transform: none;
}

.calendar-grid-v2 .day-number {
  color: #111b18;
  font-size: 17px;
  font-weight: 760;
}

.calendar-grid-v2 .occasion-chip {
  gap: 2px;
  width: min(132px, 100%);
  margin: 13px auto 0;
  padding: 10px 11px;
  background: #f1eadf;
  border: 1px solid #dfd3c5;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(31, 37, 32, 0.08);
}

.calendar-grid-v2 .occasion-chip strong {
  display: block;
  color: #202c28;
  font-size: 12.5px;
  line-height: 1.2;
}

.calendar-grid-v2 .occasion-chip strong::before {
  display: none;
}

.calendar-grid-v2 .occasion-chip span {
  color: #4f5b56;
  font-size: 11.5px;
}

.calendar-grid-v2 .mini-status {
  min-height: 19px;
  margin-top: 5px;
  padding: 0 8px;
  font-size: 11.5px;
}

.calendar-grid-v2 .tone-green .occasion-chip,
.calendar-grid-v2 .tone-multi .occasion-chip {
  background: #e7f0e8;
  border-color: #d5e2d8;
}

.calendar-grid-v2 .tone-amber .occasion-chip,
.calendar-grid-v2 .tone-planned .occasion-chip {
  background: #f5ead8;
  border-color: #e7d7be;
}

.calendar-grid-v2 .tone-coral .occasion-chip {
  background: #fff0ec;
  border-color: #ffd1c8;
}

/* =============================================================
   STARTER EXAMPLE CARDS (Slice 1, July 2026)
   A quiet, ghosted "Example" label wherever an example occasion
   appears, plus the sample banner + delete affordances. All kept
   deliberately quieter than the status pills so it reads as a
   system label, not a status.
   ============================================================= */

/* Corner tag on an example day cell. Absolutely positioned on the
   (already position:relative) day button so it never disrupts the
   occasion-chip grid. */
.calendar-grid-v2 .calendar-day .example-flag {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-strong);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.35;
  pointer-events: none;
}

/* Two occasions on one day. A real date is never shifted to a free cell to
   dodge the clash, so the cell has to admit there is more behind it. */
.calendar-day-more {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted-strong);
  pointer-events: none;
}

/* =============================================================
   CARDS ON THE CALENDAR (round 2c, August 2026)
   A second, quieter layer under the occasion chip: a paid card is
   the record of what was ordered for that day, a dated draft is
   something to pick back up. Kept deliberately below the volume
   of the status pills — a mini card front and one word.
   ============================================================= */
.calendar-card-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
  pointer-events: none;
}

.calendar-card-mark img {
  width: 16px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #dfd3c5;
  box-shadow: 0 2px 6px rgba(31, 37, 32, 0.14);
  background: #f1eadf;
}

.calendar-card-mark.is-sent img {
  border-color: #cfe0d3;
}

.calendar-card-mark.is-draft img {
  border-color: #e7d7be;
}

.calendar-card-mark-word {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.calendar-card-mark.is-sent .calendar-card-mark-word {
  color: #3f7052;
}

.calendar-card-mark.is-draft .calendar-card-mark-word {
  color: #8a6a2f;
}

.calendar-card-mark.is-cancelled img {
  border-color: #e0cdc9;
  filter: grayscale(0.5);
  opacity: 0.75;
}

.calendar-card-mark.is-cancelled .calendar-card-mark-word {
  color: #8d5049;
}

.calendar-card-mark-more {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-strong);
}

/* The selected day's cards, under the grid. On a phone this strip is the
   whole story (the popover never opens there). */
.calendar-day-cards {
  margin-top: 12px;
  padding: 11px 13px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid #ded6cb;
  border-radius: 10px;
}

.calendar-day-cards[hidden] {
  display: none;
}

.calendar-day-cards-head {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.calendar-day-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
}

.calendar-day-card + .calendar-day-card {
  border-top: 1px dashed #ded6cb;
}

.calendar-day-card img {
  width: 30px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dfd3c5;
  box-shadow: 0 3px 8px rgba(31, 37, 32, 0.12);
  background: #f1eadf;
}

.calendar-day-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.calendar-day-card-text strong {
  font-size: 14.5px;
  color: #202c28;
  line-height: 1.25;
}

.calendar-day-card-text span {
  font-size: 12px;
  color: #4f5b56;
}

.calendar-day-card.is-sent .calendar-day-card-text span {
  color: #3f7052;
  font-weight: 650;
}

.calendar-day-card.is-cancelled .calendar-day-card-text span {
  color: #8d5049;
  font-weight: 650;
}

.calendar-day-card-resume {
  margin-left: auto;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--coral-dark, #de4634);
  background: transparent;
  border: 1px solid var(--coral, #f45a46);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.calendar-day-card-resume:hover {
  background: #fff0ec;
}

/* The popover's copy of the same rows, sized to its width. */
.calendar-popover-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ded6cb;
}

.calendar-popover-card img {
  width: 26px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dfd3c5;
  background: #f1eadf;
}

.calendar-popover-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.calendar-popover-card-text strong {
  font-size: 13px;
  color: #202c28;
  line-height: 1.25;
}

.calendar-popover-card-text span {
  font-size: 11.5px;
  color: #4f5b56;
}

.calendar-popover-card.is-sent .calendar-popover-card-text span {
  color: #3f7052;
  font-weight: 650;
}

.calendar-popover-card.is-cancelled .calendar-popover-card-text span {
  color: #8d5049;
  font-weight: 650;
}

.calendar-popover-card-resume {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* "What you sent last time": history lending context, quieter than the
   day's own cards and never with a button. */
.calendar-day-card.is-prior .calendar-day-card-text strong,
.calendar-popover-card.is-prior .calendar-popover-card-text strong {
  color: #4f5b56;
  font-weight: 650;
}

.calendar-day-card.is-prior .calendar-day-card-text span,
.calendar-popover-card.is-prior .calendar-popover-card-text span {
  color: #6a7770;
  font-weight: 400;
}

.calendar-day-card.is-prior img,
.calendar-popover-card.is-prior img {
  opacity: 0.92;
}

/* The shared ghost pill: detail panel + banner. */
.example-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-strong);
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.4;
}

/* Inline label in the "Coming Up" list. */
.example-flag-inline {
  display: inline-block;
  margin-left: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 6px;
  vertical-align: middle;
}

/* Tag inside the desktop tap popover title. */
.calendar-popover .popover-example-flag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-strong);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 7px;
  vertical-align: middle;
  white-space: nowrap;
}

/* "Sample occasions" banner under the month toolbar. */
.example-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
  padding: 9px 13px;
  background: var(--sage);
  border: 1px solid #cfe0d3;
  border-radius: 9px;
}

.example-banner-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--muted-strong);
}

.clear-examples-link {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0 0 1px;
  cursor: pointer;
  transition: color 0.16s ease;
}

.clear-examples-link:hover {
  color: var(--coral-dark);
}

/* Ghost "Remove example" button in the detail footer. */
.delete-occasion-button {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.delete-occasion-button:hover {
  color: var(--coral-dark);
  border-color: var(--coral);
  background: var(--coral-soft);
}

.clear-examples-link:focus-visible,
.delete-occasion-button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* On narrow screens the day cells are too small for the corner tag;
   the banner and detail panel still carry the "Example" label. */
@media (max-width: 640px) {
  .calendar-grid-v2 .calendar-day .example-flag {
    display: none;
  }
}

/* =============================================================
   HOLIDAY LABELS (Slice 1 follow-on, July 2026)
   A quiet handwritten holiday name in the brand hand font, shown in a
   day cell that has no occasion. Understated so a real occasion chip,
   when added, clearly takes over the cell.
   ============================================================= */
.calendar-grid-v2 .calendar-day .calendar-holiday-label {
  display: block;
  width: min(132px, 100%);
  margin: 13px auto 0;
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.08;
  color: var(--muted-strong);
  text-align: center;
  pointer-events: none;
}

.calendar-popover .popover-holiday-flag {
  font-family: var(--hand);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--coral-dark);
  margin-left: 4px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .calendar-grid-v2 .calendar-day .calendar-holiday-label {
    margin-top: 8px;
    font-size: 14.5px;
  }
}

.occasion-detail-v2 {
  display: grid;
  grid-template-columns: 294px 1fr;
  min-height: 212px;
  overflow: hidden;
}

.selected-card-art {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 214px;
  padding: 10px;
  cursor: pointer;
  background: #f7efe5;
  border-right: 1px solid #dfd5c9;
}

.selected-card-placeholder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.selected-card-placeholder figure {
  display: grid;
  gap: 8px;
  min-height: 170px;
  margin: 0;
  padding: 10px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px dashed #d6cbbc;
  border-radius: 7px;
}

.selected-card-placeholder span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.selected-card-placeholder img {
  width: 100%;
  height: 122px;
  object-fit: contain;
  object-position: center;
  background: #f6f1e8;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(43, 34, 25, 0.1);
}

.selected-card-scene {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 194px;
  object-fit: contain;
  background: #fff8ef;
  border-radius: 4px;
  box-shadow: 0 16px 30px rgba(69, 44, 35, 0.16);
}

.selected-card-art.is-placeholder .selected-card-scene,
.selected-card-art.has-approved-art .selected-card-placeholder {
  display: none;
}

.selected-card-art.has-approved-art .selected-card-scene {
  display: block;
}

.mini-valentine-card,
.modal-card-front {
  position: relative;
  overflow: hidden;
  background: #f9efe6;
  box-shadow: 0 18px 28px rgba(69, 44, 35, 0.18);
}

.mini-valentine-card {
  z-index: 2;
  width: 158px;
  aspect-ratio: 0.78;
  transform: rotate(-7deg);
}

.mini-valentine-card img,
.modal-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.mini-valentine-card span,
.modal-card-front span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18% 13%;
  color: #a33f2e;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.12;
  text-align: center;
}

.mini-envelope {
  position: absolute;
  right: 44px;
  bottom: 23px;
  width: 142px;
  height: 108px;
  background: #e9a99b;
  box-shadow: 0 15px 25px rgba(69, 44, 35, 0.14);
  transform: rotate(8deg);
}

.mini-envelope::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
    linear-gradient(35deg, transparent 49%, rgba(110, 57, 47, 0.16) 50%, transparent 51%);
  content: "";
}

.mini-envelope i {
  position: absolute;
  width: 38px;
  height: 38px;
  background: #bd8540;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 215, 145, 0.38);
}

.mini-envelope i {
  right: 16px;
  top: 36px;
}

.selected-detail-panel {
  padding: 18px 20px 16px;
}

.selected-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd4c8;
}

.selected-detail-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}

.selected-detail-header h2 svg {
  width: 24px;
  height: 24px;
  color: var(--coral);
}

.selected-detail-header .status-badge {
  margin: 0 0 0 16px;
}

.selected-detail-header button,
.see-all-button,
.manage-plan-button,
.ops-center-button {
  color: #25332e;
  background: transparent;
  border: 0;
}

.selected-detail-header button svg {
  width: 20px;
  height: 20px;
}

.selected-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 8px;
  padding: 14px 0 12px;
}

.selected-field-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: 26px;
}

.selected-field-grid span {
  color: #25332e;
  font-size: 14px;
  font-weight: 760;
}

.calendar-field-help {
  max-width: 230px;
  color: #78827c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.selected-field-grid input,
.selected-field-grid select,
.selected-field-grid textarea {
  min-height: 26px;
  padding: 0 22px 0 0;
  color: #3c4944;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #e4ddd2;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

/* Interests is the one calendar field that holds a list. As a one-line input
   a four-ingredient list ran off the end with no way to see it; as a growing
   textarea the whole list is on screen. It takes the full row so four details
   land in about two lines instead of stacking six deep in a third of it. */
.selected-field-grid .detail-interests-field {
  grid-column: 1 / -1;
}

.selected-field-grid textarea {
  overflow: hidden;
  font-family: inherit;
  line-height: 1.35;
  resize: none;
}

.selected-footer {
  display: grid;
  grid-template-columns: 1fr 130px 180px;
  gap: 10px;
  align-items: center;
}

.reminder-note {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  background: #f3eee7;
  border-radius: 8px;
  color: #394641;
  font-size: 14px;
  line-height: 1.35;
}

.reminder-note img {
  width: 48px;
  height: 36px;
  object-fit: contain;
}

.selected-footer button {
  min-height: 36px;
  font-size: 15px;
}

.selected-footer .primary-button svg {
  width: 16px;
  height: 16px;
}

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

.upcoming-card-v2,
.credit-card-v2,
.fulfillment-card-v2 {
  padding: 20px;
}

.upcoming-card-v2 .sidebar-heading,
.fulfillment-card-v2 .sidebar-heading {
  align-items: center;
  margin-bottom: 13px;
}

.upcoming-card-v2 h2,
.fulfillment-card-v2 h2 {
  font-family: var(--serif);
  font-size: 23px;
}

.upcoming-card-v2 .sidebar-heading button {
  color: var(--coral);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.upcoming-list-v2 {
  gap: 0;
  border-top: 1px solid #ddd4c8;
}

.upcoming-list-v2 .upcoming-item {
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ddd4c8;
  border-radius: 0;
}

.upcoming-list-v2 .upcoming-icon {
  display: none;
}

.upcoming-date {
  color: #1d2925;
  font-size: 16px;
  font-weight: 800;
}

.upcoming-list-v2 .upcoming-title-row {
  display: block;
}

.upcoming-list-v2 .upcoming-title-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.upcoming-list-v2 p {
  color: #5f6a64;
  font-size: 12.5px;
}

.upcoming-list-v2 .upcoming-item button {
  margin: 0;
  color: var(--coral);
  font-size: 14px;
}

.see-all-button {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px auto 0;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.see-all-button svg,
.manage-plan-button svg,
.ops-center-button svg {
  width: 15px;
  height: 15px;
}

.credit-card-v2 {
  color: #ffffff;
  background: radial-gradient(circle at 100% 0%, rgba(84, 135, 110, 0.24), transparent 28rem), #0c332b;
  border: 0;
  box-shadow: var(--shadow-lg);
}

.credit-card-v2 .credit-heading {
  margin-bottom: 20px;
}

.credit-card-v2 .credit-heading h2 {
  color: #ffffff;
  font-family: var(--serif);
  font-size: 22px;
}

.credit-card-v2 .credit-heading span {
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  font-size: 14px;
}

.credit-card-v2 .credit-stats {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
}

.credit-card-v2 .credit-stats div {
  background: transparent;
  border-radius: 0;
}

.credit-card-v2 .credit-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.credit-card-v2 .credit-stats strong {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
}

.credit-card-v2 .credit-stats span {
  font-size: 14px;
  line-height: 1.35;
}

.credit-card-v2 .one-time-button {
  width: 100%;
  color: #ffffff;
  background: var(--coral);
  border-color: rgba(255, 255, 255, 0.1);
}

.manage-plan-button {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 16px;
  width: 100%;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  text-align: left;
}

.fulfillment-card-v2 .sidebar-heading span:not(.fulfillment-icon) {
  padding: 6px 11px;
  color: #267245;
  background: #e8f3e9;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.fulfillment-card-v2 .fulfillment-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 14px;
}

.fulfillment-card-v2 .fulfillment-list dt {
  color: #26332f;
  font-weight: 800;
}

.fulfillment-card-v2 .fulfillment-list dd {
  justify-content: flex-end;
  color: #26332f;
  text-align: right;
}

.fulfillment-card-v2 .fulfillment-list button {
  padding: 0;
  color: var(--coral);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.ops-center-button {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #26332f;
  font-size: 15px;
}

.dashboard-page {
  max-width: 1320px;
  margin: 0 auto;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.82), rgba(244, 231, 216, 0.5)),
    #fff9f3;
  border: 1px solid rgba(207, 197, 183, 0.82);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 680px;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 231, 216, 0.58)),
    #f8efe3;
  border: 1px solid rgba(207, 197, 183, 0.72);
  border-radius: 14px;
}

.dashboard-lockup img {
  width: 154px;
  height: auto;
}

.dashboard-menu {
  display: grid;
  gap: 6px;
}

.dashboard-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  color: #34433e;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
}

.dashboard-menu a.active {
  color: var(--coral-dark);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(244, 90, 70, 0.2);
  box-shadow: 0 5px 18px rgba(33, 39, 34, 0.055);
}

.dashboard-menu svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.dashboard-calendar-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(207, 197, 183, 0.86);
  border-radius: 10px;
}

.dashboard-calendar-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink-deep);
  background: #f4e7d8;
  border-radius: 8px;
}

.dashboard-calendar-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-calendar-card strong {
  color: #18231f;
  font-size: 15px;
}

.dashboard-calendar-card p {
  color: #66716c;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-calendar-card .primary-button {
  min-height: 34px;
  margin-top: 4px;
  padding: 0 14px;
  font-size: 14px;
}

.dashboard-main {
  display: grid;
  align-content: start;
  gap: 18px;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 4px 0;
}

.dashboard-eyebrow,
.dashboard-panel-heading span {
  color: #1c312a;
  font-size: 12.5px;
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin-top: 8px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(38px, 3.5vw, 52px);
  line-height: 1.02;
}

.dashboard-hero p:not(.dashboard-eyebrow) {
  margin-top: 8px;
  color: #52615b;
  font-size: 17px;
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-hero-actions .primary-button {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.dashboard-hero-actions svg {
  width: 18px;
  height: 18px;
}

.dashboard-hero-actions img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 2px solid #fffdfa;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(33, 39, 34, 0.14);
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 16px;
}

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

.dashboard-panel {
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(250, 243, 232, 0.88)),
    #fffdfa;
  border: 1px solid rgba(207, 197, 183, 0.82);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(33, 39, 34, 0.075);
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-panel-heading a,
.dashboard-inspiration a,
.reminder-dashboard-panel a {
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 820;
}

.dashboard-moment-list {
  display: grid;
  gap: 10px;
}

.dashboard-moment-list article {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #ebe2d6;
  border-radius: 10px;
}

.dashboard-moment-list time {
  display: grid;
  place-items: center;
  min-height: 50px;
  color: #26362f;
  background: #f7efe4;
  border-right: 1px solid #ded4c5;
  font-size: 22px;
  line-height: 1;
}

.dashboard-moment-list time strong {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-moment-list div {
  display: grid;
  gap: 4px;
}

.dashboard-moment-list div strong,
.recent-order-body strong,
.account-card h2,
.recipients-card h2,
.address-card h2,
.print-card h2,
.dashboard-inspiration h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.08;
}

.dashboard-moment-list span,
.recent-order-body span,
.recent-order-body p,
.reminder-dashboard-panel p {
  color: #66716c;
  font-size: 14px;
}

.dashboard-moment-list button {
  color: var(--coral-dark);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 820;
}

.dashboard-inspiration {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.68), rgba(244, 231, 216, 0.86)),
    #f4e7d8;
}

.dashboard-inspiration img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(33, 39, 34, 0.14);
}

.dashboard-inspiration p {
  margin: 10px 0 14px;
  color: #596761;
  font-size: 15px;
  line-height: 1.45;
}

.recent-order-panel,
.reminder-dashboard-panel {
  display: grid;
}

.recent-order-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}

.recent-order-body img {
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 10px 22px rgba(33, 39, 34, 0.12);
}

.recent-order-body div,
.reminder-dashboard-panel div {
  display: grid;
  gap: 5px;
}

.reminder-dashboard-panel {
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.reminder-dashboard-panel img {
  width: 68px;
  height: auto;
  padding: 12px;
  background: #fff0ec;
  border-radius: 50%;
}

.reminder-dashboard-panel span {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-card dl,
.print-card dl {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.account-card dl div,
.print-card dl div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #ebe2d6;
}

.account-card dd,
.print-card dd {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #21302b;
  font-size: 12px;
  font-weight: 720;
}

.recipient-list,
.address-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recipient-list span,
.address-list span {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-top: 1px solid #ebe2d6;
}

.recipient-list strong,
.address-list strong {
  color: #21302b;
  font-size: 15px;
}

.recipient-list small,
.address-list small {
  color: #66716c;
  font-size: 12.5px;
  line-height: 1.35;
}

#promptSummary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* Typography & graphic language pass from the brand toolkit. */
.home-eyebrow,
.dashboard-eyebrow,
.dashboard-panel-heading span,
.label-content strong,
.calendar-stat-strip button,
.calendar-step-rail strong,
.order-progress span,
.order-card-details dt,
.fulfillment-card-v2 .fulfillment-list dt {
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-hero-copy .brand-script-note,
.brand-title .brand-script-note,
.calendar-title-block .brand-script-note,
.order-hero .brand-script-note,
.dashboard-hero .brand-script-note {
  color: var(--ink);
  font-family: var(--hand);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.calendar-title-block .brand-script-note,
.order-hero .brand-script-note,
.dashboard-hero .brand-script-note {
  margin-top: 10px;
  color: var(--ink);
  font-size: 18.5px;
  line-height: 1.25;
}

.dashboard-hero .brand-script-note {
  font-size: 18.5px;
}

.home-proof-row strong,
.proof-points h2,
.order-panel h2,
.dashboard-inspiration h2,
.dashboard-moment-list div strong,
.recent-order-body strong,
.account-card h2,
.recipients-card h2,
.address-card h2,
.print-card h2 {
  font-family: var(--serif);
}

.personalization-label,
.dashboard-panel,
.order-panel,
.calendar-stat-strip,
.calendar-step-rail,
.occasion-detail-v2 {
  background-image:
    linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(250, 243, 232, 0.82)),
    repeating-linear-gradient(0deg, rgba(33, 39, 34, 0.018) 0 1px, transparent 1px 8px);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modal-shell.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 15, 0.62);
  backdrop-filter: blur(3px);
}

.card-preview-modal {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100vw - 96px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: 28px;
  background: #fffdfa;
  border: 1px solid #ddd4c8;
  border-radius: 14px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #44514c;
  background: #fffdfa;
  border: 1px solid #ddd4c8;
  border-radius: 50%;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  margin-bottom: 20px;
  padding-right: 50px;
}

.modal-header h2 {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.modal-header div {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 18px;
}

.modal-header em {
  padding: 5px 12px;
  color: #22703f;
  background: #d9eddc;
  border-radius: 999px;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.modal-header p {
  margin-top: 10px;
  color: #5d6a65;
  font-size: 15px;
}

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

.card-preview-modal.has-expanded .modal-content-grid {
  grid-template-columns: minmax(0, 1fr);
}

.card-preview-modal.has-expanded .modal-preview-card:not(.is-expanded),
.card-preview-modal.has-expanded .modal-details-panel {
  display: none;
}

.modal-preview-card,
.modal-details-panel {
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid #ddd4c8;
  border-radius: 9px;
}

.modal-preview-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #ddd4c8;
}

.modal-preview-heading h3 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 21px;
}

.modal-preview-heading span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #267245;
  font-size: 14px;
}

.modal-preview-heading span svg {
  width: 15px;
  height: 15px;
}

.modal-preview-heading button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-left: auto;
  color: #3d4844;
  background: #fffdfa;
  border: 1px solid #e1d8cd;
  border-radius: 8px;
}

.modal-preview-heading button + button {
  margin-left: 0;
}

.modal-preview-heading button svg {
  width: 16px;
  height: 16px;
}

.modal-exterior-art,
.modal-interior-art {
  position: relative;
  height: 430px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 16rem),
    linear-gradient(120deg, rgba(23, 44, 39, 0.035) 0 1px, transparent 1px 9px),
    #f4eee5;
}

.modal-exterior-art {
  display: grid;
  place-items: center;
}

.card-preview-modal.has-expanded .modal-exterior-art,
.card-preview-modal.has-expanded .modal-interior-art {
  height: min(68vh, 720px);
  min-height: 520px;
}

.modal-card-front {
  position: relative;
  z-index: 2;
  width: min(255px, 72%);
  /* True 5x7 portrait (July 24, 2026): the zoom preview shows the card's
     real proportions instead of cropping ~8% of the art in a 0.78 box. */
  aspect-ratio: 5 / 7;
}

.modal-card-front.has-generated-art img {
  opacity: 1;
}

.modal-card-front.has-generated-art span {
  display: none;
}

.card-preview-modal.has-expanded .modal-card-front {
  width: min(430px, 52vh);
}

.modal-card-front span {
  font-size: 31px;
}

.modal-preview-card > .primary-button {
  width: calc(100% - 28px);
  margin: 14px;
}

.modal-interior-art {
  display: grid;
  place-items: center;
}

.modal-interior-art article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 88%;
  /* True 10x7 open spread (July 24, 2026) — matches the printed interior. */
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: #fbf5e9;
  box-shadow: 0 18px 32px rgba(69, 44, 35, 0.16);
}

.card-preview-modal.has-expanded .modal-interior-art article {
  width: min(900px, 92%);
}

.modal-interior-art article::after {
  position: absolute;
  inset: 0 50% 0 auto;
  width: 1px;
  background: #ded4c8;
  content: "";
}

.modal-inside-page,
.modal-inside-legacy {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-inside-legacy {
  grid-column: 1 / -1;
}

#modalInsideSpread.has-split-inside .modal-inside-page,
#modalInsideSpread.has-legacy-inside .modal-inside-legacy {
  display: block;
}

#modalInsideSpread.has-split-inside .modal-inside-fallback,
#modalInsideSpread.has-legacy-inside .modal-inside-fallback {
  display: none;
}

#modalInsideSpread.has-legacy-inside::after {
  display: none;
}

.modal-inside-fallback {
  display: contents;
}

.modal-floral {
  place-self: center;
  width: 130px;
  height: 170px;
  background:
    radial-gradient(circle at 46% 30%, #e1a591 0 10px, transparent 11px),
    radial-gradient(circle at 60% 45%, #c87465 0 12px, transparent 13px),
    radial-gradient(circle at 41% 55%, #d99886 0 9px, transparent 10px),
    linear-gradient(30deg, transparent 0 48%, #6a8a6c 49% 51%, transparent 52%),
    repeating-linear-gradient(145deg, transparent 0 13px, rgba(96, 132, 91, 0.5) 14px 16px, transparent 17px 26px);
}

.modal-interior-art p {
  place-self: center;
  max-width: 160px;
  color: #4d3e38;
  font-family: var(--serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

.modal-interior-art i {
  position: absolute;
  right: 58px;
  bottom: 72px;
  width: 84px;
  height: 14px;
  background:
    linear-gradient(#e1a591, #e1a591) left 50% / 30px 1px no-repeat,
    linear-gradient(#e1a591, #e1a591) right 50% / 30px 1px no-repeat,
    radial-gradient(circle, #d98077 0 3px, transparent 4px);
}

.modal-details-panel {
  padding: 12px 16px 16px;
}

.modal-details-panel dl {
  display: grid;
  gap: 0;
}

.modal-details-panel div {
  padding: 18px 0;
  border-bottom: 1px solid #e1d8cd;
}

.modal-details-panel dt {
  color: #5d6a65;
  font-size: 14px;
}

.modal-details-panel dd {
  margin-top: 5px;
  color: #25332e;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.modal-details-panel .secondary-button {
  width: 100%;
  margin-top: 18px;
}

.modal-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 16px;
  color: #4d3c35;
  background: #fff2e9;
  border: 1px solid #ffd7c4;
  border-radius: 8px;
  font-size: 15px;
}

.modal-alert svg {
  width: 19px;
  height: 19px;
  color: var(--coral);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions button {
  min-width: 150px;
}

.modal-actions .primary-button {
  min-width: 240px;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 72px;
    padding: 10px 14px;
  }

  .brand img {
    width: min(190px, 52vw);
    height: auto;
  }

  .nav-links,
  .plan-status {
    display: none;
  }

  .top-actions {
    gap: 10px;
  }

  .start-button {
    min-width: 48px;
    padding: 0 14px;
  }

  .start-button span {
    display: none;
  }

  main {
    width: 100%;
    max-width: none;
    padding: 20px 14px 44px;
  }

  .home-page {
    margin: -20px -14px -44px;
  }

  .gallery-page {
    margin: -20px -14px -44px;
    padding: 30px 0 44px;
  }

  .gallery-hero {
    display: grid;
    width: 100%;
    padding: 0 16px;
    margin-bottom: 18px;
  }

  .gallery-hero h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .gallery-hero p {
    font-size: 17px;
  }

  .gallery-motion-toggle {
    justify-self: start;
    min-width: 178px;
  }

  .gallery-filter-bar {
    top: 72px;
    width: 100%;
    margin-bottom: 16px;
    padding: 8px 16px;
  }

  .gallery-wall {
    gap: 12px;
  }

  .gallery-track {
    gap: 12px;
  }

  .gallery-card.is-cover {
    width: clamp(160px, 48vw, 220px);
  }

  .gallery-card.is-spread {
    width: clamp(260px, 78vw, 360px);
  }

  .home-hero,
  .home-steps,
  .home-trust-section,
  .calendar-page-v2 .calendar-topline,
  .intro,
  .brand-title,
  #page-create .brand-title,
  .workspace,
  .calendar-stat-strip,
  .calendar-step-rail,
  .calendar-workbench,
  .occasion-detail-v2,
  .selected-card-placeholder,
  .selected-field-grid,
  .selected-footer,
  .order-grid-v2,
  .order-trust-strip,
  .fulfillment-hero,
  .fulfillment-workspace,
  .consumer-print-hero,
  .consumer-print-grid,
  .fulfillment-grid,
  .fulfillment-artwork-grid,
  .fulfillment-actions,
  .print-spec-grid,
  .dashboard-shell,
  .dashboard-top-grid,
  .dashboard-management-grid,
  .modal-content-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    height: auto;
    min-height: 0;
  }

  .home-hero-copy {
    padding: 32px 20px 28px;
  }

  .home-hero h1,
  .calendar-title-block h1,
  .order-hero h1,
  .fulfillment-hero h1 {
    font-size: clamp(40px, 11vw, 58px);
    line-height: 1.02;
  }

  .home-lede,
  .home-proof-row,
  .calendar-title-block p,
  .fulfillment-hero p:not(.home-eyebrow):not(.brand-script-note) {
    max-width: none;
  }

  .fulfillment-mode-rail {
    position: static;
    min-height: 0;
  }

  .consumer-print-hero {
    padding: 24px 20px;
  }

  .consumer-print-hero h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .home-proof-row,
  .home-assurance-list,
  .proof-points {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-steps > i {
    display: none;
  }

  .home-steps article {
    grid-template-columns: 58px 22px 1fr;
    min-height: 0;
  }

  .home-steps article > span {
    width: 58px;
    height: 58px;
  }

  .home-trust-section,
  .how-it-works {
    padding: 28px 20px;
  }

  .brand-title::before {
    display: none;
  }

  .brand-title p,
  .brand-title .brand-script-note {
    grid-column: 1;
  }

  #page-create .brand-title h1 {
    font-size: clamp(52px, 15vw, 76px);
  }

  .proof-points article {
    min-height: 0;
    padding: 18px 0;
  }

  .proof-points article + article {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .home-hero-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .home-hero-actions .primary-button,
  .home-hero-actions .secondary-button {
    flex: 1 1 180px;
  }

  .home-product-scene {
    height: min(86vw, 420px);
  }

  .calendar-stat-strip {
    gap: 14px;
  }

  .calendar-stat-strip article {
    padding: 0;
  }

  .calendar-stat-strip article + article,
  .order-trust-strip article + article {
    padding-top: 14px;
    border-top: 1px solid rgba(207, 197, 183, 0.72);
    border-left: 0;
  }

  .calendar-step-rail {
    gap: 12px;
  }

  .calendar-step-rail > i {
    display: none;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calendar-nav-controls,
  .month-jump,
  .month-title-button {
    justify-self: stretch;
    width: 100%;
  }

  .month-jump-menu {
    right: 0;
    left: 0;
    grid-template-columns: 1fr;
    width: 100%;
    transform: none;
  }

  .calendar-nav-controls button {
    flex: 1;
  }

  .calendar-grid-v2 .calendar-day {
    min-height: 64px;
    padding: 6px;
  }

  .calendar-grid-v2 .occasion-chip {
    width: 100%;
    margin-top: 4px;
    padding: 5px;
  }

  .calendar-grid-v2 .occasion-chip span,
  .calendar-grid-v2 .mini-status {
    display: none;
  }

  /* A phone cell is ~45px wide, so a chip can spill past its cell and read
     as floating between days (founder, August 16 review). The cell clips
     its contents and the chip title ellipsizes instead of escaping. */
  .calendar-grid-v2 .calendar-day {
    overflow: hidden;
  }

  .calendar-grid-v2 .occasion-chip {
    min-width: 0;
    max-width: 100%;
  }

  .calendar-grid-v2 .occasion-chip strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Cards on the calendar: on a phone the cell keeps only the mini card
     front; the words live in the strip under the grid. */
  .calendar-card-mark {
    margin-top: 3px;
  }

  .calendar-card-mark img {
    width: 13px;
    height: 18px;
  }

  .calendar-card-mark-word {
    display: none;
  }

  .calendar-day-card-resume {
    padding: 6px 10px;
  }

  .selected-card-art {
    border-right: 0;
    border-bottom: 1px solid #dfd5c9;
  }

  .selected-field-grid label {
    padding-left: 0;
  }

  .selected-footer {
    align-items: stretch;
  }

  .builder-panel,
  .preview-panel,
  .action-card,
  .order-panel,
  .month-card-v2,
  .occasion-detail-v2,
  .upcoming-card-v2,
  .credit-card-v2,
  .fulfillment-card-v2,
  .dashboard-panel {
    padding: 16px;
  }

  .action-card {
    display: none;
  }

  .preview-actions {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 10px;
  }

  .preview-actions button {
    min-height: 48px;
  }

  .card-scene,
  .inside-scene {
    min-height: 420px;
  }

  /* Once art exists the scene is as tall as its photo; the 420px floor is
     for the generation card. Without this the Front/Inside toggle floated
     over a blank band under the desk (founder, item 1 note). */
  .preview-panel.has-generated-preview .card-scene,
  .preview-panel.has-generated-preview .inside-scene {
    min-height: 0;
  }

  .order-progress,
  .fulfillment-progress {
    display: none;
  }

  .order-card-visual {
    min-height: 300px;
  }

  .delivery-choice-card {
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }

  .choice-art,
  .delivery-choice-card em {
    display: none;
  }

  .recipient-address-block {
    grid-template-columns: 1fr;
  }

  /* Single-column stack: the actions unit rejoins normal flow (its
     desktop grid-column: 3 would land in an invisible implicit column
     here) and everything left-aligns under the address text. */
  .recipient-address-actions {
    grid-column: auto;
    align-items: flex-start;
  }

  .recipient-address-actions button {
    padding-top: 0;
  }

  .recipient-address-actions span {
    max-width: 100%;
  }

  /* The "saved ✓" chip sits directly above the address form once it
     opens (or the saved-address picker inside it); the form's own 4px
     top margin reads fine on desktop's tighter layout but crowds the
     chip once everything stacks in one column on mobile. */
  #recipientAddressForm,
  #returnAddressForm {
    margin-top: 18px;
  }

  .order-trust-strip article {
    padding: 0;
  }

  .fulfillment-status-card {
    grid-template-columns: 14px 1fr;
  }

  .dashboard-shell {
    gap: 14px;
    padding: 12px;
  }

  .dashboard-sidebar {
    min-height: 0;
  }

  .dashboard-hero {
    display: grid;
  }

  .dashboard-hero-actions {
    flex-wrap: wrap;
  }

  .dashboard-moment-list article,
  .dashboard-inspiration,
  .recent-order-body,
  .reminder-dashboard-panel,
  .account-card dl div,
  .print-card dl div {
    grid-template-columns: 1fr;
  }

  .dashboard-moment-list time {
    justify-self: start;
    width: max-content;
    padding: 10px;
    border-right: 0;
  }

  .modal-shell {
    padding: 12px;
  }

  .card-preview-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .modal-header div,
  .modal-actions {
    flex-wrap: wrap;
  }

  .modal-actions button,
  .modal-actions .primary-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .home-hero-copy {
    padding-inline: 16px;
  }

  .path-choice-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 0;
  }

  .calendar-grid-v2 .calendar-day {
    min-height: 52px;
  }

  .calendar-grid-v2 .occasion-chip strong {
    font-size: 12px;
  }

  .card-front {
    min-width: 0;
  }

  .preview-seals,
  .personalization-label dl,
  .personalization-label.is-classic-path .label-content dl {
    grid-template-columns: 1fr;
  }

  .fulfillment-card-v2 .fulfillment-list div,
  .upcoming-list-v2 .upcoming-item {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Motion & hierarchy enhancement layer — June 9, 2026
   Page transitions, scroll reveals, micro-interactions,
   home CTA band, Create workspace step tags.
   All motion is guarded by prefers-reduced-motion at the end
   of this layer.
   ============================================================ */

/* ---------- 1. Page entrance ---------- */

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.app-page.is-active {
  animation: page-enter 440ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ---------- 2. Scroll-reveal system ----------
   app.js adds body.reveal-ready only when IntersectionObserver
   is available and the user has not requested reduced motion,
   so content is never hidden without JS. */

body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 3. Button & card micro-interactions ---------- */

.primary-button,
.secondary-button,
.start-button {
  transition:
    transform 170ms ease,
    box-shadow 220ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.primary-button:hover:not(:disabled),
.start-button:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 26px rgba(222, 70, 52, 0.26);
}

.secondary-button:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.start-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.home-proof-row article,
.proof-points article,
.home-assurance-list article,
.calendar-stat-strip article,
.testimonial-card,
.delivery-choice-card,
.path-card {
  transition: transform 220ms ease, box-shadow 260ms ease;
}

.home-proof-row article:hover,
.proof-points article:hover,
.home-assurance-list article:hover,
.calendar-stat-strip article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.delivery-choice-card:hover,
.path-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.gallery-wall figure {
  transition: transform 240ms ease, box-shadow 280ms ease;
}

.gallery-wall figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ---------- 4. Home hero life ---------- */

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

.home-scene-image.is-active {
  animation: hero-drift 8s ease-out both;
}

.home-carousel-dots button {
  transition: transform 200ms ease, background-color 200ms ease;
}

.home-carousel-dots button.is-active {
  transform: scale(1.35);
}

/* ---------- 5. Approval stamp ---------- */

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: scale(1.7) rotate(-12deg);
  }
  62% {
    opacity: 1;
    transform: scale(0.94) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-2deg);
  }
}

@keyframes approve-press {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  55% {
    opacity: 1;
    transform: scale(1.07);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Approval moment: a confident solid-green badge with a check (matches the green
   "Approve" / "Approved" success language used elsewhere). Presses in flat — no
   crooked rotation. */
.is-approved #reviewSeal {
  color: #ffffff;
  background: #1f7a4d;
  border-color: #1a6b43;
  font-weight: 820;
  padding-left: 9px;
  box-shadow: 0 6px 16px rgba(31, 122, 77, 0.3);
  animation: approve-press 460ms cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}

.is-approved #reviewSeal::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m20 6-11 11-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m20 6-11 11-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 6. Create workspace step tags ---------- */

.workspace-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-step-tag span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  background: var(--coral);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

/* ---------- 7. How-it-works hierarchy ---------- */

.how-it-works .home-eyebrow {
  margin: 0 0 4px;
  text-align: center;
}

.how-it-works .how-lede {
  max-width: 42em;
  margin: 8px auto 0;
  color: var(--muted-strong);
  font-size: 17px;
  text-align: center;
}

/* ---------- 8. Home closing CTA band ---------- */
/* September 3, 2026 founder call ("paper letter", treatment A): the closing
   promise band on Home and How it works used to be a full-bleed dark square
   with a dashed rule, stacked right above the rounded dark waitlist cell. Two
   dark slabs, two shapes. It is now a paper card with the waitlist cell's
   exact width and corners, so the pair reads light-over-dark and the beta
   cell becomes the finale. The waitlist cell itself is untouched. */

.home-cta-band {
  position: relative;
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(44px, 5vw, 60px) clamp(28px, 5vw, 76px) clamp(48px, 5vw, 64px);
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.cta-band-mark {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
}

.home-cta-band .home-eyebrow {
  color: var(--coral);
}

.home-cta-band h2 {
  max-width: 17em;
  margin: 14px auto 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.home-cta-band > p {
  max-width: 46em;
  margin: 0 auto;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.home-cta-band .brand-script-note {
  margin: 18px auto 0;
  color: var(--coral-dark);
  font-size: clamp(18px, 1.3vw, 24px);
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.cta-band-actions .primary-button,
.cta-band-actions .secondary-button {
  min-width: 176px;
  padding: 0 32px;
}

/* The promise card and the waitlist cell are a pair: pull the site-wide
   waitlist-band gap in so they sit together. */
.home-cta-band + .page-waitlist-band {
  margin-top: 28px;
}

/* How it works lays its sections out on a grid whose gap (72-130px) sits
   between the two cells as well; pull the waitlist cell back up through it
   so the pair keeps the same 28px seam it has on Home. */
.howitworks-page .home-cta-band + .page-waitlist-band {
  margin-top: calc(28px - clamp(72px, 9vw, 130px));
}

/* ---------- 9. Reduced motion guards ---------- */

@media (prefers-reduced-motion: reduce) {
  .app-page.is-active,
  .home-scene-image.is-active,
  .is-approved #reviewSeal {
    animation: none;
  }

  body.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .primary-button,
  .secondary-button,
  .start-button,
  .home-proof-row article,
  .proof-points article,
  .home-assurance-list article,
  .calendar-stat-strip article,
  .testimonial-card,
  .delivery-choice-card,
  .path-card,
  .gallery-wall figure,
  .home-carousel-dots button {
    transition: none;
  }

  .primary-button:hover:not(:disabled),
  .secondary-button:hover:not(:disabled),
  .start-button:hover,
  .home-proof-row article:hover,
  .proof-points article:hover,
  .home-assurance-list article:hover,
  .calendar-stat-strip article:hover,
  .testimonial-card:hover,
  .delivery-choice-card:hover,
  .path-card:hover,
  .gallery-wall figure:hover {
    transform: none;
  }
}

/* ============================================================
   HOME X — editorial scroll experience (June 9, 2026)
   Cinematic hero, pinned card-journey scrollytelling, scroll-fill
   statement, horizontal gallery strip, postcard testimonial.
   JS sets --hx-p (0..1) per [data-hx-progress] section and drives
   step/word states; body.hx-static is the no-motion fallback.
   ============================================================ */

.home-x {
  background: var(--paper);
}

/* ---------- shared ---------- */

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--coral);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hx-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.hx-section-head h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hx-sticky {
  position: sticky;
  top: 82px;
  height: calc(100vh - 82px);
  overflow: hidden;
}

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

.hx-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--paper);
}

.hx-hero-inner {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(480px, 1.02fr) minmax(520px, 1fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  padding: clamp(36px, 5vh, 72px) clamp(54px, 5.4vw, 76px) clamp(24px, 3.5vh, 48px);
}

.hx-headline {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(58px, 5.9vw, 92px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.018em;
}

.hx-headline em {
  color: var(--coral);
  font-style: italic;
}

.hx-headline strong {
  font-weight: 700;
}

.hx-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hx-line-inner {
  display: inline-block;
  transform: translateY(112%);
  animation: hx-line-up 760ms cubic-bezier(0.19, 0.74, 0.22, 1) forwards;
}

.hx-line:nth-child(1) .hx-line-inner { animation-delay: 120ms; }
.hx-line:nth-child(2) .hx-line-inner { animation-delay: 240ms; }
.hx-line:nth-child(3) .hx-line-inner { animation-delay: 360ms; }

@keyframes hx-line-up {
  to { transform: translateY(0); }
}

.hx-lede {
  max-width: 33em;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: 18.5px;
  line-height: 1.6;
}

.hx-lede,
.hx-hero-actions,
.hx-script {
  opacity: 0;
  animation: hx-fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hx-lede { animation-delay: 560ms; }
.hx-hero-actions { animation-delay: 700ms; }
.hx-script { animation-delay: 840ms; }

@keyframes hx-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hx-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.hx-hero-actions .primary-button {
  padding: 14px 26px;
  font-size: 17.5px;
}

.hx-ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.hx-ghost-button:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--ink);
  transform: translateY(-1.5px);
}

.hx-ghost-button svg {
  width: 15px;
  height: 15px;
  animation: hx-nudge 2.2s ease-in-out infinite;
}

@keyframes hx-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.hx-script {
  margin-top: 22px;
  font-size: clamp(18px, 1.25vw, 23px);
}

/* hero card stack */

.hx-hero-stage {
  position: relative;
  height: clamp(440px, 58vh, 600px);
  perspective: 1300px;
  --hx-tilt-x: 0deg;
  --hx-tilt-y: 0deg;
}

.hx-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 21vw, 320px);
  aspect-ratio: 2 / 3;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transition: transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
  animation: hx-card-in 900ms cubic-bezier(0.19, 0.74, 0.22, 1) forwards;
}

.hx-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-card-a {
  z-index: 3;
  transform:
    translate(-50%, -50%)
    rotateY(var(--hx-tilt-x)) rotateX(var(--hx-tilt-y))
    rotate(-2.5deg);
  animation-delay: 420ms;
}

.hx-card-b {
  z-index: 2;
  transform:
    translate(-50%, -50%)
    rotateY(calc(var(--hx-tilt-x) * 0.65)) rotateX(calc(var(--hx-tilt-y) * 0.65))
    translateX(46%) translateY(4%) rotate(8deg);
  animation-delay: 540ms;
}

.hx-card-c {
  z-index: 1;
  transform:
    translate(-50%, -50%)
    rotateY(calc(var(--hx-tilt-x) * 0.4)) rotateX(calc(var(--hx-tilt-y) * 0.4))
    translateX(-48%) translateY(7%) rotate(-11deg);
  animation-delay: 660ms;
}

@keyframes hx-card-in {
  from {
    opacity: 0;
    margin-top: 44px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}

.hx-postmark {
  position: absolute;
  top: 2%;
  right: 4%;
  width: clamp(150px, 14vw, 210px);
  color: var(--ink);
  opacity: 0.14;
}

.hx-postmark svg {
  width: 100%;
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
  animation: hx-spin 70s linear infinite;
}

@keyframes hx-spin {
  to { transform: rotate(360deg); }
}

.hx-stage-stamp {
  position: absolute;
  top: 6%;
  left: 5%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 86px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transform: rotate(7deg);
  opacity: 0;
  animation: hx-fade-up 700ms ease 900ms forwards;
}

.hx-stage-stamp img {
  width: 46px;
}

.hx-stage-chip {
  position: absolute;
  z-index: 4;
  bottom: -2%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  color: var(--muted-strong);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: hx-fade-up 700ms ease 1000ms forwards;
}

/* occasions marquee */

.hx-marquee {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px dashed rgba(15, 42, 36, 0.28);
  border-bottom: 1px dashed rgba(15, 42, 36, 0.28);
  background: rgba(255, 253, 248, 0.6);
}

.hx-marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: hx-marquee 30s linear infinite;
}

.hx-marquee-track span {
  color: var(--ink);
  font-family: var(--hand);
  font-size: 25px;
  white-space: nowrap;
}

.hx-marquee-track i {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
}

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

/* ---------- 2. Journey scrollytelling ---------- */

.hx-journey {
  height: 300vh;
  background:
    linear-gradient(180deg, var(--paper), #fdf3e7 30%, #fdf3e7 70%, var(--paper));
}

.hx-journey .hx-sticky {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 38px);
  padding: clamp(28px, 5vh, 56px) clamp(54px, 5.4vw, 76px);
}

.hx-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hx-route path {
  fill: none;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.hx-route-ghost {
  stroke: rgba(15, 42, 36, 0.1);
  stroke-dasharray: 3 9;
}

.hx-route-draw {
  stroke: rgba(244, 90, 70, 0.5);
  stroke-linecap: round;
}

.hx-journey-grid {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(390px, 470px) 1fr;
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
  min-height: 0;
}

.hx-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: clamp(12px, 2vh, 20px) 0;
  border-bottom: 1px dashed rgba(15, 42, 36, 0.16);
  opacity: 0.32;
  transition: opacity 420ms ease, transform 420ms ease;
}

.hx-steps li:last-child {
  border-bottom: 0;
}

.hx-steps li.is-active {
  opacity: 1;
  transform: translateX(6px);
}

/* Upcoming chapters, not disabled fields (design review item 5). */
.hx-steps li:not(.is-active):not(.is-done) {
  opacity: 0.5;
}

/* The first wheel notch moves the date card: it settles from a slight
   tilt as --hx-p runs 0 to 0.16. */
.hx-vis-date .hx-date-card {
  transform: translateY(calc(12px * max(0, 1 - var(--hx-p, 0) / 0.16))) rotate(calc(-2deg * max(0, 1 - var(--hx-p, 0) / 0.16)));
}

.hx-steps li.is-done {
  opacity: 0.6;
}

.hx-steps small {
  color: var(--coral);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding-top: 5px;
}

.hx-steps strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 600;
  line-height: 1.15;
}

.hx-steps p {
  margin: 7px 0 0;
  max-width: 36em;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.55;
}

.hx-stage {
  position: relative;
  height: min(60vh, 580px);
}

.hx-vis {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition:
    opacity 480ms ease,
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.hx-vis.is-on {
  opacity: 1;
  transform: none;
}

.hx-vis.is-past {
  opacity: 0;
  transform: translateY(-28px) scale(0.97);
}

/* step 1: date card */

.hx-date-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: clamp(280px, 24vw, 340px);
  padding: 34px 30px 30px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: rotate(-1.5deg);
}

.hx-date-card small {
  color: var(--coral);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hx-date-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}

.hx-date-card strong em {
  font-size: 74px;
  font-style: normal;
  display: block;
  line-height: 1;
}

.hx-date-name {
  color: var(--ink);
  font-family: var(--hand);
  font-size: 30px;
}

.hx-date-chip {
  margin-top: 6px;
  padding: 7px 14px;
  color: var(--muted-strong);
  background: var(--sage);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 750;
}

/* step 2: details */

.hx-vis-details {
  place-items: center;
}

.hx-note-card {
  width: clamp(300px, 26vw, 380px);
  padding: 28px 30px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.hx-note-card small {
  color: var(--coral);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hx-note-card p {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 27px;
  line-height: 1.25;
}

.hx-chip {
  position: absolute;
  padding: 10px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.hx-chip-1 {
  top: 13%;
  left: 16%;
  transform: rotate(-5deg);
}

.hx-chip-2 {
  top: 22%;
  right: 12%;
  transform: rotate(4deg);
}

.hx-chip-3 {
  bottom: 14%;
  left: 24%;
  transform: rotate(-3deg);
}

.hx-vis.is-on .hx-chip {
  animation: hx-fade-up 600ms ease backwards;
}

.hx-vis.is-on .hx-chip-1 { animation-delay: 150ms; }
.hx-vis.is-on .hx-chip-2 { animation-delay: 280ms; }
.hx-vis.is-on .hx-chip-3 { animation-delay: 410ms; }

/* step 3: card artwork */

.hx-vis-card {
  margin: 0;
}

.hx-vis-card img {
  width: clamp(260px, 23vw, 330px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
}

.hx-vis-card figcaption {
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* step 4: envelope */

.hx-envelope {
  position: relative;
  width: clamp(400px, 34vw, 490px);
  aspect-ratio: 3 / 2;
  background: linear-gradient(175deg, #f9efe1, #f3e4d0);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}

.hx-env-flap {
  position: absolute;
  inset: 0 0 auto;
  height: 52%;
  background: linear-gradient(180deg, #f2e2cc, #ecd9c0);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 10px 10px 0 0;
}

.hx-env-address {
  position: absolute;
  top: 56%;
  left: 11%;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 23px;
  line-height: 1.3;
}

.hx-env-stamp {
  position: absolute;
  top: 7%;
  right: 6%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 70px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  transform: rotate(3deg);
}

.hx-env-stamp img {
  width: 38px;
}

.hx-env-postmark {
  position: absolute;
  top: 4%;
  right: 14%;
  width: 104px;
  color: rgba(15, 42, 36, 0.55);
  stroke-width: 2;
  fill: none;
  transform: rotate(-10deg);
}

.hx-env-seal {
  position: absolute;
  top: 44%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 36% 32%, #ff8a78, var(--coral) 58%, #d4452f);
  border-radius: 50%;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.45),
    inset 0 -3px 7px rgba(120, 24, 10, 0.4),
    0 6px 16px rgba(120, 24, 10, 0.3);
  transform: translate(-50%, -50%) scale(0);
}

.hx-env-seal img {
  width: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.hx-vis-mail.is-on .hx-env-seal {
  animation: hx-seal-stamp 520ms cubic-bezier(0.2, 0.9, 0.3, 1.3) 320ms forwards;
}

@keyframes hx-seal-stamp {
  0% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
  62% { transform: translate(-50%, -50%) scale(0.92); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.hx-journey-bar {
  height: 3px;
  background: rgba(15, 42, 36, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.hx-journey-bar i {
  display: block;
  width: calc(var(--hx-p, 0) * 100%);
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
}

/* ---------- 3. Statement ---------- */

.hx-statement {
  height: 170vh;
  background:
    radial-gradient(circle at 84% 14%, rgba(244, 90, 70, 0.16), transparent 28rem),
    linear-gradient(165deg, #0d352c, #092c25);
}

.hx-statement .hx-sticky {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 clamp(54px, 8vw, 140px);
}

.hx-statement-line {
  margin: 0;
  max-width: 12em;
  color: #fffaf2;
  font-family: var(--serif);
  font-size: clamp(54px, 5.4vw, 84px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.hx-statement-line span {
  opacity: 0.13;
  transition: opacity 380ms ease;
}

.hx-statement-line span.is-on {
  opacity: 1;
}

.hx-statement-sub {
  margin: 34px auto 0;
  color: #ffb9a9;
  font-size: clamp(24px, 2vw, 34px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hx-sub-on .hx-statement-sub {
  opacity: 1;
  transform: none;
}

/* ---------- 4. Gallery strip ---------- */

.hx-strip {
  height: 200vh;
  background: linear-gradient(180deg, var(--paper), #fbf1e4 22%, #fbf1e4 84%, var(--paper));
}

.hx-strip .hx-sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(30px, 5vh, 54px);
}

.hx-strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(54px, 5.4vw, 76px);
}

.hx-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-dark);
  font-size: 17px;
  font-weight: 800;
  border-bottom: 2px solid rgba(244, 90, 70, 0.35);
  padding-bottom: 3px;
  transition: gap 180ms ease, border-color 180ms ease;
}

.hx-text-link:hover {
  gap: 12px;
  border-color: var(--coral);
}

.hx-text-link svg {
  width: 16px;
  height: 16px;
}

.hx-strip-track {
  display: flex;
  gap: clamp(22px, 2.4vw, 36px);
  width: max-content;
  padding: 14px clamp(54px, 5.4vw, 76px);
  will-change: transform;
}

.hx-strip-track figure {
  flex: none;
  width: clamp(240px, 19vw, 290px);
  margin: 0;
  padding: 12px 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.hx-strip-track figure:nth-child(odd) {
  transform: rotate(-1.4deg);
}

.hx-strip-track figure:nth-child(even) {
  transform: rotate(1.2deg) translateY(14px);
}

.hx-strip-track img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 7px;
  /* The strip's white polaroid mat gave pale Minimal Stationery covers no
     edge at all (1.03:1 against the mat). This is the gallery wall's own
     card line, so both surfaces draw the same edge; a real border, because
     an inset box-shadow is painted over by the image itself. (Sep 1, 2026) */
  border: 1px solid var(--line-strong);
}

.hx-strip-track figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 21px;
  text-align: center;
}

/* ---------- 5. Proof + postcard testimonial ---------- */

.hx-proof {
  padding: clamp(80px, 10vh, 130px) clamp(54px, 5.4vw, 76px);
  display: grid;
  gap: clamp(44px, 6vh, 70px);
}

.hx-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
}

.hx-proof-grid article {
  padding: 34px 30px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 260ms ease;
}

.hx-proof-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hx-proof-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 14px;
}

.hx-proof-icon svg {
  width: 26px;
  height: 26px;
}

.hx-proof-grid h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.hx-proof-grid p {
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.6;
}

.hx-postcard {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.1deg);
  overflow: hidden;
}

.hx-postcard-msg {
  padding: 44px 46px;
  border-right: 1px dashed var(--line-strong);
}

.hx-stars {
  color: var(--coral);
  font-size: 18.5px;
  letter-spacing: 4px;
}

.hx-postcard blockquote {
  margin: 18px 0 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
}

.hx-postcard-msg strong {
  display: block;
  color: var(--ink);
  font-size: 17.5px;
}

.hx-postcard-msg small {
  color: var(--muted);
  font-size: 15px;
}

.hx-postcard-side {
  position: relative;
  padding: 26px;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.hx-postcard-stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 62px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  transform: rotate(4deg);
}

.hx-postcard-stamp img {
  width: 34px;
}

.hx-postcard-photo {
  width: 78%;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transform: rotate(2deg);
}

/* ---------- static / reduced-motion fallbacks ---------- */

body.hx-static .hx-journey,
body.hx-static .hx-statement,
body.hx-static .hx-strip {
  height: auto;
}

body.hx-static .hx-sticky {
  position: static;
  height: auto;
  padding-top: 70px;
  padding-bottom: 70px;
}

body.hx-static .hx-stage {
  height: auto;
}

body.hx-static .hx-vis {
  display: none;
}

body.hx-static .hx-vis-card {
  position: static;
  display: grid;
  opacity: 1;
  transform: none;
}

body.hx-static .hx-statement-line span {
  opacity: 1;
}

body.hx-static .hx-statement-sub {
  opacity: 1;
  transform: none;
}

body.hx-static .hx-strip-track {
  width: auto;
  overflow-x: auto;
  transform: none !important;
}

body.hx-static .hx-route {
  display: none;
}

body.hx-static .hx-journey-bar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hx-line-inner,
  .hx-lede,
  .hx-hero-actions,
  .hx-script,
  .hx-card,
  .hx-stage-stamp,
  .hx-stage-chip {
    animation: none;
    opacity: 1;
    transform: translate(0, 0);
  }

  .hx-card-a,
  .hx-card-b,
  .hx-card-c {
    opacity: 1;
  }

  .hx-postmark svg,
  .hx-marquee-track,
  .hx-ghost-button svg {
    animation: none;
  }

  .hx-vis.is-on .hx-chip,
  .hx-vis-mail.is-on .hx-env-seal {
    animation: none;
  }

  .hx-vis-mail.is-on .hx-env-seal {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ============================================================
   AX — app experience layer (June 9, 2026)
   Brings the HOME X editorial language to Gallery, Create,
   Calendar, Orders, Mailing, and Dashboard: cinematic masked
   headers, postal ephemera with ambient parallax, layered panel
   depth, premium component styling, and the responsive system.
   All functional IDs and data hooks are untouched.
   ============================================================ */

/* ---------- shared hero / typography ---------- */

.ax-hero {
  position: relative;
}

.ax-hero > * {
  position: relative;
  z-index: 1;
}

.ax-hero .ax-ephemera {
  position: absolute;
  inset: -20px -10px;
  z-index: 0;
  pointer-events: none;
}

.ax-eph {
  position: absolute;
}

.ax-eph-stamp {
  top: 4%;
  right: 3%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 80px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  --ax-rot: -7deg;
  transform: rotate(var(--ax-rot));
  opacity: 0.9;
}

.ax-eph-stamp img {
  width: 42px;
}

.ax-eph-postmark {
  top: -36px;
  left: -34px;
  width: clamp(140px, 13vw, 200px);
  color: var(--ink);
  opacity: 0.1;
  fill: none;
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
}

.ax-title {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(46px, 4.6vw, 74px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.018em;
}

.ax-title em {
  color: var(--coral);
  font-style: italic;
}

.ax-title-compact {
  font-size: clamp(38px, 3.6vw, 56px);
}

.ax-lede {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 17.5px;
  line-height: 1.6;
}

.ax-hero .hx-eyebrow,
.dashboard-hero .dashboard-eyebrow {
  opacity: 0;
  animation: hx-fade-up 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 60ms forwards;
}

.ax-hero .ax-lede,
.dashboard-hero .ax-lede {
  opacity: 0;
  animation: hx-fade-up 640ms cubic-bezier(0.22, 0.61, 0.36, 1) 460ms forwards;
}

.ax-hero .brand-script-note,
.dashboard-hero .brand-script-note {
  opacity: 0;
  animation: hx-fade-up 640ms cubic-bezier(0.22, 0.61, 0.36, 1) 600ms forwards;
}

/* ---------- shared panel depth ---------- */

.order-panel,
.month-card-v2,
.occasion-detail-v2,
.upcoming-card-v2,
.fulfillment-card-v2,
.builder-panel,
.preview-panel,
.side-rail .action-card,
.dashboard-panel,
.fulfillment-status-card,
.calendar-stat-strip {
  border-radius: 16px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 120px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 10px 30px rgba(33, 39, 34, 0.08),
    0 32px 72px rgba(33, 39, 34, 0.06);
}

/* ---------- Gallery ---------- */

.gallery-hero.ax-hero {
  margin-bottom: 34px;
  padding-top: 14px;
}

.gallery-hero .ax-lede {
  max-width: 30em;
}

.gallery-hero .gallery-motion-toggle {
  opacity: 0;
  animation: hx-fade-up 640ms cubic-bezier(0.22, 0.61, 0.36, 1) 700ms forwards;
}

.gallery-filter-bar button {
  padding: 11px 19px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 780;
  letter-spacing: 0.02em;
  transition:
    transform 160ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease;
}

.gallery-filter-bar button:hover {
  border-color: var(--ink);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

.gallery-filter-bar button.is-active {
  color: #fff7ef;
  background: linear-gradient(165deg, #11382e, #092c25);
  border-color: #092c25;
  box-shadow: 0 10px 24px rgba(9, 44, 37, 0.24);
}

.gallery-wall-shell {
  position: relative;
}

.gallery-wall-shell::before,
.gallery-wall-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(40px, 7vw, 110px);
  pointer-events: none;
}

.gallery-wall-shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), rgba(255, 249, 243, 0));
}

.gallery-wall-shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), rgba(255, 249, 243, 0));
}

.gallery-card {
  padding: 10px 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 280ms ease;
}

.gallery-card:hover {
  transform: translateY(-7px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

.gallery-card img {
  border-radius: 8px;
}

.gallery-card figcaption {
  padding-top: 11px;
  margin-top: 11px;
  border-top: 1px dashed var(--line);
}

.gallery-card figcaption span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gallery-card figcaption strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.15;
}

.gallery-card figcaption small {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Create ---------- */

.create-ax-hero {
  align-items: center;
}

.ax-proofline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 26px 28px;
  list-style: none;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 10px 30px rgba(33, 39, 34, 0.08),
    0 32px 72px rgba(33, 39, 34, 0.06);
}

.ax-proofline li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

.ax-proofline li + li {
  border-top: 1px dashed var(--line-strong);
}

.ax-proofline svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 12px;
}

.ax-proofline strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.ax-proofline span {
  color: var(--muted-strong);
  font-size: 15px;
}

.workspace-step-tag {
  color: var(--ink);
  letter-spacing: 0.16em;
}

.builder-panel select,
.builder-panel input[type="text"],
.builder-panel textarea {
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 180ms ease;
}

.builder-panel select:focus,
.builder-panel input[type="text"]:focus,
.builder-panel textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(244, 90, 70, 0.14);
  outline: none;
}

.preview-view.is-active {
  animation: ax-pane-in 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes ax-pane-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Calendar ---------- */

.calendar-page-v2 .calendar-topline {
  align-items: center;
  margin-bottom: 30px;
}

.calendar-stat-strip {
  min-height: 0;
  padding: 26px 28px;
}

.calendar-stat-strip article {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0 22px;
}

.calendar-stat-strip article + article {
  border-left: 1px dashed var(--line-strong);
}

.calendar-stat-strip .stat-icon {
  display: none;
}

.calendar-stat-strip article div {
  display: grid;
  gap: 3px;
  justify-items: start;
}

.calendar-stat-strip strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 2.8vw, 46px);
  font-weight: 600;
  line-height: 1;
}

.calendar-stat-strip article span {
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.calendar-stat-strip article button {
  padding: 0;
  color: var(--coral-dark);
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(244, 90, 70, 0.5);
  font-size: 14.5px;
  font-weight: 800;
}

.calendar-stat-strip article button:disabled {
  color: var(--muted);
  border-bottom-color: var(--line-strong);
  cursor: default;
}

.calendar-step-rail {
  position: relative;
  padding: 6px 2px 26px;
}

.calendar-step-rail article span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--coral);
  background: #fff;
  border: 1.5px solid rgba(15, 42, 36, 0.22);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.calendar-step-rail article strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
}

.calendar-step-rail article small {
  color: var(--muted-strong);
}

.calendar-step-rail i {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 15px);
}

.calendar-grid-v2 .calendar-day {
  border-radius: 10px;
  transition: background-color 150ms ease;
}

.calendar-grid-v2 .calendar-day:hover {
  background: rgba(244, 90, 70, 0.055);
}

/* Card Credits — premium dark module */

.credit-card-v2 {
  background:
    radial-gradient(circle at 88% 8%, rgba(244, 90, 70, 0.22), transparent 16rem),
    linear-gradient(165deg, #11382e, #092c25);
  border: 1px solid rgba(9, 44, 37, 0.9);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(9, 44, 37, 0.28);
}

.credit-card-v2 .credit-heading h2 {
  color: #fffaf2;
  font-family: var(--serif);
}

.credit-card-v2 .credit-heading span {
  color: rgba(255, 247, 239, 0.66);
}

.credit-card-v2 .credit-stats strong {
  color: #fffaf2;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
}

.credit-card-v2 .credit-stats span {
  color: rgba(255, 247, 239, 0.62);
}

.credit-card-v2 .manage-plan-button {
  color: rgba(255, 247, 239, 0.55);
  background: transparent;
  border-color: rgba(255, 247, 239, 0.2);
}

/* ---------- Orders ---------- */

.order-progress {
  margin-bottom: 34px;
}

.order-progress i {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 15px);
}

.order-progress strong {
  width: 38px;
  height: 38px;
  transition: transform 200ms ease, box-shadow 220ms ease;
}

.order-progress .is-current strong {
  animation: ax-halo 2.4s ease-in-out infinite;
}

@keyframes ax-halo {
  0%, 100% { box-shadow: 0 10px 24px rgba(255, 81, 63, 0.22), 0 0 0 0 rgba(244, 90, 70, 0.28); }
  50% { box-shadow: 0 10px 24px rgba(255, 81, 63, 0.22), 0 0 0 9px rgba(244, 90, 70, 0); }
}

.your-card-panel .order-card-visual {
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Orders "Your Card" — front card shown heroically with the inside peeking
   behind, matching the Calendar selected-occasion duo. */
.order-card-duo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

/* When the inside peek is showing, the front is centered but the peek protrudes
   right; nudge the whole group left so the composition reads centered. With no
   peek (fallback / front-only), the front stays centered on its own. */
.order-card-duo:has(.order-duo-inside:not([hidden])) {
  transform: translateX(-10.5%);
}

.order-card-duo figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(33, 39, 34, 0.28);
  background: #fff;
}

.order-card-duo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-duo-front {
  position: relative;
  z-index: 2;
  width: clamp(236px, 66%, 296px);
  aspect-ratio: 2 / 3;
  transform: rotate(-2.5deg);
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.order-duo-front .order-card-scene {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.order-duo-inside {
  position: absolute;
  z-index: 1;
  width: clamp(220px, 61%, 276px);
  aspect-ratio: 2 / 3;
  transform: translateX(33%) rotate(4deg);
  opacity: 0.94;
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.order-card-visual:hover .order-duo-front {
  transform: rotate(-1deg) translateY(-5px);
}

.order-card-visual:hover .order-duo-inside {
  transform: translateX(38%) rotate(6deg) translateY(-3px);
}

.order-card-visual:not(.has-live-card) .order-duo-inside {
  display: none;
}

.order-total-panel {
  position: relative;
  background-color: #fffdf8;
}

.order-total-panel dl div {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.order-total-panel dl div:last-child {
  border-bottom: 0;
}

.order-total-panel .total-row dt,
.order-total-panel .total-row dd {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.order-total-panel .total-row dd {
  color: var(--coral-dark);
}

.order-total-panel::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: -7px;
  left: 6px;
  height: 14px;
  background-image: radial-gradient(circle at 9px 0, var(--paper) 5.5px, transparent 6.5px);
  background-size: 19px 14px;
  background-repeat: repeat-x;
}

.delivery-choice-card {
  border-radius: 13px;
  transition: transform 200ms ease, box-shadow 240ms ease, border-color 180ms ease, background-color 180ms ease;
}

.delivery-choice-card.is-selected {
  border-color: var(--coral);
  background: linear-gradient(180deg, #fff7f3, #fffdfa);
  box-shadow: 0 0 0 3px rgba(244, 90, 70, 0.13), var(--shadow-sm);
}

/* ---------- Mailing ---------- */

.fulfillment-hero.ax-hero {
  align-items: center;
  margin-bottom: 30px;
}

.fulfillment-status-card strong {
  font-size: 24px;
}

.fulfillment-mode-rail {
  gap: 10px;
}

.fulfillment-mode-rail button {
  border-radius: 13px;
  transition: transform 180ms ease, background-color 200ms ease, color 200ms ease, box-shadow 220ms ease;
}

.fulfillment-mode-rail button:hover {
  transform: translateY(-2px);
}

.fulfillment-mode-rail button.is-active {
  color: #fff7ef;
  background: linear-gradient(165deg, #11382e, #092c25);
  border-color: #092c25;
  box-shadow: 0 12px 28px rgba(9, 44, 37, 0.26);
}

.fulfillment-mode-rail button.is-active strong {
  color: #fffaf2;
}

.fulfillment-mode-rail button.is-active small {
  color: rgba(255, 247, 239, 0.66);
}

.fulfillment-panel.is-active {
  animation: ax-pane-in 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.consumer-status-list li.is-done strong {
  color: var(--ink);
}

.printer-instructions-panel pre {
  padding: 18px 20px;
  background: #fbf3e7;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

/* ---------- Dashboard ---------- */

.dashboard-shell {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 26px;
}

.dashboard-sidebar {
  min-height: 0;
  padding: 24px 18px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.dashboard-menu a {
  border-radius: 10px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-menu a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(2px);
}

.dashboard-menu a.active {
  color: var(--coral-dark);
  background: var(--coral-soft);
  border-color: rgba(244, 90, 70, 0.22);
}

.dashboard-calendar-card {
  background:
    radial-gradient(circle at 86% 10%, rgba(244, 90, 70, 0.2), transparent 11rem),
    linear-gradient(165deg, #11382e, #092c25);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(9, 44, 37, 0.26);
}

.dashboard-calendar-card strong {
  color: #fffaf2;
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
}

.dashboard-calendar-card p {
  color: rgba(255, 247, 239, 0.66);
}

.dashboard-calendar-icon {
  color: #fff7ef;
  background: rgba(244, 90, 70, 0.85);
}

.dashboard-hero {
  padding: 8px 4px 12px;
}

.dashboard-hero .ax-lede strong {
  color: var(--ink);
}

.dashboard-hero-actions img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transform: rotate(3deg);
}

.dashboard-panel h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.dashboard-panel {
  transition: transform 220ms ease, box-shadow 260ms ease;
}

.dashboard-panel:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 16px 38px rgba(33, 39, 34, 0.1),
    0 40px 80px rgba(33, 39, 34, 0.07);
}

/* ---------- responsive system ---------- */

body {
  min-width: 0;
}

@media (max-width: 1240px) {
  .intro,
  .calendar-page-v2 .calendar-topline,
  .fulfillment-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .ax-proofline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px 22px;
  }

  .ax-proofline li + li {
    border-top: 0;
    border-left: 1px dashed var(--line-strong);
    padding-left: 18px;
  }

  .workspace {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  }

  .workspace .side-rail {
    grid-column: 1 / -1;
  }

  .calendar-workbench {
    grid-template-columns: 1fr;
  }

  .order-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .order-grid-v2 .order-side-stack {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .fulfillment-workspace {
    grid-template-columns: 1fr;
  }

  .fulfillment-mode-rail {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .fulfillment-mode-rail button {
    flex: 1;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
  }

  .dashboard-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dashboard-calendar-card {
    grid-column: 1 / -1;
  }

  .hx-hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 40px;
  }

  .hx-hero-stage {
    height: clamp(380px, 52vw, 520px);
  }

  .hx-journey-grid {
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .ax-title {
    font-size: clamp(40px, 10vw, 58px);
  }

  .ax-eph-stamp {
    width: 52px;
    height: 64px;
  }

  .ax-eph-stamp img {
    width: 32px;
  }

  .gallery-hero.ax-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .gallery-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-filter-bar button {
    flex: none;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .ax-proofline {
    grid-template-columns: 1fr;
  }

  .ax-proofline li + li {
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
    padding-left: 0;
  }

  .calendar-stat-strip {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }

  .calendar-stat-strip article {
    padding: 0 14px;
  }

  .calendar-stat-strip article:nth-child(3) {
    border-left: 0;
  }

  .calendar-step-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .calendar-step-rail i {
    display: none;
  }

  .order-progress {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    justify-content: start;
  }

  .order-progress i {
    display: none;
  }

  .order-grid-v2,
  .order-grid-v2 .order-side-stack {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  /* HOME X mobile */

  /* The headline is three AUTHORED lines ("One-of-one cards" / "for someone
     you love," / "mailed for you"). At the old size the longest line was
     wider than a phone and wrapped mid-phrase, orphaning "cards" and "love,"
     on their own lines. Size so the longest line always fits the viewport
     (measured ~9.9px of width per px of font for that line), so each line
     holds and the breaks stay where they were written. (July 24, 2026) */
  .hx-headline {
    font-size: min(60px, calc(9.4vw - 3px));
  }

  .hx-hero-inner {
    padding-inline: 16px;
  }

  .hx-hero-stage {
    height: clamp(300px, 78vw, 420px);
  }

  .hx-card {
    width: clamp(150px, 36vw, 220px);
  }

  .hx-marquee-track span {
    font-size: 20px;
  }

  .hx-section-head h2 {
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .hx-journey .hx-sticky,
  .hx-strip-head,
  .hx-strip-track {
    padding-inline: 20px;
  }

  .hx-journey-grid {
    grid-template-columns: 1fr;
  }

  .hx-statement-line {
    font-size: clamp(34px, 9.5vw, 54px);
  }

  .hx-strip-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hx-strip-track figure {
    width: clamp(200px, 56vw, 260px);
  }

  .hx-proof {
    padding-inline: 20px;
  }

  .hx-proof-grid {
    grid-template-columns: 1fr;
  }

  .hx-postcard {
    grid-template-columns: 1fr;
    transform: none;
  }

  .hx-postcard-msg {
    border-right: 0;
    border-bottom: 1px dashed var(--line-strong);
    padding: 30px 26px;
  }

  .home-cta-band {
    padding-inline: 22px;
  }

  .cta-band-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .ax-title {
    font-size: clamp(36px, 11.5vw, 46px);
  }

  .ax-lede {
    font-size: 17px;
  }

  .calendar-stat-strip {
    grid-template-columns: 1fr 1fr;
    padding: 20px 16px;
  }

  .calendar-step-rail {
    grid-template-columns: 1fr;
  }

  .order-progress {
    grid-template-columns: 1fr;
  }

  .hx-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hx-hero-actions .primary-button,
  .hx-ghost-button {
    justify-content: center;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ax-hero .hx-eyebrow,
  .dashboard-hero .dashboard-eyebrow,
  .ax-hero .ax-lede,
  .dashboard-hero .ax-lede,
  .ax-hero .brand-script-note,
  .dashboard-hero .brand-script-note,
  .gallery-hero .gallery-motion-toggle,
  .preview-view.is-active,
  .fulfillment-panel.is-active,
  .order-progress .is-current strong {
    animation: none;
    opacity: 1;
  }

  .ax-eph {
    transform: rotate(var(--ax-rot, 0deg)) !important;
  }

  .gallery-card,
  .gallery-filter-bar button,
  .delivery-choice-card,
  .dashboard-panel,
  .dashboard-menu a,
  .fulfillment-mode-rail button,
  .your-card-panel .order-card-visual {
    transition: none;
  }
}

/* ---------- AX mobile navigation (bottom tab bar) ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: flex !important;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    gap: 6px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -10px 30px rgba(33, 39, 34, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .nav-links a {
    flex: none;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 15.5px;
    font-weight: 780;
  }

  .nav-links a svg {
    display: none;
  }

  .nav-links a.active {
    color: var(--coral-dark);
    background: var(--coral-soft);
  }

  .nav-links a.active::after {
    display: none;
  }

  main {
    padding-bottom: 92px;
  }

  .home-cta-band {
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  /* backdrop-filter makes .topbar the containing block for the
     fixed bottom tab bar; trade the blur for a solid surface so
     the nav can pin to the real viewport. */
  .topbar {
    background: #fffdfa;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ============================================================
   Envelope refinement (June 10, 2026)
   Journey step 4 now shows a true envelope FRONT: handwritten
   address center, return address top-left, stamp top-right, and
   a circular cancellation postmark that strikes in on arrival.
   Replaces the old flap/wax-seal back-of-envelope composition.
   ============================================================ */

.hx-envelope {
  position: relative;
  width: clamp(420px, 36vw, 520px);
  aspect-ratio: 7 / 5;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%),
    repeating-linear-gradient(0deg, rgba(15, 42, 36, 0.013) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(15, 42, 36, 0.013) 0 1px, transparent 1px 3px),
    linear-gradient(168deg, #fdf7ec, #f5ead7);
  border: 1px solid rgba(15, 42, 36, 0.13);
  border-radius: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(15, 42, 36, 0.05),
    0 2px 4px rgba(33, 39, 34, 0.07),
    0 20px 44px rgba(33, 39, 34, 0.15),
    0 44px 90px rgba(33, 39, 34, 0.1);
  transform: rotate(-1.6deg);
}

.hx-env-flap,
.hx-env-seal {
  display: none;
}

.hx-env-return {
  position: absolute;
  top: 22px;
  left: 26px;
  color: rgba(20, 53, 44, 0.78);
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.32;
}

.hx-env-address {
  position: absolute;
  top: 50%;
  left: 47%;
  transform: translate(-50%, -42%);
  color: #1c382f;
  font-family: var(--hand);
  font-size: 24px;
  line-height: 1.42;
}

.hx-env-address strong {
  display: block;
  margin-bottom: 2px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.hx-env-stamp {
  position: absolute;
  top: 18px;
  right: 22px;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 62px;
  height: 76px;
  padding: 6px;
  background: #fffdfa;
  border: 1px dashed rgba(15, 42, 36, 0.32);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(33, 39, 34, 0.12);
  transform: rotate(2deg);
}

.hx-env-stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(15, 42, 36, 0.12);
  border-radius: 2px;
  pointer-events: none;
}

.hx-env-stamp img {
  width: 36px;
}

.hx-env-stamp small {
  color: rgba(15, 42, 36, 0.66);
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hx-env-postmark {
  position: absolute;
  top: 10px;
  right: -14px;
  width: 310px;
  height: auto;
  color: rgba(24, 56, 47, 0.55);
  transform: rotate(-6deg);
  transform-origin: 22% 50%;
  pointer-events: none;
}

.hx-env-postmark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hx-env-postmark .hx-pm-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hx-env-postmark text {
  fill: currentColor;
  stroke: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hx-env-postmark .hx-pm-date {
  font-size: 15px;
  letter-spacing: 0.12em;
}

.hx-env-postmark .hx-pm-year {
  font-size: 11.5px;
  letter-spacing: 0.18em;
}

.hx-vis-mail .hx-env-postmark {
  opacity: 0;
}

.hx-vis-mail.is-on .hx-env-postmark {
  animation: hx-postmark-strike 480ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 380ms forwards;
}

@keyframes hx-postmark-strike {
  0% {
    opacity: 0;
    transform: rotate(-14deg) scale(1.55);
  }
  62% {
    opacity: 1;
    transform: rotate(-5deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}

/* quieter route so the story line never fights the artwork */

.hx-route-draw {
  stroke: rgba(244, 90, 70, 0.34);
}

@media (max-width: 900px) {
  .hx-envelope {
    width: min(86vw, 440px);
  }

  .hx-env-address {
    font-size: 20px;
  }

  .hx-env-address strong {
    font-size: 25px;
  }

  .hx-env-postmark {
    width: 250px;
    right: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-vis-mail .hx-env-postmark {
    opacity: 1;
    animation: none;
  }
}

/* ============================================================
   Create UX refinements (June 10, 2026, tester feedback)
   1. Restores + upgrades the select caret (the AX background
      shorthand had wiped the CSS-drawn chevron).
   2. Branded style picker with per-style artwork + description.
   3. "Help me write it" message composer.
   ============================================================ */

/* ---------- 1. caret affordance, brand chevron ---------- */

.builder-panel select,
.writer-panel select,
.selected-field-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fffdfa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23de4634' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-size: 15px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* ---------- 2. branded style picker ---------- */

.style-picker {
  position: relative;
}

.style-picker.has-custom select#style {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.style-trigger {
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 7px 12px 7px 7px;
  text-align: left;
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.style-trigger:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.style-trigger:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.style-trigger img {
  width: 46px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(33, 39, 34, 0.18);
}

.style-trigger strong {
  display: block;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 800;
}

.style-trigger small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-trigger .style-caret {
  width: 17px;
  height: 17px;
  color: var(--coral-dark);
  transition: transform 200ms ease;
}

.style-picker.is-open .style-trigger .style-caret {
  transform: rotate(180deg);
}

.style-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: 384px;
  padding: 8px;
  overflow: auto;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(33, 39, 34, 0.12), 0 30px 70px rgba(33, 39, 34, 0.16);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.style-picker.is-open .style-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.style-option {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.style-option:hover {
  background: var(--coral-soft);
}

.style-option.is-selected {
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1.5px rgba(244, 90, 70, 0.5);
}

.style-option img {
  width: 46px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(33, 39, 34, 0.16);
}

.style-option strong {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
}

.style-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- 3. "Help me write it" ---------- */

.writer-row {
  margin: -6px 0 4px;
}

.writer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  border: 1px dashed rgba(244, 90, 70, 0.45);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.writer-toggle:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

.writer-toggle svg {
  width: 14px;
  height: 14px;
}

.writer-toggle[aria-expanded="true"] {
  color: #fff7ef;
  background: var(--coral);
  border-style: solid;
}

.writer-panel {
  margin-top: 10px;
  padding: 16px;
  background: #fffaf2;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

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

.writer-head strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.writer-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 14px;
}

.writer-fields {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.writer-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writer-field span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
  color: var(--muted);
}

.writer-field select,
.writer-field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: #fffdfa;
}

.writer-field input {
  min-height: 42px;
  padding: 0 13px;
}

.writer-field input:focus,
.writer-panel select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(244, 90, 70, 0.14);
  outline: none;
}

.writer-tones {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.writer-tones > span {
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 3px;
}

.writer-tones button {
  padding: 7px 14px;
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: all 150ms ease;
}

.writer-tones button.is-on {
  color: #fff7ef;
  background: var(--coral);
  border-color: var(--coral);
}

.writer-draft {
  width: 100%;
  margin-top: 12px;
  font-size: 15.5px;
}

.writer-status {
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 14.5px;
}

.writer-status.is-error {
  color: var(--coral-dark);
}

.writer-drafts {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.writer-draft-option {
  padding: 12px 14px;
  text-align: left;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.writer-draft-option:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

.writer-draft-option.is-used {
  background: var(--coral-soft);
  border-color: rgba(244, 90, 70, 0.5);
}

.writer-draft-option p {
  margin: 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.35;
}

.writer-draft-option small {
  display: block;
  margin-top: 6px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.writer-foot {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 16.5px;
}

@media (prefers-reduced-motion: reduce) {
  .style-menu,
  .style-trigger,
  .style-trigger .style-caret,
  .writer-toggle,
  .writer-tones button,
  .writer-draft-option {
    transition: none;
  }
}

/* Fix (June 10): the style trigger's nowrap blurb set an unshrinkable
   min-content width, forcing the whole builder column wider than the
   Personalize panel (worst with longer Classic blurbs). Let the grid
   cells shrink so the ellipsis can actually engage. */

.style-picker,
.style-picker .style-trigger,
.field-row .style-picker select {
  min-width: 0;
  max-width: 100%;
}

.style-trigger > span {
  min-width: 0;
  overflow: hidden;
}

.style-option > span {
  min-width: 0;
}

/* ============================================================
   Calendar QC polish (June 10, 2026)
   Larger selected-occasion preview with a real card duo, a
   designed empty state (no more stale shell photos), expand
   affordance, and a working collapse for the detail panel.
   ============================================================ */

.occasion-detail-v2 {
  /* Sep 7, 2026: 300px of art, and the detail column may shrink. At 372px the
     third field column and the Continue button were clipped on 1280 and 1366
     laptops (the one-column fallback only starts below 1240px). */
  grid-template-columns: 300px minmax(0, 1fr);
}

@media (max-width: 1400px) and (min-width: 901px) {
  .selected-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  .selected-footer .reminder-note {
    flex: 1 1 100%;
    max-width: none;
  }

  .selected-footer button {
    white-space: nowrap;
  }
}

.selected-card-art {
  min-height: 318px;
  padding: 22px;
  overflow: hidden;
}

/* card duo */

.selected-card-duo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.selected-card-duo figure {
  margin: 0;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(33, 39, 34, 0.28);
  background: #fff;
}

.selected-card-duo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo-front {
  position: relative;
  z-index: 2;
  width: 182px;
  aspect-ratio: 2 / 3;
  transform: rotate(-2.5deg);
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.duo-inside {
  position: absolute;
  z-index: 1;
  width: 168px;
  aspect-ratio: 2 / 3;
  transform: translateX(64px) rotate(4deg);
  opacity: 0.94;
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.selected-card-art.has-approved-art:hover .duo-front {
  transform: rotate(-1deg) translateY(-4px);
}

.selected-card-art.has-approved-art:hover .duo-inside {
  transform: translateX(72px) rotate(6deg) translateY(-2px);
}

.selected-card-art.is-placeholder .selected-card-duo,
.selected-card-art.is-placeholder .selected-card-expand {
  display: none;
}

.selected-card-art.has-approved-art .selected-card-empty {
  display: none;
}

/* designed empty state */

.selected-card-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  padding: 30px 22px;
  text-align: center;
  background: rgba(255, 253, 248, 0.72);
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.selected-card-art.is-placeholder:hover .selected-card-empty {
  border-color: var(--coral);
  background: #fff7f3;
}

.selected-card-empty .empty-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 62px;
  margin-bottom: 4px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  transform: rotate(-5deg);
}

.selected-card-empty .empty-mark img {
  width: 30px;
}

.selected-card-empty strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.selected-card-empty span {
  max-width: 21em;
  color: var(--muted-strong);
  font-size: 14.5px;
  line-height: 1.5;
}

.selected-card-empty em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--coral-dark);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selected-card-empty em svg {
  width: 13px;
  height: 13px;
}

/* expand affordance */

.selected-card-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 200ms ease;
}

.selected-card-expand svg {
  width: 13px;
  height: 13px;
  color: var(--coral-dark);
}

.selected-card-art.has-approved-art:hover .selected-card-expand,
.selected-card-art.has-approved-art:focus-visible .selected-card-expand {
  opacity: 1;
  transform: none;
}

/* collapsible detail panel */

.selected-detail-header button[aria-label="Collapse details"] svg,
.selected-detail-header button[aria-label="Expand details"] svg {
  transition: transform 220ms ease;
}

.selected-detail-panel.is-collapsed .selected-field-grid,
.selected-detail-panel.is-collapsed .selected-footer {
  display: none;
}

.selected-detail-panel.is-collapsed .selected-detail-header button svg {
  transform: rotate(180deg);
}

@media (max-width: 1240px) {
  .occasion-detail-v2 {
    grid-template-columns: 1fr;
  }

  .selected-card-art {
    border-right: 0;
    border-bottom: 1px solid #dfd5c9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .duo-front,
  .duo-inside,
  .selected-card-expand,
  .selected-card-empty {
    transition: none;
  }
}

/* ============================================================
   Macro notes pass (June 11, 2026)
   1. Hero stack: hover fan-out + click-to-flip interiors.
   2. Writer toggle lives inside the Inside Message frame.
   ============================================================ */

/* ---------- hero card flip ---------- */

.hx-card {
  overflow: visible;
  cursor: pointer;
  background: none;
  box-shadow: none;
}

.hx-card-flip {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.hx-card.is-flipped .hx-card-flip {
  transform: rotateY(180deg);
}

.hx-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hx-face-back {
  transform: rotateY(180deg);
}

.hx-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

/* hover fan-out: the stack spreads so you can see more of each card */

.hx-hero-stage:hover .hx-card-b {
  transform:
    translate(-50%, -50%)
    rotateY(calc(var(--hx-tilt-x) * 0.65)) rotateX(calc(var(--hx-tilt-y) * 0.65))
    translateX(72%) translateY(2%) rotate(11deg);
}

.hx-hero-stage:hover .hx-card-c {
  transform:
    translate(-50%, -50%)
    rotateY(calc(var(--hx-tilt-x) * 0.4)) rotateX(calc(var(--hx-tilt-y) * 0.4))
    translateX(-74%) translateY(5%) rotate(-14deg);
}

.hx-card-b:hover,
.hx-card-c:hover {
  z-index: 4;
}

/* ---------- writer bar inside the message frame ---------- */

.message-control.has-writer-bar {
  display: block;
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 180ms ease;
}

.message-control.has-writer-bar:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(244, 90, 70, 0.14);
}

.message-control.has-writer-bar textarea#insideMessage {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: none;
  outline: none;
}

/* Idea starters ghost-type through this placeholder. Keep it clearly lighter
   than typed text so nobody reads an example as their own message. */
.message-control.has-writer-bar textarea#insideMessage::placeholder {
  color: #a2ada8;
  opacity: 1;
}

.message-control.has-writer-bar textarea#insideMessage:focus {
  border: 0;
  box-shadow: none;
}

.writer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  border-top: 1px dashed var(--line);
}

.message-control.has-writer-bar .char-count {
  position: static;
  flex: none;
}

.writer-bar .writer-toggle {
  padding: 6px 12px;
  font-size: 13px;
  border-style: dashed;
}

.writer-row {
  margin: 6px 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hx-card-flip {
    transition: none;
  }

  .hx-hero-stage:hover .hx-card-b,
  .hx-hero-stage:hover .hx-card-c {
    transform:
      translate(-50%, -50%)
      translateX(46%) translateY(4%) rotate(8deg);
  }

  .hx-hero-stage:hover .hx-card-c {
    transform:
      translate(-50%, -50%)
      translateX(-48%) translateY(7%) rotate(-11deg);
  }
}

/* ============================================================
   Fold-open hero + gallery polish (June 11, 2026)
   ============================================================ */

/* ---------- hero card book ---------- */

.hx-card-book {
  position: absolute;
  inset: 0;
  perspective: 2200px;
  transform-style: preserve-3d;
}

.hx-page-right {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.hx-page-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  border-radius: 12px;
  transition: transform 950ms cubic-bezier(0.4, 0.05, 0.18, 1);
  box-shadow: 0 8px 26px rgba(33, 39, 34, 0.28);
}

.hx-card.is-open .hx-page-cover {
  transform: rotateY(-178deg);
}

.hx-card.is-open {
  z-index: 9;
  transform: translate(-50%, -50%) translateX(27%) scale(0.96) !important;
}

.hx-hero-stage.has-open .hx-card:not(.is-open) {
  opacity: 0.28;
  filter: saturate(0.6);
  pointer-events: none;
}

.hx-hero-stage.has-open .hx-postmark,
.hx-hero-stage.has-open .hx-stage-stamp {
  opacity: 0.06;
}

/* ---------- gallery polish ---------- */

.gallery-row-label {
  margin: 0 0 10px;
  padding: 0 clamp(20px, 4vw, 60px);
  color: var(--coral);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-row {
  margin-bottom: 34px;
}

.gallery-track {
  gap: 24px;
}

.gallery-row:nth-child(1) .gallery-track { animation-duration: 104s; }
.gallery-row:nth-child(2) .gallery-track { animation-duration: 122s; }
.gallery-row:nth-child(3) .gallery-track { animation-duration: 112s; }

.gallery-card.is-cover {
  width: clamp(220px, 17.5vw, 296px);
}

.gallery-card.is-spread {
  width: clamp(356px, 30vw, 500px);
}

/* row pause + spotlight on hover */

.gallery-row:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-track .gallery-card {
  transition: opacity 240ms ease, transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 280ms ease;
}

.gallery-track:hover .gallery-card {
  opacity: 0.45;
}

.gallery-track:hover .gallery-card:hover {
  z-index: 2;
  opacity: 1;
  transform: translateY(-7px) scale(1.035);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

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

/* ---------- gallery lightbox ---------- */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 25, 20, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.gallery-lightbox-dialog {
  position: relative;
  display: grid;
  /* Sep 7, 2026: sized for the OPEN book. At 880px the folded-open spread
     (twice the closed card) lay over the title and the Make button. */
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.75fr);
  gap: 20px;
  align-items: center;
  width: min(1040px, 94vw);
  max-height: 88vh;
  padding: 26px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
  transform: translateY(14px) scale(0.97);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-lightbox.is-open .gallery-lightbox-dialog {
  transform: none;
}

.gallery-lightbox-art {
  margin: 0;
  display: grid;
  place-items: center;
}

.gallery-lightbox-art img {
  max-width: 100%;
  max-height: calc(88vh - 52px);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.gallery-lightbox-info h3 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.08;
}

.gallery-lightbox-style {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 15px;
  font-weight: 800;
}

.gallery-lightbox-note {
  margin: 0 0 18px;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease;
}

.gallery-lightbox-close:hover {
  transform: rotate(90deg);
}

.gallery-lightbox-close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .gallery-lightbox-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .gallery-lightbox-art img {
    max-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-page-cover,
  .gallery-lightbox,
  .gallery-lightbox-dialog,
  .gallery-track .gallery-card {
    transition: none;
  }
}

/* ============================================================
   GATE 0 REDESIGN LAYER — July 2, 2026
   Railed Create flow · generation-wait moment · How-it-works
   page · calendar onboarding · waitlist · sneaky snail ·
   uniform gallery + fold-open lightbox · consumer mail room
   ============================================================ */

/* ---------- Create rail flow ---------- */

.workspace.rail-flow {
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 26px;
}

.rail-flow .builder-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.rail-flow .builder-panel {
  display: grid;
  gap: 16px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.create-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 220ms ease, opacity 200ms ease;
}

.create-step.is-active {
  border-color: rgba(244, 90, 70, 0.55);
  box-shadow: 0 18px 48px rgba(33, 39, 34, 0.1);
}

.create-step.is-locked {
  opacity: 0.55;
}

.create-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  cursor: pointer;
}

.create-step.is-active .create-step-head,
.create-step.is-locked .create-step-head {
  cursor: default;
}

.create-step-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--coral);
  font-size: 17px;
  font-weight: 850;
  background: rgba(244, 90, 70, 0.1);
  border-radius: 50%;
  position: relative;
}

.create-step.is-active .create-step-num {
  color: #fff;
  background: var(--coral);
}

.create-step.is-complete .create-step-num {
  color: transparent;
  background: #0f7a4d;
}

.create-step.is-complete .create-step-num::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17.5px;
  font-weight: 800;
}

.create-step-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.create-step-title strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 600;
}

.create-step-summary {
  color: var(--muted-strong);
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.create-step-edit {
  flex: 0 0 auto;
  padding: 6px 12px;
  color: var(--coral-dark, #d64533);
  font-size: 14px;
  font-weight: 800;
  background: none;
  border: 1px solid rgba(244, 90, 70, 0.4);
  border-radius: 999px;
  cursor: pointer;
  display: none;
}

.create-step.is-complete:not(.is-active) .create-step-edit {
  display: inline-block;
}

.create-step-body {
  padding: 4px 18px 20px;
  display: grid;
  gap: 16px;
}

.create-step:not(.is-active) .create-step-body {
  display: none;
}

.create-step-continue {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.create-step-continue svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.create-step-3 .action-card {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.reroll-cap-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  text-wrap: balance; /* Oct 14: on a 393pt iPhone this stranded "quite it." */
}

.field-row.needs-attention {
  animation: gate0Shake 380ms ease;
}

@keyframes gate0Shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

/* keep the preview mockup the hero: receipts appear once art exists */

.rail-flow .preview-panel:not(.has-generated-preview) .personalization-label,
.rail-flow .preview-panel:not(.has-generated-preview) .preview-actions,
.rail-flow .preview-panel:not(.has-generated-preview) .approve-caption,
.rail-flow .preview-panel:not(.has-generated-preview) .reroll-note {
  display: none;
}

/* ---------- Generation-wait moment ---------- */

.generation-snail-lane {
  position: relative;
  height: 40px;
  margin-top: 4px;
}

.generation-snail-trail {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 12px;
  border-bottom: 2px dotted rgba(244, 90, 70, 0.45);
}

.generation-snail {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  filter: drop-shadow(0 2px 5px rgba(9, 44, 37, 0.16));
}

.preview-panel.is-generating .generation-snail {
  animation: gate0SnailCrawl 72s linear forwards, gate0SnailBob 1.7s ease-in-out infinite;
}

@keyframes gate0SnailCrawl {
  from { left: 0; }
  to { left: calc(100% - 74px); }
}

@keyframes gate0SnailBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

/* Type study, September 16, 2026 ("C, pencil note"): the handwriting
   stays, in ink, aligned left with the rest, like a note in the margin
   under the snail. Scoped under the card so it outranks the card's p
   rule; unscoped, that rule won and the line shipped bold and gray. */
.generation-progress-card .generation-wit {
  margin: 6px 0 0;
  color: var(--ink-deep);
  font-family: var(--hand);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
  text-wrap: pretty;
  opacity: 0;
  transition: opacity 260ms ease;
}

/* One clause per inline-block: the line breaks after the period or comma
   instead of orphaning the last word or two. A clause that is still too
   wide on its own falls back to normal wrapping. */
.generation-wit-clause {
  display: inline-block;
  text-wrap: balance;
}

.generation-wit.is-on {
  opacity: 1;
}

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

/* Scoped to .app-page + .is-active so this never out-cascades the page
   router (unscoped, it kept the page visible under every other tab and
   lost the grid gap when active — the "bleeding pages" bug). */
.app-page.howitworks-page.is-active {
  display: grid;
  gap: clamp(72px, 9vw, 130px);
  padding-bottom: clamp(64px, 8vw, 110px);
}

.hiw-loop,
.hiw-ways,
.hiw-plans,
.hiw-faq,
.hiw-promises {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* FAQ ACCORDIONS (July 28, 2026, brief 04 §5)
   Native <details>/<summary>: focusable, Enter/Space toggles, and the
   open state is announced, all without JS. The list is narrower than
   the grids above it because it is prose, not cards. */

.hiw-faq-list {
  display: grid;
  gap: 0;
  width: min(760px, 100%);
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.hiw-faq-item {
  border-bottom: 1px solid var(--line);
}

.hiw-faq-item summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 4px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
}

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

/* Own marker so the affordance survives the list-style reset above. */
.hiw-faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.hiw-faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.hiw-faq-item summary:hover {
  color: var(--coral-dark);
}

.hiw-faq-item summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.hiw-faq-body {
  padding: 0 4px 22px;
}

.hiw-faq-body p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.65;
}

.hiw-faq-body a {
  color: var(--coral-dark);
  font-weight: 640;
}

@media (prefers-reduced-motion: reduce) {
  .hiw-faq-item summary::after {
    transition: none;
  }
}

.hiw-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.hiw-loop-grid li {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hiw-loop-num {
  color: var(--coral);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.hiw-loop-grid strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.hiw-loop-grid p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.hiw-ways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.hiw-way-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* Cards stretch to equal height in the grid; the CTA rides the bottom
   edge so both buttons sit on one line no matter the copy length. */
.hiw-way-card > .primary-button,
.hiw-way-card > .secondary-button {
  margin-top: auto;
  align-self: flex-start;
}

.hiw-way-card.is-featured {
  border-color: rgba(244, 90, 70, 0.5);
  box-shadow: 0 24px 60px rgba(33, 39, 34, 0.1);
}

.hiw-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 11px;
  color: #fff;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--coral);
  border-radius: 999px;
}

/* The Beta pricing pills and the finding-our-feet note retired September 15,
   2026 (design review item 7): a clean number plus what it includes. */

.hiw-membership-soon {
  margin-top: 26px;
  padding: 30px 28px 28px;
  text-align: center;
}

.hiw-membership-soon h3 {
  margin: 0 0 8px;
}

.hiw-credits-note.hiw-membership-soon p {
  max-width: 52ch;
  margin: 0 auto;
  text-wrap: balance;
}

.hiw-membership-soon .hiw-waitlist-form {
  margin-top: 18px;
}

.hiw-membership-soon .hiw-waitlist-status {
  color: var(--muted-strong);
}

.hiw-badge-quiet {
  color: var(--ink);
  background: rgba(9, 44, 37, 0.08);
}

.hiw-way-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--coral);
  background: rgba(244, 90, 70, 0.1);
  border-radius: 12px;
}

.hiw-way-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hiw-way-card h3,
.hiw-plan h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.hiw-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.hiw-price strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.hiw-price span {
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 650;
}

.hiw-way-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiw-way-card ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.55;
}

.hiw-way-card ul li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
}

/* A spec line, not a benefit (July 28, 2026, brief 04 §6): no coral
   bullet, a hairline above it, quieter type. Reads as a fact with a
   shrug rather than a warning. */
.hiw-way-card ul li.hiw-way-spec {
  margin-top: 4px;
  padding-top: 10px;
  padding-left: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.hiw-way-card ul li.hiw-way-spec::before {
  display: none;
}

.hiw-way-card .primary-button,
.hiw-way-card .secondary-button {
  align-self: flex-start;
  margin-top: auto;
}

.hiw-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

/* The August 2026 ladder is three plans (the single card lives in the
   Two Ways grid above), so the row balances at three columns. */
.hiw-plans-grid.is-three {
  grid-template-columns: repeat(3, 1fr);
}

/* Join buttons exist in the markup from day one but only show once
   /api/status says subscriptions are on; until then the waitlist aside
   carries the section. Flipped by setupMembershipPlans in app.js. */
.hiw-plan-join {
  display: none;
  margin-top: 6px;
  justify-self: start;
}

.hiw-plans.is-live .hiw-plan-join {
  display: inline-flex;
}

.hiw-plans.is-live .hiw-membership-soon {
  display: none;
}

.hiw-plan {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hiw-plan.is-featured {
  border-color: rgba(244, 90, 70, 0.5);
  box-shadow: 0 18px 48px rgba(33, 39, 34, 0.1);
}

.hiw-plan.is-featured .hiw-badge {
  top: -12px;
  right: 14px;
}

.hiw-plan .hiw-price strong {
  font-size: 28px;
}

.hiw-plan-note {
  margin: 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.55;
}

.hiw-annual-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.hiw-annual-row article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(9, 44, 37, 0.04);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.hiw-annual-row strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.hiw-annual-row span {
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 650;
}

.hiw-credits-note {
  margin-top: 16px;
  padding: 20px 22px;
  background: rgba(244, 90, 70, 0.06);
  border: 1px solid rgba(244, 90, 70, 0.22);
  border-radius: 16px;
}

.hiw-credits-note h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 600;
}

.hiw-credits-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.65;
}

.hiw-promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hiw-promises article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hiw-promises article > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--coral);
  background: rgba(244, 90, 70, 0.1);
  border-radius: 50%;
}

.hiw-promises svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hiw-promises strong {
  display: block;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 750;
}

.hiw-promises p {
  margin: 3px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.55;
}

.hiw-waitlist {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(36px, 5vw, 56px);
  color: #fff;
  text-align: center;
  background: var(--ink-green, #092c25);
  border-radius: 22px;
}

.hiw-waitlist .home-eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.hiw-waitlist h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
}

.hiw-waitlist-inner > p {
  margin: 0 auto;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16.5px;
  line-height: 1.6;
}

.hiw-waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.hiw-waitlist-form input {
  width: min(320px, 60vw);
  padding: 13px 16px;
  color: var(--ink);
  font-size: 16.5px;
  background: #fff;
  border: none;
  border-radius: 10px;
}

.hiw-waitlist-form.is-joined input {
  opacity: 0.7;
}

.hiw-waitlist-status {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--hand);
  font-size: 18px;
}

/* ---------- Mail room (consumer only) ---------- */

.fulfillment-consumer-only .consumer-print-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.next-date-panel {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  background: rgba(244, 90, 70, 0.06);
  border-color: rgba(244, 90, 70, 0.28);
}

.next-date-panel h2 {
  margin: 0;
}

.next-date-panel p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.6;
}

.next-date-panel .primary-button {
  justify-self: start;
}

.next-date-panel small {
  color: var(--muted);
  font-size: 14px;
}

.next-date-mark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  opacity: 0.85;
}

.next-date-mark img {
  width: 100%;
  display: block;
}

/* ---------- Calendar: guided setup card + onboarding modal ---------- */

.calendar-guided-card .calendar-guided-copy {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.calendar-guided-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calendar-guided-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.calendar-onboarding {
  position: relative;
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 30px 30px 24px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.onboarding-head {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.onboarding-mark {
  width: 64px;
}

.onboarding-mark img {
  width: 100%;
  display: block;
}

.onboarding-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
}

.onboarding-sub {
  margin: 0;
  max-width: 400px;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.onboarding-dots i {
  width: 26px;
  height: 6px;
  background: rgba(9, 44, 37, 0.12);
  border-radius: 999px;
  transition: background 200ms ease;
}

.onboarding-dots i.is-on {
  background: rgba(244, 90, 70, 0.45);
}

.onboarding-dots i.is-done {
  background: var(--coral);
}

.onboarding-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.onboarding-fields label {
  display: grid;
  gap: 6px;
}

.onboarding-fields label span {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 750;
}

.onboarding-fields label span em {
  color: var(--coral-dark, #d64533);
  font-style: normal;
  font-weight: 650;
}

.onboarding-fields input,
.onboarding-fields select {
  padding: 11px 12px;
  color: var(--ink);
  font-size: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.onboarding-loves {
  grid-column: 1 / -1;
}

.onboarding-loves small {
  color: var(--muted);
  font-size: 14px;
}

.onboarding-status {
  margin: 14px 0 0;
  color: var(--coral-dark, #d64533);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.onboarding-foot {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Sneaky snail (corner peek-a-boo) ---------- */

.sneaky-snail {
  position: fixed;
  bottom: 0;
  left: 26px;
  z-index: 60;
  width: 118px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  transform: translateY(102%);
  transition: transform 1400ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sneaky-snail.is-out {
  display: block;
}

.sneaky-snail.is-right {
  left: auto;
  right: 26px;
}

.sneaky-snail.is-peeking {
  transform: translateY(34%);
}

.sneaky-snail img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(9, 44, 37, 0.14));
  animation: gate0SnailBob 2.1s ease-in-out infinite;
}

.sneaky-snail.is-right img {
  transform: scaleX(-1);
}

.sneaky-snail-bubble {
  position: absolute;
  bottom: 78%;
  left: 60%;
  padding: 7px 13px;
  color: #fff;
  font-family: var(--hand);
  font-size: 18px;
  white-space: nowrap;
  background: var(--ink-green, #092c25);
  border-radius: 12px 12px 12px 3px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.sneaky-snail.is-right .sneaky-snail-bubble {
  left: auto;
  right: 60%;
  border-radius: 12px 12px 3px 12px;
}

.sneaky-snail.is-talking .sneaky-snail-bubble {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Gallery: uniform wall + fold-open lightbox ---------- */

.gallery-card.is-cover,
.gallery-card.is-spread {
  width: clamp(220px, 17.5vw, 296px);
}

.gallery-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58vh, 520px);
  overflow: visible;
}

.gallery-lightbox-book {
  position: relative;
  width: min(280px, 26vw);
  aspect-ratio: 2 / 3;
  perspective: 2200px;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 900ms cubic-bezier(0.4, 0.05, 0.18, 1);
}

.lb-page-right {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lb-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  border-radius: 12px;
  transition: transform 950ms cubic-bezier(0.4, 0.05, 0.18, 1);
  box-shadow: 0 8px 26px rgba(33, 39, 34, 0.28);
}

.lb-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lb-face.lb-back {
  transform: rotateY(180deg);
}

.gallery-lightbox-book.is-open .lb-cover {
  transform: rotateY(-178deg);
}

.gallery-lightbox-book.is-open {
  transform: translateX(50%) scale(0.96);
}

.gallery-lightbox-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .workspace.rail-flow {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  }

  .hiw-loop-grid,
  .hiw-plans-grid,
  .hiw-plans-grid.is-three,
  .hiw-promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .workspace.rail-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hiw-ways-grid,
  .hiw-annual-row,
  .fulfillment-consumer-only .consumer-print-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-fields {
    grid-template-columns: 1fr;
  }

  .hiw-waitlist-form {
    flex-direction: column;
    align-items: center;
  }

  .hiw-waitlist-form input {
    width: 100%;
  }

  .gallery-lightbox-book {
    width: min(200px, 46vw);
  }

  /* When the cover swings open it lands to the LEFT of the spine, so the open
     two-page spread is centered on the spine, not on the book box. With
     translateX(0) the left page hung off the screen while the right sat empty.
     Shift right (like the desktop rule) so the full spread re-centers in the
     dialog, and scale down so both pages fit a phone. (July 24, 2026) */
  .gallery-lightbox-book.is-open {
    transform: translateX(42%) scale(0.72);
  }
}

@media (max-width: 560px) {
  .hiw-loop-grid,
  .hiw-plans-grid,
  .hiw-plans-grid.is-three,
  .hiw-promises {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-panel.is-generating .generation-snail,
  .sneaky-snail img {
    animation: none;
  }

  .sneaky-snail {
    display: none !important;
  }

  .gallery-lightbox-book,
  .lb-cover,
  .create-step,
  .generation-wit {
    transition: none;
  }

  .field-row.needs-attention {
    animation: none;
  }
}

/* rail-flow: step 3 owns the approve card at every width (the old
   mobile rule hid .action-card when it lived in the side rail) */
.rail-flow .create-step-3 .action-card {
  display: block;
}

/* Mail room, consumer-only: the old workspace grid reserved a 240px
   column for the removed admin mode rail — the single consumer panel
   was landing inside it. Full width now. */
.fulfillment-workspace.fulfillment-consumer-only {
  display: block;
}

/* ---------- Starting-point cards: show what each path makes ---------- */

.path-card-art {
  display: flex;
  gap: 7px;
  margin: -26px 0 12px 26px;
}

.path-card-art img {
  width: 46px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(33, 39, 34, 0.2);
}

.path-card-art img:nth-child(2) {
  transform: rotate(2.5deg) translateY(2px);
}

.path-card:hover .path-card-art img:nth-child(2),
.path-card.is-selected .path-card-art img:nth-child(2) {
  transform: rotate(4deg) translateY(1px);
}

/* ---------- Mail room next-date nudge: fill its cell gracefully ---------- */

.next-date-panel {
  align-content: center;
}

.next-date-panel h2,
.next-date-panel p {
  max-width: calc(100% - 56px);
}

/* ---------- Founder debug round (July 4, 2026) ---------- */

/* 1) Next-date nudge: same inner padding as its sibling cells (the 24px
   came from an enumerated panel list that predates this card) */
.next-date-panel {
  padding: 24px;
}

/* 2) Hero trio deadlock: while one card was open, the other two were
   pointer-events:none — clicking them did nothing until the stage was
   closed ("the cards stopped opening"). Dimmed cards are clickable now,
   and clicking one switches the fold to it. */
.hx-hero-stage.has-open .hx-card:not(.is-open) {
  pointer-events: auto;
  cursor: pointer;
}

/* 3) Generation progress card: +50% for demo legibility (founder's dad
   couldn't read it) */
.preview-panel .generation-progress-card {
  top: 30px;
  left: 30px;
  width: min(390px, 58%);
  padding: 26px 24px 24px;
}

.preview-panel .generation-progress-card h3 {
  max-width: 320px;
  margin-bottom: 18px;
  font-size: 30px;
}

.preview-panel .generation-steps {
  gap: 14px;
}

.preview-panel .generation-steps li {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  font-size: 17px;
}

.preview-panel .generation-steps li > span {
  width: 24px;
  height: 24px;
}

.preview-panel .generation-steps li > span svg {
  width: 14px;
  height: 14px;
}

.preview-panel .generation-steps li + li::before {
  top: -14px;
  left: 12px;
  height: 14px;
}

.preview-panel .generation-progress-card #generationStepNote {
  font-size: 15px;
}

.preview-panel .generation-wit {
  /* 23px is the design size and holds from ~400px up. Below that the card
     is too narrow for a whole sentence, so the size steps down rather than
     letting a sentence spill its last word onto a line of its own. */
  font-size: clamp(19px, 5.8vw, 23px);
}

.preview-panel .generation-snail-lane {
  position: relative;
  height: 56px;
  overflow: hidden;
}

.preview-panel .generation-snail {
  top: -26px;
  bottom: auto;
  width: 108px;
}

@keyframes gate0SnailCrawlWide {
  from { left: 0; }
  to { left: calc(100% - 108px); }
}

.preview-panel.is-generating .generation-snail {
  animation: gate0SnailCrawlWide 72s linear forwards, gate0SnailBob 1.7s ease-in-out infinite;
}

@media (max-width: 900px) {
  .preview-panel .generation-progress-card {
    width: min(340px, 86%);
  }
}

/* ---------- Founder round 3 (July 4, 2026) ---------- */

/* CTA text was touching button edges wherever a context forgot to add
   horizontal padding (the base rule never had any). Site-wide floor: */
.primary-button,
.secondary-button {
  padding-left: 24px;
  padding-right: 24px;
}

/* Front/Inside toggle overlaid on the preview desk (was above the fold) */
.preview-stage {
  position: relative;
}

.preview-stage-tabs {
  position: absolute;
  left: 44px;
  bottom: 44px;
  z-index: 7;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(33, 39, 34, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.preview-stage-tabs button {
  min-height: 34px;
  padding: 0 18px;
  color: var(--muted-strong);
  font-size: 15.5px;
  font-weight: 800;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.preview-stage-tabs button.active {
  color: var(--coral-dark, #d64533);
  background: rgba(244, 90, 70, 0.12);
}

/* During generation the progress card fills the upper-left of the stage;
   drop the Front/Inside toggle to the very bottom so it clears the card's
   "This can take about a minute" line (founder note July 8). */
.preview-panel.is-generating .preview-stage-tabs {
  bottom: 12px;
}

/* Re-roll callout: one-time nudge beside the tray's Re-roll button */
.version-tray-heading {
  position: relative;
}

.reroll-callout {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 9;
  width: min(300px, 80vw);
  padding: 13px 16px;
  color: #fff;
  background: var(--ink-green, #092c25);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(9, 44, 37, 0.32);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.reroll-callout::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 44px;
  width: 14px;
  height: 14px;
  background: var(--ink-green, #092c25);
  transform: rotate(45deg);
}

.reroll-callout.is-on {
  opacity: 1;
  transform: translateY(0);
}

.reroll-callout strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--hand);
  font-size: 21px;
  line-height: 1;
}

.reroll-callout span {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* Mailed-for-you route panel (Mailing follows the delivery choice) */
.mail-route-panel {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.mail-route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  align-items: start;
}

.mail-route-head h2 {
  margin: 6px 0 10px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.02;
}

.mail-route-head p:not(.home-eyebrow) {
  margin: 0;
  max-width: 560px;
  color: #48564f;
  font-size: 17px;
  line-height: 1.6;
}

.mail-route-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 18px;
  background: rgba(9, 44, 37, 0.04);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.mail-route-summary div {
  display: grid;
  gap: 2px;
  /* Label over value, both starting on the same edge. This block stacks
     rather than sitting in two columns, so the global right-aligned dd
     (written for the price rows on Orders) has to be undone here: it
     pushed every value to the far edge under a left-hugging label and
     read as a layout mistake (founder, August 19, 2026). */
  justify-items: start;
  text-align: left;
}

.mail-route-summary dt {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mail-route-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.mail-route-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.mail-route-steps li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 14px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mail-route-steps li > span {
  width: 12px;
  height: 12px;
  margin-bottom: 4px;
  background: rgba(9, 44, 37, 0.14);
  border-radius: 50%;
}

.mail-route-steps li.is-done > span {
  background: #0f7a4d;
}

.mail-route-steps li.is-current > span {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(244, 90, 70, 0.18);
}

.mail-route-steps strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.mail-route-steps small {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.45;
}

/* The mailed route's print-files line (August 28, 2026): quiet by
   default, green once the press file is on the server, amber when this
   visit could not save it. */
.mail-print-files-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted-strong);
}

.mail-print-files-note.is-good {
  color: #3f7052;
}

.mail-print-files-note.is-problem {
  color: #8a5a00;
}

.mail-route-foot {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.mail-route-foot a {
  color: var(--coral-dark, #d64533);
  font-weight: 750;
}

@media (max-width: 900px) {
  .mail-route-head,
  .mail-route-steps {
    grid-template-columns: 1fr;
  }

  /* Phone: tucked into the lower-left corner of the desk and smaller, so
     it crosses only the card's bottom corner (founder, Sep 15, 2026: the
     30px/30px placement covered most of the card). */
  .preview-stage-tabs {
    left: 8px;
    bottom: 8px;
    width: auto;
    gap: 2px;
    padding: 3px;
  }

  .preview-stage-tabs button {
    min-height: 28px;
    padding: 0 11px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reroll-callout {
    transition: none;
  }
}

/* ---------- Founder round 4 (July 4, 2026) ---------- */

.calendar-jump-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--coral-dark, #d64533);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 90, 70, 0.4);
}

.calendar-jump-link:hover {
  border-bottom-color: var(--coral);
}

.calendar-save-module.is-saved .calendar-jump-link {
  animation: gate0LinkNudge 900ms ease 200ms;
}

@keyframes gate0LinkNudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(3px); }
  60% { transform: translateX(-1px); }
}

/* Calendar selected-card duo was taller than its cell — ancestors clipped
   the cover art's top. Give the cell the card's real height. */
.selected-card-art {
  min-height: 306px;
}

/* 5x7 production art now fills the photographed mock card (which is a
   2:3 window): cover instead of contain. The ~3% side crop is preview
   presentation only — the print files stay exact. */
.card-scene.has-generated-art .card-front img {
  object-fit: cover;
}

/* ---------- 5x7 production preview shells (July 5, 2026) ----------
   New AI-generated templates, anamorphically corrected so the
   photographed card faces are EXACT print ratios — generated art now
   fits with zero crop and zero bars. Geometry below is measured from
   the shell images (percent of shell dimensions).

   SUPERIMPOSED CARD (July 24, 2026 founder round): stop chasing the
   photographed face pixel-for-pixel. The generated card is now its own
   physical layer: sized a hair PAST the measured face on every side
   (face = x 366-1044.5, y 120.5-1057 of 1408x1180, found by pixel-scan)
   so no sliver of the blank photo card can peek out on any browser or
   width, with its own paper edge, corner, and shadow sold in CSS below
   (.card-scene.has-generated-art .card-front). The pre-generation
   placeholder uses the same box; only the generated state gets the
   physical-card treatment. */

.card-front {
  top: 9.87%;
  left: 25.71%;
  width: 48.76%;
  height: 79.96%;
  aspect-ratio: auto;
}

.card-scene.has-generated-art .card-front {
  background: #fdfaf3;
  border: 0;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(42, 31, 22, 0.2),
    0 10px 22px rgba(42, 31, 22, 0.15),
    0 26px 48px rgba(42, 31, 22, 0.1);
}

/* Paper edge + window-light sheen over the art: a faint bright rim
   where the card stock catches the light, so the layer reads as a
   printed card sitting in the scene instead of a pasted rectangle. */
.card-scene.has-generated-art .card-front::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  background: linear-gradient(112deg, rgba(255, 253, 247, 0.12), rgba(255, 253, 247, 0) 34%);
  content: "";
  pointer-events: none;
}

.inside-page-art {
  top: 11.21%;
  height: 77.62%;
}

.inside-left-art {
  left: 3.6%;
  width: 46.4%;
}

.inside-right-art {
  left: 50.0%;
  width: 46.4%;
}

.inside-spread-art {
  top: 11.21%;
  left: 3.6%;
  width: 92.8%;
  height: 77.62%;
}

/* Preview trim crop (July 15, 2026): generated art now carries real 1/8in bleed
   past the trim (for the vendor print files). Zoom the on-screen preview a touch
   so the customer sees the TRUE TRIM — what actually prints — not the throwaway
   bleed border. The print files themselves stay pixel-exact; this is presentation
   only. Scale is centered because every panel's trim is centered in its art. */
:root {
  --preview-trim-zoom: 1.055;
}
/* July 24, 2026 founder round: the interior zoom pages no longer take
   the trim zoom — in the true 10:7 box the extra 5.5% punch-in read as
   over-cropped, and the sliver of bleed art it reveals is invisible to
   the eye. Everything else keeps showing true trim. */
.card-scene.has-generated-art .card-front img,
.inside-scene.has-split-inside .inside-page-art,
.inside-scene.has-legacy-inside .inside-spread-art,
.modal-card-front img {
  transform: scale(var(--preview-trim-zoom));
  transform-origin: center;
}

/* Brand placeholder (founder round, July 5): the clean stack from the
   original template — stamp-snail mark, quiet uppercase line, postal
   waves — no dynamic copy, no chrome. */
.card-placeholder {
  inset: 0;
  padding: 16% 12%;
  gap: 8.5%;
  background: none;
  border: 0;
}

.card-placeholder::before,
.card-placeholder::after {
  display: none;
}

.card-placeholder .ph-stamp,
.card-placeholder .ph-waves {
  display: block;
  height: auto;
  object-fit: contain;
}

.card-placeholder .ph-stamp {
  width: 26%;
}

.ph-text {
  max-width: 12em;
  color: var(--ink);
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.9;
  text-transform: uppercase;
  text-align: center;
}

.card-placeholder .ph-waves {
  width: 16%;
}

/* Pre-generation CTA: the old template had "your card goes here" baked
   into the photo; the live placeholder is better (it knows the occasion
   and recipient), so show it on the photographed blank card. */
.card-scene:not(.has-generated-art) .card-front {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* =============================================================
   GATE 0 LIVE LAYER — recipient address form (July 7, 2026)
   ============================================================= */

.address-form {
  display: grid;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.address-form label {
  display: grid;
  gap: 6px;
  font-weight: 640;
  font-size: 16px;
  color: var(--ink);
}

.address-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--body);
}

/* ZIP, City, State (August 16, 2026, reordered from City/State/ZIP): the
   ZIP is what the buyer knows without thinking and what fills the other
   two, so it leads. State needs more room than the old 72px because it
   is now a select and has to fit a disclosure arrow beside "OR". */
.address-form-row {
  display: grid;
  grid-template-columns: 104px 1fr 104px;
  gap: 12px;
}

/* The state select matches the text inputs exactly: same height, border,
   radius and type, so the row reads as three fields, not two plus a
   control. appearance:none drops the OS chrome; the arrow is a background
   SVG so it can take the brand ink color. */
.address-state-select {
  min-height: 44px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230f2a24' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 8px;
  font: inherit;
  color: var(--body);
  appearance: none;
  -webkit-appearance: none;
}

/* Quiet by design: this is a nudge, not an error. Ink, not coral, so a
   ZIP disagreement never reads as a failed save. */
.address-zip-hint {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
}

.address-zip-hint button {
  padding: 0;
  margin-left: 6px;
  color: #158647;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.address-form-note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.address-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.address-form-error {
  margin: 0;
  font-size: 16px;
  font-weight: 640;
  color: var(--coral-dark);
}

/* Saved-address picker (August 1, 2026): the per-recipient address book made
   visible at the top of the destination form. Chips, not a dropdown, so the
   whole book is one glance and one tap. */
.address-book-picker {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-strong);
}

.address-book-picker > p {
  margin: 0;
  font-size: 15px;
  font-weight: 640;
  color: var(--muted);
}

.address-book-picker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.address-book-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.address-book-chip:hover,
.address-book-chip:focus-visible {
  border-color: #158647;
  background: #f2f8f4;
}

.address-book-chip-name {
  font-weight: 640;
}

.address-book-chip-place {
  color: var(--muted);
}

/* Save-time USPS check (August 1, 2026): the "use suggested" panel that
   appears under the form actions when USPS offers a cleaner version of
   the typed address, or can't find it. */
.address-verify-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: var(--coral-soft);
  border: 1px solid rgba(244, 90, 70, 0.35);
  border-radius: var(--radius);
}

.address-verify-message {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.address-verify-suggested {
  margin: 0;
  font-size: 16.5px;
  font-weight: 640;
  color: var(--ink);
}

.address-verify-suggested:empty {
  display: none;
}

@media (max-width: 640px) {
  .address-form-row {
    grid-template-columns: 1fr;
  }
}

/* GATE 0 LIVE LAYER round 3 — public-mode chrome + payment banner */

.plan-status.is-demo-only {
  display: none;
}

.payment-received-banner {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  padding: 18px 22px;
  background: #eef7f0;
  border: 1px solid #bfdec7;
  border-radius: var(--radius);
  color: #1f7a4d;
}

.payment-received-banner strong {
  font-size: 18px;
  color: #175f3c;
}

.payment-received-banner span {
  font-size: 16.5px;
  color: #27553d;
}

/* (Removed July 7, 2026: the home paper-postcard waitlist variant.
   Founder verdict — consistency wins: every page ends with the same
   dark band, spaced by .page-waitlist-band margins.) */

/* Calendar reminder capture (reworked August 28, 2026): with accounts
   live the form starts the six-digit sign-in and, once signed in, the
   cell reports the armed state instead of asking. The old waitlist
   plumbing survives only as the accounts-off fallback. */

.calendar-reminder-card .reminder-armed {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.reminder-armed-line {
  display: inline-block;
  justify-self: start;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
}

.reminder-armed-next {
  margin: 0;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.calendar-reminder-card .reminder-capture-form {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.calendar-reminder-card .reminder-capture-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
}

.calendar-reminder-card .hiw-waitlist-status {
  margin-top: 10px;
  color: var(--muted, #7d8782);
  font-size: 17.5px;
  text-align: left;
}

/* Site-wide waitlist bands (founder: consistent at the very bottom
   of every page; per-band data-waitlist-source shows which
   placements earn signups). */

.page-waitlist-band {
  margin-top: clamp(48px, 6vw, 84px);
  margin-bottom: clamp(16px, 2.5vw, 36px);
}

/* ---- July 7 founder notes round ---- */

/* Reminder-card body copy was falling back to full paragraph size
   (the 13.5px rule was scoped to .calendar-guided-card only). */
.calendar-reminder-card .calendar-guided-copy {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.calendar-reminder-card .hiw-waitlist-status {
  font-size: 17px;
}

/* Post-generation approve nudge: the preview-side approve button goes
   confident green with a two-beat attention pulse until the card is
   approved (founder missed the quiet version entirely). */
body:not(.is-approved) .preview-panel.has-generated-preview .preview-approve:not(:disabled) {
  background: #1f7a4d;
  border-color: #1f7a4d;
  animation: approve-nudge 1.1s ease 0.8s 2;
}

@keyframes approve-nudge {
  0%,
  100% {
    transform: none;
    box-shadow: 0 14px 28px rgba(31, 122, 77, 0.22);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 34px rgba(31, 122, 77, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.is-approved) .preview-panel.has-generated-preview .preview-approve:not(:disabled) {
    animation: none;
  }
}

/* Approve nudge: green sibling of the re-roll callout, anchored to
   the preview actions row; plus a two-beat jiggle on the rail's
   Approve Card button. */

.preview-actions {
  position: relative;
}

.approve-callout {
  background: #1f7a4d;
  box-shadow: 0 18px 44px rgba(31, 122, 77, 0.32);
}

.approve-callout::before {
  background: #1f7a4d;
}

.approve-jiggle {
  animation: approve-jiggle 640ms ease 240ms 3;
}

@keyframes approve-jiggle {
  0%,
  100% {
    transform: none;
  }

  20% {
    transform: translateY(-2px) rotate(-1.2deg);
  }

  55% {
    transform: translateY(-1px) rotate(1.1deg);
  }

  80% {
    transform: translateY(-2px) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .approve-jiggle {
    animation: none;
  }
}

/* =============================================================
   PHASE 0 LEGAL PAGE — July 8, 2026 (branch gate0-live)
   Terms / content policy / privacy page (#legal), the site-wide
   footer strip, and the checkout agreement line. Content
   moderation Phase 0 (the paper layer) — decision record in
   Business & Strategy/Content Moderation/.
   ============================================================= */

.legal-page {
  padding: 72px 24px 120px;
  background: var(--paper);
}

.legal-inner {
  max-width: 700px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
}

.legal-header h1 {
  margin: 10px 0 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
}

.legal-lede {
  max-width: 56ch;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.6;
}

.legal-block {
  margin-bottom: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
}

.legal-block p,
.legal-block li {
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

.legal-block p {
  margin: 0 0 12px;
}

.legal-block ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-block li {
  margin-bottom: 8px;
}

.legal-block li strong {
  color: var(--ink);
}

.legal-block a {
  color: var(--coral-dark);
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Site-wide footer strip (below every page, above the modals) */

.site-legal-strip {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.site-legal-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.site-legal-strip a {
  color: var(--muted-strong);
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-legal-strip a:hover {
  color: var(--coral-dark);
}

/* Checkout agreement line under the pay buttons */

.checkout-terms-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

.checkout-terms-note a {
  color: var(--muted-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Founder comp codes (August 5, 2026): a quiet line under the secure
   note. The toggle reads like the other footnote links; the field only
   appears once asked for, so the checkout stays railed for everyone
   without a code. */

.comp-code {
  margin-top: 10px;
  text-align: center;
}

.comp-code-toggle {
  border: none;
  background: none;
  padding: 2px 4px;
  color: var(--muted-strong);
  font-family: var(--sans);
  font-size: 14.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.comp-code-toggle:hover {
  color: var(--ink);
}

.comp-code-field {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.comp-code-field input {
  width: min(220px, 60%);
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.comp-code-field input:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}

.comp-code-apply {
  padding: 9px 16px;
}

.comp-code-note {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--muted-strong);
}

.comp-code-note.is-good {
  color: var(--green);
  font-weight: 650;
}

.comp-code-note.is-problem {
  color: var(--coral-dark);
}

@media (max-width: 900px) {
  .legal-page {
    padding: 48px 18px 96px;
  }

  /* Clear the fixed bottom tab bar */
  .site-legal-strip {
    padding-bottom: 96px;
  }
}

/* ---- 4-step create rail (July 8, 2026) ---- */

/* Founder: "Help me write it" should be the more prominent path. */
.writer-toggle {
  color: var(--coral-dark);
  background: rgba(244, 90, 70, 0.08);
  border: 1px solid rgba(244, 90, 70, 0.45);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 750;
}

.writer-toggle:hover {
  background: rgba(244, 90, 70, 0.14);
  border-color: var(--coral);
}

/* Style dropdown was clipped by the step card (founder screenshot):
   .create-step has overflow:hidden for corner rounding, but the
   absolutely-positioned .style-menu needs to drop over the cards
   below. Collapsed bodies are display:none, so the active card can
   safely show overflow. */
.create-step.is-active {
  overflow: visible;
}

/* Calendar date popover */

.calendar-popover-host {
  position: relative;
}

.calendar-popover {
  position: absolute;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(300px, 86vw);
  padding: 18px 20px;
  background: #fffdf9;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(9, 44, 37, 0.22);
  transform: translate(-50%, -100%) scale(0.97);
  opacity: 0;
  transition: opacity 160ms ease, transform 180ms ease;
}

/* A day's card rows carry their own action on the right ("Pick this back
   up"), and at 300px the card's title was being squeezed into three wrapped
   lines beside it (founder, August 20). The box widens to cover the button
   instead; gate0ShowCalendarPopover keeps the wider box inside the grid and
   slides the arrow to stay on the clicked cell. */
.calendar-popover.has-cards {
  width: min(400px, 92vw);
}

.calendar-popover.is-on {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.calendar-popover.is-below {
  transform: translate(-50%, 0) scale(0.97);
}

.calendar-popover.is-below.is-on {
  transform: translate(-50%, 0) scale(1);
}

.calendar-popover::after {
  content: "";
  position: absolute;
  bottom: -7px;
  /* Set per-open by gate0ShowCalendarPopover when the box has been nudged
     off-centre to stay on the grid; dead centre is the default. */
  left: var(--popover-arrow-left, 50%);
  width: 14px;
  height: 14px;
  background: #fffdf9;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: translateX(-50%) rotate(45deg);
}

.calendar-popover.is-below::after {
  top: -7px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}

/* DIRECT CHILD ONLY: this is the popover's own heading. It used to be
   `.calendar-popover strong`, which ties with `.calendar-popover-card-text
   strong` on specificity and, sitting later in the file, quietly won — so
   every card row's title rendered at 18px serif with the close button's
   26px of padding, wrapped to three lines and squeezed its own action off
   the row (founder, August 20). The card rows are nested, the heading is
   not, so the child combinator settles it without a specificity race. */
.calendar-popover > strong {
  font-family: var(--serif);
  font-size: 18.5px;
  color: var(--ink);
  padding-right: 26px;
}

.calendar-popover p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted-strong, #4d5a53);
}

.calendar-popover-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.calendar-popover-facts div {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
}

.calendar-popover-facts dt {
  min-width: 64px;
  color: var(--muted, #7d8782);
}

.calendar-popover-facts dd {
  margin: 0;
  color: var(--body);
  font-weight: 640;
  /* Same guard as the lightbox facts: the global `dd` rule right-aligns,
     which reads fine until a long value wraps. */
  text-align: left;
  flex: 1;
  min-width: 0;
}

.calendar-popover-status {
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
}

.calendar-popover-edit {
  min-height: 40px;
  font-size: 16px;
}

.calendar-popover-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 20px;
  color: var(--muted, #7d8782);
  cursor: pointer;
}



/* Reminder-email hint under "Reminder timing" (July 9, 2026) */

.reminder-email-hint {
  display: block;
  margin-top: 6px;
}

.reminder-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(244, 90, 70, 0.4);
  border-radius: 999px;
  background: rgba(244, 90, 70, 0.07);
  color: var(--coral-dark, #d64533);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.reminder-email-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reminder-email-chip:hover {
  background: rgba(244, 90, 70, 0.13);
  border-color: var(--coral);
}

.reminder-email-chip.is-set {
  border-color: #bfdec7;
  background: #eef7f0;
  color: #1f7a4d;
}

.reminder-email-chip.is-set:hover {
  background: #e3f1e7;
  border-color: #9fcbaa;
}

.reminder-email-chip em {
  margin-left: 2px;
  font-style: normal;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
}

/* Buttons are display:inline-flex from the base rules, which beats the
   [hidden] attribute — the scheduled state hides "Save for later". */
.selected-footer button[hidden] {
  display: none;
}

/* ---- Merch page: coming-soon shelf (July 12, 2026) ---- */

.merch-shelf-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.merch-honesty {
  max-width: 46em;
  margin: 0 auto 26px;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.55;
  text-align: center;
}

.merch-group-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 14px;
  color: var(--coral);
  font-size: 14.5px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.merch-group-label::after {
  width: 46px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.merch-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 280ms ease;
}

.merch-card:hover {
  transform: translateY(-7px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

.merch-card:nth-child(even):hover {
  transform: translateY(-7px) rotate(0.5deg);
}

@media (prefers-reduced-motion: reduce) {
  .merch-card,
  .merch-card:hover,
  .merch-card:nth-child(even):hover {
    transform: none;
    transition: none;
  }
}

.merch-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--paper-deep);
}

.merch-art.is-apparel {
  background: var(--coral-soft);
}

.merch-art.is-accessories {
  background: var(--sage);
}

.merch-art.is-desk {
  background: var(--blue-soft);
}

.merch-art.is-stationery {
  background: var(--paper-deep);
}

.merch-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.merch-illustration .pb {
  fill: #fffdfa;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.merch-illustration .pb2 {
  fill: var(--coral-soft);
  stroke: var(--coral);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.merch-illustration .ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.merch-illustration .ac {
  fill: none;
  stroke: var(--coral);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.merch-illustration .acf {
  fill: var(--coral);
  stroke: none;
}

.merch-mark {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

/* Real product photo covers the line-art fallback when it loads. */
.merch-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The photo carries the baked-in logo; the line-art fallback and its mark
   only show if a product photo fails to load. */
.merch-art.has-photo .merch-illustration,
.merch-art.has-photo .merch-mark {
  display: none;
}

.merch-art .hiw-badge {
  top: 10px;
  right: 10px;
}

.merch-caption {
  padding-top: 11px;
  margin-top: 11px;
  border-top: 1px dashed var(--line);
}

.merch-caption span,
.merch-caption strong,
.merch-caption small {
  display: block;
}

.merch-caption span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.merch-caption strong {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.2;
}

.merch-caption small {
  margin-top: 4px;
  color: var(--muted-strong);
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.35;
}

.merch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.merch-vote-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(244, 90, 70, 0.4);
  border-radius: 999px;
  background: rgba(244, 90, 70, 0.07);
  color: var(--coral-dark);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.merch-vote-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merch-vote-chip:hover {
  background: rgba(244, 90, 70, 0.13);
  border-color: var(--coral);
}

.merch-vote-chip b {
  font-weight: 850;
}

.merch-vote-chip.is-voted {
  border-color: #bfdec7;
  background: #eef7f0;
  color: #1f7a4d;
  cursor: default;
}

.merch-vote-chip.is-voted:hover {
  background: #eef7f0;
  border-color: #bfdec7;
}

.merch-notify-toggle {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-strong);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.merch-notify-toggle:hover {
  border-color: rgba(244, 90, 70, 0.55);
  color: var(--coral-dark);
}

.merch-notify {
  margin-top: 10px;
}

.merch-notify .hiw-waitlist-form {
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.merch-notify .hiw-waitlist-form input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15.5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.merch-notify .hiw-waitlist-form .primary-button {
  width: 100%;
  min-height: 40px;
  font-size: 15.5px;
}

.merch-notify .hiw-waitlist-status {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-family: var(--hand);
  font-size: 17px;
  text-align: center;
}

.payment-received-banner .sticker-gift-line {
  font-family: var(--hand);
  font-size: 18px;
}

/* A2 §5.2 post-payment save offer (August 10, 2026): one quiet line at the
   foot of the payment banner, never a second banner. */
.payment-received-banner .save-person-line {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}
.payment-received-banner .save-person-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--coral);
  text-decoration: underline;
  cursor: pointer;
}
.payment-received-banner .save-person-button:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 1240px) {
  .merch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .merch-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   NEED-BY TIMING & RETURN ADDRESS — July 11, 2026
   Order-page arrival step + sender address. Reuses the delivery
   choice cards, address form, and postage-note components; these
   rules only handle spacing and the date field.
   ============================================================= */

.order-timing-block {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.order-timing-block > h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  color: var(--ink);
}

.timing-date-row {
  display: grid;
  gap: 8px;
}

.timing-date-row label {
  display: grid;
  gap: 6px;
  max-width: 250px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted-strong);
}

.timing-date-row input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

/* The no-peek envelope opt-in (August 8, 2026, brief 10 §7). It lives
   inside .timing-date-row, whose label rule is a stacked 250px field, so
   this resets to a checkbox line and un-does the 44px full-width input
   skin that rule's sibling applies to every input in the row.

   SELECTOR IS DELIBERATELY AS SPECIFIC AS THE RULE IT OVERRIDES: a bare
   .timing-nopeek loses to .timing-date-row label on specificity and the
   checkbox stacks above its own label. */
.timing-date-row label.timing-nopeek {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted-strong);
  cursor: pointer;
}

.timing-date-row label.timing-nopeek input[type="checkbox"] {
  flex: none;
  width: 18px;
  min-height: 0;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--coral);
}

/* The line as it will actually print: the same hand the envelope is set
   in, so the checkbox shows the thing rather than describing it. */
.timing-date-row label.timing-nopeek em {
  font-family: var(--hand);
  font-size: 18px;
  font-style: normal;
  color: var(--ink);
  /* Caveat's closing quote carries almost no right side bearing, so the
     sentence collided with it ("October 21"to the envelope"). The space
     character alone cannot cover the difference between a 17px hand and
     the 13px sans around it. */
  margin: 0 4px 0 2px;
}

.timing-eta-note {
  margin-top: 0;
}

/* LEAD-TIME TRANSPARENCY (July 28, 2026, brief 04 §3)
   The standing turnaround line, and the too-soon redirect. The redirect
   is deliberately NOT an error skin: warm paper, no amber, no warning
   icon. It offers a faster lane, it does not scold. */

.timing-lead-note {
  margin: -4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-strong);
}

/* The mail-by line under a confirmed date (August 22, 2026). Quieter than
   the confirmation it follows: the part we control, stated once. */
.timing-mail-by-note {
  margin: 6px 0 0;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

.timing-too-soon {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}

.timing-too-soon-lede {
  margin: 0;
  font-size: 16px;
  font-weight: 640;
  line-height: 1.5;
  color: var(--ink);
}

.timing-too-soon-alt {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-strong);
}

.timing-too-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timing-too-soon-actions .secondary-button,
.timing-too-soon-actions .primary-button {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 16px;
}

/* Home printing is the FALLBACK, not the recommendation (founder, August 3,
   2026). The hairline and the quieter type say so without a word of copy:
   the achievable mail date sits above it with the solid button, and this is
   the exit for a date that genuinely cannot move. */
.timing-too-soon-fallback {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.timing-too-soon-fallback .secondary-button {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 15px;
}

.return-address-block {
  margin-top: 14px;
}

/* CREATE GREETER + SCHEDULER MAIL HINT (July 12, 2026)
   One-time orientation modal in the calendar-wizard pattern (shares
   .modal-shell/.modal-backdrop/.calendar-onboarding), and the soft
   mail-feasibility line inside the save-the-date module. */

.create-greeter-card {
  max-width: 480px;
}

.create-greeter-card .onboarding-sub {
  max-width: 360px;
}

.create-greeter-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* THE JUST-SIGNED-IN STEP IS THE ONE PLACE A DESTRUCTIVE ACTION SHARES A ROW
   WITH THE DISMISS (August 15, 2026 — founder caught it on the first real
   sign-in). The shared row above is a centred flex with NO gap, so "Done" and
   "Sign out" ended up flush against each other, and a fat finger on a phone
   signed you straight back out one second after signing in.

   Scoped to this step on purpose: the same class dresses the create greeter
   and the two People dialogs, where the buttons genuinely are peers and the
   tight row is right. Here they are not peers, so they stack, get real space,
   and the sign-out drops to muted — present for a shared device, no longer
   competing with the primary action. */
#signinStepDone .create-greeter-actions {
  flex-direction: column;
  align-items: center;
  gap: 0;
}

#signinStepDone #signinSignOut {
  margin-top: 18px;
  padding: 8px 14px;          /* a real touch target, not a 13px hairline */
  color: var(--muted);
  font-weight: 500;
}

#signinStepDone #signinSignOut:hover {
  color: var(--coral-dark);
}

.timing-mail-hint {
  color: var(--ink-green, #092c25);
  background: rgba(9, 44, 37, 0.06);
  border-radius: 10px;
  padding: 9px 12px;
}

/* ============================================================
   DESIGN SWEEP BUILD — July 21, 2026
   Founder-approved scope from the July 18-20 design sweep
   (ledger artifact + Snapshots/Design-Sweep-2026-07-18).
   1) Envelope: real paper texture, V2 Ink Green forever stamp,
      real-ink machine cancel (markup in index.html step 4).
   2) Journey step 4 price chip.
   3) Nav: Home tab hidden on desktop (wordmark is home);
      it remains in the mobile bottom tab bar.
   4) Plans: per-card price lines.
   5) Merch: one table (grid styles; render logic in app.js),
      compact hero, shelf header, Most Wanted chip, suggest tile.
   6) Motion: vote-arrow hop (F2), link underline draw (F3).
   ============================================================ */

/* --- 1a. envelope paper: fiber grain, laid banding, flap-seam shading --- */

.hx-envelope {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.29 0 0 0 0 0.24 0 0 0 0 0.16 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(101, 78, 48, 0.028) 0 1px, transparent 1px 7px),
    linear-gradient(104deg, rgba(101, 78, 48, 0.05), transparent 15%),
    linear-gradient(256deg, rgba(101, 78, 48, 0.05), transparent 15%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 46%),
    linear-gradient(168deg, #fbf2e2, #f0e0c6);
  border-color: rgba(87, 62, 33, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1.5px 0 rgba(87, 62, 33, 0.08),
    inset 0 0 34px rgba(101, 78, 48, 0.05),
    0 1px 2px rgba(33, 39, 34, 0.12),
    0 3px 6px rgba(33, 39, 34, 0.09),
    0 22px 46px rgba(33, 39, 34, 0.2),
    0 46px 92px rgba(33, 39, 34, 0.13);
}

/* --- 1b. the forever stamp (V2 Ink Green), die-cut perforated edge --- */

.hx-env-stamp.hx-stamp-v2 {
  display: block;
  width: 78px;
  height: 94px;
  padding: 5px;
  background: #fffdfa;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(2.2deg);
  filter: drop-shadow(0 1.5px 2.5px rgba(33, 39, 34, 0.28));
  --stamp-pitch: 11px;
  --stamp-hole: 3.5px;
  mask:
    radial-gradient(circle var(--stamp-hole) at 0 0, transparent 98%, #000) 0 0 / var(--stamp-pitch) var(--stamp-pitch) round,
    linear-gradient(#000, #000) center / calc(100% - var(--stamp-pitch)) calc(100% - var(--stamp-pitch)) no-repeat;
  mask-composite: add;
  -webkit-mask:
    radial-gradient(circle var(--stamp-hole) at 0 0, transparent 98%, #000) 0 0 / var(--stamp-pitch) var(--stamp-pitch) round,
    linear-gradient(#000, #000) center / calc(100% - var(--stamp-pitch)) calc(100% - var(--stamp-pitch)) no-repeat;
  -webkit-mask-composite: source-over;
}

.hx-env-stamp.hx-stamp-v2::after {
  content: none;
}

.hx-stamp-v2 .hx-stamp-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(158deg, #0d3a30, #092c25 70%);
}

.hx-stamp-v2 .hx-stamp-art::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border: 1px solid rgba(255, 243, 228, 0.32);
  pointer-events: none;
}

.hx-stamp-v2 .hx-stamp-mark {
  width: 46px;
  margin-top: -4px;
  filter: brightness(0) invert(97%) sepia(9%) saturate(430%) hue-rotate(315deg);
  opacity: 0.95;
}

.hx-stamp-v2 .hx-stamp-brand {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  color: rgba(255, 243, 228, 0.75);
  font-size: 4.9px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.hx-stamp-v2 .hx-stamp-denom {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 4.5px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  color: #ffe9d2;
  font-size: 6.4px;
  font-weight: 850;
  letter-spacing: 0.05em;
  z-index: 1;
}

.hx-stamp-v2 .hx-stamp-denom b { font-weight: 850; }
.hx-stamp-v2 .hx-stamp-denom i { font-style: normal; font-weight: 800; color: #f4907f; }

/* --- 1c. real-ink cancel color handling --- */

.hx-env-postmark.hx-pm-ink { color: rgba(23, 60, 49, 0.66); }
.hx-pm-ink circle { stroke-width: 2.2; }
.hx-pm-ink .hx-pm-ghost { opacity: 0.13; }
.hx-pm-ink .hx-pm-waves use { fill: none; stroke-linecap: round; }

/* --- 2. journey step 4 price chip --- */

.hx-steps .hx-price-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 11px;
  background: rgba(244, 90, 70, 0.12);
  border: 1px solid rgba(244, 90, 70, 0.35);
  border-radius: 999px;
  color: #d24a38;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* --- 3. desktop nav: wordmark is home, tab hidden above the mobile bar --- */

@media (min-width: 901px) {
  .nav-links .nav-home-tab { display: none; }
}

/* --- 4. per-card price line on plans --- */

.hiw-percard {
  margin: -6px 0 8px;
  color: #1d7a4f;
  font-size: 14.5px;
  font-weight: 700;
}

/* --- 5. merch: one table --- */

.merch-hero-compact {
  min-height: 0;
  padding-top: 64px;
  padding-bottom: 8px;
}

.merch-shelfhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(9, 44, 37, 0.22);
}

.merch-shelfhead h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
}

.merch-shelfhead p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.merch-card { position: relative; }

.merch-leader {
  position: absolute;
  top: -9px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  background: #092c25;
  color: #ffe9d2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(9, 44, 37, 0.28);
}

.merch-suggest {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px 20px;
  background:
    repeating-linear-gradient(0deg, rgba(15, 42, 36, 0.012) 0 1px, transparent 1px 3px),
    #fdf6ec;
  border: 1.5px dashed rgba(244, 90, 70, 0.5);
  border-radius: 12px;
  text-align: center;
}

.merch-suggest .merch-suggest-script {
  margin: 0;
  font-family: var(--hand);
  font-size: 21px;
  color: var(--coral);
}

.merch-suggest strong {
  font-family: var(--display);
  font-size: 18.5px;
  color: var(--ink);
}

.merch-suggest small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.merch-suggest .merch-notify-toggle { align-self: center; margin-top: 4px; }

.merch-suggest .merch-suggest-form {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.merch-suggest .merch-suggest-form input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 15px;
}

.merch-suggest .merch-suggest-status {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* --- 6a. F2: the Want-it arrow hops when a vote lands --- */

.merch-vote-chip svg { transition: none; }

.merch-vote-chip.is-hopping svg {
  animation: merch-vote-hop 240ms cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.merch-vote-chip.is-hopping b {
  animation: merch-count-tick 240ms ease;
}

@keyframes merch-vote-hop {
  0% { transform: translateY(0); }
  45% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@keyframes merch-count-tick {
  0% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* --- 6b. F3: text links draw their underline ---
   The base .hx-text-link carries a static 2px soft-coral border-bottom; that
   would stack with the drawn line (double rule). The border goes transparent
   (keeping the 2px rhythm) and the gradient becomes the only underline. */

.hx-text-link {
  border-bottom-color: transparent;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 2px no-repeat;
  transition: gap 180ms ease, background-size 180ms ease;
}

.hx-text-link:hover,
.hx-text-link:focus-visible {
  border-bottom-color: transparent;
  background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
  .merch-vote-chip.is-hopping svg,
  .merch-vote-chip.is-hopping b {
    animation: none;
  }

  .hx-text-link {
    transition: none;
  }
}

/* --- 7. Orders empty state (fix 3.9, founder round 2, July 21) --- */

.order-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 26px auto 10px;
  padding: 46px 24px;
  background: #fff;
  border: 1.5px dashed rgba(9, 44, 37, 0.22);
  border-radius: 16px;
  text-align: center;
}

.order-empty img {
  width: 74px;
  opacity: 0.9;
}

.order-empty strong {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}

.order-empty p {
  margin: 0;
  max-width: 380px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.order-empty .primary-button {
  margin-top: 6px;
}

/* =============================================================
   CARD BACK SIGN-OFF (July 21, 2026) — Orders page back-cover
   preview + editable "by <first name>" line.
   ============================================================= */

.card-back-block {
  /* No border here: the detail list's last row already draws the divider. */
  margin-top: 4px;
  padding-top: 14px;
}

/* Matches .order-card-details dt so the panel reads as one label system. */
.card-back-eyebrow {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-back-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#cardBackCanvas {
  flex-shrink: 0;
  width: 104px;
  height: auto;
  background: #fff9f3;
  border: 1px solid rgba(9, 44, 37, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(9, 44, 37, 0.1);
  cursor: zoom-in;
  transition: width 0.25s ease;
}

/* Click-to-zoom: the thumbnail grows to readable size and the sign-off
   text drops below it; a second click tucks it back. */
.card-back-block.is-zoomed .card-back-row {
  flex-direction: column;
}

.card-back-block.is-zoomed #cardBackCanvas {
  width: min(320px, 100%);
  cursor: zoom-out;
}

@media (prefers-reduced-motion: reduce) {
  #cardBackCanvas {
    transition: none;
  }
}

.card-back-line {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 24px;
  line-height: 1.2;
  color: #4e6b5f;
}

.card-back-note {
  margin: 6px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #38443f;
}

.card-back-edit {
  padding: 0;
  color: #158647;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.card-back-name-form {
  margin-top: 12px;
}

/* ---------- Mobile polish round (July 24, 2026) ----------
   Built from the July 24 mobile QC of the live site. Everything in this
   section is scoped to touch/small screens; desktop is untouched. */

/* 1) iOS ZOOM FLOOR. iPhone Safari zooms into any focused form control
   whose font-size is under 16px and never zooms back out — the founder's
   "pinch to reset" bug. 38 of 60 controls were 12-14.5px. The !important
   is deliberate: this floor must beat every scattered context font-size,
   present and future. Do not remove it. */
@media (max-width: 700px), (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 17.5px !important;
  }
}

/* 2) GENERATION WAIT, PHONE WIDTH. The desk-scene stage is shorter than
   the progress card at 375px (420px vs 490px, overflow hidden), so the
   checklist/wit/snail were cropped mid-sentence and layered over the
   scene + Front/Inside pill. On phones the progress card becomes the
   stage content; scene and pill return when the art is ready. */
@media (max-width: 640px) {
  .preview-panel.is-generating .preview-view {
    display: none;
  }

  .preview-panel.is-generating .preview-stage-tabs {
    display: none;
  }

  .preview-panel.is-generating .generation-progress-card {
    position: static;
    width: auto;
    margin: 6px 2px 14px;
  }
}

/* 3) BOTTOM TAB BAR AFFORDANCE. iOS hides scrollbars, so nothing said
   the bar scrolls — Calendar/Orders/Mailing/Merch were invisible. A
   sticky right-edge fade signals the clipped tabs. */
@media (max-width: 900px) {
  .nav-links::after {
    content: "";
    position: sticky;
    right: 0;
    flex: none;
    align-self: stretch;
    width: 34px;
    margin-left: -34px;
    background: linear-gradient(to right, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.96));
    pointer-events: none;
  }
}

/* 4) TOPBAR START BUTTON: the bare "+" said nothing. A compact label
   rides along on small screens (the span still carries the full name
   for wider layouts; aria-label already covers screen readers). */
@media (max-width: 900px) {
  .start-button {
    width: auto;
    padding: 0 16px;
  }

  .start-button::after {
    content: "Start";
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }
}

/* 5) HERO EYEBROW: the long uppercase line wrapped with its dot
   stranded. Tighter tracking + size keeps it to one line at 375px. */
@media (max-width: 640px) {
  .hx-eyebrow {
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .hx-eyebrow-dot {
    flex: none;
  }
}

/* 6) SMALL-SCREEN FORM LAYOUTS. */
@media (max-width: 640px) {
  /* Version tray: heading text and Re-roll stacked, full-width. */
  .version-tray-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .version-tray-heading .version-tray-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .version-tray-heading .version-tray-reroll,
  .version-tray-heading .version-tray-edit,
  .version-tray-heading .version-tray-newcard {
    width: 100%;
    justify-content: center;
  }

  /* Order summary rows: label above value, both left-aligned — the
     right-flushed values read scattered at phone width. */
  .order-card-details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .order-card-details dt {
    color: var(--muted-strong);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .order-card-details dd {
    text-align: left;
  }

  /* Address forms: actions match the page's full-width button language. */
  .address-form-actions {
    flex-direction: column;
  }

  .address-form-actions button {
    width: 100%;
  }
}

/* 7) GALLERY LIGHTBOX: the dialog is min(880px, 94vw) inside a
   place-items:center overlay padded 30px — at 375px it was wider than
   the 315px it had to sit in, so it hung off the right (measured
   left:30 right:383). Shrink the overlay padding and cap the dialog to
   the real content width; the existing 760px rule already gives it an
   internal scroll so the CTA stays reachable. */
@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox-dialog {
    width: 100%;
    max-height: 90vh;
  }
}

/* ---------- Mobile polish round 3 (July 24, 2026) ----------
   Founder review on a real iPhone: a field spilling past its card, and two
   grids whose desktop separators read as misalignment once they stack. */

/* A) CARD DATE / REMINDER spilled past the calendar module's right edge. The
   native iOS date control won't shrink below its intrinsic width unless its
   grid cell is allowed to (grid/flex items default to min-width:auto). Let the
   label cell and the controls shrink so they stay inside the card. */
.calendar-save-module label {
  min-width: 0;
}

.calendar-save-module input,
.calendar-save-module select {
  min-width: 0;
  max-width: 100%;
}

/* B) "THIS CARD'S INGREDIENTS" is a 5-across row on desktop; each cell carries
   a left divider that becomes a stray vertical rule + indent once the list
   stacks on a phone, so the first row (no divider) sat flush left while the
   rest were indented. When stacked, drop the dividers/padding so every row
   aligns flush left, and give the rows vertical breathing room. */
@media (max-width: 520px) {
  .label-content div,
  .label-content div:first-child {
    padding: 0;
    border-left: 0;
  }

  .label-content dl {
    gap: 12px 0;
  }
}

/* C) The calendar summary 2x2 grid. Inherited from the desktop 4-across
   layout, its dividers were mismatched — a DASHED vertical (base rule) crossing
   a SOLID horizontal (stacking rule) — and a 22px row-gap left the cross
   off-center, so the four cells read as unevenly separated. Rebuild it as one
   consistent cross: equal cells, no gap, and matching solid hairlines that meet
   cleanly at the center. The nth-child selectors outrank the tangled
   "article + article" rules they supersede. (July 24, 2026) */
@media (max-width: 900px) {
  .calendar-stat-strip {
    row-gap: 0;
    column-gap: 0;
  }

  .calendar-stat-strip article:nth-child(n) {
    padding: 16px 20px;
    border: 0;
  }

  /* right column → vertical divider; bottom row → horizontal divider */
  .calendar-stat-strip article:nth-child(2n) {
    border-left: 1px solid rgba(207, 197, 183, 0.72);
  }

  .calendar-stat-strip article:nth-child(n + 3) {
    border-top: 1px solid rgba(207, 197, 183, 0.72);
  }
}

/* =============================================================
   MOBILE SCROLL-STORY (hx-lite) — July 24, 2026
   Phones keep the hx-static skeleton (native scroll, no pinning)
   and body.hx-mobile layers the delight back on: journey steps
   interleave with their visuals in one column and animate in as
   they reach the viewport, the statement fills word by word, and
   the gallery strip staggers in with scroll-snap. display:contents
   does the interleaving — no DOM moves, so resizing to ≥900px can
   still revive the desktop pinned engine untouched. Reduced-motion
   visitors never get body.hx-mobile (static path only).
   ============================================================= */

body.hx-mobile .hx-journey-grid {
  gap: 0;
}

body.hx-mobile .hx-steps,
body.hx-mobile .hx-stage {
  display: contents;
}

/* Interleave: step li (order 1,3,5,7) then its visual (2,4,6,8). */
body.hx-mobile .hx-steps li[data-hx-step="0"] { order: 1; }
body.hx-mobile .hx-vis[data-hx-vis="0"] { order: 2; }
body.hx-mobile .hx-steps li[data-hx-step="1"] { order: 3; }
body.hx-mobile .hx-vis[data-hx-vis="1"] { order: 4; }
body.hx-mobile .hx-steps li[data-hx-step="2"] { order: 5; }
body.hx-mobile .hx-vis[data-hx-vis="2"] { order: 6; }
body.hx-mobile .hx-steps li[data-hx-step="3"] { order: 7; }
body.hx-mobile .hx-vis[data-hx-vis="3"] { order: 8; }

body.hx-mobile .hx-steps li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  border-bottom: 0;
  padding: 22px 0 6px;
}

body.hx-mobile .hx-steps li.is-live {
  opacity: 1;
  transform: none;
}

/* Visuals return (hx-static hides all but the card) and flow inline. */
body.hx-mobile .hx-vis {
  position: static;
  display: grid;
  place-items: center;
  height: auto;
  margin: 20px 0 10px;
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity 560ms ease, transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

body.hx-mobile .hx-vis.is-on {
  opacity: 1;
  transform: none;
}

/* The interest chips float around the note card inside the vis box.
   The desktop stage positions land on the card copy at phone width, so
   pull them into the margins: corners overlap, words never covered. */
body.hx-mobile .hx-vis-details {
  position: relative;
  min-height: 330px;
}

body.hx-mobile .hx-chip-1 {
  top: 3%;
  left: 4%;
}

body.hx-mobile .hx-chip-2 {
  top: 11%;
  right: 3%;
}

body.hx-mobile .hx-chip-3 {
  bottom: 3%;
  left: 18%;
}

body.hx-mobile .hx-envelope {
  width: min(86vw, 420px);
}

body.hx-mobile .hx-date-card,
body.hx-mobile .hx-note-card {
  max-width: 86vw;
}

/* Statement: dim words that fill with scroll (overrides the hx-static
   pre-lit fallback — both classes are on the body on phones). */
body.hx-mobile .hx-statement-line span {
  opacity: 0.13;
  transition: opacity 380ms ease;
}

body.hx-mobile .hx-statement-line span.is-on {
  opacity: 1;
}

body.hx-mobile .hx-statement-sub {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.hx-mobile.hx-sub-on .hx-statement-sub,
body.hx-mobile .hx-statement.hx-sub-on .hx-statement-sub,
body.hx-mobile .hx-sub-on .hx-statement-sub {
  opacity: 1;
  transform: none;
}

/* Gallery strip: native swipe + snap, cards stagger in on arrival. */
body.hx-mobile .hx-strip-track {
  scroll-snap-type: x proximity;
  scroll-padding-inline: 20px;
}

body.hx-mobile .hx-strip-track figure {
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.hx-mobile .hx-strip.is-live .hx-strip-track figure {
  opacity: 1;
  transform: none;
}

body.hx-mobile .hx-strip.is-live .hx-strip-track figure:nth-child(2) { transition-delay: 70ms; }
body.hx-mobile .hx-strip.is-live .hx-strip-track figure:nth-child(3) { transition-delay: 140ms; }
body.hx-mobile .hx-strip.is-live .hx-strip-track figure:nth-child(4) { transition-delay: 210ms; }
body.hx-mobile .hx-strip.is-live .hx-strip-track figure:nth-child(n + 5) { transition-delay: 280ms; }

/* =============================================================
   MOBILE POLISH LAYER — July 26, 2026
   Gallery swipe-over-drift, home strip gate0 cards, mailing
   pre-card state. (Beta note modal reuses the greeter classes.)
   ============================================================= */

/* -- Gallery rows become real scroll containers; the rAF drive
      in app.js replaces the CSS marquee (is-js-scroll). -- */
.gallery-wall.is-js-scroll .gallery-row {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-wall.is-js-scroll .gallery-row::-webkit-scrollbar {
  display: none;
}

.gallery-wall.is-js-scroll .gallery-track {
  animation: none !important;
  transform: none !important;
}

/* Row labels ride inside the scroll container now; pin them. */
.gallery-wall.is-js-scroll .gallery-row-label {
  position: sticky;
  left: 0;
  width: max-content;
}

/* -- Home strip gate0 cards: true 5:7 faces (no crop of the
      cover lettering) and a click/tap affordance. -- */
.hx-strip-track figure[data-gallery-slug] {
  cursor: pointer;
}

.hx-strip-track figure[data-gallery-slug]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.hx-strip-track figure[data-gallery-slug] img {
  aspect-ratio: 5 / 7;
}

/* -- Mailing pre-card state -- */
.fulfillment-page.is-precard > :not(.fulfillment-empty) {
  display: none !important;
}

/* -- Mailing unpaid hold (July 31, 2026): same trick, second mood.
      Everything but the hold panel steps back until payment is
      confirmed; the panel reuses .fulfillment-empty's layout. -- */
.fulfillment-page.is-unpaid > :not(#fulfillmentUnpaid) {
  display: none !important;
}

.fulfillment-empty {
  display: flex;
  min-height: 52vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 72px 24px 88px;
  text-align: center;
}

.fulfillment-empty[hidden] {
  display: none !important;
}

.fulfillment-empty-mark {
  width: 74px;
}

.fulfillment-empty-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.fulfillment-empty h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.12;
  color: var(--ink);
}

.fulfillment-empty-sub {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-strong);
}

.fulfillment-empty-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

/* -- Round 2 (July 26, 2026 evening): hero promotion choreography,
      writer-bar beckon, post-pick generate spotlight. -- */

/* Hero trio: while the fan trades places, slow the ride slightly and
   let the promoted card's book do a pick-up-and-place lift so the
   z-order change reads as deliberate. */
.hx-hero-stage.is-shuffling .hx-card {
  transition: transform 760ms cubic-bezier(0.3, 0.86, 0.34, 1.02);
}

.hx-card.is-promoting .hx-card-book {
  animation: hx-card-lift 760ms cubic-bezier(0.36, 0.6, 0.3, 1);
}

@keyframes hx-card-lift {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-18px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* "Help me write it": promoted to a solid coral mini-CTA (founder,
   July 26 round 3 — the tinted pill was still too easy to miss). The
   expanded state was already solid coral, so this reads consistent. */
.writer-toggle {
  color: #fff7ef;
  background: var(--coral);
  border: 1px solid var(--coral-dark);
  box-shadow: 0 6px 16px rgba(244, 90, 70, 0.26);
}

.writer-toggle:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

/* Beckon: a JS-timed postal wiggle, recirculating every few seconds. */
.writer-toggle.is-beckoning {
  animation: writer-beckon 840ms ease-in-out;
}

@keyframes writer-beckon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  16% {
    transform: translateY(-5px) rotate(-4deg) scale(1.05);
  }
  36% {
    transform: translateY(2px) rotate(3.4deg) scale(1.03);
  }
  56% {
    transform: translateY(-3px) rotate(-2.6deg) scale(1.02);
  }
  78% {
    transform: translateY(1px) rotate(1.4deg) scale(1);
  }
}

/* One-shot halo on the generate control after a draft is picked. */
.is-spotlit {
  animation: generate-spotlight 1.5s ease-out;
}

@keyframes generate-spotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 90, 70, 0.55);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(244, 90, 70, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-hero-stage.is-shuffling .hx-card {
    transition: none;
  }

  .hx-card.is-promoting .hx-card-book {
    animation: none;
  }

  .writer-toggle.is-beckoning {
    animation: none;
  }

  .is-spotlit {
    animation: none;
  }
}


/* ============================================================
   SNAIL CHARACTER LAYER (July 27, 2026)
   Puppet internals (.sp-*), loader-lane takeover, wanderer host.
   ============================================================ */

.sp {
  position: absolute;
  left: 0;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}
.sp-flip, .sp-squash {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  will-change: transform;
}
.sp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sp-view-front { display: none; }
.sp-edge {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 3.5%;
  height: 96%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--coral, #F45A46);
  opacity: 0;
}
.sp-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.sp-stamp {
  position: absolute;
  left: 0;
  pointer-events: none;
  z-index: 0;
}
.sp-interactive {
  pointer-events: auto;
  cursor: pointer;
}
/* Placed by the wanderer (clamped inside the window, tail on his side);
   wraps at 300px; enters with a small scale from the tail corner. */
.sp-bubble {
  position: absolute;
  max-width: 300px;
  padding: 7px 13px;
  color: #fff;
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.2;
  white-space: normal;
  text-wrap: balance;
  background: var(--ink-green, #092c25);
  border-radius: 12px 12px 12px 3px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: 50% 100%;
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.sp-bubble.is-in {
  opacity: 1;
  transform: none;
}

.sp-bubble.is-out {
  opacity: 0;
  transition-duration: 140ms;
}

.sp-interactive:focus-visible {
  outline: 2px solid #f45a46;
  outline-offset: 4px;
  border-radius: 10px;
}

/* loader lane takeover: legacy CSS-keyframe mark hides while a puppet rides */
.preview-panel .generation-snail-lane.has-snail-puppet {
  height: 64px;
  overflow: visible;
}
.generation-snail-lane.has-snail-puppet .generation-snail,
.generation-snail-lane.has-snail-puppet .generation-snail-trail {
  display: none;
}

/* idle wanderer host: bottom of the viewport, never intercepts input
   (only the snail itself opts back in for the wisdom click) */
.snail-wander-host {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 60;
}

@media (prefers-reduced-motion: reduce) {
  .snail-wander-host { display: none; }
}

/* ---------- Passwordless accounts (August 9, 2026 — brief A1) ---------- */

/* Header trigger. Text-weight on purpose: it sits beside Start a Card, which
   is the loud one, and an auth control should not compete with the CTA.
   Survives to mobile because .top-actions does (only .plan-status and
   .nav-links are pulled out of it below 900px). */
.account-button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.account-button:hover {
  background: var(--surface-solid);
  border-color: var(--ink);
}

.account-button.is-signed-in {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.signin-card {
  max-width: 460px;
  text-align: center;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 320px;
}

.signin-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--surface-solid);
}

.signin-form input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}

/* The code field reads as a code through spacing and width, NEVER through a
   larger font-size: the mobile 16px floor further down this file is
   !important and would override it anyway. */
.signin-code-input {
  text-align: center;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.signin-status {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--muted-strong);
  min-height: 1.2em;
}

.signin-status.is-good {
  color: var(--green);
  font-weight: 650;
}

.signin-status.is-problem {
  color: var(--coral-dark);
}

.signin-alt-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--coral-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button[disabled] {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

/* The attach-orders confirm. Sits above the sign-in modal so it can open the
   moment a sign-in lands, without closing the dialog underneath it. */
.attach-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 4px;
  text-align: left;
}

.attach-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  font-size: 16px;
  color: var(--body);
}

/* Explicit box, and specific enough to win: the global form rules further up
   this file set `select, input, textarea { width: 100% }` and
   `select, input { min-height: 42px }`, which stretched this checkbox to the
   full row and pushed the label out of the card. flex-basis:auto reads that
   width, so `flex: 0 0 auto` alone was not enough. */
.attach-row input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--coral);
  flex: 0 0 18px;
}

.attach-row span {
  flex: 1 1 auto;
  line-height: 1.45;
}

/* Section labels inside the one "found on this device" box (September 2, 2026). */
.attach-section-label {
  margin: 14px 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.attach-section-label:first-child {
  margin-top: 0;
}

.attach-foot {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--muted-strong);
}

.account-orders-strip {
  /* Bottom margin was 0, so the strip sat right on top of the ORDER SUMMARY
     heading and the two read as one crowded block (founder, Aug 15). They are
     different things — this is the account, that is the card being ordered —
     so they get real air between them. */
  margin: 18px 0 30px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  font-size: 16px;
  color: var(--body);
}

/* ---- The Your cards drawer (design review item 3, September 15, 2026) ----
   The strip's chrome moves onto a one-line bar; everything it used to show
   folds into a drawer under it, closed by default. */
.account-orders-strip.is-drawer {
  margin: 14px 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.orders-drawer-card {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid #e1d8cc;
  border-radius: var(--radius);
}

.orders-drawer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 9px 12px 9px 16px;
  cursor: pointer;
}

.orders-drawer-stack {
  display: flex;
  flex: 0 0 auto;
  padding: 2px 0;
}

.orders-drawer-stack img {
  width: 30px;
  height: 42px;
  margin-left: -10px;
  object-fit: cover;
  border: 1.5px solid #fffdfa;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(9, 44, 37, 0.22);
  transform: rotate(calc(var(--i, 0) * 3deg - 4deg));
}

.orders-drawer-stack img:first-child {
  margin-left: 0;
}

.orders-drawer-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.orders-drawer-bar.is-static {
  cursor: default;
}

.orders-drawer-title {
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.orders-drawer-sum {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.orders-drawer-bench {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.orders-drawer-bench::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.orders-drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}

.orders-drawer-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease-out;
}

.orders-drawer-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.orders-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease-out;
}

.orders-drawer.is-open {
  grid-template-rows: 1fr;
}

.orders-drawer-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 0s linear 220ms;
}

.orders-drawer-inner > :last-child {
  margin-bottom: 14px;
}

.orders-drawer.is-open .orders-drawer-inner {
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease 60ms, visibility 0s;
}

.orders-drawer-inner > :first-child {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.orders-drawer-inner .account-orders-empty {
  margin: 4px 0 0;
}

.orders-shelf-card.is-bench .orders-shelf-art {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.orders-shelf-badge.is-bench {
  color: var(--coral-dark, #d64533);
}

@media (max-width: 640px) {
  /* Phone: fan, title and toggle share the first row; the counts and the
     bench line take the full width beneath, so nothing wraps mid-phrase. */
  .orders-drawer-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    padding: 10px 10px 12px 14px;
  }

  .orders-drawer-text {
    display: contents;
  }

  .orders-drawer-stack {
    grid-row: 1;
  }

  .orders-drawer-title {
    grid-row: 1;
    grid-column: 2;
  }

  .orders-drawer-toggle {
    grid-row: 1;
    grid-column: 3;
    margin-left: 0;
  }

  .orders-drawer-sum,
  .orders-drawer-bench {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .orders-drawer-bench {
    display: flex;
  }

  .orders-drawer-inner {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orders-drawer,
  .orders-drawer-inner,
  .orders-drawer-toggle svg {
    transition: none;
  }
}

.account-orders-strip h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.account-orders-row {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- The member strip (August 16, 2026 — Phase 3) ----
   Inside the account block, above the shelf: plan, balance, two quiet
   actions. Reads as "your account", never as part of the Order Summary. */
.account-member-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: rgba(9, 44, 37, 0.04);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.account-member-strip .member-strip-plan {
  display: grid;
  gap: 1px;
}

.account-member-strip .member-strip-plan strong {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}

.account-member-strip .member-strip-plan span {
  font-size: 14.5px;
  color: var(--muted-strong);
}

.account-member-strip .member-strip-balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
}

.account-member-strip .member-strip-balance strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.account-member-strip .member-strip-balance span {
  font-size: 14.5px;
  color: var(--muted-strong);
}

.account-member-strip .member-strip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-member-strip .member-strip-buy {
  padding: 8px 14px;
  font-size: 15px;
}

@media (max-width: 560px) {
  .account-member-strip .member-strip-balance {
    margin-left: 0;
  }
}

/* The checkout credit button sits above the Stripe button and reads as
   the settled, quieter choice of the pair. */
.credit-spend-button {
  border-style: dashed;
}

/* ---- The shelf: every card, one list, badges tell the state ----
   (August 16, 2026 — Orders round 1.) Tiles read as little cards on a
   shelf: art forward, a quiet status, one action. The Order Summary below
   is the workbench; this is the record. Two identities, deliberately. */
.orders-shelf-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-shelf-sub {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: var(--muted);
}

.orders-shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  /* Room for the working card's coral outline (2px line, 2px offset = 4px
     outside the art). A scroller clips whatever leaves its padding box, and
     with 2px of side padding the first tile's left edge was shaved
     (founder, November 9, 2026, on their first real card). The negative
     margin gives the room back, so the tiles sit exactly where they did. */
  padding: 8px 6px 10px;
  margin-inline: -4px;
  scroll-padding-inline: 6px;
  scroll-snap-type: x proximity;
}

.orders-shelf-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orders-shelf-art {
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(9, 44, 37, 0.08);
}

.orders-shelf-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Preview art on the server can be cleaned up over time; a missing image
   shows the paper placeholder, never a broken-image glyph. */
.orders-shelf-art.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper) url("assets/snailmail-official-mark-web.png") center 40% / 42px auto no-repeat;
  opacity: 0.55;
}

.orders-shelf-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.92);
  color: var(--ink);
}

.orders-shelf-badge.is-open { color: #8a5a00; }
/* Cancelled (August 28, 2026): the record stays, the claim does not. */
.orders-shelf-badge.is-cancelled { color: #8d5049; }
.orders-shelf-badge.is-sent { color: var(--green, #11873e); }

/* Same badge, inline next to a settled paid row instead of over art. */
.orders-row-badge {
  position: static;
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.orders-shelf-who {
  font-weight: 650;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 4px;
}

.orders-shelf-meta {
  font-size: 13px;
  color: var(--muted);
}

.orders-shelf-resume {
  margin-top: 4px;
  align-self: flex-start;
  border: 1px solid var(--coral, #f45a46);
  background: none;
  color: var(--coral-dark, #de4634);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.orders-shelf-resume:hover {
  background: rgba(244, 90, 70, 0.08);
}

/* ---- The per-order status door (August 31, 2026) ----
   Quieter than the resume button on purpose: checking on a sent card is
   a calm act, finishing a draft is the call to action. */
.orders-shelf-check {
  margin-top: 4px;
  align-self: flex-start;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.orders-shelf-check:hover {
  background: rgba(9, 44, 37, 0.05);
}

.account-orders-row .orders-shelf-check {
  margin-top: 0;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---- Remove a card (November 9, 2026, second pass the same night) ----
   Remove lives ON the card. Nothing under the art changes in any state, so
   every tile on the shelf stays art, title, date and at most one pill.

   The x is the modal close button at tile scale. With a pointer it stays
   out of sight until that card is hovered or reached by keyboard; on touch
   there is no hover, so it rests faint in the corner. */
.orders-shelf-x {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #44514c;
  background: #fffdfa;
  border: 1px solid #ddd4c8;
  border-radius: 50%;
  /* Reads on dark art and on the pale placeholder alike. */
  box-shadow: 0 1px 4px rgba(9, 44, 37, 0.18);
  cursor: pointer;
  opacity: 0.86;
  transition: opacity 0.15s ease;
}

/* A thumb-sized target around a small mark. */
.orders-shelf-x::before {
  content: "";
  position: absolute;
  inset: -9px;
}

.orders-shelf-x svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (hover: hover) {
  .orders-shelf-x {
    opacity: 0;
  }

  .orders-shelf-card:hover .orders-shelf-x,
  .orders-shelf-x:focus-visible {
    opacity: 1;
  }
}

.orders-shelf-art.is-asking .orders-shelf-x {
  display: none;
}

/* The question, and any answer, on the card itself: a sheet of the same
   paper laid over the art. Type is the tile's own, title then date. */
.orders-shelf-ask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
  /* Solid, so the question looks the same over any artwork. */
  background: var(--paper, #fff9f3);
}

.orders-shelf-ask-title {
  margin: 0;
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.orders-shelf-ask-note {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  text-wrap: balance;
}

.orders-shelf-ask .orders-shelf-ask-button {
  margin-top: 0;
  align-self: center;
  min-width: 96px;
  background: #fffdfa;
}

.orders-shelf-ask .orders-shelf-ask-button.is-quiet {
  color: var(--muted);
}

.orders-shelf-ask .orders-shelf-ask-button:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .orders-shelf-x {
    transition: none;
  }
}

.account-orders-status {
  color: var(--muted);
  font-size: 14.5px;
}

.order-status-word {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}

.order-status-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.order-status-arrival {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.account-orders-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.account-orders-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .account-button {
    font-size: 15px;
    padding: 8px 13px;
  }
}

/* ---------- Your people (August 10, 2026 — brief A2) ---------- */

.people-card {
  margin: 0 0 32px;
  padding: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.people-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.people-head h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.people-head p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted-strong);
  font-size: 16px;
}

/* The title is the collapse control (August 26, 2026). A long book used to
   be one unbroken column between the step rail and the calendar; folding it
   keeps the calendar reachable without moving the section. The button sits
   INSIDE the h2 so the heading keeps its outline role, and it inherits the
   h2's serif wholesale. */
.people-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

/* The count keeps a collapsed header honest about what it is hiding, and
   earns its place expanded too once the list is long enough to fold. */
.people-count {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  color: var(--muted-strong);
  white-space: nowrap;
}

.people-toggle-chevron {
  width: 17px;
  height: 17px;
  color: var(--muted-strong);
  transition: transform 0.18s ease;
}

.people-card.is-collapsed .people-toggle-chevron {
  transform: rotate(-90deg);
}

@media (prefers-reduced-motion: reduce) {
  .people-toggle-chevron {
    transition: none;
  }
}

.people-scope-note {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* What an import could not take. Same colours as the calendar's "Needs
   details" chip, because it is the same kind of message: nothing is broken,
   something needs a person's attention. */
.people-import-note {
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px solid #ffd6cf;
  border-radius: 8px;
  background: #fff1ee;
  color: #c84230;
  font-size: 14.5px;
  line-height: 1.45;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.people-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  flex-wrap: wrap;
}

.people-row-main {
  flex: 1 1 220px;
  min-width: 0;
}

.people-row-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
}

.people-row-meta {
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.people-row-actions {
  display: flex;
  gap: 14px;
  flex: 0 0 auto;
  align-items: center;
}

.people-row-actions button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--coral-dark);
  cursor: pointer;
}

.people-row-actions button.people-row-remove {
  color: var(--muted-strong);
}

.people-empty {
  margin-top: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.people-empty p {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 16px;
}

.people-import-button {
  margin-top: 16px;
}

/* ---- The editor ---- */

.people-editor-card {
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
}

.people-editor-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.people-editor-address {
  border: 0;
  padding: 0;
  margin: 6px 0 0;
}

.people-editor-address legend {
  font-weight: 640;
  font-size: 16px;
  color: var(--ink);
  padding: 0 0 8px;
}

.people-editor-optional {
  font-weight: 500;
  color: var(--muted);
}

.people-editor-note {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

.people-editor-full {
  display: grid;
  gap: 6px;
  font-weight: 640;
  font-size: 16px;
  color: var(--ink);
  margin-top: 14px;
}

.people-editor-full textarea,
.people-editor-full input {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  color: var(--body);
  resize: vertical;
}

.people-editor-help {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--muted);
}

.people-editor-dates {
  border: 0;
  padding: 0;
  margin: 16px 0 0;
}

.people-editor-dates legend {
  font-weight: 640;
  font-size: 16px;
  color: var(--ink);
  padding: 0 0 8px;
}

.people-date-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.6fr 0.7fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.people-date-row label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 640;
  color: var(--muted-strong);
}

.people-date-row input,
.people-date-row select {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15.5px;
  color: var(--body);
  background: #fff;
}

/* The "Something else…" name field sits under its own row, full width, so a
   long occasion name is not squeezed into the narrow occasion column. */
.people-date-custom {
  grid-column: 1 / -1;
}

.people-date-remove {
  border: 0;
  background: none;
  color: var(--coral-dark);
  font-size: 18.5px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 4px;
}

/* Hidden rather than absent: the button holds its column so the four fields
   above it do not reflow the moment a row starts holding something. */
.people-date-remove[hidden] {
  display: block;
  visibility: hidden;
}

.people-editor-status {
  margin: 10px 0 0;
  font-size: 15px;
  min-height: 1.2em;
  color: var(--muted-strong);
}

.people-editor-status.is-good { color: var(--green); font-weight: 650; }
.people-editor-status.is-problem { color: var(--coral-dark); }

.calendar-save-status {
  margin: 10px 0 0;
  font-size: 15px;
  min-height: 1.2em;
  color: var(--green);
  font-weight: 650;
}

.calendar-save-status.is-problem {
  color: var(--coral-dark);
  font-weight: 600;
}

@media (max-width: 640px) {
  .people-date-row {
    grid-template-columns: 1fr 1fr;
  }
  /* iOS zooms the whole page in on any control under 16px. These four are
     now pickers, so that zoom fires on every tap of a date. */
  .people-date-row input,
  .people-date-row select {
    font-size: 17.5px;
  }
  .people-row-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =============================================================
   TWO CARDS ON ONE DAY (August 20, 2026)

   A calendar cell is 104px tall and holds one occasion chip; two
   would push the month grid off the page. So the cell keeps its
   chip and its "+N more" count, and the switcher below the grid
   is where the rest are reachable. It sits between the detail
   header and the fields it changes, so the answer to "which one
   am I editing?" is directly above the answer.

   Hidden on a day holding one thing, which is nearly every day.
   ============================================================= */
.occasion-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
}

.occasion-switcher[hidden] {
  display: none;
}

.occasion-switcher-label {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.occasion-switcher-chip {
  padding: 7px 13px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  background: #ffffff;
  border: 1px solid #ddd4c8;
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.occasion-switcher-chip:hover {
  border-color: var(--coral);
  background: var(--coral-soft);
}

/* The one being edited. Coral fill rather than a border tint: the
   pair sit side by side, so the active one has to win at a glance. */
.occasion-switcher-chip.is-active {
  color: #ffffff;
  background: var(--coral);
  border-color: var(--coral);
}

.occasion-switcher-chip:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* The popover's facts are the day's FIRST occasion; this is the line
   that stops it implying the day is only that one. */
.calendar-popover-more {
  margin: 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Stale-tab update nudge (August 20, 2026) ----------
   Shown when a long-suspended tab discovers a deploy landed while it
   slept and the buyer has state a quiet reload would destroy. Ink pill,
   coral action: an invitation, not an alarm. Sits below any modal
   overlay (those run z-index 1000) so it never covers a decision. */
.update-nudge {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(500px, calc(100vw - 32px));
  padding: 12px 14px 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 42, 36, 0.28);
  animation: update-nudge-rise 0.35s ease;
}

.update-nudge[hidden] {
  display: none;
}

.update-nudge-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.update-nudge-button {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--coral);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.update-nudge-button:hover {
  background: var(--coral-dark);
}

.update-nudge-button:focus-visible,
.update-nudge-dismiss:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.update-nudge-dismiss {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--paper);
  opacity: 0.7;
  font-size: 16px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
}

.update-nudge-dismiss:hover {
  opacity: 1;
}

@keyframes update-nudge-rise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* The mobile bottom tab bar (z-index 40, ~64px tall plus the safe area)
   owns the bottom edge below 900px; the nudge sits above it, never on it. */
@media (max-width: 900px) {
  .update-nudge {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

/* Phone widths: the one-row pill has no room, so it becomes a full-width
   card. Founder call, August 21: the copy reads first with the quiet
   dismiss tucked in the top corner, and the update action is a full-width
   row of its own — a real thumb target, not a chip leaning on the right
   edge. */
@media (max-width: 600px) {
  .update-nudge {
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 8px;
    row-gap: 14px;
    border-radius: 20px;
    padding: 16px;
    animation-name: update-nudge-rise-flat;
  }

  .update-nudge-copy {
    grid-column: 1;
    grid-row: 1;
    font-size: 17px;
    padding-top: 2px;
  }

  .update-nudge-dismiss {
    grid-column: 2;
    grid-row: 1;
    margin: -4px -4px 0 0;
  }

  .update-nudge-button {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 13px 16px;
    font-size: 17px;
  }
}

@keyframes update-nudge-rise-flat {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-nudge {
    animation: none;
  }
}

/* =============================================================
   DEMO VIDEO LAYER — August 21, 2026
   "Show me how it works": modal player for the 35-second Create
   walkthrough, plus its entry links (greeter, Create hero, How it
   works hero). Markup in index.html #demoVideoModal; wiring in
   app.js setupDemoVideo.
   ============================================================= */
.demo-video-card {
  position: relative;
  width: min(960px, calc(100vw - 48px));
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
  padding: 26px 26px 20px;
}
.demo-video-head {
  text-align: center;
  margin-bottom: 16px;
}
.demo-video-head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
}
.demo-video-frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-green, #092c25);
  box-shadow: var(--shadow-md);
}
.demo-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 813;
}
.demo-video-note {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: var(--muted-strong);
  line-height: 1.6;
}
.demo-video-note span {
  display: block;
}
.demo-video-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 650;
  color: var(--coral);
}
.demo-video-link svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  fill: currentColor;
  transition: transform 150ms ease;
}
.demo-video-link:hover {
  color: var(--coral-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-video-link:hover svg {
  transform: scale(1.08);
}
.create-greeter-actions {
  flex-direction: column;
  gap: 10px;
}
.demo-video-ghost {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--muted-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-video-ghost:hover {
  color: var(--ink);
}
@media (max-width: 640px) {
  .demo-video-card {
    width: calc(100vw - 24px);
    padding: 18px 14px 14px;
  }
}

/* ---------- Live-test polish (August 22, 2026) ----------
   Three fixes from watching a first-time tester on the live site. */

/* 1) HEADER PAIR. "Your cards" (outline) and "Start a Card" (coral fill) are
   the two header buttons, and they looked like buttons from different sites:
   one a 34px text pill, the other a 48px block. Same height, same corner
   radius, same type weight now; the outline-vs-fill difference carries the
   hierarchy on its own. Overrides the brief A1 base rule above. */
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: #fffdfa;
  font-size: 17.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  transition:
    transform 170ms ease,
    box-shadow 220ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.account-button:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

.account-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.account-button.is-signed-in:hover {
  border-color: var(--coral-dark);
}

/* "Start a Card" folded to two lines whenever the header got tight (the
   founder's own laptop screenshot shows "Start a / Card"). A CTA never wraps. */
.start-button {
  white-space: nowrap;
}

/* Laptop widths: the full desktop nav plus both header buttons need about
   1,260px at the base sizes. Step the nav and wordmark down before that so
   the header never overlaps itself between the desktop and mobile layouts. */
@media (max-width: 1320px) and (min-width: 901px) {
  .topbar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .brand img {
    width: 196px;
    height: 46px;
  }

  .nav-links {
    gap: clamp(14px, 2vw, 28px);
    font-size: 17px;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .brand img {
    width: 176px;
    height: 42px;
  }

  .nav-links {
    gap: 14px;
    font-size: 16px;
  }

  .top-actions {
    gap: 12px;
  }

  .start-button {
    min-width: 0;
    padding: 0 16px;
    font-size: 16px;
  }

  .account-button {
    padding: 0 14px;
    font-size: 16px;
  }
}

/* Narrow desktop windows, 901px to 1100px (November 12, 2026).
   Measured with the account button showing, as it always does on the live
   site: at 1024px "How it works" wrapped onto two lines signed out and three
   signed in, and under about 1000px the header was wider than the window.
   A menu link never wraps now, and the header steps down twice more so the
   whole row fits at every width down to where the phone header takes over:
   tighter spacing first, then smaller type, then the short "Start" label the
   phone header already uses. */
@media (min-width: 901px) {
  .nav-links a {
    white-space: nowrap;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
    column-gap: 18px;
  }

  .brand img {
    width: 168px;
    height: 40px;
  }

  .nav-links {
    gap: 12px;
  }
}

@media (max-width: 1040px) and (min-width: 901px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
    column-gap: 14px;
  }

  .brand img {
    width: 150px;
    height: 36px;
  }

  .nav-links {
    gap: 10px;
    font-size: 15px;
  }

  .top-actions {
    gap: 8px;
  }

  .start-button {
    padding: 0 13px;
    font-size: 15px;
  }

  .account-button {
    padding: 0 12px;
    font-size: 15px;
  }
}

@media (max-width: 960px) and (min-width: 901px) {
  .start-button span {
    display: none;
  }

  .start-button::after {
    content: "Start";
  }
}

/* Phone: match the compact "+ Start" exactly (48px tall, 14px/800).

   FOUND WHILE MEASURING (August 22, 2026): the header was 433px wide on a
   375px phone. The wordmark column was pinned to the lockup's 190px, so the
   header overflowed and iOS Safari quietly shrank the WHOLE page about 10%
   to fit (every phone screenshot the founder sent is that shrunk page, and
   it undoes the 16px input floor that keeps iOS from zooming on focus).
   The lockup now gives way to the two buttons instead. */
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .brand img {
    max-width: 100%;
  }

  .top-actions {
    gap: 8px;
  }

  .start-button {
    gap: 6px;
    padding: 0 12px;
  }

  .account-button {
    min-height: 48px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 800;
  }
}

/* 2) MONTH MENU PAGER. Earlier / Later slide the twelve-month window a year
   at a time without closing the menu. Sticky so it stays put on a phone,
   where the single-column list scrolls. */
.month-jump-pager {
  grid-column: 1 / -1;
  position: sticky;
  top: -8px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: -8px -8px 2px;
  padding: 8px 8px 6px;
  background: #fffdfa;
  border-bottom: 1px solid #ede4d8;
}

.month-jump-menu .month-jump-pager button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  background: #fff8ef;
  border: 1px solid #e6dccf;
  border-radius: 7px;
}

.month-jump-menu .month-jump-pager button:hover {
  background: rgba(255, 92, 74, 0.1);
  border-color: rgba(255, 92, 74, 0.34);
}

.month-jump-pager svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .month-jump-menu {
    max-height: min(70vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 3) PEOPLE EDITOR NAME FIELD. The help line under the name makes that
   label one row taller than its neighbour; stop the grid from stretching
   the relationship select to fill the difference. */
.people-editor-form .onboarding-fields label {
  align-content: start;
}

/* =============================================================
   MEMBERSHIP DISCOVERY (August 26, 2026)
   Two quiet lines, no new banners: the membership sentence at the
   foot of the payment-received banner, and the one-line plans note
   in the sign-in "You're in" step. Both stay hidden for members
   and credit holders; app.js decides, these only dress.
   ============================================================= */

.payment-received-banner .member-nudge-line {
  /* The aside, visibly set apart from the confirmation above it: a
     hairline and a step down in size keep "your order is safe" the
     loudest thing in the banner (founder note, August 27, 2026). */
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 95, 60, 0.16);
  font-size: 15.5px;
}

.payment-received-banner .member-nudge-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--coral);
  text-decoration: underline;
  cursor: pointer;
}

.signin-plans-note {
  margin: 2px 0 16px;
  font-size: 16px;
  color: var(--muted-strong);
}

.signin-plans-note .link-button {
  font-size: inherit;
}

/* ============================================================
   CARD MARK ZOOM + VERSION-SWITCH WAIT — August 27, 2026
   The calendar's card thumbnails open big (the Gallery's fold-open
   viewer, loaded with the buyer's own card and its plain facts), and
   flipping the Create version tray shows a quiet loading state instead
   of silently waiting on the incoming image.
   ============================================================ */

/* The thumbnail IS the button. Zero chrome of its own: the img inside
   keeps the row's existing sizing rules, this only adds the affordance. */
.card-mark-zoom {
  display: inline-flex;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: zoom-in;
  border-radius: 4px;
  line-height: 0;
}

.card-mark-zoom img {
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card-mark-zoom:hover img,
.card-mark-zoom:focus-visible img {
  transform: scale(1.06);
  box-shadow: 0 5px 12px rgba(31, 37, 32, 0.22);
}

.card-mark-zoom:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* The own-card facts list in the lightbox aside, matching the calendar
   popover's facts so one card reads the same everywhere. */
.gallery-lightbox-facts {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

.gallery-lightbox-facts div {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
}

.gallery-lightbox-facts dt {
  min-width: 72px;
  color: var(--muted, #7d8782);
}

.gallery-lightbox-facts dd {
  margin: 0;
  color: var(--body);
  font-weight: 640;
  /* The global order-summary `dd` rule right-aligns; here a wrapped value
     (a long interests line) would rag right off its own first line.
     Left, and owning the rest of the row, so wraps stay flush. */
  text-align: left;
  flex: 1;
  min-width: 0;
}

/* Version switch in flight: the scenes dim a step and the cursor says
   busy. Deliberately quiet — the chip and tray copy carry the words. */
.preview-panel.is-version-loading .card-scene,
.preview-panel.is-version-loading .inside-scene {
  opacity: 0.55;
  transition: opacity 180ms ease;
}

.preview-panel.is-version-loading {
  cursor: progress;
}

.version-chip.is-loading span {
  color: var(--coral-dark);
  font-weight: 700;
}

/* =========================================================================
   LEGIBILITY LAYER (August 31, 2026) — the founder-approved +15% pass.
   The 460 in-place size bumps throughout this file were baked by
   tools/typescale-exploration/apply-typescale.js (full bump at 14px and
   under, tapering to zero at 19px so display type never moves; floors 11px
   desktop / 12px phone; card-face, envelope, and print-composition
   selectors excluded so the preview keeps mirroring what prints). This
   layer holds the pieces a percentage can't express. Review artifact:
   https://claude.ai/code/artifact/2e583e79-a802-4224-b5e5-955b2606a61f
   ========================================================================= */

/* 1) Handwritten notes read about two sizes smaller than their setting
   (Caveat's small x-height), so the script lines get their own floor
   instead of the taper. The founder's example: "Three steps. One keeper."
   Sept 1 founder review round: 19px still read small in Caveat — the whole
   sub-head family steps up to ~24px, and the contextual 18.5px rules
   (calendar/orders/dashboard heroes) are named here so they can't pin
   their instances down. */
.brand-script-note,
.calendar-title-block .brand-script-note,
.order-hero .brand-script-note,
.dashboard-hero .brand-script-note,
.gallery-hero p.brand-script-note {
  font-size: clamp(23px, 1.7vw, 26px);
}

/* The home scroll story's "Send something made only for her." sits under a
   display-scale statement line and reads as its echo — founder wants it
   much bigger than the sub-head family. */
.hx-statement-sub.brand-script-note {
  font-size: clamp(32px, 3vw, 48px);
}

/* Merch shelf taglines ("Goes fast. Ships slow.") — same Caveat discount,
   smaller step so the 17.5px serif product name above still leads. */
.merch-caption small {
  font-size: 20px;
}

/* The waitlist band's own ".hiw-waitlist-inner > p" outranks the bare class,
   so the band instance (7 of 9 pages) needs the heavier selector too. */
.hiw-waitlist-status,
.hiw-waitlist-inner > p.hiw-waitlist-status {
  font-size: 19px;
  /* Two short sentences; balancing stops a lone "letter." on phones. */
  text-wrap: balance;
}

/* 2) The true tiny tier comes up to 12px on phones — chips, badges, flags,
   and the generation wait card. The percentage pass left these at 11 to
   11.5px; on a handheld screen the floor wins. (Selector list = the
   applier manifest's under-12 survivors.) */
@media (max-width: 700px) {
  .mini-status,
  .status-badge,
  .generation-progress-card p,
  .label-content dt,
  .order-card-cover small,
  .order-card-cover em,
  .kit-preview-item small,
  .gallery-card figcaption span,
  .month-jump-menu small,
  .calendar-grid-v2 .occasion-chip span,
  .calendar-grid-v2 .mini-status,
  .calendar-grid-v2 .calendar-day .example-flag,
  .calendar-day-more,
  .calendar-card-mark-word,
  .calendar-card-mark-more,
  .example-flag-inline,
  .selected-card-placeholder span,
  .merch-leader,
  .orders-shelf-badge {
    font-size: 12px;
  }
}

/* 3) Two spots where size alone could not fix it: contrast comes up a step. */
.credit-stats span {
  color: rgba(255, 255, 255, 0.8);
}

.calendar-field-help {
  color: #6b766f;
}

/* 4) Measured casualties of the +15% rebuild, each held by a one-line
   guard: the calendar stat-strip action links wrapped to two lines, and
   the reminder email chip went to three. */
.calendar-stat-strip article button {
  white-space: nowrap;
}

/* Sept 1 founder proofread: with nowrap alone the text outran the pill's
   background — the pill now grows to cover its own words. */
.reminder-email-chip {
  white-space: nowrap;
  width: max-content;
  max-width: none;
}

/* 5) Viewport-adaptive line wrapping — the founder's repeat comment, done
   by the browser at every width instead of hand-placed breaks that strand
   words at other widths. Headings balance their lines; running copy avoids
   short hanging last lines. Browsers without support render as before. */
h1,
h2,
h3,
.fulfillment-empty-sub,
.onboarding-sub,
.order-empty strong {
  text-wrap: balance;
}

p,
li,
dd,
figcaption,
small {
  text-wrap: pretty;
}

/* ============================================================
   STYLE SHELVES (September 3, 2026). The Classic / Expressive
   toggle is replaced by two always-visible shelves of tiles that
   scroll sideways with the next tile peeking in, on every screen
   size. Built by setupStylePickerUI in app.js. The trigger/menu
   rules above are inert now; .has-shelves hides the toggle and
   the family helper line, whose job the shelf labels carry.
   ============================================================ */

.style-picker.has-shelves .style-family-toggle,
.style-picker.has-shelves .field-help {
  display: none;
}

.style-shelves {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.style-shelf {
  --style-tile-w: 112px;
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.style-shelf-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.style-shelf-label strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.style-shelf-label small {
  color: var(--muted);
  font-size: 13px;
}

.style-strip {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 -2px;
  padding: 3px 2px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.style-strip::-webkit-scrollbar {
  display: none;
}

.style-tile {
  flex: 0 0 var(--style-tile-w);
  width: var(--style-tile-w);
  min-width: 0;
  display: grid;
  /* THE ROOT of the phone's blank strip: the strip stretched every tile to
     the tallest tile's height and the tile's grid then shared that spare
     height between its two rows, so a one-line label ("Classic Floral")
     left ~8px of extra frame under the cover. Rows pack at the top now and
     tiles keep their own height; the frame is exactly the card ratio. */
  align-content: start;
  gap: 6px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
}

.style-tile-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(33, 39, 34, 0.1);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

/* The frame owns the card ratio (554/400) through a padding box and the
   image fills it absolutely, so the picture can never be shorter than its
   frame whatever a browser does with a lazy <img>. (The strip the founder
   saw on the phone came from the stretch above; this is the belt to that
   fix's braces.) */
.style-tile-art::before {
  content: "";
  display: block;
  padding-bottom: 138.5%;
}

.style-tile img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-tile strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.25;
}

.style-tile:hover .style-tile-art {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.style-tile:focus-visible {
  outline: none;
}

.style-tile:focus-visible .style-tile-art {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.style-tile.is-selected .style-tile-art {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px var(--coral-soft), 0 6px 16px rgba(244, 90, 70, 0.16);
}

.style-tile.is-selected .style-tile-art::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>") center / 12px 12px no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.style-tile.is-selected strong {
  color: var(--coral-dark);
}

/* Chevrons for mouse users: a wheel does not scroll sideways. Hidden on
   touch, where the strip itself is the control. */
.style-strip-nav {
  position: absolute;
  top: calc(50% + 4px);
  z-index: 2;
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease;
}

.style-strip-nav svg {
  width: 14px;
  height: 14px;
}

.style-strip-nav.prev {
  left: -8px;
  transform: rotate(180deg);
}

.style-strip-nav.next {
  right: -8px;
}

@media (hover: hover) and (pointer: fine) {
  .style-strip-nav {
    display: grid;
  }

  .style-shelf:hover .style-strip-nav,
  .style-shelf:focus-within .style-strip-nav {
    opacity: 1;
  }

  .style-shelf.is-at-start .style-strip-nav.prev,
  .style-shelf.is-at-end .style-strip-nav.next {
    opacity: 0;
    pointer-events: none;
  }
}

.style-status {
  margin: 2px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.35;
}

.style-status strong {
  color: var(--ink);
  font-weight: 800;
}

/* Phone widths: the picker column measures ~309px on a 375px phone, and
   96px tiles landed three across with no fourth peeking in, which hid the
   "there is more" cue the whole design rests on. 104px tiles leave the
   third one cut at about three quarters, so the cut itself says scroll. */
@media (max-width: 560px) {
  .style-shelf {
    --style-tile-w: 104px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .style-strip {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .style-tile-art,
  .style-strip-nav {
    transition: none;
  }
}

/* =============================================================
   CALENDAR DELETION (September 3, 2026)
   The day panel's remove row: a ghost "Remove from calendar" that arms to
   "Sure?" on the first click (the People drawer's own pattern), beside a
   quiet "Edit in Your people" link. The samples' switch moved into the
   month menu as one full-width row under the months.
   ============================================================= */
.occasion-remove-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 4px;
}

.occasion-remove-row[hidden],
.occasion-remove-row button[hidden] {
  display: none;
}

.delete-occasion-button.is-armed {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.occasion-people-link {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--muted-strong);
  background: transparent;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0 0 1px;
  cursor: pointer;
  transition: color 0.16s ease;
}

.occasion-people-link:hover {
  color: var(--coral-dark);
}

.occasion-people-link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.month-jump-menu .month-jump-examples {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  margin-top: 2px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-strong);
  text-align: center;
  background: transparent;
  border-top: 1px solid #eee3d6;
  border-radius: 0;
}

.month-jump-menu .month-jump-examples:hover {
  color: var(--coral-dark);
  background: rgba(255, 92, 74, 0.08);
  border-color: transparent;
  border-top-color: #eee3d6;
}

/* =============================================================
   SLOW-SERVER HONESTY + HOME-PRINT SHELF (September 11, 2026)
   The checkout click wears its own wait, the Orders hero swaps to
   paper instead of keeping the previous card's face, and a card
   printed at home reads as finished in its own words.
   ============================================================= */

/* The clicked checkout button while the print slot is being confirmed. */
.payment-button.is-confirming,
.primary-button.is-confirming,
.secondary-button.is-confirming {
  cursor: progress;
  opacity: 0.82;
}

/* Hero swap: paper until the new card's file has actually decoded. */
.order-duo-front .order-card-scene {
  transition: opacity 260ms ease;
}

.order-card-visual.is-swapping .order-duo-front {
  background: #fff9f3;
  border-radius: 4px;
  box-shadow: 0 18px 32px rgba(15, 42, 36, 0.12);
}

.order-card-visual.is-swapping .order-duo-front .order-card-scene {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .order-duo-front .order-card-scene {
    transition: none;
  }
}

/* "Printed at home": settled tone, its own words. */
.orders-shelf-badge.is-home { color: var(--green, #11873e); }

.calendar-card-mark.is-home img {
  border-color: #cfe0d3;
}

.calendar-card-mark.is-home .calendar-card-mark-word {
  color: #3f7052;
}

.calendar-day-card.is-home .calendar-day-card-text span,
.calendar-popover-card.is-home .calendar-popover-card-text span {
  color: #3f7052;
  font-weight: 650;
}


/* ==========================================================================
   DESIGN REVIEW ROUND 1 (September 15, 2026): approve dock, version chips
   ========================================================================== */

/* Phone-only: a slim bar with the same Approve follows the buyer whenever
   the in-flow row is off screen. Sits above the tab bar. */
.approve-dock {
  position: fixed;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 9px 9px 10px;
  background: rgba(255, 253, 250, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(9, 44, 37, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(calc(100% + 24px));
  transition: transform 180ms ease-out, opacity 180ms ease-out;
  pointer-events: none;
}

.approve-dock.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.approve-dock img {
  flex: 0 0 auto;
  width: 40px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.approve-dock-text {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.approve-dock-text b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.approve-dock-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.approve-dock-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  background: #1f7a4d;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(31, 122, 77, 0.28);
  cursor: pointer;
}

.approve-dock-button:disabled {
  background: #158647;
  cursor: default;
}

.approve-dock-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 901px) {
  .approve-dock {
    display: none;
  }
}

/* Version chips share the tray's width: one fills it, two or three split
   it, nothing sits alone in a field of blank (founder, item 1 note). */
.version-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.version-chip {
  min-width: 0;
}

@media (max-width: 640px) {
  .version-list {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  }

  .version-chip {
    padding: 8px 9px;
  }

  .version-chip strong {
    font-size: 14px;
  }

  .version-chip span {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .approve-dock {
    transition: none;
  }

  .preview-actions.is-arriving {
    animation: approve-row-fade 200ms ease both;
  }

  @keyframes approve-row-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}


/* ==========================================================================
   DESIGN REVIEW ROUND 1 (September 15, 2026): home fold + stage chip
   ========================================================================== */

/* On a laptop the hero used to fill the window exactly, so the occasions
   ticker (the one thing that says "there is more") sat just under the
   fold. At laptop heights the hero gives up its slack so the ticker
   crosses the fold; bigger screens keep the roomy layout. */
@media (min-width: 900px) and (max-height: 900px) {
  .hx-hero {
    min-height: 0;
  }

  .hx-hero-inner {
    padding-top: 22px;
    padding-bottom: 10px;
  }

  .hx-headline {
    margin-top: 12px;
    font-size: clamp(50px, 5.3vw, 72px);
    line-height: 0.98;
  }

  .hx-lede {
    margin-top: 14px;
  }

  .hx-hero-actions {
    margin-top: 18px;
  }

  .hx-script {
    margin-top: 12px;
  }
}

.hx-ghost-button.is-seen svg {
  animation: none;
}

.hx-stage-chip {
  white-space: nowrap;
}

.hx-stage-chip .hx-chip-open {
  display: none;
}

.hx-hero-stage.has-open .hx-stage-chip .hx-chip-closed {
  display: none;
}

.hx-hero-stage.has-open .hx-stage-chip .hx-chip-open {
  display: inline;
}

.hx-chip-link {
  color: var(--coral);
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 90, 70, 0.5);
}

.hx-chip-link::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

/* The reduced-motion block above zeroes every hero transform, which also
   un-centred the chip (it is placed with translateX(-50%)). */
@media (prefers-reduced-motion: reduce) {
  .hx-stage-chip {
    transform: translateX(-50%);
  }

  .hx-vis-date .hx-date-card {
    transform: none;
  }
}


/* ==========================================================================
   DESIGN REVIEW ROUND 1 (September 15, 2026): five-tab bar on phones
   ========================================================================== */
.tab-bar,
.tab-sheet {
  display: none;
}

@media (max-width: 900px) {
  /* The scrolling pill strip retires; the tab bar below is the phone nav. */
  .nav-links {
    display: none !important;
  }

  .tab-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .tab-bar-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    color: #3f4c47;
    font-family: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .tab-bar-tab svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tab-bar-tab.active {
    color: var(--coral);
  }

  .tab-bar-tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 3px;
    margin-left: -12px;
    background: var(--coral);
    border-radius: 0 0 3px 3px;
  }

  .tab-bar-tab:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: -4px;
    border-radius: 10px;
  }

  .tab-sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
  }

  .tab-sheet[hidden] {
    display: none;
  }

  .tab-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 44, 37, 0.32);
    opacity: 0;
    transition: opacity 220ms ease-out;
  }

  .tab-sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--paper, #fff9f3);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 44px rgba(9, 44, 37, 0.18);
    transform: translateY(100%);
    transition: transform 220ms ease-out;
  }

  .tab-sheet.is-open .tab-sheet-backdrop {
    opacity: 1;
  }

  .tab-sheet.is-open .tab-sheet-panel {
    transform: none;
  }

  .tab-sheet-grab {
    display: block;
    width: 36px;
    height: 4px;
    margin: 6px auto 10px;
    background: var(--line-strong);
    border-radius: 2px;
  }

  .tab-sheet-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 0 10px;
    color: var(--ink);
    font-family: inherit;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
  }

  .tab-sheet-row[hidden] {
    display: none;
  }

  .tab-sheet-row svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tab-sheet-row:hover,
  .tab-sheet-row:focus-visible {
    background: rgba(9, 44, 37, 0.05);
    outline: none;
  }

  .tab-sheet-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    background: var(--coral);
    border-radius: 999px;
  }

  .tab-sheet-badge[hidden] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab-sheet-backdrop,
  .tab-sheet-panel {
    transition: none;
  }
}

/* ============================================================
   DESIGN REVIEW ROUND 2 (September 16, 2026)
   Items 11, 12, 15, 17, 18, 19, 20, 21, 22 (Create parts) and the
   How it works poster, built to the founder's notes. Later rules win
   on purpose: the envelope recipe, the postmark timing and the rail
   halo below override the earlier layers by position.
   ============================================================ */

/* ---------- 15. One rail, one vocabulary ---------- */

/* The discs change color in 200ms and pulse twice when a step lights,
   then rest (the old halo ran forever). gate0SyncOrderRail re-adds
   is-current so the two pulses restart when the current step changes. */
.order-progress strong {
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 200ms ease,
    box-shadow 220ms ease;
}

.order-progress .is-current strong {
  animation: ax-halo 2.4s ease-in-out 2;
}

/* ---------- 18. The delivery choice reads in one glance ---------- */

@media (min-width: 901px) {
  .delivery-choice-card {
    grid-template-columns: 28px 48px minmax(0, 1fr);
    gap: 14px;
    min-height: 96px;
    padding: 16px 18px;
  }

  /* The badge is pinned to the corner, so the TITLE row keeps clear of
     it and never runs under "Recommended"; the sentence below may use
     the whole row. */
  .delivery-choice-card:has(> em) > span:last-of-type > strong {
    padding-right: 104px;
  }

  .choice-art {
    width: 48px;
    height: 48px;
    background: #f3efe9;
    border-radius: 10px;
  }

  .choice-art svg {
    width: 24px;
    height: 24px;
  }

  .delivery-choice-card em {
    position: absolute;
    top: 12px;
    right: 12px;
    align-self: auto;
    padding: 4px 9px;
    font-size: 11.5px;
    letter-spacing: 0.03em;
  }
}

.delivery-choice-card strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  font-size: 17px;
  font-weight: 700;
}

.delivery-choice-card small {
  margin-top: 5px;
  color: #5a665f;
  font-size: 15px;
  line-height: 1.4;
}

/* The price, on both options, as a quiet trailing figure in the title row. */
.choice-price {
  color: var(--muted-strong);
  font-size: 15.5px;
  font-weight: 700;
}

/* Phone receipt strip: price and arrival directly above the button. */
.checkout-receipt-strip {
  display: none;
}

@media (max-width: 900px) {
  .checkout-receipt-strip {
    display: block;
    margin: 0;
    padding: 12px 0;
    color: var(--ink);
    background: var(--paper);
    border-top: 1px solid #e1d8cc;
    border-bottom: 1px solid #e1d8cc;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    text-wrap: balance;
  }
}

.checkout-receipt-strip[hidden] {
  display: none;
}

/* ---------- 20. A real footer ---------- */

.site-footer {
  padding: 48px 42px 28px;
  background: var(--paper);
  border-top: 1px solid #ddd6c9;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
}

/* The wrapper is the footer logo's own box, so the trademark mark (the same
   .brand-tm overlay the header uses) has something to sit on. */
.site-footer-logo {
  position: relative;
  display: block;
  width: 160px;
}

.site-footer-brand img {
  display: block;
  width: 160px;
  height: auto;
}

.site-footer-brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: #3f4c47;
  font-size: 15px;
  line-height: 1.5;
}

/* The live Instagram account (November 9, 2026): one quiet link under
   the tagline, the glyph drawn in ink like the rest of the footer. */
.site-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-social svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer-social .site-footer-social-dot {
  fill: currentColor;
  stroke: none;
}

.site-footer-social:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-col {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 9px;
}

.site-footer-col h2 {
  margin: 0 0 4px;
  color: var(--coral);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer-col a {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-col small {
  margin-top: -3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.site-footer-legal {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 18px;
  color: #6b7570;
  border-top: 1px solid #e6dfd3;
  font-size: 13.5px;
}

@media (max-width: 900px) {
  /* Stacked and centered; the bottom clearance keeps it above the tab bar. */
  .site-footer {
    padding: 40px 18px 96px;
    text-align: center;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer-logo,
  .site-footer-brand img,
  .site-footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer-col {
    justify-items: center;
    gap: 12px;
  }

  .site-footer-legal {
    text-align: center;
  }
}

/* ---------- 21. Calendar: an honest strip, one EXAMPLE label ---------- */

.calendar-stat-strip .example-pill {
  display: inline-flex;
  margin-top: 7px;
  font-size: 11px;
}

#calendarRemindersStat strong.is-on {
  color: #157347;
}

#calendarRemindersStat[hidden],
#calendarCreditsStat[hidden] {
  display: none;
}

/* One note above the list instead of a pill on every row (founder). */
.upcoming-example-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: 13.5px;
  line-height: 1.4;
}

.upcoming-example-note[hidden] {
  display: none;
}

.upcoming-example-note .example-pill {
  flex: 0 0 auto;
}

.upcoming-list-v2 .upcoming-item.is-example .upcoming-title-row strong {
  color: #78827c;
}

.upcoming-list-v2 .upcoming-item.is-example .upcoming-date {
  color: #6a746f;
}

.upcoming-month-caption {
  display: block;
  padding: 14px 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.upcoming-list-v2 .upcoming-month-caption + .upcoming-item {
  border-top: 0;
}

/* The whole list can open in place: 240ms height ease, none under reduced motion. */
.upcoming-list-v2 {
  transition: max-height 240ms ease;
}

.see-all-button[hidden] {
  display: none;
}

/* Example chips in the month grid: a dashed border in their tone and a
   6% tint on the chip only, so the selected cell's coral ring still
   reads as selection. */
.calendar-grid-v2 .calendar-day.is-example .occasion-chip {
  border: 1.5px dashed rgba(21, 134, 71, 0.5);
  background: rgba(21, 134, 71, 0.06);
}

.calendar-grid-v2 .calendar-day.is-example.tone-amber .occasion-chip,
.calendar-grid-v2 .calendar-day.is-example.tone-planned .occasion-chip {
  border-color: rgba(183, 121, 31, 0.55);
  background: rgba(183, 121, 31, 0.06);
}

.calendar-grid-v2 .calendar-day.is-example.tone-coral .occasion-chip {
  border-color: rgba(244, 90, 70, 0.5);
  background: rgba(244, 90, 70, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .upcoming-list-v2 {
    transition: none;
  }
}

/* ---------- 17. The first field on the first screen (phones) ---------- */

/* Laptop spacing stays as it was (founder: it reads well). On phones the
   proof list and the script note step aside so the recipient field sits
   on the first screen. */
@media (max-width: 900px) {
  .create-ax-hero .ax-proofline,
  .create-ax-hero .brand-script-note {
    display: none;
  }

  .create-ax-hero {
    margin-bottom: 14px;
  }

  .create-ax-hero .ax-title {
    margin-top: 12px;
  }

  .create-ax-hero .ax-lede {
    margin-top: 12px;
  }

  .create-ax-hero .demo-video-link {
    margin-top: 12px;
  }
}

/* ---------- 22. One coral per moment (Create parts) ---------- */

/* The step-4 calendar module folds to one row once the art is in, with
   an inline Save that opens the fields (gate0SyncCalendarModule). */
.calendar-save-inline {
  align-self: center;
  margin-left: auto;
  padding: 6px 2px;
  color: var(--coral);
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 760;
  cursor: pointer;
}

.calendar-save-inline:hover {
  color: var(--coral-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calendar-save-inline[hidden] {
  display: none;
}

.calendar-save-module.is-ready .calendar-save-heading {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
}

.calendar-save-fields {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 160ms ease;
}

.calendar-save-fields-inner {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.calendar-save-module.is-ready:not(.is-open) .calendar-save-fields {
  grid-template-rows: 0fr;
}

.calendar-save-module.is-ready:not(.is-open) {
  gap: 0;
}

.calendar-save-module .calendar-save-heading .calendar-save-status {
  margin: 6px 0 0;
}

.calendar-save-module.is-ready:not(.is-open):not(.is-saved) .calendar-save-heading .calendar-save-status {
  display: none;
}

.calendar-save-module.is-ready.is-saved #loadingCalendarPrompt {
  display: none;
}

.calendar-save-module.is-ready.is-saved .calendar-save-heading .calendar-save-status::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .calendar-save-fields {
    transition: none;
  }
}

/* ---------- The How it works poster (also-item) ---------- */

.hiw-video-card {
  display: none;
}

@media (min-width: 1241px) {
  .hiw-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: center;
  }

  .hiw-hero .ax-eph-stamp,
  .hiw-hero .demo-video-link {
    display: none;
  }

  /* Straight and seated: the card sits on the grid, no tilt, no float. */
  .hiw-video-card {
    display: grid;
    gap: 14px;
    width: min(100%, 520px);
    margin: 0 0 0 auto;
    padding: 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
  }

  .hiw-video-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1c2b26;
    border: 1px solid rgba(15, 42, 36, 0.12);
    border-radius: 14px;
    box-shadow:
      0 2px 4px rgba(33, 39, 34, 0.08),
      0 22px 46px rgba(33, 39, 34, 0.18),
      0 46px 92px rgba(33, 39, 34, 0.12);
  }

  .hiw-video-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
  }

  .hiw-video-card:hover .hiw-video-frame img {
    transform: scale(1.03);
  }

  .hiw-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    color: #fff;
    background: var(--coral);
    border-radius: 50%;
    box-shadow:
      0 10px 28px rgba(244, 90, 70, 0.4),
      0 0 0 8px rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%);
    transition: transform 180ms ease;
  }

  .hiw-video-play svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    fill: currentColor;
  }

  .hiw-video-card:hover .hiw-video-play {
    transform: translate(-50%, -50%) scale(1.06);
  }

  .hiw-video-length {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 8px;
    color: #fff;
    background: rgba(9, 44, 37, 0.78);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .hiw-video-caption {
    display: grid;
    gap: 2px;
    padding: 0 4px;
  }

  .hiw-video-caption strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
  }

  .hiw-video-caption span {
    color: var(--muted-strong);
    font-size: 14.5px;
  }

  .hiw-video-card:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 6px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hiw-video-frame img,
  .hiw-video-play {
    transition: none;
  }
}

/* ---------- 19 + 12. The envelope is white, like the real one ---------- */

/* Product accuracy (founder, September 16, 2026): the envelopes we mail
   are white, not kraft. A wove white with a whisper of fiber grain, crisp
   edges and the same soft shadow; the stamp, postmark and hand-written
   addresses sit on it exactly as before. Applies to the home journey and
   the Mail Room scene. */
.hx-envelope {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.22 0 0 0 0 0.26 0 0 0 0 0.24 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(20, 40, 34, 0.016) 0 1px, transparent 1px 7px),
    linear-gradient(104deg, rgba(20, 40, 34, 0.035), transparent 16%),
    linear-gradient(256deg, rgba(20, 40, 34, 0.035), transparent 16%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 46%),
    linear-gradient(168deg, #ffffff, #f4f3ef);
  border-color: rgba(20, 40, 34, 0.17);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1.5px 0 rgba(20, 40, 34, 0.07),
    inset 0 0 34px rgba(20, 40, 34, 0.035),
    0 1px 2px rgba(33, 39, 34, 0.1),
    0 3px 6px rgba(33, 39, 34, 0.08),
    0 22px 46px rgba(33, 39, 34, 0.18),
    0 46px 92px rgba(33, 39, 34, 0.12);
}

/* ---------- 19. Step 3 to step 4: the card slides into the envelope ---------- */

/* Keyed off the classes the engine already toggles (is-on / is-past on
   the visuals, is-step-4 on the stage), so scrubbing back reverses for
   free. The envelope rises to meet the card, opaque early so nothing
   crossfades; the card shrinks and drops behind its top edge; the
   postmark strikes once the card is inside. Phones and reduced motion
   keep the old crossfade (hx-static). */
body:not(.hx-static) .hx-vis-mail {
  transform: translateY(70px) scale(0.98);
  transition:
    opacity 240ms ease 60ms,
    transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms;
}

body:not(.hx-static) .hx-vis-mail.is-on {
  transform: none;
}

body:not(.hx-static) .hx-stage.is-step-4 .hx-vis-card.is-past {
  opacity: 0;
  transform: translateY(4%) scale(0.66);
  transition:
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 160ms ease 440ms;
}

body:not(.hx-static) .hx-vis-mail.is-on .hx-env-postmark {
  animation-delay: 760ms;
}

/* ---------- 11. The snail rides the route ---------- */

.hx-route-rider {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.hx-route-rider.is-live {
  opacity: 1;
}

.hx-rider-wrap {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 50% 100%;
  will-change: transform;
}

/* ---------- 12. The Mail Room shows the card in its envelope ---------- */

.mail-route-head.has-scene {
  grid-template-columns: auto minmax(0, 1fr) minmax(200px, 250px);
  gap: 28px;
  align-items: start;
}

.mr-scene-box {
  position: relative;
  width: 300px;
  height: 322px;
}

/* The scene is drawn at the home envelope's native size and scaled as one
   piece, so every stamp, postmark and hand-written line reuses the home
   journey's recipe untouched. gate0SyncMailRoomScene sets the scale. */
.mr-scene {
  --mr-peek: 0.58;
  position: absolute;
  top: 0;
  left: 0;
  width: 451px;
  height: 484px;
  transform-origin: 0 0;
  transform: scale(var(--mr-scale, 0.665));
}

.mr-card {
  position: absolute;
  top: calc(162px - var(--mr-peek) * 280px);
  left: 50%;
  z-index: 0;
  width: 200px;
  height: 280px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #e1d8cc;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(33, 39, 34, 0.22);
  transform: translateX(-50%) rotate(-3deg);
  transform-origin: 50% 100%;
  transition: top 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mr-scene.is-stamped {
  --mr-peek: 0.12;
}

.mr-scene.is-empty .mr-card {
  display: none;
}

.mail-route-panel .mr-scene .hx-envelope {
  position: absolute;
  top: 162px;
  left: 0;
  z-index: 1;
  width: 451px;
  transform: none;
}

.mr-scene .hx-env-postmark {
  opacity: 0;
}

.mr-scene.is-stamped .hx-env-postmark {
  animation: hx-postmark-strike 480ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 220ms forwards;
}

.mr-scene .hx-env-return[hidden] {
  display: none;
}

.mr-scene .hx-env-address {
  top: 52%;
  max-width: 62%;
}

.mr-scene .mr-address-lines {
  display: block;
  font-size: 22px;
  line-height: 1.32;
  white-space: pre-line;
}

.mr-scene.is-unaddressed .mr-address-lines {
  color: rgba(28, 56, 47, 0.55);
  font-size: 20px;
}

/* First paint: the card settles into place once. */
@keyframes mr-card-settle {
  from {
    opacity: 0.4;
    transform: translate(-50%, -18px) rotate(-3deg);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) rotate(-3deg);
  }
}

.mr-scene.is-fresh .mr-card {
  animation: mr-card-settle 500ms ease-out both;
}

.mail-route-copy .mail-route-address-door {
  margin-top: 10px;
}

.mail-route-copy .mail-route-address-door[hidden] {
  display: none;
}

#mailRouteNote a,
.mail-route-address-door a,
.mail-route-address-door button {
  padding: 0;
  color: var(--coral-dark);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* A card that was never ordered: every dot grey. */
.mail-route-panel.is-unordered .mail-route-steps li > span {
  background: #e4ddd2;
  border-color: #e4ddd2;
  box-shadow: none;
}

@media (max-width: 900px) {
  .mail-route-head.has-scene {
    grid-template-columns: 1fr;
  }

  .mr-scene-box {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mr-card,
  .mr-scene.is-fresh .mr-card {
    animation: none;
    transition: none;
  }

  .mr-scene.is-stamped .hx-env-postmark {
    animation: none;
    opacity: 1;
  }
}

/* Round 2 addenda: link-styled buttons the Mail Room copy builds, and
   the footer's in-page targets clear the fixed header on arrival. */
.mr-link {
  padding: 0;
  color: var(--coral-dark);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#faq,
#faq-late,
#membershipPlans {
  scroll-margin-top: 96px;
}

/* The next-date tile keeps its date on one line in the narrow strip. */
#calendarNextStat strong {
  font-size: 25px;
  white-space: nowrap;
}

/* Round 2, founder walk notes (September 16, 2026) */

/* Calendar strip: a link never spills into the next tile. */
.calendar-stat-strip article > div {
  min-width: 0;
}

.calendar-stat-strip article button {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}

/* Month cells: the status pill fits its chip on a 1280 laptop, wrapping
   to two lines instead of crossing the chip's edge. */
.calendar-grid-v2 .occasion-chip {
  min-width: 0;
}

.calendar-grid-v2 .mini-status {
  width: fit-content;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

/* The 1 to 5 rail: each arrow sits centered between two blocks of copy,
   and a title stays on one line, so the arrows read as one rhythm. */
@media (min-width: 1241px) {
  .calendar-step-rail {
    grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
    column-gap: 10px;
  }

  .calendar-step-rail > i {
    width: 32px;
    justify-self: center;
  }

  .calendar-step-rail article {
    grid-template-columns: 44px auto;
  }

  .calendar-step-rail article strong {
    font-size: 15px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .calendar-step-rail article small {
    white-space: nowrap;
  }
}

/* Day panel: the card pair sits centered in its column and a touch
   larger, instead of hugging the right edge (founder note). */
.duo-front {
  width: 200px;
  transform: translateX(-20px) rotate(-2.5deg);
}

.duo-inside {
  width: 184px;
  transform: translateX(44px) rotate(4deg);
}

.selected-card-art.has-approved-art:hover .duo-front {
  transform: translateX(-20px) rotate(-1deg) translateY(-4px);
}

.selected-card-art.has-approved-art:hover .duo-inside {
  transform: translateX(50px) rotate(6deg) translateY(-2px);
}

/* =============================================================
   MERCH PAGE REFRESH (September 16, 2026)
   1. The hero punchline rides the headline it answers.
   2. The shelf head is one table caption (the rail).
   3. Tiles open big in a lightbox; hoodie and tee flip front / back.
   ============================================================= */

/* 1. "In a good way." sits tight under "carried away." and comes in before
   the lede now that it precedes it; the lede then gets its own air. */
.merch-hero .merch-punchline {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  animation-delay: 400ms;
}

.merch-hero .merch-punchline + .ax-lede {
  margin-top: 24px;
  animation-delay: 560ms;
}

/* 2. The rail: one caption line between the hero and the table. */
.merch-hero-compact {
  padding-bottom: 26px;
}

.merch-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(9, 44, 37, 0.22);
}

.merch-rail-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--coral);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.merch-rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.merch-rail-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.merch-rail-label > span {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .merch-rail-label {
    font-size: 12.5px;
    letter-spacing: 0.1em;
  }

  .merch-rail-hint {
    display: none;
  }
}

/* 3a. Tiles open big. */
.merch-art {
  cursor: zoom-in;
}

.merch-photo {
  transition: opacity 180ms ease;
}

.merch-photo.is-swapping {
  opacity: 0;
}

.merch-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  opacity: 0.85;
  transition: opacity 150ms ease, transform 150ms ease;
}

.merch-zoom svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merch-card:hover .merch-zoom,
.merch-zoom:focus-visible {
  opacity: 1;
  transform: scale(1.06);
}

/* 3b. Front / back: a two-segment pill on the tile and in the lightbox. */
.merch-flip {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.merch-art .merch-flip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
}

.merch-flip button {
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
}

.merch-flip button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  cursor: default;
}

/* 3c. The lightbox: same backdrop, paper and close button as the gallery's. */
.merch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.merch-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.merch-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 25, 20, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.merch-lightbox-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(960px, 94vw);
  max-height: 92vh;
  padding: 18px 18px 16px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
  transform: translateY(14px) scale(0.97);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.merch-lightbox.is-open .merch-lightbox-dialog {
  transform: none;
}

.merch-lightbox-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: calc(92vh - 140px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper-deep);
}

.merch-lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.merch-lightbox-stage img.is-swapping {
  opacity: 0;
}

.merch-lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.merch-lightbox-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.1;
}

.merch-lightbox-tagline {
  margin: 2px 0 0;
  color: var(--muted-strong);
  font-family: var(--hand);
  font-size: 21px;
  line-height: 1.3;
}

.merch-lightbox-tools {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.merch-lightbox-count {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.merch-lightbox-nav {
  display: inline-flex;
  gap: 8px;
}

.merch-lightbox-nav button,
.merch-lightbox-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}

.merch-lightbox-nav button:hover,
.merch-lightbox-close:hover {
  border-color: var(--coral);
}

.merch-lightbox-nav svg,
.merch-lightbox-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merch-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.merch-lightbox-close:hover {
  transform: rotate(90deg);
}

body.merch-lightbox-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .merch-lightbox {
    padding: 12px;
  }

  .merch-lightbox-dialog {
    padding: 12px 12px 14px;
  }

  .merch-lightbox-copy h3 {
    font-size: 22px;
  }

  .merch-lightbox-tagline {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .merch-lightbox,
  .merch-lightbox-dialog,
  .merch-lightbox-stage img,
  .merch-zoom,
  .merch-photo {
    transition: none;
  }
}

/* ANATOMY OF A CARD (September 22, 2026). The interactive tour on the How it
   works page, between the loop and the two ways: one real card (Ruth, Marcus
   or Zoe from the Bend sample pack, press resolution) as a CSS 3D folded
   object, six stops driven by scroll, drag to turn. Engine: anatomy-tour.js;
   prototype and asset builder: tools/anatomy-tour/. Everything is prefixed
   ca- and scoped under .hiw-anatomy. Ground is the ink green, type cream,
   accent coral: the three brand colours, nothing else. */
.hiw-anatomy {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  --ca-card-w: 600px;          /* one panel, in rig units; the JS scales the rig, never the card */
  --ca-card-h: 840px;
  --ca-cream: #fff9f3;
}
.hiw-anatomy .hx-section-head {
  margin-bottom: 26px;
}
.hiw-anatomy .ca-lede {
  margin: 14px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted, #4e6b5f);
  text-wrap: pretty;
}
.ca-picker {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-deep);
}
.ca-picker button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font: 600 14px var(--sans);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.ca-picker button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ca-cream);
}
.ca-picker button:focus-visible,
.ca-step:focus-visible,
.ca-dots button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.ca-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The tour is tall so the stage can stay pinned while six stops scroll past.
   The stage sits just under the sticky top bar (--ca-top, measured by the
   JS) and, on phones, above the tab bar (--ca-bottom). */
.ca-tour {
  position: relative;
  height: 560vh;
}
.ca-tour.is-manual {
  height: auto;
}
.ca-stage {
  position: sticky;
  top: calc(var(--ca-top, 82px) + 12px);
  height: calc(100vh - var(--ca-top, 82px) - var(--ca-bottom, 0px) - 24px);
  height: calc(100svh - var(--ca-top, 82px) - var(--ca-bottom, 0px) - 24px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  color: var(--ca-cream);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.ca-tour.is-manual .ca-stage {
  position: relative;
  top: 0;
  height: min(720px, 86vh);
}
.ca-stage.is-dragging {
  cursor: grabbing;
}
.ca-stage:focus-visible {
  box-shadow: inset 0 0 0 2px var(--coral);
}

/* The card lives in a window: however far the tour zooms in, the paper never
   runs under the copy beside it. */
.ca-window {
  position: absolute;
  left: 4%;
  top: 7%;
  width: 52%;
  height: 86%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 249, 243, 0.05);
}
.ca-rig {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}
.ca-scene {
  position: absolute;
  inset: 0;
  perspective: 2600px;
  perspective-origin: 50% 50%;
}
.ca-card,
.ca-panel,
.ca-fan {
  transform-style: preserve-3d;
}
.ca-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ca-card-w);
  height: var(--ca-card-h);
  transform-origin: 0 0;
}
.ca-panel {
  position: absolute;
  inset: 0;
}
.ca-cover {
  transform-origin: 0 50%;
}
.ca-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #f6efe4;
}
.ca-face img {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  pointer-events: none;
}
.ca-face-front { transform: translateZ(0.6px); }
.ca-face-inside-left { transform: rotateY(180deg) translateZ(0.6px); }
.ca-face-inside-right { transform: translateZ(0); }
.ca-face-back { transform: rotateY(180deg) translateZ(0.6px); }
.ca-shade {
  position: absolute;
  inset: 0;
  background: #06140f;
  opacity: 0;
  pointer-events: none;
}
.ca-mark {
  position: absolute;
  pointer-events: none;      /* invisible anchors the JS measures */
}
.ca-fan {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.ca-fan img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 135%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.ca-shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 600px;
  height: 70px;
  margin: 0 0 0 -300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  transform-origin: 50% 50%;
  pointer-events: none;
}
.ca-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.ca-leaders rect,
.ca-leaders path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ca-leaders circle {
  fill: var(--coral);
}
.ca-leaders circle.ring {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.5;
}
.ca-callout {
  position: absolute;
  left: 60%;
  top: 50%;
  width: min(34%, 420px);
  transform: translateY(-50%);
  pointer-events: none;
}
.ca-count {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}
.ca-count-of {
  color: rgba(255, 249, 243, 0.5);
}
.ca-callout .ca-title {
  margin: 0 0 14px;
  color: var(--ca-cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.ca-callout .ca-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 249, 243, 0.78);
  text-wrap: pretty;
}
.ca-stops {
  position: absolute;
  left: 60%;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ca-dots {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ca-dots button {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.ca-dots button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 249, 243, 0.32);
  transition: transform 0.2s, background 0.2s;
}
.ca-dots button[aria-current="true"]::after {
  background: var(--coral);
  transform: scale(1.5);
}
.ca-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 249, 243, 0.35);
  background: transparent;
  color: var(--ca-cream);
  font-size: 17px;
  cursor: pointer;
}
.ca-step:disabled {
  opacity: 0.3;
  cursor: default;
}
.ca-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 249, 243, 0.45);
  transition: opacity 0.4s;
  pointer-events: none;
}
.ca-hint.is-used {
  opacity: 0;
}
@media (max-width: 900px) {
  .hiw-anatomy {
    width: min(1160px, calc(100% - 24px));
  }
  .ca-stage {
    border-radius: 20px;
    top: calc(var(--ca-top, 0px) + 8px);
    height: calc(100vh - var(--ca-top, 0px) - var(--ca-bottom, 0px) - 16px);
    height: calc(100svh - var(--ca-top, 0px) - var(--ca-bottom, 0px) - 16px);
  }
  .ca-window {
    left: 12px;
    top: 12px;
    width: auto;
    right: 12px;
    height: auto;
    bottom: 258px;
    border-radius: 16px;
  }
  .ca-callout {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 88px;
    width: auto;
    transform: none;
    min-height: 140px;
  }
  .ca-count {
    margin-bottom: 8px;
  }
  .ca-callout .ca-title {
    font-size: 25px;
    margin-bottom: 8px;
  }
  .ca-callout .ca-body {
    font-size: 15px;
    line-height: 1.45;
  }
  .ca-stops {
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
  }
  .ca-hint {
    bottom: 10px;
  }
}

/* ANATOMY OF A CARD, home module (September 22, 2026): a still card standing
   half open beside six details and one button, the door to the tour on How it
   works. Same band shape as the CTA band, on the ink green. */
.hx-anatomy {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 76px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 90, 70, 0.14), transparent 26rem),
    var(--ink);
  color: #fff9f3;
}
.hx-anatomy .hx-eyebrow {
  color: var(--coral);
}
.hx-anatomy h2 {
  margin: 10px 0 0;
  color: #fff9f3;
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hx-anatomy-sub {
  margin: 16px 0 0;
  max-width: 46em;          /* one line on a wide screen; balanced halves, never a stranded pair, below that */
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 249, 243, 0.78);
  text-wrap: balance;
}
.hx-anatomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hx-anatomy-list li {
  padding: 7px 13px;
  border: 1px solid rgba(255, 249, 243, 0.28);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 249, 243, 0.9);
}
.hx-anatomy .primary-button {
  margin-top: 26px;
}
/* The still: a card standing as a tent, the front (with the name) on the
   left and the inside page on the right, seen a little from the left. The
   cover carries both its faces; backface-visibility picks the right one. */
.hx-anatomy-card {
  display: grid;
  place-items: center;
  min-height: 380px;
  perspective: 1400px;
}
.hx-anatomy-scene {
  position: relative;
  width: 210px;
  height: 294px;
  transform-style: preserve-3d;
  transform: translateX(52px) rotateY(-24deg) rotateX(3deg);
}
.hx-anatomy-rear,
.hx-anatomy-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #f6efe4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.hx-anatomy-rear img,
.hx-anatomy-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hx-anatomy-cover {
  transform-style: preserve-3d;
  transform-origin: 0 50%;
  transform: translateZ(1px) rotateY(-132deg);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.hx-anatomy-front {
  transform: rotateY(180deg) translateZ(0.5px);
  border-radius: 3px;
}
.hx-anatomy-inside {
  transform: translateZ(0.5px);
  border-radius: 3px;
}
.hx-anatomy-shadow {
  position: absolute;
  left: -20%;
  right: -10%;
  bottom: -26px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  transform: translateZ(-1px);
}
@media (max-width: 900px) {
  .hx-anatomy {
    width: min(1160px, calc(100% - 24px));
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 36px 24px 40px;
  }
  .hx-anatomy-card {
    min-height: 330px;
  }
  /* One column: nothing sits to the right any more, so the desktop nudge
     toward the copy becomes a lean off the band. The open cover hangs about
     a card-width to the LEFT of the scene box (its hinge is the box's left
     edge), so the box must sit right of centre for the picture to read as
     centred. Measured against the projected front + rear faces: 97px puts
     the pair's centre on the band's centre. */
  .hx-anatomy-scene {
    transform: translateX(97px) rotateY(-24deg) rotateX(3deg);
  }
  .hx-anatomy h2 {
    font-size: 30px;
  }
}
/* Phones: the full-size pair projects ~403px wide, wider than a 375px
   screen, so shrink the geometry until it sits inside the green with air
   on both sides (~328px projected on a 172px card) and re-centre it. */
@media (max-width: 479px) {
  .hx-anatomy-card {
    min-height: 300px;
  }
  .hx-anatomy-scene {
    width: 172px;
    height: 241px;
    transform: translateX(79px) rotateY(-24deg) rotateX(3deg);
  }
}

/* ===== October 17, 2026: sign it like a card (help line under the message) ===== */
.message-help {
  margin: 8px 0 0;
}

/* ===== October 17, 2026: the sign-off field under the message ===== */
.signoff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 10px 0 0;
}
.signoff-row label {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.signoff-row label .field-note {
  font-weight: 400;
  color: #6b766f;
}
.signoff-row input {
  flex: 1 1 180px;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}
.signoff-row input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}
.signoff-row .signoff-apply {
  flex: none;
}

/* ===== October 17, 2026: Someone picked you (the recipient's block on Home) ===== */
.hx-picked {
  width: min(1160px, calc(100% - 48px));
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding: clamp(36px, 4.5vw, 56px) clamp(28px, 5vw, 76px);
  border-radius: 22px;
  background: var(--paper-deep);
}
.hx-picked-copy {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 640px;
}
.hx-picked h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.hx-picked-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}
.hx-picked .primary-button {
  margin-top: 10px;
}
@media (max-width: 900px) {
  .hx-picked {
    width: calc(100% - 32px);
    border-radius: 18px;
  }
}
@media (max-width: 560px) {
  .hx-picked {
    width: calc(100% - 24px);
    padding: 28px 22px;
  }
  .hx-picked-sub {
    font-size: 16px;
  }
}

/* ===== October 31, 2026: the next-date panel on the mailed route ===== */
.mail-route-panel .mail-route-next {
  margin-top: 18px;
  max-width: 520px;
}

/* ===== November 12, 2026: on one column, step 4 sits under the card =====
   Founder, on a phone after launch: press Generate and the next thing on
   screen is the calendar module, with the card being made somewhere below
   it. On desktop the calendar sits in the left rail beside the wait, and
   that reads as help; stacked, it reads as the page stalling on a date
   picker at the big moment. So where the workspace is a single column
   (1100px and under) the builder column dissolves into the workspace grid
   and the order becomes steps 1 to 3, the card, then step 4. Desktop is
   untouched. generatePreview() brings the card into view at the same
   width (gate0CreateIsStacked in app.js). */
@media (max-width: 1100px) {
  .rail-flow .builder-column {
    display: contents;
  }
  .rail-flow .builder-panel {
    order: 1;
  }
  .rail-flow .preview-panel {
    order: 2;
  }
  /* Clear of the sticky top bar when generatePreview() scrolls here. */
  .rail-flow .preview-panel,
  .rail-flow .preview-stage {
    scroll-margin-top: 84px;
  }
  .rail-flow .create-step-3 {
    order: 3;
  }
}

/* ===== November 12, 2026: a draft's "Use this one" reads as a button =====
   Founder burned a generation: with three drafts on screen the only thing
   that looked like a button was Generate Preview right under them, so he
   pressed it to "use" a draft. The label on each draft is now a pill. The
   whole draft is still the control. */
.writer-draft-option small {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 10px;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  background: var(--coral);
  border-radius: 999px;
}
.writer-draft-option.is-used small {
  color: var(--coral-dark);
  background: none;
  padding: 0;
  min-height: 0;
}
/* While drafts wait to be picked, Generate stands a little further off. */
.writer-row:has(.writer-panel:not([hidden]) .writer-draft-option) {
  margin-bottom: 14px;
}

/* The hold on a message that is only a sign-off (generatePreview). */
.ai-note.is-hold {
  color: var(--coral-dark);
  font-weight: 650;
}

/* =============================================================
   IMAGE WEIGHT (November 14, 2026): <picture> around five hero faces
   and the story card, so a browser that reads AVIF takes the lighter
   copy and every other browser keeps today's JPEG.

   display: contents makes the <picture> generate no box of its own, so
   each <img> stays exactly where it was in the box tree: still a
   direct child of the preserve-3d cover it flips with, still the
   figure's own child. Without this the flat <picture> box would sit
   between the cover and its faces and the card would open as a
   single flat sheet.
   ============================================================= */
.hx-card-book picture,
.hx-vis-card picture {
  display: contents;
}
