/* Journey Hue
   Layout: one narrow phone column; the palettes are the only color on the page.
   One light theme on purpose: color judgment needs a neutral light ground, the way
   a draping studio uses neutral gray. The ground is Munsell N9-ish gray, not cream. */
:root {
  --ground: #ededeb;      /* ~Munsell N9 */
  --surface: #f8f8f7;     /* ~N9.5 */
  --ink: #18181a;         /* ~N1 */
  --ink-2: #54555a;       /* ~N4 */
  --rule: #d6d6d3;        /* ~N8.5 */
  --focus: #2f5bd3;
  --warn-bg: #fdf3df;
  --warn-rule: #ead2a1;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--ground); color: var(--ink); font: 16px/1.5 var(--text); margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main, .top, .foot { max-width: 640px; margin-inline: auto; }
main { padding-block: 0 40px; }
h1, h2 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 9vw, 48px); font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.screen { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 8px 0 -8px; }
.lede { font-size: 18px; margin: 0; max-width: 60ch; }
.fine { font-size: 14px; color: var(--ink-2); margin: 0; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 15px; }

.top { display: flex; justify-content: space-between; align-items: center; padding-block: 14px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.top nav { display: flex; gap: 16px; }
.navlink { font-size: 14px; font-weight: 600; text-decoration: none; }

.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1 1 140px; }
.btn { display: block; text-align: center; padding: 14px 18px; border-radius: 999px; font: 600 16px var(--text);
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--ink); color: var(--surface); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .35; pointer-events: none; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.link { font-weight: 600; }
.mini-btn { font: 600 13px var(--text); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }

/* home */
.chips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 4px; }
.chips span { aspect-ratio: 1; border-radius: 4px; }
.how { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; counter-reset: s; }
.how li { background: var(--surface); padding: 14px 16px 14px 52px; position: relative; counter-increment: s; }
.how li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--ink); font: 600 13px/21px var(--text); text-align: center; }
.how b { display: block; }
.how span { color: var(--ink-2); font-size: 15px; }
.note { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.note p { margin: 0; }
.testflag { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; margin: 0; }

/* prep */
.checklist { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; font-size: 15px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }

/* live camera */
.viewfinder { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink); aspect-ratio: 3/4; max-width: 100%; max-height: 70vh; margin-inline: auto; width: 100%; }
.viewfinder video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.oval { position: absolute; left: 24%; right: 24%; top: 10%; height: 56%; border: 3px dashed rgba(255,255,255,.85); border-radius: 50%; }
.paper-hint { position: absolute; left: 30%; right: 30%; top: 70%; height: 12%; border: 2px solid rgba(255,255,255,.85); border-radius: 8px;
  color: #fff; font-size: 12px; display: grid; place-items: center; text-shadow: 0 1px 2px #000; }

/* photo */
.photo-wrap { position: relative; }
#photo { width: 100%; max-width: 100%; border-radius: var(--r); display: block; cursor: crosshair; }
.tapdot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.issues { background: var(--warn-bg); border: 1px solid var(--warn-rule); border-radius: 12px; padding: 4px 14px; font-size: 15px; }
.issues ul { padding-left: 18px; }

.spinner { width: 72px; height: 72px; border-radius: 50%; margin: 64px auto 0;
  background: conic-gradient(#e2a08c, #e3c167, #9cb683, #5fa3a6, #6a84ba, #9a76a8, #c27a8f, #e2a08c); animation: spin 1.4s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* drape */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drape-pick { padding: 0; border: 3px solid transparent; border-radius: var(--r); overflow: hidden; background: none; cursor: pointer; }
.drape-pick canvas { width: 100%; height: auto; display: block; }
.drape-pick:active { border-color: var(--ink); }

/* result */
.axes { display: grid; gap: 10px; }
.axis .lbl { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 13px; }
.axis .bar { height: 6px; border-radius: 99px; background: var(--rule); position: relative; margin-top: 6px; }
.axis .bar i { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.swatches.small { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.sw { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: flex-end; padding: 5px; font-size: 10px; line-height: 1.1; }
.card-preview { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.card-preview img { width: min(100%, 360px); border-radius: 10px; border: 1px solid var(--rule); }
.feedback label { font-size: 14px; font-weight: 600; margin-top: 4px; }
.feedback select, .feedback textarea, .filters select { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); font: 16px var(--text); color: var(--ink); }
.feedback .btn { margin-top: 6px; }

/* shop */
.demo-banner { margin: 0; font-size: 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--ink-2); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { grid-column: 1 / -1; display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; padding: 10px; border: 0; background: transparent; font: 600 15px var(--text); color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--surface); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.item .pic { aspect-ratio: 4/5; max-width: 100%; display: grid; place-items: center; background: #f2f2f0; }
.item .pic svg { width: 76%; height: 76%; }
.item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.item .meta { padding: 10px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.item .brand { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.item .dots { display: flex; gap: 4px; margin-top: auto; padding-top: 4px; }
.item .dots span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.item .tag { font-size: 11px; font-weight: 600; }

/* pick */
.season-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.season-btn { padding: 12px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); text-align: left; cursor: pointer; font: 600 15px var(--text); color: var(--ink); }
.season-btn .mini { display: flex; height: 12px; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.season-btn .mini span { flex: 1; }

/* katelin */
.offer { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.offer h3 { margin: 0; font: 600 17px var(--text); display: flex; justify-content: space-between; gap: 10px; }
.offer p { margin: 0; color: var(--ink-2); }
#offers { display: flex; flex-direction: column; gap: 10px; }
.email { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; user-select: all; }

.foot { color: var(--ink-2); font-size: 13px; padding-block: 8px 32px; text-align: center; }
