/* Showlit site. Tokens match the app (ListProof/Design/Tokens.swift): one violet accent on a
   soft lavender canvas, Plus Jakarta Sans. */
:root {
  --violet: #6d4aff;
  --violet-deep: #5233e0;
  --violet-tint: #efebff;
  --lavender: #ece6fb;
  --canvas: #f6f5fa;
  --surface: #ffffff;
  --ink: #1a1a22;
  --body: #3b3b46;
  --muted: #6b6b78;
  --line: #eceaf2;
  --ok-bg: #e5f3ea;
  --ok-fg: #1f6b44;
  --label-bg: #fde7c2;
  --label-fg: #7a4a06;
  --blocked-bg: #fdecea;
  --blocked-fg: #a3271b;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(26, 26, 34, .04), 0 12px 40px -12px rgba(46, 26, 140, .18);
  --max: 1160px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--violet-deep);
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--body); max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 250, .78);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--violet-deep); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -10px rgba(109, 74, 255, .7); }
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #d9d5e6; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.appstore {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px;
  background: var(--ink); color: #fff; border-radius: 16px; text-decoration: none;
}
.appstore svg { width: 26px; height: 26px; fill: #fff; }
.appstore small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.appstore strong { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-label { background: var(--label-bg); color: var(--label-fg); }
.chip-blocked { background: var(--blocked-bg); color: var(--blocked-fg); }
.chip-violet { background: var(--violet-tint); color: var(--violet-deep); }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 340px at 78% 30%, rgba(109, 74, 255, .16), transparent 70%),
    radial-gradient(520px 300px at 12% 10%, rgba(236, 230, 251, .9), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero .lead { margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--body); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok-fg); flex: none; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Phone */
.phone {
  position: relative; width: min(360px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.6;
  background: #0f0f14; border-radius: 52px; padding: 12px;
  box-shadow: 0 50px 80px -30px rgba(40, 20, 120, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 96px; height: 28px; background: #0f0f14; border-radius: 20px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: var(--canvas); display: flex; flex-direction: column; }
.screen-top { padding: 56px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.screen-top b { color: var(--ink); font-size: 15px; }
.screen-top span { font-size: 12px; color: var(--muted); font-weight: 600; }
.float {
  position: absolute; z-index: 4; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--ink); display: flex; gap: 10px; align-items: center;
}
.float .dot { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 6s ease-in-out infinite; }
  .float.f2 { animation-delay: -3s; }
}
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Before/after */
.compare { position: relative; margin: 0 14px; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; user-select: none; touch-action: pan-y; background: #ddd; }
.compare svg { width: 100%; height: 100%; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; translate: -1px 0; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 36px; height: 36px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d4aff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(15, 15, 20, .55); padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.compare .tag.l { left: 10px; } .compare .tag.r { right: 10px; }
.screen-label { margin: 12px 14px 0; background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--ink); font-weight: 600; line-height: 1.35; box-shadow: inset 0 0 0 1px var(--line); }
.screen-label span { color: var(--muted); font-weight: 500; }
.screen-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: auto 14px 18px; }
.screen-tools div { background: var(--surface); border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.screen-tools div i { display: block; width: 22px; height: 22px; margin: 0 auto 4px; border-radius: 7px; background: var(--violet-tint); }
.screen-tools .on { background: var(--violet); color: #fff; box-shadow: none; }
.screen-tools .on i { background: rgba(255, 255, 255, .25); }

.screen-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 14px 0; }
.screen-strip svg { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; }
.screen-strip .sel { box-shadow: 0 0 0 2px var(--violet); }
.screen-review { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 14px 0; }
.screen-review .chip { height: 24px; font-size: 11px; padding: 0 9px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { background: var(--canvas); color: var(--ink); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }

/* Pains */
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain { padding: 26px; }
.pain .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--blocked-bg); color: var(--blocked-fg); margin-bottom: 18px; }
.pain .ico svg { width: 22px; height: 22px; }
.pain h3 { font-size: 18px; }
.pain p { font-size: 15.5px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pains { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.step .time { position: absolute; top: 30px; right: 26px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { padding: 28px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.tile li { display: flex; gap: 10px; align-items: flex-start; }
.tile li svg { width: 18px; height: 18px; color: var(--violet); flex: none; margin-top: 3px; }
.t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
.tile.dark { background: var(--ink); color: #c9c8d6; }
.tile.dark h3 { color: #fff; }
.tile.dark p { color: #b3b2c2; }
.tile.violet { background: linear-gradient(160deg, #7b5bff, #5233e0); color: #e9e4ff; }
.tile.violet h3 { color: #fff; } .tile.violet p { color: #ddd5ff; }
.tile-visual { margin-top: auto; padding-top: 22px; }
@media (max-width: 960px) { .t-4, .t-3, .t-2 { grid-column: span 6; } }

.level { position: relative; height: 120px; border-radius: 16px; background: linear-gradient(#cfd9e6, #e9eef4 60%, #b9a690 60%); overflow: hidden; }
.level .line { position: absolute; top: 50%; left: 50%; width: 62%; height: 2px; background: #4ade80; translate: -50% -50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.level .ring { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border: 2.5px solid #4ade80; border-radius: 50%; translate: -50% -50%; }
.level .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.level .badges span { background: #fff; color: var(--ok-fg); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }

.ledger { display: grid; gap: 8px; }
.ledger div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--canvas); font-size: 14px; font-weight: 600; color: var(--ink); }
.tile.dark .ledger div { background: rgba(255, 255, 255, .06); color: #fff; }

.steps-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.steps-mini span { background: rgba(255, 255, 255, .14); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* Won't do */
.refuse { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.refuse-list { display: grid; gap: 12px; }
.refuse-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.refuse-item b { color: var(--ink); display: block; font-size: 16px; }
.refuse-item span { color: var(--muted); font-size: 14.5px; }
.refuse-item .chip { margin-left: auto; }
@media (max-width: 900px) { .refuse { grid-template-columns: 1fr; gap: 32px; } }

/* AB 723 */
.law { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.law .card { padding: 32px; }
.law table { width: 100%; border-collapse: collapse; font-size: 15px; }
.law th, .law td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.law th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.law td:last-child { white-space: nowrap; }
.law tr:last-child td { border-bottom: 0; }
.checker fieldset { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.checker legend { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.checker label { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--canvas); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.checker input { accent-color: var(--violet); width: 18px; height: 18px; }
.verdict { border-radius: 14px; padding: 16px 18px; font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.verdict.none { background: var(--ok-bg); color: var(--ok-fg); }
.verdict.label { background: var(--label-bg); color: var(--label-fg); }
.verdict.blocked { background: var(--blocked-bg); color: var(--blocked-fg); }
.note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
@media (max-width: 960px) { .law { grid-template-columns: 1fr; } }

/* Vision */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.road { padding: 26px; }
.road .chip { margin-bottom: 14px; }
.road p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.plan { padding: 32px; display: flex; flex-direction: column; }
.plan .price { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin: 10px 0 4px; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--ok-fg); flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan.pro { box-shadow: 0 0 0 2px var(--violet), var(--shadow); position: relative; }
.plan.pro .chip { position: absolute; top: -15px; right: 24px; background: var(--violet); color: #fff; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 0 24px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 32px 22px 0; font-weight: 700; color: var(--ink); font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--violet); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 0 22px; color: var(--body); font-size: 16px; }
.faq details > div p:last-child { margin: 0; }

/* CTA band */
.band { background: var(--ink); color: #c9c8d6; border-radius: 32px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 420px; background: radial-gradient(closest-side, rgba(109, 74, 255, .55), transparent); }
.band > * { position: relative; }
.band h2 { color: #fff; }
.band .lead { color: #b9b8c8; margin: 0 auto 28px; }

/* Footer */
footer { padding: 56px 0 40px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer a { color: var(--body); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--violet-deep); }
.fine { flex-basis: 100%; font-size: 13px; }

/* Article pages (AB 723 guide, privacy, support) */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.article h1 { font-size: clamp(36px, 5vw, 52px); }
.article h2 { font-size: 28px; margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article li { margin-bottom: .4em; }
.article table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1em 0 1.6em; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: #faf9fd; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.article tr:last-child td { border-bottom: 0; }
.callout { background: var(--violet-tint); border-radius: 16px; padding: 18px 20px; color: var(--ink); margin: 1.4em 0; }
.answer { background: var(--surface); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); margin: 1.2em 0 2em; }
.answer p:last-child { margin: 0; }
.updated { font-size: 14px; color: var(--muted); }
.crumbs { font-size: 14px; margin-bottom: 18px; }
.crumbs a { text-decoration: none; font-weight: 600; }

@media (max-width: 560px) {
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .band { padding: 48px 22px; border-radius: 24px; }
  .law .card, .plan, .tile, .pain, .step { padding: 22px; }
  .law td:last-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
