:root {
  --bg: #f7f7f7;
  --bg-deep: #ebebeb;
  --surface: #ffffff;
  --surface-2: #f1f1f1;
  --surface-3: #e6e6e6;
  --ink: #111111;
  --muted: #666666;
  --soft: #2f2f2f;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.25);
  --primavera: #4e4e4e;
  --verao: #555555;
  --outono: #777777;
  --inverno: #111111;
  --success: #326858;
  --danger: #9a3030;
  --accent: #a4492c;
  --selected-bg: rgba(0, 0, 0, 0.07);
  --swatch-inset: rgba(255, 255, 255, 0.36);
  --quiz-canvas: var(--bg);
  --quiz-shadow: 0 34px 90px rgba(0, 0, 0, 0.11);
  --spectrum: linear-gradient(90deg, #111111, #c8c8c8, #737373, #f2f2f2);
  --display: "Jost", sans-serif;
  --body: "Jost", sans-serif;
  --header-height: 0px;
  --page-padding: clamp(22px, 4vw, 64px);
  --transition: 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(70% 50% at 90% 8%, rgba(164, 73, 44, 0.025), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(50, 104, 88, 0.02), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

em,
i,
cite {
  font-style: normal;
}

button {
  color: inherit;
}

button,
a,
input,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--verao);
  outline-offset: 3px;
}

#question-title:focus-visible {
  outline: none;
}

::selection {
  background: var(--verao);
  color: var(--bg);
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font: 500 23px/1 var(--display);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.header-status i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--verao);
}

#app {
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  padding: calc(var(--header-height) + 32px) var(--page-padding) 48px;
  animation: screen-in 480ms var(--transition) both;
}

.screen[hidden] {
  display: none !important;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

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

.eyebrow b {
  color: var(--ink);
  font-weight: 700;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  font-weight: 300;
  font-style: normal;
}

.spectrum-line {
  width: min(430px, 76%);
  height: 5px;
  margin: 30px 0;
  border-radius: 999px;
  background: var(--spectrum);
}

.primary-button,
.outline-button,
.demo-button,
.text-button {
  border: 0;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.primary-button:disabled,
.outline-button:disabled,
.demo-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(1);
}

.primary-button.is-loading svg {
  animation: checkout-arrow 900ms ease-in-out infinite alternate;
}

@keyframes checkout-arrow {
  to { transform: translateX(5px); }
}

.primary-button {
  min-height: 58px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.primary-button svg,
.text-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--ink);
}

.primary-button.compact {
  min-height: 50px;
  padding: 0 19px;
}

.primary-button.full {
  width: 100%;
}

.outline-button {
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.outline-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.text-button {
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.text-button:hover {
  color: var(--ink);
}

/* Hero */
.screen-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.screen-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 247, 247, 0.98) 0%, rgba(247, 247, 247, 0.96) 34%, rgba(247, 247, 247, 0.78) 56%, rgba(247, 247, 247, 0.03) 78%),
    linear-gradient(0deg, rgba(247, 247, 247, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, rgba(247, 247, 247, 0.35) 0%, transparent 24%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(710px, 54vw);
  max-width: 710px;
  padding: clamp(30px, 4vh, 54px) 0 38px;
}

.hero-logo {
  width: clamp(230px, 18vw, 260px);
  height: auto;
  margin: 0 0 10px;
  display: block;
  opacity: 0.96;
  filter: brightness(0);
}

.hero-eyebrow {
  max-width: 100%;
  color: #090909;
  line-height: 1.85;
}

.hero-eyebrow span {
  padding: 3px 7px;
  background: rgba(247, 247, 247, 0.92);
  color: #090909;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-eyebrow b {
  color: inherit;
}

@media (min-width: 861px) {
  .hero-copy h1 {
    margin-top: 10px;
  }

  .hero-copy .spectrum-line {
    margin-block: 16px;
  }

  .hero-copy .hero-lead {
    margin-bottom: 18px;
  }

  .hero-copy .hero-notes {
    margin-top: 20px;
  }
}

.hero-copy h1 {
  max-width: 13.2ch;
  margin: 22px 0 0;
  font-size: clamp(52px, 5.25vw, 76px);
  text-shadow: 0 3px 32px rgba(255, 255, 255, 0.4);
}

.hero-copy h1 em {
  display: block;
  color: var(--soft);
}

.public-review-notice {
  max-width: 520px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border-left: 2px solid #111;
  background: rgba(255, 255, 255, 0.88);
  color: #333;
  font-size: 13px;
  line-height: 1.55;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--soft);
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero-notes {
  margin-top: 42px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-notes span {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.hero-notes b {
  margin-right: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
}

.hero-start-mobile {
  display: none;
}

.media-placeholder {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 48% 24%, rgba(255, 255, 255, 0.09), transparent 31%),
    linear-gradient(145deg, var(--surface-2), var(--bg-deep));
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.hero-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--hero-object-position, center center);
  opacity: 0;
  transform: scale(1);
  filter: brightness(1) contrast(1) saturate(1);
  transition: opacity 150ms ease-out;
  will-change: opacity, transform, filter;
}

.hero-frame.is-active,
.hero-frame.is-entering,
.hero-frame.is-leaving {
  z-index: 1;
}

.hero-frame.is-active,
.hero-frame.is-entering {
  opacity: 1;
}

.hero-frame.is-leaving {
  opacity: 0;
}

.hero-frame.is-entering {
  animation: hero-photo-settle 590ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-photo-grain,
.hero-camera-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo-grain {
  z-index: 2;
  opacity: 0.075;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='4' stitchTiles='stitch' seed='7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.72'/%3E%3C/svg%3E");
}

.hero-camera-flash {
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(circle at 70% 38%, rgba(255, 252, 239, 0.98) 0%, rgba(255, 246, 222, 0.9) 24%, rgba(255, 239, 210, 0.54) 58%, rgba(255, 236, 204, 0.14) 100%);
  mix-blend-mode: screen;
}

.hero-media.is-flashing .hero-camera-flash {
  animation: hero-kodak-flash 620ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

@keyframes hero-kodak-flash {
  0% { opacity: 0; }
  11% { opacity: 0.16; }
  20% { opacity: 0.88; }
  26% { opacity: 0.74; }
  38% { opacity: 0.18; }
  58%, 100% { opacity: 0; }
}

@keyframes hero-photo-settle {
  0% {
    transform: scale(1.015) rotate(var(--hero-frame-rotation, 0deg));
    filter: brightness(1.2) contrast(1.035) saturate(1.075);
  }
  32% {
    filter: brightness(1.08) contrast(1.02) saturate(1.04);
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1) contrast(1) saturate(1);
  }
}

.result-media::after {
  content: "GUE";
  position: absolute;
  right: -0.08em;
  bottom: -0.22em;
  color: rgba(255, 255, 255, 0.04);
  font: 300 clamp(150px, 20vw, 330px)/0.8 var(--display);
  letter-spacing: -0.08em;
  pointer-events: none;
}

.placeholder-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.placeholder-label {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 4vw, 58px);
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(72px, 10vh, 122px);
}

.placeholder-label span,
.placeholder-label strong,
.placeholder-label small {
  display: block;
}

.placeholder-label span {
  margin-bottom: 7px;
  color: var(--verao);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.placeholder-label strong {
  font: 400 clamp(30px, 4vw, 55px)/1 var(--display);
}

.placeholder-label small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* Quiz */
.screen-quiz {
  --display: "Space Grotesk", "Jost", sans-serif;
  --quiz-accent: #eea080;
  --choice-copper: #eea080;
  --choice-gold: #dec074;
  --choice-sage: #94c7b2;
  --choice-plum: #c8a4d9;
  --choice-blue: #9dbce0;
  --choice-rose: #dfa6b6;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--quiz-canvas);
  box-shadow: 0 0 0 100vmax var(--quiz-canvas);
  color: var(--ink);
  font-family: var(--display);
  clip-path: inset(0 -100vmax);
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.screen-quiz[data-theme="dark"],
.screen-photos[data-theme="dark"],
.photo-permission-sheet[data-theme="dark"] {
  --bg: #090909;
  --bg-deep: #000000;
  --surface: #111111;
  --surface-2: #181818;
  --surface-3: #222222;
  --ink: #f7f7f7;
  --muted: #929292;
  --soft: #d1d1d1;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.25);
  --primavera: #f2f2f2;
  --verao: #c8c8c8;
  --outono: #8e8e8e;
  --inverno: #ffffff;
  --success: #d8d8d8;
  --danger: #b8b8b8;
  --selected-bg: rgba(255, 255, 255, 0.09);
  --swatch-inset: rgba(0, 0, 0, 0.3);
  --quiz-canvas: #090909;
  --photo-canvas: #090909;
  --quiz-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

.screen-quiz[data-theme="light"] {
  --quiz-accent: #a4492c;
  --choice-copper: #a4492c;
  --choice-gold: #806018;
  --choice-sage: #326858;
  --choice-plum: #75468d;
  --choice-blue: #43628d;
  --choice-rose: #97435d;
  --bg: #f7f7f7;
  --bg-deep: #ebebeb;
  --surface: #ffffff;
  --surface-2: #f1f1f1;
  --surface-3: #e6e6e6;
  --ink: #111111;
  --muted: #666666;
  --soft: #2f2f2f;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.25);
  --success: #383838;
  --danger: #656565;
  --selected-bg: rgba(0, 0, 0, 0.07);
  --swatch-inset: rgba(255, 255, 255, 0.36);
  --quiz-canvas: #f7f7f7;
  --quiz-shadow: 0 34px 90px rgba(0, 0, 0, 0.11);
  color-scheme: light;
}

.quiz-progress {
  max-width: 1180px;
  margin: 24px auto 0;
}

.progress-copy {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.progress-copy strong {
  color: var(--ink);
}

.progress-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quiz-theme-switch {
  padding: 3px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.quiz-theme-switch button {
  min-width: 56px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.quiz-theme-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress-track span {
  display: block;
  width: 6.25%;
  height: 100%;
  border-radius: inherit;
  background: var(--quiz-accent);
  transition: width 480ms var(--transition);
}

.quiz-layout {
  width: 100%;
  max-width: 1180px;
  min-height: 660px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--quiz-shadow);
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.question-aside {
  position: relative;
  padding: 42px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--quiz-accent) 10%, transparent), transparent 62%),
    var(--bg-deep);
  transition: background var(--transition), border-color var(--transition);
}

.question-number {
  display: block;
  font: 300 112px/0.8 var(--display);
  color: color-mix(in srgb, var(--quiz-accent) 42%, transparent);
}

.screen-quiz[data-theme="light"] .question-number {
  color: color-mix(in srgb, var(--quiz-accent) 32%, transparent);
}

.question-aside p {
  position: relative;
  z-index: 2;
  max-width: 160px;
  color: var(--soft);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
}

.aside-orbit {
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.aside-orbit::before,
.aside-orbit::after {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.aside-orbit::after {
  inset: 65px;
}

.aside-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--choice-sage);
}

.aside-orbit i:nth-child(1) { top: 24px; left: 84px; }
.aside-orbit i:nth-child(2) { top: 80px; right: 14px; background: var(--choice-copper); }
.aside-orbit i:nth-child(3) { bottom: 30px; left: 80px; background: var(--choice-gold); }

.question-panel {
  padding: clamp(36px, 5vw, 68px);
}

.question-panel h2 {
  max-width: 780px;
  margin: 13px 0 9px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.question-panel > .eyebrow {
  color: var(--quiz-accent);
}

.question-help {
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
}

.question-media {
  margin: 26px 0 0;
}

.comparison-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.temperature-card {
  position: relative;
  min-height: 154px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  isolation: isolate;
}

.temperature-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.94;
}

.temperature-card.warm {
  color: #291804;
}

.temperature-card.warm::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 250, 207, 0.95), transparent 36%),
    linear-gradient(145deg, #f5d66d 0%, #e29b2f 56%, #9a5318 100%);
}

.temperature-card.cool {
  color: #f4f8ff;
}

.temperature-card.cool::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(208, 240, 255, 0.85), transparent 36%),
    linear-gradient(145deg, #80c8ef 0%, #3d70bb 54%, #182d61 100%);
}

.temperature-silhouette {
  width: 92px;
  height: 92px;
  align-self: center;
  display: block;
  background: currentColor;
  opacity: 0.88;
  -webkit-mask: url("./assets/woman-guide.png") center / contain no-repeat;
  mask: url("./assets/woman-guide.png") center / contain no-repeat;
}

.temperature-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}

.temperature-caption strong,
.temperature-caption small {
  display: block;
}

.temperature-caption strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.temperature-caption small {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.35;
}

.options {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.option {
  --choice-accent: var(--choice-copper);
  min-height: 74px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--choice-accent) 25%, var(--line));
  border-left: 3px solid var(--choice-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--choice-accent) 7%, var(--surface-2));
  color: var(--soft);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

/* Choice colors decorate the interface; hair samples keep their actual tones. */
.option:nth-child(6n + 2) { --choice-accent: var(--choice-gold); }
.option:nth-child(6n + 3) { --choice-accent: var(--choice-sage); }
.option:nth-child(6n + 4) { --choice-accent: var(--choice-plum); }
.option:nth-child(6n + 5) { --choice-accent: var(--choice-blue); }
.option:nth-child(6n + 6) { --choice-accent: var(--choice-rose); }

.option:focus-visible {
  outline-color: var(--choice-accent);
}

.option:hover {
  transform: translateY(-2px);
  border-color: var(--choice-accent);
  background: color-mix(in srgb, var(--choice-accent) 14%, var(--surface-2));
}

.option.is-selected {
  border-color: var(--choice-accent);
  background: color-mix(in srgb, var(--choice-accent) 20%, var(--surface-2));
  color: var(--ink);
}

.option-marker {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--choice-accent) 65%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--choice-accent) 8%, var(--surface-2));
  color: var(--choice-accent);
  font-size: 10px;
  font-weight: 700;
}

.option.is-selected .option-marker {
  border-color: var(--choice-accent);
  background: var(--choice-accent);
  color: var(--bg);
}

.options.is-advancing .option {
  pointer-events: none;
}

.options.is-advancing .option:not(.is-selected) {
  opacity: 0.46;
}

.option.is-selected.is-advancing {
  transform: translateX(4px);
}

.option-text {
  min-width: 0;
  flex: 1;
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
}

.tone-swatch {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--swatch-inset);
}

.validation-message {
  margin-top: 14px;
  color: var(--danger);
  font-size: 12px;
}

.validation-message.is-confirmed {
  color: var(--muted);
}

.question-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.auto-advance-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auto-advance-hint i {
  width: 18px;
  height: 1px;
  display: inline-block;
  background: var(--ink);
  box-shadow: 5px -3px 0 -2px var(--ink), 5px 3px 0 -2px var(--ink);
}

/* Contact */
.screen-contact {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 0.72fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
}

.contact-visual blockquote {
  max-width: 720px;
  margin: 20px 0 36px;
  font-size: clamp(44px, 6vw, 80px);
  font-style: normal;
}

.video-placeholder {
  width: 230px;
  aspect-ratio: 9/12;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.video-placeholder > span {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
}

.video-placeholder strong,
.video-placeholder small {
  display: block;
}

.video-placeholder strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}

.video-placeholder small {
  margin-top: 6px;
  font-size: 10px;
}

.contact-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.contact-card h2 {
  margin: 13px 0 12px;
  font-size: clamp(35px, 4vw, 50px);
}

.contact-card > p:not(.eyebrow, .privacy-note) {
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
}

.field input::placeholder {
  color: #767676;
}

.field input.is-invalid {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  color: var(--danger);
  font-size: 10px;
}

.check-field {
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
}

.check-field.optional {
  margin-top: -7px;
  color: var(--muted);
}

.check-field input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--verao);
}

.privacy-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
}

/* Analysis */
.screen-analysis {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.analysis-orb {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 38px;
}

.analysis-orb::before,
.analysis-orb::after,
.analysis-orb span {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: orbit 3.3s linear infinite;
}

.analysis-orb::before { transform: rotateX(62deg); }
.analysis-orb::after { transform: rotateY(62deg); animation-direction: reverse; }
.analysis-orb span:nth-child(1) { inset: 42px; border-color: var(--verao); animation: pulse 1.8s ease-in-out infinite; }
.analysis-orb span:nth-child(2) { transform: rotate(45deg) scaleY(0.38); border-color: var(--primavera); }
.analysis-orb span:nth-child(3) { transform: rotate(-45deg) scaleY(0.38); border-color: var(--inverno); animation-direction: reverse; }

@keyframes orbit { to { rotate: 1turn; } }
@keyframes pulse { 50% { transform: scale(0.74); opacity: 0.55; } }

.screen-analysis h2 {
  max-width: 790px;
  margin: 14px 0 20px;
  font-size: clamp(43px, 6vw, 72px);
}

.screen-analysis > p:not(.eyebrow) {
  color: var(--muted);
}

.analysis-track {
  width: min(520px, 82vw);
  height: 4px;
  margin: 29px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.analysis-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--spectrum);
  transition: width 650ms ease;
}

.analysis-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.analysis-list li {
  color: #626262;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.analysis-list li.is-done {
  color: var(--soft);
}

/* Paywall */
.screen-paywall {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}

.paywall-teaser h2 {
  max-width: 780px;
  margin: 20px 0 18px;
  font-size: clamp(47px, 6.6vw, 82px);
}

.paywall-teaser > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.reveal-seal {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--spectrum);
}

.reveal-seal span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font: 400 43px/1 var(--display);
}

.locked-preview {
  max-width: 720px;
  margin-top: 37px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.locked-preview div {
  min-height: 90px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.locked-preview div:nth-child(odd) { border-right: 1px solid var(--line); }
.locked-preview div:nth-last-child(-n+2) { border-bottom: 0; }
.locked-preview span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.locked-preview strong { margin-top: 4px; font-family: var(--display); font-size: 23px; font-weight: 400; filter: blur(0); }
.locked-preview div:first-child strong { filter: blur(5px); user-select: none; }

.checkout-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.1);
}

.checkout-badge {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(164, 73, 44, 0.08);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-card h3 {
  margin: 17px 0 21px;
  font-size: 36px;
  font-weight: 400;
}

.checkout-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
}

.checkout-card li {
  position: relative;
  padding-left: 20px;
  color: var(--soft);
  font-size: 12.5px;
}

.checkout-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price {
  margin: 30px 0 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.price small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price strong {
  font: 500 clamp(36px, 6vw, 62px)/1 var(--display);
  max-width: 100%;
}

.price strong.is-unconfigured {
  font-size: 26px;
  line-height: 1.2;
}

.price sup {
  margin-right: 5px;
  color: var(--muted);
  font: 600 13px/1 var(--body);
}

.price em {
  font-size: 30px;
  font-style: normal;
}

.payment-methods {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  font-size: 9px;
}

.demo-gate {
  margin-top: 24px;
  padding: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  text-align: center;
}

.demo-gate[hidden],
.demo-button[hidden] {
  display: none !important;
}

.demo-gate > span {
  color: var(--primavera);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-gate p {
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.demo-button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
}

.demo-button:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Outras direções após o resultado */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.additional-looks {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--page-padding) 72px;
  scroll-margin-top: 28px;
}

.additional-looks[hidden],
.additional-looks [hidden] {
  display: none !important;
}

.additional-looks-inner {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(164, 73, 44, 0.055), transparent 38%),
    var(--surface);
}

.additional-looks-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.additional-looks-heading .eyebrow {
  color: var(--accent);
}

.additional-looks-heading h2 {
  max-width: 640px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 4.2vw, 56px);
}

.additional-looks-heading h2 em {
  color: var(--accent);
}

.additional-looks-heading p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
  font-size: 14px;
}

.additional-looks-count {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 12px 16px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.additional-looks-count b {
  color: var(--accent);
  font: 400 38px/1.2 "Space Grotesk", var(--body);
}

.additional-looks-options {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.look-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.look-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.look-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.look-option:hover .look-card {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.look-option > input:checked + .look-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.look-option > input:focus-visible + .look-card {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.look-swatch {
  position: relative;
  height: 132px;
  display: block;
  overflow: hidden;
  background: linear-gradient(120deg, var(--look-base) 0%, var(--look-depth) 28%, var(--look-light) 54%, var(--look-depth) 80%, var(--look-base) 100%);
}

.look-swatch::after {
  content: "";
  position: absolute;
  inset: -80% -20%;
  transform: rotate(-18deg);
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, 0.12) 6px, transparent 8px 13px);
  opacity: 0.7;
}

.look-number,
.look-option-check {
  position: absolute;
  z-index: 1;
  top: 11px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font: 600 11px/1 "Space Grotesk", var(--body);
}

.look-number { left: 11px; }
.look-option-check { right: 11px; opacity: 0; }
.look-option > input:checked + .look-card .look-option-check { opacity: 1; }

.look-name {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font: 500 14px/1.4 "Space Grotesk", var(--body);
}

.additional-looks-footer {
  margin-top: 26px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.additional-looks-footer p {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 620px) {
  .additional-looks { padding-bottom: 32px; }
  .additional-looks-inner { padding: 22px 16px; border-radius: 18px; }
  .additional-looks-heading { gap: 12px; }
  .additional-looks-heading h2 { font-size: 32px; }
  .additional-looks-count { padding: 9px; font-size: 9px; }
  .additional-looks-count b { font-size: 28px; }
  .additional-looks-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .look-swatch { height: 105px; }
  .look-name { min-height: 66px; padding: 11px; font-size: 12px; }
  .additional-looks-footer { align-items: stretch; flex-direction: column; gap: 14px; }
}

/* Thank you */
.screen-thankyou {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(42px, 8vw, 118px);
  align-items: center;
}

.confirmation-mark {
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
}

.confirmation-mark svg {
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.thankyou-copy h2 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(49px, 7vw, 88px);
}

.thankyou-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.thankyou-actions {
  margin-top: 33px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.thankyou-actions .outline-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 23px;
}

.thankyou-view-result {
  margin-top: 15px;
}

.thankyou-view-result[hidden] {
  display: none;
}

.delivery-receipt {
  padding: clamp(28px, 4vw, 43px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.26);
}

.delivery-receipt h3 {
  margin: 15px 0 27px;
  font-size: 34px;
  font-weight: 400;
}

.receipt-line {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.receipt-line span {
  color: var(--muted);
}

.receipt-line strong {
  color: var(--soft);
  font-weight: 600;
  text-align: right;
}

.delivery-timeline {
  margin: 26px 0;
  display: grid;
}

.delivery-timeline > div {
  position: relative;
  min-height: 62px;
  padding-left: 34px;
  display: flex;
  gap: 13px;
}

.delivery-timeline > div:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -5px;
  width: 1px;
  background: var(--line-strong);
}

.delivery-timeline i {
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
}

.delivery-timeline .is-complete i {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.delivery-timeline b,
.delivery-timeline small {
  display: block;
}

.delivery-timeline b {
  color: var(--soft);
  font-size: 12px;
}

.delivery-timeline small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.delivery-receipt .outline-button.full {
  width: 100%;
}

.receipt-help {
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* Result */
.screen-result {
  max-width: 1300px;
  margin: 0 auto;
}

.result-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.result-overline {
  display: block;
  margin: 30px 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.result-hero h2 {
  max-width: 760px;
  font-size: clamp(60px, 9vw, 116px);
}

.result-intention {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 26px;
}

.result-intention strong {
  color: var(--verao);
  font-weight: 400;
  font-style: normal;
}

.result-summary {
  max-width: 680px;
  color: var(--soft);
  font-size: 17px;
}

.result-media {
  min-height: 560px;
  border-radius: 17px;
}

.result-media .placeholder-label {
  bottom: 42px;
}

.result-media::after {
  font-size: 180px;
}

.result-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.result-card {
  min-height: 340px;
  padding: clamp(27px, 4vw, 43px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.result-card-wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.result-card h3,
.delivery-card h3 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(30px, 3.4vw, 45px);
  font-weight: 400;
}

.result-card > p:not(.eyebrow, .caution, .salon-script),
.delivery-card p {
  max-width: 750px;
  color: var(--muted);
  font-size: 14px;
}

.visagism-reading {
  max-width: 1020px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.visagism-reading > div,
.intention-details > div,
.method-sources > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.visagism-reading strong,
.result-confirmation strong,
.intention-details strong,
.method-sources strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visagism-reading p,
.result-confirmation p,
.intention-details p,
.method-sources span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.result-confirmation {
  max-width: 1020px;
  margin-top: 12px;
  padding: 18px;
  border-left: 2px solid var(--outono);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 72%);
}

.result-note {
  max-width: 760px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.result-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.result-note p {
  color: var(--muted);
  font-size: 12px;
}

.profile-facts {
  margin-top: 31px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.profile-facts div {
  padding: 19px 15px 0 0;
}

.profile-facts dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin-top: 4px;
  font: 400 22px/1.2 var(--display);
}

.color-directions {
  margin: 25px 0;
  display: grid;
  gap: 10px;
}

.color-direction {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--soft);
  font-size: 12px;
}

.color-direction > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.color-direction strong {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.color-direction small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.color-direction i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.caution {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.caution strong {
  color: var(--primavera);
}

.result-card blockquote {
  margin-top: 24px;
  padding-left: 17px;
  border-left: 2px solid var(--verao);
  color: var(--soft);
  font-size: 24px;
  font-style: normal;
}

.intention-details {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.transformation-levels {
  margin-top: 27px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.transformation-level {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.transformation-level.is-recommended {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), var(--surface-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.transformation-level span {
  color: var(--verao);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.transformation-level h4 {
  margin: 7px 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}

.transformation-level p {
  color: var(--muted);
  font-size: 11px;
}

.salon-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), var(--surface));
}

.salon-script {
  margin: 25px 0;
  color: var(--soft);
  font-family: var(--display);
  font-size: 22px;
  font-style: normal;
  line-height: 1.35;
}

.safety-card small {
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.method-card {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.06), transparent 28%),
    var(--surface);
}

.method-card > p:not(.eyebrow) {
  max-width: 980px;
}

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

.method-card > small {
  max-width: 980px;
  margin-top: 22px;
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.method-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.method-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 10px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.method-links a:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.delivery-card {
  margin-top: 15px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-deep);
}

.delivery-status {
  min-width: 225px;
  display: grid;
  gap: 9px;
}

.delivery-status span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--soft);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.07);
}

.result-actions {
  padding: 42px 0 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: 370px;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-size: 12px;
}

.noscript {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
}

/* Extended photo protocol */
.screen-photos {
  --photo-canvas: var(--bg);
  max-width: 1440px;
  margin: 0 auto;
  background: var(--photo-canvas);
  box-shadow: 0 0 0 100vmax var(--photo-canvas);
  clip-path: inset(0 -100vmax);
  color: var(--ink);
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.screen-photos[data-theme="light"] {
  --bg: #f7f7f7;
  --bg-deep: #e8e8e8;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --surface-3: #dedede;
  --ink: #111111;
  --muted: #666666;
  --soft: #303030;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.26);
  --selected-bg: rgba(0, 0, 0, 0.07);
  --photo-canvas: #f7f7f7;
  color-scheme: light;
}

.photo-header {
  max-width: 1240px;
  margin: 20px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.photo-header h2 {
  max-width: 850px;
  margin: 10px 0 12px;
  font-size: clamp(42px, 5.3vw, 78px);
}

.photo-header > div > p:last-child {
  max-width: 760px;
  color: var(--muted);
}

.photo-security {
  min-width: 250px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.photo-security i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--selected-bg);
}

.photo-security b,
.photo-security small {
  display: block;
  line-height: 1.3;
}

.photo-security b {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photo-security small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.photo-workspace {
  max-width: 1440px;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "guide capture"
    "strip strip"
    "footer footer";
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.24);
}

.pose-guide {
  grid-area: guide;
  position: relative;
  min-height: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 55%, var(--selected-bg)),
    var(--bg-deep);
}

.pose-counter {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.pose-counter span,
.pose-counter small {
  font-size: 10px;
  font-weight: 700;
}

.pose-counter strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.pose-model {
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin: 28px auto 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #101010;
}

.pose-guide-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-thumb .pose-guide-poster,
.photo-thumb .pose-thumb-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.camera-pose-outline svg,
.photo-thumb svg {
  width: 100%;
  display: block;
}

.pose-ink {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pose-axis {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
  stroke-dasharray: 3 7;
  opacity: 0.25;
}

@media (prefers-reduced-motion: reduce) {
  .pose-guide-media {
    animation: none;
  }
}

.pose-instructions {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pose-instructions h3 {
  max-width: 430px;
  margin: 9px 0 13px;
  font-size: clamp(28px, 3.2vw, 43px);
}

.pose-instructions > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.capture-panel {
  grid-area: capture;
  min-width: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.capture-rules {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.capture-rules span {
  min-height: 46px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.capture-rules b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.camera-frame {
  position: relative;
  min-height: 350px;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg-deep);
}

.camera-frame::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  pointer-events: none;
}

.camera-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(90deg, transparent 33.2%, var(--line) 33.3%, var(--line) 33.6%, transparent 33.7%, transparent 66.2%, var(--line) 66.3%, var(--line) 66.6%, transparent 66.7%),
    linear-gradient(transparent 33.2%, var(--line) 33.3%, var(--line) 33.6%, transparent 33.7%, transparent 66.2%, var(--line) 66.3%, var(--line) 66.6%, transparent 66.7%);
}

.camera-frame > img,
.camera-frame > video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-deep);
}

.camera-frame > video {
  object-fit: cover;
}

.camera-frame.is-live > video[data-facing="user"] {
  transform: scaleX(-1);
}

.camera-frame.is-live::after {
  z-index: 3;
  border-color: color-mix(in srgb, var(--ink) 58%, transparent);
}

.camera-live-panel {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.camera-live-topline,
.camera-live-actions {
  position: absolute;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.72);
  pointer-events: auto;
}

.camera-live-topline {
  top: 20px;
  justify-content: space-between;
}

.camera-live-topline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.camera-live-topline span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.camera-live-topline button,
.camera-switch {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.camera-live-actions {
  bottom: 22px;
  justify-content: space-between;
}

.camera-live-actions > span {
  width: 92px;
  text-align: right;
}

.camera-shutter {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.camera-shutter i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.camera-shutter:hover i,
.camera-shutter:focus-visible i {
  transform: scale(0.9);
}

.camera-pose-outline {
  position: absolute;
  inset: 16% 24% 18%;
  display: grid;
  place-items: center;
  opacity: 0.34;
  color: #fff;
}

.camera-pose-outline svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.5));
}

.camera-empty {
  position: relative;
  z-index: 1;
  padding: 30px;
  text-align: center;
}

.camera-empty strong,
.camera-empty small {
  display: block;
}

.camera-empty strong {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.camera-empty small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.camera-person-guide {
  width: 104px;
  height: 104px;
  display: inline-block;
  object-fit: contain;
  opacity: 0.9;
  filter: invert(1);
}

.screen-photos[data-theme="light"] .camera-person-guide {
  filter: none;
}

.capture-actions {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.capture-button,
.file-button {
  min-height: 48px;
  padding-block: 12px;
}

.file-button {
  cursor: pointer;
}

.capture-actions .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.camera-frame.is-live + .capture-actions #camera-open {
  display: none;
}

.camera-frame.is-live + .capture-actions .file-button {
  flex: 1 1 100%;
}

.capture-hint {
  min-height: 17px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.photo-upload-summary {
  margin: 0 0 13px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--selected-bg);
}

.photo-upload-summary strong,
.photo-upload-summary span {
  display: block;
}

.photo-upload-summary strong {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.photo-upload-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.photo-upload-summary > i {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.photo-upload-summary > i b {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--ink);
  transition: width 280ms ease;
}

.photo-strip {
  grid-area: strip;
  padding: 18px 24px 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
}

.photo-thumb {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-deep);
  color: var(--muted);
  cursor: pointer;
}

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

.photo-thumb svg {
  height: 100%;
  padding: 10px;
}

.photo-thumb > span {
  position: absolute;
  left: 7px;
  bottom: 5px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.photo-thumb > i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
}

.photo-thumb.is-complete > i {
  border-color: var(--ink);
  background: var(--ink);
}

.photo-thumb.is-uploading > i {
  border-top-color: var(--ink);
  animation: generation-spin 760ms linear infinite;
}

.photo-thumb.is-warning > i {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 4px var(--ink);
}

.photo-thumb > small {
  position: absolute;
  right: 4px;
  bottom: 4px;
  max-width: calc(100% - 30px);
  overflow: hidden;
  color: var(--ink);
  font-size: 7px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.photo-thumb.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.photo-thumb.is-guide-playing > i {
  border-color: var(--ink);
  background: var(--ink);
  animation: active-guide-pulse 1.15s ease-in-out infinite;
}

@keyframes active-guide-pulse {
  50% { transform: scale(1.45); opacity: 0.48; }
}

.photo-consent {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--selected-bg);
}

.photo-consent.is-confirmed {
  border-color: var(--line-strong);
}

.photo-permission-sheet {
  width: min(calc(100% - 32px), 620px);
  max-height: min(90vh, 720px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.72);
}

.photo-permission-sheet[data-theme="light"] {
  --bg: #f7f7f7;
  --bg-deep: #e8e8e8;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --ink: #111111;
  --muted: #666666;
  --soft: #303030;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.26);
  --selected-bg: rgba(0, 0, 0, 0.07);
  color-scheme: light;
}

.photo-permission-sheet:not([open]) {
  display: none;
}

.photo-permission-sheet::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(9px);
}

.photo-permission-inner {
  position: relative;
  padding: clamp(28px, 6vw, 52px);
  background:
    linear-gradient(135deg, var(--selected-bg), transparent 48%),
    var(--surface);
}

.photo-permission-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.photo-permission-sheet h2 {
  max-width: 480px;
  margin: 14px 0 12px;
  font-size: clamp(31px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.photo-permission-sheet > .photo-permission-inner > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.photo-permission-terms {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.photo-permission-terms span {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.photo-permission-terms b {
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.photo-permission-terms small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.photo-permission-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.photo-permission-actions .primary-button {
  min-width: min(100%, 285px);
}

.photo-consent.needs-attention {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--selected-bg);
}

.photo-navigation {
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.capture-footer {
  grid-area: footer;
  min-width: 0;
  padding: 14px 24px 18px;
}

.capture-footer .photo-navigation {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.photo-status {
  min-height: 24px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

@media (max-width: 560px) {
  .photo-permission-sheet {
    width: calc(100% - 20px);
    border-radius: 18px;
  }

  .photo-permission-inner {
    padding: 34px 22px 24px;
  }

  .photo-permission-terms span {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .photo-permission-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .photo-permission-actions .primary-button,
  .photo-permission-actions .text-button {
    width: 100%;
    justify-content: center;
  }
}

.generation-preview {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 4 / 3;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg-deep);
}

.generation-preview > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.generation-preview > img[hidden] {
  display: none;
}

.generation-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 46px);
  text-align: left;
}

.generation-placeholder[hidden] {
  display: none;
}

.generation-progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.generation-percent {
  display: inline-flex;
  align-items: flex-start;
  color: var(--ink);
  font: 300 clamp(68px, 10vw, 104px)/0.78 var(--display);
  letter-spacing: -0.065em;
}

.generation-percent sup {
  margin: 4px 0 0 7px;
  color: var(--muted);
  font: 600 14px/1 var(--body);
  letter-spacing: 0;
}

.generation-estimate {
  max-width: 190px;
  padding-bottom: 4px;
  text-align: right;
}

.generation-estimate b,
.generation-estimate small {
  display: block;
}

.generation-estimate b {
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.generation-estimate small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.generation-progress-track {
  height: 4px;
  margin: 28px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.generation-progress-track > i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--ink);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.generation-progress-track:not(.is-complete) > i {
  background-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 72%, color-mix(in srgb, var(--ink) 45%, transparent) 100%);
  background-size: 180% 100%;
  animation: generation-flow 2.4s linear infinite;
}

.generation-placeholder > strong,
.generation-placeholder > small {
  display: block;
}

.generation-placeholder > strong {
  color: var(--ink);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 500;
}

.generation-placeholder > small {
  max-width: 510px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.generation-milestones {
  position: relative;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.generation-milestones::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: var(--line-strong);
}

.generation-milestones span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.generation-milestones i {
  width: 9px;
  height: 9px;
  display: block;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--bg-deep);
}

.generation-milestones span.is-active,
.generation-milestones span.is-complete {
  color: var(--ink);
}

.generation-milestones span.is-active i {
  border-color: var(--ink);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 10%, transparent);
  animation: generation-pulse 1.8s ease-in-out infinite;
}

.generation-milestones span.is-complete i {
  border-color: var(--ink);
  background: var(--ink);
}

.generation-placeholder > p {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.generation-placeholder.is-paused .generation-progress-track > i {
  animation: none;
}

@keyframes generation-flow {
  to { background-position: -180% 0; }
}

@keyframes generation-pulse {
  50% { transform: scale(1.18); }
}

.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

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

/* Desktop photo desk: the full protocol stays visible as one editorial contact sheet. */
@media (min-width: 861px) {
  .screen-photos {
    min-height: 100svh;
    padding-top: clamp(16px, 2.4vh, 28px);
    padding-bottom: clamp(16px, 2.4vh, 28px);
  }

  .photo-header {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .photo-workspace {
    width: min(100%, 1440px);
    grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
    grid-template-rows: auto auto auto;
  }

  .pose-guide {
    padding: clamp(22px, 2vw, 30px);
  }

  .pose-model {
    width: min(100%, 220px);
    margin: 18px auto 20px;
  }

  .pose-instructions {
    margin-top: 0;
    padding-top: 20px;
  }

  .pose-instructions h3 {
    margin: 7px 0 10px;
    font-size: clamp(27px, 2.25vw, 38px);
    line-height: 1.08;
  }

  .pose-instructions > p:last-child {
    font-size: 12px;
    line-height: 1.55;
  }

  .capture-panel {
    padding: clamp(20px, 2vw, 28px);
  }

  .capture-rules {
    margin-bottom: 10px;
  }

  .capture-rules span {
    min-height: 42px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .photo-consent {
    margin: 9px 0 11px;
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1.45;
  }

  .camera-frame {
    min-height: 0;
    height: clamp(270px, 34vh, 340px);
    flex: 0 0 auto;
  }

  .capture-actions {
    margin: 10px 0;
  }

  .capture-button,
  .file-button {
    min-height: 44px;
    padding-block: 10px;
  }

  .capture-hint {
    margin: -2px 0 9px;
  }

  .photo-upload-summary {
    margin-bottom: 0;
    padding: 10px 12px;
  }

  .photo-strip {
    padding-top: 14px;
  }

  .photo-status {
    min-height: 18px;
    margin-top: 5px;
    line-height: 1.3;
  }
}

@media (min-width: 861px) and (max-height: 960px) {
  .screen-photos {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .pose-guide,
  .capture-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .pose-model {
    width: min(100%, 178px);
    margin-block: 12px;
  }

  .pose-instructions {
    padding-top: 14px;
  }

  .pose-instructions h3 {
    font-size: clamp(24px, 2vw, 31px);
  }

  .camera-frame {
    height: clamp(225px, 29vh, 260px);
  }

  .photo-thumb {
    aspect-ratio: 1 / 1;
  }

  .photo-strip {
    padding-top: 10px;
  }

  .capture-footer {
    padding-top: 10px;
    padding-bottom: 12px;
  }
}

@media (max-width: 1080px) {
  .photo-header { grid-template-columns: 1fr; }
  .photo-security { width: fit-content; }
  .photo-workspace { grid-template-columns: 280px minmax(0, 1fr); }
  .capture-rules { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 {
    font-size: clamp(51px, 6.5vw, 76px);
  }

  .quiz-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .question-aside {
    padding: 35px 24px;
  }

  .question-number {
    font-size: 88px;
  }
}

@media (max-width: 860px) {
  :root { --header-height: 0px; }

  .header-status { display: none; }

  .photo-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "guide"
      "capture"
      "strip"
      "footer";
  }

  .pose-guide {
    min-height: 410px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pose-model {
    width: 190px;
    margin: 0 auto;
  }

  .pose-instructions {
    margin-top: 4px;
  }

  .photo-strip {
    padding: 18px 24px 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .screen-hero {
    min-height: 100svh;
    padding: 0 var(--page-padding) 26px;
    display: flex;
    align-items: flex-end;
  }

  .screen-hero::before {
    background:
      linear-gradient(180deg, rgba(247, 247, 247, 0.15) 0%, rgba(247, 247, 247, 0.2) 27%, rgba(247, 247, 247, 0.9) 61%, rgba(247, 247, 247, 0.99) 100%),
      linear-gradient(90deg, rgba(247, 247, 247, 0.38), transparent 80%);
  }

  .hero-copy {
    width: min(680px, 100%);
    max-width: 680px;
    padding: clamp(210px, 34vh, 320px) 0 24px;
  }

  .hero-logo {
    width: clamp(185px, 36vw, 220px);
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(47px, 11vw, 74px);
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    margin: 0;
  }

  .hero-frame {
    object-position: var(--hero-object-position-mobile, 67% center);
  }

  .quiz-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .question-aside {
    min-height: 130px;
    padding: 20px 27px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .question-number {
    font-size: 75px;
  }

  .question-aside p {
    max-width: 330px;
    margin-left: auto;
    font-size: 18px;
    text-align: right;
  }

  .aside-orbit {
    left: 17%;
    bottom: -125px;
  }

  .screen-contact,
  .screen-paywall,
  .screen-thankyou {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    padding-top: 38px;
  }

  .visagism-reading,
  .method-sources {
    grid-template-columns: 1fr;
  }

  .video-placeholder {
    width: 180px;
  }

  .checkout-card {
    max-width: 540px;
  }

  .delivery-receipt {
    width: min(540px, 100%);
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .result-media {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  :root { --page-padding: 18px; }

  body[data-active-screen="hero"],
  body[data-active-screen="quiz"] {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body[data-active-screen="hero"] #app,
  body[data-active-screen="quiz"] #app {
    height: 100%;
    min-height: 0;
  }

  .brand small { display: none; }

  .screen {
    padding-top: calc(var(--header-height) + 23px);
  }

  .screen-photos {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .photo-header {
    margin-top: 4px;
    gap: 18px;
  }

  .photo-header h2 {
    font-size: 39px;
  }

  .photo-security {
    width: 100%;
    min-width: 0;
  }

  .photo-workspace {
    min-height: 0;
    border-radius: 14px;
  }

  .pose-guide {
    min-height: 355px;
    padding: 22px;
  }

  .pose-model {
    width: 150px;
  }

  .pose-instructions {
    padding-top: 16px;
  }

  .pose-instructions h3 {
    font-size: 29px;
  }

  .capture-panel {
    padding: 18px;
  }

  .capture-rules {
    grid-template-columns: 1fr 1fr;
  }

  .capture-rules span {
    min-height: 42px;
    font-size: 11px;
  }

  .camera-frame {
    min-height: 360px;
  }

  .capture-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .capture-actions > * {
    width: 100%;
    justify-content: center;
  }

  .photo-upload-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .camera-live-topline,
  .camera-live-actions {
    right: 14px;
    left: 14px;
  }

  .camera-live-actions > span {
    width: 78px;
    font-size: 10px;
  }

  .camera-switch {
    width: 88px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .camera-empty strong {
    font-size: 16px;
  }

  .camera-empty small {
    font-size: 12px;
  }

  .photo-consent {
    font-size: 13px;
    line-height: 1.45;
  }

  .photo-upload-summary strong {
    font-size: 13px;
  }

  .photo-upload-summary span {
    font-size: 11px;
    line-height: 1.4;
  }

  .capture-hint {
    font-size: 11px;
    line-height: 1.45;
  }

  .photo-strip {
    padding-inline: 18px;
    grid-template-columns: repeat(3, 1fr);
  }

  .capture-footer {
    padding: 12px 18px 18px;
  }

  .photo-navigation {
    position: sticky;
    z-index: 9;
    bottom: max(8px, env(safe-area-inset-bottom));
    margin-right: -10px;
    margin-left: -10px;
    padding: 12px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .photo-navigation .primary-button {
    min-height: 48px;
  }

  .photo-status {
    padding-bottom: 8px;
  }

  .generation-preview {
    min-height: 560px;
    aspect-ratio: auto;
  }

  .generation-placeholder {
    padding: 24px 20px;
  }

  .generation-progress-head {
    align-items: flex-start;
  }

  .generation-percent {
    font-size: 70px;
  }

  .generation-estimate {
    max-width: 135px;
  }

  .generation-milestones span {
    font-size: 7px;
  }

  .screen-hero {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    padding:
      max(18px, env(safe-area-inset-top))
      var(--page-padding)
      calc(88px + env(safe-area-inset-bottom));
    align-items: stretch;
    overflow: clip;
  }

  .hero-media {
    height: 100%;
    min-height: 100%;
  }

  .screen-hero::before {
    background:
      linear-gradient(180deg, rgba(247, 247, 247, 0.94) 0%, rgba(247, 247, 247, 0.5) 18%, rgba(247, 247, 247, 0.04) 32%, rgba(247, 247, 247, 0.16) 49%, rgba(247, 247, 247, 0.95) 78%, rgba(247, 247, 247, 0.99) 100%),
      linear-gradient(90deg, rgba(247, 247, 247, 0.24), transparent 74%);
  }

  .hero-copy h1 {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    font-size: clamp(23px, 6.6vw, 27px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-align: center;
    text-wrap: balance;
  }

  .hero-copy h1 em {
    display: inline;
  }

  .hero-copy {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-logo {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    left: 0;
    width: clamp(148px, 42vw, 184px);
    margin: 0;
  }

  .hero-eyebrow {
    position: absolute;
    top: max(82px, calc(env(safe-area-inset-top) + 70px));
    left: 0;
    width: min(245px, calc(100vw - 36px));
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: 0.16em;
  }

  .hero-eyebrow span {
    padding: 3px 6px;
  }

  .hero-copy .spectrum-line,
  .hero-lead {
    display: none;
  }

  .hero-start {
    position: fixed;
    z-index: 12;
    right: var(--page-padding);
    bottom: max(12px, env(safe-area-inset-bottom));
    left: var(--page-padding);
    width: calc(100% - (var(--page-padding) * 2));
    min-height: 58px;
    justify-content: space-between;
    padding-inline: 22px;
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
    font-size: 15px;
  }

  .hero-start:hover {
    transform: none;
    background: var(--ink);
    color: var(--bg);
  }

  .hero-start-desktop {
    display: none;
  }

  .hero-start-mobile {
    display: inline;
  }

  .hero-notes {
    width: min(100%, 350px);
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-notes span {
    padding: 5px 7px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    white-space: nowrap;
  }

  .hero-notes b {
    font-size: 17px;
  }

  .hero-frame {
    object-position: var(--hero-object-position-mobile, 64% center);
  }

  .quiz-progress {
    width: 100%;
    margin: 0;
  }

  .progress-tools {
    gap: 7px;
  }

  .quiz-theme-switch button {
    min-width: 48px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .screen-quiz {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding:
      max(10px, env(safe-area-inset-top))
      12px
      max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .quiz-layout {
    height: auto;
    min-height: 0;
    margin-top: 10px;
    grid-template-columns: 1fr;
    border-radius: 12px;
    overflow: hidden;
  }

  .question-aside {
    display: none;
  }

  .question-panel {
    min-height: 0;
    padding: clamp(15px, 2.4vh, 22px) 15px 9px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .question-panel::-webkit-scrollbar {
    display: none;
  }

  .question-panel > .eyebrow {
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .question-panel h2 {
    width: 100%;
    max-width: 24ch;
    margin: 8px auto 7px;
    font-size: clamp(28px, 7.8vw, 35px);
    line-height: 1.05;
    text-align: center;
    text-wrap: balance;
  }

  .question-help {
    max-width: 34ch;
    margin-inline: auto;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
  }

  .question-media {
    margin-top: 11px;
  }

  .options {
    min-height: 0;
    margin-top: clamp(11px, 2vh, 17px);
    padding-right: 2px;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .option {
    min-height: 54px;
    padding: 9px 11px;
    gap: 10px;
    border-radius: 10px;
  }

  .option-marker {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 10px;
  }

  .option-text {
    font-size: 14px;
    line-height: 1.38;
  }

  .tone-swatch {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .question-actions {
    min-height: 39px;
    margin-top: auto;
    padding-top: 7px;
    gap: 10px;
    flex: 0 0 auto;
  }

  .question-actions .text-button {
    min-height: 38px;
    padding: 6px 0;
    font-size: 12px;
  }

  .auto-advance-hint {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .validation-message {
    margin-top: 6px;
    font-size: 11px;
  }

  .comparison-media {
    gap: 8px;
  }

  .temperature-card {
    min-height: 142px;
    padding: 11px;
  }

  .temperature-silhouette {
    width: 78px;
    height: 78px;
  }

  .temperature-caption strong {
    font-size: 11px;
  }

  .temperature-caption small {
    font-size: 9px;
  }

  .contact-visual blockquote {
    font-size: 46px;
  }

  .contact-card {
    padding: 27px 20px;
  }

  .screen-analysis h2 {
    font-size: 45px;
  }

  .analysis-list {
    max-width: 300px;
    gap: 7px 14px;
  }

  .screen-paywall {
    padding-top: calc(var(--header-height) + 40px);
  }

  .screen-thankyou {
    padding-top: calc(var(--header-height) + 40px);
  }

  .thankyou-copy h2 {
    font-size: 49px;
  }

  .thankyou-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .thankyou-actions a,
  .thankyou-view-result {
    width: 100%;
    justify-content: center;
  }

  .delivery-receipt {
    padding: 28px 20px;
  }

  .paywall-teaser h2 {
    font-size: 49px;
  }

  .locked-preview {
    grid-template-columns: 1fr;
  }

  .locked-preview div,
  .locked-preview div:nth-child(odd),
  .locked-preview div:nth-last-child(-n+2) {
    min-height: 75px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .locked-preview div:last-child { border-bottom: 0; }

  .checkout-card {
    padding: 28px 20px;
  }

  .result-hero h2 {
    font-size: 65px;
  }

  .result-media {
    min-height: 430px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

  .result-card-wide {
    grid-column: auto;
  }

  .profile-facts {
    grid-template-columns: 1fr 1fr;
  }

  .transformation-levels {
    grid-template-columns: 1fr;
  }

  .delivery-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

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

  .toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  .hero-logo {
    width: 138px;
  }

  .hero-eyebrow {
    top: max(72px, calc(env(safe-area-inset-top) + 58px));
    width: min(225px, calc(100vw - 36px));
    font-size: 9px;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(23px, 6.4vw, 25px);
    text-align: center;
  }

  .hero-notes {
    margin-top: 9px;
  }

  .question-help {
    display: none;
  }

  .question-panel {
    padding-top: 11px;
  }

  .question-panel > .eyebrow {
    display: none;
  }

  .question-panel h2 {
    margin-top: 0;
    font-size: clamp(24px, 6.8vw, 29px);
  }

  .options {
    margin-top: 7px;
    gap: 4px;
  }

  .option {
    min-height: 50px;
    padding: 7px 9px;
  }

  .option-text {
    font-size: 14px;
    line-height: 1.32;
  }

  .question-actions {
    min-height: 34px;
    padding-top: 3px;
  }

  .temperature-card {
    min-height: 104px;
    padding: 8px;
  }

  .temperature-silhouette {
    width: 54px;
    height: 54px;
  }

  .temperature-caption strong {
    font-size: 10px;
  }

  .temperature-caption small {
    display: none;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  body[data-active-screen="hero"],
  body[data-active-screen="quiz"] {
    height: auto;
    overflow-y: auto;
    overscroll-behavior: auto;
  }

  .screen-hero,
  .screen-quiz {
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
  }

  .hero-start {
    position: static;
    width: auto;
    margin-top: 14px;
  }
}

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

  .hero-frame {
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: opacity 480ms ease !important;
  }

  .hero-camera-flash {
    display: none !important;
  }
}
