:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --cream: #f4f6f8;
  --paper: #fff;
  --line: #d8dee7;
  --green: #172b4d;
  --green-dark: #0b1f3a;
  --green-soft: #edf2f7;
  --orange: #6b7f9e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(23, 43, 77, 0.045), transparent 25rem),
    radial-gradient(circle at 92% 48%, rgba(107, 127, 158, 0.07), transparent 28rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #243b62, #142846);
  box-shadow: 0 5px 12px rgba(23, 43, 77, 0.18);
}

.brand-mark svg {
  width: 19px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signin-link,
.dashboard-link,
.logout-button {
  padding: 9px 15px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--green);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 150ms ease;
}

.signin-link:hover,
.dashboard-link:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.logout-button {
  border: 1px solid #c8d0dc;
  color: var(--green);
  background: white;
}

.logout-button:hover {
  border-color: #aeb9c8;
  background: #f7f9fc;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 0;
}

.hero {
  margin-bottom: 36px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 19px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 18px;
  height: 2px;
  background: #8392a8;
}

h1 {
  margin: 0;
  font-family: inherit;
  font-weight: 750;
  font-size: clamp(40px, 6.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--green);
  font-style: normal;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.hero > p {
  max-width: 530px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.premium-features {
  display: flex;
  max-width: 620px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 0;
  padding: 0;
  flex-wrap: wrap;
  list-style: none;
}

.premium-features li {
  color: #526071;
  font-size: 13px;
  font-weight: 600;
}

.premium-features li + li::before {
  margin-right: 10px;
  color: #8b98aa;
  content: "•";
}

.upload-card {
  position: relative;
  padding: 13px;
  border: 1px solid #dfe4eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 24px 60px rgba(15, 31, 55, 0.08),
    0 3px 12px rgba(15, 31, 55, 0.04);
  backdrop-filter: blur(10px);
}

.drop-zone {
  padding: 30px 20px 28px;
  border: 1.5px dashed #bdc7d5;
  border-radius: 15px;
  text-align: center;
  transition: 180ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: var(--green);
  outline: none;
  background: #f7f9fc;
  transform: translateY(-1px);
}

.upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  place-items: center;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  color: var(--green);
  background: linear-gradient(145deg, #f7f9fc, #e9eef5);
  box-shadow: 0 7px 18px rgba(23, 43, 77, 0.08);
}

.upload-icon svg {
  width: 23px;
}

.drop-zone h2,
.success-panel h2 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 20px;
}

.drop-zone p,
.success-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.drop-zone p span {
  color: var(--green);
  font-weight: 600;
}

.drop-zone small {
  display: block;
  margin-top: 11px;
  color: #8993a4;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.file-panel,
.success-panel {
  padding: 24px;
}

.files-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.files-heading strong {
  color: var(--ink);
}

.files-heading button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.file-list {
  display: flex;
  max-height: 210px;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
}

.file-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
}

.file-icon,
.success-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: var(--green-soft);
}

.file-summary .file-icon {
  width: 36px;
  height: 36px;
}

.file-summary .file-icon svg {
  width: 18px;
}

.remove-one {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #7b8798;
  background: transparent;
  transition: 150ms ease;
}

.remove-one:hover,
.remove-one:focus-visible {
  border-color: #e0e5ec;
  outline: none;
  color: #b42318;
  background: #fff5f5;
}

.remove-one svg {
  width: 16px;
}

.file-icon svg {
  width: 21px;
}

.file-meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.file-meta strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta span {
  color: var(--muted);
  font-size: 12px;
}

.recipient-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  text-align: left;
}

.recipient-field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.recipient-field label span {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 400;
}

.recipient-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c8d0dc;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.recipient-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 43, 77, 0.1);
}

.recipient-field small {
  color: var(--muted);
  font-size: 10px;
}

.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: var(--green);
  box-shadow: 0 5px 14px rgba(23, 43, 77, 0.2);
  font-weight: 600;
  transition: 160ms ease;
}

.recaptcha-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.terms-check input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.terms-check a,
footer a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.terms-check a:hover,
footer a:hover {
  text-decoration: underline;
}

.primary-button:hover {
  background: var(--green-dark);
  box-shadow: 0 7px 18px rgba(23, 43, 77, 0.24);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.primary-button svg {
  width: 17px;
}

.progress-area {
  margin: 20px 1px 4px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ecf1;
}

#progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 120ms linear;
}

.success-panel {
  padding-block: 35px 30px;
  text-align: center;
}

.success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
}

.success-icon svg {
  width: 27px;
}

.download-list {
  display: flex;
  max-height: 220px;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  overflow-y: auto;
}

.email-status {
  margin: 13px 0 0 !important;
  padding: 10px 12px;
  border: 1px solid #cfe4d8;
  border-radius: 10px;
  color: #24603d !important;
  background: #f2faf5;
  font-size: 12px !important;
}

.email-status.is-error {
  border-color: #f1d0d0;
  color: #9b2c2c !important;
  background: #fff5f5;
}

.link-box {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.link-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.link-box button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.download-name {
  overflow: hidden;
  padding: 9px 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-all-button {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.text-button {
  margin-top: 21px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.error-message {
  margin: 0 24px 18px;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #f1d0d0;
  color: #9b2c2c;
  background: #fff5f5;
  font-size: 13px;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
}

.trust-row i {
  margin-right: 5px;
  color: #718096;
  font-style: normal;
  font-weight: 600;
}

.notice-open {
  overflow: hidden;
}

.notice-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(11, 31, 58, 0.62);
  backdrop-filter: blur(6px);
}

.notice-dialog {
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: white;
  box-shadow: 0 28px 70px rgba(11, 31, 58, 0.28);
}

.notice-label,
.contact-label {
  color: #4f6f9f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice-dialog h2,
.contact-intro h2 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: 25px;
}

.notice-dialog p,
.contact-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.notice-dialog .notice-question {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
}

.notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.notice-actions button {
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.notice-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

.notice-primary {
  border: 1px solid var(--green);
  color: white;
  background: var(--green);
}

.contact-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  width: min(900px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(23, 43, 77, 0.08);
}

.contact-form,
.contact-form label {
  display: flex;
  flex-direction: column;
}

.contact-form {
  gap: 16px;
}

.contact-form label {
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 400;
}

.contact-form input {
  padding: 11px 12px;
}

.contact-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6b86af;
  box-shadow: 0 0 0 3px rgba(61, 114, 198, 0.1);
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-submit-row small {
  color: var(--muted);
  font-size: 10px;
}

.contact-submit-row button {
  padding: 11px 19px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.contact-submit-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfe4d8;
  border-radius: 9px;
  color: #24603d;
  background: #f2faf5;
  font-size: 12px;
}

.contact-status.is-error {
  border-color: #f1d0d0;
  color: #9b2c2c;
  background: #fff5f5;
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 75px;
  padding: 24px 0 28px;
  border-top: 1px solid #dfe4eb;
  color: #7b8798;
  font-size: 11px;
}

footer nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 20px;
  }

  main {
    margin-top: 20px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero > p {
    font-size: 14px;
  }

  .drop-zone {
    padding: 25px 14px;
  }

  .file-panel,
  .success-panel {
    padding: 18px 10px;
  }

  .trust-row {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .notice-dialog {
    padding: 24px;
  }

  .notice-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 52px;
    padding: 24px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 52px;
  }

  footer nav {
    flex-wrap: wrap;
  }
}
