:root {
  --ink: #172033;
  --muted: #637083;
  --paper: #f8fbff;
  --white: #ffffff;
  --line: #dfe7f0;
  --teal: #18a999;
  --blue: #2864e6;
  --coral: #ff6b5f;
  --gold: #f3b33d;
  --green-soft: #e6f8f3;
  --blue-soft: #e9f0ff;
  --shadow: 0 24px 70px rgba(23, 32, 51, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 231, 240, .8);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--teal) 55%, var(--gold));
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(40, 100, 230, .18);
  font-size: .8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
  font-size: .94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 9px;
}

.nav-toggle span:not(.sr-only) {
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 46px;
  padding: 44px 0 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 820;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  line-height: 1.18;
}

.hero-text {
  max-width: 700px;
  margin: 24px 0 26px;
  font-size: 1.12rem;
  color: var(--muted);
}

.download-panel,
.result-panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-panel {
  padding: 18px;
}

.download-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 780;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px auto;
  gap: 10px;
  align-items: stretch;
}

.input-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
}

.input-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 100, 230, .12);
}

.primary-button,
.secondary-button,
.icon-button,
.format-option {
  border: 0;
  cursor: pointer;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid rgba(24, 169, 153, .28);
}

.icon-button {
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(40, 100, 230, .18);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.format-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.format-option {
  padding: 0 14px;
  background: #f0f4f8;
  color: var(--muted);
  border: 1px solid transparent;
}

.format-option.active {
  background: var(--green-soft);
  color: #0d6b61;
  border-color: rgba(24, 169, 153, .25);
}

.microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.result-panel {
  min-height: 82px;
  margin-top: 16px;
  padding: 16px;
}

.result-empty {
  color: var(--muted);
}

.result-card {
  display: grid;
  gap: 14px;
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.platform-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #07594f;
  background: var(--green-soft);
  font-weight: 800;
  font-size: .78rem;
}

.status-text {
  margin: 6px 0 0;
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 28px 58px rgba(23, 32, 51, .16));
}

.ad-slot {
  display: grid;
  place-items: center;
  color: #7d8793;
  border: 1px dashed #c8d3df;
  background: #f4f7fa;
  border-radius: 8px;
  font-size: .82rem;
  min-height: 90px;
}

.ad-slot-wide {
  width: min(970px, calc(100% - 32px));
  margin: 0 auto 34px;
}

.trust-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.trust-strip div {
  padding: 22px;
  display: grid;
  gap: 6px;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-strip span,
.content-band p,
.article-card p,
.site-footer p {
  color: var(--muted);
}

.content-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.split,
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.steps,
.feature-list,
.article-grid {
  display: grid;
  gap: 16px;
}

.step,
.feature-list article,
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
}

.step span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
  font-weight: 900;
}

.step p,
.feature-list p {
  margin: 0;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-list p {
  margin: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(23, 32, 51, .09);
}

.article-card span {
  color: var(--blue);
  font-weight: 820;
  font-size: .82rem;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 720;
}

.text-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0 90px;
}

.text-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.text-page h2 {
  margin-top: 34px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.text-page a {
  color: var(--blue);
  font-weight: 760;
}

.contact-actions {
  margin-top: 24px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .simple-nav .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero,
  .split,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-visual {
    max-width: 620px;
    margin: 0 auto;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .input-row {
    grid-template-columns: 1fr 44px;
  }

  .primary-button {
    grid-column: 1 / -1;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
