:root {
  --ink: #17212b;
  --muted: #607080;
  --paper: #f7f4ed;
  --card: #fffdf8;
  --line: #d9dedb;
  --navy: #17324d;
  --teal: #26706d;
  --mint: #dceee7;
  --sand: #f0e5cf;
  --orange: #d97b4a;
  --red: #aa4148;
  --green: #297052;
  --shadow: 0 18px 55px rgba(23, 50, 77, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(38,112,109,.13), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(217,123,74,.10), transparent 25rem),
    var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.65;
}

a { color: var(--teal); }
img { max-width: 100%; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 56px);
  color: white;
  background: rgba(23, 50, 77, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.topbar strong { letter-spacing: .04em; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 14px; }
.topbar a { color: white; text-decoration: none; font-size: 14px; }

.hero {
  padding: clamp(56px, 8vw, 110px) clamp(20px, 7vw, 110px) 70px;
  color: white;
  background: linear-gradient(135deg, #17324d 0%, #1d4e5f 60%, #26706d 100%);
  overflow: hidden;
}
.hero .eyebrow { color: #b8ded6; font-weight: 800; letter-spacing: .13em; }
.hero h1 { margin: 10px 0 18px; max-width: 980px; font-size: clamp(34px, 6vw, 76px); line-height: 1.06; }
.hero p { max-width: 900px; margin: 0; font-size: clamp(17px, 2vw, 22px); color: #dce9ea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 800;
}
.button.primary { color: var(--navy); background: #fff; border-color: #fff; }
.button.secondary { color: #fff; background: rgba(255,255,255,.08); }

main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 90px; }
section { scroll-margin-top: 78px; margin: 0 0 64px; }
h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 42px); line-height: 1.2; color: var(--navy); }
h3 { margin: 0 0 8px; color: var(--navy); }
.lede { max-width: 860px; color: var(--muted); font-size: 18px; }
.note { padding: 14px 18px; border-left: 5px solid var(--orange); background: #fff8ec; border-radius: 8px; }
.success { border-left-color: var(--green); background: #eff8f3; }
.warning { border-left-color: var(--red); background: #fff0f0; }

.grid { display: grid; gap: 18px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.card .kicker { color: var(--teal); font-size: 13px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.metric { font-size: 38px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.muted { color: var(--muted); }
.badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.badge.pass { color: #19543c; background: #d9f1e5; }
.badge.hold { color: #8b353c; background: #f8dfe1; }
.badge.setup { color: #7d4a18; background: #f7e8cc; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: white; background: var(--navy); }
tr:last-child td { border-bottom: 0; }

.prompt {
  margin: 12px 0;
  padding: 16px 18px;
  white-space: pre-wrap;
  color: #243547;
  background: #f2f6f5;
  border: 1px solid #d4e2df;
  border-radius: 12px;
  font-size: 14px;
}

.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
figure { margin: 0; background: #13263a; border: 1px solid #2c4255; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
figure a { display: block; background: #0d1926; }
figure img { display: block; width: 100%; height: auto; }
figcaption { padding: 11px 14px; color: #dbe5e9; font-size: 13px; }

.timeline { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 20px 20px 20px 74px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.kids { font-size: 19px; }
.kids h2 { font-size: clamp(31px, 5vw, 52px); }
.kids .step { font-size: 19px; padding-top: 24px; padding-bottom: 24px; }
.kids .say { display: block; margin-top: 10px; padding: 14px; border-radius: 12px; background: #e9f4f1; font-weight: 800; }

footer { padding: 35px 20px 55px; text-align: center; color: var(--muted); }

@media (max-width: 780px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .grid.two, .shot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  main { width: min(100% - 22px, 1240px); }
  .card { padding: 17px; }
}

@media print {
  .topbar { display: none; }
  body { background: white; }
  .hero { color: var(--ink); background: white; padding: 20px 0; }
  .hero p, .hero .eyebrow { color: var(--muted); }
  main { width: 100%; }
  section { break-inside: avoid; }
}
