/* Gooseberry — getgooseberry.app. Colors from the app icon: deep bush green, berry green, ripening gold. */

:root {
  --bg: #f8f6ee;
  --surface: #ffffff;
  --surface-2: #f0eee2;
  --ink: #13241c;
  --ink-2: #46574e;
  --ink-3: #66756d;
  --line: #e0ded0;
  --brand: #0d4f3c;
  --brand-2: #136a50;
  --link: #0e6149;
  --berry: #9ccc4a;
  --berry-2: #b5dc6c;
  --gold: #d9c04a;
  --roc: #0f5a44;
  --roc-est: #5b9a80;
  --inc: #9ccc4a;
  --unk: #d3d2c4;
  --up: #1b7a48;
  --down: #b0402c;
  --hero-1: #1c6b50;
  --hero-2: #0a4434;
  --hero-ink: #fbf8ea;
  --hero-ink-2: #cfe3d4;
  --shadow: 0 1px 2px rgb(19 36 28 / 6%), 0 8px 24px rgb(19 36 28 / 8%);
  --radius: 16px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1511;
    --surface: #111e18;
    --surface-2: #15251e;
    --ink: #e8efe9;
    --ink-2: #aebdb4;
    --ink-3: #8a9a91;
    --line: #24382e;
    --brand: #9ccc4a;
    --brand-2: #b5dc6c;
    --link: #a9d86a;
    --roc: #3f9d78;
    --roc-est: #2a6b53;
    --inc: #a9d85e;
    --unk: #34443c;
    --up: #6fcf8f;
    --down: #f08a73;
    --hero-1: #134d3b;
    --hero-2: #07261d;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 900px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.fine { font-size: 0.82rem; color: var(--ink-3); line-height: 1.5; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 44rem; }
.lede.small { font-size: 1rem; }
.measure { max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); margin-bottom: 0.6em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: 12px 22px;
  background: var(--brand); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
@media (prefers-color-scheme: dark) { .btn { color: #0b1f17; } }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 16px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.25rem var(--serif); }
.brand img { border-radius: 22%; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--berry); }
@media (max-width: 760px) {
  .bar { gap: 10px; padding-top: 10px; }
  .nav-cta { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -20px; padding: 0 20px 6px; overflow-x: auto; gap: 16px; scrollbar-width: none; }
  .nav a { white-space: nowrap; font-size: 0.9rem; }
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at 70% 20%, var(--hero-1), var(--hero-2) 70%);
  color: var(--hero-ink);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { color: var(--hero-ink); font-size: clamp(2.5rem, 6vw, 4.2rem); max-width: 12ch; }
.hero .eyebrow { color: var(--berry-2); }
.hero .lede { color: var(--hero-ink-2); }
.hero .signup-note, .hero .signup-note a { color: var(--hero-ink-2); }
.hero .btn { background: var(--berry); color: #10261c; }
.hero .btn:hover { background: var(--berry-2); }
.hero-art { align-self: end; display: flex; justify-content: center; }
.hero-art .phone { width: min(330px, 80vw); margin-bottom: -120px; transform: rotate(2deg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; }
  .hero-copy { padding-bottom: 24px; }
  .hero-art .phone { width: min(290px, 78vw); margin-bottom: -180px; }
  .hero { padding-bottom: 0; }
  .hero-art { height: 420px; overflow: hidden; align-items: flex-start; }
}

/* Phone frame around app screenshots */
.phone { margin: 0; border-radius: 17% / 7.8%; padding: var(--bezel, 11px); background: #0c100e; box-shadow: 0 30px 60px rgb(0 0 0 / 28%), inset 0 0 0 2px #2a2f2c; }
.phone img { display: block; width: 100%; height: auto; border-radius: 14.5% / 6.6%; }

/* Signup */
.signup { max-width: 520px; margin-top: 18px; }
.signup-row { display: flex; gap: 8px; }
.signup input[type="email"] {
  flex: 1; min-width: 0; font: 1rem var(--sans); padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.hero .signup input[type="email"] { border-color: transparent; background: #fffdf6; color: #13241c; }
.signup input[type="email"]:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px color-mix(in srgb, var(--berry) 35%, transparent); }
.signup-note { font-size: 0.8rem; color: var(--ink-3); margin: 8px 0 0 16px; }
.signup-note.error { color: var(--down); font-weight: 600; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.ts-slot:not(:empty) { margin-top: 10px; }
.center .signup { margin-left: auto; margin-right: auto; }
@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
  .signup .btn { width: 100%; }
}

/* Sections */
section { scroll-margin-top: 80px; }
.band { background: var(--surface-2); padding: 72px 0; }
.band.source { padding: 72px 0; }
#roc.band { padding-top: 80px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } #roc.band { padding-top: 56px; } }
.callout { border-left: 4px solid var(--berry); padding: 4px 0 4px 16px; font-size: 1.05rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-title { font-family: var(--sans); font-size: 0.95rem; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; }
.features { padding: 88px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 56px; }
.feature-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-grid h3 { font-size: 1.15rem; }
.feature-grid p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.showcase { display: flex; justify-content: center; gap: 36px; }
.showcase .phone { width: 250px; flex: none; --bezel: 8px; }
@media (max-width: 860px) {
  .showcase { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 30px; margin: 0 -20px; gap: 20px; }
  .showcase .phone { width: 220px; scroll-snap-align: center; }
}
.ticker-cloud { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticker-cloud a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.ticker-cloud a:hover { border-color: var(--berry); }
.privacy-band { padding: 64px 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.three p { color: var(--ink-2); }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; gap: 8px; } }
.signup-band { background: var(--surface-2); padding: 72px 0 84px; border-top: 1px solid var(--line); }
.signup-icon { border-radius: 22%; box-shadow: var(--shadow); margin-bottom: 12px; }

/* Page heads */
.page-head { padding: 48px 0 28px; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }
.crumbs { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 8px; }
.fund-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.fund-title span { font-size: 0.45em; font-weight: 500; color: var(--ink-2); font-family: var(--sans); letter-spacing: 0; }
.fund-body > section, .fund-body > .card, .fund-body > .two-col { margin-bottom: 44px; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.harvest-head .tiles { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tile-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-3); margin: 0 0 6px; }
.tile-value { font-size: 1.65rem; font-weight: 650; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tile-value a { color: inherit; text-decoration: none; }
.tile-sub { font-size: 0.85rem; color: var(--ink-3); margin: 4px 0 0; }
@media (max-width: 760px) { .tiles, .harvest-head .tiles { grid-template-columns: 1fr 1fr; } .tile-value { font-size: 1.35rem; } }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 700; border-bottom-width: 2px; }
.table thead th.num { text-align: right; }
.table tbody th { font-weight: 500; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.compact-table th, .compact-table td { padding: 9px 6px; }
.ticker { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
a.ticker:hover { color: var(--link); text-decoration: underline; }
.fund-name, .sub { display: block; font-size: 0.8rem; color: var(--ink-3); font-weight: 400; }
.sub-inline { font-size: 0.8rem; color: var(--ink-3); }
.issuer-group { margin: 12px 0 40px; }
.issuer-group h2 { font-size: 1.3rem; }
.roc-col { min-width: 150px; }
.roc-cell { display: inline-flex; align-items: center; gap: 10px; }
.roc-num { font-variant-numeric: tabular-nums; min-width: 3.3em; text-align: right; font-weight: 600; }
.est-mark { color: var(--ink-3); font-weight: 400; }
svg.split { width: 96px; height: 10px; border-radius: 3px; display: block; overflow: hidden; }
@media (max-width: 600px) { .hide-sm { display: none; } svg.split { width: 64px; } .roc-col { min-width: 0; } }
.chg { font-weight: 600; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--ink-3); }

/* Charts */
.chart-wrap { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px 8px; }
svg.chart { width: 100%; height: auto; display: block; font-family: var(--sans); }
svg.chart-narrow { display: none; }
@media (max-width: 600px) { svg.chart-wide { display: none; } svg.chart-narrow { display: block; } }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .axis.year { font-weight: 600; }
.chart g:hover rect { opacity: 0.8; }
.bar-roc { fill: var(--roc); }
.bar-roc.est { fill: var(--roc-est); }
.bar-inc { fill: var(--inc); }
.bar-unk { fill: var(--unk); }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.85rem; color: var(--ink-2); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.sw-roc { background: var(--roc); }
.sw-roc-est { background: var(--roc-est); }
.sw-inc { background: var(--inc); }
.sw-unk { background: var(--unk); }

/* Chips */
.chip { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.02em; vertical-align: 1px; white-space: nowrap; }
.chip-paid { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.chip-declared { background: color-mix(in srgb, var(--berry) 30%, transparent); color: var(--ink); }
.chip-announced { background: color-mix(in srgb, var(--gold) 28%, transparent); color: var(--ink); }
.chip-projected { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink-2); }

/* Fund page */
.basis { max-width: 820px; }
.basis h2 { font-size: 1.4rem; }
.facts-list { margin: 0; }
.facts-list div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts-list dt { color: var(--ink-3); }
.facts-list dd { margin: 0; }
.doc-list { padding-left: 1.1em; margin: 0 0 18px; }
.doc-list li { margin: 4px 0; }
.facts h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 650; margin-top: 16px; }
details.more summary { cursor: pointer; color: var(--link); margin: 14px 0; font-weight: 500; }
.ask { margin: 48px 0 32px; max-width: 760px; }
.ask h2 { font-size: 1.4rem; }
.ask p { color: var(--ink-2); }

/* Calendar */
.cal-day { margin: 0 0 28px; }
.cal-day h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.cal-wd { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.events { list-style: none; padding: 0; margin: 0; }
.event { display: grid; grid-template-columns: 5.5rem 4rem 1fr auto 7rem; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.event-name { color: var(--ink-2); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-note { color: var(--ink-3); font-size: 0.82rem; text-align: right; }
.kind { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 6px; text-align: center; }
.kind-ex { background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--ink); }
.kind-pay { background: color-mix(in srgb, var(--berry) 30%, transparent); color: var(--ink); }
@media (max-width: 640px) {
  .event { grid-template-columns: 5rem 3.6rem 1fr; row-gap: 2px; }
  .event-name { grid-column: 2 / 4; grid-row: 2; }
  .event-note { display: none; }
}

/* Harvest */
.pending { color: var(--ink-2); }
.pager { display: flex; justify-content: space-between; margin: 24px 0; font-weight: 600; }
.archive { margin: 40px 0 64px; }
.archive h2 { font-size: 1.2rem; }
.month-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* FAQ + prose */
.faqs { margin: 8px 0 32px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--ink-3); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq-a { color: var(--ink-2); padding-bottom: 8px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose li { margin: 0 0 0.8em; }
.prose { padding-bottom: 56px; }

/* Survey */
.survey { display: grid; gap: 10px; margin: 8px 0 32px; }
.survey h2 { font-size: 1.3rem; margin-bottom: 4px; }
.survey label { font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.survey .check { font-weight: 500; display: flex; gap: 10px; align-items: center; }
.survey input[type="text"], .survey textarea {
  font: 1rem var(--sans); padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.survey .btn { justify-self: start; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--hero-2); color: var(--hero-ink-2); padding: 48px 0 40px; }
.site-footer .brand { color: var(--hero-ink); }
.site-footer a { color: var(--hero-ink); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 20px; }
.foot-tag { margin: 0; font-family: var(--serif); font-style: italic; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.site-footer .fine { color: color-mix(in srgb, var(--hero-ink-2) 80%, transparent); max-width: 60rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
