/* SHUILI — site styles. Tokens first, then one block per page section. */

:root {
  --navy: #000E2F;
  --navy-raised: #011F4C;
  --blue: #05518E;
  --blue-dark: #022A5D;
  --sky: #1BA5DA;
  --cyan: #5CE7FB;
  --bg: #F4F6F9;
  --bg-band: #E8EDF4;
  --line: #D9DFEA;
  --line-strong: #C5CEDD;
  --muted: #5A6B7E;
  --white: #FFFFFF;
  --white-82: rgba(255, 255, 255, 0.82);
  --white-66: rgba(255, 255, 255, 0.66);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---- base ---- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}
body.legal { line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }

/* :where() keeps these at element-level specificity so component classes win */
:where(.home) a { color: inherit; text-decoration: none; }
:where(.home) a:hover { opacity: .82; }
:where(.legal main) a { color: var(--blue); }
:where(.legal main) a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
:where(.legal main, .band-white, .section, .situations, .about, .principles) a:focus-visible { outline-color: var(--blue); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 16px; }
img { max-width: 100%; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }


/* ---- layout / shared ---- */
.dark {
  background: var(--navy);
  color: var(--white);
}
.band {
  background: var(--bg-band);
}
.band-white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-tight {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-on-dark {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-lead {
  color: var(--muted);
  font-size: 18px;
}
.title-lg {
  font-size: 26px;
  line-height: 1.2;
}
.title-22 {
  font-size: 22px;
}
.title-md {
  font-size: 21px;
  line-height: 1.25;
}
.title-20 {
  font-size: 20px;
}
.muted {
  color: var(--muted);
}
.meta {
  font-size: 15px;
  color: var(--muted);
}
.strong {
  font-weight: 600;
}
.label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.label-on-dark {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.note-on-dark {
  font-size: 14px;
  color: var(--white-66);
}
.rule-on-dark {
  border-top: 1px solid var(--blue);
}
.stack-4 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stack-8 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-10 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
}
.text-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* ---- buttons ---- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.btn-primary {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 4px;
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 4px;
}
.btn-light {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 4px;
}

/* ---- header + navigation ---- */
.site-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo-mark {
  width: 56px;
  height: 56px;
  display: block;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  color: var(--white-82);
}
.nav-link {
  padding: 10px 0;
}
.lang-switch {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.lang-current {
  color: var(--white);
  border-bottom: 2px solid var(--cyan);
  padding: 10px 2px;
}
.lang-link {
  padding: 10px 2px;
}

/* ---- hero ---- */
/* hero is the skip-link target (tabindex=-1): no focus ring on programmatic focus */
.hero:focus { outline: none; }
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 4vw, 32px) clamp(48px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}
.hero-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--white-82);
  max-width: 34em;
}

/* ---- hero illustration: 13-week cash forecast ---- */
.forecast-card {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--navy-raised);
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.forecast-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.forecast-title {
  font-weight: 600;
  font-size: 18px;
}
.forecast-tag {
  font-size: 12px;
  color: var(--white-66);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.forecast-chart {
  position: relative;
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.forecast-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 61px;
  border-top: 1px dashed var(--white-66);
}
.forecast-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--white-66);
}
.forecast-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--white-82);
  border-top: 1px solid var(--blue);
  padding-top: 16px;
}
.legend-item {
  display: flex;
  gap: 10px;
  align-items: center;
}
.legend-line {
  width: 18px;
  border-top: 1px dashed var(--white-66);
}
.legend-swatch {
  width: 18px;
  height: 10px;
  background: var(--cyan);
  border-radius: 2px;
}
.bar {
  flex: 1;
  background: var(--sky);
  border-radius: 2px 2px 0 0;
}
.bar--low {
  background: var(--cyan);
}

/* bar heights (classes instead of inline styles, so CSP can forbid inline CSS) */
.b1 { height: 112px; } .b2 { height: 104px; } .b3 { height: 88px; } .b4 { height: 74px; }
.b5 { height: 65px; } .b6 { height: 50px; } .b7 { height: 79px; } .b8 { height: 94px; }
.b9 { height: 85px; } .b10 { height: 70px; } .b11 { height: 99px; } .b12 { height: 113px; }
.b13 { height: 126px; }

/* ---- proof strip ---- */
.proof {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px 32px;
}
.proof-value {
  font-weight: 600;
  font-size: 24px;
}

/* ---- situations ---- */
.situations {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 32px) 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--line-strong);
}
.situation {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- service cards ---- */
.card-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.card-lg {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-text {
  color: var(--muted);
  font-size: 16px;
}
.card-foot-lg {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-result {
  font-weight: 600;
  font-size: 16px;
}
.card-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
}

/* ---- approach ---- */
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 2px solid var(--navy);
  padding-top: 20px;
}
.step-no {
  font-size: 14px;
  color: var(--blue);
}

/* ---- about ---- */
.about {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: flex-start;
}
.about-aside {
  flex: 0 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}
.portrait--mark {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait--mark img { width: 42%; height: auto; }
.col-main {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.person-name {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.about-lead {
  font-size: 19px;
  max-width: 36em;
}
.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
  max-width: 620px;
}
.fact {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
}
.about-note {
  color: var(--muted);
  max-width: 38em;
}
.about-motto {
  color: var(--muted);
  font-style: italic;
  max-width: 38em;
}

/* ---- principles ---- */
.principles {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px) clamp(56px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.principles-title {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 720px;
  text-wrap: balance;
}

/* ---- experience timeline ---- */
.timeline {
  border-top: 1px solid var(--navy);
  color: var(--navy);
}
.timeline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-org {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.timeline-period {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
}
.timeline-role {
  flex: 2 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- contact ---- */
.contact {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}
.contact-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.contact-lead {
  color: var(--white-82);
  font-size: 18px;
  max-width: 34em;
}
.contact-aside {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--blue);
}
.contact-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--blue);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
}
.contact-key {
  color: var(--white-66);
  font-size: 15px;
}
.contact-aside .note-on-dark { max-width: 30em; }
.checklist {
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--white-82);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- footer ---- */
.site-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 32px) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  font-size: 14px;
  color: var(--white-66);
}
.logo-footer {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}
.footer-company {
  color: var(--white);
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: flex-start;
}
.footer-link {
  padding: 6px 0;
}

/* ---- legal pages (privacy policy, legal notice) ---- */
.legal-bar {
  background: var(--navy);
}
.legal-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.back-link {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
}
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 4vw, 32px) clamp(56px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.legal-title {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-h2 {
  font-size: 22px;
  line-height: 1.3;
}
.legal-list {
  margin: 0;
  padding: 0 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-footer {
  background: var(--navy);
  color: var(--white-66);
  font-size: 14px;
}
.legal-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.legal-footer-links {
  display: flex;
  gap: 24px;
}
.on-dark-link {
  color: var(--white);
}

/* legal header: language switch + back link */
.legal-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.legal-lang { color: var(--white-82); }
.legal-lang .lang-link { color: var(--white-82); text-decoration: none; }

/* ---- small screens: compact header ---- */
@media (max-width: 640px) {
  .site-header { padding-top: 16px; padding-bottom: 16px; gap: 12px 16px; }
  .logo-mark { width: 44px; height: 44px; }
  .site-nav { gap: 4px 18px; font-size: 14px; }
  .site-nav .nav-link { display: none; }
  .btn-light { padding: 10px 14px; }
  .card-lg { padding: 28px 24px; }
  .forecast-card { padding: 22px; }
  .about-aside { flex-basis: 100%; max-width: 280px; }
}

/* ---- print ---- */
@media print {
  .site-nav, .btn-row, .skip-link { display: none !important; }
  .dark, .legal-bar, .legal-footer { background: #fff !important; color: #000 !important; }
  body { background: #fff; }
  .dark *, .legal-footer *, .forecast-card { color: #000 !important; }
  .forecast-card { background: #fff !important; }
  .legal-bar * { color: #000 !important; }
  .forecast-floor, .legend-line { border-top-color: #000 !important; }
  .bar { border: 1px solid #000; }
}

/* proof strip: let items size to their content on wide screens (no orphan word wraps) */
@media (min-width: 1000px) {
  .proof { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
  .proof-value { white-space: nowrap; }
}
