/* Matmon proposal microsite. Brand tokens lifted from the Matmon style guide. */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --text-3xl: clamp(2.25rem, 1.1rem + 3.6vw, 4rem);
  --text-hero: clamp(2.5rem, 0.8rem + 5.4vw, 5.5rem);

  --color-bg: #f7f6f3;
  --color-surface: #fdfcfa;
  --color-surface-2: #f2f0ec;
  --color-surface-offset: #eceae5;
  --color-ink-block: #0b1c28;
  --color-divider: #dedbd4;
  --color-border: #cdc9c1;

  --color-text: #131f28;
  --color-text-muted: #5c6670;
  --color-text-faint: #9aa1a8;
  --color-text-inverse: #f7f6f3;

  --color-primary: #0d5270;
  --color-primary-hover: #0a4058;
  --color-cyan: #2ca6de;
  --color-cyan-deep: #1c85b8;
  --color-grey: #3b4951;
  --color-gold: #b98204;
  --color-gold-bright: #f6b819;

  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --narrow: 720px;
  --default: 1040px;
  --wide: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

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

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-cyan-deep); }

.wrap { width: 100%; max-width: calc(var(--default) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.wrap--wide { max-width: calc(var(--wide) + var(--gutter) * 2); }

section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cyan-deep);
  margin: 0 0 1.25rem;
}
.eyebrow--gold { color: var(--color-gold); }
.eyebrow--light { color: var(--color-cyan); }

.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-muted); font-weight: 400; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: #fff; padding: 0.75rem 1.25rem;
  font-size: var(--text-sm); font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 28, 40, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 62px;
}
.topbar__logo { width: clamp(108px, 14vw, 148px); flex: none; }
.topbar__logo svg, .topbar__logo img { width: 100%; height: auto; }
.topbar__nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.topbar__nav a {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 200ms var(--ease);
}
.topbar__nav a:hover { color: #fff; }
@media (max-width: 760px) { .topbar__nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-ink-block);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8.5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 88% 8%, rgba(246,184,25,0.17), transparent 62%),
    radial-gradient(85% 100% at 6% 96%, rgba(44,166,222,0.19), transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero__meta {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-cyan); margin: 0 0 1.5rem;
}
.hero h1 {
  font-size: var(--text-hero);
  max-width: 17em;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold-bright);
}
.hero__sub {
  font-size: var(--text-lg); line-height: 1.5; color: rgba(247,246,243,0.82);
  max-width: 34em; margin-bottom: 2.75rem; font-weight: 300;
}
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0 clamp(1.75rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.75rem;
}
.hero__fact { padding-block: 0.5rem; }
.hero__fact dt {
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247,246,243,0.5); font-weight: 600; margin-bottom: 0.35rem;
}
.hero__fact dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-base); color: #fff;
}

/* ---------- Opening note ---------- */
.note { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
.note__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .note__grid { grid-template-columns: 1fr; } }
.note h2 { font-size: var(--text-2xl); }
.note h2 span { display: block; color: var(--color-gold); font-size: 0.5em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }

/* ---------- Numbers ---------- */
.numbers { background: var(--color-surface-2); }
.numbers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); }
.stat { background: var(--color-surface); padding: clamp(1.5rem, 3vw, 2.25rem); }
.stat__value {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: var(--text-3xl); line-height: 1; color: var(--color-primary);
  margin-bottom: 0.6rem;
}
.stat--goal .stat__value { color: var(--color-gold); }
.stat__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text); margin-bottom: 0.5rem; }
.stat__note { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: 1.5; }

/* ---------- Findings ---------- */
.findings { background: var(--color-bg); }
.findings__head { max-width: 46em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.findings__head h2 { font-size: var(--text-2xl); margin-bottom: 1.25rem; }

.finding {
  display: grid; grid-template-columns: 4.5rem minmax(0,1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--color-divider);
}
.finding:last-of-type { border-bottom: 1px solid var(--color-divider); }
@media (max-width: 620px) { .finding { grid-template-columns: 1fr; gap: 0.75rem; } }
.finding__num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl);
  color: var(--color-cyan); line-height: 1; letter-spacing: -0.02em;
}
.finding h3 { font-size: var(--text-lg); margin-bottom: 0.7rem; font-weight: 700; }
.finding p { font-size: var(--text-base); color: var(--color-text-muted); }
.finding blockquote {
  margin: 1rem 0 0; padding: 0.85rem 0 0.85rem 1.15rem;
  border-left: 3px solid var(--color-gold-bright);
  font-size: var(--text-sm); color: var(--color-text); font-style: italic;
  background: var(--color-surface-2);
}

/* Evidence */
.evidence { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.evidence__pair {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  gap: clamp(1.25rem, 3vw, 2rem); align-items: start;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 720px) { .evidence__pair { grid-template-columns: 1fr; } }
.shot { background: var(--color-surface); border: 1px solid var(--color-border); margin: 0; }
.shot img { width: 100%; height: auto; border-bottom: 1px solid var(--color-divider); }
.shot--phone img {
  max-height: 430px; object-fit: cover; object-position: top center;
}
.shot--feature { border-color: var(--color-primary); }
.shot--feature .shot__cap { background: var(--color-surface-2); }
.shot--feature .shot__cap strong { font-size: var(--text-base); }
.shot__cap { padding: 1rem 1.15rem; }
.shot__cap strong { display: block; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; margin-bottom: 0.3rem; }
.shot__cap span { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; display: block; }

/* ---------- Sprints ---------- */
.sprints { background: var(--color-ink-block); color: var(--color-text-inverse); }
.sprints__head { max-width: 46em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sprints__head h2 { font-size: var(--text-2xl); color: #fff; margin-bottom: 1.25rem; }
.sprints__head p { color: rgba(247,246,243,0.75); font-size: var(--text-lg); line-height: 1.5; font-weight: 300; }

.sprint {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.4fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
}
.sprint:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.15); }
@media (max-width: 860px) { .sprint { grid-template-columns: 1fr; gap: 1rem; } }
.sprint__when { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold-bright); margin-bottom: 0.75rem; }
.sprint h3 { font-size: var(--text-xl); color: #fff; margin-bottom: 0.6rem; }
.sprint__price { font-size: var(--text-sm); color: rgba(247,246,243,0.6); font-weight: 600; }
.sprint ul { margin: 0; padding: 0; list-style: none; }
.sprint li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem;
  color: rgba(247,246,243,0.82); font-size: var(--text-base); line-height: 1.55;
}
.sprint li:last-child { margin-bottom: 0; }
.sprint li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--color-cyan); border-radius: 50%;
}
.sprint li strong { color: #fff; font-weight: 700; }

.lighting {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-left: 3px solid var(--color-gold-bright);
  padding: 1.25rem 0 1.25rem 1.5rem;
  font-size: var(--text-lg); line-height: 1.5; font-weight: 300;
  color: rgba(247,246,243,0.9); max-width: 40em;
}

/* ---------- Investment ---------- */
.money { background: var(--color-surface); }
.money__head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3rem); }
.money__head h2 { font-size: var(--text-2xl); margin-bottom: 1.25rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-hint { display: none; font-size: var(--text-xs); color: var(--color-text-muted); margin: 0.75rem 0 0; }
@media (max-width: 640px) { .table-hint { display: block; } }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 560px; }
caption { text-align: left; font-size: var(--text-xs); color: var(--color-text-muted); padding-bottom: 0.85rem; }
th, td { padding: 0.9rem 1rem; text-align: right; border-bottom: 1px solid var(--color-divider); }
th:first-child, td:first-child { text-align: left; }
thead th {
  font-size: var(--text-xs); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 700; border-bottom: 2px solid var(--color-primary);
  white-space: nowrap;
}
tbody td { font-variant-numeric: tabular-nums; }
tbody td:first-child { font-weight: 600; }
.credit { color: var(--color-gold); font-weight: 700; }
tr.subtotal td { background: var(--color-surface-2); font-weight: 700; }
tr.total td {
  background: var(--color-primary); color: #fff; font-weight: 800;
  font-size: var(--text-base); border-bottom: none;
}
tr.total td .credit { color: var(--color-gold-bright); }

.money__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2.25rem, 4vw, 3rem); }
.card { border: 1px solid var(--color-border); background: var(--color-bg); padding: clamp(1.4rem, 3vw, 2rem); }
.card--gold { border-color: var(--color-gold); background: #fdf8ec; }
.card h3 { font-size: var(--text-lg); margin-bottom: 0.8rem; }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.card__figure { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1; color: var(--color-primary); letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.card--gold .card__figure { color: var(--color-gold); }

/* ---------- Timeline ---------- */
.timeline { background: var(--color-surface-2); }
.timeline h2 { font-size: var(--text-2xl); margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 30em; }
.tl { position: relative; margin: 0; padding: 0; list-style: none; }
.tl::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--color-border); }
.tl li { position: relative; padding-left: 2.5rem; padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-surface-2); border: 3px solid var(--color-cyan);
}
.tl li.is-key::before { border-color: var(--color-gold-bright); background: var(--color-gold-bright); }
.tl__date { font-family: var(--font-display); font-weight: 800; font-size: var(--text-base); margin-bottom: 0.3rem; }
.tl__what { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

.honest {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.honest h3 { font-size: var(--text-lg); margin-bottom: 0.85rem; }
.honest p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Asks ---------- */
.asks { background: var(--color-primary); color: #fff; }
.asks h2 { font-size: var(--text-2xl); color: #fff; margin-bottom: 1.25rem; }
.asks__lede { color: rgba(255,255,255,0.85); font-size: var(--text-lg); font-weight: 300; line-height: 1.5; max-width: 34em; margin-bottom: clamp(2rem, 4vw, 3rem); }
.asks__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.ask { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18); padding: clamp(1.4rem, 3vw, 2rem); }
.ask__n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--color-gold-bright); line-height: 1; margin-bottom: 0.9rem; }
.ask h3 { font-size: var(--text-lg); color: #fff; margin-bottom: 0.7rem; }
.ask p { font-size: var(--text-sm); color: rgba(255,255,255,0.82); }

.dl { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem 1.75rem; align-items: center; }
@media (max-width: 720px) { .dl { grid-template-columns: 1fr; } }
.dl__btn {
  display: inline-flex; align-items: center; justify-self: start; gap: 0.65rem;
  background: var(--color-gold-bright); color: var(--color-ink-block);
  font-size: var(--text-sm); font-weight: 700; line-height: 1;
  padding: 1rem 1.5rem; text-decoration: none; white-space: nowrap;
  transition: background 220ms var(--ease);
}
.dl__btn:hover, .dl__btn:focus-visible { background: #ffc93d; }
.dl__btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.dl__note { font-size: var(--text-sm); color: rgba(255,255,255,0.72); margin: 0; max-width: 34em; }
.dl__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.foot { background: var(--color-ink-block); color: rgba(247,246,243,0.72); padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot__grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr; align-items: start; } }
.foot__logo { width: clamp(150px, 22vw, 220px); margin-bottom: 1.75rem; }
.foot p { font-size: var(--text-sm); line-height: 1.7; }
.foot a { color: var(--color-cyan); }
.foot a:hover { color: #fff; }
.foot__who { font-size: var(--text-xs); color: rgba(247,246,243,0.45); margin-top: 1.5rem; line-height: 1.7; }
.foot__contact { font-size: var(--text-sm); }
.foot__contact strong { display: block; color: #fff; font-family: var(--font-display); margin-bottom: 0.4rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
  @page { margin: 12mm 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; line-height: 1.5; }
  .skip, .table-hint, .topbar nav, .dl { display: none !important; }
  .topbar { position: static !important; border-bottom: 3px solid var(--color-gold); }
  .topbar .wrap { justify-content: flex-start; padding-block: 0.9rem; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  section { padding-block: 1.6rem; }
  :root { --gutter: 1.5rem; }
  .foot { padding-block: 2.5rem; break-before: page; break-inside: avoid; }
  .foot__grid { align-items: start; gap: 2rem; break-inside: avoid; }
  .foot__logo { width: 150px; height: auto; margin-bottom: 1rem; }
  .foot__who { margin-top: 0.9rem; }
  .hero { padding-block: 2rem 1.75rem; }
  .hero h1 { font-size: 30pt; }
  .hero__sub { font-size: 12pt; margin-bottom: 1.25rem; }
  .money, .sprints { break-before: page; }
  .finding, .sprint, .shot, .card, .ask, .stat, .honest, .tl li, table { break-inside: avoid; }
  .shot--feature img { max-height: 110mm; object-fit: contain; }
  .shot--phone img { max-height: 90mm; }
  a { text-decoration: none; }
}
