/* ============================================================
   理科学家 Science Gila — Web Design System
   Aligned with UI_DESIGN_SYSTEM.md canonical tokens
   Marketing site (defaults to light; dark mode supported)
   ============================================================ */

/* -----------------------------------------------------------
   1. Raw Science Gila brand palette
   ----------------------------------------------------------- */
:root {
  --sg-black:  #1a1a1a;
  --sg-peach:  #fae6d4;
  --sg-blue:   #c6dbe6;
  --sg-pink:   #efccd2;
  --sg-cream:  #fffaf6;
  --sg-grey:   #555555;
  --sg-green:  #ddeccb;
  --sg-yellow: #fff7d6;
  --sg-purple: #e6d7f5;

  /* -----------------------------------------------------------
     2. Semantic UI tokens — LIGHT
     ----------------------------------------------------------- */
  --background:       #fffaf6;
  --foreground:       #1a1a1a;

  --surface:          #ffffff;
  --surface-muted:    color-mix(in oklch, var(--sg-cream) 82%, white);
  --surface-raised:   #ffffff;
  --surface-hover:    color-mix(in oklch, var(--sg-blue) 10%, white);

  --muted:            color-mix(in oklch, var(--sg-cream) 72%, #e8e8e8);
  --muted-foreground: #6b6865;

  --primary:            #1a1a1a;
  --primary-foreground: #fffaf6;

  --border:         color-mix(in oklch, var(--sg-black) 10%, transparent);
  --border-subtle:  color-mix(in oklch, var(--sg-black) 7%, transparent);
  --border-strong:  color-mix(in oklch, var(--sg-black) 18%, transparent);
  --input:          color-mix(in oklch, var(--sg-black) 12%, transparent);
  --ring:           #7aa8c0;

  --destructive:      #dc4c5a;
  --destructive-soft: color-mix(in oklch, #dc4c5a 12%, transparent);
  --warning:          #d96868;
  --warning-soft:     color-mix(in oklch, #d96868 12%, transparent);
  --success:          #6f8f58;
  --success-soft:     color-mix(in oklch, var(--sg-green) 60%, white);
  --info:             #6d9bb3;
  --info-soft:        color-mix(in oklch, var(--sg-blue) 55%, white);

  /* Semantic brand accents */
  --accent-blue:   var(--sg-blue);
  --accent-pink:   var(--sg-pink);
  --accent-purple: var(--sg-purple);
  --accent-green:  var(--sg-green);
  --accent-yellow: var(--sg-yellow);
  --accent-peach:  var(--sg-peach);

  /* Content type accents (canonical mapping) */
  --content-material:  var(--sg-pink);
  --content-recording: var(--sg-blue);
  --content-notes:     var(--sg-purple);
  --content-quiz:      var(--sg-yellow);
  --content-homework:  var(--sg-peach);

  /* Status */
  --status-public:    var(--sg-green);
  --status-published: var(--sg-green);
  --status-completed: var(--sg-green);
  --status-scheduled: var(--sg-blue);
  --status-draft:     #d9d6d2;
  --status-private:   #d2cfcb;
  --status-locked:    #c8c5c1;
  --status-missing:   #e6a0a8;
  --status-late:      #e58590;
  --status-xp:        var(--sg-purple);

  /* Warm accent for editorial em / arrows (marketing brand) */
  --accent:      #A87550;
  --accent-soft: color-mix(in oklch, var(--sg-peach) 60%, white);

  /* -----------------------------------------------------------
     3. Radius (per design system)
     ----------------------------------------------------------- */
  --radius-sm:   0.5rem;   /* 8px  — icon containers, compact */
  --radius-md:   0.75rem;  /* 12px — buttons, fields */
  --radius-lg:   1rem;     /* 16px — normal cards */
  --radius-xl:   1.25rem;  /* 20px — heroes, large dialogs */
  --radius-pill: 9999px;
  --radius:      var(--radius-md);

  /* -----------------------------------------------------------
     4. Spacing (strict 4px scale)
     ----------------------------------------------------------- */
  --space-2xs: 0.25rem;    /* 4  */
  --space-xs:  0.5rem;     /* 8  */
  --space-sm:  0.75rem;    /* 12 */
  --space-md:  1rem;       /* 16 */
  --space-lg:  1.5rem;     /* 24 */
  --space-xl:  2rem;       /* 32 */
  --space-2xl: 2.5rem;     /* 40 */
  --space-3xl: 3rem;       /* 48 */
  --space-4xl: 4rem;       /* 64 */

  /* Page padding */
  --page-pad-xs: 0.75rem;
  --page-pad-sm: 1rem;
  --page-pad-md: 1.5rem;
  --page-pad-lg: 2rem;
  --page-pad-xl: 2.5rem;

  --content-max: 96rem;

  /* -----------------------------------------------------------
     5. Shadows (subtle only)
     ----------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgb(26 26 26 / 0.05);
  --shadow-sm: 0 1px 2px rgb(26 26 26 / 0.05), 0 4px 12px rgb(26 26 26 / 0.04);
  --shadow-md: 0 8px 24px rgb(26 26 26 / 0.08);

  /* -----------------------------------------------------------
     6. Motion
     ----------------------------------------------------------- */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --motion-slow: 280ms;
  --hover-lift:  -2px;

  /* Chart colors (SG-derived) */
  --chart-1: #8fb8cc;
  --chart-2: #dca8b2;
  --chart-3: #a9c493;
  --chart-4: #c8b1df;
  --chart-5: #e4bfa5;
  --chart-6: #e8d78f;

  /* WhatsApp brand — CTA identity */
  --wa: #25D366;

  /* -----------------------------------------------------------
     7. Legacy aliases (keep existing HTML working)
     ----------------------------------------------------------- */
  --bg:          var(--background);
  --bg-alt:      var(--surface-muted);
  --ink:         var(--foreground);
  --ink-soft:    color-mix(in oklch, var(--foreground) 82%, var(--muted-foreground));
  --grey:        var(--muted-foreground);
  --grey-soft:   #9A9A9A;
  --peach:       var(--sg-peach);
  --peach-soft:  color-mix(in oklch, var(--sg-peach) 45%, white);
  --beige-deep:  color-mix(in oklch, var(--sg-peach) 65%, var(--sg-grey));
  --line:        var(--border);
  --line-soft:   var(--border-subtle);
  --coral:       var(--accent);
  --coral-soft:  var(--accent-soft);
}

/* -----------------------------------------------------------
   8. DARK MODE (per design system §9, §64)
   Marketing default is light; dark opt-in via .dark on <html>
   ----------------------------------------------------------- */
.dark {
  --background:      #0d0f11;
  --foreground:      #f5f1ed;

  --surface:         #14171a;
  --surface-muted:   #16191d;
  --surface-raised:  #191d21;
  --surface-hover:   #1d2227;

  --muted:           #1a1e22;
  --muted-foreground:#aaa5a0;

  --primary:            #f5f1ed;
  --primary-foreground: #111315;

  --border:        rgb(245 241 237 / 0.10);
  --border-subtle: rgb(245 241 237 / 0.07);
  --border-strong: rgb(245 241 237 / 0.16);
  --input:         rgb(245 241 237 / 0.14);
  --ring:          #91bed4;

  --destructive:      #ef6f7e;
  --warning:          #dc6f76;
  --warning-soft:     color-mix(in oklch, #dc6f76 16%, transparent);
  --success:          #a4c58b;
  --success-soft:     color-mix(in oklch, var(--sg-green) 18%, transparent);
  --info:             #91bed4;
  --info-soft:        color-mix(in oklch, var(--sg-blue) 16%, transparent);

  --content-material:  color-mix(in oklch, var(--sg-pink)   60%, #7b3443);
  --content-recording: color-mix(in oklch, var(--sg-blue)   62%, #315f79);
  --content-notes:     color-mix(in oklch, var(--sg-purple) 60%, #634a82);
  --content-quiz:      color-mix(in oklch, var(--sg-yellow) 58%, #826b28);
  --content-homework:  color-mix(in oklch, var(--sg-peach)  58%, #80513a);

  --status-public:    color-mix(in oklch, var(--sg-green) 62%, #49663b);
  --status-published: var(--status-public);
  --status-completed: var(--status-public);
  --status-scheduled: color-mix(in oklch, var(--sg-blue) 58%, #355d74);
  --status-draft:     #55595d;
  --status-private:   #4b4f53;
  --status-locked:    #4b4f53;
  --status-missing:   #8c4650;
  --status-late:      #a94f5c;
  --status-xp:        color-mix(in oklch, var(--sg-purple) 58%, #654b83);

  --accent:      #d9a988;
  --accent-soft: color-mix(in oklch, var(--sg-peach) 16%, var(--surface));

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.18);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.20), 0 6px 18px rgb(0 0 0 / 0.16);
  --shadow-md: 0 12px 30px rgb(0 0 0 / 0.26);

  /* Legacy aliases updated for dark */
  --peach-soft: color-mix(in oklch, var(--sg-peach) 14%, var(--surface));
  --beige-deep: color-mix(in oklch, var(--sg-peach) 20%, var(--surface));
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Nunito','Noto Sans SC',-apple-system,BlinkMacSystemFont,sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  transition: background var(--motion-base) ease, color var(--motion-base) ease;
}
h1, h2 {
  font-family: 'Playfair Display','Noto Sans SC',Georgia,serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
h3, h4, h5 {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--foreground);
  font-weight: 700;
}
p { color: var(--muted-foreground); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Containers */
.wrap        { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.wrap-narrow { max-width: 840px;  margin: 0 auto; padding: 0 var(--space-xl); }
.wrap-wide   { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-xl); }
@media (max-width: 640px) {
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 var(--space-md); }
}

/* ============================================================
   TOP NAV (minimal, sticky, semantic)
   ============================================================ */
.pnav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.pnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) 0; gap: var(--space-lg);
}
.pnav-brand { display: flex; align-items: center; gap: var(--space-sm); }
.pnav-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--foreground);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.pnav-mark img { width: 60px; height: 60px; object-fit: contain; }
.pnav-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.pnav-links { display: flex; gap: var(--space-xl); align-items: center; }
.pnav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--foreground);
  transition: opacity var(--motion-fast);
}
.pnav-link:hover { opacity: 0.65; }
.pnav-link:focus-visible {
  outline: 2px solid var(--ring); outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.pnav-cta {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  background: var(--foreground); color: var(--background);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem;
  transition: background var(--motion-fast);
}
.pnav-cta:hover { background: var(--accent); color: var(--surface); }
.pnav-cta svg { width: 14px; height: 14px; }

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  font-size: 1rem;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
.dark .theme-toggle .icon-sun { display: inline; }
.dark .theme-toggle .icon-moon { display: none; }

.pnav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: var(--space-xs);
  font-size: 1.4rem; color: var(--foreground);
}
@media (max-width: 900px) {
  .pnav-links { display: none; }
  .pnav-toggle { display: block; }
  .pnav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg);
    gap: var(--space-2xs);
  }
  .pnav-links.open .pnav-link { padding: var(--space-sm) 0; border-bottom: 1px solid var(--border-subtle); }
  .pnav-links.open .pnav-cta { margin-top: var(--space-sm); justify-content: center; }
  .pnav-links.open .theme-toggle { align-self: flex-start; margin-top: var(--space-xs); }
}

/* ============================================================
   HERO
   ============================================================ */
.phero {
  padding: var(--space-4xl) 0 6rem;
  position: relative;
}
.phero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: var(--space-xl);
}
.phero-eyebrow::before {
  content: ''; width: 24px; height: 1.5px; background: var(--foreground);
}
.phero-title {
  font-size: min(6.4rem, 9vw);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
  color: var(--foreground);
}
.phero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 900;
}
.phero-lede {
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 640px;
  color: var(--muted-foreground);
  margin-bottom: var(--space-2xl);
  font-weight: 500;
}
.phero-lede strong { color: var(--foreground); font-weight: 700; }

.phero-actions {
  display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap;
}
.phero-trust {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--space-md);
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-weight: 600;
}
.phero-trust strong { color: var(--foreground); font-weight: 800; }
.phero-avatars { display: inline-flex; }
.phero-avatars > div {
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--background);
  background: var(--sg-peach);
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 800; font-size: 0.72rem;
  color: var(--sg-black);
}
.phero-avatars > div:first-child   { margin-left: 0; }
.phero-avatars > div:nth-child(2)  { background: var(--sg-blue); }
.phero-avatars > div:nth-child(3)  { background: var(--sg-pink); }
.phero-avatars > div:nth-child(4)  { background: var(--sg-green); }
.phero-avatars > div:nth-child(5)  { background: var(--foreground); color: var(--background); }

/* ============================================================
   BUTTONS (shared, non-arbitrary sizes/radii)
   ============================================================ */
.pbtn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--motion-fast);
  text-decoration: none;
  line-height: 1;
}
.pbtn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.pbtn-primary {
  background: var(--foreground); color: var(--background);
  border-color: var(--foreground);
}
.pbtn-primary:hover {
  background: var(--accent); border-color: var(--accent);
  color: #ffffff;
  transform: translateY(var(--hover-lift));
}

.pbtn-secondary {
  background: transparent; color: var(--foreground);
  border-color: var(--border-strong);
}
.pbtn-secondary:hover {
  background: var(--foreground); color: var(--background);
  border-color: var(--foreground);
}

.pbtn-text {
  background: transparent; color: var(--foreground);
  padding: 14px 4px;
  border-bottom: 1.5px solid var(--foreground);
  border-radius: 0;
}
.pbtn-text:hover { color: var(--accent); border-color: var(--accent); }

.pbtn-wa {
  background: var(--wa); color: #ffffff; border-color: var(--wa);
}
.pbtn-wa:hover { background: color-mix(in oklch, var(--wa) 88%, black); border-color: transparent; transform: translateY(var(--hover-lift)); }

.pbtn svg { width: 16px; height: 16px; }
.pbtn-large { padding: 18px 32px; font-size: 1.05rem; }

/* ============================================================
   SECTION
   ============================================================ */
.psection { padding: var(--space-4xl) 0; }
.psection.tight { padding: 4.5rem 0; }

.psection-bg-alt   { background: var(--surface-muted); }
.psection-bg-peach { background: color-mix(in oklch, var(--sg-peach) 35%, var(--background)); }
.psection-bg-ink   { background: var(--foreground); color: var(--background); }
.psection-bg-ink h1,
.psection-bg-ink h2,
.psection-bg-ink h3 { color: var(--background); }
.psection-bg-ink p  { color: color-mix(in oklch, var(--background) 75%, transparent); }
.psection-bg-ink .psection-eyebrow { color: color-mix(in oklch, var(--background) 65%, transparent); }
.psection-bg-ink .psection-eyebrow::before { background: var(--background); }

.psection-header { margin-bottom: 4.5rem; }
.psection-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: var(--space-md);
}
.psection-eyebrow::before {
  content: ''; width: 20px; height: 1.5px; background: var(--foreground);
}
.psection-title {
  font-size: min(3.6rem, 5.2vw);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: var(--space-md);
  color: var(--foreground);
}
.psection-title em { font-style: italic; color: var(--accent); }
.psection-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 620px;
  color: var(--muted-foreground);
}

/* ============================================================
   LATEST LIST (news / announcements)
   ============================================================ */
.plist { border-top: 1px solid var(--border); }
.plist-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  transition: opacity var(--motion-fast);
}
.plist-item:hover { opacity: 0.75; }
.plist-meta {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.plist-meta span { display: block; }
.plist-meta .cat {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-bottom: var(--space-2xs);
}
.plist-title {
  font-family: 'Playfair Display','Noto Sans SC',serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.plist-arrow {
  font-size: 1.4rem; color: var(--foreground);
  transition: transform var(--motion-fast), color var(--motion-fast);
}
.plist-item:hover .plist-arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 720px) {
  .plist-item { grid-template-columns: 1fr; gap: var(--space-sm); padding: var(--space-lg) 0; }
  .plist-arrow { display: none; }
}

/* ============================================================
   FEATURE BLOCK (image + text alternating)
   ============================================================ */
.pfeat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
}
.pfeat:last-child { border-bottom: 1px solid var(--border); }
.pfeat.reverse .pfeat-media { order: 2; }
.pfeat-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-muted);
}
.pfeat-media img { width: 100%; height: 100%; object-fit: cover; }
.pfeat-content .pfeat-eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-md);
}
.pfeat-content h3 {
  font-family: 'Playfair Display','Noto Sans SC',Georgia,serif;
  font-size: min(2.4rem, 3.6vw);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.pfeat-content p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin-bottom: var(--space-lg);
}
.pfeat-list {
  list-style: none; padding: 0;
  margin: 0 0 var(--space-xl);
}
.pfeat-list li {
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-subtle);
  display: flex; gap: var(--space-sm); align-items: flex-start;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.95rem;
}
.pfeat-list li:last-child { border-bottom: 1px solid var(--border-subtle); }
.pfeat-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .pfeat { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .pfeat.reverse .pfeat-media { order: 0; }
}

/* ============================================================
   METRICS ROW
   ============================================================ */
.pmetrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pmetrics > div {
  padding: 2.75rem var(--space-lg);
  border-right: 1px solid var(--border-subtle);
}
.pmetrics > div:last-child { border-right: none; }
.pmetric-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: min(3.8rem, 5.5vw);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
  color: var(--foreground);
}
.pmetric-label {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pmetric-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-foreground);
  padding-top: var(--space-lg);
  font-weight: 500;
  font-style: italic;
}
@media (max-width: 720px) {
  .pmetrics { grid-template-columns: 1fr 1fr; }
  .pmetrics > div:nth-child(2n) { border-right: none; }
  .pmetrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
}
@media (max-width: 480px) {
  .pmetrics { grid-template-columns: 1fr; }
  .pmetrics > div { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .pmetrics > div:last-child { border-bottom: none; }
}

/* ============================================================
   TEACHER GRID
   ============================================================ */
.pteachers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}
.pteacher {
  cursor: pointer;
  transition: opacity var(--motion-fast);
  display: block; text-decoration: none; color: inherit;
}
.pteacher:hover { opacity: 0.85; }
.pteacher-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  margin-bottom: var(--space-md);
}
.pteacher-img img { width: 100%; height: 100%; object-fit: cover; }
.pteacher-name {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: var(--space-2xs);
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.pteacher-subject {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-weight: 600;
  letter-spacing: 0.03em;
}
@media (max-width: 720px) { .pteachers { grid-template-columns: 1fr; gap: var(--space-xl); } }

/* ============================================================
   JOURNEY (numbered steps)
   ============================================================ */
.pjourney {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl) var(--space-xl);
}
.pjstep-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: min(3rem, 4.5vw);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}
.pjstep h4 {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.pjstep p {
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
@media (max-width: 900px) { .pjourney { grid-template-columns: 1fr 1fr; gap: 2.25rem var(--space-lg); } }
@media (max-width: 480px) { .pjourney { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIAL / GROWTH STORIES
   ============================================================ */
.pquote {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 900px; margin: 0 auto;
}
.pquote-text {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--foreground);
  margin-bottom: var(--space-lg);
}
.pquote-text em { font-style: normal; color: var(--accent); font-weight: 800; }
.pquote-author { display: flex; align-items: center; gap: var(--space-sm); }
.pquote-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--sg-peach);
  border: 1.5px solid var(--foreground);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 800; font-size: 1rem;
  color: var(--sg-black);
}
.pquote-name { font-weight: 700; font-size: 0.95rem; color: var(--foreground); }
.pquote-meta { color: var(--muted-foreground); font-size: 0.82rem; margin-top: 2px; }

.pquotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.pquotes-grid > div {
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.pquotes-grid > div:nth-child(2n) { border-right: none; padding-right: 0; padding-left: var(--space-2xl); }
.pquotes-grid > div:last-child,
.pquotes-grid > div:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.pquotes-grid .growth-arrow {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 800; font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.pquotes-grid p {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--foreground);
  margin-bottom: var(--space-md);
}
.pquotes-grid .qname { font-weight: 700; font-size: 0.88rem; color: var(--muted-foreground); }
@media (max-width: 720px) {
  .pquotes-grid { grid-template-columns: 1fr; }
  .pquotes-grid > div { padding: var(--space-xl) 0 !important; border-right: none; }
}

/* ============================================================
   SUBJECT / INTERACTIVE CARD GRID
   ============================================================ */
.psubjects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.psub {
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
  cursor: pointer;
  display: block;
  text-decoration: none; color: inherit;
}
.psub:hover {
  border-color: var(--border-strong);
  transform: translateY(var(--hover-lift));
  box-shadow: var(--shadow-sm);
}
.psub-emoji { font-size: 2rem; margin-bottom: var(--space-md); }
.psub-name {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: var(--space-2xs);
  color: var(--foreground);
}
.psub-teacher { color: var(--muted-foreground); font-size: 0.85rem; font-weight: 600; }
.psub-arrow {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 720px) { .psubjects { grid-template-columns: 1fr; } }

/* ============================================================
   MISSION / BIG STATEMENT
   ============================================================ */
.pstatement { padding: var(--space-4xl) 0; text-align: center; }
.pstatement-text {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 720px;
  margin: 0 auto;
  color: var(--foreground);
}
.pstatement-text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
  font-family: 'Nunito','Noto Sans SC',sans-serif;
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.pcta { padding: var(--space-4xl) 0; text-align: center; }
.pcta h2 {
  font-size: min(3.6rem, 5.2vw);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.pcta p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.65;
  color: var(--muted-foreground);
}
.pcta-actions {
  display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pfoot {
  background: var(--foreground); color: var(--background);
  padding: var(--space-4xl) 0 var(--space-2xl);
}
.pfoot-top {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid color-mix(in oklch, var(--background) 12%, transparent);
}
.pfoot-top h3 {
  font-family: 'Nunito','Noto Sans SC',sans-serif;
  font-size: 1.2rem;
  color: var(--background);
  max-width: 520px;
  margin-bottom: var(--space-md);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.pfoot-top p {
  color: color-mix(in oklch, var(--background) 72%, transparent);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}
.pfoot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
.pfoot-brand h4 {
  font-family: 'Playfair Display','Noto Sans SC',serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--background); margin-bottom: var(--space-xs);
}
.pfoot-brand p {
  font-size: 0.88rem;
  color: color-mix(in oklch, var(--background) 60%, transparent);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.pfoot-col h5 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  color: color-mix(in oklch, var(--background) 55%, transparent);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.pfoot-col ul { list-style: none; padding: 0; }
.pfoot-col li { margin-bottom: var(--space-xs); }
.pfoot-col a {
  color: color-mix(in oklch, var(--background) 85%, transparent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--motion-fast);
}
.pfoot-col a:hover { color: var(--sg-peach); }
.pfoot-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.pfoot-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in oklch, var(--background) 22%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: color-mix(in oklch, var(--background) 72%, transparent);
  text-decoration: none;
  transition: all var(--motion-fast);
}
.pfoot-social a:hover { background: var(--background); color: var(--foreground); border-color: var(--background); }
.pfoot-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid color-mix(in oklch, var(--background) 12%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-md);
  color: color-mix(in oklch, var(--background) 50%, transparent);
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .pfoot-grid { grid-template-columns: 1fr 1fr; }
  .pfoot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .pfoot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STICKY WHATSAPP FLOAT
   ============================================================ */
.pwa-float {
  position: fixed; bottom: var(--space-lg); right: var(--space-lg);
  background: var(--wa); color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; gap: var(--space-sm);
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 10px 32px rgb(37 211 102 / 0.35);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
.pwa-float:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: 0 14px 40px rgb(37 211 102 / 0.45);
}
.pwa-float svg { width: 18px; height: 18px; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* -----------------------------------------------------------
   Fixed font sizes — mobile scale-down (layout reflows,
   sizes are stepped by breakpoint not fluid with viewport)
   ----------------------------------------------------------- */
@media (max-width: 900px) {
  .phero-title       { font-size: 4.6rem; }
  .pfeat-content h3  { font-size: 2.6rem; }
  .plist-title       { font-size: 1.35rem; }
  .psection-title    { font-size: 2.6rem; }
  .pcta h2           { font-size: 2.6rem; }
  .pmetric-num       { font-size: 3rem; }
  .pfoot-top h3      { font-size: 1.1rem; }
  .pstatement-text   { font-size: 1.2rem; }
  .pquote-text       { font-size: 1.05rem; }
}
@media (max-width: 720px) {
  .phero-title       { font-size: 3.4rem; }
  .phero-sub         { font-size: 1.05rem; }
  .pfeat-content h3  { font-size: 2rem; }
  .pfeat-content p   { font-size: 1rem; }
  .plist-title       { font-size: 1.2rem; }
  .psection-title    { font-size: 2rem; }
  .pcta h2           { font-size: 2.2rem; }
  .pmetric-num       { font-size: 2.6rem; }
  .pfoot-top h3      { font-size: 1rem; }
  .pstatement-text   { font-size: 1.1rem; }
  .pquote-text       { font-size: 1rem; }
}
@media (max-width: 480px) {
  .phero-title       { font-size: 2.6rem; }
  .psection-title    { font-size: 1.7rem; }
  .pcta h2           { font-size: 1.8rem; }
  .pmetric-num       { font-size: 2.2rem; }
}
