@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef3f9;
  --text: #172033;
  --muted: #5f6b7c;
  --border: #dce3ec;
  --brand: #4f6df5;
  --brand-dark: #334fd2;
  --dark: #111827;
  --success: #0f7a4f;
  --danger: #b42318;
  --warning: #805600;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

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

.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 9999;
  background: var(--dark);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img { flex: 0 0 auto; }

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand strong {
  color: var(--dark);
  font-size: 15px;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 10px 13px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}

.primary-nav a:hover,
.primary-nav a.active,
.primary-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--surface);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--dark);
  border-radius: 99px;
}

.hero-section {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 10% 10%, rgba(79,109,245,.13), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(72,187,255,.12), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
  gap: 60px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--dark);
  line-height: 1.18;
  letter-spacing: -.02em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 64px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 42px);
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

p { margin: 0 0 16px; }

.hero-copy {
  color: var(--muted);
  font-size: 19px;
  max-width: 640px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span {
  background: white;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tool-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.tool-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.tool-panel h2 {
  font-size: 28px;
  margin-bottom: 0;
}

.status-badge {
  background: #e8f7ef;
  color: var(--success);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

label {
  display: block;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 11px;
  padding: 14px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79,109,245,.12);
}

textarea { resize: vertical; }

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--brand);
  border-radius: 11px;
  padding: 0 20px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s, background .15s, border-color .15s;
}

.button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: white;
  color: var(--brand-dark);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--surface);
  border-color: #bfc9d8;
}

.button.full { width: 100%; }
.button.disabled { pointer-events: none; opacity: .55; }
.button:disabled { opacity: .65; cursor: wait; }

.text-button,
.text-link {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.button-row.center { justify-content: center; }

.section { padding: 76px 0; }
.soft-section { background: var(--surface); }

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

.section-heading.center { margin-inline: auto; }

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.section-heading p { color: var(--muted); }

.steps-grid,
.article-grid,
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.article-card,
.thumbnail-card,
.contact-card,
.aside-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card,
.article-card,
.contact-card,
.aside-card {
  padding: 26px;
}

.info-card p,
.article-card p,
.contact-card p,
.aside-card p { color: var(--muted); }

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  background: var(--surface-2);
  color: var(--brand-dark);
  border-radius: 10px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: start;
}

.content-grid > div:first-child p { color: var(--muted); }

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.article-card span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.article-card h2,
.article-card h3 {
  margin-top: 12px;
}

.article-card h2 { font-size: 22px; }

.article-card h2 a,
.article-card h3 a { text-decoration: none; }

.article-card:hover {
  border-color: #bdc8d8;
  box-shadow: 0 14px 32px rgba(17,24,39,.06);
}

.results-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.thumbnail-card {
  overflow: hidden;
  background: white;
}

.thumbnail-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface);
}

.thumbnail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unavailable-badge {
  position: absolute;
  inset: 12px auto auto 12px;
  background: rgba(17,24,39,.88);
  color: white;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.thumbnail-card-body { padding: 20px; }
.thumbnail-card-body p { color: var(--muted); font-size: 14px; }
.thumbnail-meta { font-weight: 700; color: var(--brand-dark) !important; }

.page-hero {
  padding: 78px 0 62px;
  background: linear-gradient(180deg, var(--surface) 0%, white 100%);
}

.page-hero.compact { padding: 58px 0 44px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.page-hero p { color: var(--muted); font-size: 18px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}

.breadcrumbs a { color: var(--brand-dark); text-decoration: none; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 24px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  align-items: start;
}

.article-content {
  min-width: 0;
  font-size: 16px;
}

.article-content.standalone {
  max-width: 860px;
}

.article-content h2 {
  font-size: 30px;
  margin: 38px 0 14px;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 22px;
  margin: 28px 0 10px;
}

.article-content p,
.article-content li { color: #344054; }

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.article-content li { margin-bottom: 8px; }

.article-content a { color: var(--brand-dark); }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--dark);
  color: white;
}

.article-content blockquote {
  margin: 24px 0;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  padding: 18px 20px;
  color: var(--muted);
}

.article-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.aside-card h2 { font-size: 20px; }

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--dark);
  font-weight: 700;
}

.faq-list details p {
  color: var(--muted);
  padding: 0 20px 18px;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 34px;
  align-items: start;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: white;
}

.contact-form > label { margin-top: 18px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.notice {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14px;
}

.notice.error {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: var(--danger);
}

.notice.success {
  background: #edfdf5;
  border: 1px solid #b7ebce;
  color: var(--success);
}

.notice.warning {
  background: #fff8e6;
  border: 1px solid #f3d58a;
  color: var(--warning);
}

.site-footer {
  background: var(--dark);
  color: white;
  padding: 62px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .75fr .75fr;
  gap: 50px;
}

.footer-brand strong { color: white; }
.footer-brand small { color: #b8c1d0; }

.footer-grid h2 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid a {
  color: #c8d0dc;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-grid a:hover { color: white; }

.footer-note {
  color: #aab4c2;
  max-width: 520px;
  font-size: 13px;
  margin-top: 18px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #aab4c2;
  font-size: 13px;
}

.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c8d0dc; }

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .article-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 40px; }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .thumbnail-grid,
  .article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .brand small { display: none; }

  .menu-toggle { display: flex; }

  .primary-nav ul {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(17,24,39,.08);
    padding: 10px 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav ul.open { display: flex; }
  .primary-nav a { padding: 12px 10px; }

  .hero-section { padding: 58px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .tool-panel { padding: 22px; }
  .input-row { grid-template-columns: 1fr; }

  .section { padding: 58px 0; }

  .steps-grid,
  .article-grid,
  .thumbnail-grid,
  .form-grid,
  .article-aside,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

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


/* Homepage writer content */
.homepage-article-section {
  background: #ffffff;
}

.homepage-content {
  max-width: 960px;
}

.homepage-content > h2:first-child {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.homepage-content h2 {
  scroll-margin-top: 92px;
}

.homepage-content h3 {
  color: var(--brand-dark);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0 28px;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 620px;
  margin: 0;
}

.homepage-faq {
  margin-top: 20px;
}


/* AdSense containers — shown only after client and slot IDs are configured */
.ad-container { width:100%; margin:36px 0; padding:14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); text-align:center; overflow:hidden; }
.ad-label { display:block; margin-bottom:8px; color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.sidebar-ad { margin:0; padding:14px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; }


/* Homepage tool layout update */
.hero-section {
  padding: 74px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.hero-grid > div:first-child {
  max-width: 900px;
}

.hero-copy {
  max-width: 820px;
}

.tool-panel {
  width: 100%;
  max-width: 900px;
  margin: 0;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.input-row .button {
  width: 100%;
}

@media (min-width: 761px) {
  .input-row .button {
    width: fit-content;
    min-width: 230px;
  }
}

@media (max-width: 760px) {
  .hero-section {
    padding: 48px 0 44px;
  }

  .hero-grid {
    gap: 28px;
  }

  .tool-panel {
    padding: 20px;
  }

  .input-row .button {
    width: 100%;
  }
}


/* Centered homepage hero and downloader */
.hero-grid {
  justify-items: center;
}

.hero-grid > div:first-child {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.hero-copy {
  margin-inline: auto;
}

.hero-points {
  justify-content: center;
}

.tool-panel {
  width: min(900px, 100%);
  margin-inline: auto;
}

.input-row .button {
  display: inline-flex;
  width: auto;
  min-width: 240px;
  margin-inline: auto;
}

.turnstile-wrap {
  margin: 20px 0;
}

@media (max-width: 760px) {
  .input-row .button {
    width: 100%;
    min-width: 0;
  }
}


/* FINAL HOMEPAGE CENTER OVERRIDE — intentionally last in the stylesheet */
.hero-section .hero-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 36px !important;
  width: min(960px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
}

.hero-section .hero-grid > div:first-child {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.hero-section .hero-grid > div:first-child .eyebrow,
.hero-section .hero-grid > div:first-child h1,
.hero-section .hero-grid > div:first-child .hero-copy {
  text-align: center !important;
}

.hero-section .hero-copy {
  max-width: 820px !important;
  margin-inline: auto !important;
}

.hero-section .hero-points {
  justify-content: center !important;
}

.hero-section .tool-panel {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.hero-section .tool-panel-head {
  display: block !important;
  position: relative !important;
  text-align: center !important;
  padding-inline: 70px !important;
}

.hero-section .tool-panel-head .eyebrow,
.hero-section .tool-panel-head h2 {
  text-align: center !important;
}

.hero-section .status-badge {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
}

.hero-section .tool-panel label,
.hero-section .field-help {
  text-align: center !important;
}

.hero-section .input-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.hero-section .input-row input {
  width: 100% !important;
}

.hero-section .input-row .button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 250px !important;
  margin: 0 auto !important;
  align-self: center !important;
}

@media (max-width: 760px) {
  .hero-section .hero-grid {
    width: min(100% - 20px, 960px) !important;
    gap: 28px !important;
  }

  .hero-section .tool-panel-head {
    padding-inline: 0 !important;
    padding-top: 42px !important;
  }

  .hero-section .status-badge {
    top: 0 !important;
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .hero-section .input-row .button {
    width: 100% !important;
    min-width: 0 !important;
  }
}
