/* ==========================================================================
   PEAR Consultant website — PEAR Design System
   Aligned with the approved PEAR presentation: light canvas, deep green ink,
   pear-lime accents, rounded white cards, real photography.
   Cards: no border, no shadow; separation by colour only.
   ========================================================================== */

/* Instrument Sans, self-hosted (SIL Open Font License, see assets/fonts) */
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --canvas: #f2f3f5;
  --surface: #ffffff;
  --fill: #f2f3f5;
  --line: #e4e6ea;
  --green: #0b5137;          /* deep green: headings, links, icons, primary */
  --green-hover: #08402b;
  --text: #1b1f22;           /* main ink for body copy */
  --ink-muted: #5f636b;
  --ink-subtle: #8b9099;
  --ink-soft: #41464d;        /* neutral dark grey for card descriptions */
  --on-green: #ffffff;
  --pear: #c9f158;           /* CTA + accents; never body text on white */
  --pear-hover: #bce640;
  --pear-soft: #eef9cf;
  --pear-ink: #4a6b00;
  --danger-soft: #fde4e1;
  --danger-ink: #b42318;
  --focus: #0b5137;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-pop: 0 16px 40px rgba(11, 81, 55, .14);

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Instrument Sans is Latin-only, so Chinese glyphs fall through to the reader's system
     face. Instrument Sans stays first so PEAR, WhatsApp and other Latin words keep the
     brand type inside Chinese sentences. */
  --font-cjk: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
              "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --ease: 160ms ease-out;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--green); font-weight: 600; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--on-green); padding: 10px 16px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.025em; max-width: 760px; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
h2, h3 { text-wrap: balance; }
.section-lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 680px; margin-top: 16px; }
.section-lead a { font-weight: 600; }
.muted { color: var(--ink-muted); font-size: 14px; line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-pill);
  font: 600 16px/1.1 var(--font);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-hover); }
.btn-pear { background: var(--pear); color: var(--green); }
.btn-pear:hover { background: var(--pear-hover); }
.btn-secondary { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-secondary:hover { background: var(--pear-soft); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; min-height: 56px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none; color: var(--green);
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; transition: transform var(--ease); }
.text-link:hover .icon { transform: translateX(2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(242, 243, 245, .94);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), background-color var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; flex: none; border-radius: 8px; }
.logo-img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a:not(.btn) {
  font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius-pill);
  transition: color var(--ease), background-color var(--ease);
}
.main-nav > a:not(.btn):hover { color: var(--green); background: var(--surface); }
.main-nav > a.is-active { color: var(--green); background: var(--pear-soft); }
.nav-wa { margin-left: 10px; min-height: 44px; padding: 0 18px; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: var(--radius-pill); background: var(--surface); color: var(--green); cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
/* the language switch sits in .header-actions at every width; the contact button and the
   hamburger are for the mobile header only, since the desktop nav carries its own */
@media (min-width: 1081px) {
  .header-cta, .menu-toggle { display: none; }
}

/* ---------- language switch (EN / 中文) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
}
.lang-btn {
  min-height: 36px; padding: 0 12px;
  border: 0; border-radius: var(--radius-pill); background: none;
  font: 600 14px/1 var(--font); color: var(--ink-muted); cursor: pointer;
  transition: color var(--ease), background-color var(--ease);
}
.lang-btn[data-lang="zh"] { font-family: var(--font-cjk); }
.lang-btn:hover { color: var(--green); }
.lang-btn.is-active { background: var(--pear-soft); color: var(--green); }

/* ---------- hero ---------- */
.hero { background: var(--canvas); }
.hero-stage { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 28%; }
/* soft light wash on the left so the headline stays readable over the photo */
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    rgba(242, 243, 245, .97) 0%, rgba(242, 243, 245, .94) 34%,
    rgba(242, 243, 245, .72) 47%, rgba(242, 243, 245, 0) 64%);
}
.hero-inner { display: flex; align-items: center; min-height: clamp(560px, 46vw, 700px); padding-top: 56px; padding-bottom: 72px; }
.hero-copy { max-width: 640px; }
.hero-sub { font-size: 20px; line-height: 1.55; color: var(--ink-muted); margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn-secondary { background: rgba(255, 255, 255, .7); }
.hero-actions .btn-secondary:hover { background: var(--pear-soft); }

/* white horizontal highlights bar under the hero image */
.hero-stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-stats-list { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; padding-top: 26px; padding-bottom: 26px; }
.hero-stats-list li { display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.hero-stats-list li:first-child { padding-left: 0; }
.hero-stats-list li:last-child { padding-right: 0; }
.hero-stats-list li + li { border-left: 1px solid var(--line); }
.stat-icon {
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px;
  border-radius: 50%; background: var(--pear-soft); color: var(--green);
}
.stat-icon .icon { width: 24px; height: 24px; }
.hero-stats-list strong { display: block; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--green); }
.hero-stats-list strong + span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }

.visual-note { font-size: 14px; line-height: 1.45; color: var(--ink-muted); text-align: center; max-width: 440px; margin: 0 auto; }

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-surface { background: var(--surface); }
.section-head { max-width: 760px; }
.section-head-center { margin: 0 auto; text-align: center; }
/* editorial split: label + headline across 7 of 12 columns, intro across the other 5,
   sitting on the headline's last line (stacks below 1080px) */
.section-head-split {
  max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px; align-items: end;
}
.section-head-split > .eyebrow, .section-head-split > h2 { grid-column: 1 / span 7; }
.section-head-split > .eyebrow { justify-self: start; }
.section-head-split > .section-lead {
  grid-column: 8 / -1; grid-row: 1 / span 2; align-self: end;
  margin-top: 0; padding-bottom: 6px; max-width: 460px;
}
.section-head-center h2, .section-head-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- text groups (replace the old icon-card rows) ---------- */
/* items set in type, no icons; order and grouping carried by layout */
.text-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 40px; }
.text-grid p, .points p { color: var(--text); margin-top: 8px; }
.text-grid-tiles { gap: 16px; margin-top: 0; }
.text-grid-tiles li { background: var(--fill); border-radius: var(--radius-lg); padding: 28px; }

/* large-type rows: title on the left, explanation on the right */
/* the challenge: three frosted-glass cards over a soft colour wash.
   Tailwind equivalents: bg-white/50 backdrop-blur-xl border-white/60 rounded-3xl p-8
   shadow-2xl shadow-emerald-900/5, hover:-translate-y-1 hover:bg-white/60 duration-300 */
.challenge {
  overflow: hidden;
  background:
    radial-gradient(42% 60% at 8% 78%, rgba(201, 241, 88, .45), transparent 70%),
    radial-gradient(38% 55% at 92% 30%, rgba(11, 81, 55, .12), transparent 70%),
    var(--canvas);
}
.glass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.glass-card {
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 24px; padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(11, 81, 55, .05);
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1), background-color 300ms cubic-bezier(.4, 0, .2, 1);
}
.glass-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .6); }
.glass-card h3 { color: var(--green); }
.glass-card p { color: var(--ink-soft); margin-top: 10px; }
.glass-card .icon-tile + h3, .text-grid .icon-tile + h3 { margin-top: 18px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card { background: rgba(255, 255, 255, .82); }
  .glass-card:hover { background: rgba(255, 255, 255, .9); }
}

.points { display: grid; margin-top: 56px; }
/* a thin divider between rows, none above the first or below the last */
.points li { padding: 28px 0; }
.points li:first-child { padding-top: 0; }
.points li:last-child { padding-bottom: 0; }
.points li + li { border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 48px minmax(0, 1.25fr) minmax(0, 1.75fr); gap: 8px 24px; align-items: center; }
.points h3 { font-size: 22px; }
.nowrap { white-space: nowrap; }
.points p { margin-top: 0; font-size: 18px; line-height: 1.55; }

/* meet PEAR: words beside a real photo */
.intro-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 72px); align-items: stretch; }

/* four step cards: white, hairline border, soft green-tinted shadow */
.step-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: 0 1px 2px rgba(11, 81, 55, .04), 0 12px 32px -18px rgba(11, 81, 55, .22);
}
.step-card .icon-tile { width: 44px; height: 44px; }
.step-card .icon-tile + h3 { margin-top: 18px; }
.step-card h3 { font-size: 20px; }
.step-card p { color: var(--text); margin-top: 8px; line-height: 1.5; }

/* scrollable photo stack on a soft lime glow. Desktop/tablet: vertical snap-scroll whose
   height follows the left column; phones: a sideways swipe row. Each photo keeps its own
   caption pill; the scrollbar is hidden, so prev/next buttons and a counter show there's more. */
.intro-gallery {
  position: relative; min-height: 480px; border-radius: 36px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(201, 241, 88, .55), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(11, 81, 55, .16), transparent 65%),
    var(--pear-soft);
}
.intro-stack {
  position: absolute; inset: 0;
  display: grid; grid-auto-rows: max-content; gap: 20px;
  padding: clamp(16px, 2.4vw, 28px);
  overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scroll-padding: clamp(16px, 2.4vw, 28px);
  scroll-behavior: smooth; scrollbar-width: none;
}
.intro-stack::-webkit-scrollbar { display: none; }
.intro-stack:focus-visible { outline-offset: -6px; border-radius: 36px; }
.intro-slide {
  position: relative; scroll-snap-align: start;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--line);
  box-shadow: 0 28px 48px -24px rgba(11, 81, 55, .45), 0 4px 12px rgba(11, 81, 55, .08);
}
.intro-slide picture, .intro-slide img { display: block; width: 100%; height: 100%; }
.intro-slide img { object-fit: cover; }
.intro-slide figcaption {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92); color: var(--green);
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
.intro-slide figcaption::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pear-ink);
}
.intro-stack-nav {
  position: absolute; right: 16px; top: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px -10px rgba(11, 81, 55, .35);
}
.stack-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--pear); color: var(--green); cursor: pointer;
  transition: background-color 160ms ease-out, opacity 160ms ease-out;
}
.stack-btn:hover { background: var(--pear-hover); }
.stack-btn:disabled { opacity: .35; cursor: default; }
.stack-count { min-width: 44px; text-align: center; font-size: 14px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }

.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--fill); color: var(--green);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile-pear { background: var(--pear); color: var(--green); }

.tick-list { display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { color: var(--green); margin-top: 2px; stroke-width: 2.25; width: 18px; height: 18px; }

/* ---------- accommodation gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.gallery-item { display: grid; gap: 12px; align-content: start; }
.gallery-item picture { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-lg); background: var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--green); }
.gallery-note {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 24px;
  background: var(--pear-soft); border-radius: var(--radius-lg); padding: 28px;
}
.gallery-note > div { flex: 1; }
.gallery-note p { color: var(--text); margin: 2px 0 12px; }
.gallery-note p a { font-weight: 600; }
.disclosure { margin-top: 18px; font-size: 14px; color: var(--ink-muted); }

/* real photos with a caption underneath */
.photo-card { display: grid; gap: 12px; align-content: start; }
.photo-card picture { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--line); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption { font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
.cohort-photo { margin-top: 48px; }

/* ---------- agent vs independent search ---------- */
/* Two columns whose rows line up (subgrid), so each step reads across. */
.compare {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto repeat(5, auto);
  gap: 0 20px; margin-top: 48px;
}
.compare-col {
  display: grid; grid-row: span 6; grid-template-rows: subgrid;
  background: var(--fill); border-radius: var(--radius-lg); padding: 28px;
}
.compare-col-pear { background: var(--pear-soft); }
.compare-col .icon-tile { background: var(--surface); }
.compare-col .icon-tile-pear { background: var(--pear); }
.compare-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; }
.compare-head p { color: var(--ink-muted); margin-top: 4px; }
.compare-list { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.compare-list li {
  position: relative; padding: 10px 0 10px 22px; line-height: 1.45;
}
.compare-list li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-subtle);
}
.compare-col-pear .compare-list li::before { background: var(--green); }
/* responsibility note sits straight on the section background, no card */
.scope.compare-note { margin-top: 32px; padding: 0; background: none; border-radius: 0; }
.scope.compare-note .icon-tile { background: var(--fill); }
/* centred CTA with an underline that grows from the left on hover/focus */
.compare-cta { display: flex; justify-content: center; margin-top: 32px; }
.link-underline {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  font-size: 17px; font-weight: 600; color: var(--green); text-decoration: none;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
}
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(1); }
.link-underline .icon { width: 18px; height: 18px; transition: transform 300ms cubic-bezier(.4, 0, .2, 1); }
.link-underline:hover .icon, .link-underline:focus-visible .icon { transform: translateY(3px); }

/* ---------- before you commit ---------- */

/* ---------- why PEAR ---------- */
.split-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.split-head .section-head .btn { margin-top: 28px; }

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.journey-step { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 18px; }
.journey-step > div { background: var(--fill); border-radius: var(--radius-lg); padding: 22px; height: 100%; }
.journey-step p { color: var(--text); margin-top: 8px; }
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--radius-pill); background: var(--pear); color: var(--green);
  font-weight: 700; font-size: 18px;
}
.journey-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.journey-feature .photo-card picture { aspect-ratio: 862 / 616; }
.band {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  padding: 32px; background: var(--pear-soft); border-radius: var(--radius-lg);
  aspect-ratio: 862 / 616;
}
.band p { color: var(--text); font-size: 18px; line-height: 1.5; }
.band strong { color: var(--green); display: block; margin-bottom: 4px; }

/* ---------- tenant app ---------- */
/* headline and intro on the left, app image on the right; the four features run in a row below */
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.app-visual { display: grid; gap: 16px; margin: 0; }
.app-visual img { width: 100%; height: auto; }
.app-features { margin-top: 72px; }
.app-features .text-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 0; }
.app-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 32px;
  font-size: 14px; line-height: 1.5; color: var(--ink-muted);
}
.app-note .icon { color: var(--green); margin-top: 1px; width: 18px; height: 18px; }

/* ---------- support ---------- */
.scope {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 48px; padding: 24px 28px;
  background: var(--fill); border-radius: var(--radius-lg);
}
.scope .icon-tile { background: var(--surface); }
.scope p { color: var(--text); }
.scope strong { color: var(--green); }
.scope .muted { margin-top: 6px; }
.share-parents {
  display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 20px 28px;
  background: var(--pear-soft); border-radius: var(--radius-lg);
}
.share-parents p { flex: 1; }
.share-parents strong { color: var(--green); }
.share-parents .btn { flex: none; }

/* ---------- schools ---------- */
.schools-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.schools-intro .btn { margin-top: 28px; }
.fine-print { margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); max-width: 460px; }
.cohort-steps { display: grid; gap: 14px; }
/* stacked cards in the Meet PEAR style: white, soft border and shadow, icon beside the title */
.cohort-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(11, 81, 55, .04), 0 12px 32px -18px rgba(11, 81, 55, .22);
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1), box-shadow 300ms cubic-bezier(.4, 0, .2, 1);
}
.cohort-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(11, 81, 55, .04), 0 18px 40px -18px rgba(11, 81, 55, .3);
}
.cohort-card .icon-tile { width: 44px; height: 44px; }
.cohort-card h3 { font-size: 20px; margin-top: 2px; }
.cohort-card p { color: var(--text); margin-top: 6px; line-height: 1.5; }

/* ---------- accordion ---------- */
.accordion { display: grid; gap: 10px; }
.accordion-item { background: var(--fill); border-radius: var(--radius-md); }
.accordion-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 600; line-height: 1.4; color: var(--green);
  border-radius: var(--radius-md);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b5137' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform var(--ease);
}
.accordion-item[open] summary::after { transform: rotate(45deg); background-color: var(--pear); }
.accordion-item p { padding: 0 20px 20px; color: var(--text); }
.accordion-item summary:hover { background: var(--pear-soft); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }

/* ---------- contact + forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; align-items: start; }
.form-panel { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; }
.form-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.form-head h3 { font-size: 22px; }
.lead-form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--text); }
.optional { font-weight: 400; color: var(--ink-muted); }
.required-mark { color: var(--danger-ink); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  background: var(--fill); color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-appearance: none; appearance: none;
  transition: background-color var(--ease), border-color var(--ease);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f636b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px;
}
.form-row ::placeholder { color: #6f747c; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 2px; background-color: var(--surface); border-color: var(--line);
}
.form-row [aria-invalid="true"] { border-color: var(--danger-ink); background-color: #fff8f7; }
.field-hint { font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
.field-error { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--danger-ink); }
.form-required-note { font-size: 14px; color: var(--ink-muted); margin-top: 10px; }
.form-privacy { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.form-status { font-size: 14px; line-height: 1.5; color: var(--text); }
.form-status:empty { display: none; }
.form-status a { font-weight: 600; }
.form-alt { font-size: 14px; color: var(--ink-muted); text-align: center; }

/* ---------- floating contact button (desktop) ---------- */
.sticky-cta { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: flex; }
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { box-shadow: var(--shadow-pop); min-height: 52px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); color: var(--ink-muted); padding: 72px 0 36px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-name { color: var(--green); font-weight: 600; margin-bottom: 6px; }
.footer-head { color: var(--green); font: 600 14px/20px var(--font); margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-small {
  margin-top: 56px;
  font-size: 14px; line-height: 1.5;
}

/* ==========================================================================
   Simplified Chinese
   Chinese sets denser than Latin: the tight tracking that suits the display headings
   reads cramped, and CJK lines want a little more leading.
   ========================================================================== */
html[lang^="zh"] body,
html[lang^="zh"] .btn,
html[lang^="zh"] .footer-head,
html[lang^="zh"] input,
html[lang^="zh"] select,
html[lang^="zh"] textarea { font-family: var(--font-cjk); }
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 { letter-spacing: 0; }
/* every Chinese glyph is full-width, so the Latin display size overpowers the hero and
   pushes the headline into an awkward break; a smaller size sets the same weight */
html[lang^="zh"] h1 { font-size: clamp(32px, 4.1vw, 52px); line-height: 1.15; }
html[lang^="zh"] h2 { line-height: 1.25; }
html[lang^="zh"] .eyebrow { letter-spacing: .02em; }
html[lang^="zh"] p { line-height: 1.7; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px clamp(16px, 4vw, 40px) 20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(11, 81, 55, .08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.btn) { padding: 14px 12px; font-size: 17px; border-radius: var(--radius-md); }
  .nav-wa { margin: 10px 0 0; min-height: 52px; }
  .site-header { background: rgba(255, 255, 255, .97); }
  .journey { grid-template-columns: 1fr; gap: 12px; }
  .journey-step { grid-template-columns: 46px 1fr; gap: 16px; }
  .split-head, .app-grid, .schools-grid, .journey-feature, .intro-split { grid-template-columns: 1fr; gap: 40px; }
  .intro-gallery { min-height: 0; height: 540px; }
  .section-head-split { display: block; max-width: 760px; }
  .section-head-split > .section-lead { margin-top: 16px; padding-bottom: 0; max-width: 680px; }
  .journey-feature { gap: 16px; }
  .band { aspect-ratio: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-visual { max-width: 720px; justify-self: center; }
  .app-features { margin-top: 48px; }
  .app-features .text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero-stage { display: flex; flex-direction: column; }
  .hero-stage::before { display: none; }
  .hero-inner { order: 1; min-height: 0; padding-top: 32px; padding-bottom: 32px; }
  .hero-media { position: relative; order: 2; z-index: auto; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 80% 50%; }
  .hero-stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; padding-top: 22px; padding-bottom: 22px; }
  .hero-stats-list li { padding: 0 16px; }
  .hero-stats-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-sub { font-size: 18px; }
  .points { margin-top: 36px; }
  .points li { padding: 22px 0; }
  .glass-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .points li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .points li p { grid-column: 2; }
  .text-grid { margin-top: 32px; }
  .scope { margin-top: 32px; }
  .gallery { margin-top: 32px; gap: 16px 12px; }
  .cohort-photo { margin-top: 32px; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid { gap: 28px; }
  .contact-grid { margin-top: 32px; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .band, .share-parents { flex-direction: column; align-items: flex-start; }

  /* comparison and checklist stack into one column, in reading order */
  .compare { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; margin-top: 32px; }
  .compare-col, .compare-list { display: block; grid-row: auto; }
  .compare-list li { padding: 11px 0 11px 22px; }
  .compare-list li::before { top: 19px; }

  /* no bottom bar on phones and tablets: the header keeps the contact action */
  .sticky-cta { display: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .logo-img { height: 34px; }
  /* phones: the header has to fit the contact button too, so the switch collapses to the
     one language you can switch to */
  .header-inner { gap: 10px; }
  .lang-switch { padding: 0; border: 0; background: none; }
  .lang-btn { min-height: 38px; padding: 0 10px; background: var(--surface); }
  .lang-btn.is-active { display: none; }
  .hero-actions .btn { width: 100%; }
  h3 { font-size: 20px; }
  .points h3 { font-size: 20px; }
  .text-grid { grid-template-columns: 1fr; gap: 24px; }
  .step-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .step-card { padding: 22px; }
  /* phones: swipe sideways instead of a scroll box inside the scrolling page */
  .intro-gallery { height: auto; border-radius: 28px; }
  .intro-stack {
    position: relative; inset: auto; grid-auto-flow: column; grid-auto-columns: 86%; grid-auto-rows: auto;
    gap: 12px; padding: 16px 16px 72px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding: 16px; overscroll-behavior-x: contain;
  }
  .intro-slide figcaption { left: 10px; bottom: 10px; padding: 6px 11px; font-size: 13px; max-width: calc(100% - 20px); }
  .stack-btn .icon { transform: rotate(-90deg); }
  .intro-stack-nav { top: auto; right: 50%; transform: translateX(50%); bottom: 14px; }
  .text-grid-tiles { gap: 12px; }
  .text-grid-tiles li { padding: 22px; }
  .gallery-note, .scope { flex-direction: column; padding: 22px; }
  .scope.compare-note { flex-direction: row; gap: 14px; }
  .cohort-card { padding: 20px; gap: 16px; }
  .form-panel { padding: 22px; }
  .band, .share-parents { padding: 20px; }
  .band .btn, .share-parents .btn, .split-head .section-head .btn, .schools-intro .btn { width: 100%; }
  .compare-col { padding: 20px; }
  .hero-stats-list { grid-template-columns: 1fr; gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .hero-stats-list li { padding: 14px 0; border-left: 0 !important; }
  .hero-stats-list li + li { border-top: 1px solid var(--line); }
  .stat-icon { width: 44px; height: 44px; }
  .app-features { margin-top: 40px; }
  .app-features .text-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html, .intro-stack { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .btn:active, .glass-card:hover, .cohort-card:hover { transform: none; }
}
