/* Zib Agent prototype. Tokens follow .stitch/DESIGN.md */
:root {
  --zib-green: #10b981;
  --zib-teal: #0f766e;
  --zib-teal-dark: #0b5e57;
  --lime: #d9f99d;
  --ink: #0b1220;
  --navy: #131c2e;
  --surface: #f8faf9;
  --card: #ffffff;
  --line: #e3e8e6;
  --muted: #5b6563;
  --coral: #e1694f;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --max: 1200px;
}
body.font-geist { --font-display: 'Geist', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--surface); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
body.font-geist h1, body.font-geist h2, body.font-geist h3 { font-weight: 600; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--zib-teal); font-weight: 500; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; font-family: var(--font-body); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--zib-teal); color: #fff; }
.btn-primary:hover { background: var(--zib-teal-dark); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--zib-teal); color: var(--zib-teal); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .95rem; border-radius: 999px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 18, 32, .92); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.logo .agent { color: var(--zib-green); margin-left: .28em; }
.nav { display: flex; gap: 32px; font-size: .95rem; color: rgba(255,255,255,.78); }
.nav a:hover, .nav a.active { color: var(--lime); }
body.hero-light .site-header { background: rgba(255,255,255,.92); color: var(--ink); border-bottom-color: var(--line); }
body.hero-light .site-header .nav { color: var(--muted); }
body.hero-light .site-header .nav a:hover, body.hero-light .site-header .nav a.active { color: var(--zib-teal); }

/* Dark orbit sections */
.orbit { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.orbit::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1.2px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 85%); pointer-events: none; }
.orbit .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(16, 185, 129, .16); pointer-events: none; }
.orbit .ring.dashed { border-style: dashed; border-color: rgba(217, 249, 157, .14); }
.orbit > .wrap { position: relative; z-index: 1; }

/* Hero */
.hero { padding: 96px 0 112px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--lime); text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,249,157,.18), 0 0 14px rgba(217,249,157,.7); flex: none; }
.hero h1 { margin: 22px 0 20px; }
.hero .sub { font-size: 1.15rem; color: rgba(255,255,255,.72); max-width: 34em; }
.hero .ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .art { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: flex-end; }
.hero .art .zib-float { position: absolute; left: -40px; top: -30px; width: 150px; filter: drop-shadow(0 0 40px rgba(16,185,129,.45)); animation: bob 5s ease-in-out infinite; z-index: 2; }
.hero .art .lead-card { position: relative; z-index: 1; max-width: 440px; width: 100%; margin-top: 90px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero .art .zib-float { animation: none; } }

body.hero-light .hero.orbit { background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); color: var(--ink); }
body.hero-light .hero.orbit::before { background-image: radial-gradient(rgba(15,118,110,.16) 1px, transparent 1.2px); }
body.hero-light .hero .ring { border-color: rgba(15,118,110,.14); }
body.hero-light .hero .ring.dashed { border-color: rgba(16,185,129,.22); }
body.hero-light .hero .sub { color: var(--muted); }
body.hero-light .hero .pill-eyebrow { color: var(--zib-teal); border-color: var(--line); background: #fff; }
body.hero-light .hero .dot { background: var(--zib-green); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
body.hero-light .hero .btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
body.hero-light .hero .art .zib-float { filter: drop-shadow(0 12px 24px rgba(16,185,129,.35)); }
body.hero-light .hero .lead-card { box-shadow: 0 2px 4px rgba(11,18,32,.04), 0 24px 60px rgba(11,18,32,.12); }

/* Lead card */
.lead-card { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; text-align: left; }
.orbit .lead-card { border-color: transparent; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lead-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.stamp .dot { width: 7px; height: 7px; background: #a3e635; box-shadow: 0 0 0 3px rgba(163,230,53,.2); }
.badge { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; background: #e7f6f1; color: var(--zib-teal); font-weight: 600; }
.lead-biz { font-size: .9rem; color: var(--muted); }
.lead-biz strong { color: var(--ink); font-weight: 600; }
.lead-reason { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: #f0f3f2; color: #36403e; }
.opener { background: #f3f8f6; border: 1px solid #e1ece8; border-radius: 10px; padding: 12px 14px; font-size: .92rem; color: #2a3533; }
.opener .label { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--zib-teal); margin-bottom: 4px; }
.lead-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 2px; }
.phone { font-family: var(--font-mono); font-size: .88rem; display: inline-flex; gap: 8px; align-items: center; }
.phone svg { width: 15px; height: 15px; color: var(--zib-teal); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--zib-teal); cursor: pointer; font-size: .92rem; }
.link-btn:hover { text-decoration: underline; }

/* Sections */
section.block { padding: 96px 0; }
section.alt { background: #f1f4f3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { max-width: 18em; margin-top: 10px; }

.the-test { text-align: center; }
.the-test blockquote { margin: 18px auto 18px; max-width: 22em; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; }
.the-test .blank { display: inline-block; min-width: 3.2em; border-bottom: 3px solid var(--zib-teal); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(11,18,32,.03); }
.tile .icon { width: 44px; height: 44px; border-radius: 10px; background: #e9f7f2; color: var(--zib-teal); display: grid; place-items: center; margin-bottom: 18px; }
.tile .icon svg { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .97rem; }
.step-num { font-family: var(--font-mono); font-size: .75rem; color: var(--zib-teal); letter-spacing: .1em; margin-bottom: 6px; display: block; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--zib-teal); transform: translateY(-8px); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--zib-teal); color: #fff; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.plan .name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.plan .for { color: var(--muted); font-size: .93rem; min-height: 2.9em; }
.plan .count { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--zib-teal); background: #e9f7f2; border-radius: 999px; padding: 4px 11px; align-self: flex-start; margin: 8px 0 6px; }
.plan .price { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.plan .btn { margin-top: auto; }
.plan .secure { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.plans-note { text-align: center; margin-top: 32px; color: var(--muted); font-size: .95rem; }
.plans-note a { color: var(--zib-teal); font-weight: 600; }
.code-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.code-hint svg { width: 16px; height: 16px; }

/* Includes list */
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.include { display: flex; gap: 14px; }
.include .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #e9f7f2; color: var(--zib-teal); display: grid; place-items: center; }
.include .icon svg { width: 20px; height: 20px; }
.include h3 { font-size: 1.05rem; margin-bottom: 4px; }
.include p { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin: 10px 0 32px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--zib-teal); border-bottom: 2px solid var(--zib-teal); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Final CTA + footer */
.final { text-align: center; padding: 110px 0; }
.final .zib-wave { width: 110px; margin: 0 auto 20px; filter: drop-shadow(0 0 30px rgba(16,185,129,.45)); }
.final h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 28px; }
.final .small { margin-top: 16px; color: rgba(255,255,255,.55); font-size: .9rem; }
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.07); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; height: 88px; gap: 24px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { font-size: 1.1rem; color: #fff; }
.site-footer .logo svg { width: 26px; height: 26px; }

/* Pricing hero band */
.price-hero { padding: 88px 0 170px; }
.price-hero .sub { color: rgba(255,255,255,.72); font-size: 1.15rem; max-width: 36em; margin-top: 18px; }
.price-hero h1 { margin-top: 16px; }
.price-hero .peek { position: absolute; right: 6%; top: 60px; width: 130px; filter: drop-shadow(0 0 36px rgba(16,185,129,.45)); animation: bob 5s ease-in-out infinite; }
body.hero-light .price-hero.orbit { background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); color: var(--ink); }
body.hero-light .price-hero .sub { color: var(--muted); }
body.hero-light .price-hero.orbit::before { background-image: radial-gradient(rgba(15,118,110,.16) 1px, transparent 1.2px); }
.plans-overlap { margin-top: -120px; position: relative; z-index: 2; padding-bottom: 40px; }
.value-band { text-align: center; }
.value-band h2 { max-width: 20em; margin: 10px auto 14px; }
.value-band p { color: var(--muted); max-width: 40em; margin: 0 auto; font-size: 1.05rem; }
.one-lead { max-width: 520px; margin: 0 auto; }

/* Script dialog */
dialog.script { border: 0; border-radius: 18px; padding: 0; max-width: 620px; width: calc(100% - 32px); box-shadow: 0 40px 120px rgba(11,18,32,.35); color: var(--ink); }
dialog.script::backdrop { background: rgba(11,18,32,.55); backdrop-filter: blur(3px); }
.script-head { padding: 24px 28px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.script-head h3 { font-size: 1.3rem; margin-top: 6px; }
.script-body { padding: 20px 28px 28px; display: grid; gap: 16px; }
.script-step .label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--zib-teal); text-transform: uppercase; display: block; margin-bottom: 4px; }
.script-step p { font-size: .98rem; }
.script-step.say p { background: #f3f8f6; border-left: 3px solid var(--zib-green); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.close-x { background: #f0f3f2; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--muted); flex: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Variant switcher (prototype only) */
.variant-bar { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: flex; gap: 4px; font-size: .8rem; align-items: center; }
.variant-bar span { color: var(--muted); padding: 0 6px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; }
.variant-bar a { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.variant-bar a.on { background: var(--ink); color: #fff; }

@media (max-width: 960px) {
  .hero .wrap, .grid-3, .grid-4, .grid-2, .plans, .includes { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero .art { min-height: 0; justify-content: center; }
  .plan.featured { transform: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .site-footer .wrap { flex-direction: column; height: auto; padding: 28px 32px; }
}
