/* Self Hiil — brand styles. Font: Montserrat. Palette from selfhiil-logo.svg */
:root {
  --navy: #2d2e74;
  --cyan: #25b5e9;
  --green: #00b28b;
  --orange: #f05b2a;
  --pink: #ee5b87;
  --yellow: #fdf287;
  --ink: #232456;
  --muted: #5c5d85;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --line: #e4e7f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(45, 46, 116, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.13rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.narrow-p { max-width: 720px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pink); margin: 0 0 .6em;
}
.eyebrow.center { display: block; text-align: center; }
.lead { font-size: 1.13rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.brand-text small { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink); font-weight: 600; font-size: .88rem; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.site-nav a.active { color: var(--pink); }
.lang-switch {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px !important;
  color: var(--navy) !important; margin-left: 8px;
}
#nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, #fdfdff 0%, #eef4fd 100%); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { margin: 0 0 .4em; }
.hero h1 .hl { color: var(--pink); }
.hero-art { width: 100%; max-width: 460px; justify-self: center; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.story-text { font-size: 1.1rem; }

/* Formula + pairs */
.formula {
  margin: 34px auto; max-width: 760px; text-align: center; font-weight: 700;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px; color: var(--navy); box-shadow: var(--shadow); font-size: 1.05rem;
}
.pair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0; }
.pair-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  border-top: 5px solid var(--pc, var(--navy)); box-shadow: var(--shadow);
}
.pair-letter {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--pc);
  color: #fff; font-weight: 800; font-size: 1.25rem; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pair-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* 3T */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.t-card {
  text-align: center; padding: 30px 22px; border-radius: var(--radius);
  border: 1.5px solid var(--line);
}
.t-badge {
  display: inline-flex; width: 54px; height: 54px; border-radius: 50%; color: #fff;
  align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}
.t-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Program ladder */
.ladder { list-style: none; padding: 0; max-width: 820px; margin: 34px auto; }
.ladder-item {
  display: flex; gap: 20px; align-items: flex-start; background: #fff;
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.ladder-x {
  flex: 0 0 auto; min-width: 72px; text-align: center; color: #fff; font-weight: 800;
  border-radius: 999px; padding: 8px 12px; font-size: .95rem; margin-top: 2px;
}
.ladder-item h3 { margin-bottom: .25em; }
.ladder-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Quote band */
.quote-band { background: var(--navy); color: #fff; text-align: center; }
.quote-band blockquote {
  margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600; font-style: italic; line-height: 1.6;
}
.quote-band blockquote::before { content: '“'; color: var(--yellow); font-size: 2em; line-height: 0; vertical-align: -12px; margin-right: 6px; }
.quote-by { color: var(--cyan); font-weight: 600; margin-top: 1.2em; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .15s ease;
}
.post-card:hover { transform: translateY(-4px); text-decoration: none; }
.post-card .cover { width: 100%; height: 150px; display: block; object-fit: cover; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { margin: 0; font-size: 1.02rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.post-meta { font-size: .78rem; font-weight: 700; color: var(--pink); margin-top: 4px; }
.chip {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--pc, var(--navy));
  background: color-mix(in srgb, var(--pc, var(--navy)) 12%, #fff);
  border-radius: 999px; padding: 4px 12px;
}
.chip-light { background: rgba(255,255,255,.22); color: #fff; }

/* Page head */
.page-head { background: linear-gradient(180deg, #fdfdff 0%, #eef4fd 100%); padding: 56px 0 40px; }
.page-head h1 { margin-bottom: .2em; }
.post-head { color: #fff; padding: 64px 0 48px; }
.post-head h1 { color: #fff; }
.post-head .post-date { color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem; }

/* Prose (markdown content) */
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--cyan);
  background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--muted); font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose hr { border: none; border-top: 1.5px solid var(--line); margin: 2.2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-alt); color: var(--navy); }

/* CTA + footer */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, #3f3f96 55%, var(--pink) 130%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta h2 { color: #fff; }
.cta p { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta .cta-buttons { justify-content: center; }
.site-footer { background: #222352; color: #c9cbe6; font-size: .9rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 32px;
}
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: #c9cbe6; }
.site-footer a:hover { color: #fff; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer { margin-bottom: 14px; }
.brand-footer .brand-text small { color: #a3a5cf; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 22px; font-size: .8rem; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 330px; order: -1; }
  .pair-grid, .t-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  #nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
  }
  .nav-burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }
  .lang-switch { margin-left: 0; text-align: center; }
  .pair-grid, .t-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .ladder-item { flex-direction: column; gap: 10px; }
  .section { padding: 52px 0; }
}

/* Post header key visual */
.post-head-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.post-icon { width: 104px; flex: 0 0 auto; opacity: .95; }
@media (max-width: 720px) { .post-icon { width: 72px; } }
