/* Shared styles for the public CheapskateIQ pages (landing, join, how-it-works, faq, terms, privacy). */
:root { --bg:#f8fafc; --fg:#0f172a; --muted:#475569; --card:#fff; --line:#e2e8f0; --accent:#16a34a; --accent-fg:#fff; --link:#2563eb; --soft:#eef2f7; --danger:#dc2626; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#0b1120; --fg:#f1f5f9; --muted:#94a3b8; --card:#131c31; --line:#25314d; --accent:#22c55e; --accent-fg:#052e16; --link:#60a5fa; --soft:#0f1830; --danger:#f87171; }
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
[id] { scroll-margin-top:84px; } /* keep anchored sections clear of the sticky header */
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color:var(--link); }
img { max-width:100%; }
.wrap { max-width:960px; margin:0 auto; padding:0 16px; }
.narrow { max-width:720px; }

/* header */
.site-header { position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.nav { display:flex; align-items:center; gap:20px; padding:12px 16px; }
.brand { font-weight:800; font-size:1.25rem; color:var(--fg); text-decoration:none; }
.brand span { color:var(--accent); }
.nav nav { display:flex; gap:18px; margin-left:auto; }
.nav nav a { color:var(--muted); text-decoration:none; font-weight:600; }
.nav nav a:hover { color:var(--fg); }
@media (max-width:640px) { .nav nav { display:none; } .nav .btn { margin-left:auto; } }

/* buttons */
.btn { display:inline-block; border:0; border-radius:10px; padding:12px 20px; background:var(--accent); color:var(--accent-fg); font:inherit; font-weight:700; cursor:pointer; text-decoration:none; line-height:1.2; }
.btn:hover { filter:brightness(1.06); }
.btn.sm { padding:8px 14px; font-size:.95rem; }
.btn.lg { padding:15px 26px; font-size:1.1rem; }
.btn.ghost { background:transparent; color:var(--fg); border:1px solid var(--line); }
.btn[disabled] { opacity:.55; cursor:default; }

/* hero + sections */
.hero { padding:56px 0 24px; text-align:center; }
.eyebrow { display:inline-block; padding:6px 14px; border-radius:999px; background:var(--soft); border:1px solid var(--line); color:var(--muted); font-size:.9rem; font-weight:600; margin-bottom:18px; }
h1 { font-size:clamp(2rem,6vw,3.3rem); line-height:1.1; margin:0 0 16px; }
h2 { font-size:1.65rem; margin:0 0 16px; line-height:1.25; }
h3 { margin:0 0 6px; font-size:1.1rem; }
.lead { max-width:640px; margin:0 auto 26px; color:var(--muted); font-size:1.15rem; }
.cta-row { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.fine { color:var(--muted); font-size:.9rem; }
.hero-img { display:block; width:100%; height:auto; margin:36px auto 0; border-radius:20px; border:1px solid var(--line); box-shadow:0 20px 50px rgba(15,23,42,.15); }
section { padding:44px 0; }
.section-title { text-align:center; }
.sub { text-align:center; color:var(--muted); max-width:640px; margin:-6px auto 24px; }
.grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; }
.card p { margin:0; color:var(--muted); font-size:.95rem; }
.num { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--accent); color:var(--accent-fg); font-weight:800; margin-bottom:8px; }
.note { color:var(--muted); font-size:.9rem; text-align:center; max-width:640px; margin:12px auto 0; }

/* call-to-action band */
.band { background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card)); border:1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius:18px; padding:32px 24px; text-align:center; }
.band h2 { margin-bottom:8px; }
.band p { color:var(--muted); max-width:560px; margin:0 auto 18px; }

/* sign-up form */
.form-card { max-width:560px; margin:0 auto; }
.form-card label { display:block; font-weight:600; margin:14px 0 4px; }
.form-card input[type=text], .form-card input[type=email] { width:100%; padding:12px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--fg); font:inherit; }
.form-card textarea, .form-card select { width:100%; padding:12px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--fg); font:inherit; }
.form-card textarea { min-height:150px; resize:vertical; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline:2px solid var(--accent); outline-offset:1px; }
.form-card .check { display:flex; gap:10px; align-items:flex-start; font-weight:400; color:var(--muted); }
.form-card .check input { margin-top:6px; }
.hp { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.msg { margin-top:12px; min-height:1.4em; }
.msg.err { color:var(--danger); } .msg.ok { color:var(--accent); font-weight:700; }
.center { text-align:center; }
.qr { width:min(240px,70vw); margin:12px auto; background:#fff; padding:10px; border-radius:12px; }
.qr svg { display:block; width:100%; height:auto; }
.next-steps { display:flex; gap:12px; justify-content:space-between; margin:18px 0 0; padding:0; list-style:none; flex-wrap:wrap; }
.next-steps li { flex:1 1 150px; font-size:.9rem; color:var(--muted); }
.next-steps b { display:block; color:var(--fg); }

/* sample phone */
.showcase { display:grid; gap:32px; grid-template-columns:minmax(0,320px) 1fr; align-items:center; justify-content:center; max-width:820px; margin:0 auto; }
@media (max-width:700px) { .showcase { grid-template-columns:1fr; justify-items:center; } .showcase-text { text-align:center; } .showcase-text ul { text-align:left; display:inline-block; } }
.phone { width:100%; max-width:300px; border-radius:38px; padding:12px; background:#0f172a; border:2px solid #334155; box-shadow:0 24px 60px rgba(15,23,42,.35); position:relative; }
.notch { width:90px; height:20px; background:#0f172a; border-radius:0 0 14px 14px; position:absolute; top:12px; left:50%; transform:translateX(-50%); z-index:1; }
.screen { background:#f8fafc; color:#0f172a; border-radius:28px; padding:34px 14px 16px; font-size:12.5px; line-height:1.4; }
.app-title { font-size:20px; font-weight:800; margin-bottom:10px; }
.app-photos { display:flex; gap:8px; margin-bottom:10px; }
.app-photos img { width:64px; height:64px; border-radius:8px; object-fit:cover; }
.app-add { width:64px; height:64px; border-radius:8px; border:2px dashed #94a3b8; display:grid; place-items:center; font-size:26px; color:#64748b; }
.app-card { background:#fff; border-radius:12px; padding:12px; display:grid; gap:4px; border:1px solid #e2e8f0; }
.app-item { font-weight:700; font-size:14px; }
.app-muted { color:#64748b; }
.app-plat { border-top:1px solid #e2e8f0; padding-top:6px; margin-top:4px; display:grid; gap:1px; }
.maybe { color:#d97706; font-weight:700; } .go { color:#16a34a; font-weight:700; }
.app-btn { background:#0f172a; color:#fff; text-align:center; padding:9px; border-radius:8px; margin-top:8px; font-weight:700; }
.t-buy { color:#16a34a; } .t-maybe { color:#ca8a04; } .t-pass { color:#dc2626; }
@media (prefers-color-scheme: dark) { .t-buy { color:#22c55e; } .t-maybe { color:#facc15; } .t-pass { color:#f87171; } }
.showcase-text h3 { font-size:1.3rem; }
.showcase-text p { color:var(--muted); margin:0 0 12px; }
.showcase-text ul { margin:0; padding-left:20px; color:var(--muted); }

/* long-form pages */
.prose h1 { font-size:clamp(1.8rem,5vw,2.5rem); text-align:left; margin-top:36px; }
.prose h2 { margin-top:36px; font-size:1.3rem; }
.prose p, .prose li { color:var(--muted); }
.prose ul, .prose ol { padding-left:22px; }
.prose li { margin:6px 0; }
.updated { color:var(--muted); font-size:.9rem; }
.summary { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 20px; margin:24px 0; }
.summary p { margin:6px 0; color:var(--fg); }
table.plain { width:100%; border-collapse:collapse; font-size:.95rem; margin:8px 0; }
table.plain th, table.plain td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; color:var(--muted); }
table.plain th { color:var(--fg); }

/* FAQ */
details.faq { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:0 18px; margin:10px 0; }
details.faq summary { cursor:pointer; font-weight:700; padding:14px 0; list-style:none; display:flex; justify-content:space-between; gap:12px; }
details.faq summary::-webkit-details-marker { display:none; }
details.faq summary::after { content:"+"; color:var(--accent); font-size:1.3rem; line-height:1; }
details.faq[open] summary::after { content:"–"; }
details.faq p { margin:0 0 14px; color:var(--muted); }

/* footer */
.site-footer { margin-top:48px; border-top:1px solid var(--line); padding:28px 0 96px; text-align:center; color:var(--muted); font-size:.9rem; }
.site-footer .foot-links { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.site-footer a { color:var(--muted); }
.site-footer p { margin:6px 0; }

/* sticky sign-up bar (shown after scrolling) */
.sticky-cta { position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; gap:14px; align-items:center; justify-content:center; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter:blur(10px); border-top:1px solid var(--line); transform:translateY(110%); transition:transform .25s ease; }
.sticky-cta.show { transform:none; }
.sticky-cta span { font-weight:600; }
@media (max-width:520px) { .sticky-cta span { display:none; } .sticky-cta .btn { width:100%; text-align:center; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition:none; } html { scroll-behavior:auto; } }
