/* Siroon landing page. Mobile first. Every color, size, and spacing is a token below. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
/* Georgia, sized to Cormorant's proportions while the web font loads (keeps text from shifting). */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 84%;
  ascent-override: 108%;
  descent-override: 34%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* Palette */
  --wine-950: #12060f;
  --wine-900: #1b0b18;
  --wine-850: #220d1f;
  --wine-800: #2b1127;
  --wine-700: #3a1733;
  --plum-600: #55203f;
  --gold-200: #f7e3b4;
  --gold-300: #f0d494;
  --gold-400: #e3bd72;
  --gold-500: #c99a4e;
  --gold-700: #8a6430;
  --cream-100: #f6efe6;
  --cream-300: #ddcfc0;
  --red-400: #c23b4b;
  --red-500: #a3253a;
  --red-600: #7d1a2d;
  --red-700: #5c1221;
  --silver-100: #e6e6ea;
  --silver-300: #b9b9c0;
  --silver-500: #85858d;
  --silver-700: #4b4b52;
  --bezel: #09080b;
  --black: #000;

  /* Semantic colors */
  --page: var(--wine-900);
  --page-deep: var(--wine-950);
  --surface: rgba(43, 17, 39, 0.72);
  --surface-strong: rgba(58, 23, 51, 0.88);
  --text: var(--cream-100);
  --text-muted: rgba(246, 239, 230, 0.78);
  --text-faint: rgba(246, 239, 230, 0.62);
  --accent: var(--gold-400);
  --accent-strong: var(--gold-300);
  --line: rgba(227, 189, 114, 0.42);
  --line-strong: rgba(227, 189, 114, 0.7);
  --line-faint: rgba(227, 189, 114, 0.2);
  --glow-gold: rgba(240, 196, 110, 0.28);
  --glow-candle: rgba(255, 170, 70, 0.22);
  --shade: rgba(10, 3, 8, 0.6);
  --shade-strong: rgba(10, 3, 8, 0.86);
  --glass: rgba(246, 239, 230, 0.08);
  --glass-strong: rgba(246, 239, 230, 0.14);
  --focus: var(--gold-300);

  /* Type */
  --font-serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: 19px;
  --text-xl: 22px;
  --text-2xl: 26px;
  --display-logotype: clamp(72px, 8.4vw, 128px);
  --display-headline: clamp(34px, 3.8vw, 56px);
  --display-section: clamp(28px, 3vw, 44px);
  --display-step: clamp(20px, 1.8vw, 27px);
  --display-plan: clamp(28px, 2.9vw, 42px);
  --display-final: clamp(40px, 5.4vw, 80px);
  --display-label: clamp(30px, 3.4vw, 46px);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.55;
  --leading-card: 1.45;
  --tracking-caps: 0.12em;
  --tracking-wide: 0.04em;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 112px;
  --gutter: 16px;
  --section-gap: clamp(48px, 6vw, 72px);

  /* Layout */
  --container: 1400px;
  --container-narrow: 820px;
  --container-faq: 1000px;
  --header-height: 60px;
  --hero-copy-width: 580px;
  --tap: 48px;
  --tap-small: 40px;

  /* Shape */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --border: 1px;
  --border-strong: 1.5px;

  /* Icons */
  --icon-xs: 16px;
  --icon-sm: 20px;
  --icon-md: 28px;
  --icon-lg: 44px;
  --icon-xl: 56px;
  --brand-mark: 22px;

  /* Depth and motion */
  --shadow-card: 0 18px 40px rgba(8, 2, 6, 0.45);
  --shadow-device: 0 40px 80px rgba(6, 1, 4, 0.65), 0 12px 24px rgba(6, 1, 4, 0.45);
  --shadow-button: 0 8px 22px rgba(125, 26, 45, 0.45), inset 0 1px 0 rgba(255, 220, 200, 0.28);
  --shadow-gold: 0 0 0 1px var(--line-strong), 0 0 36px var(--glow-gold);
  --blur-header: 14px;
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 900ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-header: 20;
  --z-toast: 30;
  --z-skip: 40;

  /* Device frame (proportions of a 14-inch MacBook) */
  --screen-ratio: 3024 / 1964;
  --bezel-size: 2.4%;
  --lid-radius: 3.2%;
  --base-overhang: 7%;
  --base-height: 4.2%;
  --hero-tilt: -6deg;

  /* Fills and veils */
  --red-300: #cf4757;
  --backdrop-page:
    radial-gradient(1200px 700px at 85% 18%, var(--wine-700), transparent 70%),
    radial-gradient(900px 900px at 10% 55%, var(--wine-800), transparent 70%),
    linear-gradient(180deg, var(--wine-850), var(--page) 40%, var(--page-deep));
  --veil-hero:
    radial-gradient(420px 420px at 4% 30%, var(--glow-candle), transparent 70%),
    radial-gradient(520px 380px at 96% 70%, var(--glow-candle), transparent 70%),
    linear-gradient(90deg, rgba(27, 11, 24, 0.6), rgba(27, 11, 24, 0.1) 55%, rgba(27, 11, 24, 0.3)),
    linear-gradient(180deg, rgba(27, 11, 24, 0.4), transparent 30%, transparent 70%, var(--page) 100%);
  --veil-final:
    radial-gradient(120% 95% at 50% 55%, transparent 45%, rgba(18, 6, 15, 0.7) 100%),
    linear-gradient(180deg, var(--page) 0%, rgba(27, 11, 24, 0.3) 22%, rgba(27, 11, 24, 0.18) 60%, rgba(18, 6, 15, 0.75) 100%);
  --fill-card: linear-gradient(180deg, rgba(58, 23, 51, 0.72), rgba(34, 13, 31, 0.88));
  --fill-card-featured: linear-gradient(180deg, rgba(85, 32, 63, 0.75), rgba(43, 17, 39, 0.92));
  --fill-primary: linear-gradient(180deg, var(--red-400), var(--red-500) 45%, var(--red-600));
  --fill-primary-hover: linear-gradient(180deg, var(--red-300), var(--red-400) 45%, var(--red-500));
  --edge-primary: rgba(240, 180, 150, 0.35);
  --fill-secondary: rgba(27, 11, 24, 0.35);
  --fill-hover: rgba(227, 189, 114, 0.12);
  --fill-glass-dark: rgba(60, 25, 30, 0.55);
  --fill-header: rgba(27, 11, 24, 0.82);
  --fill-menu: rgba(27, 11, 24, 0.96);
  --fill-pill: rgba(27, 11, 24, 0.7);
  --fill-faq: rgba(34, 13, 31, 0.6);
  --fill-draft: rgba(163, 37, 58, 0.18);
  --sheen-screen: linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 34%);
  --fill-base: linear-gradient(180deg, var(--silver-100) 0%, var(--silver-300) 30%, var(--silver-500) 75%, var(--silver-700) 100%);
  --fill-hinge: linear-gradient(180deg, var(--silver-500), var(--silver-300));

  /* Shadows and glows */
  --drop-device: drop-shadow(0 30px 40px rgba(6, 1, 4, 0.55));
  --ring-lid: 0 0 0 1px var(--silver-500), 0 0 0 2.5px var(--silver-700), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ring-frame: 0 0 0 1px var(--silver-700);
  --highlight-base: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --shadow-knob: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-divider: 0 0 10px rgba(0, 0, 0, 0.45);
  --shadow-thumb: 0 8px 18px rgba(0, 0, 0, 0.55);
  --shadow-text: 0 2px 24px rgba(0, 0, 0, 0.55);
  --glow-mark: drop-shadow(0 0 6px var(--glow-gold));
  --glow-icon: drop-shadow(0 0 10px var(--glow-gold));
  --glow-icon-strong: drop-shadow(0 0 12px var(--glow-gold));
  --blur-glass: 6px;
  --blur-reveal: 6px;
  --scale-reveal: 0.98;

  /* Thanks page */
  --veil-thanks: radial-gradient(110% 90% at 50% 45%, rgba(27, 11, 24, 0.45), rgba(18, 6, 15, 0.85) 100%);
  --fill-thanks: rgba(27, 11, 24, 0.72);

  /* Wish stage */
  --veil-wish-card:
    radial-gradient(120% 90% at 50% 40%, rgba(27, 11, 24, 0.55), rgba(18, 6, 15, 0.92) 100%),
    radial-gradient(60% 40% at 50% 0%, rgba(240, 196, 110, 0.18), transparent 70%);
  --glow-wish-card: 0 0 60px rgba(240, 196, 110, 0.12);
  --fill-wish-input: rgba(18, 6, 15, 0.62);
  --ring-wish-focus: 0 0 0 3px rgba(240, 212, 148, 0.35), 0 0 28px rgba(240, 196, 110, 0.45);
  --fill-example: rgba(18, 6, 15, 0.55);
  --fill-busy: rgba(227, 189, 114, 0.12);
  --ring-example: 0 0 0 1px var(--gold-400), 0 0 18px rgba(240, 196, 110, 0.3);
  --fill-wish-button: linear-gradient(100deg, var(--gold-400) 0%, var(--gold-500) 22%, var(--red-400) 62%, var(--red-600) 100%);
  --sheen-button: linear-gradient(100deg, transparent 30%, rgba(255, 244, 214, 0.45) 50%, transparent 70%);
  --veil-painting: radial-gradient(closest-side, rgba(18, 6, 15, 0.15), rgba(18, 6, 15, 0.55));
  --fill-painting-label: rgba(18, 6, 15, 0.6);
  --fill-brush: linear-gradient(90deg, transparent, rgba(240, 196, 110, 0.85) 30%, rgba(194, 59, 75, 0.75) 70%, transparent);
  --filter-painting: blur(10px) saturate(1.4) brightness(0.8);
  --wish-input-height: 60px;
  --wish-button-height: 60px;
  --example-thumb: 40px;
  --device-stage: 640px;
  --brush-mask-size: 400% 100%;
  --brush-length: 70%;
  --brush-height: 18%;
  --brush-angle: -8deg;
  --brush-travel: 160%;
  --blur-brush: 6px;
  --duration-reveal: 420ms;
  --duration-wipe: 1100ms;
  --duration-brush: 2600ms;
  --duration-shimmer: 1100ms;

  /* Sizes */
  --hairline: 1px;
  --border-thick: 2px;
  --focus-width: 2px;
  --focus-offset: 3px;
  --press-depth: 1px;
  --underline-offset: 3px;
  --rule-length: 180px;
  --compare-width: 1040px;
  --compare-bezel: clamp(6px, 1.2%, 12px);
  --device-small: 520px;
  --plans-width: 1200px;
  --final-height: 420px;
  --final-height-wide: 560px;
  --final-focus: 50% 14%;
  --thanks-width: 600px;
  --toast-width: 560px;
  --simple-width: 560px;
  --turnstile-height: 65px;
  --radius-notch: 8px;
  --radius-hinge: 10px;
  --hero-perspective: 2200px;
  --hero-bleed: 40px;
  --hero-backdrop-opacity: 0.9;
}

/* Breakpoints (custom properties can't be used in media queries): 640 phone-wide · 720 tablet · 760 steps ·
   860 nav and two-column · 960 desktop hero · 1080 slider labels · 1180 six-card row · 1200 wide gutter. */
@media (min-width: 720px) {
  :root { --gutter: 32px; --header-height: 68px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; --text-base: 17px; --text-md: 18px; --text-lg: 20px; --text-xl: 24px; --text-2xl: 28px; --tap: 52px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--backdrop-page);
  color: var(--text);
  font: var(--weight-regular) var(--text-base) / var(--leading-body) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: var(--weight-semibold); line-height: var(--leading-snug); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); border-radius: var(--radius-xs); }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: var(--hairline); height: var(--hairline); padding: 0; margin: calc(-1 * var(--hairline)); overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-4); top: calc(-1 * var(--space-12)); z-index: var(--z-skip);
  background: var(--accent); color: var(--wine-900); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
}
.skip:focus { top: var(--space-4); }

/* Buttons */
.button {
  display: inline-block; text-align: center; vertical-align: middle;
  line-height: calc(var(--tap) - 2 * var(--border-strong)); padding: 0 var(--space-7);
  border-radius: var(--radius-pill); border: var(--border-strong) solid transparent;
  font-family: var(--font-serif); font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.button:active { transform: translateY(var(--press-depth)); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button--primary {
  color: var(--cream-100);
  background: var(--fill-primary);
  border-color: var(--edge-primary);
  box-shadow: var(--shadow-button);
}
.button--primary:hover { background: var(--fill-primary-hover); }
.button--secondary {
  color: var(--gold-200);
  background: var(--fill-secondary);
  border: var(--border-strong) solid var(--line-strong);
}
.button--secondary:hover { background: var(--fill-hover); }
.button--glass { background: var(--fill-glass-dark); backdrop-filter: blur(var(--blur-glass)); }
.button--small { line-height: calc(var(--tap-small) - 2 * var(--border-strong)); padding: 0 var(--space-5); font-size: var(--text-md); }
.button--wide { width: 100%; }
.text-button {
  background: none; border: 0; padding: var(--space-2) 0; color: var(--accent); cursor: pointer;
  font: var(--weight-medium) var(--text-base) var(--font-sans); text-decoration: underline; text-underline-offset: var(--underline-offset);
}
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  transition: background var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
  border-bottom: var(--border) solid transparent;
}
.top.is-scrolled, .top.is-open {
  background: var(--fill-header);
  backdrop-filter: blur(var(--blur-header));
  -webkit-backdrop-filter: blur(var(--blur-header));
  border-bottom-color: var(--line-faint);
}
.top-inner {
  max-width: var(--container); margin: 0 auto; height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); color: var(--cream-100); text-decoration: none;
  font: var(--weight-medium) var(--text-2xl) / 1 var(--font-serif);
}
.brand-mark { width: var(--brand-mark); height: var(--brand-mark); color: var(--accent); filter: var(--glow-mark); }
.menu-button {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); margin-right: calc(-1 * var(--space-3));
  background: none; border: 0; color: var(--cream-100); cursor: pointer;
}
.menu-button svg { width: var(--icon-md); height: var(--icon-md); }
.site-nav {
  position: absolute; inset: var(--header-height) 0 auto; display: none; flex-direction: column; gap: var(--space-1);
  padding: var(--space-3) var(--gutter) var(--space-6); background: var(--fill-menu); border-bottom: var(--border) solid var(--line-faint);
}
.top.is-open .site-nav { display: flex; }
.site-nav a:not(.button) {
  color: var(--cream-100); text-decoration: none; font: var(--weight-medium) var(--text-xl) var(--font-serif);
  padding: var(--space-3) 0; border-bottom: var(--border) solid var(--line-faint);
}
.site-nav .button { margin-top: var(--space-4); }
@media (min-width: 860px) {
  .menu-button { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: var(--space-8);
    padding: 0; background: none; border: 0;
  }
  .site-nav a:not(.button) { font-size: var(--text-lg); padding: 0; border: 0; opacity: 0.92; }
  .site-nav a:not(.button):hover { color: var(--accent-strong); opacity: 1; }
  .site-nav .button { margin: 0 0 0 var(--space-4); }
}

/* Section titles with ornamental rules */
.section {
  max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0;
}
.section-title {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4);
  font-size: var(--display-section); font-weight: var(--weight-semibold); text-align: center; color: var(--cream-100);
  margin-bottom: var(--space-7);
}
.section-title::before, .section-title::after {
  content: ""; height: var(--border); max-width: var(--rule-length); width: 100%;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.section-title::before { justify-self: end; }
.section-title::after { justify-self: start; transform: scaleX(-1); }
.section-title--italic { font-style: italic; font-weight: var(--weight-semibold); color: var(--accent-strong); }
.section-lede { max-width: var(--container-narrow); margin: calc(-1 * var(--space-3)) auto var(--space-7); text-align: center; color: var(--text-muted); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-9);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url("images/scenes/hall-2304.jpg");
  background-image: image-set(url("images/scenes/hall-2304.avif") type("image/avif"), url("images/scenes/hall-2304.jpg") type("image/jpeg"));
  background-size: cover; background-position: 30% 40%;
  opacity: var(--hero-backdrop-opacity);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--veil-hero);
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: var(--space-8);
}
.hero-copy { text-align: center; display: grid; gap: var(--space-5); justify-items: center; }
.logotype { display: none; }
.hero-headline { display: block; font-size: var(--display-headline); line-height: var(--leading-tight); font-weight: var(--weight-medium); }
.hero-headline em { display: block; font-style: italic; color: var(--cream-100); }
.nowrap { white-space: nowrap; }
.hero-lede { color: var(--text-muted); font-size: var(--text-md); max-width: 30em; }
.hero-emphasis { font: italic var(--weight-semibold) var(--text-2xl) var(--font-serif); color: var(--accent-strong); }
.hero-copy .actions { width: 100%; flex-direction: column; }
.hero-copy .actions .button { width: 100%; }
.download-fine { font-size: var(--text-xs); color: var(--text-faint); letter-spacing: 0.01em; }
.final-cta .download-fine { color: var(--text-muted); text-shadow: var(--shadow-text); }
.hero-media { width: 100%; }

@media (min-width: 640px) {
  .hero-copy .actions { flex-direction: row; justify-content: center; width: auto; }
  .hero-copy .actions .button { width: auto; }
}
@media (min-width: 960px) {
  .hero { padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-10); }
  .hero-inner { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); align-items: center; gap: var(--space-7); }
  .hero-media { margin-right: calc(-1 * var(--hero-bleed)); }
  .hero-copy { text-align: left; justify-items: start; gap: var(--space-5); max-width: var(--hero-copy-width); }
  .logotype {
    display: inline-flex; align-items: flex-start; gap: var(--space-2);
    font-size: var(--display-logotype); line-height: 0.95; font-weight: var(--weight-medium); color: var(--cream-100);
    margin-bottom: var(--space-3); letter-spacing: -0.01em;
  }
  .logotype-mark { width: 0.32em; height: 0.32em; margin-top: 0.08em; color: var(--accent); filter: var(--glow-icon); }
  .hero-headline em { display: inline; }
  .hero-headline em::before { content: "\A"; white-space: pre; }
  .hero-lede { font-size: var(--text-xl); max-width: 24em; }
  .hero-copy .actions { justify-content: flex-start; }
  .hero-media { perspective: var(--hero-perspective); }
  .macbook--hero { transform: rotateY(var(--hero-tilt)); transform-origin: 60% 50%; }
}

/* MacBook frame (CSS only) */
.macbook { position: relative; width: 100%; filter: var(--drop-device); }
.macbook-lid {
  position: relative; margin: 0 var(--base-overhang);
  padding: var(--bezel-size);
  padding-top: calc(var(--bezel-size) * 1.1);
  background: var(--bezel);
  border-radius: var(--lid-radius) var(--lid-radius) 0.6% 0.6% / 4.8% 4.8% 0.6% 0.6%;
  box-shadow: var(--ring-lid);
}
.macbook-screen {
  position: relative; overflow: hidden; aspect-ratio: var(--screen-ratio);
  border-radius: 0.8% / 1.2%; background: var(--black);
}
.macbook-screen img, .macbook-screen video { width: 100%; height: 100%; object-fit: cover; }
.macbook-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--sheen-screen);
}
.macbook-camera {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 11%; height: 3.4%; background: var(--bezel); border-radius: 0 0 var(--radius-notch) var(--radius-notch);
}
.macbook-base {
  position: relative; height: 0; padding-bottom: var(--base-height);
  background: var(--fill-base);
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
  box-shadow: var(--highlight-base);
}
.macbook-base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 38%; background: var(--fill-hinge);
  border-radius: 0 0 var(--radius-hinge) var(--radius-hinge);
}
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity var(--duration-slow) var(--ease); }
.hero-video.is-playing { opacity: 1; }

/* Transformation */
.compare-stage { position: relative; max-width: var(--compare-width); margin: 0 auto; }
.compare-frame {
  padding: var(--compare-bezel); background: var(--bezel); border-radius: var(--radius-md);
  box-shadow: var(--ring-frame), var(--shadow-device);
}
.compare {
  position: relative; overflow: hidden; aspect-ratio: var(--screen-ratio); border-radius: var(--radius-xs);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; background: var(--black);
}
.compare picture { display: contents; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: var(--tap); margin-left: calc(var(--tap) / -2);
  display: grid; place-items: center; cursor: ew-resize; touch-action: none;
}
.compare-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--border-thick); margin-left: calc(var(--border-thick) / -2);
  background: var(--cream-100); box-shadow: var(--shadow-divider);
}
.compare-knob {
  position: relative; display: grid; place-items: center; width: var(--icon-xl); height: var(--icon-xl); border-radius: 50%;
  background: var(--cream-100); color: var(--wine-800); box-shadow: var(--shadow-knob);
}
.compare-knob svg { width: var(--icon-md); height: var(--icon-md); }
.compare-handle:focus-visible { outline: none; }
.compare-handle:focus-visible .compare-knob { box-shadow: 0 0 0 var(--focus-offset) var(--focus), var(--shadow-knob); }
.pill {
  display: inline-block; margin-top: var(--space-4); padding: var(--space-1) var(--space-4);
  border: var(--border-strong) solid var(--line-strong); border-radius: var(--radius-pill); background: var(--fill-pill);
  color: var(--gold-200); font: var(--weight-semibold) var(--text-sm) / 1.6 var(--font-serif);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
}
.pill--after { float: right; }
@media (min-width: 1080px) {
  .pill { position: absolute; bottom: 4%; margin: 0; font-size: var(--text-base); padding: var(--space-1) var(--space-5); }
  .pill--before { right: calc(100% + var(--space-6)); }
  .pill--after { left: calc(100% + var(--space-6)); float: none; }
}

/* How it works */
.steps { display: grid; gap: var(--space-8); text-align: center; }
.steps li { display: grid; justify-items: center; gap: var(--space-3); }
.step-icon { width: var(--icon-xl); height: var(--icon-xl); color: var(--accent); filter: var(--glow-icon); }
.steps h3 { font-size: var(--display-step); color: var(--cream-100); }
.steps p { color: var(--text-muted); max-width: 22em; font-size: var(--text-md); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .steps li { padding: 0 var(--space-6); }
  .steps li + li { border-left: var(--border) solid var(--line-faint); }
}

/* World strip */
.world-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: var(--space-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-2);
  scroll-padding: 0 var(--gutter);
}
.world-strip::-webkit-scrollbar { display: none; }
.world-strip li { scroll-snap-align: start; }
.world-strip img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 var(--border-strong) var(--line-strong), var(--shadow-card);
}
.world-strip figcaption {
  margin-top: var(--space-3); text-align: center; color: var(--cream-300);
  font: var(--weight-semibold) var(--text-sm) / 1.3 var(--font-serif); text-transform: uppercase; letter-spacing: var(--tracking-caps);
}
@media (min-width: 720px) { .world-strip { grid-auto-columns: 24%; } }
@media (min-width: 960px) {
  .world-strip { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--space-4); }
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.feature {
  display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-2); align-content: start;
  padding: var(--space-3) var(--space-3) var(--space-5); text-align: center;
  background: var(--fill-card);
  border: var(--border) solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.feature > picture img, .feature-media {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-2);
}
.feature-media { position: relative; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-fan { background: radial-gradient(closest-side, var(--glow-gold), transparent); overflow: visible; }
.feature-fan picture { display: contents; }
.feature-fan img {
  position: absolute; top: 14%; left: 30%; width: 44%; height: auto; aspect-ratio: 1; border-radius: var(--radius-xs);
  box-shadow: 0 0 0 var(--border-thick) var(--gold-500), var(--shadow-thumb);
}
.feature-fan picture:nth-child(1) img { transform: rotate(-14deg) translateX(-42%); }
.feature-fan picture:nth-child(2) img { transform: rotate(12deg) translateX(42%); }
.feature-fan picture:nth-child(3) img { transform: translateY(-4%); }
.feature h3 { font-size: var(--text-xl); color: var(--cream-100); }
.feature p { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-card); }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
@media (min-width: 1180px) { .feature-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-5); } .feature { padding: var(--space-4) var(--space-4) var(--space-6); } .feature p { font-size: var(--text-base); } }

/* Trust strip */
.trust { max-width: var(--container); margin: var(--section-gap) auto 0; padding: 0 var(--gutter); }
.trust-inner {
  display: grid; gap: var(--space-5); justify-items: center; padding: var(--space-7) 0;
  border-top: var(--border) solid var(--line); border-bottom: var(--border) solid var(--line);
}
.trust-lead { display: flex; align-items: center; gap: var(--space-4); }
.trust-icon { width: var(--icon-lg); height: var(--icon-lg); color: var(--accent); }
.trust h2 { font-size: var(--display-section); font-weight: var(--weight-medium); }
.checklist { display: grid; gap: var(--space-2); }
.checklist li { display: grid; grid-template-columns: var(--icon-sm) 1fr; gap: var(--space-2); align-items: start; color: var(--text-muted); font-size: var(--text-base); }
.checklist svg { width: var(--icon-sm); height: var(--icon-sm); color: var(--accent); margin-top: var(--hairline); }
@media (min-width: 860px) {
  .trust-inner { grid-template-columns: auto auto; justify-content: center; gap: var(--space-9); }
  .trust-lead { padding-right: var(--space-9); border-right: var(--border) solid var(--line); }
}

/* Wish stage: the wish card (left) and a MacBook previewing the world (right); stacked on phones, preview first. */
.wish-stage { display: grid; gap: var(--space-7); grid-template-areas: "preview" "card"; align-items: center; }
.wish-card {
  grid-area: card; position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center;
  padding: var(--space-7) var(--space-5) var(--space-6); border-radius: var(--radius-lg);
  border: var(--border) solid var(--line); box-shadow: var(--shadow-card), var(--glow-wish-card);
}
.wish-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url("images/scenes/wish-card-2304.jpg");
  background-image: image-set(url("images/scenes/wish-card-2304.avif") type("image/avif"), url("images/scenes/wish-card-2304.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
}
.wish-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--veil-wish-card); }
.wish-form { display: grid; gap: var(--space-4); }
.wish-title {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: var(--weight-semibold) var(--display-label) / var(--leading-tight) var(--font-serif); color: var(--gold-200); text-align: center;
  text-shadow: var(--shadow-text);
}
.wish-title-mark { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--accent); filter: var(--glow-icon); }
.wish-busy {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); text-align: center;
  background: var(--fill-busy); border: var(--border) solid var(--line); color: var(--gold-200); font-size: var(--text-base);
}
.wish-field { position: relative; }
.wish-field-icon {
  position: absolute; left: var(--space-5); top: 50%; transform: translateY(-50%); width: var(--icon-sm); height: var(--icon-sm);
  color: var(--accent); pointer-events: none; filter: var(--glow-mark);
}
.wish-input, .wish-email {
  width: 100%; border-radius: var(--radius-pill); color: var(--text); font-family: var(--font-sans);
  border: var(--border-strong) solid var(--line-strong); background: var(--fill-wish-input);
  transition: box-shadow var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
}
.wish-input { min-height: var(--wish-input-height); padding: 0 var(--space-5) 0 calc(var(--space-5) + var(--icon-sm) + var(--space-3)); font-size: var(--text-xl); }
.wish-email { min-height: var(--tap); padding: 0 var(--space-5); font-size: var(--text-md); }
.wish-input::placeholder, .wish-email::placeholder { color: var(--text-faint); }
.wish-input:focus, .wish-email:focus { outline: none; border-color: var(--gold-300); box-shadow: var(--ring-wish-focus); }
.wish-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.wish-example {
  display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--tap); padding: var(--space-1);
  padding-right: var(--space-3); text-align: left; cursor: pointer;
  border: var(--border) solid var(--line); border-radius: var(--radius-sm); background: var(--fill-example);
  color: var(--cream-300); font-size: var(--text-sm); line-height: var(--leading-snug);
  transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.wish-example img { flex: none; width: var(--example-thumb); height: var(--example-thumb); border-radius: var(--radius-xs); object-fit: cover; }
.wish-example:hover { border-color: var(--line-strong); background: var(--fill-hover); color: var(--cream-100); transform: translateY(calc(-1 * var(--press-depth))); }
.wish-example[aria-pressed="true"] { border-color: var(--gold-400); color: var(--cream-100); box-shadow: var(--ring-example); }
.wish-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--duration-reveal) var(--ease), opacity var(--duration-reveal) var(--ease); }
.wish-more.is-open { grid-template-rows: 1fr; opacity: 1; }
.wish-more-inner { min-height: 0; overflow: hidden; display: grid; gap: var(--space-2); }
.wish-more-label { font-size: var(--text-sm); color: var(--cream-300); padding: var(--space-1) var(--space-2) 0; }
.wish-paint {
  position: relative; overflow: hidden; justify-self: stretch; min-height: var(--wish-button-height); cursor: pointer;
  border-radius: var(--radius-pill); border: var(--border-strong) solid var(--edge-primary);
  background: var(--fill-wish-button); color: var(--cream-100); box-shadow: var(--shadow-button);
  font: var(--weight-semibold) var(--text-2xl) / 1 var(--font-serif); letter-spacing: var(--tracking-wide); text-shadow: var(--shadow-text);
}
.wish-paint::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: var(--sheen-button); pointer-events: none;
}
.wish-paint:hover::after { animation: shimmer var(--duration-shimmer) var(--ease); }
.wish-paint:disabled { cursor: progress; opacity: 0.75; }
.wish-turnstile { display: flex; justify-content: center; }
.wish-turnstile:empty { display: none; }
.wish-note { min-height: 1.4em; text-align: center; color: var(--gold-200); font-size: var(--text-sm); }
.wish-fine {
  text-align: center; color: var(--cream-300); font-size: var(--text-sm);
  font-variant: all-small-caps; letter-spacing: var(--tracking-caps);
}
.wish-preview { grid-area: preview; display: grid; gap: var(--space-4); justify-items: center; }
.macbook--stage { max-width: var(--device-stage); }
.wish-screen { isolation: isolate; }
.wish-layer { position: absolute; inset: 0; }
.wish-layer img { width: 100%; height: 100%; object-fit: cover; }
.wish-layer.is-entering {
  -webkit-mask-image: url("images/brush-mask.svg"); mask-image: url("images/brush-mask.svg");
  -webkit-mask-size: var(--brush-mask-size); mask-size: var(--brush-mask-size);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: brush-wipe var(--duration-wipe) var(--ease) forwards;
}
.wish-screen.is-painting .wish-layer img { filter: var(--filter-painting); transition: filter var(--duration-slow) var(--ease); }
.wish-painting { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background: var(--veil-painting); }
.wish-brush {
  position: absolute; left: 0; width: var(--brush-length); height: var(--brush-height); border-radius: var(--radius-pill);
  background: var(--fill-brush); filter: blur(var(--blur-brush)); mix-blend-mode: screen; opacity: 0;
  animation: brush-sweep var(--duration-brush) var(--ease) infinite;
}
.wish-brush:nth-child(1) { top: 12%; animation-delay: 0s; }
.wish-brush:nth-child(2) { top: 34%; animation-delay: calc(var(--duration-brush) * 0.25); }
.wish-brush:nth-child(3) { top: 56%; animation-delay: calc(var(--duration-brush) * 0.5); }
.wish-brush:nth-child(4) { top: 76%; animation-delay: calc(var(--duration-brush) * 0.75); }
.wish-painting-text {
  position: relative; display: grid; gap: var(--space-1); justify-items: center; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md); background: var(--fill-painting-label); backdrop-filter: blur(var(--blur-glass));
  font: italic var(--weight-semibold) var(--text-xl) var(--font-serif); color: var(--gold-200);
}
.wish-eta { font: var(--weight-regular) var(--text-sm) var(--font-sans); font-style: normal; color: var(--cream-300); }
.wish-caption { font: italic var(--weight-semibold) var(--text-xl) var(--font-serif); color: var(--accent-strong); text-align: center; }
.wish-result { display: grid; gap: var(--space-3); justify-items: center; text-align: center; max-width: var(--device-small); }
.wish-result-title { font: var(--weight-semibold) var(--text-2xl) var(--font-serif); color: var(--gold-200); }
.wish-result-title:focus { outline: none; }
.wish-result-text { color: var(--text-muted); }
.wish-result .actions { justify-content: center; }
@media (min-width: 600px) {
  .wish-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .wish-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "card preview"; gap: var(--space-9); }
  .wish-card { padding: var(--space-8) var(--space-7) var(--space-7); }
  .wish-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .wish-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@keyframes brush-wipe { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes brush-sweep {
  0% { transform: translateX(-110%) rotate(var(--brush-angle)); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(var(--brush-travel)) rotate(var(--brush-angle)); opacity: 0; }
}
@keyframes shimmer { to { transform: translateX(120%); } }
@keyframes reveal { from { opacity: 0; transform: scale(var(--scale-reveal)); filter: blur(var(--blur-reveal)); } }

/* Pricing */
.pricing { position: relative; }
.plans { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "featured featured" "free packs"; gap: var(--space-3); align-items: stretch; }
.plan {
  position: relative; display: grid; justify-items: center; align-content: start; gap: var(--space-3); text-align: center;
  padding: var(--space-6) var(--space-3); border: var(--border) solid var(--line); border-radius: var(--radius-lg);
  background: var(--fill-card); box-shadow: var(--shadow-card);
}
.plan--free { grid-area: free; }
.plan--packs { grid-area: packs; }
.plan--featured {
  grid-area: featured; padding: var(--space-7) var(--space-5);
  border: var(--border-strong) solid var(--gold-500);
  background: var(--fill-card-featured);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}
.plan-icon { width: var(--icon-md); height: var(--icon-md); color: var(--accent); }
.plan-spark { width: var(--icon-lg); height: var(--icon-lg); color: var(--accent); filter: var(--glow-icon-strong); }
.plan h3 { font-size: var(--text-2xl); }
.plan--featured h3 { font-size: var(--display-plan); }
.plan-detail, .plan-sub { color: var(--text-muted); font-size: var(--text-sm); }
.plan--featured .plan-sub { font-size: var(--text-base); }
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); display: none;
  padding: var(--space-1) var(--space-4); border-radius: var(--radius-xs);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--wine-900);
  font: var(--weight-semibold) var(--text-xs) / 1.5 var(--font-sans); text-transform: uppercase; letter-spacing: var(--tracking-wide);
}
.checklist--plan { justify-self: stretch; text-align: left; gap: var(--space-2); margin: var(--space-1) 0 var(--space-3); }
.checklist--plan li { font-size: var(--text-base); color: var(--cream-100); }
.pack-buttons { display: grid; gap: var(--space-2); width: 100%; }
.pack-buttons .button { padding: 0 var(--space-2); font-size: var(--text-base); }
.plan--free .button { padding: 0 var(--space-3); }
.pricing-fine { margin-top: var(--space-5); text-align: center; font-size: var(--text-sm); color: var(--text-faint); }
@media (min-width: 860px) {
  .plans { grid-template-columns: 1fr 1.3fr 1fr; grid-template-areas: "free featured packs"; gap: var(--space-6); align-items: center; max-width: var(--plans-width); margin: 0 auto; }
  .plan { padding: var(--space-7) var(--space-6); }
  .plan--featured { padding: var(--space-8) var(--space-7) var(--space-7); }
  .plan-spark { display: none; }
  .plan-badge { display: block; }
  .plan h3 { font-size: var(--display-plan); }
  .plan-detail { font-size: var(--text-base); }
  .pack-buttons .button { font-size: var(--text-lg); }
}

/* FAQ */
.faq-list { max-width: var(--container-faq); margin: 0 auto; display: grid; gap: var(--space-2); }
.faq-list details { border: var(--border) solid var(--line); border-radius: var(--radius-sm); background: var(--fill-faq); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--tap); padding: var(--space-2) var(--space-5); cursor: pointer; list-style: none;
  font: var(--weight-semibold) var(--text-lg) / 1.3 var(--font-serif); color: var(--cream-100);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; width: var(--icon-sm); height: var(--icon-sm); color: var(--cream-300); transition: transform var(--duration-base) var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding: 0 var(--space-5) var(--space-4); color: var(--text-muted); }

/* Final call */
.final-cta { position: relative; isolation: isolate; margin-top: var(--section-gap); min-height: var(--final-height); display: grid; place-items: center; overflow: hidden; }
.final-cta-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--final-focus); }
.final-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--veil-final);
}
.final-cta-content { display: grid; gap: var(--space-6); justify-items: center; padding: var(--space-10) var(--gutter); text-align: center; }
.final-cta h2 { font-size: var(--display-final); font-weight: var(--weight-medium); line-height: var(--leading-tight); text-shadow: var(--shadow-text); }
.final-cta h2 em { color: var(--gold-200); }
.final-cta .actions { justify-content: center; }
@media (min-width: 960px) { .final-cta { min-height: var(--final-height-wide); } }

/* Footer */
.footer { background: var(--page-deep); border-top: var(--border) solid var(--line-faint); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: var(--space-9) var(--gutter) calc(var(--space-7) + env(safe-area-inset-bottom));
  display: grid; gap: var(--space-7);
}
.footer-brand { display: grid; gap: var(--space-2); }
.footer-brand p, .footer-fine { color: var(--text-faint); font-size: var(--text-sm); }
.updates { display: grid; gap: var(--space-2); }
.updates-label { font: var(--weight-semibold) var(--text-xl) var(--font-serif); color: var(--cream-100); }
.updates-row { display: flex; gap: var(--space-2); }
.updates input {
  flex: 1; min-width: 0; min-height: var(--tap-small); padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: var(--border) solid var(--line); background: var(--glass); color: var(--text); font: var(--text-base) var(--font-sans);
}
.updates input::placeholder { color: var(--text-faint); }
.updates-note { font-size: var(--text-sm); color: var(--text-faint); min-height: 1.5em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.footer-nav a { color: var(--cream-300); text-decoration: none; font-size: var(--text-sm); padding: var(--space-2) 0; }
.footer-nav a:hover { color: var(--accent-strong); }
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .footer-nav, .footer-fine { grid-column: 1 / -1; }
}

/* Toast (checkout status) */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); z-index: var(--z-toast);
  transform: translateX(-50%); width: min(var(--toast-width), calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-3); align-items: center;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  background: var(--surface-strong); border: var(--border) solid var(--line-strong); box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--blur-header));
}
.toast p { grid-column: 1; color: var(--text); font-size: var(--text-sm); }
.toast-form { grid-column: 1; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.toast-form input {
  flex: 1; min-width: 0; min-height: var(--tap-small); padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: var(--border) solid var(--line); background: var(--glass); color: var(--text); font: var(--text-base) var(--font-sans);
}
.toast-note { flex-basis: 100%; min-height: 1.4em; font-size: var(--text-sm); color: var(--accent-strong); }
.toast .text-button { grid-column: 1; justify-self: start; padding: 0; }
.toast-close {
  grid-column: 2; grid-row: 1 / span 2; width: var(--tap); height: var(--tap); background: none; border: 0; cursor: pointer;
  color: var(--cream-300); font-size: var(--text-2xl); line-height: 1;
}

/* Thanks page (Stripe's success page): the sunset painting behind a centered note. */
.thanks-page { min-height: 100vh; display: grid; place-items: center; position: relative; isolation: isolate; overflow-x: hidden; }
.thanks-art { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--final-focus); }
.thanks-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--veil-thanks); }
.thanks {
  width: min(var(--thanks-width), calc(100% - 2 * var(--gutter))); margin: var(--space-9) auto;
  display: grid; gap: var(--space-5); justify-items: center; text-align: center;
  padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg);
  background: var(--fill-thanks); border: var(--border) solid var(--line); box-shadow: var(--shadow-card), var(--glow-wish-card);
  backdrop-filter: blur(var(--blur-header)); -webkit-backdrop-filter: blur(var(--blur-header));
}
.thanks-brand { font-size: var(--text-2xl); }
.thanks h1 { font-size: var(--display-section); font-weight: var(--weight-medium); line-height: var(--leading-tight); }
.thanks h1 em { display: block; color: var(--gold-200); }
.thanks-lede { color: var(--text-muted); font-size: var(--text-md); }
.thanks-download { width: 100%; }
.thanks-steps { text-align: left; justify-self: stretch; }
.thanks-support { color: var(--text-faint); font-size: var(--text-sm); }
@media (min-width: 640px) { .thanks-download { width: auto; } .thanks { padding: var(--space-9) var(--space-8); } }

/* Gift Siroon (gift, redeem, gift card) */
.gift { gap: var(--space-6); }
.gift-form, .gift-sent { display: grid; gap: var(--space-5); width: 100%; min-width: 0; text-align: left; }
.gift-form > *, .gift-row > * { min-width: 0; }
.gift-sent { text-align: center; justify-items: center; }
.gift h1 { text-align: center; }
.gift .thanks-lede { text-align: center; }
.gift-label { display: block; font: var(--weight-semibold) var(--text-md) var(--font-serif); color: var(--gold-200); margin-bottom: var(--space-2); }
.gift-label small { font: var(--text-sm) var(--font-sans); color: var(--text-faint); }
.gift-row { display: grid; gap: var(--space-5); }
.gift-field input, .gift-field textarea, .gift-date {
  width: 100%; min-height: var(--tap-small); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  border: var(--border) solid var(--line); background: var(--glass); color: var(--text); font: var(--text-base) var(--font-sans);
}
.gift-field textarea { resize: vertical; line-height: 1.5; }
.gift-field input:focus, .gift-field textarea:focus, .gift-date:focus { outline: none; border-color: var(--gold-300); box-shadow: var(--ring-wish-focus); }
.gift-date { color-scheme: dark; margin-top: var(--space-2); }
.gift-date:disabled { opacity: 0.5; }
.gift-code { font-family: Menlo, ui-monospace, monospace !important; letter-spacing: 0.08em; text-transform: uppercase; }
.gift-products, .gift-when { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); min-inline-size: 0; }
.gift-product {
  display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); cursor: pointer;
  border: var(--border) solid var(--line); border-radius: var(--radius-md); background: var(--glass);
}
.gift-product:has(input:checked) { border-color: var(--gold-400); box-shadow: var(--ring-example); }
.gift-product > span { display: grid; }
.gift-product small { color: var(--text-muted); font-size: var(--text-sm); }
.gift-product input, .gift-choice input { accent-color: var(--gold-400); }
.gift-choice { color: var(--text); }
.gift-hint, .gift-note { color: var(--text-faint); font-size: var(--text-sm); min-height: 1.4em; }
.gift-note { color: var(--gold-200); text-align: center; }
.gift-turnstile { min-height: var(--turnstile-height); display: grid; justify-items: center; }
.campaign-banner {
  padding: var(--space-2) var(--space-5); border-radius: var(--radius-pill); border: var(--border) solid var(--line);
  color: var(--gold-200); font: italic var(--weight-semibold) var(--text-md) var(--font-serif); text-align: center;
}
@media (min-width: 640px) { .gift-row { grid-template-columns: 1fr 1fr; } }

.gift-card-page { place-items: center; background: var(--wine-900); }
.gift-card-page::before { display: none; }
.gift-card-wrap { display: grid; gap: var(--space-6); justify-items: center; padding: var(--space-9) var(--gutter); width: 100%; }
.gift-card {
  width: min(var(--simple-width), 100%); border-radius: var(--radius-lg); overflow: hidden; background: var(--fill-thanks);
  border: var(--border) solid var(--line); box-shadow: var(--shadow-card), var(--glow-wish-card);
}
.gift-card-art { display: block; width: 100%; height: auto; }
.gift-card-body { display: grid; gap: var(--space-3); padding: var(--space-7) var(--space-6); text-align: center; }
.gift-card-brand { font: var(--weight-semibold) var(--text-xl) var(--font-serif); color: var(--accent); display: flex; gap: var(--space-2); justify-content: center; align-items: center; }
.gift-card-to { font: var(--weight-medium) var(--text-2xl) var(--font-serif); }
.gift-card-message { font-style: italic; color: var(--text-muted); margin: 0; }
.gift-card-from { color: var(--gold-200); }
.gift-card-what { color: var(--text-muted); font-size: var(--text-sm); }
.gift-card-code { font: var(--text-xl) Menlo, ui-monospace, monospace; letter-spacing: 0.12em; color: var(--accent); padding: var(--space-3); border: var(--border) dashed var(--line); border-radius: var(--radius-md); }
.gift-card-how { color: var(--text-faint); font-size: var(--text-sm); }
@media print {
  .gift-card-page { background: #fff; }
  .gift-card-actions, .gift-card-page .gift-note { display: none !important; }
  .gift-card { box-shadow: none; break-inside: avoid; }
  .gift-card-body { background: #1b0b18; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Home: gift section and seasonal wishes */
.gift-home { text-align: center; display: grid; gap: var(--space-5); justify-items: center; }
.gift-home p { color: var(--text-muted); max-width: 40em; }
.season-wishes { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; list-style: none; padding: 0; margin: 0; }
.season-wish {
  border: var(--border) solid var(--line); border-radius: var(--radius-pill); background: var(--glass); color: var(--gold-200);
  padding: var(--space-2) var(--space-4); font: italic var(--text-md) var(--font-serif); cursor: pointer;
}
.season-wish:hover { border-color: var(--gold-400); }
.site-banner { display: block; text-align: center; padding: var(--space-2) var(--gutter); background: var(--fill-thanks); color: var(--gold-200); font: italic var(--weight-semibold) var(--text-md) var(--font-serif); text-decoration: none; border-bottom: var(--border) solid var(--line); }

/* Simple pages (checkout, thanks) */
.page-simple { min-height: 100vh; display: grid; place-items: center; padding: var(--space-9) var(--gutter); text-align: center; }
.page-simple main { max-width: var(--simple-width); display: grid; gap: var(--space-5); justify-items: center; }
.page-simple h1 { font-size: var(--display-section); }
.page-simple p { color: var(--text-muted); }
.page-simple .fine { font-size: var(--text-sm); color: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
