/* Self-hosted variable fonts (SIL Open Font License), latin subset. */

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

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

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

/* Design tokens. Themes only swap colors; components never change per theme. */

/* Core: the ERX Connect studio look — warm off-white, near-black ink, one orange accent.
   Follows the visitor's light/dark setting. */
:root,
[data-theme="core"] {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --text: #0E0E10;
  --muted: #5C5B57;
  --accent: #FF5B24;
  --accent-2: #0E0E10;
  --highlight: #FFE6DB;

  --on-accent: #0E0E10;
  --on-accent-2: #FFFFFF;
  --border: rgba(14, 14, 16, 0.12);
  --border-strong: rgba(14, 14, 16, 0.28);
  --surface-2: #EBE9E2;
  --overlay: rgba(14, 14, 16, 0.5);
  --focus: #0E0E10;
  --success: #12805C;
  --danger: #C2362B;
  --secondary-bg: transparent;
  --secondary-text: var(--text);
  --secondary-border: var(--border-strong);
  --shadow: 0 1px 2px rgba(14, 14, 16, 0.05), 0 8px 24px -14px rgba(14, 14, 16, 0.22);
  --shadow-lg: 0 2px 4px rgba(14, 14, 16, 0.05), 0 28px 56px -28px rgba(14, 14, 16, 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root,
  [data-theme="core"] {
    --bg: #0B0B0C;
    --surface: #151517;
    --text: #F4F3EF;
    --muted: #A3A29D;
    --accent-2: #F4F3EF;
    --highlight: #2B1A12;
    --on-accent-2: #0E0E10;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.3);
    --surface-2: #1F1F22;
    --overlay: rgba(0, 0, 0, 0.65);
    --focus: #F4F3EF;
    --success: #5DD6A2;
    --danger: #FF6B5E;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -28px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

[data-theme="halloween"] {
  --bg: #0E0A14;
  --surface: #1A1325;
  --text: #F5EFE6;
  --muted: #A89FB5;
  --accent: #FF7A1A;
  --accent-2: #9B5DE5;
  --highlight: #2A1B3D;

  --on-accent: #1A0D02;
  --on-accent-2: #0E0A14;
  --border: rgba(245, 239, 230, 0.10);
  --border-strong: rgba(245, 239, 230, 0.22);
  --surface-2: #231934;
  --overlay: rgba(5, 3, 8, 0.7);
  --focus: #FF9A4D;
  --success: #5DD6A2;
  --danger: #FF6B5E;
  --secondary-bg: transparent;
  --secondary-text: var(--text);
  --secondary-border: rgba(245, 239, 230, 0.3);
  --shadow: 0 1px 2px rgba(16, 16, 24, 0.04), 0 12px 32px -12px rgba(16, 16, 24, 0.14);
  --shadow-lg: 0 2px 4px rgba(16, 16, 24, 0.05), 0 28px 56px -28px rgba(16, 16, 24, 0.3);
  color-scheme: dark;
}

[data-theme="christmas"] {
  --bg: #FBF6EE;
  --surface: #FFFFFF;
  --text: #1B1B1B;
  --muted: #6E625A;
  --accent: #C8102E;
  --accent-2: #1E5631;
  --highlight: #D4A24C;

  --on-accent: #FFFFFF;
  --on-accent-2: #FFFFFF;
  --border: rgba(27, 27, 27, 0.09);
  --border-strong: rgba(27, 27, 27, 0.18);
  --surface-2: #F5EDE0;
  --overlay: rgba(27, 20, 12, 0.5);
  --focus: #C8102E;
  --success: #1E5631;
  --danger: #A30D25;
  /* Pine-green secondary buttons */
  --secondary-bg: #1E5631;
  --secondary-text: #FFFFFF;
  --secondary-border: #1E5631;
  --shadow: 0 1px 2px rgba(16, 16, 24, 0.04), 0 12px 32px -12px rgba(16, 16, 24, 0.14);
  --shadow-lg: 0 2px 4px rgba(16, 16, 24, 0.05), 0 28px 56px -28px rgba(16, 16, 24, 0.3);
  color-scheme: light;
}

:root {
  /* Spacing scale 4/8/12/16/24/32/48/64 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --font-heading: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-accent: "Fraunces", Georgia, serif;

  --container: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}

/* Reset + base typography + layout primitives */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* <picture> wrappers (AVIF + JPEG) must not change layout: the <img> stays the box. */
picture {
  display: contents;
}

picture > source {
  display: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 2.2rem + 1.2vw, 44px);
  line-height: clamp(38px, 2.6rem + 1.4vw, 52px);
}

h2 {
  font-size: clamp(26px, 1.4rem + 1.1vw, 36px);
  line-height: 1.15;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

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

[hidden] {
  display: none !important;
}

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.section {
  padding-block: var(--s-8);
}

@media (min-width: 900px) {
  .section {
    padding-block: var(--s-9);
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--s-6);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  margin-top: var(--s-3);
}

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

.small {
  font-size: 14px;
  line-height: 22px;
}

.accent-word {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
}

.prose h3 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
}

.prose p,
.prose ul,
.prose ol {
  margin-top: var(--s-3);
  color: color-mix(in srgb, var(--text) 86%, var(--bg));
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: var(--s-2);
}

.prose a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.15s, box-shadow 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 20px -10px var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 88%, #000);
}

.btn-secondary {
  background: var(--secondary-bg);
  color: var(--secondary-text);
  border-color: var(--secondary-border);
}

.btn-secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary-bg) 90%, var(--text));
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.btn-sm {
  --btn-h: 44px;
  padding: 0 14px;
  font-size: 15px;
}

.btn-lg {
  --btn-h: 56px;
  padding: 0 28px;
  font-size: 17px;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--on-accent);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.btn-secondary.is-loading::after,
.btn-ghost.is-loading::after {
  border-color: var(--text);
  border-right-color: transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link-btn {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Pills, badges, chips ---------- */

.credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--highlight);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

[data-theme="christmas"] .credits-pill {
  background: color-mix(in srgb, var(--highlight) 22%, var(--surface));
}

.credits-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  background: var(--accent-2);
  color: var(--on-accent-2);
}

.badge-soft {
  background: var(--highlight);
  color: var(--text);
}

[data-theme="christmas"] .badge-soft {
  background: color-mix(in srgb, var(--highlight) 25%, var(--surface));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover {
  border-color: var(--text);
}

.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: var(--s-5);
}

@media (min-width: 768px) {
  .card-pad {
    padding: var(--s-6);
  }
}

/* ---------- Inputs ---------- */

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.toggle button {
  min-height: 40px;
  min-width: 64px;
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  font-weight: 500;
  cursor: pointer;
}

.switch input {
  appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background-color 0.15s;
  cursor: pointer;
  flex: none;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s var(--ease);
}

.switch input:checked {
  background: var(--accent);
}

.switch input:checked::after {
  transform: translateX(18px);
}

/* ---------- Toast ---------- */

.toast-region {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: var(--s-2);
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #17171B;
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.25s var(--ease);
}

.toast.is-error {
  background: var(--danger);
}

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

/* ---------- Dialog: modal on desktop, bottom sheet on mobile ---------- */

.dialog {
  border: 0;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  margin: auto auto 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.2);
  overflow: auto;
  overscroll-behavior: contain;
}

.dialog[open] {
  animation: sheet-up 0.3s var(--ease);
}

.dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(2px);
}

@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

@media (min-width: 720px) {
  .dialog {
    max-width: 560px;
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  }

  .dialog-wide {
    max-width: 760px;
  }
}

.dialog-inner {
  padding: var(--s-5) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom));
}

@media (min-width: 720px) {
  .dialog-inner {
    padding: var(--s-6);
  }
}

.dialog-grabber {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--border-strong);
  margin: 10px auto 0;
}

@media (min-width: 720px) {
  .dialog-grabber {
    display: none;
  }
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.dialog-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.dialog-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- Accordion (native details) ---------- */

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

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

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  padding: var(--s-4) 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

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

.accordion summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s var(--ease);
  opacity: 0.6;
}

.accordion details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.accordion .answer {
  padding-bottom: var(--s-5);
  color: var(--muted);
  max-width: 68ch;
}

.accordion .answer a {
  color: var(--accent);
}

/* ---------- Skeleton shimmer ---------- */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

/* ---------- Before / after slider ---------- */

.ba-slider {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  user-select: none;
  touch-action: pan-y;
}

.ba-slider.is-wide {
  aspect-ratio: 4 / 5;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider .ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 2;
}

.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23111114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5 2 10l5 5M13 5l5 5-5 5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  touch-action: pan-y;
}

.ba-slider:has(.ba-range:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.ba-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 20, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.ba-label-before {
  left: 12px;
}

.ba-label-after {
  right: 12px;
}

.dialog-inner {
  display: grid;
  gap: var(--s-4);
}

.dialog-inner .dialog-head {
  margin-bottom: 0;
}

.dialog .trust-row {
  margin-top: calc(-1 * var(--s-2));
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.logo b {
  color: var(--accent);
  font-weight: 700;
}

.nav {
  display: none;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.restore-link {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  min-height: 44px;
  align-items: center;
  padding: 0 6px;
}

.restore-link:hover {
  color: var(--text);
}

.restore-link { text-decoration: none; }
.header-cta { display: none; }
.nav-new { font-size: 8px; line-height: 17px; background: var(--highlight); padding-inline: 5px; border-radius: 4px; color: var(--accent); }
.footer-brand-note { display: block; margin-top: 14px; font-size: 10px; color: var(--muted); }

@media (min-width: 1120px) {
  .header-cta { display: inline-flex; font-size: 11px; gap: 12px; border-radius: 8px; }
  .header-inner { gap: 12px; }
  .nav { margin-left: 12px !important; }
  .nav > a, .nav-dropdown > summary { padding-inline: 10px !important; font-size: 12px !important; }
  .header-actions { gap: 14px; }
  .restore-link, .credits-pill { font-size: 11px; }
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle .bars::before {
  top: -6px;
}

.menu-toggle .bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--border);
  padding: var(--s-3) var(--gutter) var(--s-5);
  background: var(--bg);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .group-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s-4);
}

@media (min-width: 960px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: var(--s-5);
  }

  .nav > a,
  .nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: color-mix(in srgb, var(--text) 82%, var(--bg));
    cursor: pointer;
    list-style: none;
  }

  .nav > a:hover,
  .nav-dropdown > summary:hover,
  .nav > a[aria-current="page"] {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown > summary::-webkit-details-marker {
    display: none;
  }

  .nav-dropdown > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.6;
  }

  .nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-dropdown-panel a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
  }

  .nav-dropdown-panel a:hover {
    background: var(--surface-2);
  }

  .nav-dropdown-panel strong {
    font-size: 15px;
    font-weight: 600;
  }

  .nav-dropdown-panel span {
    font-size: 13px;
    line-height: 18px;
    color: var(--muted);
  }

  .restore-link {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Seasonal top bar ---------- */

.topbar {
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  padding: 10px var(--gutter);
}

.topbar a {
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--s-8);
  border-top: 1px solid var(--border);
  padding-block: var(--s-7) calc(var(--s-7) + env(safe-area-inset-bottom));
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-brand {
  grid-column: 1 / -1;
  max-width: 340px;
}

.footer-brand p {
  margin-top: var(--s-3);
  color: var(--muted);
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a,
.footer-col button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

.turnstile-slot {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 95;
}

.turnstile-slot:empty {
  display: none;
}

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

.hero {
  position: relative;
  padding-block: var(--s-5) var(--s-7);
  isolation: isolate;
}

.hero-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

.hero-copy h1 {
  max-width: 15ch;
}

.hero-copy .lead {
  max-width: 46ch;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  font-size: 14px;
  color: var(--muted);
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 25%, transparent);
}

[data-theme="core"] .hero-note span::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--highlight);
}

@media (max-width: 599px) {
  .hero .lead {
    font-size: 16px;
    line-height: 24px;
    margin-top: var(--s-2);
  }
  .hero .hide-mobile {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: var(--s-8) var(--s-9);
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--s-8);
  }
}

/* ---------- Generator ---------- */

.generator {
  display: grid;
  gap: var(--s-4);
}

.gen-card {
  padding: var(--s-3);
}

@media (min-width: 768px) {
  .gen-card {
    padding: var(--s-4);
  }
}

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 188px;
  padding: var(--s-5) var(--s-4);
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--highlight) 55%, var(--surface));
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s var(--ease);
}

[data-theme="christmas"] .dropzone {
  background: color-mix(in srgb, var(--highlight) 10%, var(--surface));
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.dropzone.is-dragover {
  transform: scale(1.01);
}

.dropzone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  margin-bottom: 6px;
  box-shadow: 0 10px 24px -10px var(--accent);
}

.dropzone-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dropzone-sub {
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
  max-width: 34ch;
}

.selected {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-2);
}

.selected img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-2);
}

.selected:has(img[hidden]) { grid-template-columns: minmax(0, 1fr); }

.selected-meta {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.selected-meta strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
}

.uploader-tip {
  margin-top: var(--s-3);
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.uploader-tip::before {
  content: "i";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  background: var(--surface-2);
  color: var(--muted);
  margin-top: 1px;
}

.gen-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-3) var(--s-1) 0;
}

.gen-options-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.tool-chips {
  margin-top: var(--s-3);
}

.tool-chips .chip {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.style-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--s-2);
}

.style-note a {
  color: var(--accent);
  font-weight: 600;
}

.generate-bar {
  display: grid;
  gap: 6px;
  margin-top: var(--s-3);
}

.generate-bar .btn {
  width: 100%;
}

.generate-note {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  text-align: center;
}

/* Sticky CTA on mobile once a photo and style are ready */
@media (max-width: 767px) {
  .generate-bar.is-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }

  body.has-sticky-cta {
    padding-bottom: 96px;
  }
}

/* Progress */

.progress {
  padding: var(--s-5);
}

.progress-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.progress-steps li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--muted);
  font-weight: 500;
}

.progress-steps li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.progress-steps li.is-active {
  color: var(--text);
}

.progress-steps li.is-active::before {
  border-color: var(--accent);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

.progress-steps li.is-done {
  color: var(--text);
}

.progress-steps li.is-done::before {
  border-color: var(--accent);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3.5 3.5L15 7'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.progress-skeleton {
  aspect-ratio: 4 / 5;
  max-height: 320px;
  margin-top: var(--s-5);
}

.progress-eta {
  margin-top: var(--s-3);
  font-size: 14px;
  color: var(--muted);
}

/* Result */

.result {
  padding: var(--s-3);
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 768px) {
  .result {
    padding: var(--s-4);
  }
}

.result-side {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-2) var(--s-3);
}

.result-side h3 {
  font-size: 22px;
}

.result-actions {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.result-actions .btn {
  width: 100%;
}

.result-credits {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.result-error {
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}

.result-error h3 {
  color: var(--danger);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

/* ---------- Template gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.template-card {
  position: relative;
  display: grid;
  text-align: left;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.template-card[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}

.template-card[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3.5 3.5L15 7'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.tc-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface-2);
}

.tc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s var(--ease);
}

.tc-media img {
  transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
  .template-card:hover .tc-media img {
    transform: scale(1.04);
  }
}

.tc-badges {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 1;
}

.tc-body {
  padding: 10px 6px 6px;
  display: grid;
  gap: 2px;
}

.tc-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.01em;
}

.tc-blurb {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

@media (max-width: 479px) {
  .tc-blurb {
    display: none;
  }
}

.gallery-filters {
  margin-bottom: var(--s-5);
}

.more-styles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}

.more-styles .template-card {
  padding: 4px;
}

.more-styles .tc-blurb {
  display: none;
}

.more-styles .tc-name {
  font-size: 13px;
  line-height: 18px;
}

/* ---------- Seasonal banner ---------- */

.season-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6) var(--s-5);
  border-radius: 28px;
  isolation: isolate;
}

.season-banner h2 {
  max-width: 18ch;
}

.season-banner p {
  max-width: 44ch;
  margin-top: var(--s-3);
}

.season-banner .btn {
  justify-self: start;
}

.season-banner-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}

.season-banner-media img {
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.season-banner-media img:nth-child(2) {
  transform: translateY(-12px);
}

.season-halloween {
  background: radial-gradient(120% 120% at 100% 0%, #3a1f5c 0%, #0E0A14 60%);
  color: #F5EFE6;
}

.season-halloween .btn-primary {
  background: #FF7A1A;
  color: #1A0D02;
  box-shadow: 0 8px 24px -10px #FF7A1A;
}

.season-halloween p {
  color: #CFC6DA;
}

.season-christmas {
  background: radial-gradient(120% 120% at 100% 0%, #F7E6C9 0%, #FBF6EE 55%);
  color: #1B1B1B;
  border: 1px solid rgba(27, 27, 27, 0.08);
}

.season-christmas .btn-primary {
  background: #C8102E;
  color: #fff;
  box-shadow: 0 8px 24px -10px #C8102E;
}

.season-christmas p {
  color: #6E625A;
}

.season-christmas h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: #C8102E;
}

@media (min-width: 900px) {
  .season-banner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--s-7);
  }
}

/* ---------- Showcase ---------- */

.showcase {
  display: grid;
  gap: var(--s-5);
}

.showcase figure {
  display: grid;
  gap: var(--s-3);
}

.showcase figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  font-weight: 600;
}

.showcase figcaption span {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Tools grid ---------- */

.tools-grid {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tools-grid > :nth-child(-n + 3) {
    grid-column: span 2;
  }

  .tools-grid > :nth-child(n + 4) {
    grid-column: span 3;
  }
}

.tool-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
}

.tool-card-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}

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

.tool-card-media img:first-child {
  filter: blur(3px) saturate(0.72) contrast(0.86);
  transform: scale(1.03);
}

.tool-card-body {
  padding: var(--s-5);
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.tool-card-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 23px;
}

.tool-card-cta {
  margin-top: var(--s-2);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-card-cta::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.tool-card:hover .tool-card-cta::after {
  transform: translateX(3px);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: var(--s-4);
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding: var(--s-5);
  display: grid;
  gap: var(--s-2);
}

.steps li::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--highlight);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: var(--s-2);
}

[data-theme="halloween"] .steps li::before {
  color: var(--accent);
}

[data-theme="christmas"] .steps li::before {
  background: color-mix(in srgb, var(--highlight) 22%, var(--surface));
}

.steps li p {
  color: var(--muted);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Pricing ---------- */

.packs {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 768px) {
  .packs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
  }
}

.pack {
  position: relative;
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pack.is-popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pack-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
}

.pack-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.pack-price {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: var(--s-2);
}

.pack-credits {
  font-weight: 600;
}

.pack-per {
  font-size: 14px;
  color: var(--muted);
}

.pack ul {
  list-style: none;
  padding: 0;
  margin-top: var(--s-3);
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.pack ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.pack .btn {
  margin-top: var(--s-4);
}

/* Paywall: selectable pack rows */

.pack-options {
  display: grid;
  gap: var(--s-2);
  border: 0;
  padding: 0;
}

.pack-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 72px;
  padding: var(--s-3) var(--s-4);
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.pack-option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.pack-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.pack-option input {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  margin: 0;
  display: grid;
  place-items: center;
}

.pack-option input:checked {
  border-color: var(--accent);
}

.pack-option input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pack-option-main {
  display: grid;
  gap: 2px;
}

.pack-option-main strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pack-option-main span {
  font-size: 13px;
  color: var(--muted);
}

.pack-option-price {
  text-align: right;
  display: grid;
}

.pack-option-price strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.pack-option-price span {
  font-size: 12px;
  color: var(--muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  text-align: center;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.paywall-reason {
  margin-top: 4px;
  color: var(--muted);
}

/* ---------- Trust section ---------- */

.trust-grid {
  display: grid;
  gap: var(--s-4);
}

.trust-item {
  padding: var(--s-5);
  display: grid;
  gap: var(--s-2);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--highlight);
  color: var(--accent);
  margin-bottom: var(--s-2);
}

[data-theme="christmas"] .trust-icon {
  background: color-mix(in srgb, var(--highlight) 22%, var(--surface));
}

.trust-item p {
  color: var(--muted);
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 1.6fr;
    gap: var(--s-8);
  }
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: var(--s-7) var(--s-5);
  border-radius: 28px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  justify-items: center;
  gap: var(--s-4);
}

.final-cta p {
  color: color-mix(in srgb, var(--bg) 70%, var(--text));
  max-width: 44ch;
}

[data-theme="halloween"] .final-cta {
  background: linear-gradient(160deg, #2A1B3D, #1A1325);
  color: var(--text);
  border: 1px solid var(--border);
}

[data-theme="halloween"] .final-cta p {
  color: var(--muted);
}

[data-theme="christmas"] .final-cta {
  background: #1E5631;
  color: #FBF6EE;
}

[data-theme="christmas"] .final-cta p {
  color: #D9E6DC;
}

[data-theme="christmas"] .final-cta .btn-primary {
  background: #FBF6EE;
  color: #1E5631;
  box-shadow: none;
}

/* ---------- Examples wall (masonry) ---------- */

.examples-wall {
  columns: 2;
  column-gap: var(--s-3);
}

.examples-wall figure {
  break-inside: avoid;
  margin-bottom: var(--s-3);
  position: relative;
}

.examples-wall img {
  width: 100%;
  border-radius: 16px;
  background: var(--surface-2);
}

.examples-wall figure:nth-child(3n + 2) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.examples-wall figure:nth-child(3n) img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.examples-wall figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(17, 17, 20, 0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
  .examples-wall {
    columns: 4;
    column-gap: var(--s-4);
  }

  .examples-wall figure {
    margin-bottom: var(--s-4);
  }
}

/* ---------- Use cases / content blocks ---------- */

.use-cases {
  display: grid;
  gap: var(--s-4);
}

.use-case {
  padding: var(--s-5);
  display: grid;
  gap: var(--s-2);
}

.use-case p {
  color: var(--muted);
}

@media (min-width: 768px) {
  .use-cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

.related-links {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 640px) {
  .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .related-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.related-link {
  display: grid;
  gap: 4px;
  padding: var(--s-5);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.related-link:hover {
  transform: translateY(-2px);
}

.related-link span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Seasonal decoration ---------- */

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

.fog {
  position: absolute;
  inset: auto -20% -10% -20%;
  height: 60%;
  background:
    radial-gradient(40% 60% at 20% 70%, rgba(155, 93, 229, 0.22), transparent 70%),
    radial-gradient(50% 50% at 75% 80%, rgba(255, 122, 26, 0.14), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(245, 239, 230, 0.08), transparent 70%);
  filter: blur(20px);
  animation: fog-drift 18s ease-in-out infinite alternate;
}

@keyframes fog-drift {
  to {
    transform: translateX(6%);
  }
}

.bat {
  position: absolute;
  width: 34px;
  color: rgba(245, 239, 230, 0.16);
  animation: bat-float 9s ease-in-out infinite;
}

.bat:nth-child(2) {
  top: 14%;
  left: 8%;
  width: 26px;
  animation-delay: -2s;
}

.bat:nth-child(3) {
  top: 8%;
  right: 12%;
  animation-delay: -5s;
  animation-duration: 11s;
}

.bat:nth-child(4) {
  top: 38%;
  right: 4%;
  width: 22px;
  animation-delay: -7s;
}

.bat:nth-child(5) {
  top: 56%;
  left: 3%;
  width: 20px;
  animation-delay: -3s;
  animation-duration: 12s;
}

@keyframes bat-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }
  50% {
    transform: translate(16px, -14px) rotate(4deg);
  }
}

.snow {
  position: absolute;
  inset: -100% 0 0;
  background-image:
    radial-gradient(2.5px 2.5px at 20px 30px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(2px 2px at 80px 120px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 150px 60px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 220px 160px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 280px 20px, rgba(255, 255, 255, 0.9), transparent);
  background-size: 300px 200px;
  filter: drop-shadow(0 0 1px rgba(160, 130, 90, 0.5));
  animation: snowfall 14s linear infinite;
  opacity: 0.9;
}

.snow.snow-2 {
  background-size: 220px 180px;
  animation-duration: 20s;
  opacity: 0.6;
}

@keyframes snowfall {
  to {
    transform: translateY(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fog,
  .bat,
  .snow {
    animation: none !important;
  }
  .snow {
    inset: 0;
  }
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
  filter: blur(10px);
}

[data-theme="christmas"] .hero-glow {
  background: radial-gradient(closest-side, rgba(212, 162, 76, 0.28), transparent);
}

/* ---------- Christmas extras ---------- */

.countdown-strip {
  background: #1E5631;
  color: #FBF6EE;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  padding: 10px var(--gutter);
  font-weight: 500;
}

.countdown-strip strong {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 17px;
  color: #F3D58A;
}

.card-maker {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

.card-maker canvas {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--surface-2);
}

.font-choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.font-choices .chip {
  min-height: 40px;
}

.font-choices .f-classic {
  font-family: var(--font-accent);
  font-style: italic;
}

.font-choices .f-modern {
  font-family: var(--font-heading);
  font-weight: 700;
}

.font-choices .f-simple {
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

/* ---------- Success / My photos ---------- */

.status-card {
  max-width: 560px;
  margin: var(--s-7) auto 0;
  padding: var(--s-7) var(--s-5);
  text-align: center;
  display: grid;
  gap: var(--s-3);
  justify-items: center;
}

.status-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--highlight);
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.status-orb.is-pending {
  border: 3px solid var(--highlight);
  border-top-color: var(--accent);
  background: transparent;
  animation: spin 1s linear infinite;
}

.status-orb.is-success {
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
}

.big-number {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
  }
}

@media (min-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.photo-item {
  padding: 6px;
  display: grid;
  gap: var(--s-2);
}

.photo-item .thumb {
  aspect-ratio: 4 / 5;
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface-2);
}

.photo-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item .meta {
  padding: 0 6px;
  display: grid;
  gap: 2px;
}

.photo-item .meta strong {
  font-size: 15px;
}

.photo-item .meta span {
  font-size: 13px;
  color: var(--muted);
}

.photo-item .btn {
  width: 100%;
}

.wallet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
}

.empty-state {
  text-align: center;
  padding: var(--s-8) var(--s-5);
  display: grid;
  justify-items: center;
  gap: var(--s-3);
}

.empty-state p {
  color: var(--muted);
  max-width: 40ch;
}

/* ---------- Legal / simple pages ---------- */

.page-head {
  padding-block: var(--s-7) var(--s-5);
}

.page-head .lead {
  max-width: 56ch;
}

.legal-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--s-3);
}

/* ---------- Comparison table ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare th {
  font-weight: 600;
}

.compare thead th {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Admin ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

@media (min-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  padding: var(--s-4);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
  margin-top: 4px;
}

.stat small {
  color: var(--muted);
}

.admin-wide {
  margin-top: var(--s-5);
}

.admin-wide .muted {
  margin-top: var(--s-1);
}

@media (min-width: 900px) {
  .sg-grid.admin-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Styleguide ---------- */

.sg-theme {
  padding: var(--s-6) 0;
  background: var(--bg);
  color: var(--text);
}

.sg-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-4);
}

.sg-swatch {
  width: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 12px;
  background: var(--surface);
}

.sg-swatch i {
  display: block;
  height: 56px;
}

.sg-swatch span {
  display: block;
  padding: 6px 8px;
}

.sg-grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

@media (min-width: 900px) {
  .sg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 404 */
.notfound {
  text-align: center;
  padding-block: var(--s-8);
  display: grid;
  gap: var(--s-4);
  justify-items: center;
}

.notfound .gen-card {
  width: 100%;
  max-width: 520px;
  text-align: left;
}

.packs-trust {
  margin-top: var(--s-5);
}

.h3 {
  font-size: 22px;
  line-height: 1.25;
}

.sw-bg i { background: var(--bg); }
.sw-surface i { background: var(--surface); }
.sw-text i { background: var(--text); }
.sw-muted i { background: var(--muted); }
.sw-accent i { background: var(--accent); }
.sw-accent-2 i { background: var(--accent-2); }
.sw-highlight i { background: var(--highlight); }

.sg-theme + .sg-theme {
  border-top: 1px solid var(--border);
}

.photo-item .thumb.is-failed {
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
}

@media (max-width: 767px) {
  body.has-sticky-cta .toast-region {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

.hero-decor {
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}

.season-halloween .eyebrow {
  color: #FF7A1A;
}

.season-christmas .eyebrow {
  color: #C8102E;
}

/* ---------- Template landing pages ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.crumbs a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.tpl-example {
  display: grid;
  gap: var(--s-2);
}

.tpl-example img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.tpl-example figcaption {
  font-size: 13px;
  color: var(--muted);
}

.style-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.style-links a {
  font-size: 14px;
  text-decoration: none;
}

/* The everyday SharperAI studio. */
.illustrative-comparison .ba-before { filter: blur(4px) saturate(.72) contrast(.86); transform: scale(1.025); }
.illustrative-note { margin-top: 18px; font-size: 11px; line-height: 20px; }

/* Studio layer: the ERX Connect look (pill header, pill buttons, big type, dark pricing band)
   on top of the base components. Sections on another surface (.band, .is-popular) only
   re-point the tokens, so every component inside adapts on its own. */

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

h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.prose h1,
.page-head h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
}

.prose h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9rem);
  letter-spacing: -0.03em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  line-height: 1.55;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Buttons: pills; core primary is ink, seasonal themes keep their accent ---------- */

.btn,
.btn-lg {
  border-radius: var(--radius-pill);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

[data-theme="core"] .btn-primary,
.band .btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

[data-theme="core"] .btn-primary:hover:not(:disabled),
.band .btn-primary:hover:not(:disabled) {
  background: var(--text);
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--text) 60%, transparent);
}

.btn-accent,
[data-theme="core"] .btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent);
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.accent-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
}

/* ---------- Cards ---------- */

[data-theme="core"] .card {
  box-shadow: none;
}

.card,
.pack,
.tool-card {
  border-radius: var(--radius-lg);
}

/* ---------- Header: floating pill ---------- */

.site-header {
  padding: 12px 12px 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  height: 60px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--shadow);
}

.logo {
  font-weight: 800;
  font-size: 20px;
}

.logo b {
  color: inherit;
  font-weight: 800;
}

.header-actions {
  gap: 6px;
}

.credits-pill {
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface-2);
}

.credits-pill .dot {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  width: 16px;
}

.mobile-nav {
  margin: 8px auto 0;
  max-width: var(--container);
  padding: 10px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.mobile-nav a,
.mobile-nav button {
  min-height: 48px;
  font-weight: 600;
}

.mobile-nav a:last-of-type,
.mobile-nav button:last-child {
  border-bottom: 0;
}

.nav-new {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  padding-inline: 6px;
}

@media (min-width: 960px) {
  .nav > a,
  .nav-dropdown > summary {
    min-height: 40px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--muted);
  }

  .nav > a:hover,
  .nav-dropdown > summary:hover,
  .nav > a[aria-current="page"] {
    color: var(--text);
    background: var(--surface-2);
  }

  .nav-dropdown-panel {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
  }
}

@media (min-width: 1120px) {
  .header-cta {
    font-size: 15px;
    border-radius: var(--radius-pill);
  }

  .nav > a,
  .nav-dropdown > summary {
    font-size: 15px !important;
    padding-inline: 14px !important;
  }

  .restore-link,
  .credits-pill {
    font-size: 14px;
  }
}

/* ---------- How it works: outline numbers between hairlines ---------- */

.steps {
  gap: 0;
  border-top: 1px solid var(--border);
}

.steps li,
.steps li.card {
  padding: 28px 0 30px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.steps li::before,
[data-theme="christmas"] .steps li::before {
  content: counter(step, decimal-leading-zero);
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 14px;
  background: none;
  border-radius: 0;
  color: var(--muted);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

@supports (-webkit-text-stroke: 1px black) {
  .steps li::before,
  [data-theme="christmas"] .steps li::before,
  [data-theme="halloween"] .steps li::before {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
  }
}

.steps li h3 {
  font-size: 22px;
}

@media (min-width: 768px) {
  .steps {
    border-bottom: 1px solid var(--border);
  }

  .steps li,
  .steps li.card {
    padding: 32px 28px 36px;
    border-bottom: 0;
  }

  .steps li:first-child {
    padding-left: 0;
  }

  .steps li + li {
    border-left: 1px solid var(--border);
  }
}

/* ---------- FAQ: round plus that turns orange ---------- */

.accordion summary {
  padding: 20px 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.accordion summary::after {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 14px no-repeat;
  transform: none;
  opacity: 1;
  transition: transform 0.25s var(--ease), background-color 0.25s;
}

.accordion summary:hover::after {
  background-color: var(--surface-2);
}

.accordion details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--accent);
  border-color: var(--accent);
}

.accordion .answer a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
  }
}

/* ---------- Dark pricing band ---------- */

.band {
  --bg: #0E0E10;
  --surface: #19191C;
  --surface-2: #232326;
  --text: #F6F5F1;
  --muted: #A8A7A2;
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.34);
  --highlight: #2B1A12;
  --secondary-text: var(--text);
  --secondary-border: var(--border-strong);
  --shadow: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: var(--s-8) 12px 0;
  padding: 72px 0 80px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  color: var(--text);
}

.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%;
  top: -45%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent);
}

@media (prefers-color-scheme: dark) {
  [data-theme="core"] .band {
    --bg: #151517;
    --surface: #1F1F22;
  }
}

.band.band-tight {
  margin-top: 32px;
  padding: 28px 0 40px;
}

@media (min-width: 900px) {
  .band.band-tight {
    padding: 64px 0 72px;
  }
}

.band-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.band-head h2 {
  margin: 0;
}

@media (min-width: 900px) {
  .band {
    padding: 96px 0 104px;
  }

  .band-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
  }
}

.band-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.band-notes span::before {
  content: "\2713";
  margin-right: 8px;
  font-weight: 800;
  color: var(--accent);
}

.band .trust-row {
  color: var(--muted);
}

/* Popular pack: orange card */
[data-theme="core"] .pack.is-popular,
.band .pack.is-popular {
  /* Literal orange: --accent is re-pointed to ink just below. */
  --surface: #FF5B24;
  --bg: #F6F5F1;
  --text: #0E0E10;
  --muted: rgba(14, 14, 16, 0.75);
  --border: rgba(14, 14, 16, 0.22);
  --border-strong: rgba(14, 14, 16, 0.5);
  --accent: #0E0E10;
  --accent-2: #0E0E10;
  --on-accent-2: #FFFFFF;
  background: var(--surface);
  color: var(--text);
  border-color: transparent;
  box-shadow: 0 34px 60px -34px #FF5B24;
}

.pack {
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.pack:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.pack-price {
  font-size: 3.3rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

/* ---------- Closing call to action ---------- */

.final-cta,
[data-theme="core"] .final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-items: start;
  text-align: left;
  padding: clamp(36px, 7vw, 80px);
  border-radius: var(--radius-xl);
}

[data-theme="core"] .final-cta {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

[data-theme="core"] .final-cta p {
  color: var(--muted);
}

[data-theme="core"] .final-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -70%;
  width: 56%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
}

/* ---------- Footer wordmark ---------- */

.footer-col h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.wordmark {
  margin: 48px 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.2rem, 15vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  white-space: nowrap;
  user-select: none;
  color: color-mix(in srgb, var(--text) 9%, transparent);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .wordmark {
    color: transparent;
    background: linear-gradient(180deg, color-mix(in srgb, var(--text) 20%, transparent), color-mix(in srgb, var(--text) 2%, transparent));
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* ---------- Home ---------- */

.home-hero {
  position: relative;
  padding: 40px 0 72px;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 45%;
  height: 620px;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
}

.home-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.home-hero .status-chip {
  margin-bottom: 24px;
}

.home-hero h1 {
  margin-bottom: 24px;
}

.home-hero h1 .dim {
  color: var(--muted);
}

.home-hero .lead {
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 560px;
  margin-top: 40px;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
}

.facts li {
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.facts strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.demo {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.demo-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.demo-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.demo-tab[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.demo-frame {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.demo-frame .ba-slider {
  border-radius: 24px;
}

.demo-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 16, 0.62);
  color: #FFFFFF;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.demo-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.demo-caption > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 960px) {
  .home-hero {
    padding: 72px 0 104px;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .demo {
    justify-self: end;
  }

  .demo-frame {
    transform: rotate(2.5deg);
  }
}

.section-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

.section-intro h2 {
  margin: 0;
}

@media (min-width: 900px) {
  .section-intro {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
  }
}

.tool-cards {
  display: grid;
  gap: 14px;
}

@media (min-width: 780px) {
  .tool-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tool-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.tool-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.tool-tile-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 10px 10px 0;
  border-radius: 20px;
  background: var(--surface-2);
}

.tool-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.tool-tile:hover .tool-tile-media img {
  transform: scale(1.04);
}

.tool-tile-num {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 16, 0.62);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tool-tile-body {
  display: grid;
  gap: 8px;
  padding: 22px 24px 26px;
}

.tool-tile-body h3 {
  font-size: 24px;
  line-height: 1.15;
}

.tool-tile-body p {
  color: var(--muted);
}

.tool-tile-link {
  margin-top: 8px;
  font-weight: 650;
}

.tool-tile-link::after {
  content: " \2197";
  color: var(--accent);
}

.illustrative-line {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.studio-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.studio-grid .steps {
  margin-top: 32px;
}

@media (min-width: 768px) {
  .studio-grid .steps {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .studio-grid .steps li,
  .studio-grid .steps li.card {
    padding: 24px 0 26px;
    border-bottom: 1px solid var(--border);
  }

  .studio-grid .steps li + li {
    border-left: 0;
  }
}

@media (min-width: 1000px) {
  .studio-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }

  .studio-grid .steps li {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 16px;
  }

  .studio-grid .steps li::before {
    grid-row: 1 / 3;
    margin: 0;
  }
}

.studio-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.studio-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-panel-foot {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.privacy-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .facts {
    gap: 12px;
  }

  .facts li {
    font-size: 12px;
  }

  .demo-caption > span:last-child {
    display: none;
  }

  .studio-panel {
    padding: 16px;
  }
}
