:root {
  color-scheme: light;
  --ink: #17120f;
  --muted: #695f56;
  --line: #2a211c;
  --hairline: #ded1c3;
  --paper: #fff7ec;
  --surface: #fffdf8;
  --surface-strong: #f7e5d4;
  --blush: #f3b9a3;
  --coral: #ef5d46;
  --lime: #c6e86f;
  --cobalt: #2457c5;
  --plum: #5d315f;
  --focus: #17120f;
  --shadow: 8px 8px 0 rgba(23, 18, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 18, 15, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 247, 236, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(23, 18, 15, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, #efd1b8 0 24%, #f0bba8 24% 76%, #efd1b8 76%),
    #f0bba8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.62),
    2px 2px 0 rgba(23, 18, 15, 0.1);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 16px;
  height: 22px;
  border-radius: 50% 50% 48% 48%;
  background:
    radial-gradient(circle at 34% 54%, var(--ink) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 66% 54%, var(--ink) 0 1.4px, transparent 1.6px),
    linear-gradient(180deg, #3f2b24 0 29%, transparent 30%),
    #c98261;
  transform: translateX(-50%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--coral), var(--lime), var(--cobalt), var(--plum), var(--coral));
}

nav {
  display: flex;
  gap: 6px;
}

nav a {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  background: var(--surface-strong);
}

.hero,
.tool-band,
.results-band,
.closet-band,
.report-band,
.guide-band,
.policy-band {
  padding: clamp(40px, 7vw, 86px) clamp(16px, 4vw, 56px);
}

.brand {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.75fr);
  align-items: center;
  min-height: min(760px, calc(100svh - 150px));
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(239, 93, 70, 0.12) 58% 72%, transparent 72%),
    linear-gradient(0deg, rgba(198, 232, 111, 0.18), transparent 34%),
    var(--paper);
}

.hero-copy {
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(4.2rem, 11vw, 8rem);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.08;
  font-weight: 950;
}

h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.hero-text,
.section-heading p,
.guide-grid p,
.tester-panel p,
.empty-state p {
  color: var(--muted);
}

.hero-text {
  max-width: 610px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 950;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--coral);
}

.button.secondary,
.button.ghost {
  background: var(--surface);
  color: var(--ink);
}

.button.ghost {
  border-color: transparent;
  color: var(--muted);
}

.button:disabled {
  border-color: var(--line);
  background: #eee7dc;
  color: #928a80;
  box-shadow: none;
}

.hero-visual {
  display: flex;
  min-width: 0;
  justify-content: center;
}

.phone-preview {
  width: min(100%, 360px);
  min-height: 580px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.78)),
    linear-gradient(90deg, rgba(198, 232, 111, 0.28) 0 18%, transparent 18% 100%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.verdict-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--lime);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.preview-face {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(23, 18, 15, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(230, 95, 79, 0.16) 24% 76%, transparent 76%),
    #f2d5bf;
}

.preview-face span {
  width: 42%;
  aspect-ratio: 0.78;
  border-radius: 42% 42% 48% 48%;
  background:
    radial-gradient(circle at 34% 42%, #171717 0 3px, transparent 4px),
    radial-gradient(circle at 66% 42%, #171717 0 3px, transparent 4px),
    linear-gradient(#3f2e29 0 19%, transparent 20%),
    #c68568;
}

.preview-lines {
  display: grid;
  gap: 5px;
  margin-top: 20px;
}

.preview-lines strong {
  font-size: 1.35rem;
}

.preview-lines span {
  color: var(--muted);
}

.preview-swatches,
.swatch-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.preview-swatches span,
.swatch-row span {
  min-height: 54px;
  border: 2px solid rgba(23, 18, 15, 0.18);
  border-radius: 8px;
  background: var(--swatch);
}

.tool-band {
  background:
    linear-gradient(90deg, rgba(36, 87, 197, 0.08) 0 14%, transparent 14%),
    var(--surface);
  border-bottom: 2px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 9px 10px;
  color: var(--muted);
  font-weight: 950;
}

.flow-steps li.is-active,
.flow-steps li.is-done {
  border-color: var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.flow-steps li.is-active {
  box-shadow: 3px 3px 0 rgba(23, 18, 15, 0.12);
}

.flow-steps span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
}

.app-grid,
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.app-grid > *,
.results-layout > *,
.report-layout > *,
.closet-layout > * {
  min-width: 0;
}

.panel,
.result-panel,
.tester-panel,
.report-offer,
.full-report,
.example-report,
.guide-grid article {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(23, 18, 15, 0.1);
}

.panel,
.result-panel,
.tester-panel,
.full-report,
.example-report {
  padding: clamp(16px, 3vw, 26px);
}

fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.calibration-details {
  margin-bottom: 22px;
  border: 2px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.calibration-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 950;
}

.calibration-details summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--lime);
}

.calibration-details[open] summary::after {
  content: "-";
}

.calibration-details summary small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.calibration-details fieldset {
  margin: 0;
  border-top: 2px solid var(--hairline);
  padding: 14px 12px 2px;
}

legend {
  margin-bottom: 12px;
  font-weight: 900;
}

.photo-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-box {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 86px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(90deg, rgba(198, 232, 111, 0.2), transparent 44%), #fffdf8;
}

.upload-box:hover {
  background: linear-gradient(90deg, rgba(239, 93, 70, 0.12), transparent 52%), #fffdf8;
}

.camera-card {
  text-align: left;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--lime);
  font-size: 1.8rem;
  font-weight: 300;
}

.upload-box small,
.form-help,
.status-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-box strong,
.upload-box small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.camera-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.camera-panel[hidden],
.camera-card[hidden] {
  display: none;
}

.camera-panel video {
  width: 100%;
  max-height: 360px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  object-fit: cover;
  aspect-ratio: 1;
}

.camera-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.field-group {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

label {
  font-weight: 750;
}

select,
input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--hairline);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
}

.preview-panel {
  position: sticky;
  top: 82px;
}

.photo-stage,
.tryon-stage {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #f1ebe4 25%, transparent 25%),
    linear-gradient(-45deg, #f1ebe4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1ebe4 75%),
    linear-gradient(-45deg, transparent 75%, #f1ebe4 75%);
  background-color: #fffdf8;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

#photoCanvas,
#tryOnCanvas {
  display: none;
  width: 100%;
  height: auto;
}

.photo-stage.has-photo #photoCanvas,
.tryon-stage.has-photo #tryOnCanvas {
  display: block;
}

.empty-preview {
  display: grid;
  max-width: 270px;
  place-items: center;
  gap: 12px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.photo-stage.has-photo .empty-preview,
.tryon-stage.has-photo .empty-preview {
  display: none;
}

.empty-preview span {
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 10deg, #e65f4f, #f2b64b, #b7d96b, #2457c5, #8b5cc7, #e65f4f);
}

.analysis-meter {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  font-weight: 850;
}

.meter-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.meter-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--lime), var(--cobalt));
  transition: width 220ms ease;
}

.sample-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 2px solid var(--hairline);
  padding-top: 16px;
}

.sample-panel p {
  margin: 0;
  color: var(--muted);
}

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

.sample-button {
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 950;
}

.sample-button.is-active {
  background: var(--lime);
}

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

.sample-readout span {
  min-height: 34px;
  border: 2px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 8px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.sample-readout span.is-done {
  border-color: var(--line);
  background: var(--lime);
  color: var(--ink);
}

.sample-readout span.is-missing {
  border-color: var(--coral);
  color: var(--ink);
}

.sample-validation {
  border: 2px solid var(--hairline);
  border-radius: 8px;
  background: #fffdf8;
  padding: 9px 10px;
  font-weight: 850;
}

.sample-validation[data-tone="error"] {
  border-color: var(--coral);
  background: rgba(239, 93, 70, 0.1);
  color: var(--ink);
}

.sample-validation[data-tone="success"] {
  border-color: var(--line);
  background: rgba(198, 232, 111, 0.28);
  color: var(--ink);
}

.receipt-tip {
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(198, 232, 111, 0.24), transparent 54%),
    #fffdf8;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 800;
}

.results-band {
  background:
    linear-gradient(90deg, rgba(239, 93, 70, 0.12) 0 18%, transparent 18%),
    #f7f1e8;
  border-bottom: 2px solid var(--line);
}

.result-panel {
  min-height: 360px;
}

.tester-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.tester-panel h3,
.tester-panel p {
  margin: 0;
}

.tryon-stage {
  min-height: 280px;
  margin-top: 8px;
}

.empty-state {
  display: grid;
  min-height: 300px;
  align-content: center;
  gap: 8px;
}

.result-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.result-content p {
  color: var(--muted);
}

.result-score {
  display: grid;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fffdf8;
  text-align: center;
}

.result-score span {
  font-size: 1.4rem;
  font-weight: 900;
}

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

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.recommendation-grid div {
  border-top: 2px solid var(--hairline);
  padding-top: 12px;
}

.recommendation-grid p {
  margin: 0;
  color: var(--muted);
}

.drape-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.drape-grid .locked-tool {
  grid-column: 1 / -1;
}

.drape-button {
  min-height: 54px;
  border: 2px solid rgba(23, 18, 15, 0.24);
  border-radius: 8px;
  background: var(--drape);
}

.drape-button[aria-pressed="true"] {
  box-shadow: 0 0 0 4px var(--ink);
}

.closet-band,
.report-band,
.guide-band {
  background: var(--paper);
}

.report-band {
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(93, 49, 95, 0.12) 0 24%, transparent 24%),
    var(--surface);
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.example-report {
  margin-top: 18px;
}

.report-offer {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.report-offer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checkout-profile {
  display: grid;
  gap: 8px;
  border-top: 2px solid var(--hairline);
  padding-top: 16px;
}

.checkout-profile h4,
.checkout-profile p {
  margin: 0;
}

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

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-weight: 750;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.restore-form {
  display: grid;
  gap: 8px;
  border-top: 2px solid var(--hairline);
  padding-top: 16px;
}

.restore-form h4,
.restore-form p {
  margin: 0;
}

.full-report.locked {
  min-height: 280px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.report-tile {
  border-top: 2px solid var(--hairline);
  padding-top: 12px;
}

.report-tile p {
  margin: 0;
  color: var(--muted);
}

.report-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.report-stat {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.report-stat strong {
  display: block;
  font-size: 1.35rem;
}

.report-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.report-stat p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.report-code-box,
.report-methodology {
  margin-top: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(198, 232, 111, 0.2), transparent 48%),
    #fffdf8;
  padding: 14px;
}

.report-code-box strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.report-code-box p,
.report-methodology p {
  margin: 8px 0 0;
  color: var(--muted);
}

.report-methodology h4 {
  margin: 0;
}

.locked-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  filter: saturate(0.25);
}

.locked-palette span {
  min-height: 64px;
  border: 2px solid rgba(23, 18, 15, 0.18);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(23, 18, 15, 0.12) 0 8px, transparent 8px 16px),
    var(--surface-strong);
}

.locked-tool {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(198, 232, 111, 0.22), transparent 52%),
    #fffdf8;
  padding: 14px;
}

.locked-tool p {
  margin: 0;
  color: var(--muted);
}

.closet-band {
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(198, 232, 111, 0.2) 70% 86%, transparent 86%),
    var(--paper);
}

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

.policy-band {
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(36, 87, 197, 0.08) 0 18%, transparent 18%),
    var(--surface);
}

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

.policy-grid article {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(23, 18, 15, 0.1);
  padding: 20px;
}

.policy-grid p {
  margin: 0;
  color: var(--muted);
}

.policy-document {
  min-height: auto;
}

.policy-document + .policy-document {
  border-top: 0;
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(239, 93, 70, 0.1) 70% 86%, transparent 86%),
    var(--paper);
}

.policy-document h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.policy-grid h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.05;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 2px solid var(--line);
  background: var(--surface);
  padding: 12px clamp(16px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.site-footer a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mobile-conversion-bar {
  display: none;
}

.mobile-conversion-bar div {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-conversion-bar span,
.mobile-conversion-bar small {
  display: block;
  color: var(--muted);
}

.mobile-conversion-bar span {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mobile-conversion-bar strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
}

.mobile-conversion-bar small {
  margin-top: 2px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-conversion-bar .button {
  width: auto;
  min-width: 118px;
  min-height: 44px;
  flex: 0 0 auto;
  padding-right: 12px;
  padding-left: 12px;
}

.closet-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

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

.coming-card {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(23, 18, 15, 0.1);
  padding: 20px;
}

.coming-card p {
  color: var(--muted);
}

.coming-illustration {
  display: block;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 22%, rgba(239, 93, 70, 0.2), transparent 26%),
    radial-gradient(circle at 88% 78%, rgba(198, 232, 111, 0.32), transparent 26%),
    linear-gradient(90deg, rgba(239, 93, 70, 0.12), transparent 52%),
    #fffdf8;
}

.coming-illustration::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(23, 18, 15, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0 32%, transparent 32%),
    rgba(255, 253, 248, 0.54);
}

.closet-rail,
.closet-shirt,
.closet-pants,
.closet-bag,
.closet-chip,
.closet-score,
.makeup-compact,
.makeup-blush,
.makeup-lipstick,
.makeup-cap,
.makeup-pencil,
.makeup-swatch {
  position: absolute;
  border: 2px solid var(--line);
}

.closet-rail {
  top: 38px;
  right: 36px;
  left: 36px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
}

.closet-shirt {
  top: 56px;
  left: 50%;
  width: 104px;
  height: 96px;
  border-radius: 18px 18px 34px 34px;
  background: #bd8061;
  transform: translateX(-56px);
}

.closet-shirt::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 35px;
  width: 30px;
  height: 24px;
  border: 2px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.closet-pants {
  right: 42px;
  bottom: 30px;
  width: 70px;
  height: 88px;
  border-radius: 10px 10px 20px 20px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(23, 18, 15, 0.18) 46% 54%, transparent 54%),
    #63734c;
}

.closet-bag {
  bottom: 34px;
  left: 42px;
  width: 72px;
  height: 62px;
  border-radius: 12px 12px 18px 18px;
  background: #c6a15b;
}

.closet-bag::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 19px;
  width: 30px;
  height: 24px;
  border: 2px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.closet-score {
  top: 58px;
  right: 34px;
  min-width: 58px;
  min-height: 32px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 28px;
  text-align: center;
}

.closet-chip {
  bottom: 26px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.closet-chip.one {
  left: calc(50% - 42px);
  background: #63734c;
}

.closet-chip.two {
  left: calc(50% - 8px);
  background: #bd8061;
}

.closet-chip.three {
  left: calc(50% + 26px);
  background: #c6a15b;
}

.makeup-compact {
  top: 38px;
  left: 38px;
  width: 118px;
  height: 118px;
  border-radius: 18px;
  background: #fff7ec;
  box-shadow: 5px 5px 0 rgba(23, 18, 15, 0.12);
}

.makeup-compact::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(23, 18, 15, 0.2);
  border-radius: 50%;
  background: #f4ddc5;
}

.makeup-blush {
  top: 72px;
  left: 72px;
  width: 50px;
  height: 50px;
  border-color: rgba(23, 18, 15, 0.26);
  border-radius: 50%;
  background: #bd8061;
}

.makeup-lipstick {
  right: 70px;
  bottom: 34px;
  width: 46px;
  height: 98px;
  border-radius: 10px;
  background: #9a5268;
  transform: rotate(-12deg);
}

.makeup-cap {
  right: 68px;
  bottom: 120px;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: var(--lime);
  transform: rotate(-12deg);
}

.makeup-pencil {
  right: 34px;
  top: 54px;
  width: 24px;
  height: 112px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #17120f 0 16px, #c6a15b 16px 74px, #bd8061 74px);
  transform: rotate(18deg);
}

.makeup-swatch {
  bottom: 30px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.makeup-swatch.one {
  left: 170px;
  background: #e3c7a4;
}

.makeup-swatch.two {
  left: 214px;
  background: #9a5268;
}

.notify-card {
  display: grid;
  align-content: start;
}

.account-panel,
.checker-panel,
.guide-grid article {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(23, 18, 15, 0.1);
}

.account-panel,
.checker-panel,
.guide-grid article {
  padding: 20px;
}

.account-status,
.checker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.plan-pill,
.lock-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.plan-pill.is-plus,
.lock-pill.is-unlocked {
  border-color: var(--line);
  background: var(--lime);
  color: var(--ink);
}

.account-form {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.mini-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.mini-swatches span {
  min-height: 42px;
  border: 2px solid rgba(23, 18, 15, 0.16);
  border-radius: 6px;
  background: var(--swatch);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    display: none;
  }

  nav a {
    min-width: 0;
  }

  nav a[href="#guide"] {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .phone-preview {
    min-height: auto;
  }

  .app-grid,
  .results-layout,
  .report-layout,
  .closet-layout,
  .coming-soon-grid,
  .guide-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 540px) {
  body {
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .site-header {
    padding: 12px 14px;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero,
  .tool-band,
  .results-band,
  .report-band,
  .closet-band,
  .guide-band,
  .policy-band {
    padding-right: 14px;
    padding-left: 14px;
    max-width: 100vw;
    overflow: hidden;
  }

  h1 {
    width: min(100%, 9ch);
    max-width: 9ch;
    font-size: clamp(2.25rem, 10.5vw, 2.8rem);
    line-height: 1;
  }

  .policy-document h1 {
    width: 100%;
    max-width: 10ch;
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .site-footer {
    flex-wrap: wrap;
    padding-right: 14px;
    padding-left: 14px;
  }

  .button {
    width: 100%;
  }

  .hero {
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 34px;
  }

  .hero-text {
    width: calc(100vw - 28px);
    max-width: 34ch;
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .phone-preview {
    width: min(100%, 340px);
    padding: 18px;
  }

  .preview-swatches span,
  .swatch-row span {
    min-height: 42px;
  }

  .swatch-row {
    gap: 5px;
  }

  nav a {
    flex: 1;
    padding-right: 7px;
    padding-left: 7px;
    text-align: center;
  }

  .site-header nav,
  .app-grid,
  .results-layout,
  .report-layout,
  .closet-layout,
  .hero-copy,
  .hero-actions,
  .hero-visual {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero-actions {
    max-width: 340px;
  }

  .flow-steps {
    position: sticky;
    top: 70px;
    z-index: 7;
    width: min(100%, 340px);
    max-width: 340px;
    margin-bottom: 12px;
    background: rgba(255, 253, 248, 0.9);
    backdrop-filter: blur(12px);
  }

  .flow-steps li {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 8px 5px;
    font-size: 0.76rem;
    text-align: center;
  }

  .flow-steps span {
    width: 22px;
    height: 22px;
  }

  .section-heading,
  .panel,
  .preview-panel,
  .result-panel,
  .tester-panel,
  .report-offer,
  .full-report,
  .example-report,
  .account-panel,
  .checker-panel,
  .coming-card,
  .guide-grid article,
  .policy-grid article {
    width: 100%;
    max-width: 100%;
  }

  .panel,
  .preview-panel,
  .result-panel,
  .tester-panel,
  .report-offer,
  .full-report,
  .example-report,
  .account-panel,
  .checker-panel,
  .coming-card,
  .guide-grid article,
  .policy-grid article {
    width: calc(100vw - 42px);
    max-width: calc(100vw - 42px);
  }

  .app-grid > .panel,
  .app-grid > .preview-panel,
  .results-layout > .result-panel,
  .results-layout > .tester-panel {
    width: min(100%, 340px);
    max-width: 340px;
  }

  .panel,
  .result-panel,
  .tester-panel,
  .report-offer,
  .full-report,
  .example-report,
  .coming-card,
  .guide-grid article,
  .policy-grid article {
    box-shadow: none;
  }

  .panel,
  .result-panel,
  .tester-panel,
  .full-report,
  .example-report {
    padding: 14px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

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

  .photo-choice,
  .camera-actions {
    grid-template-columns: 1fr;
  }

  .upload-box {
    min-height: 76px;
  }

  .calibration-details {
    margin-bottom: 16px;
  }

  .result-content {
    flex-direction: column;
  }

  .report-grid,
  .report-stat-row {
    grid-template-columns: 1fr;
  }

  .sample-readout {
    grid-template-columns: 1fr;
  }

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

  .sample-button {
    min-height: 38px;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
  }

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

  .analysis-meter {
    grid-template-columns: 1fr;
  }

  .photo-stage {
    min-height: 260px;
  }

  .tryon-stage {
    min-height: 230px;
  }

  .result-score {
    width: 82px;
    height: 82px;
  }

  .coming-illustration {
    min-height: 168px;
  }

  .mobile-conversion-bar {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 30;
    display: grid;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    gap: 8px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 -6px 24px rgba(23, 18, 15, 0.16);
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(14px);
  }

  .mobile-conversion-bar > div {
    width: 100%;
  }

  .mobile-conversion-bar > .button {
    width: 100%;
    max-width: none;
  }
}
