/* Killogram public site — color scheme A */
:root {
  --bg: #f2f3f1;
  --bg-mint: #e7eee9;
  --card: #ffffff;
  --ink: #121614;
  --muted: #5c6862;
  --line: #d7ddd9;
  --green: #46886d;
  --green-dark: #2f5d4b;
  --green-deep: #1c3329;
  --on-green: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18,22,20,.04), 0 12px 32px rgba(28,51,41,.06);
  --shadow-hover: 0 14px 24px rgba(18,22,20,.08), 0 36px 60px rgba(28,51,41,.2);
  --ease: 200ms ease;
  --reveal-ease: 700ms cubic-bezier(.22, 1, .36, 1);

  /* Typographic rhythm — default (Chinese) is more open than Latin */
  --lh-body: 1.85;
  --lh-heading: 1.32;
  --lh-hero: 1.3;
  --track-body: .04em;
  --track-heading: .02em;
  --track-label: .04em;
  --track-kicker: .16em;
  --measure: 38em;
  --measure-wide: 40em;
  --space-section: 112px;
  --space-section-tight: 56px;
  --space-hero: 96px 0 72px;
  --space-page-hero: 96px 0 24px;
  --space-card: 36px 32px;
  --gap-cards: 24px;
}

html[lang="en"] {
  --lh-body: 1.6;
  --lh-heading: 1.28;
  --lh-hero: 1.25;
  --track-body: .016em;
  --track-heading: .012em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  line-height: var(--lh-body);
  letter-spacing: var(--track-body);
  font-size: 16px;
  text-wrap: pretty;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 {
  line-height: var(--lh-heading);
  letter-spacing: var(--track-heading);
  text-wrap: balance;
}
main {
  flex: 1 0 auto;
  position: relative;
  z-index: 0;
}
.page-contact main {
  display: flex;
  flex-direction: column;
}
.page-contact main .band {
  flex: 1;
  display: flex;
  align-items: center;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(242,243,241,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  isolation: isolate;
  transform: translateZ(0);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  flex-shrink: 0;
  border-radius: 8px;
  transition: opacity var(--ease);
}
.brand:hover { opacity: .82; }
.brand:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.brand img { width: 36px; height: 36px; }
.wordmark { letter-spacing: -.04em; }
.wordmark span { color: var(--green); }
.wordmark sup { font-size: .5em; letter-spacing: 0; font-weight: 700; margin-left: 1px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  color: var(--muted);
}
.menu a {
  display: inline-block;
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--ease);
}
.menu a:hover { color: var(--green-dark); }
.menu a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.menu a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--green);
  margin-top: 6px;
  border-radius: 1px;
}
.menu a.btn {
  padding: 13px 20px;
  color: var(--on-green);
  letter-spacing: .05em;
}
.menu a.btn::after { content: none; }
.menu a.btn[aria-current] { color: var(--on-green); font-weight: 700; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  flex-shrink: 0;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  padding: 8px 11px;
  min-width: 36px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.lang-switch button:hover { color: var(--green-dark); background: var(--bg-mint); }
.lang-switch button[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-green);
}
.lang-switch button[aria-pressed="true"]:hover {
  background: var(--green-dark);
  color: var(--on-green);
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--on-green);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .05em;
  font-size: 13px;
  line-height: 1.3;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47,93,75,.28);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--bg-mint);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(28,51,41,.1);
}
.btn.light { background: var(--card); color: var(--green-dark); }
.btn.light:hover {
  background: var(--bg-mint);
  color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.nav-cta { display: none; flex-shrink: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.menu-toggle:hover {
  border-color: var(--green);
  background: var(--bg-mint);
}
.menu-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}
header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.open .menu-toggle span:nth-child(2) { opacity: 0; }
header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: var(--space-hero); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.28fr .72fr;
  gap: 64px;
  align-items: center;
}

/* Homepage first screen: photo behind title, not beside it */
.hero--photo { padding: 0 0 8px; }
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 740px);
  overflow: hidden;
  background: var(--green-deep);
  color: #edf4f0;
}
.hero-bg.media-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  aspect-ratio: auto;
  background: transparent;
  display: block;
}
.hero-bg.media-slot.is-filled { background: #1c3329; }
.hero-bg.media-slot figcaption { display: none; }
.hero-bg.media-slot img { object-position: center 40%; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      rgba(28, 51, 41, .88) 0%,
      rgba(28, 51, 41, .7) 36%,
      rgba(28, 51, 41, .42) 64%,
      rgba(28, 51, 41, .28) 100%),
    linear-gradient(180deg,
      rgba(28, 51, 41, .22) 0%,
      rgba(28, 51, 41, .08) 40%,
      rgba(28, 51, 41, .5) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 80px 0 88px;
}
.hero--photo .kicker { color: #9fbfb0; }
.hero--photo h1 {
  color: #fff;
  text-shadow: 0 1px 18px rgba(18, 22, 20, .25);
}
.hero--photo .lead {
  color: rgba(237, 244, 240, .9);
  text-shadow: 0 1px 12px rgba(18, 22, 20, .25);
}
.hero--photo .btn.ghost {
  color: #edf4f0;
  border-color: rgba(255, 255, 255, .32);
}
.hero--photo .btn.ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}
.hero--photo .btn:focus-visible,
.hero--photo .btn.light:focus-visible,
.hero--photo .btn.ghost:focus-visible {
  outline-color: #edf4f0;
}
.hero--photo .facts { margin-top: 28px; }
.kicker {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  line-height: 1.4;
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-hero);
  margin: 22px 0 28px;
  text-wrap: balance;
}
html[lang="en"] .hero h1 {
  font-size: clamp(32px, 5.2vw, 58px);
}
.hero .lead { max-width: var(--measure); color: var(--muted); font-size: 18px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 72px;
}
.facts div {
  background: var(--card);
  padding: 28px 32px;
  transition: background var(--ease);
}
.facts b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: var(--track-heading);
  line-height: 1.4;
  margin-bottom: 8px;
}
.facts span { color: var(--muted); font-size: 13px; line-height: var(--lh-body); }

.hero-panel {
  background: var(--green-deep);
  border-radius: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-panel img { width: 58%; height: auto; position: relative; z-index: 1; }
.hero-panel:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(70,136,109,.55), transparent 42%);
  pointer-events: none;
}

.page-hero { padding: var(--space-page-hero); }
.page-hero:has(.split) { padding-bottom: 80px; }
.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-hero);
  margin: 20px 0 24px;
}
html[lang="en"] .page-hero h1 { font-size: clamp(32px, 5vw, 56px); }

section { padding: var(--space-section) 0; }
section.tight { padding-top: var(--space-section-tight); }
.about-blocks { display: grid; gap: 72px; }
.about-blocks .lead { margin-bottom: 0; }
section.alt { background: var(--bg-mint); }
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-heading);
  margin-bottom: 20px;
}
.lead { color: var(--muted); max-width: var(--measure); margin-bottom: 48px; }
.lead.wide { max-width: var(--measure-wide); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.grid { display: grid; gap: var(--gap-cards); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: 1 / -1; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}
.card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-heading);
  margin-bottom: 14px;
}
.card ul { color: var(--muted); padding-left: 18px; margin: 18px 0 28px; }
.card li { margin: 10px 0; }
a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card:hover,
a.card:hover {
  transform: translateY(-10px);
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
}
.card:focus-visible,
a.card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow);
}
.card.featured:hover {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 1px var(--green-dark), var(--shadow-hover);
}

.price { font-size: 28px; font-weight: 800; color: var(--green-dark); letter-spacing: .01em; line-height: 1.3; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.muted { color: var(--muted); }
.card .desc { color: var(--muted); flex: 1; }
.card .desc + .price,
.card p + .price { margin-top: 20px; }
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  color: var(--green-dark);
  background: var(--bg-mint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.card-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card-actions .btn { width: 100%; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--track-label);
  color: var(--green-dark);
  transition: gap var(--ease), color var(--ease);
}
.more:after { content: "→"; transition: transform var(--ease); }
a.card:hover .more { gap: 12px; color: var(--green); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards); }
.step { padding: var(--space-card); }
.num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: var(--track-kicker);
  line-height: 1.4;
  color: var(--green);
  margin-bottom: 20px;
}

/* 開始流程：連成一條路徑，而不是三張互不相連的卡片 */
.steps-path {
  gap: 0;
  position: relative;
  align-items: start;
}
.steps-path .step {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 20px;
  text-align: center;
}
.steps-path .step:hover {
  transform: none;
  box-shadow: none;
}
.steps-path .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  font-size: 13px;
  letter-spacing: .06em;
  position: relative;
  z-index: 1;
}
.steps-path .step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-heading);
  margin: 0 0 8px;
}
.steps-path .step .muted {
  margin: 0;
}
.steps-path .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: var(--green);
  opacity: .35;
  pointer-events: none;
}

.contact p { margin: 14px 0; color: var(--muted); }
.contact a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease);
  border-radius: 2px;
}
.contact a:hover { color: var(--green); text-decoration: underline; }
.contact a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.band {
  background: var(--green-deep);
  color: #edf4f0;
  padding: var(--space-section) 0;
}
.band h1, .band h2 { color: #fff; }
.band h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-hero);
  margin: 20px 0 24px;
}
.band .lead { color: rgba(237,244,240,.78); }
.band .card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
  color: #edf4f0;
}
.band .card:hover {
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  transform: translateY(-6px);
  background: rgba(255,255,255,.07);
}
.band .card h3 { color: #fff; }
.band .contact p { color: rgba(237,244,240,.78); }
.band .contact a { color: #cfe3d9; }
.band .contact a:hover { color: #fff; }
.band .kicker { color: #9fbfb0; }
.band .btn.ghost {
  color: #edf4f0;
  border-color: rgba(255,255,255,.28);
}
.band .btn.ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 13px;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot .brand img { width: 28px; height: 28px; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  letter-spacing: var(--track-label);
}
.foot-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color var(--ease);
}
.foot-links a:hover { color: var(--green-dark); }
.foot-links a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.foot-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.nowrap { white-space: nowrap; }
.only-desktop { display: none; }
@media (min-width: 861px) { .only-desktop { display: inline; } }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; }
  header.open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: #f2f3f1;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    gap: 6px;
    box-shadow: 0 16px 32px rgba(28,51,41,.08);
    isolation: isolate;
    z-index: 50;
  }
  header.open .menu a {
    padding: 14px 8px;
    font-size: 16px;
    line-height: 1.5;
  }
  header.open .menu a[aria-current="page"]::after { display: none; }
  header.open .menu a[aria-current="page"] {
    background: var(--bg-mint);
    border-radius: 8px;
    color: var(--green-dark);
  }
  header.open .menu a.btn {
    margin-top: 8px;
    text-align: center;
    padding: 13px 20px;
  }
  .nav-cta { display: inline-flex; }
  .hero-grid, .split, .grid-2, .grid-3, .steps, .facts,
  .family-grid, .family-grid-3 { grid-template-columns: 1fr; }
  .feature-row,
  .feature-row.is-flip {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    gap: 28px;
  }
  .feature-stack { gap: 24px; }
  .feature-photo { min-height: 280px; }
  .feature-photo .feature-copy { padding: 72px 22px 22px; }
  .steps-path {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps-path .step {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    text-align: left;
    justify-items: start;
    padding: 0 0 28px;
  }
  .steps-path .step:last-child { padding-bottom: 0; }
  .steps-path .num {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    align-self: start;
  }
  .steps-path .step h3,
  .steps-path .step .muted { grid-column: 2; }
  .steps-path .step:not(:last-child)::after {
    top: 48px;
    left: 21px;
    width: 2px;
    height: calc(100% - 52px);
  }
  .family-body { padding: 56px 20px 20px; }
  .media-slot--hero { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero { padding: 56px 0 48px; }
  .hero.hero--photo { padding: 0 0 8px; }
  .hero-stage { min-height: clamp(420px, 68vh, 640px); }
  .hero-copy { padding: 56px 0 64px; }
  .hero-shade {
    background:
      linear-gradient(180deg,
        rgba(28, 51, 41, .7) 0%,
        rgba(28, 51, 41, .78) 50%,
        rgba(28, 51, 41, .88) 100%);
  }
  .hero-bg.media-slot,
  .hero--photo .media-slot--hero {
    max-width: none;
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
  }
  .hero--photo .facts { margin-top: 24px; }
  .page-hero { padding: 56px 0 16px; }
  .page-hero:has(.split) { padding-bottom: 56px; }
  .hero-panel { border-radius: 22px; max-width: 420px; margin: 0 auto; }
  section, .band { padding: 72px 0; }
  section.tight { padding-top: 40px; }
  .facts { margin-top: 48px; }
  .facts div { padding: 24px 28px; }
  .card, .step { padding: 32px 24px; }
  .about-blocks { gap: 56px; }
  .btn { padding: 12px 16px; }
  .nav { gap: 10px; }
  .nav-right, .header-tools { gap: 8px; }
  .wrap { width: min(1120px, calc(100% - 40px)); }
}

@media (max-width: 520px) {
  .wordmark { display: none; }
}

/* Scroll / load entrance — only applied when <html> has .js */
@keyframes klg-reveal-fallback {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: klg-reveal-fallback 0.01s linear 2.5s forwards;
}
.js .reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: none;
  transition:
    opacity var(--reveal-ease),
    transform var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover, a.card:hover, .btn:hover, .band .card:hover,
  a.family-card:hover, .family-card:hover {
    transform: none;
  }
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* Image slots and product-style zoning */
.media-slot {
  position: relative;
  z-index: 0;
  isolation: isolate;
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(70,136,109,.07), rgba(28,51,41,.03)),
    var(--bg-mint);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}
.media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.media-slot.is-filled {
  background: #1c3329;
}
.media-slot.is-filled img { display: block; }
.media-slot.is-filled figcaption { display: none; }
.media-slot figcaption {
  position: relative;
  text-align: center;
  color: var(--muted);
  padding: 24px 20px;
  pointer-events: none;
}
.media-slot-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
}
.media-slot-file {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  font-family: "Plus Jakarta Sans", ui-monospace, monospace;
  opacity: .72;
}
.media-slot--hero {
  aspect-ratio: 1;
}
.media-slot--wide {
  aspect-ratio: 16 / 10;
}

/* 倒立班與其他課程用同一顯示框；保留略偏上的裁切，以免直向相在橫框裡裁走太多主體 */
.media-slot[data-slot="class-handstand"] img {
  object-position: center 42%;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.family-card {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: var(--green-deep);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 11;
  text-decoration: none;
  color: #edf4f0;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}
.family-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(28, 51, 41, .08) 0%,
    rgba(28, 51, 41, .28) 42%,
    rgba(28, 51, 41, .88) 100%);
}
.family-card .media-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  aspect-ratio: auto;
  background: transparent;
}
.family-card .media-slot figcaption { display: none; }

/* 手機／窄屏：橫向框不變，文案疊在圖上以節省高度 */
@media (max-width: 860px) {
  .family-card {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }
  .family-card .media-slot {
    aspect-ratio: auto;
    max-height: none;
  }
  .family-body { padding: 56px 20px 20px; }
}
.family-body {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 72px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  color: #edf4f0;
}
.family-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-heading);
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(18, 22, 20, .28);
}
.family-body p {
  color: rgba(237, 244, 240, .92);
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(18, 22, 20, .25);
}
.family-body .muted { margin-bottom: 0; }
.family-body ul {
  color: var(--muted);
  padding-left: 18px;
  margin: 16px 0 20px;
}
.family-body li { margin: 8px 0; }
.family-body .price { margin-top: 18px; }
.family-body .more,
a.family-card .more {
  padding-top: 12px;
  color: #fff;
}
a.family-card:hover .more { gap: 12px; color: #fff; }
.family-card .card-actions { padding-top: 24px; }
.family-card.is-featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow);
}
.family-card .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  margin-bottom: 0;
}
a.family-card:hover,
.family-card:hover {
  transform: translateY(-10px);
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
}
.family-card.is-featured:hover {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 1px var(--green-dark), var(--shadow-hover);
}
a.family-card:focus-visible,
.family-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.feature-stack { display: grid; gap: 28px; }
.feature-photo {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  background: var(--green-deep);
  color: #edf4f0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  scroll-margin-top: 96px;
}
.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(28, 51, 41, .12) 0%,
    rgba(28, 51, 41, .36) 45%,
    rgba(28, 51, 41, .9) 100%);
}
.feature-photo .media-slot,
.feature-photo .media-slot--wide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  aspect-ratio: auto;
  background: transparent;
}
.feature-photo .media-slot figcaption { display: none; }
.feature-photo .feature-copy {
  position: relative;
  z-index: 2;
  padding: 88px 28px 28px;
  max-width: 40em;
}
.feature-photo .feature-copy h2 {
  color: #fff;
  text-shadow: 0 1px 14px rgba(18, 22, 20, .28);
}
.feature-photo .feature-copy .lead,
.feature-photo .feature-copy .muted {
  color: rgba(237, 244, 240, .92);
  text-shadow: 0 1px 10px rgba(18, 22, 20, .25);
}
.feature-photo .feature-copy .lead { margin-bottom: 22px; }
.feature-photo .btn:focus-visible {
  outline-color: #edf4f0;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "media" "copy";
  gap: 28px;
  align-items: center;
  scroll-margin-top: 96px;
}
.feature-row > .media-slot { grid-area: media; }
.feature-row > .feature-copy { grid-area: copy; }
.feature-row.is-flip {
  grid-template-columns: 1fr;
  grid-template-areas: "media" "copy";
}

@media (min-width: 861px) {
  .family-grid { grid-template-columns: 1fr 1fr; }
  .family-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .feature-photo { min-height: 400px; }
  .feature-photo .feature-copy { padding: 96px 40px 36px; }
  .feature-row {
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas: "media copy";
    gap: 72px;
  }
  .feature-row.is-flip {
    grid-template-columns: .95fr 1.05fr;
    grid-template-areas: "copy media";
  }
}
.feature-copy {
  position: relative;
  z-index: 1;
}
.feature-copy .kicker { margin-bottom: 12px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy .lead { margin-bottom: 28px; }
.feature-copy .muted + .price,
.feature-copy .lead + .price { margin-top: 8px; }

#classes-overview,
#fees-overview,
#foundation,
#handstand,
#advanced,
#private,
#group-trial,
#pack-10,
#pack-20,
#booking-rules,
#booking,
#weather,
#packs,
#trials,
#private-notes,
#fees,
#safety,
#group-trial,
#group,
#plan-10,
#plan-20,
#private,
#private-trial,
#plans-notes { scroll-margin-top: 96px; }

.notes-stack {
  display: grid;
  gap: 56px;
  max-width: 40em;
}
.notes-stack h2 {
  margin-bottom: 16px;
}
.notes-stack h3 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}
.notes-stack h3 + p,
.notes-stack p + p {
  margin-top: 8px;
}
.notes-stack ul {
  color: var(--muted);
  padding-left: 18px;
  margin: 0;
}
.notes-stack li { margin: 10px 0; }
.notes-stack p {
  color: var(--muted);
  margin: 0;
}

#enquiry { scroll-margin-top: 96px; }

.enquiry-form {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  display: grid;
  gap: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field,
.enquiry-form fieldset.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  min-width: 0;
}
.form-field > span,
.form-field legend {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--track-label);
  color: var(--muted);
  float: none;
  width: auto;
  padding: 0;
}
.enquiry-form input[type="text"],
.enquiry-form input[type="tel"],
.enquiry-form input[type="email"],
.enquiry-form select,
.enquiry-form textarea {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--track-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  appearance: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.enquiry-form textarea { resize: vertical; min-height: 96px; }
.enquiry-form input:hover,
.enquiry-form select:hover,
.enquiry-form textarea:hover { border-color: var(--green); }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(70,136,109,.18);
  background: #fff;
}
.enquiry-form select {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235c6862' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  line-height: 1.45;
  transition: border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.chip:hover { border-color: var(--green); }
.chip:has(input:checked) {
  border-color: var(--green-dark);
  background: var(--bg-mint);
  color: var(--green-deep);
  box-shadow: 0 0 0 1px var(--green);
}
.chip:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(70,136,109,.28);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.form-note { margin: 0; font-size: 13px; }
.form-note a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}
.form-note a:hover { color: var(--green); text-decoration: underline; }

.map-tip-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 24px 0 0;
}
.map-tip-cta .muted {
  flex: 1 1 260px;
  margin: 0;
  max-width: 40em;
}

.site-dialog {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  position: fixed;
  inset: 0;
  height: fit-content;
}
.site-dialog::backdrop {
  background: rgba(18, 22, 20, .48);
}
.site-dialog-inner {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 28px 28px 32px;
  overflow: auto;
  max-height: calc(100vh - 32px);
}
.site-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.site-dialog-head h2 {
  font-size: 28px;
  margin: 0;
}
.dialog-lead { margin: 0 0 8px; }
.dialog-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background var(--ease), color var(--ease);
}
.dialog-close:hover { background: var(--bg-mint); color: var(--ink); }
.dialog-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.site-dialog .enquiry-form {
  margin-top: 20px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .enquiry-form { padding: 28px 20px; }
  .site-dialog-inner { padding: 22px 18px 24px; }
}

/* Fees page — layered trial / group / private */
.plans-stack {
  display: grid;
  gap: 40px;
}
.plans-stack .card {
  padding: 36px 36px 32px;
  box-shadow: var(--shadow);
}
.plans-stack .card:hover {
  transform: translateY(-4px);
}

.plans-trial-head,
.plans-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: baseline;
}
.plans-trial-head h2,
.plans-col-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-heading);
}
.plans-trial-head .price,
.plans-item .price {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--green-dark);
  text-align: right;
  white-space: nowrap;
}
.plans-col-head {
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: static;
  z-index: auto;
  isolation: auto;
  transform: none;
}
.plans-col-sub {
  margin: 6px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--track-body);
  line-height: 1.5;
  color: #5c6862;
}
.plans-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 10px;
  color: #5c6862;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.5;
}
.plans-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--line);
}
.plans-support,
.plans-foot p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: var(--track-body);
  color: #5c6862;
}
.plans-trial .plans-support { max-width: 42em; }

@media (min-width: 861px) {
  .plans-trial {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 28px 40px;
  }
  .plans-trial .card-actions {
    margin-top: 0;
    padding-top: 0;
    width: auto;
  }
  .plans-trial .card-actions .btn { width: auto; min-width: 168px; }
}

.plans-split { align-items: stretch; gap: var(--gap-cards); }
.plans-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: baseline;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.plans-item-head { display: contents; }
.plans-item h3 {
  grid-column: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-heading);
}
.plans-item .price { grid-column: 2; }
.plans-item .plans-support { grid-column: 1 / -1; }
.plans-better {
  display: inline;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  vertical-align: 1px;
  white-space: nowrap;
}
.plans-col-note { margin-top: 20px; }
.plans-col .card-actions { padding-top: 24px; }

.plans-foot { max-width: 42em; }
.plans-foot p { margin: 0 0 20px; }
.plans-foot a { color: var(--green-dark); font-weight: 600; }
.plans-foot .cta { margin-top: 0; }

@media (max-width: 860px) {
  .plans-stack { gap: 28px; }
  .plans-stack .card { padding: 28px 24px 24px; }
}
@media (max-width: 520px) {
  .plans-trial-head,
  .plans-item {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .plans-trial-head .price,
  .plans-item .price {
    grid-column: 1;
    text-align: left;
    font-size: 28px;
    white-space: nowrap;
  }
  .plans-item h3 { font-size: 18px; }
}

/* Homepage / classes fee preview: supporting line stays secondary */
#fees-overview .card .desc,
.pricing-preview .card .desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #5c6862;
}
