/* Celebrate Florist — romantic scrapbook aesthetic */

:root {
  --rose-deep: #4a0808;
  --rose: #8a3d48;
  --rose-soft: #ead6d2;
  --cream: #faf3e8;
  --cream-deep: #f0e4d4;
  --gold: #c9a45c;
  --ink: #3a1212;
  --muted: #6d5248;
  --leaf: #5c6a51;

  --paper: var(--cream);
  --fg: var(--ink);
  --card: var(--cream);
  --line: rgba(201, 164, 92, 0.38);
  --line-soft: rgba(234, 214, 210, 0.9);
  --ok: #3d6b45;
  --bad: var(--rose);
  --warn: #9a6b2e;

  --radius: 0.35rem;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 24px rgba(74, 8, 8, 0.06);
  --shadow-card: 0 2px 12px rgba(58, 18, 18, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.65);

  --serif-display: "Cinzel", "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Great Vibes", cursive;
  --sans: "Lora", Georgia, serif;
}

/* ── Base ─────────────────────────────────────────────── */

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(201, 164, 92, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(138, 61, 72, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #f7ede0 100%);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  color: var(--rose-deep);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

section[id] { scroll-margin-top: 5.5rem; }

code {
  font-family: var(--sans);
  font-size: 0.88em;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: 0.12rem 0.4rem;
  border-radius: 0.2rem;
}

/* ── Page shells ──────────────────────────────────────── */

.page-public {
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(201, 164, 92, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(138, 61, 72, 0.05) 0%, transparent 50%);
}

.page-minimal {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(234, 214, 210, 0.5) 0%, transparent 45%),
    var(--cream);
}

.page-preview {
  background: var(--cream-deep);
  min-height: 100vh;
}

.page-studio {
  background: var(--cream-deep);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

.page-studio h1,
.page-studio h2,
.page-studio h3,
.page-studio h4 {
  font-family: var(--serif-display);
}

/* ── Utilities ────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.5rem 1rem;
  z-index: 80;
  font-family: var(--sans);
  font-size: 0.88rem;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.wrap.narrow { width: min(38rem, calc(100% - 2rem)); }

.center { text-align: center; }

.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.55rem;
}

.lead {
  font-size: 1.22rem;
  font-style: italic;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.75;
}

.section { padding: 5rem 0; }

.section-head {
  max-width: 38rem;
  margin: 0 0 2.6rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.section-head h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
}

.section-head.center .eyebrow::after {
  content: " ~ ";
  font-family: var(--script);
  font-size: 1.4rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  vertical-align: middle;
}

.band {
  background-color: var(--cream-deep);
  background-image:
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(201, 164, 92, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 80%, rgba(138, 61, 72, 0.04) 0%, transparent 50%);
  border-block: 1px solid var(--line);
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  background: var(--cream);
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-brand {
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose) 52%, #a04a55 100%);
  color: var(--cream);
  border-color: rgba(201, 164, 92, 0.45);
  box-shadow: 0 3px 14px rgba(74, 8, 8, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-brand:hover {
  background: linear-gradient(135deg, #3a0606 0%, var(--rose-deep) 50%, var(--rose) 100%);
  box-shadow: 0 5px 20px rgba(74, 8, 8, 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--rose);
  color: var(--rose-deep);
}

.btn-outline:hover {
  background: var(--rose-soft);
  border-color: var(--rose-deep);
  color: var(--rose-deep);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  min-height: 3.15rem;
  padding: 0.75rem 1.65rem;
  font-size: 0.98rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Brand mark ───────────────────────────────────────── */

.mark {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-block;
  flex: 0 0 1.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose) 0%, var(--rose-deep) 100%);
  box-shadow:
    inset 0 0 0 2px var(--cream),
    inset 0 0 0 3px var(--gold),
    0 1px 4px rgba(74, 8, 8, 0.2);
}

/* ── Site header & footer ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 243, 232, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: var(--rose-deep);
}

.nav-desktop {
  display: none;
  gap: 1.6rem;
}

.nav-desktop a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-desktop a:hover { color: var(--rose-deep); }

.nav-toggle {
  border: 1px solid var(--rose);
  background: var(--cream);
  border-radius: var(--radius-pill);
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose-deep);
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
  animation: navDrop 0.2s ease;
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-0.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-toggle-icon {
  position: relative;
  width: 1.05rem;
  height: 0.75rem;
  flex: 0 0 1.05rem;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before { top: 0; }

.nav-toggle-icon > span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-nav a {
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  background: var(--cream-deep);
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 92, 0.5);
  color: var(--rose);
  transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--rose-deep); }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: 4rem 0 5rem;
  background:
    linear-gradient(168deg, var(--rose-deep) 0%, #3a0606 42%, #5c1420 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(201, 164, 92, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 90%, rgba(234, 214, 210, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: "Celebrate";
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: var(--script);
  font-size: clamp(4rem, 14vw, 9rem);
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  line-height: 1;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: 2.8rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.2rem);
  margin: 0 0 1.1rem;
  max-width: 14ch;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hero .lead {
  color: rgba(250, 243, 232, 0.82);
  font-style: italic;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero .btn-outline {
  border-color: rgba(250, 243, 232, 0.55);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}

.hero .btn-outline:hover {
  background: rgba(250, 243, 232, 0.12);
  border-color: var(--gold);
  color: var(--cream);
}

.hero-art {
  background: var(--cream);
  border: 1px solid rgba(201, 164, 92, 0.45);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.4);
  position: relative;
}

.hero-art::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  border: 1px solid rgba(201, 164, 92, 0.2);
  pointer-events: none;
}

.hero-art svg,
.hero-art img { width: 100%; height: auto; display: block; border-radius: .15rem; }

.script-accent {
  font-family: var(--script);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--rose);
  margin: 0 0 .35rem;
  letter-spacing: 0;
  text-transform: none;
}

.theme-preview {
  margin: -1.5rem -1.35rem 1rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.theme-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.demo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-art figcaption {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ── Grids & cards ────────────────────────────────────── */

.grid-2,
.grid-3,
.grid-4,
.grid-5 {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.55rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow: var(--shadow-soft);
}

.card h3 { font-size: 1.4rem; }

.feature-index {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.band .feature-index { color: var(--rose); }

.photo-slot {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--rose-soft) 0%, var(--cream-deep) 100%);
  border: 1px dashed var(--line);
  display: grid;
  place-items: end start;
  padding: 0.75rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Catalog bouquet cards ────────────────────────────── */

.catalog-card,
.demo-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.catalog-card:hover,
.demo-card:hover {
  border-color: rgba(201, 164, 92, 0.6);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.catalog-media,
.demo-preview {
  margin: 0;
  position: relative;
  color: var(--ink);
  overflow: hidden;
}

.catalog-media {
  aspect-ratio: 4/5;
  background: var(--wash, var(--rose-soft));
}

.demo-preview {
  aspect-ratio: 16/10;
  background: var(--wash, var(--rose-soft));
}

.catalog-media::before,
.demo-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 80% 85%, rgba(0, 0, 0, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.catalog-media svg,
.demo-preview svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 0;
}

.catalog-media figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  margin: 0;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(58, 18, 18, 0.55);
}

.catalog-body,
.demo-body {
  padding: 1.25rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--line-soft);
}

.catalog-kind {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.4rem;
}

.catalog-body h3,
.demo-body h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  min-height: 1.2em;
}

.catalog-body p,
.demo-body > p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  flex: 1;
}

/* Botanical gradient palettes per bouquet */

.catalog-card--birthday {
  --wash: #f5ddd8;
  --stem: #5c6a51;
  --petal-a: #e8a8a0;
  --petal-b: #c46872;
  --petal-c: #f0c4bc;
}

.catalog-card--birthday .catalog-media {
  background: linear-gradient(155deg, var(--petal-c) 0%, var(--wash) 38%, var(--petal-a) 72%, var(--petal-b) 100%);
}

.catalog-card--graduation {
  --wash: #dce8ea;
  --stem: #5c6a51;
  --petal-a: #9ab4c4;
  --petal-b: #4a6678;
  --petal-c: #c8d8de;
}

.catalog-card--graduation .catalog-media {
  background: linear-gradient(145deg, var(--petal-c) 0%, var(--wash) 42%, var(--petal-a) 70%, var(--petal-b) 100%);
}

.catalog-card--anniversary {
  --wash: #edd8cf;
  --stem: #5c6a51;
  --petal-a: #c47868;
  --petal-b: #8a3030;
  --petal-c: #e8b8a8;
}

.catalog-card--anniversary .catalog-media {
  background: linear-gradient(150deg, var(--petal-c) 0%, var(--wash) 35%, var(--petal-a) 68%, var(--petal-b) 100%);
}

.catalog-card--friendship {
  --wash: #ede4cc;
  --stem: #5c6a51;
  --petal-a: #d4b878;
  --petal-b: #a07840;
  --petal-c: #f0e0b8;
}

.catalog-card--friendship .catalog-media {
  background: linear-gradient(148deg, var(--petal-c) 0%, var(--wash) 40%, var(--petal-a) 72%, var(--petal-b) 100%);
}

.catalog-card--custom {
  --wash: #e8e2d4;
  --stem: #5c6a51;
  --petal-a: #b87888;
  --petal-b: #6a4850;
  --petal-c: #d8c8b8;
}

.catalog-card--custom .catalog-media {
  background: linear-gradient(152deg, var(--petal-c) 0%, var(--wash) 38%, var(--petal-a) 65%, var(--petal-b) 100%);
}

/* Demo hub theme cards */

.demo-card--bloom {
  --wash: #f2e4e0;
  --stem: #5c6a51;
  --petal-a: #d8a0a0;
  --petal-b: #8a3d48;
  --petal-c: #ecc8c0;
  --rose: #8a3d48;
}

.demo-card--bloom .demo-preview {
  background: linear-gradient(145deg, var(--petal-c) 0%, var(--wash) 45%, var(--petal-a) 75%, var(--petal-b) 100%);
}

.demo-card--warm {
  --wash: #f0e0d4;
  --stem: #5c6a51;
  --petal-a: #c88070;
  --petal-b: #7a2e2e;
  --petal-c: #e8c0a8;
  --rose: #7a2e2e;
}

.demo-card--warm .demo-preview {
  background: linear-gradient(148deg, var(--petal-c) 0%, var(--wash) 40%, var(--petal-a) 72%, var(--petal-b) 100%);
}

.demo-card--sky {
  --wash: #e4ecf0;
  --stem: #5c6a51;
  --petal-a: #98b0c0;
  --petal-b: #3d5568;
  --petal-c: #c8d8e0;
  --rose: #3d5568;
}

.demo-card--sky .demo-preview {
  background: linear-gradient(145deg, var(--petal-c) 0%, var(--wash) 42%, var(--petal-a) 70%, var(--petal-b) 100%);
}

/* ── Experience & theme blocks ────────────────────────── */

.theme-swatch {
  height: 0.4rem;
  width: 2.8rem;
  margin-bottom: 1rem;
  background: var(--swatch, var(--rose-soft));
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(74, 8, 8, 0.1);
}

.theme-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
}

.mode-row {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.chip-card {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.chip-card strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--rose-deep);
}

.step {
  font-family: var(--script);
  font-size: 1.85rem;
  color: var(--gold);
  margin: 0 0 0.35rem;
  line-height: 1;
}

/* ── FAQ ──────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1.1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rose-deep);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--gold);
  font-size: 1.2rem;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── CTA banner ───────────────────────────────────────── */

.cta-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3.2rem 2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(234, 214, 210, 0.45) 0%, transparent 60%),
    var(--cream);
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-banner .eyebrow { color: var(--gold); }

.cta-banner .btn { margin-top: 1.5rem; }

.back-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--rose);
  border-radius: 50%;
  background: var(--cream);
  color: var(--rose-deep);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 30;
}

.back-top:hover {
  background: var(--rose-soft);
  transform: translateY(-2px);
}

/* ── Demo grid ────────────────────────────────────────── */

.demo-grid { display: grid; gap: 1.5rem; }

.demo-hub {
  padding-bottom: 3rem;
}

.demo-hub .section-head {
  margin-bottom: 2rem;
}

.demo-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
}

.demo-modes a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 0.2rem 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s ease;
}

.demo-modes a:nth-child(odd) { padding-right: 0.85rem; }

.demo-modes a:nth-child(even) {
  padding-left: 0.85rem;
  border-left: 1px solid var(--line-soft);
}

.demo-modes strong {
  font-family: var(--serif-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rose-deep);
}

.demo-modes span {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.demo-modes a:hover {
  background: rgba(234, 214, 210, 0.35);
}

.demo-modes a:hover strong { color: var(--rose); }

/* ── Auth, install, minimal pages ─────────────────────── */

.page-minimal .auth-card,
.page-minimal .install-card {
  width: min(32rem, 100%);
}

.auth-card,
.install-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.auth-card h1,
.install-card h1 {
  font-size: 1.85rem;
}

.stack { display: grid; gap: 1rem; }

label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
  outline: none;
}

textarea { resize: vertical; min-height: 5rem; }

.form-error {
  color: var(--bad);
  font-family: var(--sans);
  font-size: 0.88rem;
  margin: 0;
}

/* ── Alerts & checklists ──────────────────────────────── */

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.92rem;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.5);
}

.alert-error {
  color: var(--bad);
  background: rgba(234, 214, 210, 0.45);
  border-color: rgba(138, 61, 72, 0.35);
}

.alert-ok {
  color: var(--ok);
  background: rgba(93, 140, 100, 0.08);
  border-color: rgba(61, 107, 69, 0.3);
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.check-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.check-list small {
  width: 100%;
  color: var(--muted);
  font-weight: 400;
}

.check-list .ok { color: var(--ok); font-weight: 600; }
.check-list .warn { color: var(--warn); font-weight: 600; }
.check-list .bad { color: var(--bad); font-weight: 600; }

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.checklist .pass { color: var(--ok); font-weight: 600; }
.checklist .fail { color: var(--muted); }

/* ── Studio shell ─────────────────────────────────────── */

.page-studio .studio-shell {
  display: grid;
  min-height: 100vh;
}

.page-studio .studio-sidebar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.page-studio .studio-sidebar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.page-studio .studio-sidebar a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-studio .studio-sidebar a:hover {
  color: var(--rose-deep);
  border-bottom-color: var(--rose-soft);
}

.page-studio .studio-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--rose-deep);
}

.page-studio .studio-logout button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0;
}

.page-studio .studio-logout button:hover { color: var(--rose); }

.page-studio .studio-main {
  padding: 1.6rem 1.15rem 3.5rem;
}

.page-studio .studio-page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.page-studio .studio-page-head h1 {
  font-size: 1.75rem;
}

.page-studio .studio-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-card);
}

.page-studio .studio-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}

.page-studio .table-wrap { overflow-x: auto; }

.page-studio .table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9rem;
  min-width: 36rem;
}

.page-studio .table th,
.page-studio .table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.page-studio .table th {
  font-weight: 600;
  color: var(--rose-deep);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-studio .table a {
  font-weight: 600;
  color: var(--rose);
  text-decoration: none;
}

.page-studio .table a:hover {
  color: var(--rose-deep);
  text-decoration: underline;
}

.page-studio .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  align-items: end;
}

.page-studio .filters input,
.page-studio .filters select {
  width: auto;
  min-width: 9rem;
}

.page-studio .status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
}

.page-studio .status-ready,
.page-studio .status-approved { color: var(--ok); background: rgba(61, 107, 69, 0.1); }

.page-studio .status-delivered,
.page-studio .status-completed { color: #4a6080; background: rgba(74, 96, 128, 0.1); }

.page-studio .choice-grid { display: grid; gap: 0.65rem; }

.page-studio .choice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.page-studio .choice:hover { background: rgba(234, 214, 210, 0.25); }

.page-studio .choice:has(input:checked) {
  border-color: var(--rose);
  background: rgba(234, 214, 210, 0.35);
  box-shadow: inset 0 0 0 1px rgba(138, 61, 72, 0.12);
}

.page-studio .choice strong {
  font-family: var(--serif-display);
  font-size: 1rem;
  color: var(--rose-deep);
}

.page-studio .choice span {
  font-size: 0.88rem;
  color: var(--muted);
}

.page-studio .action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.page-studio .inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}

.page-studio fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.page-studio legend {
  font-family: var(--serif-display);
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--rose-deep);
}

.page-studio .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.page-studio .check input { width: auto; accent-color: var(--rose); }

.page-studio .nested {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin: 0.65rem 0;
  background: rgba(255, 255, 255, 0.45);
}

.page-studio [data-repeat-add],
.page-studio [data-repeat-remove] { margin-top: 0.5rem; }

/* ── Photo slots & media desk ─────────────────────────── */

.page-studio .photo-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.85rem;
}

.page-studio .photo-editor { min-width: 0; }

.page-studio .photo-editor img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-studio .photo-editor.is-empty {
  min-height: 9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  align-content: center;
  padding: 0.7rem;
  background: rgba(234, 214, 210, 0.2);
  text-align: center;
}

.page-studio .studio-video {
  width: min(28rem, 100%);
  max-height: 18rem;
  background: var(--rose-deep);
  border-radius: var(--radius);
  margin: 0.65rem 0 1rem;
}

.page-studio .media-pick {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem 0 0.75rem;
}

.page-studio .media-queue {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 1rem;
  display: grid;
  gap: 0.45rem;
}

.page-studio .media-queue li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.5);
}

.page-studio .media-queue .ok { color: var(--ok); }
.page-studio .media-queue .bad { color: var(--bad); }
.page-studio .media-queue .busy { color: var(--muted); }

.page-studio .media-video { margin: 1rem 0 0.45rem; }

/* ── Preview page ─────────────────────────────────────── */

.preview-page {
  width: min(48rem, calc(100% - 2rem));
  margin: 1.8rem auto 3rem;
  display: grid;
  gap: 1.3rem;
}

.preview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.preview-letter {
  padding: 1.8rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.letter-body {
  white-space: pre-wrap;
  font-size: 1.15rem;
  line-height: 1.8;
}

.preview-thumb {
  max-width: 12rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-preview .studio-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-card);
}

.page-preview .studio-panel h2 {
  font-family: var(--serif-display);
  font-size: 1.25rem;
  color: var(--rose-deep);
}

/* ── Error & gate pages ───────────────────────────────── */

.error-page,
.exp-gate {
  min-height: 80vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2.5rem 1.3rem;
  max-width: 34rem;
  margin: 0 auto;
}

.error-page h1,
.exp-gate h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
}

.error-page .btn,
.exp-gate .btn {
  margin-top: 1.25rem;
}

.exp-gate .stack {
  margin-top: 1.25rem;
  text-align: left;
}

.debug {
  font-family: var(--sans);
  font-size: 0.78rem;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--radius);
  text-align: left;
  margin: 1rem 0;
}

/* ── Responsive ───────────────────────────────────────── */

.hide-sm { display: none; }

@media (min-width: 760px) {
  .nav-desktop { display: flex; }
  .nav-toggle,
  .mobile-nav { display: none !important; }

  .hero-grid,
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; }

  .grid-2.even { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .bouquet-grid { grid-template-columns: repeat(3, 1fr); }
  .mode-row { grid-template-columns: repeat(4, 1fr); }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }

  .page-studio .studio-shell { grid-template-columns: 15rem 1fr; }

  .page-studio .studio-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 1.6rem 1.15rem;
    box-shadow: 2px 0 12px rgba(74, 8, 8, 0.03);
  }

  .page-studio .studio-sidebar nav {
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 1.5rem;
    width: 100%;
  }

  .page-studio .studio-sidebar a {
    padding: 0.5rem 0;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 0.65rem;
  }

  .page-studio .studio-sidebar a:hover {
    border-left-color: var(--rose);
    border-bottom-color: transparent;
  }

  .page-studio .studio-logout { margin-top: auto; width: 100%; }

  .hide-sm { display: inline-flex !important; }

  .auth-card,
  .install-card { padding: 2.5rem 2.1rem; }

  .cta-banner { padding: 3.5rem 3rem; }
}

@media (min-width: 1080px) {
  .bouquet-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 759px) {
  .wrap {
    width: min(68rem, calc(100% - 1.25rem));
  }

  .grid-5 { grid-template-columns: repeat(2, 1fr); }

  .hero-cta .btn { width: 100%; }

  .section { padding: 3.5rem 0; }

  .header-inner {
    min-height: 3.75rem;
  }

  .brand {
    font-size: 0.95rem;
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero { padding: 3rem 0 4rem; }

  .hero h1 { max-width: none; }

  .hero-art { max-width: 20rem; margin-inline: auto; }

  .cta-banner { padding: 2.5rem 1.25rem; }

  .theme-cards .card { min-width: 0; }

  .mode-row { grid-template-columns: 1fr; }

  .demo-grid { gap: 1.25rem; }

  .demo-preview {
    aspect-ratio: 4 / 3;
  }

  .demo-preview img {
    object-fit: contain;
    object-position: center center;
    background: var(--wash, var(--rose-soft));
  }

  .demo-modes {
    grid-template-columns: 1fr;
  }

  .demo-modes a:nth-child(even) {
    padding-left: 0.2rem;
    border-left: 0;
  }

  .demo-modes a:nth-child(odd) {
    padding-right: 0.2rem;
  }

  .demo-body {
    padding: 1.1rem 1rem 1.15rem;
  }

  .page-studio .studio-main {
    padding: 1.15rem 0.85rem 2.5rem;
  }

  .page-studio .studio-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-studio .studio-page-head h1 {
    font-size: 1.45rem;
    word-break: break-word;
  }

  .page-studio .studio-sidebar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 0.85rem 0.75rem;
  }

  .page-studio .studio-sidebar nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }

  .page-studio .studio-sidebar nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
  }

  .page-studio .studio-logout {
    width: 100%;
    text-align: right;
  }

  .page-studio .filters {
    display: grid;
    gap: 0.55rem;
  }

  .page-studio .filters input,
  .page-studio .filters select,
  .page-studio .filters button {
    min-width: 0;
    width: 100%;
  }

  .page-studio .action-bar .btn,
  .page-studio .action-bar form,
  .page-studio .action-bar a.btn {
    width: 100%;
    justify-content: center;
  }

  .page-studio .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .page-studio .inline-form input,
  .page-studio .inline-form select,
  .page-studio .inline-form button {
    width: 100%;
  }

  .page-studio .photo-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-studio .studio-panel {
    padding: 1.05rem 0.9rem;
  }

  .preview-page {
    width: min(48rem, calc(100% - 1.25rem));
    margin: 1.2rem auto 2.5rem;
  }

  .preview-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-bar form,
  .preview-bar .btn {
    width: 100%;
  }

  .preview-letter {
    padding: 1.25rem 1rem;
  }

  .letter-body {
    font-size: 1.05rem;
  }

  .auth-card,
  .install-card {
    width: min(28rem, calc(100% - 1.25rem));
    padding: 1.75rem 1.15rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .grid-5 { grid-template-columns: 1fr; }

  .page-studio .photo-slots {
    grid-template-columns: 1fr;
  }
}
