/* website/style.css
   The HomeStock company site. Deliberately ONE small stylesheet, no framework, no build step:
   this deploys as plain static files so it can never break the way a toolchain can, and so
   anyone can read it a year from now.

   It is NOT the app. The app lives at its own address and keeps its own design system; this
   is the site people land on before they have an account. Shared vocabulary (the accent, the
   type scale, the 44px targets) but no shared code — coupling a marketing page to App.js is
   how a marketing page starts breaking on a refactor. */

:root {
  --ink: #1a1a1a;
  --ink-sub: #5c5c5c;
  --ink-mute: #767676;
  --line: #e6e6e3;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --accent: #2b5bd7;
  --accent-ink: #ffffff;
  --ok: #2b8a3e;
  --radius: 12px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0f0f0;
    --ink-sub: #b8b8b8;
    --ink-mute: #909090;
    --line: #2e2e2e;
    --bg: #141414;
    --bg-soft: #1c1c1c;
    --accent: #7ea2ff;
    --accent-ink: #10131c;
    --ok: #63d68a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ── header ── */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.site-head .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 18px; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em;
}
.site-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-sub); text-decoration: none; font-size: 15px;
  display: inline-flex; align-items: center; min-height: 44px; /* touch target */
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ── type ── */
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; letter-spacing: -0.01em; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p  { margin: 0 0 16px; color: var(--ink-sub); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-sub); max-width: 60ch; }
a { color: var(--accent); }
strong { color: var(--ink); }

section { padding: 40px 0; }
section.hero { padding: 72px 0 48px; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* ── cards ── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--bg);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .who { font-size: 13px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(1.06); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ── pricing ── */
.tier { display: flex; flex-direction: column; }
.tier .price { font-size: 30px; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.tier .per { font-size: 14px; color: var(--ink-mute); margin-bottom: 14px; }
.tier ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-sub); }
.tier li { margin-bottom: 6px; }
.tier .btns { margin-top: auto; }
.tier.feature { border-color: var(--accent); border-width: 2px; }

/* ── notices ── */
.note {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 14px 16px; background: var(--bg-soft);
  font-size: 15px; color: var(--ink-sub); margin: 20px 0;
}

/* ── faq ── */
details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
details summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: 17px;
  min-height: 44px; display: flex; align-items: center;
}
details p { margin-top: 10px; }

/* ── footer ── */
.site-foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 32px 0 56px; }
.site-foot .wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: baseline; }
.site-foot a { color: var(--ink-sub); text-decoration: none; font-size: 15px; }
.site-foot a:hover { color: var(--ink); }
.site-foot .small { font-size: 13px; color: var(--ink-mute); margin-left: auto; }

/* Focus must always be visible — the app enforces this too. */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* Wide content never makes the page scroll sideways. */
img, table { max-width: 100%; }
