/* Fundzies: warm paper, ink, one persimmon accent. Money is always tabular. */

:root {
  --bg: #f6f2ea;
  --bg-raised: #fffdf8;
  --bg-sunk: #eee8dc;
  --ink: #1c1a16;
  --ink-2: #4a463d;
  --muted: #7a7466;
  --line: #e2dbcc;
  --line-strong: #cfc6b3;
  --accent: #d4461a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6dc;
  --good: #1f7a4d;
  --good-soft: #dff1e6;
  --warn: #9a5b00;
  --warn-soft: #fbefd5;
  --bad: #b3261e;
  --bad-soft: #f9dedb;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 0 rgba(28, 26, 22, 0.04), 0 8px 24px -12px rgba(28, 26, 22, 0.14);
  --font: ui-sans-serif, -apple-system, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --bg-raised: #1c1a16;
    --bg-sunk: #100f0c;
    --ink: #f1ece2;
    --ink-2: #cfc8b9;
    --muted: #958e7f;
    --line: #2e2b24;
    --line-strong: #3e3a31;
    --accent: #ff7a45;
    --accent-ink: #1a0d06;
    --accent-soft: #3a1f13;
    --good: #5fd39a;
    --good-soft: #15301f;
    --warn: #f0b75a;
    --warn-soft: #33270f;
    --bad: #ff8a80;
    --bad-soft: #3a1714;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.05rem;
  font-weight: 650;
}
h3 {
  font-size: 1.1rem;
}
h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

p {
  margin: 0 0 0.8em;
}

.num,
table.num td,
.kv dd {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.mono {
  font-family: var(--mono);
  font-size: 0.82em;
  word-break: break-all;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
.strong {
  font-weight: 650;
}
.warn {
  color: var(--warn);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- frame ---- */

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

.devnet {
  background: repeating-linear-gradient(-45deg, var(--warn-soft), var(--warn-soft) 12px, color-mix(in srgb, var(--warn-soft) 70%, var(--bg)) 12px, color-mix(in srgb, var(--warn-soft) 70%, var(--bg)) 24px);
  color: var(--warn);
  text-align: center;
  font-size: 0.82rem;
  padding: 6px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
}

.top {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.top-in {
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 0.95rem/1 var(--font);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.93rem;
}
.nav > a {
  text-decoration: none;
  color: var(--ink-2);
}
.nav > a:hover {
  color: var(--ink);
}

.foot {
  max-width: 1120px;
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.85rem;
}

.flash {
  margin: 20px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--good-soft);
  color: var(--good);
  font-size: 0.92rem;
}

/* ---- controls ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
  font: 600 0.93rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
  border-color: transparent;
  color: var(--accent-ink);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-sunk);
  border-color: transparent;
}
.btn-danger {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 40%, transparent);
  background: transparent;
}
.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.85rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 0.82rem var(--mono);
  cursor: pointer;
}
.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
}
.chain-dot[data-chain="EVM"] {
  background: #627eea;
}
.chain-dot[data-chain="Solana"] {
  background: #9945ff;
}
form.inline {
  display: inline;
  margin: 0;
}

.signin {
  position: relative;
}
.signin > summary {
  list-style: none;
}
.signin > summary::-webkit-details-marker {
  display: none;
}
.signin-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.signin-menu .btn {
  justify-content: flex-start;
}
.signin-menu p:empty {
  display: none;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input:focus,
textarea:focus,
select:focus,
.btn:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 6px;
  margin: 0;
  min-width: 0;
}
fieldset:disabled input {
  background: var(--bg-sunk);
  color: var(--muted);
}
legend {
  padding: 0 6px;
  font-weight: 650;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ---- layout helpers ---- */

.row {
  display: flex;
  align-items: center;
}
.row.between {
  justify-content: space-between;
}
.row.center {
  justify-content: center;
}
.gap-s {
  gap: 10px;
}
.wrap-row {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 200px;
}
.stack {
  display: grid;
  gap: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 36px 0 20px;
}
.page-head h1 {
  margin: 0;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-sunk);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill-live {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.pill-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
.pill-public,
.pill-private {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.pill-public::before,
.pill-private::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
.pill-private {
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
.pill-succeeded,
.pill-settled {
  background: var(--good-soft);
  color: var(--good);
  border-color: transparent;
}
.pill-failed {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: transparent;
}
.pill-draft {
  border-style: dashed;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pill-live::before,
  .pill-public::before,
  .pill-private::before {
    animation: none;
  }
}

.soon {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: var(--bg-sunk);
  color: var(--ink-2);
  font-size: 0.9rem;
  border: 1px dashed var(--line-strong);
}

.draft-note {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.9rem;
}

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

.hero {
  padding: 56px 0 40px;
  max-width: 760px;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 600px;
  margin-bottom: 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 12px 0 16px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}
.empty-inline {
  color: var(--muted);
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.raise-card {
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.raise-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  color: inherit;
}
.raise-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 6px 0 0;
}
.raise-card p {
  margin: 0;
  font-size: 0.93rem;
}
.card-terms {
  display: flex;
  gap: 22px;
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-terms dt {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-terms dd {
  margin: 0;
  font-weight: 650;
  font-size: 1.05rem;
}

/* ---- raise page ---- */

.raise-head {
  margin: 28px 0 22px;
}
.raise-head h1 {
  margin: 12px 0 6px;
}
.tagline {
  font-size: 1.15rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.raise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.raise-side {
  position: sticky;
  top: 80px;
}

.prose {
  overflow-wrap: anywhere;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--display);
  margin: 1.4em 0 0.5em;
}
.prose h1 {
  font-size: 1.6rem;
}
.prose h2 {
  font-size: 1.3rem;
  font-weight: 600;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-sunk);
  padding: 1px 5px;
  border-radius: 5px;
}
.prose pre {
  background: var(--bg-sunk);
  padding: 12px;
  border-radius: var(--radius-s);
  overflow-x: auto;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
}
.prose img {
  max-width: 100%;
}
.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 6px 10px;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0 0 12px;
}
.kv dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.kv dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}

.big-stat {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  margin: 8px 0 14px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
}
.big-stat .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.big-stat .value {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
}
.raised {
  margin: 0 0 6px;
  font-size: 0.92rem;
}
.meter {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-sunk);
  overflow: hidden;
  margin-bottom: 14px;
}
.meter::-webkit-progress-bar {
  background: var(--bg-sunk);
}
.meter::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}
.meter::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .r {
  text-align: right;
}

/* Q&A */
.questions {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.q {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.q:last-child {
  border-bottom: 0;
}
.q-body {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hidden-q {
  opacity: 0.55;
}
.answer {
  margin-top: 8px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg-sunk);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.answer p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.answer-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.founder-tools {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.ask {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* booking */
.slot-days {
  display: grid;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.slot-day {
  border: 0;
  padding: 0;
}
.slot-day legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}
.slot {
  display: block;
  position: relative;
}
.slot input {
  position: absolute;
  opacity: 0;
  inset: 0;
  min-height: 0;
}
.slot span {
  display: block;
  text-align: center;
  padding: 8px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  background: var(--bg-raised);
  color: var(--ink);
}
.slot input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.slot input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.bookings {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bookings li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.bookings li:last-child {
  border-bottom: 0;
}
.note {
  white-space: pre-wrap;
  margin-top: 4px;
}

/* Ideator */
.ideator {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.ideator-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
}
.score {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 750;
}
.sub-block {
  margin-top: 16px;
}
.verdicts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}
.verdict {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg-sunk);
}
.v-pass,
.v-yes,
.v-ok {
  background: var(--good-soft);
  color: var(--good);
}
.v-fail,
.v-no {
  background: var(--bad-soft);
  color: var(--bad);
}
.ideator-foot {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* edit */
.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.copy {
  margin-bottom: 8px;
  cursor: copy;
}
.publish {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.week {
  display: grid;
  gap: 8px;
}
.day-row {
  grid-template-columns: 110px 1fr;
  align-items: center;
  font-weight: 500;
}

/* empty / error */
.empty {
  text-align: center;
  padding: 72px 0 40px;
}
.empty p {
  color: var(--ink-2);
}

/* profile */
.profile {
  padding-top: 40px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.6rem var(--display);
  margin-bottom: 16px;
}
.bio {
  white-space: pre-wrap;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.links,
.plain {
  padding-left: 18px;
}
.profile h2 {
  margin-top: 28px;
}

/* services */
.coming {
  background: linear-gradient(135deg, var(--bg-raised), var(--accent-soft));
}
.coming h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 12px;
}
.services {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.services li {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: var(--radius-s);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

/* ---- rounds and tranches ---- */

.round {
  padding: 4px 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.round h3 {
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.round-open h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
}
.tranches {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.tranche-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.tranche-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 68px;
}
.tranche .meter {
  margin-bottom: 2px;
}
.own {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--bg-sunk);
  font-weight: 700;
  font-size: 0.82rem;
}
.tranche-head,
.tranche-input {
  display: grid;
  grid-template-columns: 20px 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.tranche-inputs {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.more-tranches {
  margin-bottom: 12px;
}
.more-tranches summary {
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 8px;
}
.terms-fields h4 {
  margin: 14px 0 4px;
}
.terms-fields > label,
.terms-fields .grid-2 {
  margin-bottom: 10px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.plain-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.plain-list li:last-child {
  border-bottom: 0;
}

/* commit */
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
label.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--accent);
}
.preview {
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
}
.preview p {
  margin: 0 0 4px;
}
.preview-fills {
  margin: 4px 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.table tr.mine td {
  background: var(--accent-soft);
}
.onramp .btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* profile wallets, /sell */
.wallets {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.wallets li {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-s h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}
.steps {
  padding-left: 20px;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}

/* ---- narrow screens ---- */

@media (max-width: 900px) {
  .raise-grid,
  .edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .raise-side {
    position: static;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .grid-2,
  .grid-3,
  .services {
    grid-template-columns: 1fr;
  }
  .card,
  .form-card {
    padding: 16px;
  }
  .nav {
    gap: 8px;
  }
  .nav > a:first-child {
    display: none;
  }
  .chip {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  .chain-dot {
    display: none;
  }
  .hero {
    padding: 36px 0 28px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .day-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .own {
    margin-left: 0;
  }
  .big-stat .value {
    font-size: 1.8rem;
  }
}
