:root {
  --page: #f6f8fb;
  --prime: #eef2f5;
  --panel: #ffffff;
  --ink: #161b22;
  --muted: #59636f;
  --line: #d9e0e8;
  --red: #d21f2b;
  --red-dark: #aa1721;
  --green: #198754;
  --green-soft: #e0f6ea;
  --warning: #795200;
  --danger: #b3261e;
  --shadow: 0 18px 55px rgba(19, 28, 39, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(210, 31, 43, 0.18);
  background: #fff;
}

.header-inner {
  width: min(1320px, calc(100% - 32px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}

.site-title {
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #3b4654;
  font-weight: 800;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--red);
  background: #fff1f2;
}

.prime-area {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 46px 16px 54px;
  background:
    linear-gradient(180deg, rgba(210, 31, 43, 0.08), transparent 58%),
    var(--prime);
  box-shadow: inset 0 -10px 24px -22px rgba(16, 24, 40, 0.7);
}

.prime-inner {
  width: min(960px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
  white-space: nowrap;
  text-shadow:
    0 3px 2px rgba(0, 0, 0, 0.13),
    0 16px 22px rgba(0, 0, 0, 0.08);
}

.hero-copy {
  max-width: 720px;
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.download-form {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  border: 2px dashed rgba(210, 31, 43, 0.88);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.input-wrap {
  position: relative;
  min-width: 0;
}

.download-input {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 112px 0 22px;
  color: #111827;
  background: #fff;
  font-size: 1.08rem;
  outline: none;
}

.download-input::placeholder {
  color: #6b7280;
}

.download-input:focus {
  box-shadow: inset 0 0 0 3px rgba(210, 31, 43, 0.18);
}

.paste-button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: #293241;
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
}

.paste-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.download-submit {
  min-height: 64px;
  border: 0;
  border-radius: 0 6px 6px 0;
  color: #fff;
  background: var(--red);
  font-size: 1.08rem;
  font-weight: 900;
}

.download-submit:hover {
  background: var(--red-dark);
}

.download-submit:disabled {
  cursor: wait;
  background: #9aa4b2;
}

.prime-error {
  width: min(900px, 100%);
  margin-top: 14px;
  border: 1px solid #f0bbb7;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #781b16;
  background: #fff2f1;
  font-weight: 800;
  text-align: left;
}

.content-section {
  padding: 58px 0 0;
}

.content-section:last-of-type {
  padding-bottom: 64px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-label {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.section-heading p:not(.section-label) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(25, 31, 38, 0.07);
}

.info-panel h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.info-panel p {
  margin: 0;
  color: #354152;
}

.info-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #354152;
}

.info-panel li::marker {
  color: var(--red);
  font-weight: 900;
}

.copy-block {
  max-width: 860px;
  margin: 0 auto;
  color: #354152;
  font-size: 1.04rem;
}

.copy-block p {
  margin: 0 0 16px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resolution-table-wrap {
  max-width: 980px;
  overflow-x: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(25, 31, 38, 0.07);
}

.resolution-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.resolution-table th,
.resolution-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.resolution-table th {
  color: #1f2937;
  background: #f8fafc;
  font-size: 0.92rem;
  font-weight: 900;
}

.resolution-table td {
  color: #354152;
}

.resolution-table tr:last-child td {
  border-bottom: 0;
}

.resolution-table td:first-child {
  color: #1f2937;
  font-weight: 900;
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 10px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(25, 31, 38, 0.05);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  color: #1f2937;
  font-weight: 900;
}

.faq-list summary::marker {
  color: var(--red);
}

.faq-list p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0 18px 16px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1320px, calc(100% - 32px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}

.footer-brand {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
}

.footer-nav a {
  color: #4a5564;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--red);
}

.legal-page {
  padding: 54px 0 72px;
}

.legal-hero {
  text-align: center;
}

.legal-hero h1 {
  margin: 0;
}

.legal-hero p:not(.section-label) {
  max-width: 780px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-card {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(25, 31, 38, 0.07);
}

.legal-card h2,
.contact-panel h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal-card h2:first-child,
.contact-panel h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li,
.contact-panel p,
.contact-panel li {
  color: #354152;
  font-size: 1.02rem;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul,
.contact-panel ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-card a,
.contact-panel a:not(.contact-button) {
  color: var(--red);
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 34px;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(25, 31, 38, 0.07);
}

.contact-panel p {
  margin: 0 0 18px;
}

.contact-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.contact-button:hover {
  background: var(--red-dark);
}

.download-page {
  width: min(1320px, calc(100% - 32px));
  padding-top: 34px;
}

.download-hero {
  display: grid;
  justify-items: center;
  padding: 18px 16px 12px;
  text-align: center;
}

.download-hero h2 {
  max-width: 900px;
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
  white-space: nowrap;
  text-shadow:
    0 3px 2px rgba(0, 0, 0, 0.13),
    0 16px 22px rgba(0, 0, 0, 0.08);
}

.download-copy {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.download-summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.summary-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  color: #0f5c3a;
  background: var(--green-soft);
  font-weight: 900;
  white-space: nowrap;
}

.home-progress {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  color: #536170;
  background: #e9edf2;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.ready {
  color: #2f6b4f;
  background: #edf9f2;
  border: 1px solid #ccebd8;
}

.status-pill.warn {
  color: var(--warning);
  background: #fff1cc;
}

.status-pill.error {
  color: #8f1d17;
  background: #ffe0de;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d6dde6;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 0.25s ease;
}

#progress-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.download-button,
.another-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.another-action {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.another-button {
  color: #fff;
  border-color: transparent;
  background: #3f5873;
  padding-inline: 18px;
  font-weight: 900;
}

.another-button:hover {
  background: #2f4359;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  margin-top: 16px;
  border: 1px dashed #c6d0da;
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 24px 18px;
  text-align: center;
}

.empty-state h2 {
  max-width: 560px;
  margin: 0;
  color: #303b49;
  font-size: 1.05rem;
  line-height: 1.45;
}

.error-box {
  margin-top: 16px;
  border: 1px solid #f0bbb7;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #781b16;
  background: #fff2f1;
  font-weight: 800;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.thumb-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 32px rgba(25, 31, 38, 0.08);
}

.thumb-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #19202a;
}

.thumb-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-card.unavailable .thumb-media img {
  opacity: 0.22;
}

.thumb-info {
  padding: 11px 12px 0;
}

.thumb-info h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.thumb-info p {
  margin: 0;
  color: #68717a;
  font-size: 0.9rem;
}

.thumb-actions {
  padding: 11px 12px 12px;
}

.download-button {
  width: 100%;
  color: #fff;
  background: var(--green);
}

.download-button:hover {
  background: #12653e;
}

.download-button:disabled {
  cursor: not-allowed;
  color: #7e8791;
  background: #e9edf1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0;
  }

  .site-title {
    font-size: 1.34rem;
    text-align: center;
    white-space: normal;
  }

  .header-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .prime-area {
    min-height: auto;
    padding: 34px 12px 40px;
  }

  h1,
  .download-hero h2 {
    font-size: 1.8rem;
  }

  .download-form {
    grid-template-columns: 1fr;
  }

  .download-input {
    min-height: 58px;
    border-radius: 6px 6px 0 0;
  }

  .download-submit {
    min-height: 56px;
    border-radius: 0 0 6px 6px;
  }

  .download-summary {
    flex-direction: column;
    gap: 6px;
  }

  .home-progress {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .progress-track {
    width: 100%;
  }

  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 42px;
  }

  .content-section:last-of-type {
    padding-bottom: 48px;
  }

  .section-heading {
    margin-bottom: 18px;
    text-align: left;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .info-panel {
    padding: 20px;
  }

  .footer-inner {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    padding: 22px 0;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .legal-page {
    padding-top: 42px;
  }

  .legal-hero {
    text-align: left;
  }

  .legal-card {
    padding: 24px 20px;
  }

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

  .contact-panel {
    padding: 24px 20px;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  h1,
  .download-hero h2 {
    font-size: 0.95rem;
  }

  .download-input {
    min-height: 106px;
    padding: 0 14px 46px;
  }

  .paste-button {
    top: auto;
    right: 10px;
    bottom: 8px;
    transform: none;
  }

  .another-button {
    width: 100%;
  }

  .contact-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  h1,
  .download-hero h2 {
    font-size: 0.78rem;
  }
}
