:root {
  color-scheme: light;
  --ink: #14211d;
  --muted: #65716c;
  --line: #dce5df;
  --surface: #ffffff;
  --accent: #176b4d;
  --accent-hover: #10573e;
  --wash: #edf5f0;
  --danger: #a13b35;
  --shadow: 0 24px 80px rgba(25, 55, 43, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(52, 150, 107, 0.13), transparent 34rem),
    linear-gradient(145deg, #f7faf8 0%, #edf3ef 100%);
}

button, input { font: inherit; }

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.shell.compact {
  width: min(560px, calc(100% - 32px));
  padding-top: max(72px, 12vh);
}

.card {
  overflow: hidden;
  border: 1px solid rgba(213, 225, 218, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card { padding: clamp(28px, 6vw, 52px); }

.mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--accent);
  font-size: 24px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.unlock-form {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

label {
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #c9d6ce;
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fbfdfc;
  letter-spacing: 0.035em;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 107, 77, 0.11);
}

button, .download-button, .secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--accent);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.unlock-form button {
  min-height: 54px;
  margin-top: 4px;
}

button:hover, .download-button:hover, .secondary-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.secondary-button {
  width: 100%;
  margin-top: 12px;
  color: var(--accent);
  background: var(--wash);
}

.secondary-button:hover { color: white; }

.alert {
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid #efd0cb;
  border-radius: 12px;
  color: #8d302b;
  background: #fff2f0;
  font-size: 14px;
  line-height: 1.5;
}

.privacy-note {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.text-button {
  min-height: auto;
  padding: 10px 0;
  color: var(--muted);
  background: transparent;
}

.text-button:hover {
  color: var(--accent);
  background: transparent;
}

.file-card { border-radius: 20px; }
.file-list { margin: 0; padding: 0; list-style: none; }

.file-row {
  display: flex;
  min-height: 82px;
  padding: 15px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.file-row:last-child { border-bottom: 0; }

.file-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.file-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--wash);
  font-weight: 800;
}

.file-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.file-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.download-button, .copy-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.copy-button {
  border: 1px solid #c9d8cf;
  color: var(--accent);
  background: white;
}

.copy-button:hover {
  color: white;
  background: var(--accent);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100% - 48px));
  padding: 14px 18px;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

.toast.error { background: var(--danger); }

@media (max-width: 640px) {
  .shell { padding-top: 34px; }
  .page-header { align-items: flex-start; }
  .file-row { align-items: flex-start; flex-direction: column; }
  .file-main { width: 100%; }
  .actions { width: 100%; }
  .download-button, .copy-button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

