@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #090909;
  --muted: #60646c;
  --line: #dedfe2;
  --paper: #fff;
  --accent: #273555;
  --accent-dark: #1d2945;
  --accent-soft: #f0f2f6;
  --green: #050505;
  --green-dark: #242424;
  --cream: #f6f6f7;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f5f6f8;
}

.shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 36px 0 26px; }
.brand { display: flex; min-height: 64px; align-items: center; gap: 16px; margin: 0 6px 24px; }
.brand-lockup { display: flex; align-items: center; }
.brand-logo { width: 188px; height: 62px; object-fit: contain; object-position: left center; }
.brand-wordmark { color: var(--ink); font-size: 29px; font-weight: 800; letter-spacing: -.045em; }
.brand-wordmark strong { color: inherit; }
.secure-label { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.secure-label svg { width: 16px; fill: none; stroke: var(--green-dark); stroke-width: 1.8; }

.card { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 56px); background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 13%, transparent); }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 7px; background: linear-gradient(90deg, var(--green) 0 31%, var(--accent) 31% 100%); }
.card::after { content: ""; position: absolute; right: -80px; top: -120px; width: 230px; height: 230px; border: 28px solid color-mix(in srgb, var(--accent) 5%, transparent); border-radius: 50%; pointer-events: none; }
.eyebrow { color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { position: relative; z-index: 1; margin: 12px 0 14px; max-width: 590px; font-family: Rockwell, "Rockwell Nova", Georgia, serif; font-size: clamp(35px, 7vw, 54px); font-weight: 700; line-height: 1.03; letter-spacing: -.035em; }
.intro, .result p { margin: 0 0 32px; max-width: 570px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.field-group { position: relative; z-index: 1; margin-bottom: 20px; }
.field-group label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.field-group label span { color: #b42318; }
.field-group input { width: 100%; padding: 14px 15px; border: 1.5px solid #b9bec6; border-radius: 6px; outline: none; color: var(--ink); background: white; font: inherit; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease; }
.field-group input::placeholder { color: #8b9097; }
.field-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 11%, transparent); }
.field-group small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.drop-zone { position: relative; z-index: 1; display: flex; min-height: 230px; padding: 28px; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #a8c8d9; border-radius: 8px; background: #fafdff; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 9%, transparent); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; color: white; background: var(--accent); border-radius: 50%; box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 24%, transparent); }
.upload-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-size: 17px; font-weight: 750; }
.drop-subtitle { margin-top: 5px; color: var(--muted); font-size: 14px; }
.linklike { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.file-limit { margin-top: 18px; color: #8a9492; font-size: 12px; }

.file-row { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.file-badge { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--accent); border-radius: 6px; font-size: 10px; font-weight: 850; }
.file-meta { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.file-meta strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { margin-top: 3px; color: var(--muted); }
.remove { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 23px; }
.remove:hover { color: #9f3029; background: #fbecea; }

.primary { position: relative; z-index: 1; width: 100%; margin-top: 18px; padding: 16px 22px; border: 0; border-radius: 6px; color: white; background: var(--green); box-shadow: 0 8px 22px color-mix(in srgb, var(--green) 24%, transparent); cursor: pointer; font: inherit; font-weight: 800; letter-spacing: .01em; transition: .2s ease; }
.primary:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.privacy { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 18px auto 0; color: #7c8785; font-size: 12px; line-height: 1.45; text-align: center; }
.privacy svg { flex: 0 0 15px; width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.error { margin-top: 14px; padding: 12px 14px; color: #8b2822; background: #fceceb; border-radius: 10px; font-size: 13px; }

.result { min-height: 450px; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; }
.success-icon, .invalid-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 25px; border-radius: 50%; background: #eef7e5; color: var(--green-dark); font-size: 30px; }
.invalid-icon { color: #9b413b; background: #faecea; font-family: Georgia, serif; }
.receipt { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--cream); border-radius: 12px; color: var(--muted); font-size: 13px; }
.receipt strong { color: var(--ink); }
.spinner { width: 32px; height: 32px; margin: 50px auto 15px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
#loading-state p { margin: 0 auto 50px; color: var(--muted); text-align: center; }
footer { margin-top: 22px; color: #718595; font-size: 11px; text-align: center; letter-spacing: .04em; }
footer span { margin: 0 6px; }
.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 16px; }
  .brand { margin-bottom: 18px; }
  .brand-logo { width: 156px; height: 54px; }
  .secure-label { display: none; }
  .card { border-radius: 18px; }
  .drop-zone { min-height: 205px; padding: 22px 15px; }
  .receipt { align-items: flex-start; gap: 5px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; } }
