* {
  box-sizing: border-box;
}

:root {
  --bg: #f8f8f6;
  --paper: #ffffff;
  --text: #1f2937;
  --muted: #65738c;
  --soft: #eef3f0;
  --line: #dce3df;
  --primary: #2563eb;
  --primary-dark: #173a8b;
  --secondary: #10b981;
  --danger: #b42318;
  --shadow: rgba(15, 23, 42, 0.08);
  --font: Inter, "Poppins", "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
}

body::before {
  content: "";
  position: fixed;
  inset: -15%;
  background-image: radial-gradient(#dce3df 1px, transparent 1px);
  background-size: 36px 36px;
  transform: rotate(2deg);
  pointer-events: none;
  opacity: 0.2;
}

.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.brand-icon {
  color: var(--primary);
}

.brand-split {
  color: var(--secondary);
}

.brand-type {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  border: 1px solid var(--text);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(620px, 1.7fr) minmax(320px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 40px 0 30px;
}

.hero-copy {
  padding: 22px 0;
}

.label,
.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 12px;
  color: var(--text);
  font-size: clamp(3rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px var(--shadow);
}

.secondary-button {
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px var(--shadow);
  border-radius: 28px;
  padding: 28px;
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-pill {
  background: var(--soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-card-body {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 42px 0 18px;
}

.page-count {
  display: flex;
  align-items: end;
  gap: 8px;
}

.page-count span {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.page-count small {
  color: var(--muted);
  font-size: 0.85rem;
  padding-bottom: 8px;
}

.page-range {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.safe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-weight: 900;
}

.splitter-wrap {
  display: grid;
  grid-template-columns: minmax(620px, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  margin: 20px 0 30px;
}

.splitter-wrap,
.content-section,
.faq {
  scroll-margin-top: 90px;
}

.splitter-panel {
  background: var(--paper);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px var(--shadow);
  padding: 28px;
}

.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 2vw, 2.4rem);
  color: var(--text);
}

.split-form {
  margin-top: 22px;
}

.file-drop-wrap {
  margin-bottom: 22px;
}

.file-drop {
  width: 100%;
  min-height: 210px;
  border-radius: 18px;
  border: 2px dashed var(--line);
  background: var(--soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.file-drop:hover {
  border-color: var(--primary);
  background: #eef5ff;
}

.file-drop input {
  display: none;
}

.drop-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.drop-title {
  color: var(--text);
  font-weight: 800;
}

.drop-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr);
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
}

.field input:focus {
  border-color: var(--primary);
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 8px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.button-icon {
  margin-right: 8px;
}

.button-status {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.download-card {
  margin-top: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.download-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.download-label {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.download-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.download-button {
  white-space: nowrap;
}

.ad-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 40px var(--shadow);
  padding: 14px;
}

.ad-frame {
  min-height: 340px;
  border-radius: 18px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ad-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.content-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  line-height: 1.15;
}

.narrow-title {
  max-width: 760px;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.policy-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.step-card,
.policy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.step-card h3,
.policy-card h3 {
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.step-card p,
.policy-card p,
.content-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.content-copy {
  max-width: 860px;
}

.content-copy p:first-of-type {
  margin-top: 0;
}

.explainer-section {
  display: flex;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.4fr);
  gap: 32px;
  align-items: start;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.policy-card a,
.faq-list a {
  color: var(--primary);
  font-weight: 700;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--primary-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.contact-section {
  padding-bottom: 48px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin: 26px 0 30px;
}

.info-card {
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 24px;
}

.info-card h3 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.info-card a {
  color: var(--primary);
}

.icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
}

.faq {
  background: var(--paper);
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 26px 28px;
  margin-bottom: 34px;
}

.faq-title h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 2vw, 2rem);
}

.faq-list details {
  background: var(--soft);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.faq-list details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.faq-list details p {
  color: var(--muted);
  font-size: 0.88rem;
}

.ad-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.bottom-ad-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bottom-ad-unit {
  max-width: 970px;
  min-height: 90px;
  border-radius: 12px;
  background: var(--soft);
}

@media (max-width: 940px) {
  .hero,
  .splitter-wrap {
    grid-template-columns: 1fr;
  }

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

  .steps-grid,
  .policy-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .nav-wrap,
  .nav-links {
    flex-wrap: wrap;
  }

  .bottom-ad-wrap {
    padding: 0 16px;
  }

  .bottom-ad-unit {
    min-height: 100px;
  }
}
