/* IDShot design system */

:root {
  --ink-900: #0b1220;
  --ink-800: #16203a;
  --ink-700: #2a3550;
  --ink-500: #5a6580;
  --ink-400: #7b8598;
  --ink-300: #a8b0bf;
  --line: #e4e7ee;
  --line-strong: #d2d7e2;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef1f7;
  --canvas: #f4f5f9;

  --brand-600: #2f4bd8;
  --brand-500: #3f5fee;
  --brand-400: #6b83f5;
  --brand-50: #eef1fe;

  --ok-600: #12805c;
  --ok-50: #e6f6ef;
  --warn-600: #a35b00;
  --warn-50: #fdf2e1;
  --bad-600: #c0392b;
  --bad-50: #fdecea;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 6px -2px rgba(16, 24, 40, .04), 0 12px 20px -6px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .18);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-900: #f2f5fb; --ink-800: #e2e7f2; --ink-700: #c8d0e0;
    --ink-500: #98a2b8; --ink-400: #7e889e; --ink-300: #5c6478;
    --line: #232a3a; --line-strong: #313a4e;
    --surface: #141926; --surface-2: #1a2030; --surface-3: #212939;
    --canvas: #0d111b;
    --brand-600: #7f95ff; --brand-500: #6b83f5; --brand-400: #94a7ff; --brand-50: #1b2444;
    --ok-600: #4ade9f; --ok-50: #12291f;
    --warn-600: #f0b357; --warn-50: #2b2013;
    --bad-600: #ff8a7a; --bad-50: #2e1815;
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.018em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.024em; }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }
.tiny  { font-size: .8rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .86em; }
.stack > * + * { margin-top: 1rem; }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; font-size: 1.06rem; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(140deg, var(--brand-500), #8b5cf6);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.18);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-500); font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--ink-900); text-decoration: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-500); }
.btn-ghost { background: var(--surface); color: var(--ink-800); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--ink-500); }
.btn-quiet:hover { color: var(--ink-900); background: var(--surface-2); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 58px 0 26px; text-align: center; }
.hero p.lede { font-size: 1.14rem; color: var(--ink-500); max-width: 640px; margin: 0 auto 1.4rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 5px 13px 5px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: .8rem; font-weight: 550; color: var(--ink-700); box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-600); }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  color: var(--ink-500); font-size: .875rem; margin-top: 6px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--ok-600); flex: none; }

/* ── app shell ──────────────────────────────────────────────────────── */
.app {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden; margin: 26px 0 44px;
}
.app-grid { display: grid; grid-template-columns: minmax(0,1fr) 372px; height: min(720px, calc(100vh - 120px)); min-height: 560px; }
@media (max-width: 940px) {
  .app-grid { grid-template-columns: 1fr; height: auto; }
  .panel-body { max-height: none; }
}

.stage {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--brand-50) 55%, transparent), transparent 60%),
    var(--surface-2);
  display: grid; place-items: center; padding: 28px 24px; position: relative; min-height: 400px;
  overflow: auto;
}
.panel { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
@media (max-width: 940px) { .panel { border-left: 0; border-top: 1px solid var(--line); } }
.panel-body { padding: 20px; overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.panel-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* dropzone */
.dropzone {
  width: 100%; max-width: 460px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); padding: 44px 28px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand-500); background: var(--brand-50); }
.dropzone h3 { margin-bottom: 6px; }
.dz-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600);
}
.dropzone .or { margin: 14px 0 0; font-size: .84rem; color: var(--ink-400); }

/* preview */
.preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.photo-frame {
  background: #fff; padding: 8px; border-radius: 6px; box-shadow: var(--shadow-lg);
  line-height: 0; position: relative;
}
.photo-frame canvas, .photo-frame img { border-radius: 2px; max-height: min(56vh, 470px); width: auto; }
.frame-caption { font-size: .8rem; color: var(--ink-400); font-family: var(--mono); }
.stage-busy {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 10px;
  background: color-mix(in srgb, var(--surface-2) 84%, transparent); backdrop-filter: blur(3px); z-index: 5;
  text-align: center; padding: 20px;
}
.spinner {
  width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 10px;
  border: 2.5px solid var(--line-strong); border-top-color: var(--brand-600);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── form controls ──────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: block; font-size: .78rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-400); margin-bottom: 7px;
}
select, input[type="text"], input[type="search"] {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .94rem;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink-900);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%237b8598' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
input[type="range"] { width: 100%; accent-color: var(--brand-600); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong);
  cursor: pointer; position: relative; padding: 0; background-clip: padding-box;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-600); }
.swatch.original {
  background: linear-gradient(135deg, #fff 0 50%, #cbd2e0 50% 100%);
  font-size: 0;
}

.seg { display: flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  flex: 1; padding: 7px 10px; border: 0; background: transparent; font: inherit; font-size: .85rem;
  font-weight: 550; color: var(--ink-500); border-radius: 7px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-sm); }

.adjust-row { display: grid; grid-template-columns: 62px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 9px; font-size: .85rem; color: var(--ink-500); }
.adjust-row .val { font-family: var(--mono); font-size: .78rem; color: var(--ink-400); text-align: right; }

/* ── quality checklist ──────────────────────────────────────────────── */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.checks li:last-child { border-bottom: 0; }
.checks .ico { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 2px; }
.checks .pass .ico { background: var(--ok-50); color: var(--ok-600); }
.checks .warn .ico { background: var(--warn-50); color: var(--warn-600); }
.checks .fail .ico { background: var(--bad-50); color: var(--bad-600); }
.checks .txt strong { display: block; font-weight: 600; color: var(--ink-800); }
.checks .txt span { color: var(--ink-500); font-size: .82rem; }

.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: .88rem; }
.verdict.pass { background: var(--ok-50); color: var(--ok-600); }
.verdict.warn { background: var(--warn-50); color: var(--warn-600); }
.verdict.fail { background: var(--bad-50); color: var(--bad-600); }
.verdict strong { color: inherit; }

/* ── price / unlock ─────────────────────────────────────────────────── */
.price-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price { font-size: 1.9rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.03em; }
.price-was { text-decoration: line-through; color: var(--ink-400); font-size: 1rem; }
.price-note { font-size: .82rem; color: var(--ink-500); margin-bottom: 12px; }
.includes { list-style: none; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--ink-700); }
.includes li { display: flex; gap: 8px; padding: 3px 0; }
.includes li::before { content: "✓"; color: var(--ok-600); font-weight: 800; flex: none; }
.unlocked-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--ok-50); color: var(--ok-600); font-size: .8rem; font-weight: 650; }

/* ── generic sections ───────────────────────────────────────────────── */
section.band { padding: 56px 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.section-head p { color: var(--ink-500); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-500); font-size: .92rem; }
.card .ico-badge { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 14px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink-900); color: var(--canvas); display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--ink-500); font-size: .92rem; margin: 0; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.spec-chip {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-800); font-size: .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.spec-chip:hover { text-decoration: none; border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.spec-chip .flag { font-size: 1.15rem; line-height: 1; flex: none; }
.spec-chip .meta { display: block; font-size: .76rem; color: var(--ink-400); }

table.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.spec-table th, table.spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.spec-table th { width: 42%; color: var(--ink-500); font-weight: 550; background: var(--surface-2); }
table.spec-table tr:last-child th, table.spec-table tr:last-child td { border-bottom: 0; }

details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 16px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--ink-900); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink-400); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body { padding-bottom: 15px; color: var(--ink-500); font-size: .94rem; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

.notice { border-left: 3px solid var(--brand-500); background: var(--surface-2); padding: 13px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .88rem; color: var(--ink-500); }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 30px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { color: var(--ink-500); font-size: .9rem; }
.foot-grid a:hover { color: var(--ink-900); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--ink-400); font-size: .84rem; }

/* ── misc ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink-900); color: var(--canvas); padding: 11px 18px; border-radius: 10px;
  font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 200; max-width: min(92vw, 460px);
}
.toast.err { background: var(--bad-600); color: #fff; }
.hidden { display: none !important; }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.25em; color: var(--ink-700); }
.prose li { margin-bottom: .4em; }
