/* Landing page. Builds on the tokens in app.css. */
.lp { --max: 1160px; overflow-x: hidden; }
.lp section { padding: 88px 24px; }
.lp .wrap { max-width: var(--max); margin: 0 auto; }
.lp .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lp h2.title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin-bottom: 14px; }
.lp .lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.lp .center { text-align: center; margin-left: auto; margin-right: auto; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.lp-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; }
.lp-nav nav { display: flex; gap: 4px; align-items: center; }
.lp-nav nav a.link { color: var(--muted); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.lp-nav nav a.link:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }

/* Hero */
.hero2 { padding-top: 72px !important; padding-bottom: 72px !important; position: relative; }
.hero2::before { content: ''; position: absolute; inset: -200px 0 auto 0; height: 760px; background: radial-gradient(60% 60% at 70% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), radial-gradient(40% 50% at 15% 10%, color-mix(in srgb, #ff8a3d 14%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero2 .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero2 h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 20px; }
.hero2 h1 .swash { font-family: 'Great Vibes', cursive; font-weight: 400; color: var(--accent); letter-spacing: 0; font-size: 1.12em; line-height: .8; }
.hero2 p.sub { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero2 .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero2 .ticks { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hero2 .ticks span { display: inline-flex; gap: 6px; align-items: center; }
.hero2 .ticks svg { width: 15px; height: 15px; color: var(--ok); }

/* Hero document mock */
.mock { position: relative; }
.mock .paper { background: #fff; color: #161a33; border-radius: 14px; padding: 30px 30px 26px; box-shadow: 0 30px 80px -20px rgba(30, 20, 120, .35), 0 0 0 1px rgba(20, 20, 60, .06); transform: rotate(-1.2deg); }
.mock .paper h4 { font-size: 13px; letter-spacing: .12em; margin: 0 0 16px; color: #161a33; }
.mock .ln { height: 7px; border-radius: 4px; background: #eceef5; margin-bottom: 9px; }
.mock .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.mock .sig { border-bottom: 1.5px solid #c9cce0; height: 54px; position: relative; display: flex; align-items: flex-end; padding-bottom: 4px; }
.mock .sig .ink { font-family: 'Great Vibes', cursive; font-size: 34px; color: #1d2a7a; line-height: 1; }
.mock .sig small { position: absolute; bottom: -18px; left: 0; font-size: 10.5px; color: #8a8fa8; }
.mock .field { position: absolute; inset: 6px 0 6px 0; border: 2px solid #4a3aff; background: rgba(255, 214, 10, .3); border-radius: 5px; display: grid; place-items: center; font: 700 11px Inter, sans-serif; color: #3b2fd1; animation: pulse 1.8s infinite; }
.mock .flag { position: absolute; left: 0; top: -22px; background: #4a3aff; color: #fff; font: 700 10.5px Inter, sans-serif; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.mock .badge { z-index: 2; position: absolute; right: -14px; bottom: -22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; transform: rotate(1.5deg); max-width: 260px; }
.mock .badge .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
.mock .badge .ic svg { width: 18px; height: 18px; }
.mock .badge b { font-size: 13px; display: block; }
.mock .badge code { font-size: 10.5px; color: var(--muted); }
.mock .chip2 { z-index: 2; position: absolute; left: -18px; top: -16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 12px 7px 8px; font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; transform: rotate(-3deg); }
.mock .chip2 .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 10px; }

/* Strip */
.strip { padding: 22px 24px !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 500; }
.strip span { display: inline-flex; gap: 8px; align-items: center; }
.strip svg { width: 17px; height: 17px; color: var(--accent); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.pillar { padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pillar .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.pillar .ic svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 19px; margin-bottom: 8px; }
.pillar p { color: var(--muted); margin-bottom: 14px; }
.pillar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; }
.pillar li { display: flex; gap: 8px; }
.pillar li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 44px; }
.feature { background: var(--surface); padding: 24px; }
.feature svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 12px; }
.feature h4 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { padding: 26px; border-radius: 16px; border: 1px dashed var(--line); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.step h4 { margin: 6px 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Developers */
.dev { background: #0e1022; color: #e7e9f6; }
.dev .lede, .dev .muted { color: #9aa0bd; }
.dev .eyebrow { color: #a49bff; }
.dev .wrap.cols { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.dev ul.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.dev ul.points li { display: flex; gap: 12px; }
.dev ul.points .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(123, 109, 255, .16); color: #a49bff; display: grid; place-items: center; flex: none; }
.dev ul.points .ic svg { width: 18px; height: 18px; }
.dev ul.points b { display: block; color: #fff; font-size: 15px; }
.dev ul.points span { color: #9aa0bd; font-size: 14px; }
.code-card { background: #15182e; border: 1px solid #262a48; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid #262a48; overflow-x: auto; }
.code-tabs button { background: none; border: 0; color: #8c92b3; font: 600 13px Inter, sans-serif; padding: 9px 13px; border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; }
.code-tabs button.active { color: #fff; background: #1d2140; }
.code-body { position: relative; }
.code-body pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; color: #dfe3ff; min-height: 330px; }
.code-body .copy { position: absolute; top: 12px; right: 12px; background: #262a48; color: #c7cbea; border: 0; border-radius: 7px; padding: 6px 10px; font: 600 12px Inter, sans-serif; cursor: pointer; }
.code-body .copy:hover { background: #333862; }
.code-note { padding: 12px 22px; border-top: 1px solid #262a48; color: #8c92b3; font-size: 12.5px; }
.tok-k { color: #c792ea; } .tok-s { color: #a5e3a1; } .tok-c { color: #6b7194; } .tok-f { color: #82aaff; } .tok-t { color: #ffcb6b; }
.api-table { margin-top: 28px; border: 1px solid #262a48; border-radius: 12px; overflow: hidden; }
.api-table table { font-size: 13px; }
.api-table td { border-color: #262a48; padding: 9px 14px; color: #c7cbea; }
.api-table td:first-child { font-family: ui-monospace, Menlo, monospace; color: #a49bff; white-space: nowrap; }
.sdk-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.sdk-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: #1d2140; border: 1px solid #262a48; font-size: 13px; color: #dfe3ff; font-family: ui-monospace, Menlo, monospace; }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.sec-grid .card { padding: 22px; }
.sec-grid h4 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; font-size: 15px; }
.sec-grid h4 svg { width: 18px; height: 18px; color: var(--ok); }
.sec-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 18px; }
.billing-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 600 14px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.billing-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.billing-toggle .save { color: var(--ok); font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
.plan { padding: 26px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--accent) 50%, transparent); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 17px; margin: 0 0 4px; }
.plan .for { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 0; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 12.5px; margin: 6px 0 18px; min-height: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }
.plan li.dim { color: var(--muted); }
.price-notes { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }
.compare { margin-top: 40px; }
.compare td, .compare th { text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare .yes { color: var(--ok); font-weight: 700; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* CTA */
.cta-band { text-align: center; }
.cta-band .box { max-width: 860px; margin: 0 auto; padding: 56px 32px; border-radius: 24px; background: linear-gradient(135deg, #2b1fd1, #4a3aff 50%, #8a6bff); color: #fff; position: relative; overflow: hidden; }
.cta-band .box::after { content: 'Parapho'; position: absolute; right: -20px; bottom: -40px; font: 140px 'Great Vibes', cursive; opacity: .12; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.03em; }
.cta-band p { opacity: .85; font-size: 17px; }
.cta-band .btn.white { background: #fff; color: #2b1fd1; border-color: #fff; }
.cta-band .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* Footer */
.lp-foot { border-top: 1px solid var(--line); padding: 48px 24px 32px; }
.lp-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.lp-foot h5 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lp-foot a { display: block; color: var(--ink); font-size: 14px; padding: 4px 0; }
.lp-foot .legal-line { max-width: var(--max); margin: 32px auto 0; color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 980px) {
  .hero2 .wrap, .dev .wrap.cols { grid-template-columns: 1fr; }
  .mock { max-width: 520px; margin: 10px auto 0; }
  .pillars, .steps, .sec-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .lp-foot .wrap { grid-template-columns: 1fr 1fr; }
  .lp-nav nav a.link { display: none; }
}
@media (max-width: 560px) {
  .lp section { padding: 64px 16px; }
  .features, .plans { grid-template-columns: 1fr; }
  .mock .badge { right: 0; }
  .mock .chip2 { left: 0; }
  .mock .flag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mock .field { animation: none; } }
