/* zivopilot.com: the platform's palette and type (apps/web/app/globals.css, from the approved prototype). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #050C2A;
  --text: #383F58;
  --muted: #596079;
  --faint: #868CA3;
  --primary: #473DFC;
  --primary-2: #8443FC;
  --primary-soft: #EEECFF;
  --accent: #13DBFD;
  --bg: #F4F5FA;
  --surface: #FFFFFF;
  --surface-2: #FAFBFE;
  --line: #E2E5EF;
  --border: #D3D7E4;
  --night: #0E1640;
  --night-line: #1F2858;
  --night-muted: #A9B0D0;
  --night-soft: #C1C7E3;
  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --sans: 'Geist', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --radius: 24px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; max-width: 18ch; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.center h1, .center h2 { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); margin: 16px auto 0; max-width: 54ch; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s ease, background-color .15s ease, color .15s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: #3a31e0; color: #fff; }
.button-accent { background: var(--accent); color: var(--ink); }
.button-accent:hover { background: #4be4fd; color: var(--ink); }
.button-ghost { border: 1.5px solid var(--night-line); color: #fff; }
.button-ghost:hover { border-color: var(--night-soft); color: #fff; }
.button-outline { border: 1.5px solid var(--border); color: var(--ink); background: var(--surface); }
.button-outline:hover { border-color: var(--ink); color: var(--ink); }
.link-quiet { color: var(--ink); font-weight: 600; text-decoration: none; }
.link-quiet:hover { color: var(--primary); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(244, 245, 250, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { width: 150px; height: auto; }
.header-nav { display: flex; gap: 26px; margin-left: 12px; }
.header-nav a { color: var(--text); font-weight: 500; text-decoration: none; font-size: 15px; }
.header-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

/* Hero */
.hero { padding: 12px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 4vw, 56px); align-items: center; background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 72px); max-width: 1200px; margin: 0 auto; width: calc(100% - 2 * var(--gutter)); }
.hero h1 { color: #fff; max-width: 13ch; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 14px; padding: 7px 16px 7px 14px; border-radius: 999px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--night-soft); margin-top: 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--night-muted); }

.hero-board { display: flex; flex-direction: column; gap: 12px; }
.board-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--night); border: 1px solid var(--night-line); border-radius: 18px; padding: 14px 16px; }
.board-time strong { display: block; font-family: var(--display); font-size: 18px; color: #fff; line-height: 1.2; }
.board-time span, .board-text span { display: block; font-size: 13px; color: var(--night-muted); }
.board-text strong { display: block; font-size: 15px; color: #fff; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.tag-accent { background: var(--accent); color: var(--ink); }
.tag-outline { border: 1px solid var(--night-soft); color: #fff; }
.tag-soft { background: var(--primary-soft); color: var(--primary); font-family: var(--sans); font-size: 12px; vertical-align: middle; }
.board-stat { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 20px 22px; }
.board-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.board-number { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.board-sub { color: var(--text); font-size: 14px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 64px; margin-top: 16px; }
.bars i { display: block; background: var(--accent); border-radius: 6px; }
.bars i:nth-child(1) { height: 22%; } .bars i:nth-child(2) { height: 38%; } .bars i:nth-child(3) { height: 30%; }
.bars i:nth-child(4) { height: 62%; } .bars i:nth-child(5) { height: 50%; } .bars i:nth-child(6) { height: 96%; background: var(--ink); }
.bars i:nth-child(7) { height: 74%; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-flat { background: transparent; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--bg); border-radius: var(--radius); padding: 26px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.step-number { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 20px; display: grid; place-items: center; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--primary); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }

.cta-band { background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%); color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #E6E3FF; font-size: 18px; margin-bottom: 14px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.footer-brand img { width: 132px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-start; }
.footer-links a { color: var(--text); font-size: 15px; text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.footer-legal p { color: var(--faint); font-size: 13px; }

/* Legal pages */
.legal { max-width: 800px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(64px, 9vw, 112px); }
.legal-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.legal-head h1 { font-size: clamp(36px, 5vw, 56px); }
.legal-updated { color: var(--faint); font-size: 14px; margin-top: 12px; }
.legal-intro { color: var(--text); font-size: 18px; margin-top: 20px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); max-width: none; margin: 44px 0 14px; scroll-margin-top: 96px; }
.legal h3 { font-size: 18px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.legal ul.facts { list-style: none; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 14px; }
/* Two columns, fixed layout and wrapping cells: the tables fit a phone without scrolling sideways. */
.legal table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 14px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.legal th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px; }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { width: 38%; color: var(--ink); font-weight: 500; }
.legal code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.86em; background: var(--primary-soft); color: var(--ink); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.legal-foot { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted) !important; }

/* Narrow screens */
@media (max-width: 1000px) {
  .header-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .cards, .cards-four, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-row { min-height: 64px; gap: 12px; }
  .logo img { width: 124px; }
  .header-actions { gap: 12px; }
  .header-actions .link-quiet { font-size: 15px; }
  .button-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .hero-grid { border-radius: 24px; padding: 28px 20px; }
  .hero-actions .button { flex: 1 1 100%; }
  .cards, .cards-four, .steps { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 52px minmax(0, 1fr); }
  .board-row .tag { grid-column: 2; justify-self: start; }
  .legal td:first-child { width: 42%; }
  .legal th, .legal td { padding: 11px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .faq summary::after { transition: none; }
}
