/* The public pages: home, for brands, insights. Self-contained so the app's layout rules
   never leak in; the colour and type tokens mirror styles.css. */
:root {
  --ground: #f4f1ec;
  --well: #ebe5dc;
  --card: #faf8f4;
  --ink: #1e1c19;
  --body: #3a3631;
  --muted: #6d665d;
  --line: #ddd5ca;
  --accent: #3b4a39;
  --accent-ink: #f4f1ec;
  --warn: #8a4b1f;
  --radius: 14px;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 var(--ui); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 680px; }   /* reading width, still aligned with the page's left edge */

/* ------------------------------------------------------------ header --- */
.s-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.s-logo { font: 30px/1 var(--display); text-decoration: none; }
.s-nav { display: flex; gap: 18px; font-size: 15px; }
.s-nav a { color: var(--muted); text-decoration: none; }
.s-nav a:hover, .s-nav a[aria-current] { color: var(--ink); }

/* -------------------------------------------------------------- type --- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 84px); line-height: 1; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin-bottom: 14px; }
h3 { font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
p { color: var(--body); margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--body); max-width: 34em; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ---------------------------------------------------------- sections --- */
section { padding: 64px 0; }
.hero { padding: 56px 0 72px; }
.hero h1 { max-width: 12em; margin-bottom: 20px; }
.band { background: var(--well); }

/* ---------------------------------------------------------- invite --- */
.invite { display: flex; gap: 8px; max-width: 440px; margin: 28px 0 10px; }
.invite input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); font: inherit; }
.btn { display: inline-block; border: 0; border-radius: 12px; padding: 14px 20px; background: var(--accent);
  color: var(--accent-ink); font: 500 16px var(--ui); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.small { font-size: 14px; color: var(--muted); }
.err { color: var(--warn); font-size: 14px; }

/* ------------------------------------------------------------ demo --- */
.ask { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: 14px 18px; font-size: 18px; margin: 6px 0 24px; max-width: 30em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--well); }
.card .meta { padding: 12px 14px 14px; font-size: 14px; }
.card .brand { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card .why { color: var(--accent); margin-top: 6px; }
.placeholder { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--muted); }

/* ----------------------------------------------------------- grids --- */
.three { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.two { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.step-n { font: 40px/1 var(--display); color: var(--muted); display: block; margin-bottom: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- founder --- */
.note { font: clamp(24px, 3.4vw, 32px)/1.3 var(--display); color: var(--ink); max-width: 26em; }
.note p { color: inherit; margin-bottom: 18px; }
.sig { font: 15px var(--ui); color: var(--muted); }

/* ----------------------------------------------------------- lists --- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; color: var(--body); }
.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

/* ---------------------------------------------------------- footer --- */
.s-foot { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.s-foot nav { display: flex; gap: 18px; }
.s-foot a { color: var(--muted); }

@media (max-width: 760px) {
  section { padding: 48px 0; }
  .three, .two { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards li:nth-child(3) { display: none; }
  .s-nav { gap: 14px; font-size: 14px; }
  .invite { flex-direction: column; }
}
