/* StowTally marketing site. No external requests: system fonts, inline icons.
   Light by default; dark follows the visitor's device. Same blue as the app. */
:root {
  --brand: #2563eb; --brand-strong: #1d4ed8; --brand-soft: #eff6ff; --brand-ink: #ffffff;
  --ink: #0f172a; --muted: #475569; --line: #e2e8f0; --bg: #ffffff; --bg-alt: #f8fafc; --card: #ffffff;
  --navy: #0b1220; --radius: 14px; --ok: #059669; --glow: #dbeafe;
  --header: rgba(255, 255, 255, .92); --shot-bar: #f1f5f9; --shot-dot: #cbd5e1; --focus: #93c5fd;
  --final-to: #0e7490;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #60a5fa; --brand-strong: #93c5fd; --brand-soft: #172554; --brand-ink: #0b1220;
    --ink: #e5e7eb; --muted: #94a3b8; --line: #1f2937; --bg: #0b1020; --bg-alt: #0f172a; --card: #111827;
    --navy: #070b16; --ok: #34d399; --glow: #172554;
    --header: rgba(11, 16, 32, .9); --shot-bar: #1f2937; --shot-dot: #475569; --focus: #1e40af;
    --final-to: #155e75;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75em; }
.sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink); border: 1.5px solid var(--brand); border-radius: 999px;
  padding: 10px 20px; font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.big { padding: 14px 26px; font-size: 1.05rem; }
.btn.wide { width: 100%; }
.btn.light { background: #ffffff; color: #1d4ed8; border-color: #ffffff; }
.btn.light:hover { background: var(--brand-soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.25rem; letter-spacing: -.02em; }
.logo.small { font-size: 1.05rem; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; }
.nav a:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; gap: 10px; }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, var(--glow) 0, transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }

.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .25), 0 8px 20px -8px rgba(15, 23, 42, .12); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--shot-bar); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--shot-dot); }

/* Trust strip */
.strip { background: var(--navy); color: #cbd5e1; }
.strip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.strip p { margin: 0; font-size: .95rem; }
.strip b { color: #fff; }

/* Features */
.features { padding: 88px 0; }
.features h2, .pricing h2, .faq h2 { text-align: center; }
.features .sub, .pricing .sub { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); }
.card p { color: var(--muted); margin: 0; }
.ic { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--brand-soft); fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

/* Showcase */
.showcase { background: var(--bg-alt); padding: 88px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.show-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.show-row + .show-row { margin-top: 88px; }
.show-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.show-row.flip .show-copy { order: 2; }
.show-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Pricing */
.pricing { padding: 88px 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); }
.plan.pop { border: 2px solid var(--brand); box-shadow: 0 20px 40px -20px rgba(37, 99, 235, .45); }
.plan .tag { position: absolute; top: -13px; left: 28px; margin: 0; background: var(--brand); color: var(--brand-ink); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { margin: .2em 0 0; color: var(--muted); }
.price b { font-size: 2.6rem; color: var(--ink); letter-spacing: -.03em; }
.yearly { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 24px; flex: 1; }
.plan li { padding: 6px 0; border-top: 1px solid var(--line); }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.fine { color: var(--muted); font-size: .92rem; text-align: center; margin-top: 28px; max-width: 46em; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq { background: var(--bg-alt); padding: 88px 0; border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 1.2em; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Final CTA + footer */
.final { background: linear-gradient(120deg, #1d4ed8 0, var(--final-to) 100%); color: #fff; padding: 64px 0; }
.final-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final h2 { margin: 0; }
.foot { padding: 32px 0; border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot nav a:hover { color: var(--ink); }
.copy { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-grid, .show-row { grid-template-columns: minmax(0, 1fr); }
  .show-row.flip { grid-template-columns: minmax(0, 1fr); }
  .show-row.flip .show-copy { order: 0; }
  .grid, .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .strip-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-row { gap: 12px; }
  .top-cta .btn { padding: 8px 14px; font-size: .88rem; }
  .logo span { font-size: 1.1rem; }
  .hero { padding: 36px 0 40px; }
  .grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .features, .showcase, .pricing, .faq { padding: 60px 0; }
  .show-row + .show-row { margin-top: 56px; }
  .copy { margin-left: 0; }
}
@media (max-width: 380px) {
  .top-cta .ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .final { display: none; } }
.nf-title { margin-top: 24px; }
