/* HeyAIHeadshot — shared site styles (design tokens, header, footer, headshot component) */

:root {
  --bg: oklch(0.975 0.012 85);
  --bg-glass: oklch(0.975 0.012 85 / 0.94);
  --surface: oklch(0.995 0.004 85);
  --surface-2: oklch(0.95 0.015 85);
  --surface-3: oklch(0.93 0.02 85);
  --line: oklch(0.9 0.015 85);
  --line-soft: oklch(0.92 0.012 85);
  --line-faint: oklch(0.94 0.012 85);
  --line-strong: oklch(0.85 0.015 85);

  --ink: oklch(0.2 0.02 60);
  --ink-hover: oklch(0.34 0.03 50);
  --ink-2: oklch(0.4 0.02 60);
  --ink-3: oklch(0.42 0.02 60);
  --ink-4: oklch(0.45 0.02 60);
  --ink-5: oklch(0.5 0.02 60);
  --on-dark: oklch(0.975 0.012 85);

  --accent: oklch(0.68 0.17 35);
  --accent-hover: oklch(0.55 0.17 35);
  --yellow: oklch(0.87 0.14 90);
  --yellow-soft: oklch(0.95 0.05 90);

  --lavender: oklch(0.92 0.045 300);
  --lavender-ink: oklch(0.36 0.04 300);
  --lavender-ink-2: oklch(0.38 0.04 300);
  --sand: oklch(0.93 0.07 90);
  --sand-ink: oklch(0.36 0.04 80);
  --sky: oklch(0.92 0.045 235);
  --sky-ink: oklch(0.36 0.04 235);
  --mint: oklch(0.92 0.05 165);
  --mint-ink: oklch(0.34 0.03 165);

  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-card: 0 24px 60px -16px rgba(60, 40, 20, .28);
  --shadow-menu: 0 30px 60px -30px rgba(60, 40, 20, .3);
  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* Page wrapper: cqw units in child rules resolve against this container */
.page {
  container-type: inline-size;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: 1360px; margin: 0 auto; padding-left: clamp(16px, 3cqw, 32px); padding-right: clamp(16px, 3cqw, 32px); }

/* Visually hidden helper */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; text-decoration: none; font-weight: 700; color: inherit;
  cursor: pointer; border: 0; background: transparent;
}
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-hover); color: var(--on-dark); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-outline { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-outline:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------------- Site header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { position: relative; }
.site-header__bar {
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(16px, 3cqw, 32px);
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(12px, 2.4cqw, 32px);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: url(/assets/logo-128.webp) center / cover no-repeat; flex: none; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }

.nav { display: none; align-items: center; gap: 2px; flex: 1; }
.nav__item {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: 15px; font-weight: 600; color: inherit; text-decoration: none; cursor: pointer;
}
.nav__item.is-current { background: var(--yellow-soft); }
.nav__item:hover, .nav__item.is-open { background: var(--surface-3); color: var(--ink); }
.nav__chev { width: 6px; height: 6px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav__badge { padding: 2px 7px; border-radius: 99px; background: var(--yellow); font-size: 11px; font-weight: 800; }

.header-actions { display: none; flex: none; align-items: center; gap: 8px; white-space: nowrap; }
.header-actions .btn { height: 42px; padding: 0 16px; font-size: 15px; font-weight: 600; }
.header-actions .btn-dark { padding: 0 18px; font-weight: 700; }

.header-mobile { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-mobile .btn-dark { height: 40px; padding: 0 14px; font-size: 14px; }
.burger {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; color: inherit;
}
.burger span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1080px) {
  .nav, .header-actions { display: flex; }
  .header-mobile { display: none; }
}

/* Mega menu (desktop) */
.mega {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--surface); border-bottom: 1px solid var(--line-soft); box-shadow: var(--shadow-menu);
}
.mega.is-open { display: block; }
.mega__inner {
  max-width: 1360px; margin: 0 auto;
  padding: 28px clamp(16px, 3cqw, 32px) 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px;
}
.mega__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-5); margin-bottom: 14px; }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.mega__item {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px;
  background: transparent; text-decoration: none; color: var(--ink);
}
.mega__item.is-current { background: var(--yellow-soft); }
.mega__item:hover { background: var(--surface-2); color: var(--ink); }
.mega__thumb { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
.mega__thumb::before { content: ""; position: absolute; left: 50%; top: 9px; width: 15px; height: 15px; border-radius: 50%; transform: translateX(-50%); background: rgba(50, 30, 10, .2); }
.mega__thumb::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 32px; height: 18px; border-radius: 999px 999px 0 0; transform: translateX(-50%); background: rgba(50, 30, 10, .2); }
.mega__thumb.has-img::before, .mega__thumb.has-img::after { display: none; }
.mega__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mega__text { display: flex; flex-direction: column; gap: 3px; }
.mega__title { font-size: 15px; font-weight: 700; }
.mega__desc { font-size: 13.5px; line-height: 1.4; color: var(--ink-4); }
.mega__feature {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px;
  background: var(--yellow-soft); text-decoration: none; color: var(--ink);
}
.mega__feature:hover { color: var(--ink); }
.mega__feature-img { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.mega__feature-img::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 8px, transparent 8px 16px); }
.mega__feature-img span { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .88); font-family: var(--mono); font-size: 11px; }
.mega__feature-title { font-size: 16px; font-weight: 800; }
.mega__feature-desc { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }

/* Mobile menu */
.mob {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--surface); border-bottom: 1px solid var(--line-soft); box-shadow: var(--shadow-menu);
  padding: 8px 16px 24px; flex-direction: column; gap: 4px;
}
.mob.is-open { display: flex; }
@media (min-width: 1080px) { .mob.is-open { display: none; } }
.mob__label { padding: 14px 4px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-5); }
.mob__link { display: flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-faint); }
.mob__link:hover { color: var(--ink); }
.mob__top { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mob__top:first-of-type { margin-top: 8px; }
.mob__login {
  display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 8px;
  border-radius: 12px; border: 1.5px solid var(--line-strong); font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none;
}

/* ---------------- Headshot placeholder component ---------------- */
.headshot {
  position: relative; width: 100%;
  aspect-ratio: var(--hs-ratio, 4 / 5);
  border-radius: var(--hs-radius, 18px);
  overflow: hidden;
  background: var(--hs-bg, oklch(0.84 0.11 35));
  --hs-fg: rgba(50, 30, 10, .18);
}
.headshot.is-dark { --hs-fg: rgba(255, 255, 255, .22); }
.headshot__stripes { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 8px, transparent 8px 16px); }
.headshot__head { position: absolute; left: 50%; top: 22%; width: 36%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: var(--hs-fg); }
.headshot__body { position: absolute; left: 50%; bottom: -10%; width: 80%; height: 42%; border-radius: 999px 999px 0 0; transform: translateX(-50%); background: var(--hs-shirt, var(--hs-fg)); }
.headshot.is-wide .headshot__head { top: 30%; width: 22%; }
.headshot.is-wide .headshot__body { width: 50%; }
.headshot__label {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px);
  padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .88);
  font-family: var(--mono); font-size: 10.5px; line-height: 1.3; color: oklch(0.3 0.02 60);
}
.headshot__tag {
  position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 99px;
  background: var(--surface); font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--ink);
}

/* ---------------- Site footer ---------------- */
.cta-band { padding: clamp(64px, 8cqw, 112px) clamp(10px, 1.6cqw, 24px) 0; }
.cta-band__card {
  max-width: 1400px; margin: 0 auto;
  border-radius: clamp(22px, 2.6cqw, 36px);
  background: var(--accent);
  padding: clamp(40px, 6cqw, 80px) clamp(20px, 4cqw, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.cta-band__title { margin: 0; max-width: 760px; font-size: clamp(32px, 4.4cqw, 60px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.cta-band__btn { height: 56px; padding: 0 30px; border-radius: 14px; font-size: 17px; font-weight: 800; }

.site-footer { max-width: 1360px; margin: 0 auto; padding: clamp(56px, 6cqw, 80px) clamp(16px, 3cqw, 32px) 40px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__tagline { font-size: 14px; line-height: 1.5; color: var(--ink-5); }
.site-footer__heading { font-weight: 800; margin-bottom: 4px; }
.site-footer__heading--spaced { margin: 14px 0 4px; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--accent-hover); }
.social { display: flex; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.social__link {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); transition: background .15s ease, box-shadow .15s ease;
}
.social__link:hover { background: var(--yellow-soft); box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }
.social__link svg { width: 20px; height: 20px; }
.site-footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-5); }


/* ---------------- Tool Promo component ---------------- */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  padding: clamp(22px, 3cqw, 32px); border-radius: 24px;
  background: var(--promo-tint, var(--sand)); color: var(--ink);
}
.promo--mint { --promo-tint: var(--mint); }
.promo--sky { --promo-tint: var(--sky); }
.promo--lavender { --promo-tint: var(--lavender); }
.promo__art { display: flex; flex: none; }
.promo__card {
  position: relative; width: 56px; height: 70px; border-radius: 14px; overflow: hidden;
  border: 3px solid var(--surface);
}
.promo__card:first-child { background: oklch(0.80 0.01 260); transform: rotate(-6deg); }
.promo__card:last-child { background: oklch(0.84 0.11 235); margin-left: -14px; transform: rotate(6deg); }
.promo__card::before { content: ""; position: absolute; left: 50%; top: 22%; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgba(50, 30, 10, .2); }
.promo__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.promo__title { font-size: clamp(20px, 2cqw, 24px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.promo__body { font-size: 16px; line-height: 1.5; color: oklch(0.32 0.02 60); }
.promo__btn { flex: none; height: 50px; padding: 0 22px; border-radius: 14px; font-size: 16px; font-weight: 800; }

/* ---------------- Upload Card component (interactive demo) ---------------- */
.upload-card {
  color: var(--ink); background: var(--surface); border-radius: 24px;
  padding: clamp(12px, 1.4cqw, 18px);
  box-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 24px 60px -16px rgba(60, 40, 20, .28);
  text-align: left;
}
.upload-drop {
  border: 2px dashed oklch(0.82 0.05 60); border-radius: 16px;
  padding: clamp(24px, 3cqw, 36px) 18px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  background: oklch(0.975 0.016 70);
}
.upload-drop.is-over { border-color: var(--ink); background: var(--yellow-soft); }
.upload-stack { display: flex; }
.upload-stack span {
  position: relative; width: 46px; height: 58px; border-radius: 12px; overflow: hidden;
  border: 3px solid var(--surface);
}
.upload-stack span::before { content: ""; position: absolute; left: 50%; top: 22%; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgba(50, 30, 10, .2); }
.upload-stack span:nth-child(1) { background: oklch(0.84 0.11 35); transform: rotate(-8deg); }
.upload-stack span:nth-child(2) { background: var(--yellow); margin-left: -10px; z-index: 1; }
.upload-stack span:nth-child(3) { background: oklch(0.84 0.11 235); margin-left: -10px; transform: rotate(8deg); }
.upload-drop__btn {
  height: 54px; padding: 0 30px; border: 0; border-radius: 14px;
  background: var(--ink); color: var(--on-dark); font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(60, 40, 20, .5);
}
.upload-drop__btn:hover { background: var(--ink-hover); }
.upload-drop__hint { font-size: 14px; color: oklch(0.48 0.02 60); }

.upload-step { padding: clamp(8px, 1.4cqw, 16px); display: flex; flex-direction: column; gap: 18px; }
.upload-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.upload-h { font-size: 16px; font-weight: 800; }
.upload-h small { font-weight: 500; color: oklch(0.48 0.02 60); font-size: inherit; }
.upload-link { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 0; }
.upload-selfies { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.upload-selfies span { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.upload-selfies span::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .18) 0 5px, transparent 5px 10px); }
.upload-selfies span::after { content: ""; position: absolute; left: 50%; top: 20%; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgba(50, 30, 10, .2); }
.upload-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.style-chip {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: inherit; cursor: pointer;
}
.style-chip[aria-pressed="true"] { background: oklch(0.95 0.06 90); border-color: var(--ink); }
.style-chip__dot { width: 28px; height: 28px; border-radius: 50%; }
.style-chip__mark { font-weight: 800; color: var(--accent-hover); }
.upload-generate { height: 52px; border: 0; border-radius: 14px; background: var(--ink); color: var(--on-dark); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.upload-generate:hover { background: var(--ink-hover); }

.upload-progress { padding: clamp(24px, 3cqw, 40px) clamp(12px, 2cqw, 24px); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.upload-progress__title { font-size: 18px; font-weight: 800; }
.upload-bar { width: 100%; max-width: 440px; height: 10px; border-radius: 99px; background: oklch(0.94 0.015 85); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .07s linear; }
.upload-progress__hint { font-size: 14px; color: oklch(0.48 0.02 60); }

.upload-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.upload-result { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; }
.upload-result::before { content: ""; position: absolute; left: 50%; top: 22%; width: 36%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: var(--fg); }
.upload-result::after { content: ""; position: absolute; left: 50%; bottom: -10%; width: 80%; height: 42%; border-radius: 999px 999px 0 0; transform: translateX(-50%); background: var(--fg); }
.upload-result__lock { position: absolute; inset: 0; z-index: 1; background: rgba(250, 245, 235, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; text-align: center; padding: 6px; }
.upload-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-actions .btn { flex: 1 1 180px; height: 50px; border-radius: 14px; font-size: 15px; }
.upload-actions .btn-outline { font-weight: 700; }
.upload-actions .btn-dark { font-weight: 800; }

.upload-bgedit { padding: clamp(6px, 1cqw, 12px); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.upload-preview { position: relative; flex: 1 1 180px; max-width: 240px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; transition: background .3s; }
.upload-preview::before { content: ""; position: absolute; left: 50%; top: 22%; width: 36%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: oklch(0.5 0.03 40); }
.upload-preview::after { content: ""; position: absolute; left: 50%; bottom: -10%; width: 80%; height: 42%; border-radius: 999px 999px 0 0; transform: translateX(-50%); background: oklch(0.36 0.04 260); }
.upload-bgedit__panel { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatches--on-dark .swatch { width: 44px; height: 44px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.swatches--on-dark .swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--yellow); }
.upload-bgname { font-size: 14px; color: var(--ink-4); }
.upload-bgedit .upload-actions .btn { flex: 1 1 120px; height: 48px; }

/* ---------------- Shared page patterns ---------------- */
.section { max-width: 1360px; margin: 0 auto; padding: clamp(64px, 8cqw, 112px) clamp(16px, 3cqw, 32px) 0; }
.h2 { margin: 0; font-size: clamp(28px, 3.4cqw, 46px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.lede { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-4); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 42px; padding: 0 16px; border: 0; border-radius: 99px;
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--ink); }
/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; }
.step__n { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.step__t { margin: 6px 0 0; font-size: 20px; font-weight: 800; }
.step__p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.step--lavender { background: var(--lavender); } .step--lavender .step__p { color: var(--lavender-ink); }
.step--sand { background: var(--sand); } .step--sand .step__p { color: var(--sand-ink); }
.step--sky { background: var(--sky); } .step--sky .step__p { color: var(--sky-ink); }
.step--mint { background: var(--mint); } .step--mint .step__p { color: var(--mint-ink); }
/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 6cqw, 96px); }
.faq__title { flex: 1 1 300px; }
.faq__list { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; font-size: 18px; font-weight: 700;
}
.faq__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400;
  transition: transform .2s ease;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { margin: 0 48px 22px 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
/* Keep reading */
.more__title { margin: 0 0 20px; font-size: clamp(22px, 2.2cqw, 28px); font-weight: 850; letter-spacing: -0.02em; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.more__card {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink);
  transition: box-shadow .15s ease;
}
.more__card:hover { box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }
.more__thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; }
.more__text { display: flex; flex-direction: column; gap: 2px; }
.more__kind { font-size: 12px; font-weight: 700; color: var(--ink-5); }
.more__name { font-size: 16px; font-weight: 800; }

/* ---------------- Generated imagery ---------------- */
.headshot__img, .cover__img, .shot__img, .float img, .cat__avatar img, .promo__card img, .upload-stack span img, .upload-selfies span img, .upload-result img, .upload-preview img, .mega__feature-img img, .style__img, .bgc__shot img, .guide__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block;
}
.mega__feature-img img { object-position: center 12%; }
.cover-grid img, .cat__avatar img, .upload-selfies span img { object-position: center 22%; }
.cover__img, .shot__img, .bgc__shot img { object-position: center center; }
.headshot.has-img .headshot__stripes, .headshot.has-img .headshot__head, .headshot.has-img .headshot__body, .headshot.has-img .headshot__label { display: none; }
.headshot__tag, .headshot__label { z-index: 1; }
.cover__img, .shot__img { position: absolute; }
.promo__card.has-img::before, .cat__avatar.has-img::before, .cat__avatar.has-img::after, .float.has-img::before, .float.has-img::after,
.upload-stack span.has-img::before, .upload-selfies span.has-img::before, .upload-selfies span.has-img::after,
.upload-result.has-img::before, .upload-result.has-img::after, .upload-preview.has-img::before, .upload-preview.has-img::after,
.mega__feature-img.has-img::before, .style__art.has-img::before, .bgc__shot.has-img::before, .guide__cover.has-img::before { display: none; }
.mega__feature-img.has-img > span:not(.sr-only) { display: none; }
.upload-result__lock { z-index: 2; }
.upload-result.has-img { background: var(--surface-2); }
.cover-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cover-grid img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- Motion system ----------------
   Principles: short (≤.7s), small distances (≤18px), one easing, never blocks input.
   Everything below is progressive enhancement:
   - html.js is set by a tiny inline script only when IntersectionObserver exists and the
     user has NOT asked for reduced motion; site.js confirms it loaded (window.BS) or the
     class is removed again, so content can never stay hidden.
   - Scroll reveals remove their attribute after finishing, so hover transforms keep working. */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: .16s;
  --dur: .26s;
  --dur-slow: .65s;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

/* Keyboard focus ring (mouse clicks don't show it) */
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Shared transitions for interactive elements */
.btn, .nav__item, .mega__item, .mega__thumb, .mega__feature, .mob__link, .burger,
.chip, .tab, .style-chip, .swatch, .upload-drop, .upload-drop__btn, .upload-generate, .upload-link,
.cat__avatar, .more__card, .plan, .guide__cover, .style__art, .faq__icon, .faq__q,
.site-footer__col a, .arrow-link, .team-banner__link, .crumbs a {
  transition:
    background-color var(--dur) ease,
    color var(--dur) ease,
    border-color var(--dur) ease,
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    opacity var(--dur) ease;
}

/* Buttons: 1px lift on hover, gentle press on click */
.btn-dark:hover, .upload-drop__btn:hover, .upload-generate:hover, .cta-band__btn:hover, .bgc__btn:hover {
  transform: translateY(-1px);
}
.btn-dark:hover, .cta-band__btn:hover { box-shadow: 0 12px 24px -14px rgba(60, 40, 20, .55); }
.btn:active, .upload-drop__btn:active, .upload-generate:active, .tab:active, .chip:active, .style-chip:active, .nav__item:active {
  transform: translateY(0) scale(.98);
  transition-duration: var(--dur-fast);
}

/* Cards and thumbnails */
.more__card:hover { transform: translateY(-2px); }
.plan:hover { transform: translateY(-3px); box-shadow: 0 28px 48px -32px rgba(60, 40, 20, .4); }
.guide:hover .guide__cover { transform: translateY(-4px); box-shadow: 0 20px 36px -22px rgba(60, 40, 20, .45); }
.style:hover .style__art { box-shadow: 0 20px 36px -22px rgba(60, 40, 20, .45); }
.cat:hover .cat__avatar { transform: translateY(-3px); box-shadow: 0 0 0 4px #fff, 0 12px 20px -12px rgba(60, 40, 20, .5); }
.mega__item:hover .mega__thumb { transform: scale(1.06); }
.swatch:hover { transform: scale(1.08); }
.swatch:active { transform: scale(.94); }

/* Text links: underline grows in from the left */
.arrow-link, .team-banner__link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px;
  transition: background-size .3s var(--ease-out), color var(--dur) ease;
}
.arrow-link:hover, .team-banner__link:hover { background-size: 100% 1.5px; }

/* Header: shadow appears once the page has scrolled (toggled by site.js) */
.site-header { transition: box-shadow var(--dur) ease; }
.site-header.is-scrolled { box-shadow: 0 12px 32px -24px rgba(60, 40, 20, .4); }

/* Menus fade and settle into place */
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega.is-open, .mob.is-open { animation: menu-in .22s var(--ease-out) backwards; }

/* FAQ answers fade in; question highlights on hover */
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq__item[open] .faq__a { animation: fade-down .3s var(--ease-out) backwards; }
.faq__q:hover { color: var(--accent-hover); }
.faq__q:hover .faq__icon { background: var(--yellow-soft); color: var(--ink); }

/* Upload Card: each step slides in when the step changes (class set by site.js) */
@keyframes rise-soft { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.upload-card .is-entering { animation: rise-soft .35s var(--ease-out) backwards; }

/* Hero: staggered entrance on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .hero__copy > *, .js .g-hero > * { animation: rise .7s var(--ease-out) backwards; }
.js .hero__copy > :nth-child(2), .js .g-hero > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3), .js .g-hero > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4), .js .g-hero > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(n+5), .js .g-hero > :nth-child(n+5) { animation-delay: .32s; }
.js .hero__upload { animation: rise .8s var(--ease-out) .28s backwards; }
.js .cats { animation: rise .8s var(--ease-out) .42s backwards; }

/* Scroll reveal.
   Pre-hide candidates with zero-specificity :where() so JS can release them with one class. */
.js :where(main .section > *, main .sec > *, main .more-sec > *, .article__promo, .cta-band__card) { opacity: 0; }
.js .is-shown { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js :where(main .section > *, main .sec > *, main .more-sec > *, .article__promo, .cta-band__card), .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .js :where(main .section > *, main .sec > *, main .more-sec > *, .article__promo, .cta-band__card), .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
