/* Layout: one column memo on a single flat background; logo, thesis, services list, contact. ClearGrowth brand palette (Deep Ink, Deep Teal, Aqua, Coral); Syne headlines, Montserrat body. */
:root {
  --bg: #F4F5F8;
  --ink: #082026;
  --muted: #4E6166;
  --line: #CBD6D8;
  --brand: #004A4A;
  --deep: #082026;
  --coral: #FF5938;
  --wordmark: #082026;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --display: "Syne", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #082026; --ink: #F4F5F8; --muted: #A9C3C6; --line: #1E3F45; --brand: #99D8DE; --deep: #F4F5F8; --coral: #FF5938; --wordmark: #99D8DE; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #082026; --ink: #F4F5F8; --muted: #A9C3C6; --line: #1E3F45; --brand: #99D8DE; --deep: #F4F5F8; --coral: #FF5938; --wordmark: #99D8DE; color-scheme: dark;
}
html, body { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.88;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 56px 80px;
}
.page { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 72px; }

.logotype { display: block; color: var(--wordmark); line-height: 0; }
.logotype svg { width: 360px; max-width: 100%; height: auto; display: block; margin-inline: auto; }
.mark { display: block; width: 44px; height: auto; }

.body { display: flex; flex-direction: column; gap: 1.1em; }
.body p { margin: 0; }
.body strong { font-weight: 700; color: var(--deep); }

h2 { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.25em; text-wrap: balance; }

.services { display: flex; flex-direction: column; gap: 12px; }
.services ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--brand); }
.svc { display: grid; grid-template-columns: 190px 1fr; gap: 10px 28px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.svc-head { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.svc h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.term { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.price { font-size: 0.95rem; font-weight: 700; color: var(--coral); font-variant-numeric: tabular-nums; }
.svc p { margin: 0; min-width: 0; font-size: 0.98rem; color: var(--ink); }

.cta { display: flex; justify-content: center; }
.btn { display: inline-block; background: var(--coral); color: #FFFFFF; font-family: var(--font); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 16px 32px; border-radius: 999px; transition: filter .15s ease; }
.btn:hover { filter: brightness(0.94); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.contact { border-top: 2px solid var(--brand); padding-top: 20px; display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.contact-text { display: flex; flex-wrap: wrap; gap: 4px 24px; min-width: 0; }
.contact .name { font-weight: 700; color: var(--deep); width: 100%; }
.contact span { color: var(--muted); user-select: all; }
.contact .name { user-select: auto; }
.contact a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact a:hover, .contact a:focus-visible { text-decoration: underline; }

@media (max-width: 560px) {
  body { font-size: 1.0625rem; line-height: 1.8; padding-block: 40px 56px; }
  .page { gap: 52px; }
  h2 { font-size: 1.6rem; }
  .svc { grid-template-columns: 1fr; }
  .contact-text { flex-direction: column; gap: 4px; }
  .logotype svg { width: 260px; }
}

/* ---- Menu (all pages) ---- */
body { position: relative; }
.menu { position: absolute; top: 40px; right: max(16px, env(safe-area-inset-right, 0px)); z-index: 10; }
.menu-btn { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: transparent; border: 0; border-radius: 10px; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.menu-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 52px; width: 260px; background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--brand); border-radius: 12px; padding: 12px 8px; box-shadow: 0 12px 32px rgba(8,32,38,.12); font-size: 0.95rem; line-height: 1.4; }
.menu-panel[hidden] { display: none; }
.menu-panel a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: color-mix(in srgb, var(--brand) 10%, transparent); outline: none; }
.menu-panel a[aria-current="page"] { color: var(--brand); }
.menu-label { margin: 10px 12px 2px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---- Sub-pages ---- */
a.logotype { text-decoration: none; }
.intro { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
h1 { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin: 0; text-wrap: balance; }
.lede { margin: 0; font-size: 1.2rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 2px solid var(--brand); }
.stat { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--coral); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.story { display: flex; flex-direction: column; gap: 28px; }
.story section { display: grid; grid-template-columns: 190px 1fr; gap: 10px 28px; }
.story h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: 700; line-height: 1.88; color: var(--ink); }
.story p { margin: 0; }
.next { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.next a { color: var(--brand); font-weight: 700; text-decoration: none; }
.next a:hover, .next a:focus-visible { text-decoration: underline; }
.next .term { align-self: center; }

.levers ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--brand); }
.math { display: flex; flex-direction: column; gap: 16px; }
.math > p { margin: 0; }
.formula { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--brand); }
.ex { border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.ex h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.ex .given { margin: 0; font-size: 0.95rem; color: var(--muted); }
.ex dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 0; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.ex dt { color: var(--ink); }
.ex dd { margin: 0; padding-left: 16px; text-align: right; font-weight: 700; color: var(--ink); }
.ex .total { border-top: 1px solid var(--line); padding-top: 8px; }
.ex .total dd { color: var(--coral); font-size: 1.15rem; }
.note { margin: 0; font-size: 0.82rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 560px) {
  .menu { top: 26px; }
  .logotype svg { width: 220px; }
  h1 { font-size: 2rem; }
  .lede { font-size: 1.08rem; }
  .story section { grid-template-columns: 1fr; gap: 2px; }
  .ex { padding: 16px 18px; }
  .next { flex-direction: column; }
}
