@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --c-bg: #FFF9F2;
  --c-surface: #F2EDE5;
  --c-card: #FFFFFF;
  --c-primary: #4A7C6F;
  --c-primary-h: #3B6A5E;
  --c-accent: #C9A96E;
  --c-accent-h: #B5944E;
  --c-text: #2B2B2B;
  --c-muted: #6B6B6B;
  --c-faint: #A0A0A0;
  --c-danger: #dc2626;
  --f-head: 'DM Serif Display', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --s-radius: 10px;
  --s-max: 1140px;
  --s-narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-h); }
a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 3px; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 400; line-height: 1.2; }

/* Skip */
.b-skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--c-primary);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: var(--s-radius);
  font-weight: 600;
  z-index: 1000;
  transition: top .2s;
}
.b-skip:focus { top: .6rem; color: #fff; }

/* ========== HEADER — H03 nav left, logo right ========== */
.b-header {
  background: var(--c-card);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--s-max);
  margin: 0 auto;
}
.b-header-nav { display: flex; gap: 1.3rem; list-style: none; order: -1; }
.b-header-nav a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-muted);
  transition: color .2s;
}
.b-header-nav a:hover,
.b-header-nav a[aria-current="page"] { color: var(--c-primary); }

.b-header-logo { height: 28px; width: auto; }

.b-header-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  order: -1;
  padding: .3rem;
}
.b-header-burger svg { width: 22px; height: 22px; }

@media (max-width: 680px) {
  .b-header-nav { display: none; }
  .b-header-burger { display: block; }
}

/* Mobile bottom-sheet style */
.b-mobile {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(43,43,43,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.b-mobile.active { opacity: 1; pointer-events: auto; }
.b-mobile-sheet {
  background: var(--c-card);
  border-radius: var(--s-radius) var(--s-radius) 0 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform .3s;
}
.b-mobile.active .b-mobile-sheet { transform: translateY(0); }
.b-mobile-sheet a {
  font-family: var(--f-head);
  font-size: 1.2rem;
  color: var(--c-text);
  text-align: center;
}
.b-mobile-sheet a:hover { color: var(--c-primary); }
.b-mobile-close {
  background: var(--c-surface);
  border: none;
  padding: .6rem;
  border-radius: var(--s-radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--c-muted);
  margin-top: .5rem;
}

/* ========== HERO — R06 manifesto block ========== */
.b-manifesto {
  background: linear-gradient(170deg, #E8F0ED 0%, var(--c-bg) 100%);
  padding: 5rem 1.5rem 3rem;
}
.b-manifesto-inner {
  max-width: var(--s-narrow);
  margin: 0 auto;
}
.b-manifesto h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--c-text);
}
.b-manifesto h1 span { color: var(--c-primary); }
.b-manifesto-intro {
  font-size: clamp(.92rem, 2.2vw, 1.05rem);
  color: var(--c-muted);
  margin-bottom: 1.2rem;
}
.b-manifesto-badge {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: var(--s-radius);
  letter-spacing: .04em;
}

/* L07 narrow alert strip (inside hero area) */
.b-alert-strip {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--c-surface);
  font-size: .82rem;
}
.b-alert-strip strong { color: var(--c-text); }
.b-alert-strip .b-phone {
  font-family: var(--f-head);
  font-size: 1.1rem;
  color: var(--c-accent);
}
.b-alert-strip a { font-size: .8rem; }
.b-alert-strip .b-age-sm {
  font-size: .68rem;
  color: var(--c-faint);
  background: rgba(74,124,111,.08);
  padding: .15rem .5rem;
  border-radius: var(--s-radius);
}

/* ========== RANKING — C09 media-object rows ========== */
.b-ranking {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.b-ranking .b-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-accent);
  margin-bottom: .3rem;
}
.b-ranking h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1.5rem;
}

.b-media {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--c-card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--s-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow .2s;
}
.b-media:hover { box-shadow: 0 4px 16px rgba(74,124,111,.08); }

.b-media-rank {
  font-family: var(--f-head);
  font-size: 2.4rem;
  color: var(--c-accent);
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
  line-height: 1;
  padding-top: .3rem;
}

.b-media-body { flex: 1; min-width: 0; }
.b-media-body .b-op-logo { height: 28px; width: auto; margin-bottom: .4rem; }
.b-media-body .b-op-bonus { font-weight: 700; font-size: 1rem; margin-bottom: .15rem; }
.b-media-body .b-op-tc { font-size: .72rem; color: var(--c-faint); margin-bottom: .4rem; }
.b-media-body .b-op-desc { font-size: .87rem; color: var(--c-muted); margin-bottom: .5rem; }
.b-media-body .b-op-tags { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin-bottom: .4rem; }
.b-media-body .b-op-tags li {
  background: rgba(74,124,111,.07);
  color: var(--c-primary);
  font-size: .72rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: var(--s-radius);
}
.b-media-body .b-op-pay { font-size: .72rem; color: var(--c-faint); }

.b-media-side {
  text-align: center;
  flex-shrink: 0;
  min-width: 100px;
}
.b-media-side .b-score {
  font-family: var(--f-head);
  font-size: 2rem;
  color: var(--c-primary);
}
.b-media-side .b-score-of { font-size: .72rem; color: var(--c-faint); margin-bottom: .5rem; }
.b-go {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .5rem 1.3rem;
  border-radius: var(--s-radius);
  transition: background .2s, transform .15s;
}
.b-go:hover { background: var(--c-primary-h); color: #fff; transform: translateY(-1px); }

@media (max-width: 680px) {
  .b-media { flex-direction: column; text-align: center; }
  .b-media-body .b-op-tags { justify-content: center; }
  .b-media-body .b-op-logo { margin: 0 auto .4rem; }
}

/* D04 disclosure embedded with helpline context */
.b-disclosure {
  max-width: var(--s-narrow);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.b-disclosure p {
  font-size: .78rem;
  color: var(--c-faint);
  border-left: 3px solid var(--c-accent);
  padding: .5rem 1rem;
  line-height: 1.6;
}

/* ========== METHODOLOGY — M08 horizontal steps ========== */
.b-steps-wrap {
  background: var(--c-surface);
  padding: 3rem 1.5rem;
}
.b-steps-wrap .b-inner {
  max-width: var(--s-narrow);
  margin: 0 auto;
}
.b-steps-wrap .b-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-accent);
  margin-bottom: .3rem;
}
.b-steps-wrap h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: .4rem;
}
.b-steps-wrap .b-steps-intro {
  font-size: .92rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.b-steps {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x mandatory;
}
.b-step {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--c-card);
  border-radius: var(--s-radius);
  padding: 1.2rem;
  border: 1px solid rgba(0,0,0,.04);
}
.b-step .b-step-num {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: .7rem;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: .5rem;
}
.b-step h3 { font-size: .95rem; margin-bottom: .25rem; }
.b-step p { font-size: .8rem; color: var(--c-muted); line-height: 1.5; }

@media (max-width: 680px) {
  .b-step { flex: 0 0 75vw; }
}

/* ========== RG BANNER — G07 icon + text split ========== */
.b-rg {
  background: var(--c-danger);
  padding: 2.5rem 1.5rem;
}
.b-rg .b-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.b-rg .b-rg-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.b-rg h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: #fff; margin-bottom: .5rem; }
.b-rg p { color: rgba(255,255,255,.92); font-size: .92rem; margin-bottom: .4rem; }
.b-rg a { color: #fff; text-decoration: underline; }
.b-rg a:hover { color: rgba(255,255,255,.8); }

@media (max-width: 680px) {
  .b-rg .b-inner { grid-template-columns: 1fr; text-align: center; }
  .b-rg .b-rg-icon { margin: 0 auto; }
}

/* ========== FOOTER — F04 brand left + links right ========== */
.b-footer {
  background: #2B2B2B;
  color: rgba(255,255,255,.6);
  padding: 2.5rem 1.5rem 1.5rem;
}
.b-footer .b-inner {
  max-width: var(--s-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}
.b-footer-brand .b-footer-logo { height: 24px; margin-bottom: .8rem; filter: brightness(0) invert(1) opacity(.6); }
.b-footer-brand p { font-size: .78rem; line-height: 1.6; margin-bottom: .4rem; }
.b-footer-brand strong { color: rgba(255,255,255,.8); }

.b-footer-links h4 {
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: .5rem;
}
.b-footer-links ul { list-style: none; margin-bottom: 1rem; }
.b-footer-links li { margin-bottom: .2rem; }
.b-footer-links a { color: rgba(255,255,255,.5); font-size: .8rem; }
.b-footer-links a:hover { color: #fff; }

.b-footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: .8rem;
  font-size: .7rem;
  text-align: center;
  color: rgba(255,255,255,.35);
}
.b-footer-bottom a { color: rgba(255,255,255,.4); font-size: .7rem; }

@media (max-width: 680px) {
  .b-footer .b-inner { grid-template-columns: 1fr; }
}

/* ========== INTERNAL PAGES ========== */
.b-page-hero {
  background: linear-gradient(170deg, #E8F0ED 0%, var(--c-bg) 100%);
  padding: 5rem 1.5rem 2rem;
  text-align: center;
}
.b-page-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }

.b-page-body {
  max-width: var(--s-narrow);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.b-page-body h2 { font-size: 1.35rem; margin: 1.8rem 0 .5rem; color: var(--c-primary); }
.b-page-body h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.b-page-body p { margin-bottom: .9rem; }
.b-page-body ul, .b-page-body ol { margin: .4rem 0 1rem 1.4rem; }
.b-page-body li { margin-bottom: .3rem; }

.b-card {
  background: var(--c-card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--s-radius);
  padding: 1.3rem;
  margin: 1.2rem 0;
}

.b-warn {
  background: #FEF2F2;
  border-left: 3px solid var(--c-danger);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 var(--s-radius) var(--s-radius) 0;
  font-size: .9rem;
}

.b-tip {
  background: rgba(74,124,111,.05);
  border-left: 3px solid var(--c-primary);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 var(--s-radius) var(--s-radius) 0;
  font-size: .9rem;
}

.b-date {
  text-align: center;
  font-size: .78rem;
  color: var(--c-faint);
  padding: 1rem 1.5rem;
}
