:root {
  --brand: #0d3b66;
  --brand-strong: #082a49;
  --brand-ghost: #edf3f8;
  --accent: #f4d35e;
  --accent-strong: #b77900;
  --bg: #f7f9fb;
  --fg: #243131;
  --muted: #5f6c79;
  --card: #ffffff;
  --border: #dce4eb;
  --shadow: 0 10px 30px rgba(13, 59, 102, 0.07);
  --radius: 14px;
}

.container {
  max-width: 1040px;
}

.brand-mark {
  height: 56px;
  max-width: 260px;
}

.header {
  padding-bottom: 14px;
}

.nav a.active {
  background: var(--brand-ghost);
  color: var(--brand-strong);
  font-weight: 700;
}

a {
  color: var(--brand);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.btn {
  border-radius: 10px;
  font-weight: 700;
}

.btn.secondary {
  background: var(--card);
  color: var(--brand);
  border-color: var(--brand);
}

main:not(.fix-shell) .card {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.docs-section {
  grid-template-columns: minmax(0, 1fr);
}

.docs-section > .card,
.section > .card:only-child {
  padding: clamp(20px, 4vw, 32px);
  border-radius: 18px;
}

.docs-section .ctas {
  justify-content: flex-start;
  margin: 18px 0 8px !important;
}

.page-callout {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #cddae5;
  border-radius: 12px;
  background: var(--brand-ghost);
  color: var(--fg);
}

.page-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-strong);
}

.page-eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 16px 0 48px;
}

.home-hero {
  padding: clamp(32px, 7vw, 68px) 0 0;
  text-align: center;
}

.home-hero h1 {
  max-width: 800px;
  margin: 0 auto 16px;
  color: var(--brand-strong);
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.home-lede {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.trust-strip span {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 700;
  text-align: center;
}

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

.home-section {
  margin-top: 72px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.privacy-panel h2,
.integration-panel h2 {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

.section-heading > p:last-child,
.privacy-panel p,
.integration-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.problem-card,
.diagnostic-item,
.step-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 5px 18px rgba(13, 59, 102, 0.05);
}

.problem-card h3,
.diagnostic-item h3,
.step-card h3 {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 1.08rem;
}

.problem-card p,
.diagnostic-item p,
.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-strong);
  font-weight: 800;
}

.diagnostic-section {
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.diagnostic-item {
  padding: 16px;
  box-shadow: none;
  background: var(--brand-ghost);
}

.format-task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.format-task-row a {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.privacy-panel,
.integration-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 5vw, 34px);
  border-radius: 20px;
}

.privacy-panel {
  border: 1px solid #d9c779;
  background: #fffaf0;
}

.privacy-panel > div,
.integration-panel > div:first-child {
  max-width: 650px;
}

.privacy-panel .btn {
  flex: none;
}

.integration-panel {
  align-items: flex-end;
  border: 1px solid var(--border);
  background: var(--brand-ghost);
}

.integration-panel .home-actions {
  flex: none;
  justify-content: flex-end;
  margin-top: 0;
}

.help-shell,
.support-shell {
  width: min(100%, 960px);
  margin: 18px auto 48px;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.help-hero,
.support-hero {
  max-width: 760px;
}

.help-hero h1,
.support-hero h1 {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: clamp(2rem, 5vw, 3rem);
}

.help-hero p,
.support-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.help-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.help-jump-links a {
  display: block;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--brand-ghost);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.help-section,
.support-section {
  margin-top: 38px;
  scroll-margin-top: 20px;
}

.help-section-heading h2,
.support-section h2 {
  margin: 0 0 6px;
  color: var(--brand-strong);
  font-size: 1.42rem;
}

.help-section-heading p,
.support-section > p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.help-card-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.help-card-grid--two,
.support-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-link-card,
.support-link-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.help-link-card:hover,
.help-link-card:focus-visible,
.support-link-card:hover,
.support-link-card:focus-visible {
  transform: translateY(-1px);
  border-color: #9db4c8;
  background: var(--brand-ghost);
}

.help-link-card strong,
.support-link-card strong {
  color: var(--brand-strong);
}

.help-link-card span,
.support-link-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.help-issue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-issue-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: #fffaf0;
  line-height: 1.5;
}

.help-compact-panel,
.support-cta {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--brand-ghost);
}

.help-compact-panel p,
.support-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
}

.support-cta h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.support-cta-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .brand-mark {
    height: 40px;
    max-width: 180px;
  }

  .home-shell {
    padding-top: 8px;
  }

  .home-hero {
    padding-top: 32px;
  }

  .home-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }

  .trust-strip,
  .problem-grid,
  .step-grid,
  .diagnostic-grid,
  .help-card-grid,
  .help-card-grid--two,
  .support-grid,
  .support-grid--two,
  .help-issue-list {
    grid-template-columns: 1fr;
  }

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

  .home-section {
    margin-top: 54px;
  }

  .privacy-panel,
  .integration-panel,
  .support-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .integration-panel .home-actions {
    justify-content: flex-start;
  }

  .help-shell,
  .support-shell {
    margin-top: 10px;
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .home-actions .btn,
  .privacy-panel .btn,
  .support-cta-actions .btn {
    width: 100%;
  }

  .home-actions,
  .support-cta-actions {
    width: 100%;
  }
}
