/* Prediko Forward landing page
   Tokens from the Prediko & Pia design system (tokens.json, Oct 2026). */
:root {
  --bg: #FFFFFF;
  --bg-subtle: #F7F6FB;
  --surface: #FFFFFF;
  --surface-raised: #F1EFF7;
  --border: #E3E0EE;
  --border-strong: #8E89A3;
  --text: #17142B;
  --text-muted: #4D4A57;
  --text-subtle: #6B6778;
  --accent: #5B2BD6;
  --accent-hover: #4A23B8;
  --accent-pressed: #2E1478;
  --accent-soft: #936CDD;
  --accent-tint: #EFEAFD;
  --accent-tint-text: #3B1C99;
  --accent-border: #CFC4F5;
  --inverse-bg: #17142B;
  --inverse-surface: #2A2540;
  --inverse-border: #3A3550;
  --inverse-text: #FFFFFF;
  --inverse-text-muted: #E4E0F0;
  --inverse-accent: #C9B8FF;
  --pia-card-text: #D6D1E6;
  --pia-card-meta: #A9A3BF;
  --success: #1F7A4D;
  --success-tint: #E6F4EC;
  --warning: #A35200;
  --warning-tint: #FFF1E0;
  --warning-text: #6E3700;
  --mark-violet: #9A6FE4;
  --mark-sky: #8DA1E9;
  --mark-orchid: #CF7ABA;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(23,20,43,0.06), 0 1px 1px rgba(23,20,43,0.04);
  --shadow-md: 0 6px 16px rgba(23,20,43,0.08), 0 2px 4px rgba(23,20,43,0.05);
  --shadow-pia: 0 12px 32px rgba(59,28,153,0.18), 0 2px 6px rgba(23,20,43,0.08);

  --wrap: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-hover); }
p { margin: 0; }
b { font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Ad variants */
.v { display: none; }
html[data-ad="default"] .v-default,
html[data-ad="process"] .v-process,
html[data-ad="agent"] .v-agent,
html[data-ad="build-vs-buy"] .v-build-vs-buy { display: block; }

/* Type */
.h-hero {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 7.2vw, 3.9rem); line-height: 1; letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.h-hero .accent { display: block; }
.accent { color: var(--accent); }
.accent-dark { color: var(--inverse-accent); }
.h-section {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.h-card { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); }
.lede { font-size: 18px; line-height: 1.5; color: var(--text-muted); max-width: 35em; }
.section-lede { font-size: 18px; color: var(--text-muted); max-width: 40em; }
.section-lede.center { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-md);
  font: 700 16px/1 var(--f-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 0; transition: background-color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.brand-pill { font-size: 13px; font-weight: 700; color: var(--accent-tint-text); background: var(--accent-tint); border-radius: 999px; padding: 4px 10px; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.offer-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--success); }
.offer-line .ic { width: 18px; height: 18px; stroke-width: 2.25; }

/* Blueprint card */
.blueprint {
  margin: 0; width: 100%; max-width: 480px; justify-self: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 22px;
}
.bp-head { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.bp-label { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--accent-tint-text); }
.bp-title { grid-column: 1; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.bp-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--text-muted); background: var(--surface-raised); border-radius: 999px; padding: 4px 10px; }
.bp-intro { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.bp-rows { display: grid; gap: 12px; }
.bp-rows li { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 6px; }
.bp-role { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text); }
.bp-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bp-dot-core { background: var(--mark-sky); }
.bp-dot-config { background: var(--mark-violet); }
.bp-dot-build { background: var(--mark-orchid); }
.bp-today, .bp-built { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.bp-today { color: var(--text-subtle); }
.bp-today .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--text-subtle); }
.bp-built { color: var(--text); font-weight: 500; }
.bp-built .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--accent); stroke-width: 2.25; }
.bp-foot { margin-top: 16px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent-tint-text); font-size: 14px; font-weight: 500; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding-top: 24px; }
.band-grey { background: var(--bg-subtle); }
.section-cta { margin-top: 40px; text-align: center; }

/* Logos */
.logos { padding: 8px 0 48px; }
.logos-title { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); }
.logos .marquee { margin-top: 24px; }

/* Flow: every source in, one plan out (mobile: stacked) */
.flow { display: grid; gap: 12px; margin-top: 40px; }
.flow-cables { display: none; }
.flow-label { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); text-align: center; margin-bottom: 10px; }
.flow-col ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.flow-chip {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); font-size: 14px; font-weight: 500; line-height: 1.25;
}
.flow-chip .ic { color: var(--text-subtle); width: 18px; height: 18px; }
.flow-chip-out .ic { color: var(--accent); stroke-width: 2.25; }
.flow-step { display: block; margin: 4px 0; }
.flow-v { display: block; width: 100%; overflow: visible; }
.flow-v-in { height: 160px; }
.flow-v-out { height: 120px; margin-bottom: 12px; }
.flow-v path { fill: none; stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flow-hub { background: var(--inverse-bg); color: var(--inverse-text-muted); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-pia); }
.flow-hub-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--inverse-text); margin-bottom: 12px; }
.flow-hub-title img { width: 22px; height: auto; }
.flow-hub ul { display: grid; gap: 8px; font-size: 14px; }
.flow-hub li { display: flex; align-items: center; gap: 8px; }
.flow-hub .ic { width: 16px; height: 16px; color: var(--inverse-accent); stroke-width: 2.25; }

@media (min-width: 760px) {
  .flow { display: block; position: relative; height: 440px; margin-top: 64px; }
  .flow-cables { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .flow-cables path { fill: none; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .flow-step { display: none; }
  .flow-col { position: absolute; top: 0; bottom: 0; width: 18%; }
  .flow-in { left: 0; }
  .flow-out { right: 0; }
  .flow-label { position: absolute; top: -34px; left: 0; right: 0; margin: 0; }
  .flow-col ul { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
  .flow-in ul { padding: 16px 0; }
  .flow-out ul { padding: 61px 0; }
  .flow-chip { height: 48px; position: relative; z-index: 1; }
  .flow-out .flow-chip { height: 48px; }
  .flow-hub { position: absolute; left: 39%; width: 22%; top: 50%; transform: translateY(-50%); z-index: 1; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .flow-hub { left: 36%; width: 28%; padding: 16px; }
  .flow-hub-title { font-size: 1.1rem; gap: 8px; }
  .flow-hub ul { font-size: 13px; }
}

/* Why us */
.why-grid { display: grid; gap: 24px; margin-top: 12px; }
.why-main { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-radius: var(--r-xl); padding: 28px; }
.why-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.4rem, 10vw, 5.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.why-text { font-size: 20px; line-height: 1.4; color: var(--text-muted); margin-top: 10px; max-width: 28em; }
.why-text b { color: var(--text); }
.why-rating { margin-top: 18px; font-size: 15px; color: var(--text-muted); }
.why-rating b { color: var(--text); }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 17px; }
.why-side { display: grid; gap: 16px; }
.why-item { border: 1px solid var(--border); border-radius: var(--r-xl); padding: 22px; display: grid; gap: 12px; align-content: start; }
.why-item img { width: 139px; height: auto; }
.why-item p { color: var(--text-muted); }
.why-item-title { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: var(--text) !important; }

.marquee {
  display: flex; overflow: hidden;
}
.marquee-track { display: flex; align-items: center; gap: 64px; padding-right: 64px; flex: none; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { width: auto; max-height: 34px; opacity: .75; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-sm); }
.card p { color: var(--text-muted); }
.card-featured { background: var(--inverse-bg); border-color: var(--inverse-bg); }
.card-featured .h-card { color: var(--inverse-text); }
.card-featured p { color: var(--inverse-text-muted); }
.card-kicker { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--accent-tint-text) !important; margin-bottom: 6px; }

/* Steps */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; gap: 8px; align-content: start; }
.dot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.step-when { font-size: 13px; font-weight: 700; color: var(--accent-tint-text); }
.steps p { color: var(--text-muted); }
.steps p b { color: var(--text); }

/* Already solved */
.solved { margin-top: 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px dashed var(--accent-border); padding: 20px 24px; }
.solved-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; color: var(--success); }
.solved-title .ic { stroke-width: 2.25; }
.solved p:last-child { color: var(--text-muted); }

/* Proof */
.proof { background: var(--accent-tint); border-radius: var(--r-xl); padding: 28px 24px; display: grid; gap: 20px; }
.big { font-family: var(--f-display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -1.5px; color: var(--accent); }
.big-label { font-weight: 700; margin-top: 6px; }
.big-scope { font-size: 13px; color: var(--accent-tint-text); }
.proof-quote { margin: 0; font-size: 18px; }
.proof-quote footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--accent-tint-text); }
.proof-quote footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.proof-quote footer b { display: block; color: var(--text); }
.h-sub { margin: 56px 0 0; font-size: clamp(1.4rem, 3.4vw, 1.8rem); }
.testimonials { display: grid; gap: 16px; margin-top: 24px; }
.t-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.t-card blockquote { margin: 0; flex: 1; }
.t-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-tint-text); background: var(--accent-tint); border-radius: 999px; padding: 3px 10px; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.t-card figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.t-card figcaption b { display: block; color: var(--text); }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 28px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font-weight: 700; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-muted); }

/* Book */
.book { padding: 48px 0 56px; }
.book-band { background: var(--inverse-bg); color: var(--inverse-text-muted); border-radius: var(--r-xl); padding: 32px 22px; display: grid; gap: 28px; align-items: center; }
.h-book { color: var(--inverse-text); font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 14px; }
.h-book .accent-dark { display: block; }
.book-points { display: grid; gap: 8px; margin-top: 20px; }
.book-points li { display: flex; align-items: center; gap: 10px; }
.book-points .ic { color: var(--inverse-accent); stroke-width: 2.25; width: 18px; height: 18px; }
.book-card { background: var(--surface); color: var(--text); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.book-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form .btn[disabled] { opacity: .7; cursor: progress; }
.scheduler-title { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; outline: none; }
.scheduler-slot { min-height: 640px; }
.scheduler-slot .meetings-iframe-container, .scheduler-slot iframe { width: 100%; }
/* Once the form is sent, the scheduler takes the full band width */
.book-band.is-booking { grid-template-columns: 1fr; }
.book-band.is-booking .book-copy { display: none; }
.book-band.is-booking .book-card { padding: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 400 16px/1.3 var(--f-sans);
}
.field input::placeholder { color: var(--text-subtle); }
.field [aria-invalid="true"] { border-color: #C2272D; }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; }
.form-note.is-error { color: #8A1519; }

/* Footer */
.site-footer { padding: 32px 0 112px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.footer-logo { width: 102px; height: auto; }
.footer-badges { display: flex; align-items: center; gap: 16px; }
.footer-badges img { height: 32px; width: auto; }
.footer-inner a { color: var(--text-muted); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--border); font-size: 13px; font-weight: 500; line-height: 1.3;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-on { transform: none; }

/* Breakpoints */
@media (max-width: 559px) {
  .header-inner .btn-sm { padding: 10px 12px; font-size: 14px; }
  .brand img { width: 104px; }
  .brand-pill { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .bp-head { grid-template-columns: 1fr; }
  .bp-meta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
@media (min-width: 720px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .testimonials-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1.15fr 1fr; }
  .proof { grid-template-columns: 240px 1fr; align-items: center; padding: 32px 36px; }
  .proof-quote { border-left: 1px solid var(--accent-border); padding-left: 32px; }
  .stack-compare { grid-template-columns: 1fr auto 1fr; }
  .stack-arrow .ic { transform: none; }
  .stack-panel { padding: 24px; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .blueprint { justify-self: end; }
  .section { padding: 96px 0; }
  .section-tight { padding-top: 32px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .book { padding: 72px 0 72px; }
  .book-band { grid-template-columns: 1.1fr .9fr; padding: 48px; gap: 48px; }
  .sticky-cta { display: none; }
  .site-footer { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .marquee { justify-content: center; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: 28px 40px; padding: 0 var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* Stack visual: dots carry data through the tangle, then stream out cleanly */
.flow-dot { filter: drop-shadow(0 0 3px rgba(201,184,255,.8)); }
.flow-dot-out { filter: drop-shadow(0 0 4px rgba(91,43,214,.45)); }
@media (prefers-reduced-motion: reduce) { .flow-dot { display: none; } }
