/* Akatse — base stylesheet */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ed;
  --ink: #16181c;
  --ink-2: #3d434b;
  --muted: #757c85;
  --line: #e3e0d8;
  --line-2: #d2cec3;
  --accent: #1c4b3c;
  --accent-ink: #ffffff;
  --accent-soft: #e8efea;
  --warn: #8a5a12;
  --radius: 6px;
  --maxw: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --surface: #1a1c20;
    --surface-2: #212429;
    --ink: #eceae5;
    --ink-2: #bcbdc0;
    --muted: #8c9098;
    --line: #2c2f35;
    --line-2: #3b3f46;
    --accent: #7fc0a5;
    --accent-ink: #101311;
    --accent-soft: #1e2a25;
    --warn: #d3a25a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.021em;
  line-height: 1.18;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img, svg { max-width: 100%; }

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

.muted { color: var(--muted); }
.small { font-size: 0.83rem; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* ---------- prototype notice ---------- */

.proto-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.45;
}

.proto-bar .wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.proto-bar b {
  color: var(--ink);
  font-weight: 620;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
  flex: none;
}

.proto-bar p { margin: 0; }

.proto-bar button {
  margin-left: auto;
  flex: none;
  border: 0;
  background: none;
  padding: 0 2px;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.proto-bar button:hover { color: var(--ink); }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 660;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  margin-right: auto;
}

.brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  flex: none;
}

.brand .mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
}

.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 560; }
.nav a.btn { color: var(--accent-ink); }

#nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.nav-user {
  color: var(--ink);
  font-weight: 560;
  line-height: 1.15;
  display: inline-flex;
  flex-direction: column;
  max-width: 16ch;
  overflow: hidden;
}

.nav-user i {
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.linklike {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
}

.linklike:hover { color: var(--ink); }
.linklike[disabled] { opacity: 0.6; cursor: default; }

/* ---------- signed-in personalisation ----------
   Once you have joined a side, the prompts aimed at that side come down: a
   founder is not told to browse companies or list a company. Set before first
   paint by session.js, so nothing appears and then vanishes. */

html[data-own-category="startups"] [data-category="startups"],
html[data-own-category="investors"] [data-category="investors"] {
  display: none !important;
}

/* With the primary hero button gone, promote the one that is left. */
html[data-own-category="startups"] .hero-actions .btn.ghost {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

html[data-own-category] .two-col { grid-template-columns: 1fr; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 540;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: 0.55; cursor: default; filter: none; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn.ghost:hover { background: var(--surface-2); filter: none; }

.btn.sm { height: 32px; padding: 0 12px; font-size: 0.84rem; }

/* ---------- home ---------- */

.hero {
  padding: 76px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  max-width: 15ch;
  margin-bottom: 18px;
}

.hero p.lede {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat-strip div {
  padding: 22px 0;
  border-right: 1px solid var(--line);
}

.stat-strip div:last-child { border-right: 0; }

.stat-strip .n {
  font-size: 1.5rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  display: block;
}

.stat-strip .l {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head a { font-size: 0.88rem; color: var(--accent); }
.section-head a:hover { text-decoration: underline; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.two-col > div {
  background: var(--surface);
  padding: 32px;
}

.two-col h3 { margin-bottom: 10px; }

.two-col ol {
  margin: 0 0 22px;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.two-col li { margin-bottom: 6px; }

/* ---------- filters ---------- */

.page-head {
  padding: 40px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 60ch; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 62px;
  background: var(--bg);
  z-index: 10;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0 11px;
  height: 38px;
}

textarea { padding: 9px 11px; height: auto; line-height: 1.5; resize: vertical; }

.filters .search { flex: 1 1 220px; min-width: 180px; }

.filters select { cursor: pointer; max-width: 170px; }

.filters .linklike { font-size: 0.85rem; }

.count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink);
}

.chip-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 560;
}

/* ---------- the Monday email ---------- */

.digest-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.digest-bar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.digest-bar b {
  font-weight: 560;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.digest-bar span { font-size: 0.8rem; color: var(--muted); }
.digest-bar .btn { margin-left: auto; flex: none; }

.digest-panel {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  margin: 16px 0 4px;
  max-width: 560px;
}

.digest-panel h3 { margin-bottom: 6px; }

.digest-form {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
}

.digest-form input { flex: 1 1 auto; min-width: 0; }
.digest-form .btn { flex: none; }
.digest-note { margin-top: 12px; }

@media (max-width: 560px) {
  .digest-bar { flex-wrap: wrap; }
  .digest-bar .btn { margin-left: 0; width: 100%; }
  .digest-form { flex-direction: column; }
  .digest-form .btn { width: 100%; }
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  background: var(--bg);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  padding: 22px 4px;
  align-items: start;
}

.card:hover { background: var(--surface); }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  color: var(--ink-2);
}

.card-body h3 { margin-bottom: 3px; font-size: 1.02rem; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body .tag-line { color: var(--ink-2); font-size: 0.93rem; margin-bottom: 9px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}

.tag.solid {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
  font-weight: 560;
}

.card-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}

.ask {
  font-weight: 620;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.ask span { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }

.star {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--muted);
  border-radius: var(--radius);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

.star:hover { border-color: var(--line-2); color: var(--ink); }
.star[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.empty p { margin-bottom: 14px; }

/* ---------- detail ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 40px 0 72px;
  align-items: start;
}

.back {
  font-size: 0.86rem;
  color: var(--muted);
  display: inline-block;
  margin: 24px 0 0;
}

.back:hover { color: var(--ink); }

.detail h1 { margin-bottom: 8px; }

.detail .lede {
  font-size: 1.08rem;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.prose h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  margin: 34px 0 10px;
}

.prose p { color: var(--ink-2); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 26px;
  background: var(--line);
  gap: 1px;
}

.metric-grid div {
  background: var(--surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.metric-grid .v { font-size: 1.2rem; font-weight: 640; letter-spacing: -0.02em; line-height: 1.25; }
.metric-grid .k { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.people { display: grid; gap: 14px; margin-top: 4px; }

.person {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.person .avatar { width: 38px; height: 38px; border-radius: 50%; font-size: 0.8rem; }
.person .nm { font-weight: 560; font-size: 0.95rem; }
.person .rl { color: var(--muted); font-size: 0.85rem; }
.person p { font-size: 0.9rem; color: var(--ink-2); margin: 3px 0 0; }

.aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  position: sticky;
  top: 86px;
}

.aside .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.aside .row:last-of-type { border-bottom: 0; }
.aside .row dt { color: var(--muted); }
.aside .row dd { margin: 0; text-align: right; font-weight: 540; }

.aside dl { margin: 0 0 18px; }

.bar {
  height: 5px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 4px;
}

.bar i { display: block; height: 100%; background: var(--accent); }

.aside .btn { width: 100%; }

.aside .note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- form ---------- */

.form {
  max-width: 620px;
  padding: 40px 0 80px;
}

.form.narrow { max-width: 400px; }

.alt-action {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.alt-action a { color: var(--accent); text-decoration: underline; }

/* The two role choices on the sign-in page. */
.pick {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  margin-bottom: 14px;
}

.pick h3 { margin-bottom: 4px; }
.pick p { margin-bottom: 14px; }
.pick .btn { width: 100%; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 560;
  margin-bottom: 6px;
}

.field .hint { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea { width: 100%; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.status {
  margin-top: 16px;
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.status.ok { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.status.err { border-color: var(--warn); color: var(--warn); }

/* ---------- pricing and checkout ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.plan.best { border-color: var(--accent); }

.plan-flag {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
}

.plan h3 { margin-bottom: 10px; }

.plan-price {
  font-size: 2.1rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-per {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 16px;
}

.plan p { font-size: 0.92rem; color: var(--ink-2); }
.plan .btn { margin-top: auto; }

/* Shows a draft listing the way it will sit in the directory. */
.preview-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0 18px;
}

.preview-frame .card { padding: 20px 0; }
.preview-frame .card:hover { background: transparent; }

/* Role-specific halves of the listing form. */
.side-fields { border: 0; padding: 0; margin: 0; min-width: 0; }

.check-row { display: flex; flex-wrap: wrap; gap: 8px; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px 12px;
  font-size: 0.88rem;
  cursor: pointer;
}

.check input { accent-color: var(--accent); margin: 0; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.digest-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}

.digest-plan h3 { margin-bottom: 10px; }
.digest-plan p { font-size: 0.94rem; color: var(--ink-2); }

.digest-plan-side {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.digest-plan-side .btn { width: 100%; }

@media (max-width: 760px) {
  .digest-plan { grid-template-columns: 1fr; gap: 22px; }
  .digest-plan-side { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 12px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
  padding-bottom: 80px;
}

.plan-picker { display: grid; gap: 10px; margin-bottom: 34px; }

.plan-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  cursor: pointer;
}

.plan-option.on { border-color: var(--accent); background: var(--accent-soft); }

/* Placed explicitly: radio, then name over meta, then price on the right. */
.plan-option input {
  margin: 0;
  accent-color: var(--accent);
  grid-column: 1;
  grid-row: 1 / span 2;
}

.plan-option-name { grid-column: 2; grid-row: 1; font-weight: 560; }
.plan-option-meta { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 0.84rem; }

.plan-option-price {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-weight: 620;
  font-size: 1.05rem;
  text-align: right;
}

/* A picture of a payment step. There are no inputs here by design — nowhere on
   this site can a card number be entered, and nothing is charged. */
.pay-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 4px 16px;
  opacity: 0.75;
  user-select: none;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.pay-row:last-child { border-bottom: 0; }
.pay-row span { color: var(--muted); }
.pay-row b { font-weight: 540; font-variant-numeric: tabular-nums; }

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.total b { font-size: 1.3rem; letter-spacing: -0.02em; }
.total s { color: var(--muted); font-weight: 400; font-size: 0.95rem; margin-right: 6px; }

.gate {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  max-width: 620px;
  margin: 32px 0 80px;
}

.gate h2 { margin-bottom: 10px; }
.gate p { color: var(--ink-2); }

.done {
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 0 90px;
  text-align: center;
}

.done-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.5rem;
  line-height: 52px;
}

.done .lede { color: var(--ink-2); margin-bottom: 26px; }

.done-facts {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 6px 18px;
  margin: 0 0 28px;
}

.done-facts .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.done-facts .row:last-child { border-bottom: 0; }
.done-facts dt { color: var(--muted); }
.done-facts dd { margin: 0; font-weight: 540; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-foot nav { display: flex; gap: 20px; }
.site-foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-flag { top: -10px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .site-head .wrap { gap: 10px; }
  .nav { gap: 12px; font-size: 0.82rem; }
  .nav a { white-space: nowrap; }
  .nav .hide-sm { display: none; }
  #nav-auth { gap: 10px; }
  .btn.sm { padding: 0 10px; }
  .hero { padding: 48px 0 40px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip div:nth-child(2n) { border-right: 0; }
  .stat-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card { grid-template-columns: 40px 1fr; }
  .avatar { width: 40px; height: 40px; }
  .card-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
  }
  .filters { position: static; }
  .field-row { grid-template-columns: 1fr; }
}

/* Narrow phones: the header runs out of room and clips the last button, so let
   the nav drop onto its own line instead of being cut off. */
@media (max-width: 430px) {
  .site-head .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .proto-bar .wrap { flex-wrap: wrap; row-gap: 4px; }
  .proto-bar button { margin-left: 0; position: absolute; right: 16px; }
  .proto-bar { position: relative; }
}
