:root {
  color-scheme: light;
  --ink: #0a1028;
  --muted: #5d6478;
  --line: #dce1ee;
  --paper: #f7f8fc;
  --white: #ffffff;
  --blue: #2447ff;
  --blue-dark: #1531c9;
  --cyan: #59e3ff;
  --coral: #ff6a5c;
  --green: #0a8b5c;
  --shadow: 0 24px 80px rgba(29, 46, 109, 0.14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button, .button { touch-action: manipulation; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.topnav { display: flex; gap: 24px; align-items: center; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 650; }
.topnav a:hover, .topnav a:focus-visible { color: var(--blue); }
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cbd3ea;
  background: rgba(255,255,255,0.68);
  border-radius: 999px;
  padding: 7px 11px;
  color: #263151;
  font-size: 0.82rem;
  font-weight: 700;
}
.privacy-pill svg { color: var(--blue); }

main { overflow: hidden; }
.hero {
  position: relative;
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 11% 17%, rgba(89,227,255,.24), transparent 24%),
    radial-gradient(circle at 91% 38%, rgba(36,71,255,.15), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, var(--paper) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(28,45,107,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(28,45,107,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
  pointer-events: none;
}
.shell { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero-copy { max-width: 820px; margin-bottom: 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 850;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--coral); }
h1 {
  margin: 16px 0 14px;
  max-width: 760px;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 880;
}
.lead { margin: 0; max-width: 720px; color: #4e5872; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust-row span { background: white; border: 1px solid var(--line); padding: 8px 11px; border-radius: 9px; color: #39435f; font-size: .82rem; font-weight: 700; box-shadow: 0 4px 16px rgba(40,55,111,.05); }

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  background: var(--white);
  border: 1px solid #dbe0ee;
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-pane { padding: clamp(22px, 4vw, 40px); }
.tool-pane + .tool-pane { border-left: 1px solid var(--line); background: #fafbff; }
.pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.step-label { margin: 0 0 5px; color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.pane-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.03em; }
.text-button { border: 0; background: none; color: var(--muted); padding: 5px; cursor: pointer; font-size: .88rem; font-weight: 700; }
.text-button:hover { color: var(--blue); }

.drop-zone {
  min-height: 258px;
  border: 2px dashed #aab6dc;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  background: linear-gradient(145deg, #fbfcff, #f2f5ff);
  cursor: pointer;
  transition: .2s ease;
  outline: none;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--blue); background: #eef1ff; transform: translateY(-2px); }
.drop-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 20px; background: var(--blue); color: white; box-shadow: 0 12px 28px rgba(36,71,255,.25); }
.drop-icon svg { width: 28px; height: 28px; }
.drop-zone strong { display: block; font-size: 1.1rem; }
.drop-zone p { margin: 6px 0 18px; color: var(--muted); font-size: .9rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(36,71,255,.22);
  transition: .18s ease;
}
.button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(36,71,255,.28); outline-offset: 3px; }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button.secondary { background: var(--ink); box-shadow: none; }
.button.download { background: var(--green); box-shadow: 0 8px 22px rgba(10,139,92,.2); }

.file-preview {
  position: relative;
  min-height: 258px;
  border-radius: 20px;
  overflow: hidden;
  background: #0c1227;
}
.file-preview img { width: 100%; height: 258px; display: block; object-fit: cover; opacity: .76; }
.file-preview.no-preview::before { content: "HEIC preview is not supported in this browser · the metadata scan is separate"; position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; color: #cbd3e8; text-align: center; font-weight: 750; }
.file-preview.no-preview img { visibility: hidden; }
.file-overlay { position: absolute; inset: auto 0 0; padding: 46px 18px 18px; color: white; background: linear-gradient(transparent, rgba(5,9,25,.92)); }
.file-overlay strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-overlay span { color: #c9d0e5; font-size: .8rem; }

.mode-group { border: 0; margin: 22px 0 0; padding: 0; }
.mode-group legend { margin-bottom: 10px; font-size: .82rem; font-weight: 800; color: #4b5570; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option span { min-height: 72px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; cursor: pointer; background: white; transition: .16s ease; }
.mode-option strong { font-size: .88rem; }
.mode-option small { color: var(--muted); font-size: .75rem; }
.mode-option input:checked + span { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #f4f6ff; }
.mode-option input:focus-visible + span { outline: 3px solid rgba(36,71,255,.2); }

.stage-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 2px 0 22px; }
.stage { border-top: 4px solid #d9deeb; padding-top: 7px; color: #8a91a4; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stage.is-active { border-color: var(--coral); color: var(--ink); }
.stage.is-complete { border-color: var(--blue); color: var(--blue); }
.status-box { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.status-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; font-weight: 900; }
.status-idle { background: #edf0f8; color: #6c748a; }
.status-working { background: #eef1ff; color: var(--blue); animation: pulse 1.1s infinite alternate; }
.status-warning { background: #fff0ed; color: #c53f35; }
.status-success { background: #e8f7f0; color: var(--green); }
@keyframes pulse { to { transform: rotate(28deg); } }
.status-box p { margin: 0; }
.status-eyebrow { color: var(--muted); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 850; }
.status-title { margin-top: 2px !important; font-size: 1.05rem; font-weight: 850; line-height: 1.3; }
.status-copy { margin-top: 5px !important; color: var(--muted); font-size: .86rem; }

.map-panel { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; }
.map-panel iframe { width: 100%; height: 184px; border: 0; display: block; background: #e8edf4; }
.map-caption { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; color: var(--muted); font-size: .75rem; }
.map-caption svg { flex: 0 0 auto; color: var(--coral); margin-top: 2px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.action-row > :only-child { grid-column: 1 / -1; }
.tool-foot { display: flex; align-items: flex-start; gap: 8px; margin: 15px 2px 0; color: var(--muted); font-size: .76rem; }
.tool-foot svg { flex: 0 0 auto; margin-top: 2px; color: var(--blue); }

.content-section { padding: 100px 0; }
.content-section.dark { background: var(--ink); color: white; }
.section-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(48px, 8vw, 110px); align-items: start; }
.section-kicker { margin: 0 0 12px; color: var(--blue); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }
.dark .section-kicker { color: var(--cyan); }
.section-title { margin: 0; font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
.section-intro { margin: 20px 0 0; color: var(--muted); max-width: 520px; font-size: 1.02rem; }
.dark .section-intro { color: #b8c0d7; }
.story-list { display: grid; gap: 12px; }
.story-card { position: relative; padding: 22px 22px 22px 68px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.story-card b { position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; display: grid; place-items: center; background: #edf0ff; color: var(--blue); border-radius: 9px; font-size: .82rem; }
.story-card h3 { margin: 0 0 6px; font-size: 1rem; }
.story-card p { margin: 0; color: var(--muted); font-size: .91rem; }

.comparison-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid #303954; border-radius: 20px; }
.comparison { width: 100%; border-collapse: collapse; min-width: 720px; }
.comparison th, .comparison td { padding: 18px 20px; text-align: left; border-bottom: 1px solid #303954; }
.comparison th { color: #aeb8d2; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.comparison td { font-size: .91rem; color: #dfe4f2; }
.comparison td:first-child { color: white; font-weight: 800; }
.comparison tr:last-child td { border-bottom: 0; }
.best-row { background: rgba(36,71,255,.22); }
.yes { color: var(--cyan); font-weight: 800; }
.maybe { color: #ffc760; }

.proof-card { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: white; box-shadow: 0 16px 50px rgba(29,46,109,.1); }
.proof-copy { padding: 34px; }
.proof-copy h3 { margin: 8px 0 10px; font-size: 1.45rem; letter-spacing: -.03em; }
.proof-copy p { margin: 0; color: var(--muted); }
.proof-screen { padding: 24px; background: #0c1227; color: #d9e1f4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.window-dots { display: flex; gap: 7px; margin-bottom: 20px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff6a5c; }
.window-dots i:nth-child(2) { background: #ffc760; }
.window-dots i:nth-child(3) { background: #47d590; }
.proof-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 9px 0; border-bottom: 1px solid #232d49; }
.proof-row span:first-child { color: #8793b3; }
.proof-row .empty { color: #59e3ff; font-weight: 800; }
.proof-ok { display: flex; gap: 8px; align-items: center; margin-top: 19px; color: #65e7ab; font-weight: 800; }

.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 820; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); max-width: 690px; margin: 12px 0 0; }

.footer { background: #070b1b; color: white; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer p { margin: 5px 0 0; color: #8e98b4; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.footer-links a { color: #cbd3e8; text-decoration: none; font-size: .85rem; font-weight: 700; }
.footer-links a:hover { color: var(--cyan); }

.legal-main {
  min-height: calc(100vh - 224px);
  padding: 70px 0 110px;
  background:
    radial-gradient(circle at 8% 5%, rgba(89,227,255,.2), transparent 23%),
    linear-gradient(180deg, #fbfcff, var(--paper));
}
.legal-hero { max-width: 780px; margin-bottom: 44px; }
.legal-hero h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
.legal-card {
  max-width: 820px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 54px rgba(29,46,109,.1);
}
.legal-card h2 { margin: 32px 0 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0 0 14px; color: var(--muted); }
.legal-card ul { margin: 10px 0 18px; padding-left: 20px; color: var(--muted); }
.legal-card li + li { margin-top: 8px; }
.legal-note { padding: 16px 18px; margin: 20px 0; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: #f1f4ff; color: #313b59 !important; font-weight: 650; }
.legal-card .button { margin-top: 12px; }

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .tool-card, .section-grid, .proof-card { grid-template-columns: 1fr; }
  .tool-pane + .tool-pane { border-left: 0; border-top: 1px solid var(--line); }
  .section-grid { gap: 36px; }
  .topnav a:not(.privacy-pill) { display: none; }
}

@media (max-width: 580px) {
  .topbar, .shell { width: min(100% - 24px, 1180px); }
  .topbar { min-height: 66px; }
  .privacy-pill { font-size: .72rem; }
  .hero { padding: 34px 0 70px; }
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .tool-card { border-radius: 22px; }
  .tool-pane { padding: 18px; }
  .drop-zone { min-height: 230px; padding: 26px 18px; }
  .mode-options, .action-row { grid-template-columns: 1fr; }
  .content-section { padding: 72px 0; }
  .proof-copy { padding: 24px; }
  .proof-screen { padding: 20px; overflow-x: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .legal-main { padding: 46px 0 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
