/* ============================================================
   FractoPlus.ai — shared styles
   Plain CSS. No framework. Loaded by every page.
   ============================================================ */

:root{
  --fp-blue:        #2B29E6;   /* vivid brand blue (header bar, CTAs) */
  --fp-blue-deep:   #1F1DBE;   /* hover / pressed */
  --fp-blue-tint:   #2B29E612; /* ~7% tint for icon chips */
  --fp-blue-tint-2: #2B29E608;

  --fp-ink:         #14142B;   /* headings */
  --fp-text:        #45455C;   /* body */
  --fp-muted:       #8A8A9C;   /* captions / labels */

  --fp-bg:          #FFFFFF;   /* page */
  --fp-soft:        #F5F6FB;   /* alt sections (cool, near-white) */
  --fp-surface:     #FFFFFF;   /* cards */
  --fp-border:      #E7E8F0;   /* 1px cool border */
  --fp-border-soft: #EFF0F6;

  --fp-cream:       #EEF0FF;   /* light-on-blue text */

  --fp-font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fp-r-sm: 10px;
  --fp-r-md: 14px;
  --fp-r-lg: 18px;
  --fp-r-xl: 24px;
  --fp-r-full: 999px;

  --fp-maxw: 1180px;
  --fp-pad: 32px;

  --fp-shadow-card: 0 1px 2px rgba(20,20,43,0.04), 0 8px 28px rgba(20,20,43,0.05);
  --fp-shadow-cta:  0 6px 20px rgba(43,41,230,0.30);
  --fp-shadow-phone:0 40px 80px rgba(20,20,43,0.22), 0 0 0 1px rgba(20,20,43,0.04);
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  background: var(--fp-bg);
  color: var(--fp-text);
  font-family: var(--fp-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{ color: inherit; text-decoration: none; }
img{ display:block; max-width:100%; }
::selection{ background: #2B29E626; }
h1,h2,h3,p{ margin:0; }

.wrap{ max-width: var(--fp-maxw); margin:0 auto; padding-left: var(--fp-pad); padding-right: var(--fp-pad); }

/* ── capsule / kicker ─────────────────────────────── */
.kicker{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 13px; border-radius: var(--fp-r-full);
  background: var(--fp-blue-tint); color: var(--fp-blue);
  font-size:12px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
  white-space:nowrap;
}
.kicker .dot{ width:6px; height:6px; border-radius:50%; background: var(--fp-blue); }

/* ── buttons ──────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family: var(--fp-font); font-weight:700; font-size:15px; line-height:1;
  border:none; cursor:pointer; white-space:nowrap;
  border-radius: var(--fp-r-full);
  transition: transform 140ms cubic-bezier(.2,.8,.2,1), background 140ms, box-shadow 140ms, color 140ms, border-color 140ms;
}
.btn:active{ transform: scale(0.975); }
.btn--primary{ background: var(--fp-blue); color:#fff; padding:15px 26px; box-shadow: var(--fp-shadow-cta); }
.btn--primary:hover{ background: var(--fp-blue-deep); transform: translateY(-1px); }
.btn--ghost{ background:#fff; color: var(--fp-ink); padding:14px 22px; border:1.5px solid var(--fp-border); }
.btn--ghost:hover{ border-color: var(--fp-blue); color: var(--fp-blue); }
.btn--onblue{ background:#fff; color: var(--fp-blue); padding:12px 22px; font-size:14px; }
.btn--onblue:hover{ background: var(--fp-cream); }
.btn--block{ width:100%; padding:16px 26px; font-size:16px; }
.btn .arr{ transition: transform 160ms; }
.btn:hover .arr{ transform: translateX(3px); }
.btn[disabled]{ opacity:0.6; cursor:not-allowed; transform:none; }

/* ── header ───────────────────────────────────────── */
header.site{
  position: sticky; top:0; z-index:50;
  background: var(--fp-blue);
}
header.site .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:66px; gap:24px;
}
.wordmark{
  display:inline-flex; align-items:center;
  padding:8px 16px; border-radius:12px;
  border:1.6px solid rgba(255,255,255,0.85);
  color:#fff; font-weight:800; font-size:18px; letter-spacing:-0.01em;
}
.wordmark .dotai{ color: rgba(255,255,255,0.72); font-weight:700; }
nav.main{ display:flex; align-items:center; gap:30px; margin-left:auto; }
nav.main a{ color: rgba(255,255,255,0.82); font-size:14px; font-weight:600; transition: color 140ms; }
nav.main a:hover{ color:#fff; }
.header-cta{ display:flex; align-items:center; gap:14px; }
.burger{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.burger span{ display:block; width:22px; height:2px; background:#fff; border-radius:2px; margin:4px 0; }

/* mobile menu */
.mmenu{ display:none; background: var(--fp-blue-deep); }
.mmenu.open{ display:block; }
.mmenu .wrap{ display:flex; flex-direction:column; gap:4px; padding-top:8px; padding-bottom:16px; }
.mmenu a{ color:#fff; font-size:15px; font-weight:600; padding:11px 0; border-bottom:1px solid rgba(255,255,255,0.12); }
.mmenu .btn{ margin-top:12px; }

/* ── hero ─────────────────────────────────────────── */
.hero{ padding:84px 0 72px; }
.hero .wrap{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:56px; align-items:center;
}
.hero h1{
  font-size:60px; font-weight:800; line-height:1.04; letter-spacing:-0.03em;
  color: var(--fp-ink); margin-top:22px; text-wrap:balance;
}
.hero h1 .accent{ color: var(--fp-blue); }
.hero .lead{
  font-size:20px; line-height:1.5; color: var(--fp-text);
  margin-top:20px; max-width:480px;
}
.trust-row{
  display:inline-flex; align-items:center; gap:10px;
  margin-top:26px; padding:10px 16px;
  background: var(--fp-soft); border:1px solid var(--fp-border-soft);
  border-radius: var(--fp-r-full);
  font-size:14px; font-weight:600; color: var(--fp-ink);
}
.trust-row .ck{
  width:20px; height:20px; border-radius:50%; flex:0 0 auto;
  background: var(--fp-blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.trust-row b{ color: var(--fp-blue); }
.hero-cta{ display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }
.reassure{ display:flex; gap:18px; margin-top:24px; font-size:13px; color: var(--fp-muted); flex-wrap:wrap; }
.reassure span{ display:inline-flex; align-items:center; gap:6px; }
.reassure svg{ color: var(--fp-blue); }

/* ── phone mockup ─────────────────────────────────── */
.phone-stage{ position:relative; display:flex; justify-content:center; align-items:center; min-height:560px; }
.phone{
  width:300px; height:610px; border-radius:46px;
  background:#14142B; padding:9px; box-shadow: var(--fp-shadow-phone);
  position:relative;
}
.phone-screen{
  width:100%; height:100%; border-radius:38px; background:#fff; overflow:hidden;
  display:flex; flex-direction:column;
}
.pstatus{ display:flex; justify-content:space-between; align-items:center; padding:15px 24px 0; font-size:12px; font-weight:700; color: var(--fp-ink); }
.pstatus .dots{ letter-spacing:1px; font-size:9px; color: var(--fp-muted); }
.phead{ padding:18px 18px 10px; }
.phead-top{ display:flex; justify-content:space-between; align-items:center; }
.plabel{ font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color: var(--fp-muted); }
.streak{ display:inline-flex; align-items:center; gap:5px; background:#FFF1E0; color:#C9820A; font-size:11px; font-weight:800; padding:4px 9px; border-radius:999px; }
.pbar{ display:flex; gap:5px; margin-top:12px; }
.pbar i{ flex:1; height:4px; border-radius:2px; background: var(--fp-border); }
.pbar i.done{ background:#1F9D6B; }
.pbar i.cur{ background: var(--fp-blue); }
.qcard{ margin:8px 18px 0; background:#fff; border:1px solid var(--fp-border); border-radius:18px; padding:18px; }
.qchip{ display:inline-block; background: var(--fp-blue-tint); color: var(--fp-blue); font-size:10px; font-weight:800; letter-spacing:0.06em; padding:4px 9px; border-radius:7px; }
.qprompt{ font-size:15px; font-weight:700; color: var(--fp-ink); margin-top:12px; }
.qmath{ display:flex; align-items:center; justify-content:center; gap:14px; padding:12px 0 4px; color: var(--fp-ink); }
.frac{ display:inline-flex; flex-direction:column; align-items:center; line-height:1; font-weight:800; font-size:34px; }
.frac .bar{ height:3px; min-width:30px; width:100%; background:currentColor; margin:5px 0; }
.qmath .op{ font-size:30px; font-weight:700; color: var(--fp-text); }
.qmath .q{ font-size:34px; font-weight:800; color: var(--fp-blue); }
.opts{ padding:14px 18px 0; display:flex; flex-direction:column; gap:8px; }
.opt{ display:flex; align-items:center; gap:11px; border:1.5px solid var(--fp-border); border-radius:13px; padding:9px 12px; background:#fff; }
.opt.sel{ border-color: var(--fp-blue); background: var(--fp-blue-tint-2); }
.opt .ltr{ width:25px; height:25px; border-radius:8px; background: var(--fp-blue-tint); color: var(--fp-blue); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; }
.opt.sel .ltr{ background: var(--fp-blue); color:#fff; }
.opt .frac{ font-size:14px; }
.opt .frac .bar{ height:1.5px; min-width:16px; margin:2px 0; }
.ptabs{ margin-top:auto; background:#fff; border-top:1px solid var(--fp-border-soft); padding:9px 6px 20px; display:flex; }
.ptab{ flex:1; text-align:center; }
.ptab img{ width:25px; height:25px; margin:0 auto; opacity:0.5; filter:grayscale(0.4); }
.ptab.act img{ opacity:1; filter:none; }
.ptab span{ display:block; font-size:9px; font-weight:600; color: var(--fp-muted); margin-top:2px; }
.ptab.act span{ color: var(--fp-blue); font-weight:700; }

.float{
  position:absolute; background:#fff; border:1px solid var(--fp-border);
  border-radius:15px; padding:11px 14px; display:flex; align-items:center; gap:10px;
  box-shadow: 0 12px 30px rgba(20,20,43,0.12);
}
.float .fi{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; flex:0 0 auto; }
.float .ft{ font-size:13px; font-weight:700; color: var(--fp-ink); }
.float .fs{ font-size:11px; color: var(--fp-muted); margin-top:1px; }
.float--1{ top:54px; left:-26px; }
.float--2{ bottom:96px; right:-22px; }

/* ── section heading ─────────────────────────────── */
.sec{ padding:84px 0; }
.sec.alt{ background: var(--fp-soft); border-top:1px solid var(--fp-border-soft); border-bottom:1px solid var(--fp-border-soft); }
.sec-head{ max-width:640px; }
.sec-head.center{ margin:0 auto; text-align:center; }
.sec-head h2{ font-size:42px; font-weight:800; letter-spacing:-0.025em; line-height:1.1; color: var(--fp-ink); margin-top:16px; text-wrap:balance; }
.sec-head .sub{ font-size:18px; line-height:1.55; color: var(--fp-text); margin-top:16px; }

/* ── feature grid ────────────────────────────────── */
.features{ display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; margin-top:52px; }
.feature{
  background: var(--fp-surface); border:1px solid var(--fp-border);
  border-radius: var(--fp-r-xl); padding:30px;
  transition: border-color 160ms, transform 160ms, box-shadow 160ms;
}
.feature:hover{ border-color:#D7D8E6; transform: translateY(-2px); box-shadow: var(--fp-shadow-card); }
.ficon{
  width:60px; height:60px; border-radius:16px; background: var(--fp-blue);
  color:#fff; display:flex; align-items:center; justify-content:center;
}
.feature h3{ font-size:21px; font-weight:800; letter-spacing:-0.01em; color: var(--fp-ink); margin-top:20px; }
.feature p{ font-size:15px; line-height:1.55; color: var(--fp-text); margin-top:9px; }

/* ── personalized paths ──────────────────────────── */
.paths .wrap{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; }
.paths h2{ font-size:42px; font-weight:800; letter-spacing:-0.025em; line-height:1.1; color: var(--fp-ink); margin-top:16px; }
.paths .sub{ font-size:18px; line-height:1.55; color: var(--fp-text); margin-top:16px; }
.paths .points{ display:flex; flex-direction:column; gap:16px; margin-top:28px; }
.point{ display:flex; gap:13px; align-items:flex-start; }
.point .pc{ width:26px; height:26px; border-radius:8px; background: var(--fp-blue-tint); color: var(--fp-blue); flex:0 0 auto; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.point b{ color: var(--fp-ink); font-weight:700; }
.point span{ color: var(--fp-text); }

.pathviz{ position:relative; background: var(--fp-surface); border:1px solid var(--fp-border); border-radius: var(--fp-r-xl); padding:34px 30px; box-shadow: var(--fp-shadow-card); }
.pnode{ display:flex; align-items:center; gap:16px; position:relative; padding:10px 0; }
.pnode + .pnode::before{
  content:""; position:absolute; left:21px; top:-22px; height:32px; width:2px;
  background: linear-gradient(var(--fp-border), var(--fp-blue));
}
.pnode .num{ width:44px; height:44px; border-radius:50%; flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:15px; border:2px solid var(--fp-border); color: var(--fp-muted); background:#fff; }
.pnode.on .num{ background: var(--fp-blue); border-color: var(--fp-blue); color:#fff; }
.pnode.done .num{ background:#E9F5EF; border-color:#BFE6D4; color:#1F9D6B; }
.pnode .pt{ font-size:15px; font-weight:700; color: var(--fp-ink); }
.pnode .ps{ font-size:12.5px; color: var(--fp-muted); margin-top:1px; }
.pnode .tag{ margin-left:auto; font-size:11px; font-weight:800; padding:4px 10px; border-radius:999px; }
.pnode.done .tag{ background:#E9F5EF; color:#1F9D6B; }
.pnode.on .tag{ background: var(--fp-blue-tint); color: var(--fp-blue); }

/* ── pillars strip ───────────────────────────────── */
.pillars{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:48px; }
.pillar{ text-align:center; padding:8px; }
.pillar .big{ font-size:46px; font-weight:800; letter-spacing:-0.03em; color: var(--fp-blue); line-height:1; }
.pillar .pl{ font-size:15px; font-weight:600; color: var(--fp-text); margin-top:12px; }

/* ── waitlist CTA band ───────────────────────────── */
.cta-band{ background: var(--fp-blue); color:#fff; }
.cta-band .wrap{ padding:80px var(--fp-pad); text-align:center; display:flex; flex-direction:column; align-items:center; }
.cta-band .kicker{ background: rgba(255,255,255,0.16); color:#fff; }
.cta-band h2{ font-size:46px; font-weight:800; letter-spacing:-0.025em; line-height:1.08; margin-top:18px; max-width:680px; text-wrap:balance; }
.cta-band p{ font-size:18px; color: var(--fp-cream); margin-top:16px; max-width:520px; }
.cta-band .btn{ margin-top:32px; }

/* ── footer ──────────────────────────────────────── */
footer.site{ background:#0D0D24; color:#fff; padding:60px 0 34px; }
footer.site .top{ display:flex; justify-content:space-between; align-items:flex-start; gap:40px; flex-wrap:wrap; }
footer.site .ftag{ font-size:14px; line-height:1.6; color: rgba(255,255,255,0.62); margin-top:18px; max-width:300px; }
.fnav{ display:flex; gap:30px; }
.fnav a{ font-size:14px; color: rgba(255,255,255,0.72); font-weight:500; }
.fnav a:hover{ color:#fff; }
.socials{ display:flex; gap:12px; margin-top:22px; }
.socials a{
  width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.82);
  display:flex; align-items:center; justify-content:center; transition: background 150ms, color 150ms, border-color 150ms;
}
.socials a:hover{ background:#fff; color:#0D0D24; border-color:#fff; }
.femail{ display:inline-block; margin-top:22px; font-size:15px; font-weight:700; color:#fff; }
.femail:hover{ color: var(--fp-cream); }
footer.site .bottom{
  margin-top:48px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.12);
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:13px; color: rgba(255,255,255,0.5);
}
.wordmark--foot{ border-color: rgba(255,255,255,0.5); }

/* ============================================================
   Waitlist page
   ============================================================ */
.waitlist-main{ padding:64px 0 88px; }
.waitlist-main .wrap{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:start; }
.wl-intro h1{ font-size:48px; font-weight:800; letter-spacing:-0.03em; line-height:1.05; color: var(--fp-ink); margin-top:20px; text-wrap:balance; }
.wl-intro .lead{ font-size:19px; line-height:1.55; color: var(--fp-text); margin-top:18px; max-width:460px; }
.wl-perks{ display:flex; flex-direction:column; gap:14px; margin-top:30px; }
.wl-perk{ display:flex; gap:12px; align-items:flex-start; }
.wl-perk .pc{ width:26px; height:26px; border-radius:8px; background: var(--fp-blue-tint); color: var(--fp-blue); flex:0 0 auto; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.wl-perk b{ color: var(--fp-ink); font-weight:700; }
.wl-perk span{ color: var(--fp-text); font-size:15px; }

.wl-card{
  background: var(--fp-surface); border:1px solid var(--fp-border);
  border-radius: var(--fp-r-xl); padding:34px; box-shadow: var(--fp-shadow-card);
}
.wl-card h2{ font-size:24px; font-weight:800; letter-spacing:-0.01em; color: var(--fp-ink); }
.wl-card .csub{ font-size:14.5px; color: var(--fp-text); margin-top:6px; }
.wl-form{ display:flex; flex-direction:column; gap:16px; margin-top:24px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field label{ font-size:13px; font-weight:700; color: var(--fp-ink); }
.field input{
  border:1.5px solid var(--fp-border); border-radius: var(--fp-r-md);
  padding:13px 15px; font-family: var(--fp-font); font-size:15px; color: var(--fp-ink);
  background:#fff; outline:none; transition: border-color 140ms, box-shadow 140ms;
}
.field input::placeholder{ color: var(--fp-muted); }
.field input:focus{ border-color: var(--fp-blue); box-shadow: 0 0 0 3px var(--fp-blue-tint); }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.wl-status{
  font-size:14px; font-weight:600; border-radius: var(--fp-r-md);
  padding:0; margin:0; max-height:0; overflow:hidden; opacity:0;
  transition: max-height 200ms ease, opacity 200ms ease, padding 200ms ease, margin 200ms ease;
}
.wl-status.show{ max-height:120px; opacity:1; padding:13px 15px; margin-top:2px; }
.wl-status.ok{ background:#E9F5EF; color:#157049; border:1px solid #BFE6D4; }
.wl-status.err{ background:#FCEBEB; color:#B42323; border:1px solid #F2C9C9; }
.wl-fine{ font-size:13px; color: var(--fp-muted); margin-top:4px; }
.wl-fine a{ color: var(--fp-blue); font-weight:600; }

/* ── responsive ──────────────────────────────────── */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns:1fr; gap:48px; }
  .phone-stage{ min-height:0; order:2; }
  .paths .wrap{ grid-template-columns:1fr; gap:40px; }
  .hero h1{ font-size:48px; }
  .waitlist-main .wrap{ grid-template-columns:1fr; gap:40px; }
}
@media (max-width: 760px){
  :root{ --fp-pad:20px; }
  nav.main, .header-cta .btn{ display:none; }
  .burger{ display:block; }
  .hero{ padding:48px 0 40px; }
  .hero h1{ font-size:38px; }
  .hero .lead{ font-size:17px; }
  .sec{ padding:56px 0; }
  .sec-head h2{ font-size:32px; }
  .features{ grid-template-columns:1fr; }
  .pillars{ grid-template-columns:1fr; gap:28px; }
  .cta-band h2{ font-size:32px; }
  .float{ display:none; }
  .wl-intro h1{ font-size:36px; }
  .field-row{ grid-template-columns:1fr; }
}

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