/* ============================================================
   Studioless — studio-quality headshots in the browser
   Palette: seamless-paper grey, ink, autofocus green, kraft
   Type: Archivo (display + body), IBM Plex Mono (HUD labels)
   ============================================================ */

:root {
  --paper: #f4f5f3;        /* studio seamless backdrop */
  --paper-deep: #e9ebe7;
  --ink: #171e26;          /* deep ink navy-charcoal */
  --ink-soft: #4a5560;
  --af-green: #1f9d55;     /* camera autofocus green */
  --af-green-dark: #157a41;
  --kraft: #c99b5f;        /* tungsten warmth */
  --white: #ffffff;
  --line: #d6d9d4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 30, 38, 0.08);
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- HUD / mono labels ---------- */
.hud {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--af-green-dark);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo .bracket { color: var(--af-green); font-family: var(--font-mono); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 10px; border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--af-green); outline-offset: 2px;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #22303d; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-green { background: var(--af-green); color: var(--white); }
.btn-green:hover { background: var(--af-green-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin: 14px 0 20px;
}
.hero h1 .accent { color: var(--af-green); }
.hero p.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); }
.hero-note strong { color: var(--af-green-dark); }

/* Viewfinder card — the signature element */
.viewfinder {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, #dfe3dd 0%, #cfd5cc 60%, #c3cabf 100%);
  box-shadow: var(--shadow);
  display: flex; align-items: flex-end; justify-content: center;
}
.viewfinder svg.silhouette { width: 72%; height: auto; opacity: 0.9; }
.vf-corner {
  position: absolute; width: 34px; height: 34px;
  border: 3px solid var(--af-green); border-radius: 2px;
}
.vf-corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.vf-corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.vf-corner.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.vf-corner.br { bottom: 18px; right: 18px; border-left: none; border-top: none; }
.vf-hud-top, .vf-hud-bottom {
  position: absolute; left: 0; right: 0; display: flex; justify-content: space-between;
  padding: 0 64px; pointer-events: none;
}
.vf-hud-top { top: 24px; }
.vf-hud-bottom { bottom: 24px; }
.vf-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(33.3% - 0.5px), rgba(23,30,38,0.12) 33.3%, transparent calc(33.3% + 0.5px)),
    linear-gradient(to right, transparent calc(66.6% - 0.5px), rgba(23,30,38,0.12) 66.6%, transparent calc(66.6% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.3% - 0.5px), rgba(23,30,38,0.12) 33.3%, transparent calc(33.3% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.6% - 0.5px), rgba(23,30,38,0.12) 66.6%, transparent calc(66.6% + 0.5px));
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0 12px;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step .hud { display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* Guide cards */
.guide { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  background: var(--paper); position: relative; overflow: hidden;
}
.card h3 { font-size: 1.08rem; font-weight: 700; margin: 10px 0 10px; }
.card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 12px; }
.card .do, .card .dont {
  font-size: 0.86rem; padding-left: 22px; position: relative; margin-top: 6px;
}
.card .do::before { content: "✓"; position: absolute; left: 0; color: var(--af-green-dark); font-weight: 700; }
.card .dont::before { content: "✕"; position: absolute; left: 0; color: #b0503c; font-weight: 700; }

/* Checklist strip */
.strip {
  background: var(--ink); color: var(--paper); padding: 26px 0;
}
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.strip-inner span::before { content: "▸ "; color: var(--af-green); }

/* Coming soon */
.soon-box {
  background: var(--ink); color: var(--paper); border-radius: 20px;
  padding: 54px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.soon-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 14px; }
.soon-box p { color: #b8c0c8; font-size: 0.98rem; }
.soon-box .hud { color: var(--kraft); }
.waitlist { display: flex; gap: 10px; }
.waitlist input {
  flex: 1; padding: 13px 16px; border-radius: 10px; border: 1px solid #3a4552;
  background: #202a35; color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
}
.waitlist input::placeholder { color: #7d8894; }
.form-note { font-size: 0.8rem; color: #8b949e; margin-top: 10px; }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 0.98rem; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 0.93rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot p { font-size: 0.85rem; color: var(--ink-soft); }

/* ============================================================
   STUDIO PAGE
   ============================================================ */
.studio-main { padding: 40px 0 80px; }
.studio-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }

.canvas-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.canvas-stage {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto;
  aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background:
    repeating-conic-gradient(#e8eae6 0% 25%, #f6f7f5 0% 50%) 0 0 / 22px 22px;
  touch-action: none;
}
.canvas-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.canvas-stage canvas:active { cursor: grabbing; }
.stage-guides {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.stage-guides.show { opacity: 1; }
.stage-corner { position: absolute; width: 26px; height: 26px; border: 2.5px solid var(--af-green); }
.stage-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.stage-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.stage-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.stage-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.drop-zone {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--line); border-radius: 10px; background: var(--paper);
  cursor: pointer; padding: 24px; z-index: 5;
}
.drop-zone.hidden { display: none; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--af-green); background: #eef4ee; }
.drop-zone .big { font-weight: 700; font-size: 1.05rem; }
.drop-zone .small { font-size: 0.85rem; color: var(--ink-soft); max-width: 34ch; }

.status-bar {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.status-text { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.status-text.working { color: var(--af-green-dark); }
.progress { height: 4px; background: var(--paper-deep); border-radius: 4px; overflow: hidden; flex: 1; min-width: 120px; display: none; }
.progress.show { display: block; }
.progress-fill { height: 100%; width: 30%; background: var(--af-green); border-radius: 4px; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

/* Controls panel */
.controls {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 84px;
}
.control-group h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px;
}
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch {
  aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--white) inset; }
.swatch.blur-opt {
  background: linear-gradient(135deg, #9aa7b0, #d5dbe0);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-family: var(--font-mono); color: var(--ink);
}

.slider-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.slider-row label { display: flex; justify-content: space-between; font-size: 0.83rem; font-weight: 500; }
.slider-row label span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
input[type="range"] {
  width: 100%; accent-color: var(--af-green); height: 22px;
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; font-weight: 500; }

.dl-row { display: flex; flex-direction: column; gap: 10px; }
.dl-row .btn { width: 100%; text-align: center; }
select.size-select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 0.9rem; background: var(--paper); color: var(--ink);
}

.mini-note { font-size: 0.78rem; color: var(--ink-soft); }
.mini-note a { color: var(--af-green-dark); }

.studio-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.studio-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .viewfinder { max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .soon-box { grid-template-columns: 1fr; padding: 40px 28px; }
  .studio-grid { grid-template-columns: 1fr; }
  .controls { position: static; }
}
@media (max-width: 600px) {
  .steps, .cards { grid-template-columns: 1fr; }
  .nav-links li.hide-mobile { display: none; }
  .waitlist { flex-direction: column; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .vf-hud-top, .vf-hud-bottom { padding: 0 60px; }
}
