/* ==========================================================================
   Fabricata Flow: public website
   Loaded after app.css, so tokens, buttons and type are shared. The
   marketing pages get room to breathe; the product stays dense.
   ========================================================================== */

.site { background: var(--surface); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-header {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-header .brand img { height: 28px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--steel); font-weight: 600; font-size: 14.5px; }
.site-nav a:not(.btn):hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--primary-strong); }
.site-nav .btn { margin-left: 6px; }
.site-menu-toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .site-menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 6px 0 0; }
}

.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: radial-gradient(120% 120% at 100% 0%, #2e1065 0%, #1e1b4b 40%, #0b1220 100%); color: #e2e8f0; }
.section.dark h2 { color: #fff; }
.section.dark p { color: #cbd5e1; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; }
.section.dark .eyebrow { color: #c4b5fd; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
h1.display { font-size: clamp(38px, 5.6vw, 62px); }
h2.display { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted-ink); line-height: 1.6; max-width: 620px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.hero .trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted-ink); font-weight: 600; }
.hero .trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero .trust svg { color: var(--success); }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(76, 29, 149, .14)); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 44px; } }

/* The hero's rail fills stage by stage, once, then holds. */
.hero-art .rail-fill { transform-box: fill-box; transform-origin: left center; animation: fill .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-art .fill-0 { animation-delay: .2s; } .hero-art .fill-1 { animation-delay: .55s; } .hero-art .fill-2 { animation-delay: .9s; }
.hero-art .fill-2 { animation-name: fill, pulse; animation-duration: .6s, 2.4s; animation-delay: .9s, 1.6s; animation-iteration-count: 1, 3; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 50% { opacity: .55; } }

/* Questions strip */
.questions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.question { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.question .q { font-weight: 800; font-size: 16.5px; margin-bottom: 8px; }
.question p { color: var(--muted-ink); font-size: 14.5px; }
.question .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); margin-bottom: 14px; }
@media (max-width: 960px) { .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .questions { grid-template-columns: 1fr; } }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; position: relative; }
.journey li { list-style: none; position: relative; padding: 22px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.journey .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--primary); color: #fff; margin-bottom: 14px; }
.journey h3 { font-size: 17px; margin-bottom: 8px; }
.journey p { font-size: 14px; color: var(--muted-ink); }
.journey-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.journey-rail span { height: 8px; border-radius: 4px; background: var(--rail-pending); }
.journey-rail span:nth-child(-n+2) { background: var(--rail-done); }
.journey-rail span:nth-child(3) { background: var(--rail-active); }
@media (max-width: 1000px) { .journey, .journey-rail { grid-template-columns: 1fr; } .journey-rail { display: none; } }
ol.journey { padding: 0; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.feature .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted-ink); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checks li svg { flex: none; margin-top: 3px; color: var(--success); }
.section.dark .checks li svg { color: #86efac; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }

/* A phone, drawn in CSS, showing a real stage row */
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 38px; padding: 14px; background: #0f172a; box-shadow: var(--shadow-lg); }
.phone .screen { border-radius: 26px; background: var(--bg); overflow: hidden; color: var(--text); }
.phone .bar { height: 30px; }
.phone .scr-head { padding: 6px 16px 12px; }
.phone .scr-head .code { font-size: 12px; font-weight: 800; color: var(--primary-strong); }
.phone .scr-head .t { font-weight: 800; font-size: 15px; line-height: 1.25; }
.phone .scr-stage { margin: 0 10px 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.phone .scr-stage .name { font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.phone .scr-stage .meta { font-size: 11.5px; color: var(--muted); margin: 3px 0 10px; }
.phone .scr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .scr-btns span { display: grid; place-items: center; height: 38px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.phone .b-done { background: var(--success); color: #fff; }
.phone .b-block { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-line); }
.phone .scr-photo { margin: 0 10px 14px; height: 70px; border-radius: 14px; border: 2px dashed var(--border-strong); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }

/* Family */
.family { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.family a { display: block; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); color: inherit; transition: box-shadow .15s, border-color .15s; }
.family a:hover { text-decoration: none; box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.family .current { border-color: var(--primary-line); background: var(--primary-soft); }
.family img { height: 26px; margin-bottom: 14px; }
.family p { font-size: 14px; color: var(--muted-ink); }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { padding: 64px 0; }
.cta-band .panel { border-radius: 28px; padding: 48px; background: radial-gradient(120% 140% at 0% 0%, #7c3aed 0%, #5b21b6 55%, #3b0764 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); color: #fff; max-width: 580px; }
.cta-band p { color: #ede9fe; margin-top: 10px; }
.cta-band .btn-white { --btn-bg: #fff; --btn-fg: #4c1d95; --btn-border: #fff; font-weight: 800; }
.cta-band .btn-white:hover { background: #f5f3ff; }
@media (max-width: 620px) { .cta-band .panel { padding: 32px 24px; } }

/* Pricing */
.price-card { max-width: 760px; margin: 0 auto; border-radius: 28px; border: 1px solid var(--primary-line); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.price-card .top { padding: 36px 40px; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); border-bottom: 1px solid var(--border); }
.price-card .body { padding: 32px 40px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.price-card .body .checks { margin: 0; }
@media (max-width: 700px) { .price-card .top, .price-card .body { padding: 26px 22px; } .price-card .body { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted-ink); line-height: 1.65; }

/* Prose (legal and about) */
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 21px; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--steel); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--border); }
.page-hero .updated { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-cards .card-body h3 { margin: 12px 0 6px; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 36px; background: var(--surface-2); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: var(--steel); }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } .section { padding: 64px 0; } .wrap { padding: 0 18px; } }
.printed-art { max-width: 340px; width: 100%; filter: drop-shadow(0 24px 40px rgba(15, 23, 42, .12)); }

/* Plans */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.tier.featured { border-color: var(--primary-line); box-shadow: 0 0 0 1px var(--primary-line), var(--shadow-md); }
.tier.quiet { background: var(--surface-2); }
.tier .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.tier h2 { font-size: 19px; margin: 0; }
.tier .price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.tier .price strong { font-family: var(--display); font-size: 38px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier .price span { color: var(--muted); font-weight: 700; font-size: 14px; }
.tier .annual { font-size: 13.5px; color: var(--muted-ink); }
.tier p { font-size: 14.5px; color: var(--muted-ink); margin: 4px 0 6px; }
.tier .checks { margin: 0 0 8px; gap: 9px; }
.tier .checks li { font-size: 14.5px; gap: 10px; }
.tier .btn { margin-top: auto; }
.tier-note { max-width: 780px; margin: 26px auto 0; text-align: center; color: var(--muted-ink); font-size: 14.5px; line-height: 1.65; }
