/* ============================================================================
   ObsidianMedia — "Heirloom" design system (full rebuild 2026-06-13)
   Warm, premium, gallery-editorial. Token-driven; components reference only
   semantic / back-compat aliases, never raw primitives.
   Type: Newsreader (display serif) · Plus Jakarta Sans (body) · IBM Plex Mono (prices).
   All token pairs verified WCAG AA at spec time.
   ========================================================================== */

:root {
  /* ---- TIER 1 — primitives (only place raw literals live) ---- */
  /* warm porcelain neutral ramp */
  --porcelain-50: #f8f5f0; /* page base */
  --porcelain-100: #f0ebe3; /* soft wash */
  --porcelain-200: #e4dcd0; /* hairline border */
  --porcelain-300: #d2c7b7; /* stronger border */
  --taupe-500: #645a50; /* muted text — AA on porcelain & white */
  --taupe-700: #4a4239; /* deep warm gray */
  --espresso-900: #2a2420; /* near-black warm ink */
  --white: #ffffff;
  /* clay / terracotta accent — CTAs & links only */
  --clay-500: #a84a28; /* primary fill (white text, AA) */
  --clay-600: #8e3d20; /* hover / accent text on light (AA) */
  --clay-700: #74321a; /* deepest */
  --clay-50: #f6ebe4; /* wash */
  --clay-100: #ead7c9; /* soft border */
  /* pine depth — footer / inverted panels */
  --pine-700: #2e4339;
  --pine-900: #20302a;
  /* gold micro-accent — rules, marks, small flourishes (never body text) */
  --gold-500: #c08a3e;
  /* status */
  --green-600: #2f7d49;
  --green-wash: #e9f3ec;
  --green-border: #c3e0cc;
  --info-wash: #eaf0f6;
  --info-border: #c7d9ec;

  /* radii & elevation */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(42, 36, 32, 0.06), 0 2px 6px rgba(42, 36, 32, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(42, 36, 32, 0.2), 0 2px 6px rgba(42, 36, 32, 0.06);
  --shadow-lg: 0 26px 60px -28px rgba(42, 36, 32, 0.42), 0 4px 12px rgba(42, 36, 32, 0.08);

  /* type families — ≤2 + mono */
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* fluid type scale */
  --fs-hero: clamp(2.6rem, 5.6vw, 4.4rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.6vw, 1.35rem);
  --fs-lede: clamp(1.08rem, 1.5vw, 1.22rem);

  /* spacing rhythm */
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);

  /* ---- TIER 2 — semantic aliases ---- */
  --color-surface: var(--porcelain-50);
  --color-card: var(--white);
  --color-text: var(--espresso-900);
  --color-text-muted: var(--taupe-500);
  --color-border: var(--porcelain-200);
  --color-border-strong: var(--porcelain-300);
  --color-wash: var(--porcelain-100);
  --color-accent: var(--clay-500);
  --color-accent-hover: var(--clay-600);
  --color-accent-text: var(--clay-600);
  --color-accent-wash: var(--clay-50);
  --color-accent-border: var(--clay-100);
  --color-invert-surface: var(--pine-900);

  /* ---- back-compat aliases (legacy var names used across components) ---- */
  --ink: var(--color-text);
  --paper: var(--color-surface);
  --card: var(--color-card);
  --accent: var(--color-accent);
  --accent-hover: var(--color-accent-hover);
  --accent-dark: var(--color-accent-text);
  --slate: var(--color-text-muted);
  --line: var(--color-border);
  --wash: var(--color-accent-wash);
  --cyan: var(--gold-500); /* legacy logo-dot hooks remapped to new palette */
  --yellow: var(--gold-500);
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}
::selection {
  background: var(--clay-100);
  color: var(--espresso-900);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 500;
}

/* shared eyebrow label */
.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1.5px;
  background: var(--gold-500);
}

/* shared buttons */
.btn-primary,
.order-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.92rem 1.5rem;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
.order-btn:hover,
.mini-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active,
.order-btn:active {
  transform: translateY(0);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  transition: all 0.16s ease;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--porcelain-50) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.cmyk {
  display: inline-flex;
  gap: 4px;
}
.cmyk i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.cmyk i:nth-child(1) {
  background: var(--clay-500);
}
.cmyk i:nth-child(2) {
  background: var(--gold-500);
}
.cmyk i:nth-child(3) {
  background: var(--pine-700);
}
.cmyk i:nth-child(4) {
  background: var(--espresso-900);
}
.back {
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--slate);
  transition: color 0.15s;
}
.back:hover {
  color: var(--ink);
}
.nav-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- hero ---------- */
.hero {
  padding: var(--section-y) 0 calc(var(--section-y) * 0.72);
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy {
  max-width: 38rem;
}
h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
}
h1 .accent {
  color: var(--color-accent-text);
  font-style: italic;
  font-weight: 400;
}
.lede {
  margin-top: 22px;
  font-size: var(--fs-lede);
  line-height: 1.62;
  color: var(--taupe-700);
  max-width: 54ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  align-items: center;
}
.hero-cta .muted {
  font-size: 0.86rem;
  color: var(--slate);
}

/* hero portrait cluster — definite-height grid + object-fit:cover → uniform tiles */
.hero-art {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 5/4;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}
.hero-art .hframe {
  position: relative;
  background: var(--white);
  padding: 9px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 0;
  min-width: 0;
}
.hero-art .hframe img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.hero-art .hframe--lead {
  grid-row: 1 / span 2;
}
.hero-art .hframe--top {
  grid-column: 2;
  grid-row: 1;
}
.hero-art .hframe--bottom {
  grid-column: 2;
  grid-row: 2;
}

/* ---------- trust row ---------- */
.trust {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card);
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 28px;
  padding: 26px var(--gutter);
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--taupe-700);
  line-height: 1.35;
}
.trust-item .ti-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--clay-50);
  color: var(--color-accent-text);
}
.trust-item svg {
  width: 19px;
  height: 19px;
}

/* ---------- section heading helper ---------- */
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 {
  font-size: var(--fs-h2);
}
.section-head p {
  margin-top: 12px;
  color: var(--slate);
  font-size: 1.02rem;
}

/* ---------- studio layout ---------- */
.studio {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 30px;
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0 var(--section-y);
}

/* preview wall */
.preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-md);
}
.wall {
  background: radial-gradient(
    120% 100% at 50% 0%,
    var(--porcelain-100) 0%,
    var(--porcelain-200) 100%
  );
  padding: 52px 34px 0;
  display: grid;
  place-items: end center;
  min-height: 400px;
  position: relative;
}
.wall::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: linear-gradient(180deg, var(--porcelain-200), var(--porcelain-300));
}
.frame {
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 11px;
  transition:
    width 0.28s ease,
    height 0.28s ease;
  margin-bottom: 30px;
}
.frame.canvas-wrap {
  padding: 0;
  background: none;
}
.frame img,
.frame .ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--clay-50);
}
.frame .ph {
  display: grid;
  place-items: center;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px;
  line-height: 1.6;
}
/* corner ticks — subtle gallery framing */
.frame::before,
.frame::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.frame::before {
  top: -11px;
  left: -11px;
  border-top: 1.5px solid var(--gold-500);
  border-left: 1.5px solid var(--gold-500);
}
.frame::after {
  bottom: -11px;
  right: -11px;
  border-bottom: 1.5px solid var(--gold-500);
  border-right: 1.5px solid var(--gold-500);
}
.preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--slate);
  flex-wrap: wrap;
}
.preview-meta b {
  color: var(--ink);
}

/* configurator */
.config {
  display: grid;
  gap: 18px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--espresso-900);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  flex: none;
  font-family: var(--body);
}

/* upload */
.drop {
  border: 2px dashed var(--clay-100);
  border-radius: var(--radius-sm);
  background: var(--clay-50);
  padding: 30px 18px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  display: block;
}
.drop:hover,
.drop.drag {
  border-color: var(--accent);
  background: #f4e1d4;
}
.drop .big {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}
.drop .small {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 5px;
}
.drop input {
  display: none;
}
.file-row {
  display: none;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--slate);
}
.file-row.show {
  display: flex;
}
.file-row button {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.76rem;
  font-family: var(--mono);
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.14s;
}
.chip:hover {
  border-color: var(--color-border-strong);
  background: var(--color-wash);
}
.chip[aria-pressed='true'] {
  background: var(--espresso-900);
  border-color: var(--espresso-900);
  color: #fff;
}

textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 0.7rem 0.8rem;
  font-family: var(--body);
  font-size: 0.92rem;
  resize: vertical;
  min-height: 66px;
  color: var(--ink);
  background: #fff;
}
textarea::placeholder {
  color: #6f6457;
}

/* size grid */
.size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.size {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  background: #fff;
  padding: 12px 6px;
  text-align: center;
  transition: all 0.14s;
}
.size:hover {
  border-color: var(--color-border-strong);
}
.size[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--wash);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.size .dim {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.86rem;
}
.size .price {
  font-size: 0.74rem;
  color: var(--slate);
  margin-top: 3px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-row label,
.qty-label {
  font-size: 0.86rem;
  font-weight: 600;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  transition: border-color 0.14s;
}
.qty-btn:hover {
  border-color: var(--ink);
}
#qtyVal {
  font-family: var(--mono);
  font-weight: 600;
  min-width: 26px;
  text-align: center;
}
.qty-note {
  font-size: 0.75rem;
  color: var(--slate);
  margin-left: auto;
}

/* total (inverted pine panel) */
.total-panel {
  background: var(--color-invert-surface);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
}
.total-panel h2 {
  color: #fff;
}
.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #c9d6ce;
  padding: 4px 0;
}
.total-line.grand {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 12px;
  padding-top: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  align-items: baseline;
}
.total-line.grand b {
  font-family: var(--mono);
  font-size: 1.55rem;
  color: #fff;
}
.total-panel .order-btn {
  margin-top: 18px;
  width: 100%;
  background: var(--clay-500);
}
.total-panel .order-btn:hover {
  background: var(--clay-600);
}
.order-note {
  margin-top: 12px;
  font-size: 0.74rem;
  color: #b6c4bb;
  text-align: center;
}

/* order button full-width inside flow panels */
.panel .order-btn {
  margin-top: 16px;
  width: 100%;
}

/* confirmation */
#confirm {
  display: none;
  margin: 0 0 var(--section-y);
}
#confirm.show {
  display: block;
  animation: rise 0.4s ease;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.confirm-card {
  background: var(--card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 640px;
  box-shadow: var(--shadow-md);
}
.confirm-card h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.confirm-card .sub {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.confirm-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 20px;
  font-size: 0.92rem;
}
.confirm-card dt {
  color: var(--slate);
}
.confirm-card dd {
  font-family: var(--mono);
  font-weight: 500;
}

/* ---------- how-it-works strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  padding: var(--section-y) 0;
  background: var(--color-card);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.strip-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.strip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.strip-card .shot-img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--color-wash);
}
.strip-card .strip-body {
  padding: 24px;
}
.strip-card h3 {
  font-size: 1.28rem;
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.strip-card h3::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold-500);
  font-weight: 600;
}
.strip-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- subpages (legal, FAQ, about) ---------- */
.page {
  padding: var(--section-y) 0;
  max-width: 780px;
}
.page .eyebrow {
  margin-bottom: 14px;
}
.page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}
.page .updated {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--slate);
  margin-bottom: 34px;
}
.page h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 38px 0 12px;
}
.page h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 24px 0 8px;
}
.page p,
.page li {
  font-size: 0.98rem;
  color: var(--taupe-700);
  line-height: 1.7;
}
.page ul,
.page ol {
  padding-left: 1.3rem;
  margin: 10px 0 16px;
  display: grid;
  gap: 7px;
}
.page a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.page a:hover {
  color: var(--clay-700);
}
.page .callout {
  background: var(--clay-50);
  border: 1px solid var(--clay-100);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: 16px 18px;
  font-size: 0.92rem;
  margin: 18px 0;
  color: var(--taupe-700);
}

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.faq-item[open] {
  border-color: var(--color-border-strong);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.96rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--accent-dark);
  font-size: 1.2rem;
  flex: none;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item .a {
  padding: 0 18px 16px;
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--color-invert-surface);
  color: #d7e0da;
  padding: clamp(44px, 6vw, 64px) 0 32px;
  margin-top: 0;
}
footer .logo {
  color: #fff;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
.foot-grid h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}
.foot-grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot-grid a {
  font-size: 0.86rem;
  color: #c9d6ce;
  text-decoration: none;
  transition: color 0.15s;
}
.foot-grid a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot-blurb {
  font-size: 0.86rem;
  color: #b6c4bb;
  max-width: 34ch;
  margin-top: 12px;
  line-height: 1.6;
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #c9d6ce;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
}
.foot-meta a {
  color: #c9d6ce;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy {
    max-width: none;
    order: 1;
  }
  .hero-art {
    order: 2;
    max-width: 500px;
  }
  .trust .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .preview-card {
    position: static;
  }
  .strip-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .size-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust .wrap {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .nav-account {
    max-width: 160px;
    font-size: 0.75rem;
    gap: 6px;
  }
}

/* ============================================================================
   AI portrait studio — interactive states (class/attr hooks app.js depends on)
   ========================================================================== */
[hidden] {
  display: none !important;
}

/* nav account */
.nav-account {
  font-family: var(--body);
  font-size: 0.84rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}
.nav-account #navEmail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account button {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0;
}
.nav-account button:hover {
  color: var(--ink);
}

/* banners */
#banners {
  display: grid;
  gap: 0;
}
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--clay-50);
  border: 1px solid var(--clay-100);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.9rem;
  margin-top: 20px;
  animation: rise 0.3s ease;
  color: var(--taupe-700);
}
.banner.success {
  background: var(--green-wash);
  border-color: var(--green-border);
}
.banner.info {
  background: var(--info-wash);
  border-color: var(--info-border);
}
.banner b {
  margin-right: 2px;
  color: var(--ink);
}
.banner .dismiss {
  margin-left: auto;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 600;
  flex: none;
  padding: 2px 0;
}
.banner .dismiss:hover {
  color: var(--ink);
}

/* toasts */
.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
  max-width: 340px;
}
.toast {
  background: var(--espresso-900);
  color: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: 12px 15px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  animation: rise 0.25s ease;
}
.toast.ok {
  border-left-color: var(--green-600);
}

/* sign-in gate */
.gate {
  padding: clamp(20px, 3vw, 36px) 0 var(--section-y);
}
.gate-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: stretch;
}
.gate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-md);
}
.gate-aside {
  background: var(--color-invert-surface);
  color: #e4ebe6;
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.gate-aside h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 18px;
  color: #fff;
}
.gate-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.gate-aside li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #d7e0da;
}
.gate-aside li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-500);
}
.gate-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 0 0 10px;
  line-height: 1.12;
}
.gate-sub {
  color: var(--slate);
  font-size: 0.94rem;
  line-height: 1.6;
}
.provider-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 22px;
}
.provider-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: var(--radius-xs);
  padding: 0.75rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.14s;
}
.provider-btn:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pdot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: none;
}
.psquares {
  display: grid;
  grid-template-columns: 5px 5px;
  gap: 2px;
  flex: none;
}
.psquares i {
  width: 5px;
  height: 5px;
  display: block;
}
.gate-note {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 18px;
  line-height: 1.55;
}
.gate-note a {
  color: var(--accent-dark);
}
@media (max-width: 760px) {
  .gate-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gate-aside {
    order: 2;
  }
}

/* studio head row */
.studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 20px;
}
.text-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.14s;
}
.text-btn:hover {
  border-color: var(--ink);
}

/* step states */
.step {
  transition: opacity 0.2s;
}
.step.locked {
  opacity: 0.45;
  pointer-events: none;
}
.step.done .step-dot {
  background: var(--accent);
}

/* theme cards */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}
.theme-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  background: #fff;
  padding: 11px;
  text-align: left;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  transition: all 0.14s;
}
.theme-card:hover {
  border-color: var(--color-border-strong);
}
.theme-card[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--wash);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  grid-row: 1 / span 2;
}
.theme-name {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.25;
}
.theme-desc {
  font-size: 0.71rem;
  color: var(--slate);
}

/* upload thumbnails */
.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.thumb-row:empty {
  display: none;
}
.thumb {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-wash);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* generation gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}
.gallery:empty {
  display: none;
}
.shot {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  background: var(--color-wash);
  transition: border-color 0.14s;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot:hover {
  border-color: var(--color-border-strong);
}
.shot[aria-pressed='true'] {
  border-color: var(--accent);
}
.shot[aria-pressed='true']::after {
  content: '\2713';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.shot .tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 36, 32, 0.72);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.58rem;
  padding: 3px 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

/* generation / proof progress */
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--clay-50);
  border: 1px solid var(--clay-100);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.86rem;
  margin-bottom: 12px;
  color: var(--taupe-700);
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--clay-100);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* notes & counters */
.credit-note,
.quota-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--slate);
}
.credit-note b,
.quota-note b {
  color: var(--accent-dark);
}
.wm-note,
.size-note,
.fine-note {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 10px;
}
.fine-note {
  text-align: center;
  margin-top: 8px;
}

/* disabled states */
.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.chip:disabled:hover {
  border-color: var(--line);
  background: #fff;
}
.theme-card:disabled,
.shot:disabled,
.size:disabled,
.qty-btn:disabled,
.text-btn:disabled,
.provider-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.theme-card:disabled:hover,
.size:disabled:hover,
.qty-btn:disabled:hover,
.text-btn:disabled:hover,
.provider-btn:disabled:hover {
  border-color: var(--line);
}
.drop[aria-disabled='true'] {
  cursor: not-allowed;
}
.drop[aria-disabled='true']:hover {
  border-color: var(--clay-100);
  background: var(--clay-50);
}

/* friendly failure notes */
.fail-note {
  font-size: 0.84rem;
  color: var(--accent-dark);
  background: var(--clay-50);
  border: 1px solid var(--clay-100);
  border-radius: var(--radius-xs);
  padding: 11px 13px;
  margin-top: 10px;
}

/* fresh start */
.fresh-box {
  border-top: 1px dashed var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.fresh-toggle {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0;
}
.fresh-toggle:hover {
  color: var(--ink);
}
.fresh-toggle:disabled {
  color: var(--slate);
  opacity: 0.6;
  cursor: not-allowed;
}
.mini-btn {
  font-size: 0.82rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
}
.mini-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 520px) {
  .provider-row {
    grid-template-columns: 1fr;
  }
  .theme-grid {
    grid-template-columns: 1fr;
  }
  .thumb-row,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}
