/* =========================================================================
   Zee Links Passport Photo Studio — Design system & layout
   ========================================================================= */

:root {
  --brand: #4f46e5;
  --brand-strong: #3f37c9;
  --brand-soft: #eef0ff;
  --accent: #06b6d4;
  --accent-soft: #e0f7fb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --canvas: #f6f8fc;
  --ok: #16a34a;
  --warn: #f59e0b;
  --bad: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -25px rgba(15, 23, 42, .35);
  --maxw: 1180px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img, canvas, video { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------- typography */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 7px 14px;
}
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 13px 22px; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover:not(:disabled) { background: #1e293b; }
.btn-sm { padding: 9px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--brand); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; cursor: pointer; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -8%, var(--accent-soft), transparent 62%),
    radial-gradient(760px 420px at 8% 0%, var(--brand-soft), transparent 60%),
    var(--surface);
  padding: clamp(48px, 7vw, 84px) 0 clamp(52px, 8vw, 92px);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin: 20px 0 18px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-trust div { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.hero-trust i { color: var(--ok); }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: .82rem; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; padding-bottom: 34px; }
.compare {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 16px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.compare figure { margin: 0; }
.compare .shot {
  aspect-ratio: 35 / 45; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); position: relative;
  display: grid; place-items: center;
}
.compare .shot.before { background: linear-gradient(160deg, #cbd5e1, #94a3b8); }
.compare .shot.after { background: #fff; }
.compare .shot svg { width: 78%; height: auto; }
.compare figcaption {
  margin-top: 10px; text-align: center; font-size: .78rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.compare .after + figcaption { color: var(--ok); }
.floating-badge {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
  font-size: .84rem; font-weight: 700;
}
.floating-badge i { color: var(--ok); }

/* ----------------------------------------------------------------- studio */
.studio { background: var(--canvas); }
.studio-shell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.steps-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line); background: #fbfcfe;
}
.step-chip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 12px; font-size: .9rem; font-weight: 700; color: var(--muted);
  border-right: 1px solid var(--line);
}
.step-chip:last-child { border-right: 0; }
.step-chip span.n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: var(--muted); font-size: .8rem;
}
.step-chip.active { color: var(--brand); background: var(--surface); }
.step-chip.active span.n { background: var(--brand); color: #fff; }
.step-chip.done span.n { background: var(--ok); color: #fff; }
.step-chip.done { color: var(--ok); }

.studio-body { display: grid; grid-template-columns: 1.15fr .85fr; }
.studio-main { padding: clamp(20px, 3vw, 34px); border-right: 1px solid var(--line); }
.studio-side { padding: clamp(20px, 3vw, 34px); background: #fbfcfe; }

.dropzone {
  border: 2px dashed #c7d2fe; border-radius: 18px; background: var(--brand-soft);
  padding: clamp(28px, 5vw, 52px) 20px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--brand); background: #e7e9ff; transform: translateY(-2px); }
.dropzone .icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; background: var(--surface);
  color: var(--brand); font-size: 1.5rem; box-shadow: var(--shadow-sm);
}
.dropzone h3 { margin-bottom: 6px; }
.dropzone p { color: var(--muted); font-size: .9rem; }
.dropzone .zone-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.hint-list { margin-top: 20px; display: grid; gap: 8px; }
.hint-list li { list-style: none; display: flex; gap: 9px; font-size: .86rem; color: var(--ink-2); }
.hint-list i { color: var(--brand); margin-top: 4px; }

.stage {
  border-radius: 18px; border: 1px solid var(--line); background:
    repeating-conic-gradient(#eef2f7 0% 25%, #f8fafc 0% 50%) 50% / 22px 22px;
  display: grid; place-items: center; padding: 22px; min-height: 340px;
}
.stage img { max-height: 420px; border-radius: 8px; box-shadow: var(--shadow); }
.stage-empty { color: var(--muted); text-align: center; font-size: .9rem; }

.stage-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.stage-toolbar .spacer { margin-left: auto; }
.toggle-guides {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem;
  font-weight: 600; color: var(--ink-2); cursor: pointer;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field select, .field input[type="text"] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: .92rem; outline: none;
}
.field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 38px; height: 38px; border-radius: 11px; border: 2px solid var(--line);
  cursor: pointer; position: relative; transition: transform .15s;
}
.swatch:hover { transform: scale(1.07); }
.swatch.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.sliders { display: grid; gap: 14px; }
.slider-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.slider-row label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.slider-row output { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider-row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--brand); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.switch-row:last-of-type { border-bottom: 0; }
.switch-row span { font-size: .88rem; font-weight: 600; }
.switch-row small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.switch { position: relative; width: 44px; height: 25px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px;
  transition: .2s; cursor: pointer;
}
.switch i::after {
  content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(19px); }

.summary { display: grid; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; font-size: .85rem; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 700; text-align: right; }

.spec-note {
  margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  background: var(--accent-soft); color: #0e7490; font-size: .82rem; display: flex; gap: 10px;
}

/* --------------------------------------------------------------- results */
.results-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow-sm);
}
.result-card h3 { margin-bottom: 4px; }
.result-card p.meta { color: var(--muted); font-size: .82rem; margin-bottom: 16px; }
.result-frame {
  background: #f1f5f9; border-radius: 12px; padding: 16px; display: grid;
  place-items: center; min-height: 220px;
}
.result-frame img { box-shadow: var(--shadow); border-radius: 4px; max-height: 380px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.checks { display: grid; gap: 10px; margin-top: 18px; }
.check {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px;
  border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); font-size: .85rem;
}
.check i { margin-top: 3px; }
.check.pass i { color: var(--ok); }
.check.warn i { color: var(--warn); }
.check.fail i { color: var(--bad); }
.check strong { display: block; font-size: .86rem; }
.check small { color: var(--muted); }

/* -------------------------------------------------------------- features */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.15rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px 24px;
}
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -16px; left: 24px;
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9rem; }

.size-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.size-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.size-table th, .size-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.size-table th { background: #f8fafc; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.size-table tbody tr:hover { background: #fbfcfe; }
.size-table td.use { text-align: right; }
.table-scroll { overflow-x: auto; }

.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\002B"; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 12px; color: var(--muted); font-size: .92rem; }

.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong) 55%, var(--accent));
  color: #fff; border-radius: 24px; padding: clamp(34px, 6vw, 60px); text-align: center;
}
.cta-band p { opacity: .9; margin: 14px auto 26px; max-width: 540px; }
.cta-band .btn-ghost { background: #fff; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #cbd5e1; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding: 56px 0 34px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { display: block; font-size: .9rem; padding: 5px 0; color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #94a3b8; }
.site-footer p { font-size: .9rem; color: #94a3b8; margin-top: 14px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 20px 0; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: #94a3b8;
}

/* ------------------------------------------------------------------ misc */
.overlay {
  position: fixed; inset: 0; z-index: 90; display: none;
  place-items: center; background: rgba(15, 23, 42, .72); backdrop-filter: blur(4px); padding: 20px;
}
.overlay.open { display: grid; }
.overlay-card {
  background: var(--surface); border-radius: 20px; padding: 30px; text-align: center;
  max-width: 380px; width: 100%; box-shadow: var(--shadow-lg);
}
.spinner {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 18px;
  border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 16px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .25s; }

.modal { position: fixed; inset: 0; z-index: 95; display: none; place-items: center; background: rgba(15, 23, 42, .78); padding: 20px; }
.modal.open { display: grid; }
.modal-card { background: var(--surface); border-radius: 20px; padding: 22px; max-width: 620px; width: 100%; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-card video { width: 100%; border-radius: 14px; background: #000; transform: scaleX(-1); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 10px; max-width: 340px; }
.toast {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-lg); font-size: .88rem;
  animation: pop .25s ease;
}
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

.hidden { display: none !important; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-grid, .studio-body, .results-grid { grid-template-columns: 1fr; }
  .studio-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 14px 20px; box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta .btn { display: none; }
}
@media (max-width: 620px) {
  .steps-bar { grid-template-columns: 1fr; }
  .step-chip { border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn { width: 100%; }
  .hero-actions, .result-actions, .stage-toolbar { width: 100%; }
  .stage-toolbar .spacer { display: none; }
}

@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea { position: absolute; inset: 0; }
  #printArea img { width: 100%; }
}