/* ProClaimer marketing site. Brand tokens follow the iOS app (spec §9). */
:root {
  --blue: #0B5CAB;
  --blue-bright: #0176D3;
  --navy: #014486;
  --text: #181818;
  --text-2: #54606E;
  --border: #E1E6EE;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --tint: #EEF4FF;
  --tint-2: #DCEAFE;
  --success: #22683E;
  --warning: #8C4B02;
  --on-blue: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 8px 24px rgba(16, 32, 64, .08);
  --radius: 16px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --blue: #78B0FD;
  --blue-bright: #59A7FF;
  --navy: #AACBFF;
  --text: #F3F3F3;
  --text-2: #A5AEBB;
  --border: #263042;
  --bg: #0B0F17;
  --surface: #161B24;
  --tint: #152238;
  --tint-2: #1C2D4A;
  --success: #6CCB8F;
  --warning: #F2B66B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-bright); outline-offset: 2px;
}
.btn-primary { background: #0B5CAB; color: #fff; box-shadow: 0 6px 16px rgba(11, 92, 171, .3); }
.btn-primary:hover { background: #014486; }
.btn-light { background: #fff; color: #0B5CAB; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--border); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #0176D3, #014486); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; padding: .55em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(120, 176, 253, .35), transparent 60%),
              linear-gradient(135deg, #0176D3 0%, #014486 70%);
  padding: 72px 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 88px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .9em; border-radius: 999px; background: rgba(255, 255, 255, .14); margin-bottom: 20px;
}
.hero p.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.hero-phones { position: relative; z-index: 0; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-phones .phone { margin-bottom: -60px; z-index: 2; }
.hero-phones .phone + .phone { margin-left: -60px; transform: translateY(40px) scale(.9); z-index: 1; opacity: .95; }
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-phones .phone + .phone { display: none; }
}

/* Phone frames around real app screenshots */
.phone {
  position: relative; width: 280px; flex: none;
  background: #0B0F17; border-radius: 46px; padding: 9px;
  box-shadow: 0 30px 60px rgba(0, 20, 50, .35), inset 0 0 0 2px #2a3242;
}
.phone img { width: 100%; height: auto; border-radius: 38px; display: block; }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Problem */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pain h3 { color: var(--blue); }
.pain { border-top: 3px solid var(--blue-bright); }
.pain p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }

/* Audience feature blocks */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.audience + .audience { margin-top: 112px; }
.audience.flip .audience-visual { order: -1; }
.audience-visual { display: flex; justify-content: center; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-list .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.feature-list .ic svg { width: 20px; height: 20px; }
.feature-list strong { display: block; }
.feature-list span { color: var(--text-2); font-size: .97rem; }
@media (max-width: 900px) {
  .audience { grid-template-columns: 1fr; gap: 40px; }
  .audience.flip .audience-visual { order: 0; }
  .audience + .audience { margin-top: 80px; }
}

/* Photos */
.photo { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { padding: 14px 18px; background: var(--surface); color: var(--text-2); font-size: .95rem; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.split .section-head { margin-bottom: 0; }
.split .photo { aspect-ratio: 4 / 3; }
.photo-stack { position: relative; display: block; padding: 0 0 40px; }
.photo-stack .photo { aspect-ratio: 4 / 3; width: 88%; }
.photo-stack .phone { position: absolute; right: 0; bottom: 0; width: 210px; border-radius: 36px; padding: 7px; }
.photo-stack .phone img { border-radius: 30px; }
.audience.flip .photo-stack .photo { margin-left: auto; }
.audience.flip .photo-stack .phone { right: auto; left: 0; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.photo-pair .photo img { aspect-ratio: 16 / 10; height: auto; }
.outcome { background: var(--surface); border-top: 1px solid var(--border); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.outcome-grid .photo { aspect-ratio: 5 / 4; }
.outcome p { color: var(--text-2); font-size: 1.1rem; }
@media (max-width: 900px) {
  .split, .outcome-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo-stack { padding-bottom: 60px; }
  .photo-stack .photo { width: 100%; }
  .photo-stack .phone { width: 150px; right: 12px; border-radius: 28px; padding: 5px; }
  .photo-stack .phone img { border-radius: 24px; }
  .audience.flip .photo-stack .phone { left: 12px; }
}
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

/* "Built by PAs" band */
.band { background: linear-gradient(135deg, #014486, #0B2E5C); color: #fff; }
.band .kicker { color: #AACBFF; }
.band p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.band .check-list li { color: #fff; font-weight: 500; }
.band .check-list li::before { background-color: #2E844A; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Peril photo grid */
.peril-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.peril { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--tint); box-shadow: var(--shadow); }
.peril.big { grid-row: span 2; }
.peril img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.peril figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: .35em .85em; border-radius: 999px;
  background: rgba(11, 15, 23, .72); color: #fff; font-weight: 600; font-size: .9rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 860px) {
  .peril-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px repeat(2, 160px); }
  .peril.big { grid-column: span 2; grid-row: auto; }
  .peril figcaption { left: 8px; bottom: 8px; font-size: .78rem; white-space: nowrap; }
}

/* Team grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.alt .card { background: var(--bg); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #0176D3, #014486); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; }
.card p { color: var(--text-2); margin: 0; font-size: .97rem; }
@media (max-width: 980px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* App showcase strip */
.strip { display: flex; gap: 28px; overflow-x: auto; padding: 8px 4px 32px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; scroll-snap-align: center; flex: none; }
.strip figcaption { text-align: center; margin-top: 16px; font-weight: 600; }
.strip figcaption span { display: block; color: var(--text-2); font-weight: 400; font-size: .92rem; }
.strip .phone { width: 250px; }
.native-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.native-badges span { background: var(--surface); border: 1px solid var(--border); padding: .45em 1em; border-radius: 999px; font-size: .92rem; font-weight: 500; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tint-2); color: var(--blue); font-weight: 800; margin-bottom: 16px;
}
.step p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Security */
.security { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.shield {
  aspect-ratio: 1; max-width: 360px; margin: 0 auto; width: 100%; border-radius: 32px;
  background: linear-gradient(135deg, #0176D3, #014486); display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow);
}
.shield svg { width: 45%; height: 45%; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) { .security { grid-template-columns: 1fr; gap: 40px; } .shield { max-width: 220px; } }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--blue); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); padding-right: 40px; }

/* Demo form */
.demo { background: linear-gradient(135deg, #0176D3 0%, #014486 75%); color: #fff; }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.demo-copy p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.demo-copy ul { padding-left: 1.2em; color: rgba(255, 255, 255, .88); }
.demo-copy li { margin-bottom: 8px; }
.form-card { background: var(--surface); color: var(--text); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px rgba(0, 20, 50, .3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { color: var(--text-2); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: .7em .85em; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #BA0517; }
.field .err { color: #BA0517; font-size: .85rem; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.form-foot .btn { width: 100%; font-size: 1.05rem; }
.form-foot small { color: var(--text-2); text-align: center; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: #E3F3E8; color: #22683E; }
.form-status.fail { display: block; background: #FDE7E9; color: #8E030F; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }

/* Footer */
.site-footer { padding: 48px 0; color: var(--text-2); font-size: .95rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; padding: .35em .9em; font: inherit; font-size: .9rem; cursor: pointer; }

/* Simple pages (privacy, thanks) */
.page { padding: 72px 0 96px; }
.page .container { max-width: 780px; }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page p, .page li { color: var(--text-2); }
.page-center { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin: 0 auto 24px; }
.big-check svg { width: 36px; height: 36px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
