/* ==========================================================
   1percent_tutorial · DSE 數理補習 — v3
   Apple-style: white and #f5f5f7, near-black ink, one blue accent.
   Motion: a 3D particle field behind the page (js/scene.js),
   scroll-driven reveals, soft light and depth on hover/press.
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-2: #2997ff;
  --accent-3: #5e5ce6;
  --accent-soft: #e8f2fd;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-3));

  --radius: 28px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--font);

  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page { overflow-x: clip; }

/* ---------- Light layer (behind content) ---------- */

.light-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.cursor-light {
  position: absolute;
  left: 0; top: 0;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, .09) 0%, rgba(41, 151, 255, .05) 34%, transparent 68%);
  opacity: 0;
  transition: opacity .8s var(--ease);
  will-change: transform;
}
.cursor-light.on { opacity: 1; }
.click-glow {
  position: absolute;
  left: 0; top: 0;
  width: 160px; height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, .16), rgba(0, 113, 227, 0) 68%);
  animation: click-glow .9s var(--ease) forwards;
}
@keyframes click-glow {
  from { transform: translate(var(--x), var(--y)) scale(.25); opacity: 1; }
  to { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(0, 113, 227, .45);
  z-index: 70;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  z-index: 50;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-color: rgba(29, 29, 31, .06);
  box-shadow: 0 10px 40px -18px rgba(29, 29, 31, .18);
}

.brand { display: flex; align-items: center; gap: 11px; }
/* Logo: a 3D coin with "1%" on the front and the 5** grade on the back.
   It sways gently, a glint crosses it, and it flips over on hover. */
.brand-mark {
  flex: none;
  width: 36px; height: 36px;
  perspective: 320px;
}
.bm-coin {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-back);
  animation: coin-sway 7s ease-in-out infinite;
}
.bm-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 11px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 8px 18px -8px rgba(29, 29, 31, .55);
}
.bm-face svg { display: block; width: 100%; height: 100%; }
.bm-back { transform: rotateY(180deg); box-shadow: 0 8px 20px -6px rgba(0, 113, 227, .65); }
.bm-front::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%; left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: shine-idle 6s var(--ease) 2.5s infinite;
}
@media (hover: hover) { .brand:hover .bm-coin, .brand:focus-visible .bm-coin { transform: rotateY(180deg); } }
@keyframes coin-sway {
  0%, 100% { rotate: y -14deg; }
  50% { rotate: y 14deg; }
}
.brand-name {
  display: grid;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}
.brand-name small {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.brand-tag {
  font-size: 12px;
  color: var(--ink-3);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .25s, background-color .25s, box-shadow .35s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 113, 227, .8);
  transform: scale(0);
  transition: transform .4s var(--ease-back);
}
@media (hover: hover) { .nav-links a:hover { color: var(--ink); background: var(--bg-soft); } }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scale(1); }

@media (max-width: 960px) { .brand-tag { display: none; } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  --bx: 50%;
  --by: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), translate .6s var(--ease), background-color .35s, color .35s,
              box-shadow .45s var(--ease), border-color .35s;
}
/* light that follows the pointer inside the button */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(110px circle at var(--bx) var(--by), var(--btn-light, rgba(255, 255, 255, .32)), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
/* a band of light that sweeps across */
.btn::after,
.offer::after,
.float-cta::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, var(--btn-shine, rgba(255, 255, 255, .38)), transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) { .btn:hover::before { opacity: 1; } }
@media (hover: hover) { .btn:hover::after { animation: shine .95s var(--ease); } }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }

@keyframes shine {
  from { transform: translateX(-160%) skewX(-18deg); }
  to { transform: translateX(360%) skewX(-18deg); }
}
@keyframes shine-idle {
  0% { transform: translateX(-160%) skewX(-18deg); }
  24%, 100% { transform: translateX(360%) skewX(-18deg); }
}

.btn-sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -12px rgba(29, 29, 31, .45); }
@media (hover: hover) { .btn-ink:hover {
  background: var(--accent);
  box-shadow: 0 18px 40px -14px rgba(0, 113, 227, .65), 0 0 0 4px rgba(0, 113, 227, .12);
} }
.btn-ghost {
  --btn-light: rgba(0, 113, 227, .12);
  --btn-shine: rgba(0, 113, 227, .12);
  border-color: var(--line);
  background: rgba(255, 255, 255, .75);
}
@media (hover: hover) { .btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(29, 29, 31, .3);
} }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
@media (hover: hover) { .btn:hover .arrow { transform: translate(3px, -3px); } }

/* primary CTA: soft breathing halo + an occasional sweep of light */
.btn-glow { animation: halo 3.6s ease-in-out infinite; }
.btn-glow::after { animation: shine-idle 5.5s var(--ease) 2s infinite; }
@media (hover: hover) { .btn-glow:hover { animation: none; } }
@keyframes halo {
  0%, 100% { box-shadow: 0 12px 30px -12px rgba(29, 29, 31, .45), 0 0 0 0 rgba(0, 113, 227, 0); }
  50% { box-shadow: 0 16px 36px -12px rgba(0, 113, 227, .5), 0 0 0 6px rgba(0, 113, 227, .09); }
}
.btn-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 14px -4px rgba(0, 113, 227, .8);
  transition: background .35s, color .35s;
}
@media (hover: hover) { .btn-ink:hover .btn-badge { background: #fff; color: var(--accent); } }

/* press ripple (added by site.js) */
.ripple {
  position: absolute;
  z-index: -1;
  left: 0; top: 0;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, var(--ripple, rgba(255, 255, 255, .42)) 0%, transparent 70%);
  transform: translate(var(--x), var(--y)) scale(0);
  animation: ripple .8s var(--ease) forwards;
  pointer-events: none;
}
.btn-ghost, .lux { --ripple: rgba(0, 113, 227, .14); }
@keyframes ripple {
  60% { opacity: 1; }
  to { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
}

/* ---------- Hero ---------- */

.hero {
  --hp: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 90px;
  isolation: isolate;
}
.hero::before {
  /* faint graph-paper dots */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, #d5d9e2 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 10%, transparent 75%);
  opacity: .8;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  width: 60vw; height: 60vw;
  right: -10vw; top: -10vw;
  background: radial-gradient(circle, rgba(0, 113, 227, .08), transparent 60%);
  pointer-events: none;
}

/* 3D particle field (js/scene.js): fixed behind all content */
#depth-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; max-width: 640px; }
.hero-inner > .hero-title { max-width: 780px; }
.hero-inner > .hero-sub { max-width: 540px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 113, 227, .5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); }
  70% { box-shadow: 0 0 0 10px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

.hero-title {
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.grad {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-3) 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-2);
  margin-bottom: 36px;
}
.hero-sub b { color: var(--ink); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
}
.hero-chips b { color: var(--accent); margin-right: 2px; }

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}
.hint-line {
  position: relative;
  width: 2px; height: 24px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.hint-line::after {
  content: "";
  position: absolute;
  left: 0; top: -45%;
  width: 100%; height: 45%;
  border-radius: 2px;
  background: var(--accent);
  animation: hint-drop 1.9s var(--ease) infinite;
}
@keyframes hint-drop { to { top: 100%; } }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 30px;
  width: 26px; height: 42px;
  border: 1.5px solid var(--ink-3);
  border-radius: 999px;
  transition: border-color .3s, box-shadow .4s var(--ease);
}
@media (hover: hover) { .scroll-cue:hover { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(0, 113, 227, .1); } }
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--ink);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* hero entrance */
.hero-in {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
.hero-title .hero-in { transform: translateY(105%); filter: none; }
.hero-hint.hero-in { transform: translate(-50%, 20px); }
html.loaded .hero-in { opacity: 1; transform: none; filter: none; }
html.loaded .hero-hint.hero-in { transform: translate(-50%, 0); }

/* hero content drifts up and fades as you scroll away (desktop) */
@media (min-width: 861px) {
  .hero-inner {
    transform: translate3d(0, calc(var(--hp) * -80px), 0);
    opacity: calc(1 - var(--hp) * .9);
  }
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-top: 110px;
    padding-bottom: 40px;
    min-height: 0;
  }
  .hero-title { font-size: clamp(32px, 9.2vw, 60px); }
  .hero-hint {
    position: static;
    order: 3;
    transform: none;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .hero-hint.hero-in, html.loaded .hero-hint.hero-in { transform: none; }
  .scroll-cue { display: none; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 10%, transparent 75%); }
}
@media (max-width: 400px) {
  .hero-cta .btn { padding: 0 20px; }
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 44s linear infinite;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--accent); font-size: .6em; }
.marquee-track span:nth-of-type(odd) { color: var(--ink); }
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 160px) var(--gutter);
}

.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.kicker span {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--accent);
}
.kicker::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease) calc(var(--rd, 0ms) + var(--pre, 0ms) + .35s);
}
.kicker.in::after { transform: none; }
.kicker em { display: inline-block; font-style: normal; }

h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
}

/* ---------- Pointer-reactive transitions ---------- */

/* rotate = tilt, translate = lift, transform/opacity/filter = entrances. Keeping them on
   separate properties lets them combine without overwriting each other. */
.lux {
  transition-property: opacity, transform, filter, rotate, translate, box-shadow, border-color, background-color;
  transition-duration: 1s, 1.25s, 1s, var(--rot-dur, .9s), .55s, .55s, .4s, .4s;
  transition-timing-function: var(--ease);
}

/* ---------- Light-reactive surfaces ---------- */

.lux {
  --mx: 50%;
  --my: 50%;
  position: relative;
  z-index: 0; /* a stacking context for the sheen; unlike overflow/isolation it keeps 3D children 3D */
}
/* soft sheen under the pointer */
.lux::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(var(--sheen-r, 380px) circle at var(--mx) var(--my), var(--sheen, rgba(0, 113, 227, .07)), transparent 60%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
/* the edge catches the light: a 1px glowing rim near the pointer */
.lux::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--edge, rgba(41, 151, 255, .95)), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.lux.is-lit::before, .lux.is-lit::after { opacity: 1; }
/* press bloom container (added by site.js), clipped to the card's corners */
.lux-clip {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
/* when a card scrolls in, a band of light runs once along its edge */
.lux.in::after { animation: edge-sweep 1.9s var(--ease) calc(var(--rd, 0ms) + .45s) backwards; }
@keyframes edge-sweep {
  0% {
    opacity: 0;
    background: linear-gradient(110deg, transparent 42%, var(--edge, rgba(41, 151, 255, .95)) 50%, transparent 58%) 130% 0 / 300% 100% no-repeat;
  }
  20%, 75% { opacity: 1; }
  100% {
    opacity: 0;
    background: linear-gradient(110deg, transparent 42%, var(--edge, rgba(41, 151, 255, .95)) 50%, transparent 58%) -30% 0 / 300% 100% no-repeat;
  }
}

/* ---------- Results (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 18px;
  perspective: 1400px;
}

.grade-card {
  --sheen: rgba(255, 255, 255, .95);
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.grade-card.is-lit { translate: 0 -4px; box-shadow: 0 30px 60px -32px rgba(29, 29, 31, .28); }

.grade-hero {
  --sheen: rgba(0, 113, 227, .35);
  --sheen-r: 500px;
  --edge: rgba(130, 146, 255, .95);
  grid-column: span 2;
  grid-row: span 2;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  padding: 34px 36px;
}
.grade-hero.is-lit { box-shadow: 0 34px 70px -30px rgba(0, 113, 227, .5); }
.grade-wide { grid-column: span 2; }

.gc-top { display: flex; flex-direction: column; gap: 2px; }
.gc-en { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.gc-zh { font-size: 14px; color: var(--ink-3); }
.grade-hero .gc-zh { color: rgba(255, 255, 255, .55); }

.grade {
  display: flex;
  align-items: flex-start;
  margin-top: auto;
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .9;
  font-size: clamp(90px, 9vw, 132px);
  padding-top: 14px;
}
.grade-hero .grade { font-size: clamp(140px, 17vw, 250px); }
.grade-sm { font-size: clamp(76px, 7vw, 104px); }
.g-star {
  color: var(--accent);
  font-size: .5em;
  line-height: 1;
  margin-left: .02em;
  display: inline-block;
  position: relative;
  transform: scale(0) rotate(-120deg);
  transition: transform .8s var(--ease-back);
  transition-delay: calc(var(--rd, 0ms) + 1.45s + var(--s) * 200ms);
}
.g-star::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: .9em; height: .9em;
  margin: -.45em 0 0 -.45em;
  border-radius: 50%;
  border: .06em solid currentColor;
  opacity: 0;
  pointer-events: none;
}
.in .g-star::after { animation: ring-out .9s var(--ease) calc(var(--rd, 0ms) + 1.55s + var(--s) * 200ms) backwards; }
.grade-hero .g-star { color: var(--accent-2); text-shadow: 0 0 24px rgba(41, 151, 255, .6); }
.in .g-star { transform: none; }

.gc-note { font-size: 15px; color: rgba(255, 255, 255, .65); margin: 8px 0 24px; }

.meter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 18px;
}
.meter i {
  height: 6px;
  border-radius: 6px;
  background: rgba(29, 29, 31, .08);
  position: relative;
  overflow: hidden;
}
.grade-hero .meter i { background: rgba(255, 255, 255, .12); }
.meter i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease);
  transition-delay: calc(var(--rd, 0ms) + .8s + var(--n, 0) * 90ms);
}
.in .meter i.on::after { transform: scaleX(1); }
.grade-hero .meter i::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.meter-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}
.meter-labels span:last-child { color: var(--accent-2); font-weight: 600; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .grade-hero { grid-column: span 2; grid-row: auto; }
  .grade-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { gap: 12px; grid-auto-rows: minmax(180px, auto); }
  .grade-card { padding: 22px; }
  .gc-en { font-size: 23px; }
}

/* ---------- Approach ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1400px;
}
.ap-card {
  --sheen: var(--accent-soft);
  --sheen-r: 360px;
  padding: 34px 30px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.ap-card.is-lit { translate: 0 -4px; border-color: transparent; box-shadow: 0 30px 70px -30px rgba(29, 29, 31, .25); }

.ap-num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-3);
}
.ap-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--ink);
  margin-bottom: 44px;
  transition: transform .6s var(--ease-back), background-color .4s, box-shadow .5s var(--ease);
}
.ap-card.is-lit .ap-icon {
  transform: rotate(-8deg) scale(1.06);
  background: var(--accent);
  box-shadow: 0 12px 28px -10px rgba(0, 113, 227, .7);
}
.ap-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-icon svg circle:only-of-type { fill: #fff; }
.ap-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.ap-card p { color: var(--ink-2); font-size: 16px; }

@media (max-width: 900px) {
  .approach-grid { grid-template-columns: 1fr; }
  .ap-icon { margin-bottom: 28px; }
}

/* ---------- Pricing (scroll-driven) ---------- */

.pricing {
  position: relative;
  height: 330vh;
  /* translucent so the pointer light still shows through */
  background: linear-gradient(180deg, rgba(40, 60, 120, 0) 0%, rgba(40, 60, 120, .047) 16%, rgba(40, 60, 120, .047) 84%, rgba(40, 60, 120, 0) 100%);
}
.pricing-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px var(--gutter) 40px;
  overflow: hidden;
}
.pricing-bg {
  position: absolute;
  z-index: -1;
  right: -2vw;
  bottom: -4vw;
  width: min(72vw, 1150px);
  height: auto;
  overflow: visible;
  transform: translateX(calc((1 - var(--p, 0)) * 18vw));
  pointer-events: none;
  user-select: none;
}
.pricing-bg text {
  font-family: var(--font);
  font-size: 420px;
  font-weight: 700;
  letter-spacing: -.06em;
  fill: none;
  stroke: rgba(29, 29, 31, .1);
  stroke-width: 1.6px;
  stroke-dasharray: 3400px;
  stroke-dashoffset: calc((1 - var(--p, 0)) * 3400px);
}
.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 40px;
}
.ph-main { display: grid; }
.pricing-progress {
  margin-top: 26px;
  width: 220px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.pricing-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* trial offer */
.offer {
  --bx: 50%;
  --by: 50%;
  --btn-light: rgba(41, 151, 255, .35);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 12px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 20px 44px -20px rgba(0, 113, 227, .65), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(160px circle at var(--bx) var(--by), var(--btn-light), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.offer.in::after { animation: shine-idle 6s var(--ease) 1.2s infinite; }
@media (hover: hover) { .offer:hover::before { opacity: 1; } }
@media (hover: hover) { .offer:hover { translate: 0 -3px; box-shadow: 0 26px 54px -20px rgba(0, 113, 227, .8), 0 0 0 4px rgba(0, 113, 227, .14); } }
.offer:active { translate: 0 0; }
.offer-pct {
  display: grid;
  place-items: center;
  align-content: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: var(--accent-grad);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  box-shadow: 0 10px 24px -8px rgba(0, 113, 227, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.offer-pct small { font-size: 12px; font-weight: 600; letter-spacing: 0; margin-top: 3px; }
.offer-text { display: grid; line-height: 1.35; }
.offer-text b { font-size: 17px; }
.offer-text small { font-size: 13px; color: rgba(255, 255, 255, .6); }
.offer-go {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease), background-color .3s;
}
@media (hover: hover) { .offer:hover .offer-go { background: var(--accent); transform: translate(2px, -2px); } }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1600px;
}

.price-card {
  --e: 0;
  --sheen: rgba(0, 113, 227, .06);
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -34px rgba(29, 29, 31, .28);
  opacity: var(--e);
  transform:
    translateY(calc((1 - var(--e)) * 160px))
    rotateX(calc((1 - var(--e)) * 32deg))
    scale(calc(.9 + var(--e) * .1));
  transform-origin: 50% 100%;
  clip-path: inset(calc((1 - var(--e)) * 45%) 0 0 0 round 26px);
  will-change: transform, opacity, clip-path;
  /* transform/opacity are scroll-driven, so only hover properties transition */
  transition-property: translate, box-shadow, border-color;
  transition-duration: .55s, .55s, .4s;
  transition-delay: 0s;
}
/* fully revealed: drop the clip so the shadow shows */
.price-card.settled { clip-path: none; will-change: auto; }
.price-card.is-lit { translate: 0 -6px; box-shadow: 0 34px 70px -30px rgba(29, 29, 31, .32); }
.price-card.settled::after { animation: edge-sweep 1.8s var(--ease) .1s backwards; }
.price-card.settled.is-lit::after { animation: none; }
.price-card.featured {
  --sheen: rgba(0, 113, 227, .3);
  --edge: rgba(130, 146, 255, .95);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 34px 70px -30px rgba(0, 113, 227, .45);
}
.price-card.featured.is-lit { box-shadow: 0 40px 80px -28px rgba(0, 113, 227, .65); }

.pc-trial {
  position: absolute;
  top: 26px; right: 20px;
  overflow: hidden;
  isolation: isolate;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 6px 16px -6px rgba(0, 113, 227, .75);
}
.pc-trial::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% 0;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: shine-idle 5s var(--ease) calc(1.5s + var(--i, 0) * .4s) infinite;
}
.featured .pc-trial { background: #fff; color: var(--accent); }

.pc-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.featured .pc-badge { background: var(--accent); color: #fff; }
.price-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pc-sub { font-size: 14px; color: var(--ink-3); }
.featured .pc-sub { color: rgba(255, 255, 255, .55); }

.pc-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 26px 0 18px;
  font-weight: 600;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.pc-price .cur { font-size: 26px; align-self: flex-start; margin-top: 8px; }
.pc-price [data-price] { font-size: clamp(54px, 5vw, 72px); line-height: 1; }
.pc-price .per { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-left: 8px; }
.featured .pc-price .per { color: rgba(255, 255, 255, .55); }

.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pc-chips li {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.featured .pc-chips li { border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }

.pc-list { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: auto; }
.featured .pc-list { border-color: rgba(255, 255, 255, .12); }
.pc-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pc-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230071e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.featured .pc-list li::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pricing-note {
  margin-top: 30px;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  opacity: clamp(0, calc((var(--p, 0) - .75) * 6), 1);
}

/* Laptop-height screens: tighten the stage so the whole table fits in one view. */
@media (min-width: 1081px) and (max-height: 879px) {
  .pricing-sticky { padding-top: 80px; padding-bottom: 20px; }
  .pricing .kicker { margin-bottom: 14px; }
  .pricing h2 { font-size: clamp(34px, 3.8vw, 54px); }
  .pricing-head { margin-bottom: 26px; }
  .pricing-progress { margin-top: 16px; }
  .price-card { padding: 20px 20px 22px; }
  .pc-trial { top: 20px; }
  .pc-badge { margin-bottom: 12px; }
  .pc-price { margin: 16px 0 12px; }
  .pc-price [data-price] { font-size: clamp(48px, 4.2vw, 58px); }
  .pc-chips { margin-bottom: 14px; }
  .pc-list { padding-top: 14px; gap: 6px; }
  .pricing-note { margin-top: 16px; }
}

/* Short or narrow screens: no sticky stage; each card reveals on its own.
   Keep in sync with stageQuery in site.js. */
@media (max-width: 1080px), (max-height: 719px) {
  .pricing { height: auto; padding: clamp(96px, 14vh, 140px) 0; }
  .pricing-sticky { position: relative; height: auto; padding-top: 0; padding-bottom: 0; }
  .pricing-progress { display: none; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-note { opacity: 1; }
  .pricing-bg { width: 105vw; bottom: 0; }
}
@media (max-width: 620px) {
  .price-grid { grid-template-columns: 1fr; }
  .offer { width: 100%; }
  .offer-go { margin-left: auto; }
}

/* ---------- Modes ---------- */

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  perspective: 1400px;
}
.mode-card {
  --sheen: var(--accent-soft);
  padding: 36px 34px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.mode-card.is-lit { translate: 0 -4px; border-color: transparent; box-shadow: 0 30px 70px -30px rgba(29, 29, 31, .25); }
.mode-bg {
  position: absolute;
  z-index: -1;
  top: 22px;
  right: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 113, 227, .14);
  pointer-events: none;
  transition: transform 1s var(--ease);
}
.mode-card.is-lit .mode-bg { transform: translateX(-12px); }
.mode-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 36px;
  border-radius: 18px;
  background: var(--accent-soft);
  transition: transform .6s var(--ease-back), background-color .4s, box-shadow .5s var(--ease);
}
.mode-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.mode-card.is-lit .mode-icon { background: var(--accent); transform: rotate(-6deg) scale(1.06); box-shadow: 0 12px 28px -10px rgba(0, 113, 227, .7); }
.mode-card.is-lit .mode-icon svg { stroke: #fff; }
.mode-card h3 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.mode-card p { color: var(--ink-2); max-width: 460px; }
.mode-card .mode-kind {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}
.mode-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mode-tags li {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
}
@media (max-width: 760px) {
  .modes-grid { grid-template-columns: 1fr; }
  .mode-card { padding: 30px 26px 28px; }
  .mode-icon { margin-bottom: 26px; }
}

/* ---------- Depth while a card is lit (mouse or finger) ---------- */

/* While a card tilts toward the mouse or a finger, its contents rise off the
   surface at different heights, so the tilt shows real parallax. */
.gc-top, .grade, .gc-note, .meter, .meter-labels,
.ap-num, .ap-card h3, .ap-card p,
.mode-card h3, .mode-card p, .mode-tags { transition: transform .7s var(--ease); }
[data-tilt] { transform-style: preserve-3d; }
.grade-card.is-lit .gc-top { transform: translateZ(26px); }
.grade-card.is-lit .grade { transform: translateZ(64px); }
.grade-card.is-lit .gc-note,
.grade-card.is-lit .meter,
.grade-card.is-lit .meter-labels { transform: translateZ(36px); }
.ap-card.is-lit .ap-icon { transform: translateZ(64px) rotate(-8deg) scale(1.06); }
.ap-card.is-lit .ap-num { transform: translateZ(44px); }
.ap-card.is-lit h3 { transform: translateZ(36px); }
.ap-card.is-lit p { transform: translateZ(20px); }
.mode-card.is-lit .mode-icon { transform: translateZ(64px) rotate(-6deg) scale(1.06); }
.mode-card.is-lit .mode-kind,
.mode-card.is-lit h3 { transform: translateZ(36px); }
.mode-card.is-lit p:not(.mode-kind),
.mode-card.is-lit .mode-tags { transform: translateZ(20px); }
.mode-card.is-lit .mode-bg { transform: translateZ(-40px) translateX(-12px); }

/* ---------- Steps ---------- */

.steps {
  --lp: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps-line {
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--line);
}
.steps-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(0, 113, 227, .45);
  transform-origin: 0 50%;
  transform: scaleX(var(--lp));
}
.step-dot {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-3);
  margin-bottom: 28px;
  position: relative;
  transition: background-color .5s var(--ease), border-color .5s, color .5s, transform .6s var(--ease-back), box-shadow .6s var(--ease);
}
.step.active .step-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, .1), 0 12px 28px -10px rgba(0, 113, 227, .55);
  animation: dot-flip .75s var(--ease-back);
}
.step-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.step.active .step-dot::after { animation: ring-out 1s var(--ease); }
@keyframes dot-flip {
  from { transform: perspective(220px) rotateX(-180deg) scale(1.08); }
  to { transform: perspective(220px) rotateX(0deg) scale(1.08); }
}
.steps-comet {
  position: absolute;
  left: calc(var(--lp) * 100%);
  top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, var(--accent-2) 42%, rgba(0, 113, 227, 0) 72%);
  box-shadow: 0 0 18px 5px rgba(0, 113, 227, .4);
  opacity: var(--cv, 0);
  transition: opacity .4s;
}
.step { position: relative; }
.step h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 320px; }
.step h3, .step p { transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.step p { transition-delay: .12s; }
.loaded .step:not(.seen) h3,
.loaded .step:not(.seen) p { opacity: 0; transform: translateX(34px); filter: blur(6px); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-line { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps-line span { transform-origin: 50% 0; transform: scaleY(var(--lp)); width: 100%; }
  .steps-comet { left: 50%; top: calc(var(--lp) * 100%); }
  .step { padding-left: 84px; }
  .step-dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Contact ---------- */

.contact { padding-top: 40px; }
.contact-card {
  --vis: 1;
  position: relative;
  overflow: hidden;
  --cr: 40px;
  border-radius: var(--cr);
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 90px);
  isolation: isolate;
}
.contact-glow {
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  right: -20%;
  top: -40%;
  background: radial-gradient(circle, rgba(0, 113, 227, .55), transparent 62%);
  filter: blur(20px);
  opacity: calc(.35 + var(--vis) * .65);
  scale: calc(.8 + var(--vis) * .3);
  animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-18%, 22%) scale(1.15); } }
.kicker-light { color: rgba(255, 255, 255, .5); }
.kicker-light span { color: var(--accent-2); }
.contact h2 { font-size: clamp(40px, 6vw, 84px); }
.contact-sub { margin-top: 22px; font-size: 18px; color: rgba(255, 255, 255, .65); }
.contact-offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
}
.offer-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse-light 2s infinite;
}
@keyframes pulse-light {
  0% { box-shadow: 0 0 0 0 rgba(41, 151, 255, .6); }
  70% { box-shadow: 0 0 0 10px rgba(41, 151, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 151, 255, 0); }
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.c-link {
  --bx: 50%;
  --by: 50%;
  --ripple: rgba(41, 151, 255, .35);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  padding: 14px 18px 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .35s, color .35s, border-color .35s, transform .4s var(--ease),
              translate .6s var(--ease), box-shadow .45s var(--ease);
}
.c-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(140px circle at var(--bx) var(--by), rgba(41, 151, 255, .3), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
@media (hover: hover) { .c-link:hover::before { opacity: 1; } }
@media (hover: hover) { .c-link:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(41, 151, 255, .6), 0 0 0 4px rgba(41, 151, 255, .16);
} }
.c-link:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
.c-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 16px 36px -14px rgba(0, 113, 227, .85);
}
.c-link svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.c-link svg.ico-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.c-link svg .ico-dot { fill: currentColor; stroke: none; }
.c-link span { display: grid; line-height: 1.3; }
.c-link b { font-size: 16px; }
.c-link small { font-size: 13px; opacity: .65; }
.c-go {
  margin-left: auto;
  padding-left: 8px;
  font-style: normal;
  opacity: .5;
  transition: transform .4s var(--ease), opacity .3s;
}
@media (hover: hover) { .c-link:hover .c-go { transform: translate(3px, -3px); opacity: 1; } }

@media (max-width: 520px) {
  .contact-card { --cr: 28px; }
  .contact-offer { border-radius: 16px; }
  .c-link { width: 100%; }
}

/* ---------- Footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { position: relative; transition: color .25s; }
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease);
}
@media (hover: hover) { .footer-links a:hover { color: var(--ink); } }
@media (hover: hover) { .footer-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; } }
@media (max-width: 520px) { .footer { padding-bottom: 104px; } }

/* ---------- Floating booking button ---------- */

.float-cta {
  --ripple: rgba(255, 255, 255, .4);
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(29, 29, 31, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0;
  translate: 0 140%;
  pointer-events: none;
  transition: opacity .5s var(--ease), translate .7s var(--ease), background-color .35s, box-shadow .45s var(--ease), transform .35s var(--ease);
}
.float-cta.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.float-cta svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.float-cta b {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-grad);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .35s, color .35s;
}
.float-cta::after { animation: shine-idle 6s var(--ease) 1s infinite; }
@media (hover: hover) { .float-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(0, 113, 227, .75), 0 0 0 4px rgba(0, 113, 227, .14);
} }
@media (hover: hover) { .float-cta:hover b { background: #fff; color: var(--accent); } }
.float-cta:active { transform: scale(.97); }
@media (max-width: 520px) {
  .float-cta { right: auto; left: 50%; translate: -50% 140%; }
  .float-cta.show { translate: -50% 0; }
}

/* ---------- Entrances: each module has its own ---------- */

/* site.js adds .in when an element scrolls into view; --rd staggers a batch, and --pre holds
   everything inside the contact card until the card has switched on. Hidden starting states
   are scoped to .loaded, so nothing stays hidden if the script never runs. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@keyframes ring-out {
  from { opacity: .9; transform: scale(.4); }
  to { opacity: 0; transform: scale(2.1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Section headings: maths symbols flicker and lock into each character (site.js),
   then a light bar scans underneath. */
h2[data-split] { position: relative; width: fit-content; max-width: 100%; }
[data-split] .ch { display: inline-block; position: relative; }
.loaded [data-split] .ch { opacity: 0; }
.loaded [data-split] .ch.scr { opacity: 1; color: transparent; }
[data-split] .ch.scr::after {
  content: attr(data-g);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 500;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0, 113, 227, .45);
}
.contact [data-split] .ch.scr::after { color: var(--accent-2); }
.loaded [data-split] .ch.set { opacity: 1; animation: ch-lock .55s var(--ease-back) backwards; }
@keyframes ch-lock {
  from { transform: translateY(-.14em) scale(1.18); text-shadow: 0 0 22px rgba(0, 113, 227, .7); }
  to { transform: none; text-shadow: none; }
}
h2[data-split]::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.06em;
  width: 100%; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent-2) 65%, transparent);
  box-shadow: 0 0 14px rgba(0, 113, 227, .5);
  opacity: 0;
  pointer-events: none;
}
h2[data-split].in::after { animation: h2-scan 1.8s var(--ease) calc(var(--rd, 0ms) + var(--pre, 0ms) + .2s) backwards; }
@keyframes h2-scan {
  0% { opacity: 0; transform: scaleX(0); transform-origin: 0 50%; }
  10% { opacity: 1; }
  50% { opacity: 1; transform: scaleX(1); transform-origin: 0 50%; }
  51% { opacity: 1; transform: scaleX(1); transform-origin: 100% 50%; }
  100% { opacity: 0; transform: scaleX(0); transform-origin: 100% 50%; }
}

/* Section labels: the number flips down like a departure board, the label wipes in */
[data-enter="kicker"] > span {
  transform-origin: 50% 0;
  transition: opacity .3s, transform .8s var(--ease-back);
  transition-delay: calc(var(--rd, 0ms) + var(--pre, 0ms));
}
[data-enter="kicker"] > em {
  clip-path: inset(0 0 0 0);
  transition: clip-path .9s var(--ease) calc(var(--rd, 0ms) + var(--pre, 0ms) + .15s);
}
.loaded [data-enter="kicker"]:not(.in) > span { opacity: 0; transform: perspective(240px) rotateX(-90deg); }
.loaded [data-enter="kicker"]:not(.in) > em { clip-path: inset(0 100% 0 0); }

/* Intro text: a soft band of light sweeps across and leaves the text behind */
.loaded [data-enter="scan"]:not(.in) { opacity: 0; }
[data-enter="scan"].in {
  -webkit-mask-image: linear-gradient(100deg, #000 42%, rgba(0, 0, 0, .3) 48%, transparent 56%);
  mask-image: linear-gradient(100deg, #000 42%, rgba(0, 0, 0, .3) 48%, transparent 56%);
  -webkit-mask-size: 270% 100%;
  mask-size: 270% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: scan-in 1.6s var(--ease) calc(var(--rd, 0ms) + var(--pre, 0ms)) backwards;
}
@keyframes scan-in {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; transform: translateX(-12px); }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; transform: none; }
}

/* Maths 5**: opens like a portal from the corner where the grade sits */
/* hidden with opacity, not clip-path: a clipped element never counts as "on screen" for the observer */
.loaded [data-enter="portal"]:not(.in) { opacity: 0; }
[data-enter="portal"].in { animation: portal 1.4s cubic-bezier(.75, 0, .2, 1) var(--rd, 0ms) backwards; }
@keyframes portal {
  from { opacity: 1; clip-path: circle(0% at 12% 88%); transform: scale(.94); }
  to { clip-path: circle(150% at 12% 88%); transform: none; }
}
[data-enter="portal"].in .gc-top { animation: rise-in .9s var(--ease) calc(var(--rd, 0ms) + .55s) backwards; }
[data-enter="portal"].in .gc-note { animation: rise-in .9s var(--ease) calc(var(--rd, 0ms) + 1.1s) backwards; }

/* Grade numbers roll up like a counter (reels built by site.js) */
.g-num { display: inline-block; height: .9em; overflow: hidden; }
.reel { display: block; transform: translateY(calc(var(--n, 0) * -.9em)); }
.reel i { display: block; height: .9em; font-style: normal; }
.in .reel { animation: reel-roll 1.3s cubic-bezier(.2, .85, .25, 1) calc(var(--rd, 0ms) + .45s) backwards; }
@keyframes reel-roll {
  0% { transform: translateY(0); filter: blur(0); }
  35% { filter: blur(3px); }
  100% { transform: translateY(calc(var(--n, 0) * -.9em)); filter: blur(0); }
}

/* Other results: departure-board tiles flipping down one after another */
.loaded [data-enter="flap"]:not(.in) { opacity: 0; }
[data-enter="flap"].in { animation: flap 1.15s cubic-bezier(.2, .7, .3, 1) var(--rd, 0ms) backwards; }
@keyframes flap {
  0% { opacity: 0; transform-origin: 50% 0; transform: perspective(900px) rotateX(-100deg); }
  30% { opacity: 1; }
  62% { transform-origin: 50% 0; transform: perspective(900px) rotateX(14deg); }
  80% { transform-origin: 50% 0; transform: perspective(900px) rotateX(-5deg); }
  100% { opacity: 1; transform-origin: 50% 0; transform: perspective(900px) rotateX(0deg); }
}

/* Teaching cards: dealt out of a stacked deck; icons draw themselves line by line */
.approach-grid > :nth-child(1) { --k: 1; --deal: 180ms; }
.approach-grid > :nth-child(2) { --k: 0; --deal: 0ms; z-index: 2; }
.approach-grid > :nth-child(3) { --k: -1; --deal: 180ms; }
@media (max-width: 900px) {
  .approach-grid > :nth-child(odd) { --k: .32; --deal: 0ms; }
  .approach-grid > :nth-child(even) { --k: -.32; --deal: 0ms; }
}
.loaded [data-enter="deal"]:not(.in) { opacity: 0; }
[data-enter="deal"].in { animation: deal 1.2s cubic-bezier(.2, .8, .2, 1) var(--deal, 0ms) backwards; }
@keyframes deal {
  0% { opacity: 0; transform: translate3d(calc(var(--k) * (100% + 18px)), 110px, 0) rotate(calc(var(--k) * -10deg)) scale(.84); }
  30% { opacity: 1; transform: translate3d(calc(var(--k) * (100% + 18px)), 0, 0) rotate(calc(var(--k) * -10deg)) scale(.92); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}
.ap-icon svg > * { stroke-dasharray: 1; }
[data-enter="deal"].in .ap-icon { animation: icon-pop .9s var(--ease-back) calc(var(--deal, 0ms) + .45s) backwards; }
[data-enter="deal"].in .ap-icon svg > * { animation: draw-in 1.2s var(--ease) calc(var(--deal, 0ms) + .75s) backwards; }
@keyframes icon-pop {
  from { opacity: 0; transform: scale(.3) rotate(-100deg); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-in {
  from { stroke-dashoffset: 1; fill-opacity: 0; }
  70% { fill-opacity: 0; }
  to { stroke-dashoffset: 0; fill-opacity: 1; }
}

/* Trial offer: slides in, then the 75折 badge stamps down with a shockwave */
.loaded [data-enter="stamp"]:not(.in) { opacity: 0; }
[data-enter="stamp"].in { animation: offer-in 1s var(--ease) var(--rd, 0ms) backwards; }
@keyframes offer-in {
  from { opacity: 0; transform: translateX(46px); }
  to { opacity: 1; transform: none; }
}
.offer-pct { position: relative; }
.offer-pct::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid rgba(41, 151, 255, .9);
  opacity: 0;
  pointer-events: none;
}
[data-enter="stamp"].in .offer-pct { animation: stamp .75s cubic-bezier(.3, 1.5, .5, 1) calc(var(--rd, 0ms) + .5s) backwards; }
[data-enter="stamp"].in .offer-pct::after { animation: ring-out .9s var(--ease) calc(var(--rd, 0ms) + .85s) backwards; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-24deg); }
  55% { opacity: 1; transform: scale(.9) rotate(4deg); }
  78% { transform: scale(1.05) rotate(-1.5deg); }
  100% { opacity: 1; transform: none; }
}

/* Lesson formats: the two cards open from the centre like doors (on phones they unfold);
   the pin drops and bounces, the camera flickers on like a screen */
.modes-grid > :nth-child(1) { --door: 1; }
.modes-grid > :nth-child(2) { --door: -1; }
.loaded [data-enter="doors"]:not(.in) { opacity: 0; }
[data-enter="doors"].in { animation: doors 1.3s cubic-bezier(.2, .8, .2, 1) .05s backwards; }
@keyframes doors {
  0% { opacity: 0; transform: translateX(calc(var(--door) * (50% + 9px))) rotateY(calc(var(--door) * -32deg)) scale(.88); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) rotateY(0deg) scale(1); }
}
@media (max-width: 760px) {
  [data-enter="doors"].in { animation-name: unfold; animation-delay: var(--rd, 0ms); }
}
@keyframes unfold {
  0% { opacity: 0; transform-origin: 50% 0; transform: perspective(900px) rotateX(-75deg) scale(.92); }
  30% { opacity: 1; }
  100% { opacity: 1; transform-origin: 50% 0; transform: perspective(900px) rotateX(0deg) scale(1); }
}
.mode-icon { position: relative; }
.mode-icon::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 7px;
  width: 34px; height: 10px;
  margin-left: -17px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
[data-enter="doors"].in:nth-child(1) .mode-icon svg { animation: pin-drop 1s cubic-bezier(.3, 1.6, .5, 1) .75s backwards; }
[data-enter="doors"].in:nth-child(1) .mode-icon::after { animation: ring-out .9s var(--ease) 1.15s backwards; }
[data-enter="doors"].in:nth-child(2) .mode-icon { animation: power-on 1s linear .7s backwards; }
[data-enter="doors"].in .mode-bg { animation: word-in 1.6s var(--ease) .5s backwards; }
@keyframes pin-drop {
  0% { opacity: 0; transform: translateY(-46px); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes power-on {
  0% { opacity: 0; }
  8% { opacity: 1; }
  14% { opacity: .15; }
  22% { opacity: 1; }
  30% { opacity: .35; }
  42% { opacity: 1; filter: brightness(1.6); }
  100% { opacity: 1; filter: none; }
}
@keyframes word-in {
  from { opacity: 0; letter-spacing: .6em; transform: translateX(40px); }
  to { opacity: 1; letter-spacing: 0; transform: none; }
}

/* Contact: the dark card switches on like an old CRT screen (a line, then the picture);
   the links flip up one by one with their icons spinning in */
.contact-card { --pre: .75s; }
.contact-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #fff 30%, #fff 70%, transparent);
  box-shadow: 0 0 22px 4px rgba(41, 151, 255, .8);
  opacity: 0;
  pointer-events: none;
}
.loaded [data-enter="crt"]:not(.in) { opacity: 0; }
[data-enter="crt"].in { animation: crt 1.3s cubic-bezier(.7, 0, .2, 1) backwards; }
[data-enter="crt"].in::after { animation: crt-line 1.3s cubic-bezier(.7, 0, .2, 1) backwards; }
@keyframes crt {
  0% { opacity: 1; clip-path: inset(49.6% 50% 49.6% 50% round var(--cr)); }
  38% { clip-path: inset(49.6% 0 49.6% 0 round var(--cr)); }
  100% { clip-path: inset(0 0 0 0 round var(--cr)); }
}
@keyframes crt-line {
  0% { opacity: 1; transform: scaleX(0); }
  38% { opacity: 1; transform: scaleX(1); }
  62% { opacity: 0; transform: scaleX(1); }
  100% { opacity: 0; }
}
.contact-links { perspective: 900px; }
.contact-links > :nth-child(2) { --li: 1; }
.contact-links > :nth-child(3) { --li: 2; }
.loaded [data-enter="links"]:not(.in) > a { opacity: 0; }
[data-enter="links"].in > a { animation: link-up .95s cubic-bezier(.2, .9, .3, 1.15) calc(var(--rd, 0ms) + var(--pre, 0ms) + var(--li, 0) * 120ms) backwards; }
[data-enter="links"].in > a svg { animation: icon-spin .9s var(--ease-back) calc(var(--rd, 0ms) + var(--pre, 0ms) + var(--li, 0) * 120ms + .3s) backwards; }
@keyframes link-up {
  from { opacity: 0; transform: translateY(46px) rotateX(-55deg) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes icon-spin {
  from { transform: scale(0) rotate(-200deg); }
  to { transform: none; }
}

/* Hero chips pop in one by one after the headline */
.hero-chips li:nth-child(2) { --c: 1; }
.hero-chips li:nth-child(3) { --c: 2; }
.hero-chips li:nth-child(4) { --c: 3; }
.hero-chips li:nth-child(5) { --c: 4; }
html.loaded .hero-chips li { animation: chip-pop .7s var(--ease-back) calc(1s + var(--c, 0) * 80ms) backwards; }
@keyframes chip-pop {
  from { opacity: 0; transform: translateY(14px) scale(.55); }
  to { opacity: 1; transform: none; }
}

/* Ticker leans with the scroll speed (site.js sets --mv and speeds it up) */
.marquee-track > * { transform: skewX(calc(var(--mv, 0) * -14deg)); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .price-card { --e: 1; }
  .hero-inner { transform: none; opacity: 1; }
  .pricing { --p: 1; }
  .loaded [data-split] .ch { opacity: 1; }
  .loaded .step:not(.seen) h3, .loaded .step:not(.seen) p { opacity: 1; transform: none; filter: none; }
  .steps-comet { display: none; }
}

/* ==========================================================
   Apple-style layer: hairline frosted nav bar, blue pill CTAs,
   quiet grey tiles, tight semibold headlines. Motion is untouched.
   ========================================================== */

body { font-size: 17px; line-height: 1.53; letter-spacing: -.01em; }

h2 { font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.hero-title { font-weight: 600; letter-spacing: -.025em; line-height: 1.06; }
h3 { font-weight: 600; letter-spacing: -.01em; }

/* full-width frosted bar, like apple.com */
.nav {
  top: 0;
  width: 100%;
  height: 52px;
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2));
  border-radius: 0;
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: none;
}
.nav.scrolled { background: rgba(251, 251, 253, .8); box-shadow: none; border-color: rgba(0, 0, 0, .1); }
.brand-mark { width: 30px; height: 30px; }
.bm-face { border-radius: 9px; }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.brand-name small { font-size: 8.5px; letter-spacing: .3em; }
.nav-links a { font-size: 13px; padding: 6px 12px; color: rgba(29, 29, 31, .8); }
.nav-links a::after { box-shadow: none; }
@media (hover: hover) { .nav-links a:hover { background: transparent; color: var(--ink); } }
.nav .btn-sm { height: 32px; padding: 0 16px; font-size: 13px; }

/* buttons: Apple blue pill, softer shadows */
.btn { height: 50px; padding: 0 24px; font-size: 17px; font-weight: 400; letter-spacing: -.01em; }
.btn-ink { background: var(--accent); box-shadow: none; }
@media (hover: hover) { .btn-ink:hover { background: #0077ed; box-shadow: 0 10px 28px -12px rgba(0, 113, 227, .55); } }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: none; } }
@keyframes halo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
  50% { box-shadow: 0 0 0 6px rgba(0, 113, 227, .1); }
}
.btn-badge { background: rgba(255, 255, 255, .22); box-shadow: none; }

/* hero: no graph-paper dots, plainer eyebrow */
.hero::before { display: none; }
.hero::after { background: radial-gradient(circle, rgba(0, 113, 227, .06), transparent 60%); }
.eyebrow { border: 0; background: transparent; padding: 0; font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero-sub b { font-weight: 600; }
.hero-chips li { font-size: 14px; background: rgba(245, 245, 247, .85); color: var(--ink); }

/* section eyebrow: plain semibold label instead of serif number + rule */
.kicker { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--accent); margin-bottom: 12px; }
.kicker span, .kicker::after { display: none; }
.kicker-light { color: #2997ff; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }

/* tiles: light grey, no borders, large radius */
.grade-card, .ap-card, .price-card, .mode-card {
  border: 0;
  background: var(--bg-soft);
  border-radius: 28px;
  box-shadow: none;
}
.grade-card.grade-hero, .price-card.featured { background: #000; }
.gc-en { font-style: normal; font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.ap-num, .mode-bg { font-style: normal; font-weight: 600; }
.ap-icon, .mode-icon { border-radius: 14px; }
.pc-chips li { border-color: transparent; background: #fff; }
.featured .pc-chips li { background: rgba(255, 255, 255, .1); }
.pc-list { border-color: rgba(0, 0, 0, .08); }
.mode-tags li { background: #fff; }

/* marquee: quieter */
.marquee { border-color: rgba(0, 0, 0, .06); }
.marquee-track span { font-weight: 600; letter-spacing: -.02em; }

/* contact: black tile */
.contact-card { background: #000; --cr: 32px; }

/* footer: small grey type on #f5f5f7, like apple.com */
.footer { background: var(--bg-soft); box-shadow: 0 0 0 100vmax var(--bg-soft); clip-path: inset(0 -100vmax); font-size: 12px; color: var(--ink-2); }
.float-cta { background: var(--accent); }
