/* Public pages: home, privacy, terms. Uses the colour tokens from app.css. */
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--ui); }
.site a { color: var(--action); }
.site-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 34px; width: auto; display: block; }
.site-logo .dark { display: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: var(--radius-s); }
.site-nav a:hover { color: var(--ink); background: var(--sunk); }
.site-nav a.btn { color: var(--ink); }
.site-nav a.btn.primary { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.site main { flex: 1; }

/* Home */
.hero { padding: 72px 0 56px; }
.hero .site-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--action); margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--action); }
.hero p.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero .ctas .btn { padding: 12px 20px; font-size: 16px; }
.hero .fine { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 24px 60px -30px rgba(19,33,44,.35); }
.demo-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.demo-top b { font-family: var(--display); font-size: 19px; }
.demo-top .faint { font-size: 13px; color: var(--ink-3); }
.demo .score-pill { background: color-mix(in srgb, var(--hot) 14%, transparent); color: var(--hot); font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.demo ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.demo li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; background: var(--sunk); border-radius: var(--radius-s); padding: 10px 12px; }
.demo li i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--hot); }
.demo li i.w { background: var(--warm); }
.demo .msg { margin-top: 14px; border-left: 3px solid var(--action); padding: 4px 0 4px 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.demo .demo-cap { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: right; }

.band { padding: 64px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.1; }
.band .sub { color: var(--ink-2); font-size: 17px; margin-top: 10px; max-width: 40em; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-weight: 800; font-family: var(--display); margin-bottom: 14px; }
.step h3, .feat h3 { font-size: 18px; font-weight: 700; }
.step p, .feat p { color: var(--ink-2); margin-top: 6px; line-height: 1.55; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.band:not(.alt) .feat { background: var(--surface); }
.feat .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--action-soft); color: var(--action); display: grid; place-items: center; margin-bottom: 12px; }
.feat .ic svg { width: 20px; height: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; line-height: 1.55; color: var(--ink-2); }
.checks li b { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--action-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.cta-band { text-align: center; }
.cta-band .sub { margin-left: auto; margin-right: auto; }
.cta-band .ctas { justify-content: center; display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.cta-band .btn { padding: 12px 20px; font-size: 16px; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .site-wrap { max-width: 780px; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; }
.legal .updated { color: var(--ink-3); margin-top: 6px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.legal .summary h2 { margin-top: 0; font-size: 17px; }
.legal h2 { font-size: 21px; font-weight: 700; margin-top: 36px; font-family: var(--display); letter-spacing: -.01em; }
.legal h3 { font-size: 16px; font-weight: 700; margin-top: 20px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink-2); }
.legal p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 22px; display: grid; gap: 6px; }
.legal li b, .legal p b { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 700; background: var(--sunk); white-space: normal; }
.legal td { color: var(--ink-2); }
.legal .toc { margin-top: 20px; columns: 2; font-size: 15px; }
.legal .toc a { text-decoration: none; }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--ink-3); }
.site-foot .site-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .site-logo .light { display: none; }
  .site-logo .dark { display: block; }
  .demo { box-shadow: none; }
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234fb3ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero .site-wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .steps, .feats { grid-template-columns: 1fr; }
  .site-nav a:not(.btn) { display: none; }
  .legal .toc { columns: 1; }
  .legal table { display: block; overflow-x: auto; }
}
@media (max-width: 420px) {
  .site-wrap { padding: 0 16px; }
  .site-nav a.btn:not(.primary) { display: none; }
}

/* Home lives inside index.html: show it only for logged-out visitors at "/". */
html.in-app #home { display: none; }
html:not(.in-app) #app { display: none; }
