/* ===================================================================
   Praevidens.ai — marketing site
   Design tokens are 1:1 with the approved handoff (high-fidelity).
   =================================================================== */

:root {
  --bg:        #0A0F1C;
  --bg-alt:    #0E1626;
  --accent:    #1A6CF5;
  --accent-2:  #4F8DF8;
  --b-past:    #41517D;
  --b-now:     #6F88D6;
  --b-25:      #4C5F96;
  --b-50:      #5A70B0;
  --white:     #FFFFFF;
  --t-list:    #CDD8EF;
  --t-2:       #8A99B8;
  --t-3:       #41517D;

  --bd-1:   rgba(205,216,239,0.10);
  --bd-card:rgba(205,216,239,0.12);
  --bd-in:  rgba(205,216,239,0.18);
  --bd-btn: rgba(205,216,239,0.25);

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'IBM Plex Sans', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --pad:  32px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--f-display); }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--f-mono); }
.section-alt { border-top: 1px solid var(--bd-1); background: var(--bg-alt); }
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-2); margin-bottom: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,15,28,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd-1);
}
.nav {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--t-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--t-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-login:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; transition: .2s; }
.nav-links .m-cta { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 10px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s; font-family: var(--f-body); }
.btn-primary { background: var(--accent); color: var(--white); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-outline { color: var(--white); border: 1px solid var(--bd-btn); background: transparent; }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-lg { font-size: 17px; padding: 15px 30px; }
.btn-sm { font-size: 15px; padding: 10px 20px; border-radius: 8px; }
.btn-md { font-size: 15.5px; padding: 12px 24px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 96px var(--pad) 80px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--t-2); border: 1px solid var(--bd-in); border-radius: 999px; padding: 7px 16px; margin-bottom: 28px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero h1 { font-size: 60px; line-height: 1.05; font-weight: 600; margin: 0 0 24px; letter-spacing: -0.02em; text-wrap: pretty; }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--t-2); margin: 0 0 36px; max-width: 520px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { font-family: var(--f-mono); font-size: 12.5px; color: var(--t-2); margin-top: 20px; }

.forecast-card { background: var(--bg-alt); border: 1px solid var(--bd-card); border-radius: 16px; padding: 36px; }
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-label { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--t-2); margin-bottom: 8px; }
.bar-label.next { color: var(--white); }
.bar { height: 22px; border-radius: 8px; transform-origin: left; animation: pv-bar-grow .9s ease-out both; }
.bar.past { width: 62%; background: var(--b-past); animation-duration: .8s; }
.bar.now  { width: 82%; background: var(--b-now);  animation-duration: 1.1s; }
.bar.next { width: 100%; background: var(--accent); animation-duration: 1.4s; box-shadow: 0 0 24px rgba(26,108,245,0.45); }
.forecast-tag { font-family: var(--f-mono); font-size: 12px; color: var(--t-2); margin-top: 24px; letter-spacing: 0.08em; }
@keyframes pv-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .bar { animation: none; } }

/* ---------- Generic section headings ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 88px var(--pad); }
.sec h2 { font-size: 40px; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.015em; text-wrap: pretty; }
.sec .lead { font-size: 17px; line-height: 1.6; color: var(--t-2); margin: 0 0 48px; max-width: 640px; text-wrap: pretty; }
.mw-720 { max-width: 720px; } .mw-820 { max-width: 820px; } .mw-700 { max-width: 700px; }

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--bd-1); border-radius: 14px; padding: 32px; }
.card-num { font-family: var(--f-mono); font-size: 13px; color: var(--t-3); margin-bottom: 14px; }
.card h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; text-wrap: pretty; }
.card p { font-size: 15px; line-height: 1.6; color: var(--t-2); margin: 0; }

.feature { background: var(--bg); border: 1px solid var(--bd-1); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; transition: border-color .15s; }
.feature:hover { border-color: rgba(79,141,248,0.45); }
.feature-tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--accent-2); margin-bottom: 12px; }
.feature h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; text-wrap: pretty; }
.feature p { font-size: 15px; line-height: 1.65; color: var(--t-2); margin: 0; flex: 1; }
.feature-note { font-family: var(--f-mono); font-size: 12px; color: var(--t-3); margin-top: 18px; }

/* ---------- Solution block ---------- */
.solution-block { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; max-width: 700px; }
.solution-block .big { font-size: 21px; font-weight: 600; margin-bottom: 10px; font-family: var(--f-display); }
.solution-block p { font-size: 15.5px; line-height: 1.65; color: var(--t-2); margin: 0; }
.solution-block .moat { font-family: var(--f-mono); font-size: 13px; color: var(--accent-2); margin-top: 16px; }

/* ---------- Closed loop ---------- */
.loop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.loop-step { display: flex; flex-direction: column; gap: 12px; }
.loop-bar { height: 8px; border-radius: 4px; }
.loop-num { font-family: var(--f-mono); font-size: 12px; color: var(--t-2); }
.loop-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.loop-desc { font-size: 13.5px; line-height: 1.55; color: var(--t-2); }

/* ---------- Screenshot placeholder ---------- */
.shot { border: 1px dashed rgba(205,216,239,0.28); border-radius: 16px; background: repeating-linear-gradient(-45deg, #0E1626, #0E1626 14px, #101a2e 14px, #101a2e 28px); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.shot span { font-family: var(--f-mono); font-size: 13px; color: var(--t-2); text-align: center; line-height: 1.7; }

/* ---------- Comparison table ---------- */
.cmp { border: 1px solid var(--bd-card); border-radius: 14px; overflow: hidden; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1.6fr 0.8fr; gap: 0; align-items: center; }
.cmp-head { background: var(--bg); padding: 14px 24px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--t-3); }
.cmp-head .r { text-align: right; }
.cmp-row { padding: 16px 24px; border-top: 1px solid rgba(205,216,239,0.08); }
.cmp-row .name { font-size: 15.5px; font-weight: 600; color: var(--white); }
.cmp-row .does, .cmp-row .miss { font-size: 13.5px; line-height: 1.5; color: var(--t-2); padding-right: 16px; }
.cmp-row .cost { font-family: var(--f-mono); font-size: 13px; color: var(--white); text-align: right; }
.cmp-row .cell-label { display: none; }
.cmp-row.us { background: rgba(26,108,245,0.09); }
.cmp-row.us .name, .cmp-row.us .cost { color: var(--accent-2); }
.cmp-row.us .does, .cmp-row.us .miss { color: var(--white); }
.uniques { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin-top: 44px; }
.unique { display: flex; gap: 14px; align-items: flex-start; }
.unique .arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.unique span:last-child { font-size: 15px; line-height: 1.6; color: var(--t-list); }

/* ---------- Audiences ---------- */
.aud { border: 1px solid var(--bd-card); border-radius: 16px; padding: 40px; background: var(--bg-alt); display: flex; flex-direction: column; }
.aud h3 { font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.aud .gmv { font-family: var(--f-mono); font-size: 12.5px; color: var(--t-2); margin-bottom: 20px; }
.aud-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.aud-list div { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--t-2); }
.aud-list .dot { color: var(--b-now); }
.aud-punch { font-size: 15.5px; line-height: 1.6; color: var(--white); font-weight: 500; margin: 24px 0 26px; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { padding-left: 24px; border-left: 3px solid var(--b-past); }
.metric .num { font-family: var(--f-mono); font-size: 40px; font-weight: 600; color: var(--white); }
.metric .cap { font-size: 14.5px; color: var(--t-2); margin-top: 8px; }
.metric.m2 { border-left-color: var(--b-now); }
.metric.m3 { border-left-color: var(--accent-2); }
.metric.m4 { border-left-color: var(--accent); }
.metric.m4 .num { color: var(--accent); }
.metrics-note { font-family: var(--f-mono); font-size: 12.5px; color: var(--t-3); margin-top: 40px; }

/* ---------- Final CTA ---------- */
.final { max-width: var(--wrap); margin: 0 auto; padding: 104px var(--pad); text-align: center; }
.final h2 { font-size: 44px; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.015em; text-wrap: pretty; }
.final p { font-size: 18px; color: var(--t-2); margin: 0 0 36px; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-note { font-family: var(--f-mono); font-size: 12.5px; color: var(--t-2); margin-top: 24px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { max-width: var(--wrap); margin: 0 auto; padding: 96px var(--pad) 72px; }
.page-hero h1 { font-size: 54px; line-height: 1.08; font-weight: 600; margin: 0 0 24px; letter-spacing: -0.02em; max-width: 780px; text-wrap: pretty; }
.page-hero .lead { font-size: 19px; line-height: 1.6; color: var(--t-2); margin: 0 0 36px; max-width: 660px; text-wrap: pretty; }
.page-hero .sub { font-family: var(--f-mono); font-size: 12.5px; color: var(--t-2); margin-top: 18px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--bg-alt); border: 1px solid var(--bd-card); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan.popular { border-color: rgba(26,108,245,0.65); }
.plan .pop-badge { position: absolute; top: -13px; left: 32px; background: var(--accent); color: var(--white); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px; }
.plan .name { font-size: 23px; font-weight: 600; font-family: var(--f-display); }
.plan .best { font-size: 14.5px; color: var(--t-2); margin-top: 4px; }
.plan .price { font-size: 40px; font-weight: 600; margin-top: 14px; font-family: var(--f-display); }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--t-2); }
.plan .ai { font-size: 14.5px; color: var(--accent-2); font-weight: 500; margin-top: 6px; }
.plan .items { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; flex: 1; }
.plan .items div { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--t-list); }
.plan .items .chk { color: var(--accent); flex-shrink: 0; }
.plan .btn { margin-top: 26px; display: block; padding: 13px 0; }
.price-foot { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 96px; text-align: center; }
.price-foot .mono { font-size: 12.5px; color: var(--t-2); }
.plan.agency .price { font-size: 36px; }
.plan.agency .stores { font-size: 15px; color: var(--accent-2); font-weight: 500; margin-top: 4px; }
.plan.agency .items div { font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; padding: 96px var(--pad); }
.faq-wrap h1 { font-size: 48px; font-weight: 600; margin: 0 0 48px; letter-spacing: -0.02em; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--bd-card); border-radius: 12px; background: var(--bg-alt); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--white); font-family: var(--f-body); font-size: 17.5px; font-weight: 600; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-icon { font-family: var(--f-mono); font-size: 16px; color: var(--accent-2); flex-shrink: 0; }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; font-size: 15.5px; line-height: 1.65; color: var(--t-2); transition: max-height .28s ease, padding .28s ease; }
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 400px; }

/* ---------- Form ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; padding: 96px var(--pad); }
.form-wrap h1 { font-size: 44px; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.02em; }
.form-intro { font-size: 17px; line-height: 1.6; color: var(--t-2); margin: 0 0 44px; text-wrap: pretty; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--t-list); }
.field .opt { color: var(--t-2); font-weight: 400; }
.field input, .field select, .field textarea {
  background: var(--bg-alt); border: 1px solid var(--bd-in); border-radius: 9px; padding: 13px 14px;
  color: var(--white); font-family: var(--f-body); font-size: 15px; outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); }
.field textarea { resize: vertical; }
.form button[type=submit] { background: var(--accent); color: var(--white); border: none; font-family: var(--f-body); font-size: 17px; font-weight: 600; padding: 16px 0; border-radius: 10px; cursor: pointer; margin-top: 8px; transition: background .15s; }
.form button[type=submit]:hover { background: var(--accent-2); }
.form-fine { font-family: var(--f-mono); font-size: 12px; color: var(--t-2); text-align: center; }
.form-success { border: 1px solid rgba(26,108,245,0.55); background: rgba(26,108,245,0.07); border-radius: 14px; padding: 36px; text-align: center; }
.form-success .h { font-size: 24px; font-weight: 600; margin-bottom: 10px; font-family: var(--f-display); }
.form-success p { font-size: 15.5px; color: var(--t-2); margin: 0; }
.is-hidden { display: none; }

/* ---------- Agencies extras ---------- */
.soon-badge { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--b-now); border: 1px solid rgba(111,136,214,0.4); border-radius: 999px; padding: 3px 10px; }
.af-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.af-head h3 { font-size: 21px; font-weight: 600; margin: 0; }
.feature.af p { flex: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--bd-1); background: var(--bg-alt); }
.footer-top { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad); display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 22px; display: block; align-self: flex-start; }
.footer-brand .mono { font-size: 12px; color: var(--t-2); }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .h { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--t-3); }
.footer-col a { color: var(--t-2); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-copy { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 32px; font-family: var(--f-mono); font-size: 11.5px; color: var(--t-3); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(10,15,28,0.98); backdrop-filter: blur(12px); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad) 16px; border-bottom: 1px solid var(--bd-1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-right { display: none; }
  .nav-links .m-cta { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--bd-1); }
  .nav-links .m-cta a { padding: 12px 0; }
  .nav-links .m-cta .btn { text-align: center; padding: 13px 0; }

  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px var(--pad) 56px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }

  .sec { padding: 56px var(--pad); }
  .sec h2 { font-size: 30px; }
  .final { padding: 72px var(--pad); }
  .final h2 { font-size: 32px; }
  .page-hero { padding: 56px var(--pad) 40px; }
  .page-hero h1 { font-size: 36px; }
  .faq-wrap { padding: 56px var(--pad); }
  .faq-wrap h1 { font-size: 34px; }
  .form-wrap { padding: 56px var(--pad); }
  .form-wrap h1 { font-size: 32px; }

  .grid-3, .grid-2, .price-grid, .metrics, .uniques { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Comparison table → stacked cards */
  .cmp { border: none; border-radius: 0; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; gap: 6px; padding: 20px; border: 1px solid var(--bd-card); border-radius: 12px; margin-bottom: 12px; }
  .cmp-row .name { font-size: 18px; margin-bottom: 4px; }
  .cmp-row .does, .cmp-row .miss { padding-right: 0; }
  .cmp-row .cell-label { display: inline; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--t-3); margin-right: 6px; }
  .cmp-row .cost { text-align: left; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .loop { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
