/* AssetIQ public pages: landing, sign in, sign up, legal. The same tokens as the app. */
:root {
  --ground: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #12161C;
  --ink-2: #3D4652;
  --muted: #5A6472;
  --line: #E5E8EC;
  --brand: #0B6B53;
  --brand-ink: #084D3C;
  --brand-soft: #E3F1EC;
  --warn: #B4470F;
  --warn-soft: #FDF3EE;
  --info: #1F45AE;
  --info-soft: #E8EEFB;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 22, 28, 0.06), 0 8px 24px rgba(18, 22, 28, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1316;
    --surface: #171C20;
    --ink: #EEF1F3;
    --ink-2: #C9D0D6;
    --muted: #9AA4AE;
    --line: #2A3238;
    --brand: #3FB58D;
    --brand-ink: #6FD1AE;
    --brand-soft: #16302A;
    --warn: #F0965F;
    --warn-soft: #33221A;
    --info: #8FA9F0;
    --info-soft: #1B2440;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--brand); }
a:hover { color: var(--brand-ink); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.topnav { display: flex; gap: 22px; margin-left: 24px; }
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.topnav a:hover { color: var(--ink); }
.topbar .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .topnav { display: none; } }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 600 15px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--muted); color: var(--ink); }
.btn-danger { background: var(--warn); color: #fff; }
.btn-danger:hover { filter: brightness(0.92); color: #fff; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
@media (max-width: 420px) { .topbar .btn-quiet { display: none; } }

/* ── hero ── */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero .lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px; border-radius: 12px; background: var(--ink); color: var(--ground); text-decoration: none; }
.store:hover { color: var(--ground); opacity: 0.9; }
.store small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.store strong { display: block; font-size: 15px; line-height: 1.2; }
.store.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.note { font-size: 13px; color: var(--muted); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* ── phone illustration ── */
.phone { width: 320px; max-width: 100%; margin: 0 auto; background: var(--ground); border: 10px solid var(--ink); border-radius: 40px; padding: 18px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.phone .card { padding: 14px; }
.phone .big { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini { background: var(--ground); border-radius: 12px; padding: 10px; }
.mini b { display: block; font-size: 16px; }
.mini span { font-size: 11px; color: var(--muted); }

/* ── sections ── */
section.block { padding: 56px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--ground); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p, .card li { color: var(--ink-2); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 18px; }
.card li { margin: 4px 0; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); vertical-align: middle; margin-left: 6px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 16px; color: var(--ink-2); }
.cta-band { text-align: center; }
.cta-band .ctas { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

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

/* ── forms (sign in, sign up, delete) ── */
.auth { min-height: calc(100vh - 64px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 26px; font-weight: 800; }
.auth-card .sub { margin-top: 6px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; font: 400 16px Inter, system-ui, sans-serif; width: 100%; }
.field .hint { font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 460px) { .row2 { grid-template-columns: 1fr; } }
.alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert-error { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--brand-soft); color: var(--brand-ink); }
.switch { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ── legal pages ── */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.legal .updated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
