/* Investable.Africa. Base and home styles come from design/home-preview; app styles follow. */
:root {
  --bg: #e5e1d8;
  --surface: #dad5ca;
  --surface-2: #cfc9bc;
  --paper: #f1f0ec;
  --ink: #2a1d17;
  --muted: #5e4f46;
  --accent: #456f3a;
  --accent-ink: #ffffff;
  --field: #2a1d17;
  --field-ink: #f3f2ef;
  --field-muted: #c9bfb4;
  --ui-bg: #f8f8f6;
  --ui-line: #d9d3c8;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(7rem, 16vw, 15rem);

  --m: clamp(20px, 3vw, 40px);
  --edge: max(var(--m), calc((100vw - 1280px) / 2));
  --radius: 4px;
  --gap-section: clamp(72px, 8.5vw, 128px);
  --gap-group: clamp(48px, 4.5vw, 64px);
  --gap-head: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "General Sans", system-ui, sans-serif;
  font-size: var(--step-body); line-height: 1.45;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 500;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: #3a5f31; }
.btn:active { transform: scale(.97); }
.link { font-weight: 500; text-decoration: none; font-size: 1rem; display: inline-flex; gap: 6px; align-items: center; }
.link span { transition: transform .2s var(--ease); }
.link:hover span { transform: translateX(4px); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* page frame */
.wrap { padding-inline: var(--edge); }
section { position: relative; }

/* ---------- hero ---------- */
.site-bar { position: sticky; top: 0; z-index: 30; background: var(--bg); transition: box-shadow .2s var(--ease); }
.site-bar.scrolled { box-shadow: 0 1px 0 var(--surface-2), 0 8px 20px rgba(42, 29, 23, .07); } /* taste-skill-ignore: sticky bar floats over content */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 18px; }
.hero { min-height: calc(100svh - 72px); display: grid; grid-template-columns: minmax(0, 420px) 1fr; grid-template-rows: 1fr auto; column-gap: 0; padding-top: 8px; overflow: hidden; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.01em; }
.mark svg { width: 28px; height: 28px; }
.mark-slot { padding-left: 0; }
.toplinks { display: flex; gap: 28px; font-size: 1rem; }
.toplinks a { text-decoration: none; font-weight: 500; }
.toplinks a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding-block: 64px 120px; }
.hero h1 { font-size: 1.6875rem; line-height: 1.22; font-weight: 500; max-width: 15em; }
.hero .lede { margin-top: 20px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink); max-width: 36ch; }
.hero .actions { margin-top: 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-photo { grid-column: 2; grid-row: 1 / 3; position: relative; margin: 0 0 0 64px; min-height: 420px; overflow: hidden; background: var(--surface); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo img.on { opacity: 1; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 10px 14px 0 0; font-size: var(--step-small); color: var(--muted); }
.peek { grid-column: 1; grid-row: 2; width: 380px; height: 110px; overflow: hidden; background: var(--surface); padding: 18px 18px 0; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- interface fragments (data-ui) ---------- */
[data-ui] { font-size: 14px; line-height: 1.4; color: var(--ink); }
.ui { background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 6px; } /* taste-skill-ignore: data-ui fragment chrome */
.ui-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; }
.ui-row + .ui-row { border-top: 1px solid var(--ui-line); } /* taste-skill-ignore: data-ui list rows */
.av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: #c9d8c2; color: #24401d; }
.av.b { background: #e3cdb8; color: #5a3416; }
.av.c { background: #cdd5e3; color: #1f3253; }
.ui-name { font-weight: 600; }
.ui-sub { color: #6d625b; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eee9df; color: #5c4f46; border: 1px solid var(--ui-line); white-space: nowrap; } /* taste-skill-ignore: data-ui chip */
.chip.pending { background: #f6ecd2; color: #6b4e0c; border-color: #ead9a9; }
.chip.ok { background: #dcebd5; color: #2c5222; border-color: #bcd6b1; }
.chip.no { background: #f2dcd6; color: #7a2a1a; border-color: #e6bfb4; }
.ui-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--ui-line); background: #fff; color: var(--ink); cursor: pointer; transition: background-color .15s, transform .15s; } /* taste-skill-ignore: data-ui button */
.ui-btn:hover { background: #f1eee8; }
.ui-btn:active { transform: scale(.96); }
.ui-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ui-btn.primary:hover { background: #3a5f31; }
.ui-btn[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.cursor { width: 14px; height: 20px; position: absolute; pointer-events: none; }
.spacer { flex: 1; }
.ui-row > .av + div { flex: 1 1 180px; min-width: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- featured deals ---------- */
.fd { background: var(--surface); padding-block: var(--gap-section); }
.fd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.fd-head h2 { font-size: 1.75rem; }
.fd-grid { margin-top: var(--gap-head); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.fd-lead { --pad: clamp(24px, 3vw, 40px); background: var(--bg); border-radius: var(--radius); padding: var(--pad); }
.fd-cover { margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--pad); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.fd-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.fd-lead:hover .fd-cover img { transform: scale(1.02); }
.fd-lead .who { display: flex; gap: 16px; align-items: center; }
.fd-lead .logo { width: 56px; height: 56px; border-radius: var(--radius); background: #e3cdb8; color: #5a3416; display: grid; place-items: center; font-weight: 700; font-size: 1.125rem; flex: none; }
.fd-lead h3 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.fd-lead .tag { margin-top: 4px; font-size: 1rem; }
.fd-lead .chips { margin-top: 20px; }
.fd-lead .chip { font-size: 14px; }
.fd-lead .raise { margin-top: 28px; }
.fd-lead .raise .row { display: flex; justify-content: space-between; font-size: 1rem; font-variant-numeric: tabular-nums; }
.fd-lead .raise .bar { margin-top: 10px; background: var(--surface-2); }
.fd-stats { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fd-stats dt { font-size: 15px; color: var(--muted); }
.fd-stats dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.fd-lead .actions { margin-top: 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.fd-list { display: flex; flex-direction: column; gap: 6px; }
.fd-item { display: grid; grid-template-columns: 96px 1fr auto; align-items: start; gap: 4px 18px; padding: 14px 20px 14px 14px; border-radius: var(--radius); background: var(--bg); text-decoration: none; transition: background-color .18s, transform .18s var(--ease); }
.fd-item:hover { background: var(--paper); transform: translateX(4px); }
.fd-item b { font-size: 1.125rem; font-weight: 500; }
.fd-item img { grid-row: 1 / 3; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.fd-item small:not(.r) { grid-column: 2; }
.fd-item .amt { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.fd-item small { font-size: 1rem; color: var(--ink); }
.fd-item small.r { text-align: right; }
.fd-note { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }

/* ---------- how it works ---------- */
.how { padding-top: var(--gap-section); display: grid; grid-template-columns: minmax(0, 600px) 1fr; }
.how-col { grid-column: 1; }
.how h2 { font-size: 1.75rem; margin-bottom: var(--gap-head); }
.ex { margin-bottom: var(--gap-group); }
.ex:last-child { margin-bottom: 0; }
.ex > p.say { font-size: 1.25rem; font-weight: 500; }
.call { margin-top: 16px; background: var(--surface); border-radius: var(--radius); padding: 20px; }
.call label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.call textarea { width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: 15px; line-height: 1.45; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: 4px; background: var(--ui-bg); color: var(--ink); }
.call .row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.call .count { font-size: var(--step-small); color: var(--muted); }
.resp { margin: 16px 0 0 56px; }
.ex.final .resp { margin-left: 0; }
.folders .st { text-align: right; }
.folders .ui-row { gap: 14px; }
.folders .ico { width: 18px; height: 18px; flex: none; }
.lock { color: #6d625b; }
.how-photo { grid-column: 2; grid-row: 1; margin: calc(1.75rem * 1.2 + var(--gap-head)) 0 0 64px; align-self: start; position: sticky; top: 32px; }
.how-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.how-photo figcaption, .feat figcaption, .list-photo figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

/* ---------- showcase ---------- */
.show { margin-top: var(--gap-section); background: var(--field); color: var(--field-ink); padding-block: var(--gap-section); display: flex; flex-direction: column; justify-content: center; }
.show-head { padding-inline: var(--edge); }
.show-head h2 { font-size: 1.75rem; color: var(--field-ink); }
.show-head p { margin-top: 8px; color: var(--field-muted); font-size: 1rem; max-width: 52ch; }
.rail { display: flex; gap: 6vw; overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--gap-head) calc(50vw - 220px); scrollbar-width: none; align-items: center; }
.rail::-webkit-scrollbar { display: none; }
.panel { flex: none; scroll-snap-align: center; width: 440px; opacity: .35; transition: opacity .4s var(--ease), transform .4s var(--ease); transform: scale(.96); }
.panel.lit { opacity: 1; transform: none; }
.show-caption { padding-inline: var(--edge); }
.show-caption h3 { font-size: 1.5rem; font-weight: 400; color: var(--field-ink); }
.show-caption p { margin-top: 6px; color: var(--field-ink); font-size: 1.0625rem; max-width: 46ch; }
.show-nav { display: flex; gap: 10px; margin-top: 20px; }
.show-nav button { font: inherit; font-size: 15px; font-weight: 500; background: transparent; color: var(--field-ink); border: 0; padding: 8px 0; margin-right: 18px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.show-nav button:hover { color: #fff; }
.deck { aspect-ratio: 16/9; background: #1f3a2a; color: #f1efe9; border-radius: 4px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.deck b { font-size: 22px; line-height: 1.1; }
.deck .n { display: flex; gap: 22px; }
.deck .n div { font-size: 12px; color: #c9d8c2; }
.deck .n strong { display: block; font-size: 20px; color: #fff; }
.bar { height: 8px; border-radius: 4px; background: #e6e0d4; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
table.ui-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-t th { text-align: left; font-weight: 600; color: #6d625b; padding: 8px 14px; border-bottom: 1px solid var(--ui-line); }
.ui-t td { padding: 9px 14px; border-bottom: 1px solid var(--ui-line); }
.ui-t tr:last-child td { border-bottom: 0; }
.ui-t td.r, .ui-t th.r { text-align: right; }
.msg { padding: 10px 12px; border-radius: 8px; max-width: 85%; font-size: 13.5px; }
.msg.in { background: #eee9df; }
.msg.out { background: #dcebd5; margin-left: auto; }

/* ---------- features ---------- */
.feats { background: var(--surface); padding-block: var(--gap-section); }
.feats-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; row-gap: var(--gap-group); }
.feats h2 { grid-column: 1 / -1; font-size: 1.75rem; margin-bottom: calc(var(--gap-head) - var(--gap-group)); }
.feat { display: grid; grid-template-rows: auto 1fr; gap: 20px; align-content: start; max-width: 520px; }
.feat > div:last-child { max-width: 44ch; }
.feat .pnl { background: var(--bg); border-radius: var(--radius); padding: 22px; min-height: 160px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.feat .pnl.photo { padding: 0; }
.feat .pnl.photo img { width: 100%; height: 280px; object-fit: cover; object-position: 50% 35%; }
.feat h3 { font-size: 1.125rem; line-height: 1.3; }
.feat p { margin-top: 8px; font-size: 1.0625rem; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- list (regions) ---------- */
.list { padding-block: var(--gap-section); }
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.list-head h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700; }
.list-head h2 span { color: var(--muted); display: block; }
.list-body { margin-top: var(--gap-head); display: grid; grid-template-columns: minmax(0, 300px) 150px 1fr; column-gap: 40px; }
.list-photo { grid-column: 1; }
.list-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tabs { grid-column: 2; display: flex; flex-direction: column; gap: 6px; }
.tab { width: 150px; height: 64px; padding: 10px 14px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .18s; }
.tab:hover { background: var(--surface-2); }
.tab b { display: block; font-size: 1rem; font-weight: 500; }
.tab small { display: block; font-size: var(--step-small); color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab[aria-selected="true"] small { color: #d9d0c6; }
.bands { grid-column: 3; display: flex; flex-direction: column; gap: 4px; }
.band { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 20px; min-height: 76px; padding: 10px 20px; border-radius: 8px; background: var(--surface); transition: background-color .18s, transform .18s var(--ease); text-decoration: none; }
.band:nth-child(even) { background: var(--surface-2); }
.band:hover { transform: translateX(4px); }
.band .stage { font-size: 1.125rem; font-weight: 500; }
.band .t { font-size: 1.0625rem; font-weight: 500; }
.band .t small { display: block; font-size: 15px; font-weight: 400; color: var(--ink); }
.band .r { text-align: right; font-size: 15px; }
.band .r b { display: block; font-size: 1rem; font-weight: 500; }
.bands-note { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }

/* ---------- pricing ---------- */
.price { background: var(--paper); padding-block: var(--gap-section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.price-copy { grid-column: 1 / span 5; }
.price-copy h2 { font-size: 2rem; line-height: 1.1; max-width: 18ch; }
.price-copy p { max-width: 46ch; }
.price-copy p { margin-top: 16px; font-size: 1.0625rem; }
.price-copy .fine { margin-top: 20px; font-size: 1rem; color: var(--ink); }
.price-fig { grid-column: 6 / span 7; position: relative; }
.toggle { display: inline-flex; background: var(--bg); border-radius: var(--radius); padding: 4px; gap: 4px; margin-bottom: 24px; }
.toggle button { font: inherit; font-size: 15px; font-weight: 500; border: 0; background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 3px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.figure { display: flex; align-items: flex-start; font-weight: 700; letter-spacing: -0.04em; line-height: .85; font-size: var(--step-display); font-variant-numeric: tabular-nums; }
.figure .cur { font-size: .5em; margin-top: .06em; margin-right: .04em; }
.figure .per { align-self: flex-end; font-size: 1.125rem; letter-spacing: 0; font-weight: 500; margin-left: 12px; margin-bottom: .2em; line-height: 1.2; }
.figure .per small { display: block; color: var(--muted); font-weight: 400; font-size: 15px; }
.figwrap { position: relative; display: inline-block; }
.status { position: absolute; top: -18px; left: 62%; width: 250px; }
.incl { list-style: none; margin: 32px 0 28px; padding: 0; font-size: 1.125rem; }
.toggle { margin-top: 4px; }
.incl li + li { margin-top: 6px; }

/* ---------- faq ---------- */
.faq { padding-top: var(--gap-section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.qs { grid-column: 1 / span 5; list-style: none; margin: 0; padding: 0; }
.qs h2 { font-size: 1.125rem; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.q { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 9px 0; background: none; border: 0; text-align: left; font: inherit; font-size: 1.125rem; color: var(--muted); cursor: pointer; }
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); transition: background-color .15s; }
.q[aria-expanded="true"] { color: var(--ink); }
.q[aria-expanded="true"]::before { background: var(--accent); }
.q:hover { color: var(--ink); }
.a-inline { display: none; }
.pane { grid-column: 7 / span 6; position: sticky; top: 120px; align-self: start; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.35; max-width: 34ch; transition: opacity .15s; }
.pane.fade { opacity: 0; }

/* ---------- cta + footer ---------- */
.cta { margin-top: var(--gap-section); background: var(--accent); color: var(--accent-ink); padding-block: var(--gap-section); }
.cta .btn { background: var(--bg); color: var(--ink); }
.cta .btn:hover { background: #fff; }
footer { padding-top: var(--gap-head); }
.cta h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; line-height: 1.02; }
.cta .actions { margin-top: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer { padding-bottom: 30px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; }
.foot .c { display: flex; gap: 24px; }
.foot .c a { text-decoration: none; }
.foot .c a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .l, .foot .r { color: var(--muted); }
.foot .r { text-align: right; }
.foot .r a { color: var(--ink); }
.small-print { margin-top: 20px; font-size: var(--step-small); color: var(--muted); max-width: 75ch; }
.small-print a { color: var(--muted); }

/* ---------- entrances ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .hero-photo img { transition: none; }
  .panel, .band, .btn, .link span { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .peek { width: 340px; }
  .feats-col { grid-template-columns: 1fr; }
  .list-body { grid-template-columns: 150px 1fr; }
  .list-photo { display: none; }
  .figwrap { display: block; }
  .status { position: static; width: auto; max-width: 320px; margin-top: 20px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 40px 0 40px; max-width: 520px; }
  .hero-photo { margin: 0; min-height: 0; aspect-ratio: 16 / 10; }
  .peek { margin: 24px 0 0; }
  .how { display: block; }
  .how-col { max-width: 560px; }
  .how-photo { margin: var(--gap-group) 0 0; max-width: 560px; position: static; }
  .how-photo img { aspect-ratio: 4 / 3; }
  .feats-col { grid-template-columns: 1fr; }
  .tabs { grid-column: 1; }
  .bands { grid-column: 2; }
}
/* ---------- phone ---------- */
@media (max-width: 760px) {
  .hero { display: block; padding-top: 0; min-height: 0; }
  .topbar { padding-block: 14px; }
  .toplinks { gap: 20px; }
  .mark-slot { padding-left: 0; }
  .toplinks a.hide-s { display: none; }
  .hero-copy { padding: 24px 0 28px; max-width: none; }
  .peek { margin-left: 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero-photo { margin: 0; aspect-ratio: 4 / 5; }
  .peek { width: auto; margin-top: 24px; height: 128px; }
  .how { display: block; }
  .resp { margin-left: 0; margin-top: 24px; }
  .ex.final .resp { width: auto; }
  .how-photo { margin: var(--gap-group) 0 0; }
  .how-photo img { aspect-ratio: 4 / 3; }
  .rail { padding: var(--gap-head) 7vw; gap: 4vw; }
  .panel { width: 86vw; }
  .feats { display: block; }
  .fd-grid { grid-template-columns: 1fr; gap: 24px; }
  .fd-stats { grid-template-columns: 1fr 1fr; }
  .fd-item { grid-template-columns: 72px 1fr; background: none; padding: 12px 0; column-gap: 14px; }
  .fd-item img { width: 72px; height: 72px; grid-row: 1 / 5; }
  .fd-item > :not(img) { grid-column: 2; }
  .fd-item:hover { background: none; }
  .fd-item .amt, .fd-item small.r { text-align: left; }
  .feats-col { display: block; }
  .feat { gap: 16px; margin-bottom: var(--gap-group); }
  .feat:last-child { margin-bottom: 0; }
  .feats h2 { margin-bottom: var(--gap-head); }
  .list-head { display: block; }
  .list-head .btn { margin-top: 24px; width: 100%; }
  .list-body { display: block; }
  .tabs { flex-direction: row; overflow-x: auto; position: sticky; top: 0; z-index: 2; background: var(--bg); padding-block: 8px; scrollbar-width: none; }
  .tab { flex: none; width: auto; min-width: 110px; }
  .bands { margin-top: 16px; }
  .band { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .band .r { text-align: left; }
  .price { display: block; }
  .price-fig { margin-top: var(--gap-head); }
  .figure { font-size: 34vw; }
  .figwrap { display: block; }
  .status { position: static; width: auto; margin-top: 20px; }
  .price .btn { width: 100%; }
  .faq { display: block; }
  .pane { display: none; }
  .a-inline { display: block; padding: 0 0 14px 22px; font-size: 1.1875rem; line-height: 1.4; }
  .a-inline[hidden] { display: none; }
  .foot { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
  .foot .r { text-align: left; }
}

/* ================= app pages ================= */
.page { padding-block: clamp(20px, 2.5vw, 36px) var(--gap-section); min-height: 60vh; }
.page.narrow > * { max-width: 520px; }
.page h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.page .lede { margin-top: 12px; max-width: 60ch; }
.page h2 { font-size: 1.375rem; margin: 48px 0 16px; }
.page h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.panel-box { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.panel-box.tone { background: var(--surface); }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.danger { background: #8a2f1c; }
.btn.danger:hover { background: #73261a; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 15px; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 500; color: inherit; }
.inline { display: inline; }

/* nav extras */
.toplinks form { display: inline; }
.toplinks a, .toplinks button { white-space: nowrap; }
.toplinks button.link { font-size: 1rem; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; margin-left: 4px; }

/* flash messages */
.flash { padding-block: 12px; }
.flash p { padding: 12px 16px; border-radius: var(--radius); background: var(--paper); }
.flash .success { background: #dcebd5; }
.flash .error { background: #f2dcd6; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: #f6ecd2; margin-bottom: 24px; }

/* forms */
form.f { margin-top: 32px; }
.f .field { margin-bottom: 20px; }
.f label, .f legend { display: block; font-weight: 500; font-size: 1rem; margin-bottom: 6px; padding: 0; }
.f input[type=text], .f input[type=email], .f input[type=password], .f input[type=url], .f input[type=number],
.f select, .f textarea { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--ui-line);
  border-radius: var(--radius); background: var(--ui-bg); color: var(--ink); } /* taste-skill-ignore: real form fields */
.f select[multiple] { min-height: 180px; }
.f textarea { resize: vertical; line-height: 1.45; }
.f .help { font-size: var(--step-small); color: var(--muted); margin-top: 4px; }
.f .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #8a2f1c; font-size: var(--step-small); }
.f fieldset { border: 0; margin: 0; padding: 0; }
.f .choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.f .choices label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.f .check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.f .check input { margin-top: 5px; }
.f .actions { margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.f-grid .wide { grid-column: 1 / -1; }

/* tabs for the profile editor */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.subnav a { padding: 8px 14px; border-radius: var(--radius); background: var(--surface); text-decoration: none; font-size: 15px; font-weight: 500; }
.subnav a[aria-current] { background: var(--ink); color: var(--bg); }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 12px; }
.t td { padding: 12px; background: var(--paper); vertical-align: top; }
.t tr + tr td { border-top: 4px solid var(--bg); } /* taste-skill-ignore: spacing between table rows */
.t td.r, .t th.r { text-align: right; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin-top: 16px; }
.spark i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; }
.meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--accent); }

/* startup cards in browse */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.card { display: block; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .18s var(--ease); }
.card:hover { transform: translateY(-3px); }
.card .cv { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; color: var(--muted); }
.card .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .bd { padding: 16px 18px 20px; }
.card h3 { font-size: 1.125rem; font-weight: 600; }
.card p { font-size: 15px; margin-top: 4px; }
.card .meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; align-items: end; margin-top: 24px; }
.filters .field { margin: 0; }
.filters .more { grid-column: 1 / -1; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* startup profile */
.sp-cover { aspect-ratio: 21 / 7; background: var(--surface); overflow: hidden; }
.sp-cover img { width: 100%; height: 100%; object-fit: cover; }
.sp-head { display: flex; gap: 20px; align-items: flex-end; position: relative; }
.sp-logo { width: 96px; height: 96px; border-radius: var(--radius); background: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; overflow: hidden; border: 4px solid var(--bg); flex: none; margin-top: -48px; } /* taste-skill-ignore: logo frame on cover */
.sp-logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 32px; }
.sp-side { position: sticky; top: 90px; align-self: start; }
.sp-section h2 { font-size: 1.25rem; margin: 40px 0 10px; }
.sp-section p { white-space: pre-line; max-width: 68ch; }
.locked { padding: 28px; background: var(--surface); border-radius: var(--radius); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.person { display: flex; gap: 12px; align-items: flex-start; }
.person img, .person .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); }

/* messages */
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; max-width: 760px; }
.bubble { padding: 12px 16px; border-radius: 10px; background: var(--paper); max-width: 80%; white-space: pre-line; }
.bubble.me { background: #dcebd5; margin-left: auto; }
.bubble small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 14px 16px; background: var(--paper); border-radius: var(--radius); }
.list-plain li + li { margin-top: 6px; }
.list-plain li.unread { background: #dcebd5; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-body { grid-template-columns: 1fr; }
  .sp-side { position: static; order: -1; }
  .sp-body { display: flex; flex-direction: column; }
  .filters { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cards, .grid2, .grid3, .f-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .sp-cover { aspect-ratio: 16 / 9; }
  .t { font-size: 14px; display: block; overflow-x: auto; }
  .toplinks { gap: 14px; font-size: 15px; }
  .toplinks button.link { font-size: 15px; }
  .mark { font-size: 1rem; }
}

/* sponsors */
.sponsor-row { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--surface-2); font-size: 15px; } /* taste-skill-ignore: separates the sponsor row from the footer links */
.sponsor-row .l { color: var(--muted); }
.sponsor-row .logos { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.sponsor-row img { height: 28px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.sponsor-row a:hover img { filter: none; opacity: 1; }
.partners { margin-top: 24px; }
.band-partners { background: var(--paper); padding-block: 32px; margin-top: 0; }
.partner-logos { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 160px; min-height: 72px; padding: 8px 12px; text-decoration: none; transition: transform .18s var(--ease), opacity .18s; }
.partner:hover { transform: translateY(-2px); opacity: .85; }
.partner img { max-height: 44px; max-width: 200px; width: auto; object-fit: contain; }
.partner small { font-size: 13px; color: var(--muted); text-align: center; max-width: 24ch; }
.partner.founding img { max-height: 52px; max-width: 240px; }
.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.pkg { background: var(--paper); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.pkg b { font-size: 1.125rem; }
.pkg .pkg-price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.pkg ul { margin: 8px 0 16px; padding-left: 18px; font-size: 15px; }
.pkg .btn { margin-top: auto; }
.founding-box { margin-top: 12px; background: var(--field); color: var(--field-ink); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.founding-box .pkg-price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: .02em; } /* real code: voucher codes people copy */
@media (max-width: 1100px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pkg-grid { grid-template-columns: 1fr; } .founding-box { grid-template-columns: 1fr; } .partner { min-width: 0; flex: 1 1 140px; } .partner img, .partner.founding img { max-width: 100%; } }

/* browse: heading beside a scrolling row of partner cards */
.browse-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; align-items: end; }
.marquee-view { overflow: hidden; margin-top: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); } /* taste-skill-ignore: edge fade on a moving row */
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track .partner { flex: none; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
.browse-head > * { min-width: 0; }
@media (max-width: 1100px) { .browse-head { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* phone menu: links fold into a hamburger; without JavaScript they stay inline */
html, body { overflow-x: clip; } /* nothing may widen the page past the screen; clip (not hidden) keeps the header sticky */
.topbar { position: relative; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.menu-btn .dot { position: absolute; top: 8px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (max-width: 760px) {
  .js .menu-btn { display: flex; }
  .js .toplinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--edge) 16px; background: var(--bg); box-shadow: 0 12px 24px rgba(42, 29, 23, .12); font-size: 1.0625rem; } /* taste-skill-ignore: open menu floats over content */
  .js .menu-open .toplinks { display: flex; }
  .js .toplinks a, .js .toplinks button.link { padding: 12px 0; font-size: 1.0625rem; text-align: left; }
  .js .toplinks form { display: block; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* sign-up: the role choice as three big options */
.f .choices:has(input[name=role]) { flex-direction: column; gap: 8px; }
.f .choices label:has(input[name=role]) { padding: 14px 16px; border-radius: var(--radius); background: var(--paper); font-weight: 500; cursor: pointer; }
.f .choices label:has(input[name=role]:checked) { background: #dcebd5; outline: 2px solid var(--accent); outline-offset: -2px; }

/* hero: rotating featured deals */
.hero-deals { grid-column: 2; grid-row: 1 / 3; position: relative; margin-left: 64px; min-height: 460px; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.hd-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1s var(--ease); text-decoration: none; color: var(--ink); }
.hd-slide.on { opacity: 1; pointer-events: auto; }
.hd-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.hd-slide.on img { transform: scale(1.04); }
.hd-panel { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 460px; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--bg); border-radius: var(--radius); }
.hd-name { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.hd-tag { font-size: 1rem; }
.hd-raise { display: flex; justify-content: space-between; font-size: 15px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hd-panel .bar { background: var(--surface-2); }
.hd-panel .btn { align-self: flex-start; margin-top: 8px; }
.hd-slide:hover .btn { background: #3a5f31; }
.hd-dots { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(42, 29, 23, .45); }
.hd-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.hd-dots button[aria-current] { background: #fff; width: 22px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { .hd-slide, .hd-slide img { transition: none; } .hd-slide.on img { transform: none; } }
@media (max-width: 1100px) { .hero-deals { margin: 0; min-height: 0; aspect-ratio: 4 / 5; max-height: 640px; } }
@media (max-width: 760px) { .hero-deals { aspect-ratio: 3 / 4; } .hd-panel { left: 12px; right: 12px; bottom: 12px; padding: 16px; } .hd-name { font-size: 1.375rem; } }
@media (max-width: 760px) { .hero-deals, .hero-photo { display: none; } } /* phones: headline first; the deals follow in Featured deals */
@media (min-width: 1101px) { .hd-panel { left: auto; right: 24px; } } /* large screens: the deal card sits bottom-right of the hero */

/* beta notice */
.beta-toast { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 8px; background: var(--ink); color: var(--field-ink); box-shadow: 0 10px 30px rgba(42, 29, 23, .25); font-size: 15px; line-height: 1.45; animation: toast-in .4s var(--ease); } /* taste-skill-ignore: a floating notice */
.beta-toast b { color: #fff; }
.beta-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.beta-close:hover { background: rgba(255, 255, 255, .25); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: reduce) { .beta-toast { animation: none; } }

/* owner stats */
.owner-filter { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin: 20px 0 8px; }
.owner-filter .field { margin: 0; min-width: 160px; }
.owner-spark { height: 120px; }

/* current image in upload fields */
.img-current { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.img-current img { max-height: 96px; max-width: 220px; width: auto; object-fit: contain; border-radius: var(--radius); background: var(--ui-bg); }
.f .img-remove { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: 15px; margin: 0; }
.file-current { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ico-mail { width: 20px; height: 20px; flex: none; }

/* ---------- app shell: investor dashboard mock-up (/dashboard/?v=2) ---------- */
.app { --app-bg: #efede8; --card: #ffffff; --line: #ebe7df; display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--app-bg); }
.app-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 22px 16px; background: var(--card); border-right: 1px solid var(--line); } /* taste-skill-ignore: app sidebar edge */
.app-logo { padding: 4px 10px; font-size: 1.0625rem; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 500; color: #5e4f46; }
.app-nav a:hover { background: #f4f2ee; color: var(--ink); }
.app-nav a[aria-current] { background: #e7efe3; color: #2c5222; box-shadow: inset 3px 0 0 var(--accent); } /* taste-skill-ignore: active nav marker */
.app-nav svg, .app-search svg, .icon-btn svg, .tile header svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-nav .count { margin-left: auto; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: #e7efe3; color: #2c5222; font-size: 12px; font-weight: 600; text-align: center; }
.app-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; } /* taste-skill-ignore: nav group separator */
.app-body { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; } /* taste-skill-ignore: app top bar edge */
.app-search { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); padding: 9px 14px; border-radius: 10px; background: #f4f2ee; color: var(--muted); }
.app-search input { border: 0; background: none; font: inherit; font-size: 15px; width: 100%; color: var(--ink); outline: none; }
.app-tools { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f4f2ee; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #e3cdb8; color: #5a3416; font-size: 13px; font-weight: 600; text-decoration: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-main { padding: 28px 32px 48px; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-head h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.app-head p { font-size: 14.5px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; background: var(--card); font-size: 14px; font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.tile { background: var(--card); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.tile header { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; }
.tile header svg { color: var(--accent); }
.tile b { font-size: 2.125rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile small { font-size: 13px; color: var(--muted); }
.trend { align-self: flex-start; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: #f1efea; color: var(--muted); }
.trend.up { background: #e3f0dd; color: #2c5222; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.app-grid .card { background: var(--card); border-radius: 16px; padding: 20px 22px; min-width: 0; }
.app-grid .card.big, .app-grid .card.wide { grid-column: span 2; }
.app-grid .card.full { grid-column: 1 / -1; }
.app-grid .card header { display: flex; justify-content: space-between; align-items: baseline; }
.app-grid .card h2 { font-size: 1.0625rem; font-weight: 600; margin: 0; }
.app-grid .card header a { font-size: 14px; font-weight: 500; }
.big-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: end; }
.big-stat b { display: block; margin-top: 40px; font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.big-stat small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.line-chart svg { width: 100%; height: 170px; display: block; }
.line-chart .grid { stroke: var(--line); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.segments { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f7f6f2; }
.seg-row { display: flex; gap: 10px; margin-top: 8px; }
.seg { min-width: 70px; padding-bottom: 8px; border-bottom: 4px solid var(--c, var(--accent)); } /* taste-skill-ignore: proportion bar under each region */
.seg b { font-size: 1.25rem; font-weight: 700; }
.seg small { display: block; font-size: 12.5px; color: var(--muted); }
.seg1 { --c: #456f3a; } .seg2 { --c: #d9a53b; } .seg3 { --c: #1f3253; } .seg4 { --c: #b8641f; } .seg5 { --c: #8c8178; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 210px; margin-top: 16px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.bar-col i { width: 100%; max-width: 34px; min-height: 6px; border-radius: 10px; background: #ebe7df; }
.bar-col.top i { background: var(--accent); }
.bar-col em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bar-col.top em { color: var(--ink); }
.bar-col small { width: 100%; font-size: 11.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-grid .dt { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.app-grid .dt th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); padding: 8px 8px; }
.app-grid .dt td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; } /* taste-skill-ignore: table rows */
.app-grid .dt .r, .app-grid .dt .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dt .who { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.dt .who b { display: block; font-weight: 600; }
.dt .who small { display: block; font-size: 13px; color: var(--muted); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt .thumb { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; background: #f1efea; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.dt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 3px; background: #ebe7df; overflow: hidden; margin-right: 8px; }
.prog i { display: block; height: 100%; background: var(--accent); }
.gauge { --p: 0; width: 180px; aspect-ratio: 1; margin: 16px auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--card) 76%, transparent 77%), conic-gradient(var(--accent) calc(var(--p) * 1%), #ebe7df 0); } /* taste-skill-ignore: gauge ring */
.gauge div { text-align: center; }
.gauge b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.gauge small { font-size: 12.5px; color: var(--muted); }
.mini { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14.5px; }
.mini li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); } /* taste-skill-ignore: list rows */
.app-grid .feed { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.app-grid .feed a { text-decoration: none; }
.app-grid .feed a:hover { text-decoration: underline; }
.app-grid .feed small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 1200px) { .app-grid { grid-template-columns: 1fr 1fr; } .app-grid .card.big, .app-grid .card.wide { grid-column: span 2; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .app-nav { flex-direction: row; flex-wrap: wrap; } .app-nav hr { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .app-main, .app-top { padding-inline: 16px; }
  .app-grid { grid-template-columns: 1fr; } .app-grid .card.big, .app-grid .card.wide { grid-column: auto; }
  .big-top { grid-template-columns: 1fr; } .big-stat b { margin-top: 8px; }
  .dt th:nth-child(2), .dt td:nth-child(2), .dt th:nth-child(5), .dt td:nth-child(5) { display: none; }
}
.side-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-tools .signout { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .seg-row { flex-wrap: wrap; } .seg { flex: 1 1 40% !important; }
  .dt th:nth-child(3), .dt td:nth-child(3) { display: none; }
  .dt .who small { max-width: 180px; }
}
.app-flash { padding: 16px 32px 0; }
.app-flash p { padding: 12px 16px; border-radius: 10px; background: var(--card, #fff); }
.app-flash .success { background: #dcebd5; } .app-flash .error { background: #f2dcd6; }
.app-main > h1:first-child, .app-main h1.page-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.news-item { background: var(--card, #fff); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.news-item h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin: 0; }
.news-item h2 a { text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; }
.news-item p { font-size: 15px; color: var(--muted); }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.app-main .card { background: var(--card, #fff); }
@media (max-width: 900px) { .news-list { grid-template-columns: 1fr; } }
.trend.down { background: #f6e1db; color: #8a2f1c; }
.form-card { margin-top: 20px; padding: 24px 26px; }
.app-main > h1, .app-main > h2 { margin-top: 0; }
.app-main .panel-box { background: var(--card, #fff); border-radius: 16px; }
.app-main .panel-box.tone { background: #f7f6f2; }
.app-main .t td { background: var(--card, #fff); }
.app-main .list-plain li { background: var(--card, #fff); border-radius: 12px; }
.tile b .of { font-size: .5em; color: var(--muted, #6b6b6b); font-weight: 600; }
/* browse and startup profiles inside the app shell */
.app-main .wrap { padding-inline: 0; }
.app-main .page { padding-block: 0 24px; min-height: 0; }
.app-main .sp-cover { border-radius: 16px; }
.update-list { list-style: none; margin: 0; padding: 0; }
.update-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.update-list li:first-child { padding-top: 4px; }
.update-list li:last-child { border-bottom: 0; }
.update-list header { display: flex; justify-content: space-between; gap: 12px; }
.update-list h3 { font-size: 1rem; margin: 6px 0 4px; }
.update-list p { margin: 0; white-space: normal; }
/* data rooms on phones: keep status and the open button, drop the dates */
@media (max-width: 900px) {
  .dt.rooms th:nth-child(2), .dt.rooms td:nth-child(2), .dt.rooms th:nth-child(5), .dt.rooms td:nth-child(5) { display: table-cell; }
  .dt.rooms th:nth-child(3), .dt.rooms td:nth-child(3), .dt.rooms th:nth-child(4), .dt.rooms td:nth-child(4) { display: none; }
}
.app-grid .card header .row { gap: 16px; }
.vstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.vstats div { background: #f7f6f2; border-radius: 12px; padding: 12px 14px; }
.vstats b { display: block; font-size: 1.375rem; }
.vstats span { font-size: 13px; color: var(--muted); }
.dt.vouchers .code { font-family: ui-monospace, monospace; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 640px) { .vstats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .dt.vouchers th:nth-child(2), .dt.vouchers td:nth-child(2), .dt.vouchers th:nth-child(5), .dt.vouchers td:nth-child(5) { display: table-cell; } }
.vcount { font-weight: 700; color: #2c5222; }
.vcount.none { color: #9b2416; }
