/* Alpine Analytics web prototype styles.
   Layout: white page, navy grid lines and anchors, black type and buttons,
   one Signal Blue element per view. Montserrat only. No gradients. */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --navy: #023A6C;
  --signal: #2A91E7;
  --ink-2: #33475B;          /* secondary text, navy-tinted */
  --line: rgba(2, 58, 108, 0.16);
  --line-strong: rgba(2, 58, 108, 0.42);
  --panel: #F4F7FA;          /* light grey panel, small areas only */
  --font: "Montserrat", "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--white); color: var(--black); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Type */
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
h4 { font-weight: 700; font-size: 1rem; line-height: 1.3; }
p { margin: 0; max-width: 66ch; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.label { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.data { font-style: italic; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--white); border-bottom: 1px solid var(--navy); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; font-weight: 600; font-size: 0.9rem; }
.nav-links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 0.95rem/1 var(--font); padding: 15px 22px; border-radius: 4px; text-decoration: none; border: 1.5px solid var(--black); cursor: pointer; background: var(--white); color: var(--black); }
.btn:hover { background: var(--panel); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #1c1c1c; }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--black); }
.btn-signal:hover { background: #4aa3ee; }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }
.nav .btn { padding: 11px 16px; font-size: 0.85rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero .lede { margin-top: 20px; }
.hero .row { margin-top: 32px; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* Grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid > * { min-width: 0; }

/* Cards: navy hairline, square-ish corners */
.card { border: 1px solid var(--line-strong); border-radius: 6px; padding: 28px; background: var(--white); display: grid; gap: 14px; align-content: start; }
.card-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.card-dark .label { color: #9EC3E6; }
.card-dark .muted { color: #C9D3DD; }
.panel { background: var(--panel); border-radius: 6px; padding: 24px; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border: 2px solid var(--navy); border-radius: 50%; }
.card-dark .ticks li::before { border-color: var(--white); }

.chip { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.stat { padding: 22px 20px; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
@media (max-width: 640px) { .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: var(--white); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding-block: 18px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 800; color: var(--navy); }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 10px; color: var(--ink-2); }

/* Closing CTA: black end-card, small feature element on a white section */
.endcard { background: var(--black); color: var(--white); border-radius: 8px; padding: clamp(32px, 6vw, 64px); display: grid; gap: 18px; }
.endcard .lede { color: #C9D3DD; }
.endcard .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.endcard img { height: 30px; width: auto; }

/* Footer */
footer { border-top: 1px solid var(--navy); padding-block: 40px; font-size: 0.875rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer img { height: 28px; width: auto; margin-bottom: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; color: var(--black); }
footer nav a { text-decoration: none; }

/* Prototype ribbon */
.proto { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-2); }
.proto .wrap { padding-block: 8px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.proto a { font-weight: 700; color: var(--navy); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Lead capture form (tools site) */
.lead { border: 1px solid var(--line-strong); border-radius: 6px; padding: 22px; display: grid; gap: 12px; background: var(--white); }
.lead h3 { font-size: 1.1rem; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .lead-grid { grid-template-columns: 1fr; } }
.lead label.f { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 600; }
.lead input[type=text], .lead input[type=email], .lead input[type=tel] { font: 400 0.95rem/1.2 var(--font); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white); color: var(--black); width: 100%; min-width: 0; }
.lead input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.lead .consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 0.8rem; color: var(--ink-2); }
.lead .consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.lead .btn { justify-self: start; }
.lead .btn[disabled] { opacity: 0.6; cursor: default; }
.lead-msg { font-size: 0.85rem; font-weight: 600; color: var(--navy); min-height: 1.2em; }
.lead-msg.is-bad { color: #9b1c1c; }
.lead.is-sent input, .lead.is-sent label { opacity: 0.6; pointer-events: none; }
