/* ============================================================
   Insurance Blueprint — Global Stylesheet
   ============================================================ */

:root {
  --navy:        #0D2B55;
  --navy-hover:  #163E7A;
  --navy-light:  #1E5FA8;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-300:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --black:       #0F172A;

  --radius:      6px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --container:   1160px;
  --nav-h:       64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

/* ── Typography ──────────────────────────────────────────── */

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--black);
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--gray-600); }

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

/* ── Nav ─────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.nav-brand:hover { text-decoration: none; color: var(--gray-200); }

.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand-icon svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.80);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

.nav-cta {
  background: var(--white) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 6px 18px !important;
}
.nav-cta:hover {
  background: var(--gray-100) !important;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-hover); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--gray-100); color: var(--navy); }

.btn-lg { padding: 13px 30px; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #173D6E 60%, #1C4F8A 100%);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero p {
  color: rgba(255,255,255,.80);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}

/* ── Stats strip ─────────────────────────────────────────── */

.stats-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: .85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ── Section headers ─────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header p {
  font-size: 1.05rem;
  margin-top: 12px;
}

.section-tag {
  display: inline-block;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ── Cards ───────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.card h3 { margin-bottom: 8px; }
.card p  { font-size: .9rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy-light);
  font-size: .875rem;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
}

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

/* ── Feature sections ────────────────────────────────────── */

.feature-section { background: var(--gray-50); }
.feature-section:nth-of-type(even) { background: var(--white); }

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-visual {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 36px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: .875rem;
}

.feature-content .section-tag { text-align: left; }
.feature-content h2 { margin-bottom: 16px; }
.feature-content p  { margin-bottom: 24px; }

.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  color: var(--gray-600);
}

.feature-list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── CTA Banner ──────────────────────────────────────────── */

.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}

.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 32px; }
.cta-banner .hero-actions { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--gray-900, #0F172A);
  color: var(--gray-400);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: .875rem;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--gray-400);
  font-size: .875rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo-text {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

/* ── Search bar ──────────────────────────────────────────── */

.search-bar {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 48px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.search-bar input {
  flex: 1;
  padding: 12px 18px;
  font-size: .95rem;
  border: none;
  outline: none;
  color: var(--black);
  background: transparent;
}

.search-bar button {
  padding: 12px 22px;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.search-bar button:hover { background: var(--navy-hover); }

/* ── Filter tabs ─────────────────────────────────────────── */

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Page hero (inner pages) ─────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #173D6E 100%);
  color: var(--white);
  padding: 56px 0 48px;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 540px; }

/* ── Tag / badge ─────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-blue     { background: #DBEAFE; color: #1E40AF; }
.badge-gray     { background: var(--gray-100); color: var(--gray-600); }
.badge-green    { background: #DCFCE7; color: #15803D; }
.badge-progress { background: #FEF3C7; color: #92400E; }

.card.in-progress {
  background: var(--gray-50);
  opacity: .65;
}

.card.in-progress h3,
.card.in-progress p { color: var(--gray-500); }

/* ── Contact form ────────────────────────────────────────── */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(29,95,168,.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Code blocks ─────────────────────────────────────────── */

.code-wrap {
  background: #0F172A;
  border-radius: 8px;
  overflow: hidden;
}

.code-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 8px;
}

.code-tab-btn {
  padding: 8px 16px;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}

.code-tab-btn.active { color: #fff; border-bottom-color: #60A5FA; }

.code-tab-pane { display: none; }
.code-tab-pane.active { display: block; }

pre.code-block {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: .78rem;
  line-height: 1.75;
  color: #94A3B8;
}

.ck  { color: #93C5FD; }  /* keyword / method */
.cs  { color: #86EFAC; }  /* string */
.cp  { color: #FCA5A5; }  /* property name */
.cn  { color: #FCD34D; }  /* number */
.cc  { color: #475569; }  /* comment */
.cu  { color: #67E8F9; }  /* URL */
.cb  { color: #F9A8D4; }  /* boolean / enum value */

/* ── API doc layout ──────────────────────────────────────── */

.api-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.api-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.api-nav-section {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  padding: 14px 10px 4px;
}

.api-nav { list-style: none; }
.api-nav li { margin-bottom: 2px; }

.api-nav a {
  display: block;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.api-nav a:hover  { background: var(--gray-100); color: var(--navy); text-decoration: none; }
.api-nav a.active { background: var(--gray-100); color: var(--navy); font-weight: 600; }

.api-section {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  margin-bottom: 72px;
}

.api-section > h2 {
  font-size: 1.4rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.endpoint-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0F172A;
  color: var(--white);
  border-radius: 6px;
  padding: 9px 16px;
  font-family: 'Cascadia Code', monospace;
  font-size: .82rem;
  margin-bottom: 16px;
}

.m-post { color: #86EFAC; font-weight: 700; }
.m-get  { color: #93C5FD; font-weight: 700; }

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin: 12px 0 20px;
}

.param-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}

.param-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
  color: var(--gray-600);
  font-size: .85rem;
}

.param-table code {
  font-family: monospace;
  font-size: .8rem;
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--navy);
}

.tag-req {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #FEE2E2;
  color: #991B1B;
  padding: 1px 5px;
  border-radius: 3px;
}

.tag-opt {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Demo / flow diagram ─────────────────────────────────── */

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.flow-node {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px 22px;
  text-align: center;
  min-width: 130px;
  box-shadow: var(--shadow-sm);
}

.flow-node.accent { border-color: var(--navy); background: var(--navy); color: var(--white); }
.flow-node.accent .flow-node-label { color: var(--white); }
.flow-node.accent .flow-node-sub   { color: rgba(255,255,255,.65); }

.flow-node-icon  { font-size: 1.5rem; margin-bottom: 6px; line-height: 1; }
.flow-node-label { font-size: .8rem; font-weight: 700; color: var(--navy); }
.flow-node-sub   { font-size: .68rem; color: var(--gray-400); margin-top: 3px; }

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.flow-arrow-pair { display: flex; flex-direction: column; gap: 4px; }

.flow-arrow-fwd,
.flow-arrow-rev {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: .65rem;
  color: var(--gray-400);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.flow-arrow-fwd::after { content: ' →'; margin-left: 4px; }
.flow-arrow-rev::before { content: '← '; margin-right: 4px; }

/* ── Demo interactive panel ──────────────────────────────── */

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 520px;
}

.demo-col-data {
  background: #0F172A;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.demo-col-mid {
  background: var(--gray-50);
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
}

.demo-col-form {
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.demo-col-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}

.demo-col-data .demo-col-label { color: rgba(255,255,255,.35); }
.demo-col-form .demo-col-label { color: var(--gray-400); }

.json-editor {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: .72rem;
  line-height: 1.65;
  resize: none;
  outline: none;
}

.json-error {
  font-size: .72rem;
  color: #F87171;
  margin-top: 8px;
  min-height: 18px;
}

.api-pulse {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: #fff;
  font-weight: 700;
  position: relative;
}

.api-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  opacity: .3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .3; }
  50%  { transform: scale(1.3); opacity: 0;  }
  100% { transform: scale(1);   opacity: .3; }
}

.api-pulse-label {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

/* ── Insurance card (POI) ────────────────────────────────── */

.preview-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.preview-tab {
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray-400);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
  font-family: inherit;
}

.preview-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

.preview-pane { display: none; }
.preview-pane.active { display: block; }

/* Desktop card */
.ins-card {
  border: 2px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  font-size: .78rem;
  max-width: 400px;
}

.ins-card-hd {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ins-card-hd-title { font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.ins-card-hd-issuer { font-size: .7rem; opacity: .8; text-align: right; }

.ins-card-body { padding: 14px 16px; }

.ins-card-row { display: flex; gap: 12px; margin-bottom: 10px; }
.ins-card-field { flex: 1; }
.ins-card-lbl {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.ins-card-val { color: var(--black); font-weight: 600; line-height: 1.3; }

.ins-card-cov {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 4px;
}

.ins-cov-item { }
.ins-cov-type { font-size: .6rem; font-weight: 700; text-transform: uppercase; color: var(--gray-400); }
.ins-cov-val  { font-size: .72rem; font-weight: 600; color: var(--navy); }

.ins-card-ft {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 7px 16px;
  font-size: .62rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.4;
}

/* Phone frame */
.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: 210px;
  background: #1C1C1E;
  border-radius: 28px;
  padding: 12px 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}

.phone-notch {
  width: 60px;
  height: 8px;
  background: #1C1C1E;
  border-radius: 4px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
}

.phone-status {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  font-size: .55rem;
  padding: 4px 12px;
  display: flex;
  justify-content: space-between;
}

.phone-ins-card {
  padding: 10px;
}

.phone-ins-header {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.phone-ins-title { font-size: .65rem; font-weight: 800; letter-spacing: .02em; }
.phone-ins-subtitle { font-size: .55rem; opacity: .7; margin-top: 2px; }

.phone-field { margin-bottom: 7px; }
.phone-lbl { font-size: .52rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); }
.phone-val { font-size: .65rem; font-weight: 600; color: var(--black); margin-top: 1px; }

.phone-divider { border: none; border-top: 1px solid var(--gray-200); margin: 7px 0; }

/* Print frame */
.print-frame {
  border: 1px solid var(--gray-300);
  padding: 28px 32px;
  font-size: .8rem;
  max-width: 480px;
  background: var(--white);
  box-shadow: 2px 2px 8px rgba(0,0,0,.08);
  position: relative;
}

.print-frame::before {
  content: 'PRINT PREVIEW';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gray-300);
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 14px;
}

.print-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .01em;
}

.print-subtitle { font-size: .68rem; color: var(--gray-500); margin-top: 3px; }

.print-issuer { text-align: right; font-size: .72rem; color: var(--gray-600); }
.print-issuer strong { display: block; color: var(--black); font-size: .8rem; }

.print-section { margin-bottom: 14px; }
.print-section-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.print-field-lbl { font-size: .62rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.print-field-val { font-size: .78rem; color: var(--black); font-weight: 500; }

.print-cov-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }

.print-footer {
  border-top: 1px solid var(--gray-200);
  padding-top: 10px;
  margin-top: 10px;
  font-size: .62rem;
  color: var(--gray-400);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-col-mid { flex-direction: row; padding: 12px 20px; }
  .api-pulse-label { writing-mode: horizontal-tb; }
  .api-layout { grid-template-columns: 1fr; }
  .api-sidebar { position: static; }
  .flow-row { gap: 12px; }
}

/* ── Utility ─────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-6 { margin-bottom: 24px; }

.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 48px 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .nav-links { display: none; }

  .hero { padding: 64px 0 56px; }
  section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
