:root {
  --ink: #181816;
  --muted: #6f6c65;
  --paper: #f4f1ea;
  --card: #fbfaf6;
  --line: rgba(24, 24, 22, 0.14);
  --accent: #ff5c45;
  --accent-deep: #da3725;
  --soft-accent: rgba(255, 92, 69, 0.12);
  --shadow: 0 28px 80px rgba(48, 43, 31, 0.12);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 172, 117, 0.28), transparent 27rem),
    radial-gradient(circle at 4% 70%, rgba(225, 211, 170, 0.34), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button { cursor: pointer; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.16) 0 .45px, transparent .6px),
    radial-gradient(circle at 75% 70%, rgba(0,0,0,.13) 0 .4px, transparent .55px);
  background-size: 7px 9px, 11px 13px;
}

.topbar, footer, main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 2;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50% 50% 48% 16%;
  transform: rotate(-18deg);
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.08);
}

.privacy-pill, .eyebrow, .state-kicker, .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.115em;
  font-size: 0.72rem;
  font-weight: 760;
}

.privacy-pill {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
}

main { position: relative; z-index: 1; }

.hidden { display: none !important; }

.state-view {
  min-height: calc(100vh - 180px);
  padding: 72px 20px;
}

.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered h1 {
  max-width: 780px;
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.centered > p { max-width: 590px; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }

.state-kicker, .section-kicker { color: var(--accent-deep); }

.loader {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.password-form {
  width: min(540px, 100%);
  margin-top: 28px;
  text-align: left;
}

.password-form label {
  display: block;
  margin: 0 0 9px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.password-row {
  display: flex;
  padding: 6px;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.password-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 14px;
  background: transparent;
  font-size: 1rem;
}

.password-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft-accent), var(--shadow); }

.password-row button, .primary-action {
  border: 0;
  color: white;
  background: var(--ink);
  border-radius: 11px;
  padding: 14px 18px;
  font-weight: 750;
}

.password-row button:hover, .primary-action:hover { background: var(--accent-deep); }

.form-error { min-height: 1.5em; margin: 10px 4px 0; color: #b32418 !important; font-size: 0.86rem !important; }

.delivery { padding: 88px 0 48px; }

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(52px, 9vw, 128px);
}

.eyebrow { color: var(--accent-deep); }

.hero h1 {
  max-width: 790px;
  margin: 20px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 7.2vw, 7.8rem);
  line-height: 0.87;
  letter-spacing: -0.065em;
  font-weight: 500;
  text-wrap: balance;
}

.share-message {
  max-width: 610px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.primary-action {
  min-width: 232px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 18px 18px 18px 22px;
  border-radius: 999px;
  font-size: 1rem;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover { transform: translateY(-2px); }
.primary-action:disabled { cursor: wait; opacity: 0.65; transform: none; }

.button-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  font-size: 1.2rem;
}

.download-hint { margin: 13px 0 0 17px; color: var(--muted); font-size: 0.8rem; }

.summary-card {
  aspect-ratio: 0.82;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  background: var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.summary-orbit {
  position: absolute;
  inset: 0;
  opacity: 0.93;
}

.summary-orbit span { position: absolute; display: block; border-radius: 50%; }
.summary-orbit span:nth-child(1) { width: 72%; aspect-ratio: 1; top: -18%; right: -20%; background: var(--accent); }
.summary-orbit span:nth-child(2) { width: 56%; aspect-ratio: 1; top: 12%; left: -18%; border: 1px solid rgba(255,255,255,.35); }
.summary-orbit span:nth-child(3) { width: 12px; height: 12px; top: 15%; left: 17%; background: #f7d36e; box-shadow: 50px 36px 0 #f7d36e, 96px 5px 0 #f7d36e; }

.summary-data, .summary-footer { position: relative; z-index: 1; }

.summary-data { display: flex; align-items: baseline; gap: 11px; margin-bottom: 26px; }
.summary-number { font-family: Georgia, serif; font-size: clamp(4.5rem, 8vw, 7.4rem); line-height: .75; letter-spacing: -0.07em; }
.summary-label { color: rgba(255,255,255,.62); }
.summary-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); font-size: .78rem; }

.progress-panel {
  margin: 26px 0 110px;
  padding: clamp(25px, 5vw, 48px);
  color: white;
  background: var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.progress-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.progress-heading h2 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -0.035em; }
.progress-percent { color: var(--accent); font-family: Georgia, serif; font-size: 2.4rem; }
.progress-track { height: 5px; margin: 28px 0 15px; overflow: hidden; background: rgba(255,255,255,.16); border-radius: 999px; }
.progress-track span { width: 0; height: 100%; display: block; background: var(--accent); transition: width 220ms ease; }
.progress-detail { min-height: 1.4em; margin: 0; color: rgba(255,255,255,.62); font-size: .86rem; }
.secondary-action { margin-top: 18px; padding: 11px 15px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; }

.files-section { padding-top: 88px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -0.05em; }

.search-field input {
  width: min(270px, 30vw);
  padding: 12px 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
}
.search-field input:focus { border-color: var(--accent); }

.file-list { border-top: 1px solid var(--line); }
.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}
.file-name-wrap { min-width: 0; display: flex; align-items: center; gap: 14px; }
.file-type { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; color: var(--accent-deep); background: var(--soft-accent); border-radius: 12px; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.file-copy { min-width: 0; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 690; }
.file-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.file-size { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.file-download { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 50%; transition: border-color 150ms, background 150ms; }
.file-download:hover { background: var(--accent); border-color: var(--accent); }
.empty-list { padding: 50px 0; text-align: center; color: var(--muted); }

footer {
  min-height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.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; }

@media (max-width: 820px) {
  .topbar, footer, main { width: min(100% - 30px, 700px); }
  .topbar { min-height: 74px; }
  .privacy-pill { display: none; }
  .delivery { padding-top: 56px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 6.5rem); }
  .summary-card { width: min(420px, 100%); justify-self: center; }
  .progress-panel { margin-top: 74px; margin-bottom: 80px; }
  .files-section { padding-top: 66px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-field input { width: 100%; }
}

@media (max-width: 560px) {
  .password-row { flex-direction: column; }
  .password-row button { width: 100%; }
  .file-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .file-size { display: none; }
  .file-name-wrap { gap: 10px; }
  .progress-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
