
:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  color: #fff;
  background: #000;
  --surface: #1c1c1e;
  --field: #161617;
  --secondary: #a1a1a6;
  --link: #2997ff;
  --border: rgba(255,255,255,.12);
  --error: #ffb4ab;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 64px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
a { color: var(--link); text-underline-offset: .2em; }
button, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.frame { width: min(100% - 40px, 480px); margin-inline: auto; }
.site-header { background: #000; padding-top: env(safe-area-inset-top, 0px); }
.navigation { min-height: 52px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 21px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 14px; color: var(--secondary); text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
main { flex: 1; padding-block: 40px; text-align: center; }
.intro { max-width: 820px; }
.home-page { position: relative; width: 100%; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: calc(var(--space-8) + var(--space-2) + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(var(--space-8) + var(--space-2) + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px)); text-align: center; }
.home-column { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; }
.hero { text-align: center; margin-inline: auto; width: 100%; }
h1 { font-size: clamp(40px, 4.5vw, 56px); line-height: 1.07; letter-spacing: -.022em; font-weight: 600; margin: 0 0 24px; }
p { margin: 0 0 17px; }
.intro p { color: var(--secondary); font-size: 21px; max-width: 680px; }
.hero h1 { font-size: clamp(36px, 11.2vw, 60px); font-weight: 700; letter-spacing: -.045em; margin: 0 0 var(--space-3); }
.hero p { margin: 0 0 var(--space-5); font-size: clamp(21px, 5.5vw, 26px); text-wrap: balance; }
.home-page .hero p { color: #ffffff; }
.home-page .hero .scan-terms { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--secondary); }
.scan-terms span { display: inline-block; max-width: 100%; }
.home-tagline { margin: 96px 0 0; color: #ffffff; font-size: 17px; font-weight: 500; }
.privacy-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.24); border-radius: 999px; padding: 8px 18px; color: #ffffff; font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.privacy-pill::after { content: ""; position: absolute; inset: -5px 0; }
.privacy-pill:hover { color: #ffffff; text-decoration: none; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.36); }
.privacy-pill:focus-visible { outline: 3px solid #8ecaff; outline-offset: 4px; }
.feature-list { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 56px 0 0; padding: 0; }
.feature-list li { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.feature-list svg { flex-shrink: 0; color: var(--link); }
.feature-list span { font-size: clamp(14px, 4.2vw, 17px); white-space: nowrap; }
.panel { border-radius: 18px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--border); }
.panel { margin-top: 48px; }
.scan { text-align: center; width: 100%; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.scan > * { margin: 0; }
.privacy-summary li { background: var(--field); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.privacy-summary p { margin: 0; color: var(--secondary); font-size: 16px; line-height: 1.6; }
.privacy-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 0 24px; padding: 0; }
.privacy-summary strong { display: block; margin-bottom: 12px; color: #f5f5f7; font-size: 18px; }
.actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.scan-action { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; vertical-align: middle; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; background: #0071e3; color: #fff; border-radius: 980px; padding: 11px 21px; font-size: 17px; font-weight: 400; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: #0072e4; }
.big-pill { display: flex; width: fit-content; max-width: 100%; margin-inline: auto; min-height: 48px; padding: 13px 34px; border-radius: 999px; background: #005eeb; color: #fff; font-size: 18px; font-weight: 500; white-space: nowrap; }
.big-pill:hover { background: #0066ee; }
button:disabled { cursor: default; background: var(--surface); color: var(--secondary); border-color: var(--border); }
button.secondary { background: var(--field); color: var(--secondary); border-color: var(--border); font-size: 14px; }
button.secondary:hover { background: #29292c; color: #f5f5f7; }
:focus-visible { outline: 3px solid #8ecaff; outline-offset: 4px; }
.account { color: var(--secondary); font-size: 13px; overflow-wrap: anywhere; }
.account strong { font-weight: 400; }
.scan-progress { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-3); text-align: center; color: var(--secondary); }
#progress-text { white-space: pre-line; }
.scan-progress, .scan-result { max-width: 100%; padding: var(--space-4); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.spinner { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--link); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.error { color: var(--error); }
.scan-result { line-height: 1.6; overflow-wrap: anywhere; }
.sheet-fallback { display: block; color: var(--secondary); font-size: 14px; }
.sheet-title { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }
button.copy-title { font-size: 14px; padding: var(--space-2) var(--space-3); margin: var(--space-1); }
#renew { padding: var(--space-4); border: 1px solid var(--border); border-radius: 18px; background: var(--field); }
#renew p { margin-bottom: var(--space-3); }
#renew .button, #renew button { margin: var(--space-1); }
.glass { width: min(390px, calc(100vw - 32px)); max-height: 90svh; overflow: auto; padding: 44px 24px 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: rgba(28,28,30,.87); backdrop-filter: blur(20px); color: #FFFFFF; text-align: center; }
#payment-status { white-space: pre-line; }
.signin-hint { margin: 16px 0 0; color: rgba(255,255,255,.82); font-size: 15px; }
.pricing-identity { display: grid; justify-items: center; gap: 8px; margin: 16px 0; text-align: center; }
#pricing-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.08); }
#pricing-email { font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
button.text-link, #pricing-switch, #stop-scan { display: inline; width: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #0a84ff; font-size: 15px; font-weight: 500; cursor: pointer; }
button.text-link:hover, #pricing-switch:hover, #stop-scan:hover { background: none; color: #409cff; text-decoration: underline; }
#pricing #pay { display: flex; width: 100%; margin-top: 12px; min-height: 44px; padding: 11px 21px; border-radius: 980px; }
#pricing-precheck, #pricing-warning { margin-top: 8px; }
#pricing-warning { color: #FFFFFF; }
.scan-account { margin: 8px 0 0; color: rgba(255,255,255,.86); }
#progress-account-label[hidden] + br { display: none !important; }
#stop-scan { display: none; margin-top: 8px; }
#stop-scan:not([hidden]) { display: inline; }

.glass::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.glass p { overflow-wrap: anywhere; }
.glass strong { font-size: 1.2em; }
.glass button + p { margin-top: 8px; }
button.glass-pill { color: #FFFFFF; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; backdrop-filter: blur(12px); }
button.glass-pill:hover { background: rgba(255,255,255,.14); }
.glass .close, .glass .back { background: transparent; color: #FFFFFF; }
.glass .close { position: absolute; right: 4px; top: 2px; font-size: 24px; }
.glass input { display: block; width: 100%; padding: 12px; margin: 8px 0 16px; border: 1px solid var(--border); border-radius: 12px; color: #FFFFFF; background: var(--field); font: inherit; }
.options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; }
select, textarea { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 12px 16px; border: 1px solid var(--secondary); border-radius: 12px; background: var(--field); color: inherit; }
textarea { resize: vertical; min-height: 8rem; margin-bottom: 24px; line-height: 1.47; }
.privacy { max-width: 820px; text-align: left; }
.privacy section + section { margin-top: 32px; }
#effort-hint { margin: 8px 0 0; font-size: 14px; color: var(--secondary); }
.privacy a { display: inline-flex; align-items: center; min-height: 44px; }
.privacy p:last-child { margin-bottom: 0; }
.site-footer { text-align: center; font-size: 13px; color: var(--secondary); padding-block: 12px; }
.site-footer a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: inherit; }
@media (max-width: 600px) {
  main { padding-block: 32px; }
  .navigation, nav { gap: 12px; }
  .brand { font-size: 17px; }
  nav a { font-size: 12px; }
  .intro p { font-size: 17px; }
  .intro.hero p { font-size: clamp(21px, 5.5vw, 24px); }
  .panel { margin-top: 32px; }
  .privacy-summary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 768px) {
  .home-column { max-width: 600px; }
  .hero h1 { font-size: 72px; line-height: 1.06; letter-spacing: -.04em; margin: 0 0 var(--space-4); }
  .hero p, .intro.hero p { font-size: 28px; margin: 0 0 var(--space-6); }
  .big-pill { padding: 16px 40px; font-size: 19px; font-weight: 600; }
  .feature-list { gap: 32px; margin: 56px 0 0; }
  .feature-list span { font-size: 17px; }
  .home-tagline { margin: 96px 0 0; }
  .privacy-pill { padding: 10px 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: spin 2.4s ease-in-out infinite; } .privacy-pill { transition: none; } }
.home-page .hero h1 { margin-bottom: 32px; }
.home-page[data-state] .hero, .home-page[data-state] .feature-list, .home-page[data-state] .home-tagline,
.home-page[data-state] .scan > .account, .home-page[data-state] #sign-out { display: none; }
.home-page[data-state] { --secondary: #FFFFFF; color: #FFFFFF; }
.home-page[data-state] .scan { gap: 24px; margin-top: 0; line-height: 1.5; }
.home-page[data-state] .scan-progress { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 16px; padding: 24px 20px; font-size: 22px; line-height: 1.5; color: #FFFFFF; text-align: center; }
.home-page[data-state] #progress-text { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.home-page[data-state] .spinner { width: 56px; height: 56px; border-width: 4px; border-color: rgba(255,255,255,.28); border-top-color: #FFFFFF; }
.home-page[data-state] #scan-notice, .home-page[data-state] .scan-account { font-size: 20px; line-height: 1.5; color: #FFFFFF; overflow-wrap: anywhere; }
.home-page[data-state] .scan-result { width: 100%; padding: 24px 20px; font-size: 22px; line-height: 1.5; }
.home-page[data-state="ready"] .scan-result { display: flex; flex-direction: column; gap: 20px; }
#ready-heading { margin: 0; color: #FFFFFF; font-size: 28px; line-height: 1.4; font-weight: 600; }
.home-page[data-state] .sheet-open, #history-new { align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 14px 20px; color: #FFFFFF; font-size: 20px; line-height: 1.4; text-decoration: none; }
.home-page[data-state] .sheet-fallback { font-size: 18px; font-weight: 400; line-height: 1.5; color: #FFFFFF; }
.home-page[data-state] button.copy-title { font-size: 18px; line-height: 1.4; color: #FFFFFF; }
.pricing-privacy { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; margin-top: 4px; color: #FFFFFF; font-size: 14px; line-height: 1.5; }
.home-page[data-state] [data-background-scan="true"] #sign-out { display: inline-flex; }
#pricing { width: min(480px, calc(100vw - 32px)); --secondary: #FFFFFF; }
#pricing p, #pricing button, #pricing a { color: #FFFFFF; }
#pricing button { border-radius: 999px; }
#pricing .text-link, #pricing #pricing-switch.text-link { padding: 2px 6px; text-decoration: underline; text-underline-offset: .16em; }
#pricing #pricing-switch:hover { color: #FFFFFF; }
#pricing #pay { overflow-wrap: anywhere; }
#pricing #pay:disabled { background: #363639; border-color: #66666a; }
#pricing-access { display: inline-block; padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
#pricing-headline { font-size: 21px; font-weight: 600; margin: 0; }
#pricing-subheading { margin: 4px 0 16px; }
#pricing-accounts { list-style: none; margin: 8px 0; padding: 0; text-align: center; }
#pricing-accounts li { padding: 8px 0; }
#pricing-accounts p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
#pricing-accounts label { cursor: pointer; max-width: 100%; }
#pricing .text-link, #pricing-accounts label, .scans-entry a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
#pricing-accounts input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; margin: 0 6px 0 0; padding: 0; vertical-align: middle; accent-color: #FFFFFF; }
#pricing-accounts strong { font-size: 1em; }
#pricing-total { margin-top: 16px; font-weight: 600; }
#pricing-consent, #pricing-reason { font-size: 14px; margin-bottom: 0; }
#payment-status:empty { display: none; }
#payment-status.error, #payment-status:not(:empty) { margin-top: 12px; padding: 12px 14px; border: 1px solid #f2c8c8; border-radius: 12px; color: #FFFFFF; font-size: 16px; font-weight: 600; line-height: 1.5; }
#payment-status a.button { display: inline-flex; margin: 8px 0 0; }
.scans-entry { margin: 16px 0 0; font-size: 15px; }
.history-section { display: none; }
.scans-page { justify-content: flex-start; padding-top: calc(32px + env(safe-area-inset-top, 0px)); }
.scans-page .history-section { display: block; width: 100%; }
.scans-page .scans-entry, .scans-page .hero, .scans-page .feature-list, .scans-page .home-tagline,
.scans-page #ready-heading, .scans-page #progress-account { display: none; }
.scans-page[data-tracked] #progress, .scans-page[data-tracked="ready"] #result[data-delivered="true"],
.scans-page[data-tracked="paused"]:not([data-continuing]) :is(#result, #renew),
.scans-page[data-tracked="paused"][data-continuing]:has(#result:not([hidden]), #renew:not([hidden])) #history-current .history-continue,
.scans-page[data-viewer-paused][data-tracked="in_progress"] #history-current .scan-progress,
.scans-page[data-tracked="failed"] #result[data-failed="true"] { display: none; }
.scans-page .home-column { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.scans-page[data-state] .scan { display: contents; }
.scans-page[data-state] #sign-out { display: inline-flex; justify-self: center; order: 2; }
.scans-page #history-sign-out { justify-self: center; }
.history-card { padding-block: 20px; width: 100%; }
.history-card time { display: block; color: var(--secondary); margin-bottom: 10px; font-size: 14px; }
.history-clock { white-space: pre-line; }
.history-card .scan-progress { margin: 0; }
.history-status { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.history-continue p { margin-bottom: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.history-card a { display: inline-flex; align-items: center; min-height: 44px; }
#history-older .history-card { border-top: 1px solid var(--border); }
#history-older .sheet-open { width: auto; min-height: 44px; font-size: 17px; }
.tab-counts { width: min(100%, 320px); margin: 16px auto 0; }
.tab-counts div { display: flex; justify-content: space-between; gap: 16px; }
.tab-counts dd { margin: 0; font-variant-numeric: tabular-nums; }
.scans-help { font-size: 15px; color: #bcbcc0; margin: 24px 0 8px; }
