/* Landing page. Builds on the tokens in finley.css. */
.lp { --max: 1160px; background: var(--surface); }
.lp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-links { display: flex; gap: 22px; }
.lp-links a { color: var(--text-2); text-decoration: none; font-weight: 520; }
.lp-links a:hover { color: var(--text); }
.lp-nav .actions { margin-left: auto; display: flex; gap: 8px; }

.hero { padding: 84px 0 40px; text-align: center; background:
  radial-gradient(900px 420px at 50% -80px, var(--brand-soft), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-2); font-weight: 520; text-decoration: none; }
.eyebrow b { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 650; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 760; letter-spacing: -0.035em; line-height: 1.04; margin: 22px auto 0; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 680px; margin: 20px auto 0; line-height: 1.55; }
.hero .cta { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; color: var(--text-3); font-size: 13px; }

/* product mock */
.mock { margin: 56px auto 0; max-width: 1040px; text-align: left; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.mock-left { padding: 20px; border-right: 1px solid var(--border); }
.mock-right { padding: 20px; background: var(--bg); }
.mock-prompt { border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; background: var(--surface); display: flex; gap: 10px; align-items: flex-start; }
.mock-prompt svg { color: var(--brand); margin-top: 3px; flex: none; }
.mock-table { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13px; background: var(--surface); }
.mock-row { display: grid; grid-template-columns: 1.3fr 1.1fr 1.4fr 44px; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: center; }
.mock-row:first-child { border-top: 0; background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.mock-row .sub { color: var(--text-3); font-size: 12px; }
.mock-email { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 13.5px; overflow: hidden; }
.mock-email .hd { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; }
.mock-email .subj { padding: 10px 14px 0; font-weight: 650; }
.mock-email .bd { padding: 8px 14px 14px; line-height: 1.6; white-space: pre-line; }
.mark { background: var(--brand-soft); color: var(--brand-ink); border-radius: 4px; padding: 0 3px; }
.mock-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (max-width: 860px) { .mock-body { grid-template-columns: 1fr; } .mock-left { border-right: 0; border-bottom: 1px solid var(--border); } .mock-row { grid-template-columns: 1.2fr 1.4fr 44px; } .mock-row > :nth-child(2) { display: none; } }

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.strip .lp-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.stat span { color: var(--text-2); font-size: 13.5px; }
@media (max-width: 760px) { .strip .lp-wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid var(--border); } }

.section { padding: 96px 0; }
.section.alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { color: var(--brand); font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 740; letter-spacing: -0.03em; margin-top: 10px; line-height: 1.1; }
.section-head p { color: var(--text-2); font-size: 17px; margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.step h3 { font-size: 16px; }
.step p { color: var(--text-2); margin-top: 6px; font-size: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic svg { width: 19px; height: 19px; }
.feature h3 { font-size: 16px; }
.feature p { color: var(--text-2); margin-top: 6px; font-size: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 740; letter-spacing: -0.03em; line-height: 1.12; margin-top: 10px; }
.split p.big { color: var(--text-2); font-size: 16.5px; margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { color: var(--brand); flex: none; margin-top: 3px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.plan .price { font-size: 40px; font-weight: 760; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; color: var(--text-2); font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li svg { color: var(--brand); flex: none; margin-top: 3px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 16px 18px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin-top: 10px; }

.final { text-align: center; padding: 96px 0; background: radial-gradient(800px 360px at 50% 120%, var(--brand-soft), transparent 70%); }
.final h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 760; letter-spacing: -0.035em; }
.final p { color: var(--text-2); font-size: 17px; margin-top: 12px; }
.lp-foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 13px; }
.lp-foot .lp-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-foot a { color: var(--text-2); text-decoration: none; margin-left: 18px; }
@media (max-width: 760px) { .lp-links { display: none; } .hero { padding-top: 56px; } .section { padding: 64px 0; } .lp-wrap { padding: 0 16px; } }

/* ---------- polish ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(700px 380px at 25% -60px, rgba(70, 40, 15, .06), transparent 70%),
  radial-gradient(700px 380px at 80% -40px, rgba(70, 40, 15, .04), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(600px 320px at 50% 0, #000, transparent 75%); mask-image: radial-gradient(600px 320px at 50% 0, #000, transparent 75%); }
.hero > * { position: relative; }
.hero h1 em, .final h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow b { background: var(--grad); }
.mock { box-shadow: 0 30px 80px rgba(70, 40, 15, .06), 0 0 0 1px var(--border); border: 0; }
.mock-prompt { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.strip { background: var(--sb-bg); border-color: var(--sb-border); }
.strip .stat { border-color: var(--sb-border); }
.strip .stat b { background: none; -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip .stat span { color: var(--text-2); }
.step::before { background: var(--grad); box-shadow: 0 4px 12px rgba(70, 40, 15, .06); }
.feature .ic { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(70, 40, 15, .08); }
.feature, .step { transition: transform .15s, box-shadow .15s; }
.feature:hover, .step:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 20px 50px rgba(70, 40, 15, .06); }
.final { background: var(--sb-bg); color: #fff; }
.final p { color: #cdbfae; }
.lp .btn-primary { background: var(--grad); box-shadow: 0 6px 20px rgba(70, 40, 15, .11), inset 0 1px 0 rgba(255,255,255,.25); }

/* ---------- layout v3: serif hero, one input, live app showcase ---------- */
.lp { background: var(--bg); }
.lp-nav { background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom-color: transparent; }
.lp .btn-primary { background: var(--text); border-color: var(--text); color: var(--surface); background-image: none; box-shadow: var(--shadow-sm); }
.lp .btn-primary:hover { background: var(--brand); border-color: var(--brand); }
.hero { padding: 110px 0 56px; background: radial-gradient(800px 360px at 50% 0, rgba(70, 40, 15, .04), transparent 70%); }
.hero::before { opacity: .35; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -0.025em; line-height: 1.02; max-width: 1000px; }
.hero h1 em { font-style: italic; padding-right: 6px; }
.hero .lead { max-width: 640px; }
.hero-box { max-width: 720px; margin: 36px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px; box-shadow: 0 1px 2px rgba(60,35,15,.04), 0 18px 50px rgba(70, 40, 15, .04); }
.hero-box:focus-within { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 0 0 4px var(--brand-soft), 0 18px 50px rgba(70, 40, 15, .04); }
.hero-box .new { font-size: 10px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 1px 6px; margin-left: 2px; }
.hero-input { display: flex; gap: 8px; align-items: center; padding: 4px 4px 4px 12px; }
.hero-input input { flex: 1; min-width: 0; border: 0; outline: none; font: 17px var(--font); background: transparent; color: var(--text); height: 44px; }
.hero-input .btn { height: 42px; padding: 0 18px; border-radius: 11px; }
.hero-note { border-top: 1px solid var(--border); margin: 6px -8px -8px; padding: 10px 18px; font-size: 13px; color: var(--text-3); background: var(--surface-2); border-radius: 0 0 18px 18px; }

.showcase { padding: 8px 0 96px; }
.show-tabs { display: flex; justify-content: center; gap: 4px; border-bottom: 1px solid var(--border); max-width: 980px; margin: 0 auto; overflow-x: auto; }
.show-tab { padding: 14px 22px; color: var(--text-3); text-decoration: none; font-weight: 560; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.show-tab:hover { color: var(--text); }
.show-tab.active { color: var(--text); border-bottom-color: var(--text); }
.app-mock { display: grid; grid-template-columns: 56px 330px minmax(0, 1fr); margin: 26px auto 0; max-width: 1120px; height: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 40px 90px rgba(70, 40, 15, .04); }
.am-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 14px 0; border-right: 1px solid var(--border); color: var(--text-3); }
.am-rail .logo { width: 28px; height: 28px; box-shadow: none; }
.am-rail svg { width: 18px; height: 18px; }
.am-rail b { display: grid; place-items: center; width: 34px; height: 34px; margin: -8px 0; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.am-chat { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-right: 1px solid var(--border); font-size: 13px; overflow: hidden; }
.am-chat .msg { font-size: 13px; }
.am-crumb { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; font-weight: 560; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin: 0 -16px; padding: 0 16px 12px; }
.am-crumb svg { width: 13px; height: 13px; } .am-crumb span { color: var(--border-strong); }
.am-follow { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px 8px 8px 12px; color: var(--text-3); }
.am-sheet { overflow: hidden; }
.am-sheet .sheet-head { align-items: center; }
.am-sheet .sheet-head h2 { font-size: 16px; }
.am-sheet .sheet td { padding: 8px 10px; } .am-sheet .sheet th { padding: 8px 10px; }
.am-sheet .why { min-width: 0; }
@media (max-width: 1000px) { .app-mock { grid-template-columns: minmax(0, 1fr); height: auto; } .am-rail, .am-chat { display: none; } .am-sheet { overflow-x: auto; } }
.strip { background: var(--surface); border-color: var(--border); }
.strip .stat { border-color: var(--border); }
.strip .stat b { font-family: var(--display); font-weight: 400; font-size: 44px; background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.strip .stat span { color: var(--text-2); }
.section-head h2, .split h2, .final h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.split h2 { font-size: clamp(32px, 4vw, 46px); }
.final h2 { font-size: clamp(38px, 5.4vw, 64px); }
.final h2 em { font-style: italic; }
.section.alt { background: var(--surface); }
.feature .ic, .step::before { background: var(--text); box-shadow: none; }
.feature .ic { color: var(--surface); }
.kicker { color: var(--brand); }
.final .btn-primary { background: #fff; color: #241a12; border-color: #fff; }

/* ===== EDITORIAL PASS ===== */
.features { gap: 0; border-top: 1px solid var(--border-strong); counter-reset: feat; }
.feature { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 28px 28px 30px 0; counter-increment: feat; }
.feature:hover, .step:hover { transform: none; box-shadow: none; }
.feature .ic { display: none; }
.feature::before { content: counter(feat, decimal-leading-zero); display: block; font: 400 15px/1 var(--display); color: var(--brand); margin-bottom: 18px; }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 0; }
.step { box-shadow: none; }
.plan, .plan.featured { box-shadow: none; }
.plan.featured { background: var(--surface); border: 1px solid var(--text); }
.lp .btn, .lp .btn-primary { box-shadow: none; background-image: none; }

/* ===== PORTAL PASS (landing) ===== */
.lp .hero h1 em { font-style: normal; background: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; color: #fff; -webkit-text-fill-color: #fff; -webkit-text-stroke: 0; display: inline-block; padding: .02em .12em 0; line-height: .9; }
.lp .final h2 em { font-style: normal; background: #fff; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); -webkit-text-fill-color: var(--ink); -webkit-text-stroke: 0; display: inline-block; padding: .02em .12em 0; line-height: .9; }
.lp .hero { padding-top: 96px; }
.lp .show-tab.active { border-bottom: 3px solid var(--ink); }
.lp .show-tabs { border-bottom: 1.5px solid var(--ink); }
.lp .steps .step::before { border-radius: 0; background: var(--ink); }
.lp .final p { color: #d2d2ff; }
.lp .final .btn-primary { color: var(--ink); }
.lp .final .btn-primary:hover { color: #fff; border-color: #fff; }

/* ===== QUIET PASS (landing) ===== */
.lp .hero h1 em, .lp .final h2 em { background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); padding: 0; }
.lp .final { background: #fff; } .lp .final p { color: var(--text-2); }
.lp .final .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp .show-tabs { border-bottom: 1px solid var(--border); }
.lp .show-tab.active { border-bottom: 2px solid var(--ink); color: var(--text); }
.lp-links a { color: var(--text-2); }
.eyebrow { border-color: var(--border); color: var(--text-2); }
.am-rail b { background: var(--brand-soft); color: var(--ink); }
