@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0f1728;
  --ink-2: #344054;
  --muted: #5d6b82;
  --line: #e2e7ef;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --accent: #2346c4;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --ok: #12704a;
  --ok-soft: #e7f5ee;
  --warn: #9a5a06;
  --warn-soft: #fff6e6;
  --err: #b42318;
  --err-soft: #fef1f0;
  --shadow: 0 1px 2px rgba(16, 32, 72, .06), 0 8px 24px -8px rgba(16, 32, 72, .14);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0;
  font: 16px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img, canvas, video, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #9db4ff; outline-offset: 2px; border-radius: 6px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 249, .82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(226, 231, 239, .8); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a, a.pill { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover, a.pill:hover { color: var(--accent); }
@media (max-width: 420px) { .nav { display: none; } }
@media (max-width: 380px) { a.pill { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: #cfd7e4; }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn.lg { min-height: 56px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn.sm { min-height: 42px; padding: 0 14px; font-size: 15px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -6px rgba(35, 70, 196, .55); }
.btn.primary:hover { background: #1d3cae; box-shadow: 0 10px 24px -8px rgba(35, 70, 196, .6); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn.link { border: 0; background: none; color: var(--accent); min-height: 44px; padding: 0 6px; box-shadow: none; }
.btn.link:hover { transform: none; text-decoration: underline; }

/* Hero */
.hero-wrap { position: relative; padding: 36px 0 12px; overflow: hidden; }
.hero-wrap::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(35, 70, 196, .10), transparent 70%); pointer-events: none; }
.hero { position: relative; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 24px 20px 8px; } .hero-wrap { padding-top: 40px; } }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
h1 { font-size: clamp(34px, 6.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; margin: 0 0 8px; }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-2); margin: 0 0 8px; max-width: 34em; }
.hi { color: var(--muted); margin: 0 0 24px; }
.actions { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 520px; }
@media (min-width: 520px) { .actions { grid-template-columns: 1fr 1fr; } }
.tips-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; text-decoration: none; }
.tips-link:hover { text-decoration: underline; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; padding: 2px; border-radius: 50%; background: var(--ok-soft); box-sizing: content-box; }
.hero-art { margin: 0; justify-self: center; width: min(100%, 460px); }
.hero-art > svg { width: 100%; height: auto; overflow: visible; }
.art-label { font: 600 13px "Geist", system-ui, sans-serif; fill: var(--ink-2); }
.art-label.ok { fill: var(--ok); }
.dim path { stroke: #9aa6b8; stroke-width: 1.5; fill: none; }
.dim text { font: 500 12px "Geist", system-ui, sans-serif; fill: var(--muted); }
@media (max-width: 899px) { .hero-art { width: min(100%, 380px); order: 2; } }


/* Steps: one line of progress, not three boxes */
.steps { list-style: none; padding: 0; margin: 36px 0 8px; display: grid; gap: 18px; grid-template-columns: 1fr; position: relative; }
.steps li { display: flex; gap: 14px; align-items: flex-start; position: relative; }
.steps .num { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 650; font-size: 15px; color: var(--accent); background: var(--accent-soft); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.steps b { display: block; font-weight: 650; }
.steps span:not(.num) { color: var(--muted); font-size: 15px; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 4px; }
  .steps::before { content: ""; position: absolute; top: 21px; left: 34px; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, #c8d2e2 0 6px, transparent 6px 12px); }
  .steps li { flex-direction: column; gap: 12px; }
}

/* Alerts */
.alert { border-radius: var(--r-sm); padding: 12px 14px; margin: 16px 0; font-weight: 500; font-size: 15px; }
.alert.error { background: var(--err-soft); color: var(--err); border: 1px solid #f9d0cc; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f6dfb5; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #c3e6d4; }
.alert.info, .alert.busy { background: var(--accent-soft); color: #1d3a9e; border: 1px solid #d3defe; }
.alert.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Screens (camera / working / result) */
.screen { padding-top: 24px; padding-bottom: 32px; }
.cam {
  position: relative; background: #0b1220; border-radius: var(--r-lg); overflow: hidden; margin: 8px auto 16px; aspect-ratio: 3 / 4;
  width: min(100%, 480px, max(180px, calc((100vh - 220px) * .75)));
  width: min(100%, 480px, max(180px, calc((100svh - 220px) * .75)));
  box-shadow: var(--shadow);
}
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .guide { position: absolute; inset: 0; pointer-events: none; }
.cam-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#camera .spec { margin: 0 0 12px; }
@media (orientation: landscape) and (max-height: 540px) {
  #camera:not([hidden]) { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
  #camera .cam { margin: 8px 0; width: max(150px, calc((100vh - 100px) * .75)); width: max(150px, calc((100svh - 100px) * .75)); }
  #camera .cam-actions { flex-direction: column; align-items: stretch; }
}

/* Working: the user's own photo being scanned */
.working { display: grid; justify-items: center; gap: 22px; padding-top: 40px; }
.scan { position: relative; width: min(64vw, 240px); aspect-ratio: 35 / 45; border-radius: var(--r); overflow: hidden; background: #dfe5ee; box-shadow: var(--shadow); }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.beam { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(35, 70, 196, .28) 70%, rgba(255, 255, 255, .9) 98%, transparent); animation: beam 1.6s var(--ease) infinite alternate; }
@keyframes beam { from { transform: translateY(-40%); } to { transform: translateY(260%); } }
.progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 240px; }
.progress li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; transition: color .3s; }
.progress li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c8d2e2; box-sizing: border-box; flex: none; transition: all .3s; }
.progress li.active { color: var(--ink); }
.progress li.active::before { border-color: var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.progress li.done { color: var(--ink-2); }
.progress li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Result */
.result { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .result { grid-template-columns: minmax(300px, 380px) 1fr; gap: 40px; align-items: start; } .result-photo { position: sticky; top: 86px; } }
.photo { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.photo canvas, .photo img { width: auto; height: auto; max-width: 100%; max-height: 50vh; max-height: min(52svh, 405px); border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(16, 32, 72, .35); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.photo .badge { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; background: rgba(15, 23, 40, .78); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 8px; }
.spec { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.panel-title { font-size: 24px; margin: 0 0 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; padding: 8px 12px; border-radius: var(--r-sm); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: center / 14px no-repeat; }
.checks .pass { color: var(--ink-2); background: var(--surface); }
.checks .pass::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks .fail { color: var(--warn); background: var(--warn-soft); }
.checks .fail::before { background-color: #e49b1f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 17h.01' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0 0 16px; }
.seg legend { font-weight: 650; margin-bottom: 10px; padding: 0; }
.seg label { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; background: var(--surface); font-weight: 600; transition: border-color .18s, box-shadow .18s; }
.seg label:hover { border-color: #c4cfe2; }
.seg label small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.seg input { position: absolute; opacity: 0; }
.seg input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 16px -10px rgba(35, 70, 196, .6); }
.seg input:focus-visible + label { outline: 3px solid #9db4ff; outline-offset: 2px; }

details.adjust { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 16px; }
details.adjust summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; font-weight: 650; cursor: pointer; }
details.adjust summary::-webkit-details-marker { display: none; }
details.adjust summary span { color: var(--muted); font-weight: 400; font-size: 14px; }
details.adjust summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
details.adjust[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.adjust-body { padding: 0 16px 12px; }
.range { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; min-height: 44px; }
.range label { font-size: 14px; color: var(--muted); font-weight: 500; }
.range input { width: 100%; accent-color: var(--accent); height: 32px; }
.adj-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
#flip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.pay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.pay .btn { width: 100%; }
.pay .fine { color: var(--muted); font-size: 13px; margin: 10px 0 0; text-align: center; }
.back { margin-top: 10px; }
@media (max-width: 759px) {
  .pay { position: sticky; bottom: 0; z-index: 5; margin: 0 -20px; border-width: 1px 0 0; border-radius: 18px 18px 0 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -12px rgba(16, 32, 72, .25); }
  .pay .fine { font-size: 12px; margin-top: 6px; }
  .pay .alert { margin: 10px 0 0; }
}

/* Sections */
.section { padding: 72px 0; }
.section-lead { color: var(--ink-2); max-width: 40em; margin: 0 0 28px; font-size: 17px; }
.specs { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .spec-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.spec-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; background: var(--bg); border-radius: var(--r-lg); padding: 22px; }
.spec-fig { width: 96px; height: auto; }
.fig-frame { fill: #fff; stroke: #b9c4d6; stroke-width: 1.5; }
.fig-head { fill: none; stroke: var(--accent); stroke-width: 2; }
.fig-dim { stroke: #9aa6b8; stroke-width: 1.2; fill: none; }
.fig-eye { stroke: #e49b1f; stroke-width: 1.2; stroke-dasharray: 3 3; }
.fig-txt { font: 500 10px "Geist", system-ui, sans-serif; fill: var(--muted); }
.spec-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 15px; }
.spec-card dt { color: var(--muted); }
.spec-card dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .spec-card { grid-template-columns: 1fr; } .spec-fig { width: 84px; } }

.guide { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 900px) { .guide { grid-template-columns: .8fr 2fr; gap: 40px; } }
.guide h3 { font-size: 22px; letter-spacing: -.02em; }
.dos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 24px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .dos { grid-template-columns: 1fr 1fr; } }
.dos li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.dos li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: center / 14px no-repeat; }
.dos .do::before { background-color: var(--ok-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2312704a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dos .dont::before { background-color: var(--err-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }

.note { margin-top: 40px; border-left: 4px solid #e49b1f; background: var(--warn-soft); border-radius: 0 var(--r) var(--r) 0; padding: 18px 20px; max-width: 760px; }
.note strong { display: block; margin-bottom: 4px; color: var(--warn); }
.note p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 2fr; gap: 40px; } .faq-head { position: sticky; top: 90px; align-self: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 4px; font-weight: 600; font-size: 17px; cursor: pointer; transition: color .18s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%232346c4' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 18px; padding-right: 44px; color: var(--ink-2); max-width: 44em; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Footer */
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 40px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .foot { grid-template-columns: 1.4fr 1fr; grid-template-areas: "brand links" "brand creator" "legal legal"; align-items: start; column-gap: 40px; }
  .foot-brand { grid-area: brand; } .foot-links { grid-area: links; justify-self: end; } .creator { grid-area: creator; justify-self: end; } .legal-line { grid-area: legal; }
}
.foot-brand p { margin: 10px 0 0; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--accent); }
.creator { margin: 0; color: var(--ink-2); }
.creator a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; margin-left: 4px; }
.creator a:hover { color: var(--accent); }
.creator svg { width: 16px; height: 16px; color: #0a66c2; }
.legal-line { margin: 0; grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 56px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); }
a.pill { white-space: nowrap; }
