:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #1d2a3a;
  --muted: #5f6f83;
  --line: #d7dee8;
  --brand: #0d4a8b;
  --brand-strong: #093667;
  --accent: #0b6ea8;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(15, 39, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #e9eff6 0%, var(--bg) 240px, var(--bg) 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(244, 247, 251, 0.92);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font: inherit;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

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

.main-nav .nav-login {
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
}

.main-nav .nav-login:hover,
.main-nav .nav-login:focus-visible {
  color: #fff;
  background: var(--brand-strong);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  color: #10253f;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.08rem;
  color: #32465f;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 0.68rem 1rem;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-strong);
}

.button-secondary {
  color: var(--brand-strong);
  background: #dce8f4;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.hero-card h2 {
  font-size: 1.15rem;
}

.hero-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #2f4259;
}

.proof-strip {
  padding: 0 0 1.25rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.proof-item {
  background: #10345f;
  border: 1px solid #27507f;
  border-radius: var(--radius);
  padding: 1rem;
  color: #e7f0fa;
}

.proof-item h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.proof-item p {
  margin: 0;
  color: #d2e3f6;
}

.section {
  padding: 3.2rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .example-card,
  .examples-filter {
    transition: none;
  }
}

.section-lead {
  color: #32465f;
  margin: 0.35rem 0 1rem;
}

.section-alt {
  background: #edf3fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.examples-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 1rem;
}

.examples-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.examples-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.examples-filter:hover,
.examples-filter:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.examples-filter.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.examples-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.example-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 16px rgba(15, 39, 68, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-card[hidden] {
  display: none;
}

.example-card:hover,
.example-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.example-card-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 0.75rem;
  overflow: hidden;
  background: #e4ebf3;
  border-bottom: 1px solid var(--line);
}

.example-preview-trigger {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.example-preview-trigger:focus-visible {
  outline: 3px solid #78b5e4;
  outline-offset: 3px;
}

.example-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  box-shadow: 0 5px 14px rgba(15, 39, 68, 0.16);
  transition: transform 0.2s ease;
}

.example-preview-trigger:hover .example-card-image,
.example-preview-trigger:focus-visible .example-card-image {
  transform: scale(1.035);
}

.example-page-badge {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(13, 74, 139, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.example-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.example-card-category {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-card-body h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.example-card-description {
  flex: 1;
  margin: 0;
  color: #354b65;
  font-size: 0.92rem;
  line-height: 1.5;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.9rem 0 1rem;
  padding: 0;
  list-style: none;
}

.example-tags li {
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: #e8f0f8;
  color: #315475;
  font-size: 0.75rem;
  font-weight: 700;
}

.example-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.example-card-format {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.example-view-button {
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
}

.examples-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.examples-noscript {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.examples-noscript p {
  margin-top: 0;
}

.examples-noscript ul {
  margin-bottom: 0;
}

.example-dialog {
  width: min(1120px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(10, 31, 55, 0.3);
}

.example-dialog::backdrop {
  background: rgba(8, 28, 51, 0.68);
  backdrop-filter: blur(3px);
}

.example-dialog-shell {
  display: flex;
  max-height: calc(100vh - 2rem);
  flex-direction: column;
}

.example-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
}

.example-dialog-header .eyebrow {
  margin-bottom: 0.3rem;
}

.example-dialog-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.example-dialog-description {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.example-dialog-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.example-dialog-close:hover,
.example-dialog-close:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.example-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding: 0.8rem 1.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.example-dialog-meta span + span::before {
  margin-right: 1rem;
  content: "•";
  color: var(--line);
}

.example-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 1.35rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.example-tab {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0.7rem 0.75rem 0.6rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.example-tab:hover,
.example-tab:focus-visible {
  color: var(--brand);
}

.example-tab.is-active {
  border-bottom-color: var(--brand);
  color: var(--brand-strong);
}

.example-dialog-panels {
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1.35rem 1.35rem;
}

.example-pdf-layout {
  display: grid;
  gap: 1rem;
}

.example-pdf-frame {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe7f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.example-pdf-frame iframe {
  display: block;
  width: 100%;
  height: min(68vh, 720px);
  border: 0;
  background: #fff;
}

.example-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.example-panel-toolbar h3 {
  margin: 0;
  font-size: 1.05rem;
}

.example-panel-toolbar .button {
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
}

.example-code-status {
  min-height: 1.5em;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.example-code {
  max-height: 62vh;
  margin: 0;
  overflow: auto;
  border: 1px solid #2c4f7b;
  border-radius: 8px;
  background: #0e2b4f;
  padding: 1rem;
}

.example-code code {
  color: #d8ecff;
  font-family: "Fira Code", "Consolas", "Menlo", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre;
}

.example-copy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .example-card,
  .examples-filter,
  .example-card-image {
    transition: none;
  }

  .example-card:hover,
  .example-card:focus-within {
    transform: none;
  }

  .example-preview-trigger:hover .example-card-image,
  .example-preview-trigger:focus-visible .example-card-image {
    transform: none;
  }
}

.flow-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.benefit-item h3 {
  margin: 0 0 0.45rem;
}

.benefit-item p {
  margin: 0;
  color: #354b65;
}

.pricing-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(15, 39, 68, 0.06);
}

.pricing-table-wrapper:focus-visible {
  outline: 3px solid #78b5e4;
  outline-offset: 3px;
}

.pricing-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pricing-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.pricing-table thead th {
  background: #e4edf6;
  color: #244665;
  font-size: 0.82rem;
  font-weight: 800;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
}

.pricing-table thead th:first-child {
  z-index: 2;
  background: #d8e5f1;
}

.pricing-table tbody th {
  color: #10253f;
  font-weight: 800;
  background: var(--surface);
}

.pricing-table tbody td {
  color: #354b65;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table tbody tr:hover th,
.pricing-table tbody tr:hover td {
  background: #f3f7fb;
}

.pricing-table tbody tr.pricing-table-custom th,
.pricing-table tbody tr.pricing-table-custom td {
  background: #eaf3fa;
  color: #244665;
}

.pricing-note {
  max-width: 900px;
  margin: 0.85rem 0 0;
  color: #354b65;
  font-size: 0.92rem;
}

.card,
.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3,
.feature-item h3 {
  margin-bottom: 0.45rem;
}

.card p,
.feature-item p {
  margin: 0;
  color: #354b65;
}

.cta {
  background: #123661;
  color: #eaf2fb;
}

.cta h2,
.cta p {
  color: #eaf2fb;
}

.cta .button-primary {
  background: #f5f7fb;
  color: #10345f;
}

.cta .button-primary:hover,
.cta .button-primary:focus-visible {
  background: #ffffff;
}

.cta-note {
  margin-top: 0.9rem;
  color: #10345f;
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
}

.faq-item p {
  margin: 0;
  color: #354b65;
}

.snippet-shell {
  background: #0e2b4f;
  border: 1px solid #2c4f7b;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 420px;
}

.snippet-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem;
  border-right: 1px solid #335983;
  background: #0b2542;
}

.snippet-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.snippet-variants {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-bottom: 1px solid #335983;
  background: #0b2542;
  overflow-x: auto;
}

.snippet-step,
.snippet-variant {
  border: 1px solid #39618e;
  background: #123760;
  color: #d7e7fa;
  border-radius: 9px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.snippet-step {
  text-align: left;
}

.snippet-step:hover,
.snippet-step:focus-visible,
.snippet-variant:hover,
.snippet-variant:focus-visible {
  background: #184878;
}

.snippet-step.is-active,
.snippet-variant.is-active {
  background: #f4f8fd;
  color: #133a64;
  border-color: #f4f8fd;
}

.snippet-panels {
  padding: 0.55rem;
  min-width: 0;
}

.snippet-panel pre {
  margin: 0;
  background: #081c33;
  border: 1px solid #2c4f7b;
  border-radius: 10px;
  padding: 0.95rem;
  overflow-x: auto;
}

.snippet-panel code {
  color: #d8ecff;
  font-family: "Fira Code", "Consolas", "Menlo", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 0 0.8rem;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0.25rem 0;
  color: #3e526b;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--brand);
}

.footer-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #3e526b;
}

@media (max-width: 900px) {
  .hero-grid,
  .flow-grid,
  .feature-grid,
  .proof-grid,
  .benefit-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .example-pdf-layout {
    grid-template-columns: 1fr;
  }

  .snippet-shell {
    grid-template-columns: 1fr;
  }

  .snippet-steps {
    border-right: 0;
    border-bottom: 1px solid #335983;
    flex-direction: row;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 4vw;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    width: min(220px, 75vw);
    padding: 0.6rem;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .nav-login {
    text-align: center;
    width: 100%;
  }

  .snippet-variants {
    flex-wrap: wrap;
  }

  .examples-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .example-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .example-dialog-shell {
    max-height: calc(100vh - 1rem);
  }

  .example-dialog-header,
  .example-dialog-panels {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .example-dialog-meta,
  .example-tabs {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .example-pdf-frame {
    min-height: 360px;
  }

  .example-pdf-frame iframe {
    height: 58vh;
  }

  .example-panel-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 0;
  }

  .footer-grid {
    padding-top: 1rem;
  }
}
