/* OMEHU — shared styles for the website and the web app.
   Black, white, nothing else: the photos bring the colour. */

:root {
  --bg: #000;
  --surface: #111;
  --surface-2: #1a1a1a;
  --line: #2a2a2a;
  --text: #fff;
  --muted: #9b9b9b;
  --danger: #ff6b6b;
  --radius-tile: 28px;
  --radius-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Wordmark: wide-tracked capitals, the one "futuristic" signature */
.wordmark {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.32em;
  text-decoration: none;
  padding-left: 0.32em; /* optical centring of tracked text */
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.topbar .link { color: var(--muted); text-decoration: none; font-size: 15px; }
.topbar .link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--text);
  color: #000;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .25; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.btn.wide { width: 100%; }

/* ---------- Landing page ---------- */

.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(56px, 13vw, 148px);
  line-height: .92;
  letter-spacing: -0.055em;
  font-weight: 800;
  margin: 0 0 26px;
}
.hero p {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 34rem;
  margin: 0 auto 34px;
}
.beta { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* The You + Piece = Look strip */
.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.25fr;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 56px auto 0;
}
.eq-card {
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: var(--surface);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.eq-card svg { width: 46%; height: auto; stroke: #5c5c5c; }
.eq-card span {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; font-size: 13px; color: var(--muted);
}
.eq-card.look { background: var(--text); }
.eq-card.look svg { stroke: #000; }
.eq-card.look span { color: #555; }
.eq-sign { color: var(--muted); font-size: 26px; font-weight: 300; }

@media (prefers-reduced-motion: no-preference) {
  .eq-card.look { animation: flash 3.2s 1s infinite; }
  @keyframes flash {
    0%, 70% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    74% { box-shadow: 0 0 0 10px rgba(255,255,255,.35); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  }
}

.section { padding: 88px 0 0; }
.section h2 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 32px;
  font-weight: 800;
}
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: s;
  background: var(--surface);
  border-radius: 24px;
  padding: 26px;
}
.steps li::before {
  content: counter(s);
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--muted);
}
.steps strong { display: block; font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 14px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: 24px; padding: 26px; background: var(--surface); }
.panel.outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.panel h3 { margin: 0 0 12px; font-size: 20px; }
.panel ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.panel li + li { margin-top: 4px; }
.panel p { margin: 0; color: var(--muted); }

.closing { padding: 110px 0 40px; text-align: center; }
.closing h2 { font-size: clamp(40px, 8vw, 88px); letter-spacing: -0.05em; line-height: .95; margin: 0 0 30px; font-weight: 800; }

.footer {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  padding: 40px 0 48px; color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--line); margin-top: 60px;
}
.footer nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.doc { max-width: 42rem; padding: 40px 0 60px; }
.doc h1 { font-size: 44px; letter-spacing: -0.04em; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: #d4d4d4; }
.doc .fill { background: #3a3200; color: #ffe27a; padding: 0 4px; border-radius: 4px; }

/* ---------- Web app ---------- */

.app { max-width: 560px; margin: 0 auto; padding: 0 20px 48px; }
.app-title { font-size: 34px; letter-spacing: -0.04em; font-weight: 800; margin: 18px 0 6px; }
.app-sub { color: var(--muted); margin: 0 0 22px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-tile);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { box-shadow: inset 0 0 0 1.5px #555; }
.tile.drag { box-shadow: inset 0 0 0 2px var(--text); transform: scale(1.01); }
.tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tile .empty { padding: 16px; pointer-events: none; }
.tile .plus {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); display: grid; place-items: center;
  margin: 0 auto 14px; font-size: 28px; font-weight: 300;
}
.tile .label { font-weight: 700; font-size: 17px; }
.tile .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile .tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 5px 11px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  pointer-events: none;
}
.tile .remove {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.chip {
  border: 0; border-radius: var(--radius-pill);
  padding: 9px 16px; font-size: 15px; font-weight: 600;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); color: #000; }
.chips-label { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 20px; color: var(--muted); font-size: 14px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: #fff; flex: none; }

.error {
  margin: 0 0 16px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,107,107,.12); color: var(--danger); font-size: 15px;
}

/* Waiting screen */
.waiting { text-align: center; padding: 40px 0; }
.scan {
  position: relative; width: 62%; margin: 0 auto 28px; aspect-ratio: 3 / 4;
  border-radius: var(--radius-tile); overflow: hidden; background: var(--surface);
}
.scan img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: grayscale(1); }
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  top: -30%;
}
@media (prefers-reduced-motion: no-preference) {
  .scan::after { animation: scan 1.8s ease-in-out infinite; }
  @keyframes scan { to { top: 100%; } }
}
.waiting .step-text { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.waiting .timer { color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }

/* Result */
.result-frame {
  position: relative; border-radius: var(--radius-tile); overflow: hidden; background: var(--surface);
}
.result-frame img { width: 100%; }
.ai-badge {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
}
.flash { position: fixed; inset: 0; background: #fff; pointer-events: none; opacity: 0; z-index: 50; }
@media (prefers-reduced-motion: no-preference) {
  .flash.on { animation: flashout .7s ease-out; }
  @keyframes flashout { 0% { opacity: .9; } 100% { opacity: 0; } }
}
.actions { display: grid; gap: 10px; margin-top: 16px; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 16px; }

/* Invite gate */
.gate { padding: 60px 0; }
.field {
  width: 100%; min-height: 58px; border-radius: 18px; border: 0;
  background: var(--surface); color: var(--text); padding: 0 18px; font-size: 18px;
  letter-spacing: .12em; text-transform: uppercase; box-shadow: inset 0 0 0 1.5px var(--line);
}
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--text); }

.plain { background: none; border: 0; cursor: pointer; padding: 0; }
.field-label { display: block; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.gap-top { margin-top: 14px; }

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .equation { grid-template-columns: 1fr auto 1fr auto 1.25fr; gap: 6px; }
  .eq-sign { font-size: 18px; }
  .eq-card span { font-size: 11px; bottom: 8px; }
  .hero { padding-top: 48px; }
}
