/* ============================================================
   Biofilz - design system v2 (AIEIO Bio landing)
   Palette: indigo #4f46e5 -> cyan #06b6d4 on navy / light canvas
   Type: Sora (display) + Inter (body), self-hosted
   ============================================================ */

/* ---------- fonts (variable, one file per family) ---------- */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/sora-var.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-var.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --canvas: #f5f7fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #55627a;
  --line: #e3e8f2;
  --navy: #0a1020;
  --navy-2: #111b38;
  --navy-line: #223055;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --cyan-bright: #22d3ee;
  --brand-soft: #eef2ff;
  --good: #0f9d58;
  --rose: #f43f5e;
  --grad: linear-gradient(135deg, #4f46e5, #06b6d4);
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(15, 23, 42, .28);
  --font-display: 'Sora', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: #3f37c9; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -.015em; }
h2 { font-size: clamp(27px, 4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 19px; }
.lede { color: var(--muted); font-size: clamp(16px, 2vw, 18.5px); max-width: 660px; }
.center .lede { margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 26px; height: 2.5px; background: var(--grad); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  padding: 15px 30px; border-radius: 14px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, filter .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(79, 70, 229, .55); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #e8eef8; border-color: rgba(232, 238, 248, .3); }
.btn-ghost:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); color: var(--brand); }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }

/* ---------- header ---------- */
body > svg[aria-hidden] { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .25s ease, box-shadow .25s ease; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.site-head.scrolled { background: rgba(10, 16, 32, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(79, 70, 229, .35); }
.site-head.on-light { position: static; background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand .mark { width: 36px; height: 36px; flex: 0 0 36px; }
.brand .word { font-family: var(--font-display); font-weight: 800; font-size: 21.5px; letter-spacing: -.01em; }
.brand .word i { font-style: normal; color: var(--cyan-bright); }
.head-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.head-nav a { color: rgba(232, 238, 248, .8); font-weight: 600; font-size: 14.5px; }
.head-nav a:hover { color: var(--cyan-bright); }
.head-cta {
  font-weight: 700; font-size: 14.5px; color: #fff;
  background: var(--grad); padding: 11px 22px; border-radius: 12px;
  transition: filter .18s ease, transform .18s ease;
}
.head-cta:hover { filter: brightness(1.1); color: #fff; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 520px at 85% -5%, rgba(6, 182, 212, .22), transparent 60%),
    radial-gradient(760px 560px at -8% 40%, rgba(79, 70, 229, .35), transparent 62%),
    linear-gradient(165deg, var(--navy) 0%, #0d1730 55%, var(--navy) 100%);
  color: #e8eef8;
  padding: 150px 0 96px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(232, 238, 248, .06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--cyan-bright); }
.hero .eyebrow::before { background: var(--cyan-bright); }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; margin: 18px 0 20px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #8b83ff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: rgba(232, 238, 248, .78); margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: rgba(232, 238, 248, .55); }

/* phone mock */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  width: 292px; border-radius: 38px; padding: 14px 12px;
  background: #060b18; border: 1px solid var(--navy-line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(232, 238, 248, .04);
}
.phone-screen { border-radius: 26px; background: #0d1730; padding: 18px 15px 20px; overflow: hidden; }
.ps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ps-head .hi { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #e8eef8; }
.ps-head .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.ps-card { background: #16203a; border: 1px solid #1f2c47; border-radius: 14px; padding: 12px 13px; margin-bottom: 10px; }
.ps-card .t { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93a4bd; margin-bottom: 8px; }
.med-row { display: flex; align-items: center; gap: 9px; padding: 4.5px 0; font-size: 13px; color: #e8eef8; font-weight: 500; }
.med-row .tick { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 1.6px solid #2c3d63; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; }
.med-row.done .tick { background: var(--good); border-color: var(--good); }
.med-row.done span { color: #93a4bd; text-decoration: line-through; }
.ps-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-stat { background: #16203a; border: 1px solid #1f2c47; border-radius: 14px; padding: 11px 12px; }
.ps-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #e8eef8; }
.ps-stat .v small { font-size: 11px; font-weight: 600; color: #93a4bd; }
.ps-stat .s { font-size: 11px; color: #93a4bd; margin-top: 2px; }
.ps-stat .s b { color: #34d399; font-weight: 600; }
.spark { margin-top: 10px; }
.spark polyline { stroke: url(#sparkg); }
.float-chip {
  position: absolute; background: #101b36; border: 1px solid var(--navy-line); border-radius: 14px;
  padding: 10px 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); font-size: 12.5px; color: #e8eef8;
}
.float-chip .fc-t { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #93a4bd; }
.float-chip.fc1 { top: 8%; right: -4px; }
.float-chip.fc2 { bottom: 12%; left: -14px; }
.float-chip .ok { color: #34d399; font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* disclaimer band */
.disclaimer { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.disclaimer .wrap { display: flex; gap: 18px; align-items: flex-start; max-width: 900px; }
.disclaimer .d-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.disclaimer .d-ico svg { width: 22px; height: 22px; }
.disclaimer h3 { margin-bottom: 5px; font-size: 16.5px; }
.disclaimer p { color: var(--muted); font-size: 14.5px; }

/* feature grid */
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d4f2; }
.f-card .ico {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.f-card .ico svg { width: 23px; height: 23px; }
.f-card h3 { margin-bottom: 8px; }
.f-card p { color: var(--muted); font-size: 14.8px; }

/* dark band (reminders / imports) */
.band-dark { background: linear-gradient(165deg, var(--navy) 0%, #0d1730 100%); color: #e8eef8; }
.band-dark .eyebrow { color: var(--cyan-bright); }
.band-dark .eyebrow::before { background: var(--cyan-bright); }
.band-dark h2 { color: #fff; }
.band-dark .lede { color: rgba(232, 238, 248, .72); }
.dark-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-card { background: rgba(232, 238, 248, .045); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 28px 26px; }
.d-card .ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; background: rgba(79, 70, 229, .28); color: var(--cyan-bright); display: flex; align-items: center; justify-content: center; }
.d-card .ico svg { width: 23px; height: 23px; }
.d-card h3 { color: #fff; margin-bottom: 8px; }
.d-card p { color: rgba(232, 238, 248, .68); font-size: 14.8px; }
.band-note { margin-top: 26px; font-size: 13px; color: rgba(232, 238, 248, .5); max-width: 760px; }

/* dna */
.dna-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.dna-points { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.dna-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.dna-points .pt { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.dna-points b { color: var(--ink); font-weight: 600; }
.dna-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.dna-panel h3 { margin-bottom: 16px; }
.dna-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dna-cat { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; }
.dna-cat .sw { width: 9px; height: 9px; border-radius: 3px; background: var(--grad); flex: 0 0 9px; }
.dna-price { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.dna-price b { color: var(--ink); }

/* privacy checklist */
.priv { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pv-item { display: flex; gap: 13px; align-items: flex-start; background: var(--canvas); border: 1px solid var(--line); border-radius: 15px; padding: 19px 20px; }
.pv-item .tick { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 1px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.pv-item h3 { font-size: 15px; margin-bottom: 3px; }
.pv-item p { color: var(--muted); font-size: 13.8px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; }
.plan.pop { border: 2px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan .pop-pill { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 17px; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 38px; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan .tag { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.plan li { display: flex; gap: 9px; font-size: 14.3px; color: var(--muted); }
.plan li::before { content: '\2713'; color: var(--good); font-weight: 700; flex: 0 0 auto; }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 13.5px; }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 13px; }
.faq-list details { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 0 24px; }
.faq-list details[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-weight: 700; font-size: 16px; padding: 19px 0; font-family: var(--font-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; color: var(--brand); transition: transform .2s ease; line-height: 1; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 0 20px; color: var(--muted); font-size: 14.8px; }

/* contact form */
.access { background: var(--canvas); }
.access-card { max-width: 680px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 48px; box-shadow: var(--shadow); }
.access-card .section-head { margin-bottom: 30px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; }
.f-field input, .f-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: var(--canvas); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.f-field input:focus, .f-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.f-field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-msg { display: none; margin-top: 18px; padding: 15px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.form-msg.ok { display: block; background: #e5f5ec; color: #0b6b3e; }
.form-msg.err { display: block; background: #fdecea; color: #b3372a; }
.form-fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* cta band */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  position: relative; overflow: hidden; border-radius: 26px; text-align: center;
  background: radial-gradient(700px 320px at 50% -40%, rgba(6, 182, 212, .35), transparent 65%), linear-gradient(150deg, #171a56, #0a1020);
  color: #fff; padding: 68px 40px;
}
.cta-inner h2 { color: #fff; max-width: 620px; margin: 0 auto 12px; }
.cta-inner p { color: rgba(232, 238, 248, .72); margin-bottom: 30px; }
.cta-fine { margin-top: 18px; font-size: 13px; color: rgba(232, 238, 248, .5); }

/* ---------- legal pages ---------- */
.page-hero { background: var(--navy); color: #e8eef8; padding: 60px 0 52px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); margin-top: 10px; }
.page-hero .eyebrow { color: var(--cyan-bright); }
.page-hero .eyebrow::before { background: var(--cyan-bright); }
.legal { padding: 60px 0 92px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 23px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { padding-left: 22px; margin: 10px 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 72vh; display: flex; align-items: center; background: var(--navy); color: #e8eef8; text-align: center; padding: 120px 0; }
.notfound .wrap { margin: 0 auto; }
.notfound .code { font-family: var(--font-display); font-size: clamp(90px, 16vw, 160px); font-weight: 800; background: linear-gradient(120deg, #8b83ff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.notfound h1 { font-size: clamp(24px, 4vw, 36px); margin: 12px 0 16px; }
.notfound p { color: rgba(232, 238, 248, .7); margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: rgba(232, 238, 248, .65); padding: 52px 0 42px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot .brand .word { font-size: 19px; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: rgba(232, 238, 248, .75); font-weight: 600; font-size: 14px; }
.site-foot a:hover { color: var(--cyan-bright); }
.foot-legal { width: 100%; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(232, 238, 248, .12); font-size: 12.8px; line-height: 1.7; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { margin-top: 26px; }
  .f-grid, .dark-cols, .pv-grid, .plans { grid-template-columns: 1fr 1fr; }
  .dna-grid { grid-template-columns: 1fr; gap: 36px; }
  .head-nav a:not(.head-cta) { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 128px 0 72px; }
  .f-grid, .dark-cols, .pv-grid, .plans { grid-template-columns: 1fr; }
  .plan.pop { order: -1; }
  .access-card { padding: 32px 22px; }
  .f-row { grid-template-columns: 1fr; }
  .site-head .wrap { height: 66px; }
  .brand .word { font-size: 19px; }
  .head-cta { padding: 9px 15px; font-size: 13.5px; }
  .float-chip.fc1 { right: 0; }
  .float-chip.fc2 { left: 0; }
  .cta-inner { padding: 48px 22px; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; }
}
