@import url('../fonts/fonts.css');

/* ==========================================================================
   MyGrowth24 — design tokens
   Ground: deep pine ink for the bookends (hero, CTA, footer),
   warm paper for everything you read. Amber is the marker, used sparingly.
   ========================================================================== */
:root {
  --pine:        #0E211C;
  --pine-soft:   #17332B;
  --pine-line:   #26453B;
  --paper:       #FAF8F3;
  --paper-sunk:  #F2EEE4;
  --card:        #FFFFFF;

  --ink:         #14211D;
  --ink-mute:    #5B6B64;
  --ink-faint:   #8C9992;
  --on-pine:     #EFEDE5;
  --on-pine-mute:#A9BCB3;

  --amber:       #E8A317;
  --amber-deep:  #B97E06;
  --moss:        #3E8E63;

  --line:        #E2DCCE;
  --line-strong: #CFC7B4;

  --wrap:        1180px;
  --gutter:      clamp(20px, 5vw, 56px);
  --radius:      14px;
  --radius-lg:   22px;

  --step:        clamp(72px, 9vw, 128px);

  --font-display:'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-text:   'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.85rem); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
h4 { font-size: 0.95rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

::selection { background: var(--amber); color: var(--pine); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: var(--on-pine);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--step); }
.section--sunk { background: var(--paper-sunk); }
.section--pine { background: var(--pine); color: var(--on-pine); }
.section--pine h2, .section--pine h3 { color: var(--on-pine); }
.section--pine .lede p { color: var(--on-pine-mute); }

/* Section heads: a short rule replaces the usual tracked-out label. */
.lede {
  max-width: 34ch;
  margin-bottom: 2.6rem;
}
.lede__rule {
  width: 46px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin-bottom: 1.4rem;
}
.lede p {
  margin-top: 1rem;
  color: var(--ink-mute);
  max-width: 52ch;
  font-size: 1.05rem;
}
.lede--wide { max-width: 46ch; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pine);
  color: var(--on-pine);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--on-pine);
  white-space: nowrap;
}
.brand__num {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  text-decoration: none;
  color: var(--on-pine-mute);
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__list a:hover { color: var(--on-pine); }
.nav__list a[aria-current='page'] {
  color: var(--on-pine);
  border-bottom-color: var(--amber);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pine-line);
  border-radius: 10px;
  background: transparent;
  color: var(--on-pine);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--amber {
  background: var(--amber);
  color: var(--pine);
}
.btn--amber:hover { background: #F2B22C; }

.btn--outline-light {
  background: transparent;
  border-color: var(--pine-line);
  color: var(--on-pine);
}
.btn--outline-light:hover { border-color: var(--on-pine-mute); background: var(--pine-soft); }

.btn--ink {
  background: var(--pine);
  color: var(--on-pine);
}
.btn--ink:hover { background: var(--pine-soft); }

.btn--outline-ink {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--outline-ink:hover { background: var(--paper-sunk); }

.btn--wide { width: 100%; }

/* ==========================================================================
   Hero — copy on the left, the artefact on the right
   ========================================================================== */
.hero {
  background: var(--pine);
  color: var(--on-pine);
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 124px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* one soft light source behind the report */
  content: '';
  position: absolute;
  inset: -30% -20% auto 40%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(62, 142, 99, .22), transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero__lead {
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--on-pine-mute);
  max-width: 48ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__note {
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pine-line);
  color: var(--on-pine-mute);
  font-size: 0.95rem;
  max-width: 46ch;
}
.hero__note b { color: var(--on-pine); font-weight: 600; }

/* The sample report — a sheet of paper on the desk */
.report {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -28px rgba(6, 22, 17, .7), 0 2px 0 rgba(255,255,255,.4) inset;
  overflow: hidden;
  transform: rotate(-.5deg);
}
.report__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.report__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.report__month { color: var(--ink-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.report__rows { padding: 6px 24px 4px; }
.report__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 14px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.report__row:last-child { border-bottom: 0; }
.report__label { color: var(--ink-mute); font-size: 0.95rem; }
.report__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.report__delta {
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--moss);
  background: rgba(62, 142, 99, .1);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.report__delta--down { color: var(--amber-deep); background: rgba(232, 163, 23, .14); }

.report__chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 78px;
  padding: 18px 24px 0;
}
.report__bar {
  flex: 1;
  background: var(--pine);
  border-radius: 4px 4px 0 0;
  height: var(--h);
  opacity: .16;
}
.report__bar--live { opacity: 1; background: var(--moss); }

.report__foot {
  margin-top: 14px;
  padding: 13px 24px;
  background: var(--paper-sunk);
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Services — a ledger, not a card grid
   ========================================================================== */
.ledger { border-top: 1px solid var(--line-strong); }

.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ledger__row::before {
  content: '';
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  top: 0;
  bottom: 0;
  background: var(--card);
  opacity: 0;
  border-radius: 12px;
  transition: opacity .2s ease;
  z-index: -1;
}
.ledger__row:hover::before { opacity: .75; }

.ledger__name { align-self: start; }
.ledger__name h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.025em; }
.ledger__when {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.ledger__body p { color: var(--ink-mute); margin-bottom: 1rem; }
.ledger__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger__tags li {
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 11px;
}
.section--sunk .ledger__tags li { background: var(--card); }

/* ==========================================================================
   Engagement timeline — a real sequence, so it carries real time labels
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  counter-reset: none;
}
.timeline__step { padding-top: 26px; position: relative; }
.timeline__step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line-strong);
  border-radius: 2px;
}
.timeline__step--now::before { background: var(--amber); }
.timeline__when {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--amber-deep);
  font-variant-numeric: tabular-nums;
}
.timeline__step h3 { margin-block: 8px 8px; }
.timeline__step p { color: var(--ink-mute); font-size: 0.97rem; margin: 0; }

/* ==========================================================================
   Principles — prose pairs, no cards
   ========================================================================== */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px) clamp(32px, 6vw, 80px);
}
.principle { border-top: 1px solid var(--pine-line); padding-top: 20px; }
.principle h3 { color: var(--on-pine); margin-bottom: 8px; }
.principle p { color: var(--on-pine-mute); margin: 0; font-size: 0.99rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); max-width: 68ch; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__item p { padding-bottom: 22px; color: var(--ink-mute); margin: 0; }

/* ==========================================================================
   Closing call to action
   ========================================================================== */
.closer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.closer h2 { color: var(--on-pine); }
.closer p { color: var(--on-pine-mute); margin-top: 1rem; }
.closer__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--pine);
  color: var(--on-pine-mute);
  padding-block: clamp(48px, 6vw, 72px) 28px;
  border-top: 1px solid var(--pine-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 56px);
}
.footer__about { max-width: 38ch; font-size: 0.97rem; margin-top: 1rem; }
.footer h4 { color: var(--on-pine); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--on-pine-mute); text-decoration: none; font-size: 0.97rem; }
.footer a:hover { color: var(--on-pine); text-decoration: underline; text-underline-offset: 3px; }
.footer__base {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--pine-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 26px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Page header for inner pages
   ========================================================================== */
.pagehead {
  background: var(--pine);
  color: var(--on-pine);
  padding-block: clamp(48px, 7vw, 88px);
}
.pagehead h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.pagehead p { color: var(--on-pine-mute); max-width: 54ch; font-size: 1.1rem; margin: 0; }

/* ==========================================================================
   Prose (about, legal)
   ========================================================================== */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.6em; margin-bottom: .7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; margin-bottom: .5em; }
.prose p, .prose li { color: var(--ink-mute); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--amber-deep); text-underline-offset: 3px; }
.prose address { font-style: normal; color: var(--ink-mute); margin-bottom: 1.1em; }
.prose__stand { margin-top: 2.4rem; font-size: 0.9rem; color: var(--ink-faint); }

/* A value that still has to be agreed — visible on purpose, so nobody reads
   a contract term that was never set. */
.todo {
  background: rgba(232, 163, 23, .2);
  border-bottom: 1px dashed var(--amber-deep);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.factlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.factlist li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.factlist span:first-child { color: var(--ink-mute); }
.factlist span:last-child { font-weight: 600; text-align: right; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field input,
.field textarea {
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 15px;
  width: 100%;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--amber); outline-offset: 1px; }
.field__hint { color: var(--ink-faint); font-size: 0.85rem; }

.check { display: flex; align-items: flex-start; gap: 11px; font-size: 0.93rem; color: var(--ink-mute); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--amber-deep); flex: 0 0 auto; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formnote {
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 0.95rem;
  display: none;
}
.formnote--ok   { background: rgba(62, 142, 99, .12); color: #245c3f; display: block; }
.formnote--bad  { background: rgba(196, 66, 36, .1);  color: #97341c; display: block; }

.contactcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.contactcard h3 { margin-bottom: 14px; }
.contactcard h3 + p + h3 { margin-top: 26px; }
.contactcard p { color: var(--ink-mute); font-size: 0.97rem; }
.contactcard a { color: var(--amber-deep); text-underline-offset: 3px; }

/* ==========================================================================
   Cookie notice
   ========================================================================== */
.cookie {
  position: fixed;
  left: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 150;
  max-width: 400px;
  background: var(--pine);
  color: var(--on-pine);
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 24px 50px -20px rgba(6, 22, 17, .6);
  display: none;
}
.cookie.is-open { display: block; }
.cookie h4 { color: var(--on-pine); margin-bottom: 8px; }
.cookie p { color: var(--on-pine-mute); font-size: 0.9rem; margin-bottom: 16px; }
.cookie a { color: var(--amber); }
.cookie__row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 18px; font-size: 0.92rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .report { transform: none; max-width: 520px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brandcol { grid-column: 1 / -1; }
  .closer { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--pine);
    border-top: 1px solid var(--pine-line);
    padding: 8px var(--gutter) 22px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding-block: 14px; border-bottom: 1px solid var(--pine-line); }
  .nav__list a[aria-current='page'] { border-bottom-color: var(--amber); }
  .header__bar { position: relative; }

  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .report__chart { height: 64px; }
}

@media (max-width: 520px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .hero__actions, .closer__actions, .cookie__row { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Motion — one orchestrated moment, and only on load
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .report__bar { transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .7, .3, 1) backwards; }
  .report__bar:nth-child(1) { animation-delay: .10s; }
  .report__bar:nth-child(2) { animation-delay: .16s; }
  .report__bar:nth-child(3) { animation-delay: .22s; }
  .report__bar:nth-child(4) { animation-delay: .28s; }
  .report__bar:nth-child(5) { animation-delay: .34s; }
  .report__bar:nth-child(6) { animation-delay: .40s; }
  .report__bar:nth-child(7) { animation-delay: .46s; }
  .report__bar:nth-child(8) { animation-delay: .52s; }
  .report__bar:nth-child(9) { animation-delay: .58s; }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
