:root {
  color-scheme: light;
  --ink: #141211;
  --muted: #6d6560;
  --quiet: #928984;
  --paper: #f7f3ef;
  --panel: #fffdfa;
  --line: #ded7d0;
  --rose: #bd1740;
  --teal: #08756c;
  --gold: #bd8428;
  --shadow: 0 20px 60px rgba(34, 28, 24, 0.12);
  --sprite-url: url("/assets/feature-sprites.png");
  --plan-sprite-url: url("/assets/credit-plan-sprites.png");
  --control-sprite-url: url("/assets/studio-control-sprites.png");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(189, 23, 64, 0.08), transparent 32%),
    linear-gradient(240deg, rgba(8, 117, 108, 0.08), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 243, 239, 0.82);
  border-bottom: 1px solid rgba(222, 215, 208, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 26px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 40deg, #bd1740, #e9912b, #f8dc69, #19a394, #2257ca, #bd1740);
  box-shadow: inset 0 0 0 4px #fff;
}

.nav-actions {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  flex-wrap: nowrap;
}

.nav-actions > a,
.nav-actions > .topbar-cta {
  white-space: nowrap;
  flex: 0 0 auto;
}

.topbar-cta {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0 13px;
  box-shadow: 0 10px 24px rgba(20, 18, 17, 0.14);
}

.lang-select {
  min-height: 34px;
  width: auto;
  flex: 0 0 auto;
  border: 1px solid rgba(20, 18, 17, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.86);
  color: var(--ink);
  padding: 0 30px 0 14px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%23141211' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

.lang-select:focus {
  outline: 2px solid rgba(8, 117, 108, 0.24);
  outline-offset: 2px;
}

.studio,
.feature-story,
.pricing,
.results-section {
  padding: 36px clamp(18px, 5vw, 64px) 64px;
}

.feature-story,
.pricing {
  padding-top: 64px;
}

.studio > .studio-copy,
.studio > .studio-grid,
.feature-story > *,
.pricing > *,
.results-section > * {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.studio {
  display: grid;
  gap: 36px;
  padding-top: 36px;
}

.studio-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: none;
}

.studio-copy-text {
  min-width: 0;
}

.eyebrow,
.mini-label {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin: 16px 0 0;
  color: #433d39;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.5;
}

.hero-actions {
  width: min(100%, 900px);
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-bullets {
  width: min(100%, 720px);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 16px;
  color: #2f2a26;
  font-weight: 750;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.hero-bullets li > span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #fff;
  font-size: 12px;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(189, 23, 64, 0.18);
}

.hero-bullets li > span:not([aria-hidden]) {
  flex: 1 1 auto;
  min-width: 0;
}

.section-lede {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.customize {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.6);
  overflow: hidden;
}

.customize > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.customize > summary:hover {
  background: rgba(255, 253, 250, 0.9);
}

.customize-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customize-label strong {
  font-size: 15px;
  line-height: 1.2;
}

.customize-label small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.customize-toggle {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efe8df;
  flex: 0 0 auto;
  transition: transform 200ms ease, background 200ms ease;
}

.customize-toggle::before,
.customize-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
  border-radius: 2px;
}

.customize-toggle::before {
  width: 10px;
  height: 2px;
}

.customize-toggle::after {
  width: 2px;
  height: 10px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.customize[open] .customize-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.customize-body {
  padding: 4px 14px 16px;
  display: grid;
  gap: 12px;
}

.customize-body > .choice-section,
.customize-body > .look-picker {
  margin-top: 0;
}

.plan-cta {
  min-height: 52px;
  border: 1px solid rgba(20, 18, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.82);
  color: var(--ink);
  padding: 8px 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(34, 28, 24, 0.08);
}

.plan-cta.is-pro {
  border-color: rgba(8, 117, 108, 0.24);
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.12), rgba(189, 132, 40, 0.1)),
    rgba(255, 253, 250, 0.9);
}

.plan-cta span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-cta strong {
  font-size: 14px;
  line-height: 1.2;
}

.hero-feature-strip {
  width: min(100%, 900px);
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-feature-strip article {
  border: 1px solid rgba(20, 18, 17, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.78);
  padding: 16px;
}

.hero-feature-strip article:nth-child(2) {
  border-color: rgba(8, 117, 108, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.09), rgba(255, 253, 250, 0.78)),
    #fffdfa;
}

.hero-feature-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.05;
}

.hero-feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-visual {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(20, 18, 17, 0.12);
  border-radius: 20px;
  overflow: hidden;
  background: #fffdfa;
  box-shadow: 0 26px 80px rgba(34, 28, 24, 0.14);
}

.hero-visual img {
  width: 100%;
  display: block;
  height: auto;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  gap: 22px;
  align-items: start;
}

.control-panel,
.mirror-panel,
.price-card,
.status,
.analysis-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: var(--shadow);
}

.control-panel,
.mirror-panel {
  padding: clamp(18px, 2.4vw, 28px);
}

.account-panel {
  margin-bottom: 0;
  border: 1px solid rgba(189, 23, 64, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(189, 23, 64, 0.07), rgba(8, 117, 108, 0.06)),
    #fffdfa;
  padding: 16px;
}

.funnel-stage {
  transition: opacity 180ms ease, transform 220ms ease;
}

.control-panel[data-funnel-step="email"] .selfie-stage,
.control-panel[data-funnel-step="email"] .customize,
.control-panel[data-funnel-step="email"] .outfit-controls,
.control-panel[data-funnel-step="email"] .generate-button,
.control-panel[data-funnel-step="email"] .generation-progress,
.control-panel[data-funnel-step="email"] .privacy-note,
.control-panel[data-funnel-step="inbox"] .customize,
.control-panel[data-funnel-step="inbox"] .outfit-controls,
.control-panel[data-funnel-step="inbox"] .generate-button,
.control-panel[data-funnel-step="inbox"] .generation-progress,
.control-panel[data-funnel-step="inbox"] .privacy-note {
  display: none;
}

.control-panel[data-funnel-step="selfie"] .selfie-stage {
  animation: cardFlipIn 360ms cubic-bezier(.2, .74, .25, 1);
  transform-origin: top center;
}

.account-panel.is-email-ready {
  border-color: rgba(8, 117, 108, 0.24);
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.08), rgba(189, 132, 40, 0.08)),
    #fffdfa;
}

.inbox-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(8, 117, 108, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.1), rgba(189, 132, 40, 0.1)),
    #fffdfa;
  padding: 18px;
  animation: cardFlipIn 360ms cubic-bezier(.2, .74, .25, 1);
}

.inbox-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.08;
}

.inbox-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.start-card {
  overflow: hidden;
}

.start-card-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.start-email-block {
  min-width: 0;
  display: grid;
  align-content: start;
}

.account-panel.is-complete {
  border-color: rgba(8, 117, 108, 0.24);
  box-shadow: inset 0 0 0 1px rgba(8, 117, 108, 0.08);
}

.email-capture {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.email-capture label {
  display: grid;
  gap: 7px;
  color: #403933;
  font-size: 13px;
  font-weight: 900;
}

.email-capture input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 750;
}

.email-capture input:focus {
  outline: 2px solid rgba(8, 117, 108, 0.24);
  outline-offset: 2px;
}

.turnstile-wrap {
  margin-top: 12px;
  min-height: 72px;
}

.account-status {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-status[data-tone="success"] {
  color: var(--teal);
  font-weight: 850;
}

.account-status[data-tone="error"] {
  color: var(--rose);
  font-weight: 850;
}

.panel-head,
.mirror-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-head {
  justify-content: flex-start;
}

.panel-head.compact {
  margin-top: 22px;
}

.panel-head h2,
.mirror-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.1;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.step-dot {
  flex: 0 0 auto;
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.dropzone {
  min-height: 126px;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1.5px dashed #bfb5ad;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.86), rgba(255, 253, 250, 0.44)),
    linear-gradient(135deg, rgba(189, 23, 64, 0.09), rgba(8, 117, 108, 0.1)),
    #faf7f3;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.dropzone:hover {
  border-color: var(--rose);
  transform: translateY(-1px);
  background: #fff;
}

.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-glyph {
  width: 46px;
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0)),
    conic-gradient(from 40deg, #bd1740, #e9912b, #f8dc69, #19a394, #2257ca, #bd1740);
  box-shadow: inset 0 0 0 5px #fff;
}

.dropzone strong {
  font-size: 19px;
}

.dropzone small,
.privacy-note,
.fine-print,
.status,
.analysis-card p,
.result-body p {
  color: var(--muted);
}

.preview-wrap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: #f1ebe4;
  padding: 10px;
}

.preview-wrap img {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.text-button {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rose);
  cursor: pointer;
  font-weight: 900;
}

.image-choice-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.plan-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-switch {
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-option,
.mode-option,
.select-choice {
  position: relative;
  min-width: 0;
  min-height: 118px;
  border: 1px solid rgba(20, 18, 17, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.82);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  grid-template-rows: minmax(74px, 1fr) auto;
  gap: 8px;
  padding: 8px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(34, 28, 24, 0.07);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.mode-option {
  min-height: 132px;
}

.plan-option:hover,
.mode-option:hover,
.select-choice:hover {
  border-color: rgba(20, 18, 17, 0.2);
  box-shadow: 0 18px 42px rgba(34, 28, 24, 0.12);
  transform: translateY(-1px);
}

.image-choice-media {
  display: block;
  width: 100%;
  min-height: 74px;
  border-radius: 12px;
  background-image: var(--control-sprite-url);
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-color: #efe8df;
  box-shadow: inset 0 0 0 1px rgba(20, 18, 17, 0.08);
}

.choice-copy {
  display: grid;
  gap: 3px;
  padding: 0 2px 2px;
}

.choice-copy small {
  color: var(--rose);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.plan-option.is-active,
.mode-option.is-active,
.select-choice.is-active {
  border-color: rgba(8, 117, 108, 0.42);
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.08), rgba(189, 132, 40, 0.07)),
    #fffdfa;
  box-shadow: 0 18px 44px rgba(8, 117, 108, 0.14);
}

.plan-option.is-active::after,
.mode-option.is-active::after,
.select-choice.is-active::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 28%, transparent 30%),
    var(--teal);
  box-shadow: 0 0 0 3px rgba(255, 253, 250, 0.82);
}

.sprite-color-studio {
  background-position: 0% 0%;
}

.sprite-free {
  background-position: 0% 100%;
}

.sprite-work {
  background-position: 33.333% 0%;
}

.sprite-date {
  background-position: 66.666% 0%;
}

.sprite-capsule {
  background-position: 100% 0%;
}

.sprite-quiet {
  background-position: 0% 50%;
}

.sprite-editorial {
  background-position: 33.333% 50%;
}

.sprite-bold {
  background-position: 66.666% 50%;
}

.sprite-natural {
  background-position: 100% 50%;
}

.sprite-basic {
  background-position: 33.333% 100%;
}

.sprite-pro {
  background-position: 66.666% 100%;
}

.sprite-outfit {
  background-position: 100% 100%;
}

.controls {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.select-source {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.controls.single {
  grid-template-columns: 1fr;
}

.controls label {
  display: grid;
  gap: 7px;
  color: #403933;
  font-size: 13px;
  font-weight: 900;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
  color: var(--ink);
  padding: 0 11px;
  font-weight: 750;
}

.choice-section {
  margin-top: 16px;
  border: 1px solid rgba(20, 18, 17, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.56);
  padding: 12px;
}

.choice-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.choice-section-head strong {
  font-size: 14px;
}

.choice-section-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.micro-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.micro-choice-grid .select-choice {
  min-height: 112px;
}

.micro-choice-grid .image-choice-media {
  min-height: 62px;
}

.micro-choice-grid .choice-copy strong {
  font-size: 13px;
}

.micro-choice-grid .choice-copy small {
  font-size: 10px;
}

.outfit-controls {
  margin-top: 14px;
  border: 1px solid rgba(8, 117, 108, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.07), rgba(189, 23, 64, 0.04)),
    #fffdfa;
  padding: 12px;
}

.outfit-style-choices {
  margin-top: 0;
  border-color: rgba(8, 117, 108, 0.13);
  background: rgba(255, 255, 255, 0.54);
}

.outfit-controls .controls {
  margin-top: 0;
}

.outfit-library {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.outfit-dropzone {
  min-height: 118px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed #b9cac5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.outfit-dropzone:hover {
  border-color: var(--teal);
  background: #fff;
  transform: translateY(-1px);
}

.outfit-dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.outfit-dropzone strong,
.outfit-dropzone small {
  grid-column: 2;
}

.outfit-dropzone strong {
  align-self: end;
}

.outfit-dropzone small {
  align-self: start;
  color: var(--muted);
  line-height: 1.35;
}

.outfit-glyph {
  grid-row: span 2;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 44%, rgba(255,255,255,0.8) 44% 56%, transparent 56%),
    linear-gradient(180deg, #293241 0 34%, #f2eadb 34% 56%, #bd1740 56%);
  box-shadow: inset 0 0 0 4px #fff, 0 10px 22px rgba(20, 18, 17, 0.12);
}

.outfit-preview {
  background: #eaf3f0;
}

.library-strip,
.outfit-template-strip {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.library-strip {
  grid-template-columns: 1fr 1fr;
}

.outfit-template-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.library-strip article,
.outfit-template-strip article {
  border: 1px solid rgba(8, 117, 108, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px;
}

.outfit-template-strip article {
  border-color: rgba(189, 23, 64, 0.13);
  background:
    linear-gradient(135deg, rgba(189, 23, 64, 0.05), rgba(189, 132, 40, 0.07)),
    rgba(255, 255, 255, 0.66);
}

.library-strip span,
.outfit-template-strip span {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.outfit-template-strip span {
  color: var(--rose);
}

.library-strip strong,
.outfit-template-strip strong {
  font-size: 13px;
}

.look-picker {
  margin: 16px 0 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.look-picker legend {
  padding: 0 7px;
  font-size: 13px;
  font-weight: 950;
}

.look-picker label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 750;
}

.look-picker label.is-selected {
  color: var(--ink);
  font-weight: 950;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 950;
}

.primary-button {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 18, 17, 0.18);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
}

.generate-button {
  width: 100%;
  margin-top: 16px;
}

.generation-progress {
  margin-top: 14px;
  border: 1px solid rgba(20, 18, 17, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.48)),
    #f2ece5;
  padding: 12px;
}

.loading-stage-visual {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.loading-sprite,
.feature-sprite {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  background-image: var(--sprite-url);
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: #fffdfa;
  box-shadow: inset 0 0 0 1px rgba(20, 18, 17, 0.08), 0 14px 28px rgba(20, 18, 17, 0.12);
}

.loading-sprite {
  width: 72px;
  animation: spriteCycle 2.8s steps(1) infinite;
}

.loading-swatches {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.loading-swatches i {
  border-radius: 9px;
  background: var(--chip);
  animation: swatchLift 1.4s ease-in-out infinite;
}

.loading-swatches i:nth-child(2) {
  animation-delay: 120ms;
}

.loading-swatches i:nth-child(3) {
  animation-delay: 240ms;
}

.loading-swatches i:nth-child(4) {
  animation-delay: 360ms;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.progress-head strong {
  color: var(--teal);
}

.progress-track {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #ded7d0;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--teal));
  transition: width 450ms ease;
}

.progress-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}

.progress-grid span {
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fffdfa, #e7ded5);
  animation: cellPulse 1.35s ease-in-out infinite;
}

.progress-grid span:nth-child(2n) {
  animation-delay: 120ms;
}

.progress-grid span:nth-child(3n) {
  animation-delay: 240ms;
}

.generation-progress p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@keyframes cellPulse {
  0%,
  100% {
    opacity: 0.46;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes spriteCycle {
  0%,
  24.99% {
    background-position: 0 0;
  }

  25%,
  49.99% {
    background-position: 100% 0;
  }

  50%,
  74.99% {
    background-position: 0 100%;
  }

  75%,
  100% {
    background-position: 100% 100%;
  }
}

@keyframes swatchLift {
  0%,
  100% {
    opacity: 0.6;
    transform: scaleY(0.74);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.privacy-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.mirror-panel {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 16px;
  overflow: hidden;
}

.mirror-head {
  align-items: center;
}

.mini-label {
  display: block;
  margin-bottom: 6px;
}

.report-badge {
  border-radius: 999px;
  background: #ecf7f4;
  color: var(--teal);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 950;
}

.portrait-card {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: end center;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.12)),
    linear-gradient(135deg, #eee8e1, #fffdfa 46%, #dcece9);
}

.tryon-preview-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  place-items: stretch;
  gap: 12px;
  padding: 12px;
}

.tryon-preview-card img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(20, 18, 17, 0.12);
}

.studio-panel-preview img {
  object-position: center;
}

.tryon-preview-label {
  border: 1px solid rgba(20, 18, 17, 0.09);
  border-radius: 13px;
  background: rgba(255, 253, 250, 0.88);
  padding: 12px 13px;
}

.tryon-preview-label span {
  display: block;
  margin-bottom: 4px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tryon-preview-label strong {
  display: block;
  line-height: 1.22;
}

.drape-strip {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 42px;
  height: 68px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 18, 17, 0.22);
}

.drape-strip span,
.palette i {
  background: var(--chip);
}

.preview-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-notes article {
  border-radius: 14px;
  background: #f2ece5;
  padding: 14px;
}

.preview-notes span {
  display: block;
  margin-bottom: 5px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-notes strong {
  line-height: 1.25;
}

.section-title {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.feature-story {
  background: rgba(255, 253, 250, 0.5);
  border-top: 1px solid rgba(222, 215, 208, 0.72);
  border-bottom: 1px solid rgba(222, 215, 208, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: 0 16px 46px rgba(34, 28, 24, 0.08);
  padding: 14px;
}

.feature-card.is-outfit {
  border-color: rgba(8, 117, 108, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.08), rgba(255, 253, 250, 0.9)),
    #fffdfa;
}

.feature-sprite {
  width: 100%;
}

.frame-upload {
  background-position: 0 0;
}

.frame-report {
  background-position: 100% 0;
}

.frame-crop {
  background-position: 0 100%;
}

.frame-outfit {
  background-image: url("/assets/feature-outfitai.png");
  background-position: center;
  background-size: cover;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.08;
}

.feature-card p:not(.mini-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tier-showcase {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tier-showcase article {
  border: 1px solid rgba(20, 18, 17, 0.1);
  border-radius: 16px;
  background: #fffdfa;
  padding: 18px;
}

.tier-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: #f0e8df;
  padding: 0 10px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 950;
}

.plan-art,
.price-visual {
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background-color: #f7f3ef;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(20, 18, 17, 0.08), 0 14px 34px rgba(34, 28, 24, 0.1);
}

.plan-art {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 14px;
}

.plan-art-free,
.price-visual-free {
  background-image: url("/assets/plan-free.png");
}

.plan-art-pack,
.price-visual-pack {
  background-image: url("/assets/plan-basic.png");
}

.plan-art-studio,
.price-visual-studio {
  background-image: url("/assets/plan-pro.png");
}

.tier-showcase strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 22px;
  line-height: 1.1;
}

.tier-showcase p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  padding: clamp(20px, 2.5vw, 28px);
}

.price-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
}

.price-card.featured {
  background:
    linear-gradient(145deg, rgba(189, 23, 64, 0.11), rgba(8, 117, 108, 0.11) 55%, rgba(189, 132, 40, 0.12)),
    #fffdfa;
  color: var(--ink);
  border-color: rgba(189, 23, 64, 0.18);
}

.price-tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: #efe8df;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
}

.price-card.featured .price-tag,
.price-card.featured .primary-button {
  background: var(--rose);
  color: #fff;
  box-shadow: none;
}

.price-card h3 {
  margin: 16px 0 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
}

.price-card p {
  color: var(--muted);
  line-height: 1.5;
}

.price-card.featured p {
  color: #5d514a;
}

.price-card ul {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.price-card li {
  position: relative;
  padding-left: 22px;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.fine-print {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status {
  padding: 15px 18px;
  margin-bottom: 16px;
  box-shadow: none;
}

.analysis-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.analysis-card {
  padding: 16px;
  box-shadow: none;
}

.analysis-card strong {
  display: block;
  margin-bottom: 7px;
}

.analysis-card p {
  margin: 0;
  line-height: 1.45;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.results-grid:has(.report-shell),
.results-grid.has-report {
  grid-template-columns: 1fr;
}

.report-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow);
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.25fr) minmax(220px, 0.7fr);
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
}

.report-board-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #eee8e1;
}

.report-board-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.report-board-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.report-summary h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
}

.report-summary h3 span {
  color: #a9652e;
}

.report-summary p {
  max-width: 740px;
  color: #2f2a26;
  font-size: 20px;
  line-height: 1.55;
}

.detection-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(8, 117, 108, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.07), rgba(189, 132, 40, 0.05)),
    #fffdfa;
}

.detection-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.detection-note-head span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detection-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #efe8df;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detection-confidence.is-high {
  background: rgba(8, 117, 108, 0.16);
  color: #075852;
}

.detection-confidence.is-medium {
  background: rgba(189, 132, 40, 0.16);
  color: #7a5414;
}

.detection-confidence.is-low {
  background: rgba(189, 23, 64, 0.14);
  color: #8b1532;
}

.detection-note p {
  margin: 0;
  color: #2f2a26;
  font-size: 15px;
  line-height: 1.5;
}

.quick-swaps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.quick-swaps span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd2c8;
  border-radius: 999px;
  background: #f5efe8;
  padding: 0 12px;
  color: #3f3934;
  font-size: 13px;
  font-weight: 850;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.small-action {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.feature-panel,
.palette-panel,
.tips-panel {
  border-radius: 14px;
  background: #f2ece5;
  padding: 18px;
}

.feature-panel h4,
.palette-panel h4,
.tips-panel h4,
.color-section h4 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-panel ul,
.tips-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}


.report-upgrade-panel {
  margin: clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 30px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(8, 117, 108, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.09), rgba(189, 132, 40, 0.09)),
    #fffdfa;
  padding: clamp(16px, 2vw, 22px);
}

.report-upgrade-panel h4 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.report-upgrade-panel p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.5;
}

.report-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.report-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  padding: clamp(18px, 2.6vw, 30px);
}

.color-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.best-section h4::before {
  content: "✓";
  color: #56683f;
}

.avoid-section h4 {
  color: #b63432;
}

.avoid-section h4::before {
  content: "×";
}

.color-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.color-tile-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-tile-grid.outfit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.color-tile,
.panel-thumb-card {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #e2d9cf;
  border-radius: 12px;
  background: #fffdfa;
  padding: 10px;
}

.panel-thumb-card {
  min-height: 196px;
}

.panel-thumb-card.is-avoid {
  border-color: rgba(182, 52, 50, 0.32);
  background: #fffaf7;
}

.panel-thumb-card.is-outfit {
  border-color: rgba(8, 117, 108, 0.22);
  background: #fbfffd;
}

.color-swatch,
.panel-thumb {
  height: 52px;
  border-radius: 8px;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(20, 18, 17, 0.08);
}

.panel-thumb {
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  background: #eee8e1;
}

.panel-thumb img {
  display: block;
  max-width: none;
  object-fit: cover;
  transform-origin: top left;
}

.color-tile strong,
.panel-thumb-card strong {
  font-size: 14px;
}

.color-tile small,
.panel-thumb-card small {
  color: var(--muted);
  line-height: 1.3;
}

.palette-panel {
  grid-row: span 2;
}

.palette-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.palette-matrix i,
.neutral-strip i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(20, 18, 17, 0.08);
}

.neutral-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.palette-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.season-palette-footer {
  display: grid;
  gap: 8px;
  padding: 0 clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 30px);
}

.result-card {
  position: relative;
  overflow: hidden;
}

.result-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eee8e1, #fffdfa);
}

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

.demo-portrait {
  position: relative;
  width: min(70%, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.12)),
    linear-gradient(135deg, var(--a), var(--b) 42%, var(--d));
  box-shadow: 0 16px 38px rgba(22, 16, 14, 0.18);
}

.demo-portrait span {
  position: absolute;
  display: block;
}

.demo-head {
  width: 34%;
  height: 30%;
  left: 33%;
  top: 18%;
  border-radius: 45%;
  background: linear-gradient(180deg, #d8a07d, #b87555);
  box-shadow: 0 -34px 0 18px #17100e;
}

.demo-drape {
  width: 82%;
  height: 43%;
  left: 9%;
  bottom: 0;
  border-radius: 48% 48% 0 0;
  background: linear-gradient(90deg, var(--a) 0 38%, var(--b) 38% 62%, var(--d) 62% 100%);
}

.demo-scarf {
  width: 48%;
  height: 15%;
  left: 26%;
  bottom: 28%;
  border-radius: 999px;
  background: var(--c);
}

.result-body {
  padding: 16px;
}

.result-body h3 {
  margin-bottom: 6px;
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.palette-stack {
  display: grid;
  gap: 8px;
}

.palette-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) 1fr;
  align-items: center;
  gap: 10px;
}

.palette-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.report-details {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.report-details div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.report-details dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-details dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.result-card.is-locked .result-media,
.result-card.is-locked .result-body {
  filter: blur(1.2px);
  opacity: 0.52;
}

.lock-panel {
  position: absolute;
  inset: auto 14px 14px;
  border-radius: 12px;
  background: rgba(20, 18, 17, 0.9);
  color: #fff;
  padding: 12px;
  font-size: 13px;
  font-weight: 900;
}

.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

body.is-report-view .studio,
body.is-report-view .feature-story,
body.is-report-view .pricing {
  display: none;
}

html.is-magic-link .studio,
html.is-magic-link .feature-story,
html.is-magic-link .pricing,
body.is-magic-loading .studio,
body.is-magic-loading .feature-story,
body.is-magic-loading .pricing {
  display: none;
}

body.is-report-view .results-section {
  min-height: calc(100vh - 86px);
  padding-top: 24px;
}


.magic-link-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(189, 23, 64, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(8, 117, 108, 0.18), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(189, 132, 40, 0.18), transparent 38%),
    rgba(247, 243, 239, 0.94);
  backdrop-filter: blur(20px);
}

html.is-magic-link .magic-link-loading[hidden] {
  display: grid !important;
}

.magic-loader-card {
  width: min(100%, 520px);
  border: 1px solid rgba(20, 18, 17, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 30px 90px rgba(34, 28, 24, 0.18);
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  overflow: hidden;
}

.magic-loader-visual {
  position: relative;
  width: min(72vw, 260px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.24)),
    conic-gradient(from 0deg, #bd1740, #e9912b, #f8dc69, #19a394, #2257ca, #bd1740);
  box-shadow: inset 0 0 0 10px rgba(255, 253, 250, 0.78), 0 24px 70px rgba(20, 18, 17, 0.16);
  animation: paletteSpin 4.8s linear infinite;
}

.magic-orb,
.magic-face {
  position: absolute;
  display: block;
}

.magic-orb {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orb);
  box-shadow: 0 12px 28px rgba(20, 18, 17, 0.16);
  animation: orbFloat 2.4s ease-in-out infinite;
}

.orb-rose { --orb: #bd1740; left: 22%; top: 18%; }
.orb-gold { --orb: #e9912b; right: 18%; top: 32%; animation-delay: 180ms; }
.orb-teal { --orb: #08756c; left: 40%; bottom: 16%; animation-delay: 360ms; }

.magic-face {
  width: 76px;
  height: 92px;
  left: 50%;
  top: 50%;
  border-radius: 42% 42% 48% 48%;
  background: linear-gradient(180deg, #d8a07d, #b87555);
  transform: translate(-50%, -50%);
  box-shadow: 0 -30px 0 14px #211612, 0 18px 40px rgba(20, 18, 17, 0.2);
}

.magic-loader-card h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.magic-loader-card p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 390px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.magic-swatches {
  margin: 24px auto 0;
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.magic-swatches i {
  height: 44px;
  border-radius: 13px;
  background: var(--chip);
  animation: swatchLift 1.4s ease-in-out infinite;
}

.magic-swatches i:nth-child(2) { animation-delay: 100ms; }
.magic-swatches i:nth-child(3) { animation-delay: 200ms; }
.magic-swatches i:nth-child(4) { animation-delay: 300ms; }
.magic-swatches i:nth-child(5) { animation-delay: 400ms; }

@keyframes paletteSpin {
  to { filter: hue-rotate(360deg); }
}

@keyframes cardFlipIn {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(-18deg) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateX(0) translateY(0);
  }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.08); }
}

@media print {
  @page {
    size: Letter portrait;
    margin: 0.55in;
  }

  html,
  body {
    background: #fff !important;
    color: #141211 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .topbar,
  .studio,
  .feature-story,
  .pricing,
  .results-section .section-title,
  #status,
  #analysisCards,
  .report-actions,
  .lock-panel {
    display: none !important;
  }

  .results-section {
    padding: 0 !important;
  }

  .results-grid {
    display: block !important;
    gap: 0 !important;
  }

  .report-shell {
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
  }

  body.is-printing .report-shell:not(.print-target) {
    display: none !important;
  }

  .report-shell::before {
    content: "findmycolor.app";
    display: block;
    margin-bottom: 18pt;
    padding-bottom: 8pt;
    border-bottom: 1pt solid #ded7d0;
    font-weight: 950;
    font-size: 11pt;
    letter-spacing: 0.06em;
  }

  .report-hero {
    grid-template-columns: 1fr !important;
    gap: 14pt !important;
    padding: 0 0 14pt !important;
    border-bottom: 1pt solid #ded7d0 !important;
    align-items: start !important;
  }

  .report-board-media {
    aspect-ratio: 1 / 1 !important;
    max-width: 4.5in;
    margin: 0 auto;
    page-break-inside: avoid;
  }

  .report-summary h3 {
    font-size: 22pt !important;
    line-height: 1.1 !important;
    margin-bottom: 10pt !important;
  }

  .report-summary p {
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .detection-note {
    border: 1pt solid #d8d2cb !important;
    background: #faf7f3 !important;
    page-break-inside: avoid;
  }

  .feature-panel,
  .palette-panel,
  .tips-panel {
    background: #f7f3ee !important;
    page-break-inside: avoid;
  }

  
.report-upgrade-panel {
  margin: clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 30px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(8, 117, 108, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 117, 108, 0.09), rgba(189, 132, 40, 0.09)),
    #fffdfa;
  padding: clamp(16px, 2vw, 22px);
}

.report-upgrade-panel h4 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.report-upgrade-panel p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.5;
}

.report-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.report-content-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
    gap: 14pt !important;
    padding: 14pt 0 0 !important;
  }

  .color-tile,
  .panel-thumb-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .quick-swaps span {
    background: #f1ebe4 !important;
    border: 0.5pt solid #ddd2c8 !important;
  }

  .palette-matrix i,
  .neutral-strip i,
  .color-swatch {
    box-shadow: inset 0 0 0 0.5pt rgba(20, 18, 17, 0.18) !important;
  }
}

@media (max-width: 1020px) {
  .studio-copy,
  .studio-grid,
  .hero-feature-strip,
  .feature-grid,
  .tier-showcase,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    aspect-ratio: auto;
  }

  .report-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .report-upgrade-panel,
  .report-content-grid {
    grid-template-columns: 1fr;
  }

  .palette-panel {
    grid-row: auto;
  }

  .mirror-panel {
    min-height: auto;
  }

  .analysis-cards,
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: relative;
    align-items: flex-start;
  }

  .nav-actions {
    display: none;
  }

  .studio,
  .feature-story,
  .pricing,
  .results-section {
    padding: 36px 16px;
  }

  h1 {
    font-size: 44px;
  }

  .studio-grid {
    gap: 16px;
  }

  .plan-switch,
  .mode-switch,
  .start-card-grid,
  .micro-choice-grid,
  .email-capture,
  .controls,
  .look-picker,
  .library-strip,
  .outfit-template-strip,
  .preview-notes,
  .color-tile-grid,
  .color-tile-grid.compact,
  .color-tile-grid.outfit-grid {
    grid-template-columns: 1fr;
  }

  .choice-section-head {
    display: grid;
  }

  .choice-section-head span {
    text-align: left;
  }

  .report-summary p {
    font-size: 17px;
  }

  .report-upgrade-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin: 16px 0 0;
    padding: 18px;
    gap: 14px;
  }

  .report-upgrade-panel h4 {
    font-size: 24px;
    line-height: 1.12;
  }

  .report-upgrade-panel p:not(.eyebrow) {
    max-width: none;
    font-size: 16px;
  }

  .report-upgrade-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .report-upgrade-actions .small-action {
    width: 100%;
    justify-content: center;
  }

  .portrait-card {
    min-height: 390px;
  }

  .tryon-preview-card {
    min-height: 0;
  }

  .drape-strip {
    left: 3%;
    right: 3%;
  }
}
