/* Case Refine website. Brand: petrol #14363c and chartreuse #c4e66b from the logo; light, airy pages with soft
   shadows and rounded cards (the user picked a modern product look, structure after Prepmatter). One system font. */
:root {
  --petrol: #14363c;
  --petrol-2: #0c272c;
  --petrol-3: #23525a;
  --teal: #1d6b5e;
  --lime: #c4e66b;
  --lime-2: #b2d957;
  --lime-soft: #eef6d6;
  --lime-wash: #f6faeb;
  --mint: #e7f2ee;
  --mint-2: #d6e9e2;
  --ink: #1b2d31;
  --ink-2: #2e4145;
  --muted: #55676b;
  --faint: #6b797d;
  --line: #e2e9e6;
  --line-2: #d3ddd9;
  --bg: #ffffff;
  --bg-2: #f6f8f6;
  --danger: #c2412d;
  --danger-soft: #fdece8;
  --warn: #a8660b;
  --warn-soft: #fdf3e1;
  --ok: #1f7a4d;
  --ok-soft: #e6f4ec;
  --solve: #3d5afe;
  --casey: #0f9f63;
  --case: #7a5af8;
  --pei: #ee7330;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(20, 54, 60, .06), 0 2px 8px rgba(20, 54, 60, .05);
  --sh-2: 0 12px 32px -14px rgba(20, 54, 60, .22), 0 3px 10px -4px rgba(20, 54, 60, .08);
  --sh-3: 0 40px 90px -36px rgba(20, 54, 60, .32), 0 10px 30px -14px rgba(20, 54, 60, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hdr: 72px;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; text-wrap: pretty; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--petrol-3); outline-offset: 2px; }
.cta-band :focus-visible, .buybar :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--petrol); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; background: var(--bg-2); color: var(--petrol); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s, color .15s; white-space: nowrap; }
.btn:hover { color: var(--petrol); }
.btn-primary { background: var(--petrol); color: #fff; box-shadow: 0 8px 18px -10px rgba(20, 54, 60, .7); }
.btn-primary:hover { background: var(--petrol-2); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-lime { background: var(--lime); color: var(--petrol); }
.btn-lime:hover { background: var(--lime-2); }
.btn-soft { background: var(--lime-soft); color: var(--petrol); }
.btn-soft:hover { background: #e4f0c4; }
.btn-line { background: #fff; border-color: var(--line-2); color: var(--petrol); }
.btn-line:hover { border-color: var(--petrol-3); }
.btn-ghost { background: transparent; color: var(--petrol); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--teal); }
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20, 54, 60, .4); }
.hdr { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 32px; width: auto; display: block; }
.mainnav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.nav-a:hover { background: var(--bg-2); color: var(--petrol); }
.nav-a[aria-current="page"] { color: var(--petrol); font-weight: 650; box-shadow: inset 0 -3px 0 var(--lime); border-radius: 10px 10px 4px 4px; }
.caret { width: 12px; height: 12px; opacity: .7; }
.nav-dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 260px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.dd-menu a:hover { background: var(--bg-2); }
.dd-menu b { display: block; color: var(--ink); font-size: 15px; }
.dd-menu span { display: block; color: var(--muted); font-size: 13px; }
.hdr-act { display: flex; align-items: center; gap: 12px; flex: none; }
.hdr-login { color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 6px; }
.hdr-login:hover { color: var(--petrol); }
.nav-mobile-act { display: none; }
.acct { position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--lime); color: var(--petrol); font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.avatar.has-img { padding: 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar img { width: 100%; height: 100%; display: block; }
/* 我的账户: choose a profile picture */
.av-pick { display: grid; grid-template-columns: repeat(6, minmax(0, 68px)); gap: 14px 16px; margin: 8px 0 4px; }
.av-opt { position: relative; aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; }
.av-opt img, .av-opt span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; }
.av-opt span { background: var(--lime); color: var(--petrol); font-weight: 700; font-size: 20px; }
.av-opt::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s; }
.av-opt:hover::after { border-color: var(--line-2); }
.av-opt[aria-checked="true"]::after { border-color: var(--petrol); }
.av-opt:focus-visible { outline: 2px solid var(--petrol-3); outline-offset: 5px; }
.av-credit { font-size: 12px; color: var(--faint); margin: 8px 0 18px; }
@media (max-width: 560px) { .av-pick { grid-template-columns: repeat(4, minmax(0, 64px)); gap: 12px 14px; } }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; width: max-content; max-width: min(300px, calc(100vw - 90px)); padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); z-index: 50; }
.acct-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-who b { display: block; font-size: 15px; }
.acct-who span { display: block; font-size: 13px; color: var(--muted); word-break: break-all; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); font-size: 15px; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg-2); color: var(--petrol); }
.menu-btn { display: none; align-items: stretch; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 4px; }
.menu-btn span { display: block; height: 2px; background: var(--petrol); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.sec-head { max-width: 720px; margin: 0 0 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center p { text-wrap: balance; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; letter-spacing: -.02em; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }
.mark { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.chip-lime { background: var(--lime-soft); color: var(--petrol); }
.chip-petrol { background: var(--petrol); color: #fff; }
.chip-free { background: var(--ok-soft); color: var(--ok); }
.chip-lock { background: #f1f3f2; color: var(--muted); }
.chip-soon { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.hero::before { width: 560px; height: 560px; left: -220px; top: 120px; background: radial-gradient(circle, rgba(196, 230, 107, .45), transparent 70%); }
.hero::after { width: 640px; height: 640px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(29, 107, 94, .16), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero-title { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.16; margin: 0 0 22px; min-height: 2.32em; color: var(--ink); }
.hero-title .mark { color: var(--petrol); }
.hero-title.swap { animation: titleIn .45s ease both; }
@keyframes titleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-lede { font-size: 18px; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; padding: 0; margin: 0; list-style: none; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 12px 14px; text-align: center; box-shadow: var(--sh-1); }
.stats b { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--petrol); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* the product ring: four products on a circle, the selected one shown in the middle */
.orbit { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1; margin-left: auto; }
.orbit-ring { position: absolute; inset: 7%; border-radius: 50%; border: 1.5px solid rgba(20, 54, 60, .13); }
.orbit-ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(20, 54, 60, .1); }
.orbit-facet { position: absolute; width: 34%; aspect-ratio: 1; pointer-events: none; }
.orbit-facet.f1 { left: 9%; top: 24%; background: var(--petrol); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .9; transform: rotate(8deg); }
.orbit-facet.f2 { right: 12%; top: 16%; width: 22%; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.orbit-node { position: absolute; left: calc(50% + 43% * var(--x)); top: calc(50% + 43% * var(--y)); display: flex; align-items: center; gap: 10px; padding: 4px; border: 0; background: none; cursor: pointer; z-index: 3; border-radius: 12px; }
.orbit-node.side-r { transform: translate(-13px, -50%); }
.orbit-node.side-l { transform: translate(calc(-100% + 13px), -50%); }
.orbit-node i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--mint-2); box-shadow: 0 0 0 6px rgba(255, 255, 255, .8); transition: background .2s, border-color .2s, box-shadow .2s; }
.orbit-node span { font-size: 15px; font-weight: 650; color: var(--faint); white-space: nowrap; transition: color .2s; text-shadow: 0 1px 0 #fff; }
.orbit-node:hover span { color: var(--ink-2); }
.orbit-node.on i { background: var(--lime); border-color: var(--petrol); box-shadow: 0 0 0 6px rgba(196, 230, 107, .35); }
.orbit-node.on span { color: var(--petrol); }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 54%; transform: translate(-50%, -50%); z-index: 2; }
.orbit-card { background: #fff; border-radius: 22px; box-shadow: var(--sh-3); overflow: hidden; border: 1px solid var(--line); }
.orbit-shot { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.orbit-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.orbit-text { padding: 14px 18px 16px; }
.orbit-text h2 { font-size: 18px; margin: 0 0 4px; color: var(--petrol); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.orbit-text p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.6; }
.orbit-text a { font-size: 14px; }
.orbit-pane { animation: paneIn .4s ease both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.orbit-tabs { display: none; }

/* ---------------------------------------------------------------- the route band (lime, curved top) */
.band { position: relative; background: linear-gradient(180deg, #d9ef93, var(--lime)); padding: 120px 0 96px; margin-top: 24px; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90px; background: #fff; clip-path: ellipse(75% 100% at 50% 0); }
.band .sec-head h2 { color: var(--petrol); }
.band .sec-head p { color: rgba(20, 54, 60, .78); }
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.route li { position: relative; background: #fff; border-radius: 20px; padding: 24px 22px 22px; box-shadow: 0 18px 40px -26px rgba(20, 54, 60, .55); display: flex; flex-direction: column; }
.route li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: var(--lime); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.route h3 { font-size: 19px; margin-bottom: 6px; }
.route p { color: var(--muted); font-size: 15px; margin-bottom: 14px; flex: 1; }
.route .chip { align-self: flex-start; margin-bottom: 12px; }
.route a { font-weight: 600; font-size: 15px; text-decoration: none; }
.route a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- course overview: tabs on the left, card grid on the right */
.course { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; align-items: start; }
.course-tabs { display: flex; flex-direction: column; gap: 0; position: relative; z-index: 2; }
.course-tab { text-align: center; border: 0; cursor: pointer; padding: 52px 24px; background: var(--mint); color: var(--teal); font-size: 24px; font-weight: 750; border-radius: 22px 0 0 22px; transition: background .2s, box-shadow .2s, color .2s; position: relative; }
.course-tab + .course-tab { margin-top: 0; }
.course-tab:first-child { border-radius: 22px 0 0 0; }
.course-tab:last-child { border-radius: 0 0 0 22px; }
.course-tab:hover { color: var(--petrol); }
.course-tab[aria-selected="true"] { background: #fff; color: var(--petrol); box-shadow: -16px 0 40px -28px rgba(20, 54, 60, .45); border-radius: 22px 0 0 22px; }
.course-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 120px; height: 4px; border-radius: 4px; background: var(--lime); }
.course-panel { background: #fff; border-radius: 0 28px 28px 28px; box-shadow: var(--sh-3); padding: 56px 56px 48px; min-height: 100%; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
.course-item h3 { font-size: 24px; font-weight: 750; margin-bottom: 12px; letter-spacing: -.015em; }
.course-item p { color: var(--muted); font-size: 16px; line-height: 1.85; margin-bottom: 10px; }
.course-item .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.course-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.course-foot p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- product rows (home) */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.prod-card { background: #fff; border-radius: 26px; box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.prod-shot { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.prod-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.prod-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.prod-body .firm { font-size: 14px; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.prod-body h3 { font-size: 26px; margin-bottom: 10px; }
.prod-body p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime-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.5L13 6.6' fill='none' stroke='%2314363c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.prod-body .btn { align-self: flex-start; margin-top: auto; }
/* the Big Four, after Solve and Casey: a slim strip, present without competing with the two main tests */
.b4-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 24px; align-items: center; margin-top: 22px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); }
.b4-strip-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--lime-wash); color: var(--petrol); }
.b4-strip h3 { font-size: 20px; margin: 0 0 4px; }
.b4-strip p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 46em; }
.b4-strip-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.b4-strip-facts b { color: var(--petrol); font-size: 16px; font-variant-numeric: tabular-nums; }
.b4-strip-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 920px) { .b4-strip { grid-template-columns: auto minmax(0, 1fr); } .b4-strip-act { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 640px) { .b4-strip { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; } .b4-strip-ico { display: none; } }
/* the line under the hero numbers that points to the Big Four module */
.hero-news { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.hero-news .hn-tag { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; background: var(--lime); color: var(--petrol); font-size: 12.5px; font-weight: 750; }
.hero-news a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.hero-news a:hover { color: var(--petrol); text-decoration: underline; }
.hero-news i { font-style: normal; color: var(--faint); }
.hero-news em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--lime-wash); color: var(--petrol); font-size: 12px; font-weight: 700; }
@media (max-width: 560px) { .hero-news { flex-wrap: wrap; gap: 6px 10px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split-visual { position: relative; }
.paper { background: #fff; border-radius: 18px; box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; }
.paper img { display: block; width: 100%; }
.split-visual .stack-2 { position: absolute; right: -18px; bottom: -22px; width: 54%; transform: rotate(3deg); }
.soon-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 36px; box-shadow: var(--sh-1); }
.soon-card h2 { font-size: 26px; margin-bottom: 6px; }
.soon-card p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- pricing */
.period { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin: 0 auto 36px; }
.period button { border: 0; background: none; padding: 9px 20px; border-radius: 10px; font-weight: 650; color: var(--muted); cursor: pointer; }
.period button[aria-pressed="true"] { background: #fff; color: var(--petrol); box-shadow: var(--sh-1); }
.period small { color: var(--ok); font-weight: 700; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1280px) and (min-width: 1081px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 22px 28px; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--petrol); box-shadow: var(--sh-3); }
.plan .badge { position: absolute; top: -14px; left: 22px; background: var(--lime); color: var(--petrol); font-size: 13px; font-weight: 750; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 2px; }
.plan .tagline { color: var(--muted); font-size: 15px; margin-bottom: 18px; min-height: 3.4em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-size: 46px; line-height: 1; font-weight: 800; color: var(--petrol); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price b::before { content: "¥"; font-size: 24px; margin-right: 2px; vertical-align: 14px; font-weight: 700; }
.price span { color: var(--muted); font-size: 15px; }
.per-day { color: var(--faint); font-size: 13px; margin-bottom: 20px; min-height: 20px; }
.plan .btn { margin-bottom: 22px; }
.plan .ticks { margin: 0; }
.plan .ticks li { font-size: 14.5px; color: var(--ink); }
.plan-more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; text-decoration: none; }
.plan-more:hover { text-decoration: underline; }
.free-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 860px; margin: 0 auto 30px; padding: 14px 18px; border-radius: 18px; background: var(--ok-soft); }
.free-strip div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.free-strip b { color: var(--ink); }
.free-strip span:not(.chip) { color: var(--ink-2); font-size: 14.5px; }
.pay-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.pay-note span { display: inline-flex; align-items: center; gap: 8px; }
.pay-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-2); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-2); font-size: 15px; word-break: keep-all; }
@media (min-width: 1081px) { .compare thead th { white-space: nowrap; } }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok); font-weight: 800; }
.compare .no { color: var(--faint); }
.compare .grp td { background: var(--lime-wash); font-weight: 700; color: var(--petrol); text-align: left; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; }
/* phone: the compare table scrolls inside its box, with the plan names and the row labels kept in view */
@media (max-width: 760px) {
  .table-scroll:has(> .compare) { max-height: 72vh; overflow: auto; border: 1px solid var(--line); }
  .table-scroll > .compare { border: 0; border-radius: 0; overflow: visible; }
  .compare thead th { position: sticky; top: 0; z-index: 2; }
  .compare th:first-child, .compare td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
  .compare thead th:first-child { z-index: 3; background: var(--bg-2); }
}

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sh-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- CTA band */
.cta-band { background: var(--petrol); color: #fff; border-radius: 32px; padding: 56px 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; background: var(--lime); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .95; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 17px; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; margin-right: 120px; }

/* ---------------------------------------------------------------- product page head (Prepmatter-style band) */
.page-head { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--lime-soft) 0%, var(--mint) 60%, #e2efe9 100%); padding: 64px 0 60px; }
.page-head::after { content: ""; position: absolute; right: 6%; top: -40px; width: 220px; height: 220px; background: rgba(20, 54, 60, .07); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; color: var(--petrol); letter-spacing: -.025em; margin-bottom: 10px; }
.page-head .sub { font-size: 20px; color: var(--ink-2); font-weight: 600; margin: 0; }
.page-head .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.page-head .crumbs a { color: var(--muted); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0 48px; }
.intro p { font-size: 17px; color: var(--ink-2); }
.intro .lead { font-size: 19px; color: var(--ink); font-weight: 600; }
.buybar { background: var(--petrol); border-radius: 22px; color: #fff; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 22px 30px; box-shadow: var(--sh-2); }
.buybar .big { font-size: 34px; font-weight: 800; color: var(--lime); line-height: 1; white-space: nowrap; }
.buybar .big small { font-size: 15px; color: rgba(255, 255, 255, .7); font-weight: 600; margin-left: 4px; }
.buybar p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; }
.buybar p b { color: #fff; display: block; font-size: 17px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--bg-2); border-radius: 24px; padding: 32px 36px; }
.contact-card h2 { font-size: 28px; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- generic cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--sh-1); }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.qr-box { width: 200px; text-align: center; }
.qr-box .qr { width: 200px; height: 200px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.qr-box .qr img, .qr-box .qr svg { width: 100%; height: 100%; display: block; }
.qr-box .qr.empty { background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 10px, #fff 10px, #fff 20px); color: var(--muted); font-size: 14px; padding: 20px; }
.qr-box b { display: block; margin-top: 12px; font-size: 16px; }
.qr-box span { display: block; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- forms and auth */
.auth { min-height: calc(100vh - var(--hdr)); display: grid; place-items: start center; padding: 56px 16px 80px; background: radial-gradient(900px 500px at 10% 0%, rgba(196, 230, 107, .28), transparent 60%), radial-gradient(800px 500px at 100% 20%, rgba(29, 107, 94, .1), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-3); padding: 36px 34px 30px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 15px; margin: 22px 0 0; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--faint); margin-top: 6px; }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input:focus { outline: none; border-color: var(--petrol-3); box-shadow: 0 0 0 3px rgba(35, 82, 90, .12); }
.input.bad { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.pw { position: relative; }
.pw .input { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; background: none; color: var(--teal); font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.field label.check { display: flex; font-weight: 400; }
/* checkboxes drawn here: no glow, a ring only for keyboard focus */
.check input { -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: none; width: 18px; height: 18px; margin: 3px 0 0; border: 1.5px solid #9fb0ab; border-radius: 5px; background: #fff; display: inline-grid; place-content: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.check input::before { content: ""; width: 10px; height: 10px; background: #fff; clip-path: polygon(14% 44%,0 59%,40% 98%,100% 22%,85% 8%,40% 68%); transform: scale(0); transition: transform .15s; }
.check input:hover { border-color: var(--petrol); }
.check input:checked { background: var(--petrol); border-color: var(--petrol); }
.check input.bad:not(:checked) { border-color: var(--danger); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--petrol-3); outline-offset: 2px; }
.form-msg { border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.form-msg.err { background: var(--danger-soft); color: var(--danger); }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.form-msg.info { background: var(--lime-wash); color: var(--petrol); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field .row-between { margin-bottom: 6px; }
.field .row-between label { margin-bottom: 0; }
.dev-note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 16px 0; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: var(--petrol); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--sh-2); font-size: 15px; max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 0; padding: 56px 0 28px; }
.ftr { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr); gap: 48px; }
.ftr-brand img { height: 30px; width: auto; display: block; margin-bottom: 14px; }
.ftr-brand p { color: var(--muted); font-size: 14px; max-width: 360px; }
.ftr-contact a { color: var(--ink-2); }
.ftr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ftr-cols h2 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.ftr-cols a { display: block; color: var(--muted); font-size: 14px; text-decoration: none; padding: 4px 0; }
.ftr-cols a:hover { color: var(--petrol); }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.ftr-bottom a { color: var(--muted); }

/* ---------------------------------------------------------------- long text (legal, about) */
.prose { max-width: 808px; margin: 0 auto; padding-top: 56px; padding-bottom: 96px; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 22px; margin-top: 2em; }
.prose h3 { font-size: 18px; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li + li { margin-top: .4em; }
.prose .updated { color: var(--faint); font-size: 14px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .orbit { margin: 0 auto; max-width: 520px; }
  .course { grid-template-columns: 1fr; }
  .course-tabs { flex-direction: row; gap: 8px; margin-bottom: 14px; }
  .course-tab, .course-tab:first-child, .course-tab:last-child { flex: 1; padding: 16px 12px; font-size: 18px; border-radius: 16px; background: var(--mint); }
  .course-tab[aria-selected="true"] { border-radius: 16px; box-shadow: var(--sh-2); }
  .course-tab[aria-selected="true"]::after { bottom: 8px; width: 48px; height: 3px; }
  .course-panel { border-radius: 24px; padding: 36px 32px; }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
}
@media (max-width: 920px) {
  /* no backdrop-filter here: it would make the header the containing block of the fixed menu panel */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .mainnav { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 24px 32px; margin: 0; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; border-top: 1px solid var(--line); pointer-events: none; }
  .mainnav.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-a { padding: 14px 12px; font-size: 17px; font-weight: 600; border-radius: 12px; }
  .nav-a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lime); border-radius: 4px 12px 12px 4px; background: var(--bg-2); }
  .nav-dd .dd-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .nav-dd .dd-menu::before { display: none; }
  .nav-dd .caret { display: none; }
  .nav-mobile-act { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .hdr-login, .hdr-learn { display: none; }
  .hdr { gap: 12px; }
  .hdr-act { margin-left: auto; }
  .duo, .split, .intro { grid-template-columns: 1fr; }
  .split-visual .stack-2 { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .ftr { grid-template-columns: 1fr; gap: 28px; }
  .buybar { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-band .btns { margin-right: 0; }
  .cta-band::after { width: 160px; height: 160px; right: -50px; top: -50px; }
  .contact-card, .soon-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --hdr: 64px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .mainnav { padding-left: 16px; padding-right: 16px; }
  .input { font-size: 16px; }
  body { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .hero { padding: 28px 0 40px; }
  .hero-title { min-height: 0; }
  .hero-lede { font-size: 16.5px; }
  .hero-cta .btn { flex: 1; }
  .stats b { font-size: 24px; }
  .stats span { font-size: 13px; }
  .stats li { padding: 12px 6px; border-radius: 14px; }
  .logo img { height: 28px; }
  .orbit { aspect-ratio: auto; max-width: none; }
  .orbit-ring, .orbit-facet, .orbit-node { display: none; }
  .orbit-core { position: static; transform: none; width: 100%; }
  .orbit-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .orbit-tabs::-webkit-scrollbar { display: none; }
  .orbit-tabs button { flex: none; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; }
  .orbit-tabs button.on { background: var(--petrol); color: #fff; border-color: var(--petrol); }
  .band { padding: 88px 0 64px; }
  .band::before { height: 56px; }
  .route { grid-template-columns: 1fr; }
  .course-panel { padding: 28px 22px; }
  .course-grid { grid-template-columns: 1fr; gap: 28px; }
  .course-item h3 { font-size: 20px; }
  .course-tab, .course-tab:first-child, .course-tab:last-child { font-size: 16px; padding: 14px 8px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 36px; }
  .page-head .sub { font-size: 17px; }
  .intro { padding: 40px 0 28px; gap: 28px; }
  .auth { padding: 28px 16px 56px; }
  .auth-card { padding: 26px 20px 22px; border-radius: 22px; }
  .plan { padding: 26px 22px 22px; }
  .plan .tagline { min-height: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan.featured { order: -1; }
  .compare th, .compare td { padding: 10px 10px; font-size: 14px; }
  .compare { min-width: 680px; }
  .compare thead th { white-space: nowrap; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .prose { padding-top: 36px; padding-bottom: 64px; }
  .prose h1 { font-size: 28px; }
}

/* ---------------------------------------------------------------- account, checkout, payment */
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.acc-block { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; margin-top: 20px; box-shadow: var(--sh-1); }
.acc-block h2 { font-size: 20px; margin: 0 0 12px; }
.acc-block .row-between h2 { margin: 0; }
.acc-block .row-between { margin-bottom: 12px; }
.plan-list { display: grid; gap: 10px; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); }
.plan-row p { margin: 4px 0 0; }
.plan-until { display: flex; align-items: center; gap: 14px; text-align: right; }
.plan-until b { display: block; font-size: 22px; color: var(--petrol); line-height: 1.1; }
.plan-until span { display: block; font-size: 13px; color: var(--muted); }
.empty-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--lime-wash); }
.empty-note p { margin: 0; color: var(--ink-2); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 220px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.inline-form .form-msg { flex-basis: 100%; margin: 0; }
.field-row { display: flex; gap: 10px; align-items: flex-end; }
.acc-details { margin: 18px 0 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.acc-details summary { cursor: pointer; font-weight: 650; color: var(--petrol); }
.acc-details form { margin-top: 14px; max-width: 420px; }
.acc-line { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.acc-line p { margin: 2px 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.st-paid { background: var(--ok-soft); color: var(--ok); }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.st-closed, .st-refunded { background: #f1f3f2; color: var(--muted); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; margin-top: 8px; }
.co-side { position: sticky; top: calc(var(--hdr) + 16px); }
.opt-list { display: grid; gap: 10px; }
.opt-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.opt:hover { border-color: var(--petrol-3); }
.opt::before { content: ""; flex: none; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9fb0ab; background: #fff; transition: border-color .15s, box-shadow .15s; }
.opt.on { border-color: var(--petrol); box-shadow: inset 0 0 0 1px var(--petrol); background: var(--lime-wash); }
.opt.on::before { border-color: var(--petrol); box-shadow: inset 0 0 0 3.5px #fff, inset 0 0 0 9px var(--petrol); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--petrol-3); outline-offset: 2px; }
.opt-body { flex: 1; display: block; }
.opt-body b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.opt-body span { display: block; color: var(--muted); font-size: 13.5px; }
.opt-price { font-weight: 700; color: var(--petrol); white-space: nowrap; }
.pay-ico { width: 24px; height: 24px; flex: none; background: center / contain no-repeat; }
.pay-alipay { background-image: url(/img/pay-alipay.svg); }
.pay-wechat { background-image: url(/img/pay-wechat.svg); }
.sum { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 15px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; color: var(--ink); word-break: break-word; }
.sum .sum-total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 750; }
.sum dd.sum-total { font-size: 26px; color: var(--petrol); line-height: 1.2; }
.co-notes { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; display: grid; gap: 4px; }
.co-notes li::before { content: "·"; margin-right: 6px; color: var(--lime-2); font-weight: 800; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh-3); padding: 44px 40px; text-align: center; }
.result-card h1 { font-size: 28px; margin-bottom: 8px; }
.result-card .sum { text-align: left; max-width: 420px; margin: 24px auto 0; background: var(--bg-2); padding: 18px 20px; border-radius: 16px; }
.result-act { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.result-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; }
.result-ico.wait { border: 4px solid var(--mint-2); border-top-color: var(--petrol); animation: spin 1s linear infinite; }
.result-ico.ok { background: var(--ok-soft); }
.result-ico.ok::after { content: ""; width: 26px; height: 14px; border-left: 4px solid var(--ok); border-bottom: 4px solid var(--ok); transform: translateY(-3px) rotate(-45deg); }
.result-ico.bad { background: var(--danger-soft); }
.result-ico.bad::after { content: "!"; color: var(--danger); font-size: 32px; font-weight: 800; }
.wx-amount { font-size: 18px; color: var(--ink); margin: 8px 0 18px; }
.wx-amount b { font-size: 40px; color: var(--petrol); }
.wx-qr { width: 240px; height: 240px; margin: 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.wx-qr svg { width: 100%; height: 100%; display: block; }
.wx-tip { margin: 16px 0 6px; }
.wx-phone { max-width: 420px; margin: 0 auto; }
.result-card.mock .sum dd b { font-size: 20px; color: var(--petrol); }
@media (max-width: 920px) {
  .checkout { grid-template-columns: 1fr; }
  .co-side { position: static; }
}
@media (max-width: 640px) {
  .acc-block { padding: 20px 18px; border-radius: 18px; }
  .plan-row, .empty-note { flex-direction: column; align-items: flex-start; }
  .plan-until { text-align: left; }
  .field-row { flex-direction: column; align-items: stretch; }
  .result-card { padding: 32px 20px; border-radius: 22px; }
  .tbl { font-size: 13px; }
}

/* ---------------------------------------------------------------- learning centre */
.learn { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 36px; max-width: 1280px; margin: 0 auto; padding: 32px 24px 96px; align-items: start; }
.learn-side { position: sticky; top: calc(var(--hdr) + 20px); max-height: calc(100vh - var(--hdr) - 40px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.learn-main { min-width: 0; }
.ln { display: flex; flex-direction: column; gap: 2px; }
.ln-h { font-size: 12.5px; font-weight: 700; color: var(--faint); margin: 18px 10px 4px; }
.ln-a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.ln-a:hover { background: var(--bg-2); color: var(--petrol); }
.ln-a[aria-current="page"] { background: var(--lime-soft); color: var(--petrol); font-weight: 650; }
.ln-tag { font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.ln-tag.free { background: var(--ok-soft); color: var(--ok); }
.ln-tag.lock { background: #f1f3f2; color: var(--faint); }
.ln-tag.soon { background: var(--warn-soft); color: var(--warn); }
.hub-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(120deg, var(--lime-soft), var(--mint)); border-radius: 26px; padding: 30px 32px; }
.hub-head h1 { font-size: 30px; margin-bottom: 4px; }
.hub-head p { margin: 0; color: var(--ink-2); }
.hub-resume { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.hub-resume span { color: var(--muted); font-size: 14px; }
.hub-resume b { flex: 1; min-width: 160px; }
.hub-sec { margin-top: 36px; }
.hub-sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hub-sec-h h2 { font-size: 21px; margin: 0; }
.hub-sec-h p { margin: 0; color: var(--muted); font-size: 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hub-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; min-height: 128px; }
.hub-card:hover { box-shadow: var(--sh-2); color: inherit; transform: translateY(-1px); }
.hub-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hub-card-top b { font-size: 16.5px; color: var(--ink); }
.hub-card-d { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.hub-card-p { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hub-prog { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.hub-prog i { display: block; height: 100%; background: var(--lime-2); border-radius: 6px; }
.hub-prog-t { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.learn-head { margin-bottom: 18px; }
.learn-head h1 { font-size: 30px; margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lesson-list a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.45; }
.lesson-list a.on { background: var(--lime-soft); color: var(--petrol); font-weight: 650; }
.lesson-list a.locked { color: var(--faint); }
.lesson-list .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.lesson-list .t { flex: 1; }
.mobile-toc { display: none; }
.lesson, .drill { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 40px 48px; box-shadow: var(--sh-1); }
.lesson-k { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.lesson h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.lesson-sum { font-size: 18px; color: var(--ink-2); border-left: 4px solid var(--lime); padding-left: 14px; margin-bottom: 28px; }
.doc { font-size: 16.5px; line-height: 1.85; }
.bl { padding-left: 1.4em; margin: 0 0 1em; }
.callout { border-radius: 16px; padding: 14px 18px; margin: 0 0 1.2em; }
.callout.tip { background: var(--lime-wash); border: 1px solid #e3efc1; }
.callout.warn { background: var(--warn-soft); border: 1px solid #f5e1bd; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.2em; }
.cmp > div { border-radius: 14px; padding: 14px 16px; }
.cmp-bad { background: #fbf1ef; }
.cmp-good { background: var(--ok-soft); }
.tree { margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tree-root { background: var(--petrol); color: #fff; padding: 12px 16px; font-weight: 650; }
.tree-br { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tree-b { padding: 12px 16px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.dlg { display: grid; gap: 10px; margin: 0 0 1.4em; }
.dlg-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.dlg-line p { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); }
.dlg-line.cd p { background: var(--lime-wash); }
.dlg-note { margin-left: 76px; font-size: 14.5px; background: #fff8e8; border: 1px dashed #ecd28f; border-radius: 12px; padding: 8px 12px; }
.takeaways { margin-top: 28px; background: var(--bg-2); border-radius: 18px; padding: 20px 22px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lock-panel { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-2); border-radius: 18px; padding: 20px 22px; margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.filters button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.drill-list { display: grid; gap: 8px; }
.drill-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.calc { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); }
.ans-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ans-fb.ok { color: var(--ok); font-weight: 650; }
.ans-fb.bad { color: var(--danger); font-weight: 650; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e8eeeb; }
.mm-q { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin: 36px 0 24px; text-align: center; }
@media (max-width: 1080px) { .learn { grid-template-columns: 1fr; } .learn-side { display: none; } .mobile-toc { display: block; } }
@media (max-width: 640px) { .lesson, .drill { padding: 24px 18px; } .cmp { grid-template-columns: 1fr; } .dlg-line { grid-template-columns: 1fr; } .dlg-note { margin-left: 0; } }
.lock-act { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- learning centre: details */
.ln-h { letter-spacing: .02em; }
.hub-card { border-color: var(--line); }
.hub-card:hover { border-color: var(--mint-2); }
.hub-prog-t { font-variant-numeric: tabular-nums; }
.learn-head .hub-card-p { max-width: 360px; }
.back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--petrol); }
.course-side h2 { font-size: 18px; margin: 4px 0 2px; }
.course-side .hub-card-p { margin: 10px 0 14px; }
.lesson-list a:hover { background: var(--bg-2); }
.lesson-list a.on .n { background: var(--petrol); color: var(--lime); }
.lesson-list .n .ok { width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: translateY(-1px) rotate(-45deg); }
.lesson-list .lk, .lock-ico { flex: none; width: 14px; height: 14px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7.5' rx='1.6' fill='%238d9b9e'/%3E%3Cpath d='M5.2 7V5.2a2.8 2.8 0 0 1 5.6 0V7' fill='none' stroke='%238d9b9e' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.lesson-k { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lesson h1 { letter-spacing: -.02em; }
.doc { color: var(--ink); }
.doc > * { max-width: 72ch; }
.doc h3 { font-size: 20px; margin: 1.8em 0 .6em; }
.doc p { margin: 0 0 1em; }
.doc .table-scroll, .doc .dlg, .doc .cmp, .doc .tree, .doc .steps { max-width: none; }
.bl li { margin: .25em 0; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding: 12px 16px 12px 52px; background: var(--bg-2); border-radius: 14px; }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--petrol); color: var(--lime); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.steps b { display: block; }
.steps span { display: block; color: var(--ink-2); }
.callout b { display: block; margin-bottom: 2px; }
.callout p { margin: 0; }
.callout .bl { margin: 4px 0 0; }
.callout.tip b { color: var(--petrol); }
.callout.warn b { color: var(--warn); }
.formula { font-family: var(--mono); background: var(--bg-2); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
blockquote.en { margin: 0 0 1.2em; padding: 14px 18px; border-radius: 14px; background: #f4f7fb; border-left: 4px solid #9fb3c8; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.75; color: #24333f; }
.cmp p { margin: 4px 0 0; }
.cmp-bad { border: 1px solid #f3d9d3; }
.cmp-bad b { color: var(--danger); }
.cmp-good { border: 1px solid #cfe8da; }
.cmp-good b { color: var(--ok); }
.tree-b b { display: block; color: var(--petrol); margin-bottom: 4px; }
.tree-b ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.dlg-line { align-items: start; }
.dlg-line .who { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 10px; }
.dlg-line.cd .who { color: var(--teal); }
.dlg-line.cd p { border: 1px solid #e6f0cc; }
.dlg-note { color: var(--ink-2); }
.dlg-note b { color: var(--warn); margin-right: 8px; }
.takeaways h2 { font-size: 18px; margin-bottom: 8px; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways .grid-2 { gap: 16px; }
.practice { margin-top: 22px; }
.practice h2 { font-size: 18px; margin-bottom: 10px; }
.practice-links { display: flex; flex-wrap: wrap; gap: 10px; }
.lesson-done { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.lesson-nav .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lock-panel .lock-ico { width: 26px; height: 26px; margin: 0; }
.lock-panel > div:not(.lock-act) { flex: 1; min-width: 200px; }
.lock-panel p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sub-h { font-size: 19px; margin: 26px 0 10px; }
.story { background: var(--bg-2); border-radius: 14px; padding: 14px 18px; }
.say { background: var(--lime-wash); border-radius: 14px; padding: 14px 18px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.seg a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 650; text-decoration: none; font-size: 15px; }
.seg a[aria-selected="true"] { background: #fff; color: var(--petrol); box-shadow: var(--sh-1); }
.ex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ex-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; color: inherit; }
.ex-card:hover { box-shadow: var(--sh-2); color: inherit; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-data-wrap { margin-bottom: 18px; }
.ex-data-wrap summary { cursor: pointer; font-weight: 650; color: var(--petrol); margin-bottom: 10px; }
.ex-data { margin: 0 0 14px; }
.ex-data figcaption { font-weight: 650; margin-bottom: 6px; font-size: 15px; }
.fq-group { margin-bottom: 28px; }
.fq-group h2 { font-size: 19px; margin-bottom: 10px; }
.faq.fq { max-width: none; }
.faq.fq summary { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.faq.fq summary small { color: var(--muted); font-weight: 500; font-size: 14px; }
.faq.fq summary .chip { align-self: flex-start; margin-top: 4px; }
.filters button:hover { border-color: var(--petrol-3); }
.drill-row { transition: border-color .15s, box-shadow .15s; }
.drill-row:hover { border-color: var(--mint-2); box-shadow: var(--sh-1); color: inherit; }
.drill-row.locked { background: #fbfcfb; }
.drill-row.locked b { color: var(--muted); }
.dr-n { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.dr-main b { font-weight: 600; font-size: 15.5px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dr-main > span { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.drill { padding: 34px 40px; }
.drill h1 { font-size: 24px; line-height: 1.5; }
.drill-q { font-weight: 650; }
.drill-work { margin: 18px 0 12px; }
.reveal { margin-top: 22px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.qa-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.qa-list li { background: var(--bg-2); border-radius: 12px; padding: 10px 14px; }
.qa-list b { display: block; }
.qa-list span { color: var(--muted); font-size: 14.5px; }
.hint { margin: 10px 0 0; }
.hint summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.self-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding: 14px 16px; background: var(--bg-2); border-radius: 14px; }
.self-rate span { color: var(--muted); font-size: 14px; }
.exhibit { margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 12px; background: #fff; }
.exhibit figcaption { font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.exhibit figcaption span { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.ex-note { color: var(--faint); font-size: 12.5px; margin: 6px 0 0; }
.chart .ax { font-size: 12px; fill: #8d9b9e; }
.chart .lab { font-size: 13px; fill: #3a4c50; }
.chart .val { font-size: 12px; fill: #1b2d31; font-weight: 600; }
.chart .val.in { fill: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--ink-2); margin: 4px 0 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.calc-q b { display: inline-block; margin-right: 8px; color: var(--petrol); }
.ans-row .input { width: 200px; font-variant-numeric: tabular-nums; }
.ans-row .unit { color: var(--muted); min-width: 24px; }
.ans-fb { margin: 10px 0 0; font-weight: 650; }
.steps-d { margin-top: 10px; }
.steps-d summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 14px; }
.mm-run { text-align: center; }
.mm-timer { font-size: 22px; font-weight: 800; color: var(--petrol); font-variant-numeric: tabular-nums; }
.mm-score { color: var(--muted); font-weight: 650; }
.mm-q { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mm-ans { justify-content: center; }
.mm-ans .input { width: 220px; height: 54px; font-size: 22px; text-align: center; }
.mm-run .ans-fb { min-height: 1.6em; }
@media (max-width: 1080px) {
  .learn { gap: 0; padding-top: 20px; }
  .mobile-toc { margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
  .mobile-toc summary { cursor: pointer; font-weight: 650; color: var(--petrol); }
  .mobile-toc .lesson-list { margin-top: 10px; }
}
@media (max-width: 640px) {
  .learn { padding: 16px 16px 64px; }
  .hub-head { flex-direction: column; align-items: flex-start; padding: 22px 20px; border-radius: 20px; }
  .hub-head h1 { font-size: 24px; }
  .lesson, .drill { border-radius: 20px; }
  .doc { font-size: 16px; }
  .dlg-line { gap: 2px; }
  .dlg-line .who { padding-top: 0; }
  .lesson-nav { flex-direction: column-reverse; }
  .lesson-nav .btn { width: 100%; }
  .drill-row { grid-template-columns: 30px minmax(0, 1fr); }
  .dr-st { grid-column: 2; }
  .ans-row .input { width: 100%; flex: 1; }
  .takeaways .grid-2 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- resume course: paper previews of the documents */
.paper-doc { background: #fff; color: #111; width: 794px; min-height: 1123px; padding: 56px 64px; font-family: "Times New Roman", Times, "Songti SC", "SimSun", serif; font-size: 13.5px; line-height: 1.45; }
.paper-doc.lang-zh { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 13px; line-height: 1.6; }
.paper-doc p { margin: 0; }
.rd-head { text-align: center; margin-bottom: 10px; }
.rd-head h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: .02em; color: #111; }
.rd-head p { font-size: 12.5px; color: #333; }
.rd-head .sep { margin: 0 8px; color: #999; }
.rd-sec { margin-top: 10px; }
.rd-sec h3 { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; border-bottom: 1px solid #222; padding-bottom: 2px; margin: 0 0 6px; color: #111; }
.lang-zh .rd-sec h3 { letter-spacing: 0; font-size: 14px; }
.rd-item { margin-bottom: 7px; }
.rd-line { display: flex; justify-content: space-between; gap: 12px; }
.rd-line span { white-space: nowrap; }
.rd-role i { font-style: italic; }
.lang-zh .rd-role i { font-style: normal; color: #333; }
.rd-item ul { margin: 2px 0 0; padding-left: 18px; }
.rd-item li { margin: 1px 0; }
.rd-text { margin: 2px 0; }
.cl { font-size: 14px; line-height: 1.6; }
.cl .cl-sender p, .cl .cl-recipient p { margin: 0; }
.cl .cl-date { margin: 14px 0; }
.cl .cl-recipient { margin-bottom: 14px; }
.cl .cl-salute { margin: 0 0 12px; }
.cl .cl-para { margin: 0 0 12px; text-align: justify; }
.cl.lang-zh .cl-para { text-indent: 2em; }
.cl .cl-close { margin-top: 16px; }
.cl-close-zh { margin-top: 12px; }
.cl-close-zh .indent { display: inline-block; padding-left: 2em; }
.cl .cl-sign { margin-top: 6px; }
.cl.lang-zh .cl-sign { text-align: right; }
.cl-sender-zh { margin-top: 18px; text-align: right; color: #444; font-size: 13px; }
mark.ph { background: #fff3b0; color: inherit; padding: 0 1px; border-radius: 2px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.tpl-thumb { display: block; height: 300px; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; }
.tpl-scale { transform: scale(.34); transform-origin: top left; width: 794px; position: absolute; left: 50%; margin-left: -135px; top: 14px; box-shadow: 0 6px 20px rgba(20, 54, 60, .15); }
.tpl-thumb:hover .tpl-scale { box-shadow: 0 10px 28px rgba(20, 54, 60, .25); }
.tpl-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-body b { font-size: 16px; }
.tpl-body p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.tpl-act { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.doc-view { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.doc-paper { overflow: hidden; border-radius: 12px; box-shadow: var(--sh-3); background: #fff; border: 1px solid var(--line); }
.doc-side { position: sticky; top: calc(var(--hdr) + 20px); }
.doc-side h1 { font-size: 22px; margin-bottom: 6px; }
.doc-side h2 { font-size: 17px; margin: 22px 0 8px; }
.doc-side .btn { margin: 14px 0 8px; }
.verb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.verb-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.verb-card b { display: block; color: var(--petrol); margin-bottom: 8px; }
.verb-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.verb-card li span { font-weight: 600; }
.verb-card li small { color: var(--muted); margin-left: 4px; }
.pat-list { display: grid; gap: 14px; }
.pat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.pat > b { display: block; font-size: 16px; margin-bottom: 6px; }
.pat .cmp { margin: 10px 0 0; }
@media (max-width: 1080px) {
  .doc-view { grid-template-columns: 1fr; }
  .doc-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .doc-paper { box-shadow: var(--sh-1); }
  .verb-card ul { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- local mail outbox (development) */
.outbox .mail { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 14px; }
.outbox .mail header { display: flex; flex-direction: column; margin-bottom: 8px; }
.outbox .mail header span { color: var(--muted); font-size: 13px; }
.outbox pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* long labels (lesson links, next-lesson buttons) wrap instead of pushing the page wider */
.practice-links .btn, .lesson-nav .btn, .tpl-act .btn, .result-act .btn { white-space: normal; height: auto; min-height: 44px; padding-top: 9px; padding-bottom: 9px; line-height: 1.45; text-align: center; }
.practice-links .btn { text-align: left; justify-content: flex-start; }
.doc-tbl th, .chart-tbl th { white-space: normal; }
.doc-tbl td, .doc-tbl th { min-width: 88px; }

/* ---------------------------------------------------------------- home: one question as it is taught, compact plans */
.section-tight-top { padding-top: 24px; }
.sample { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh-3); overflow: hidden; }
.sample-q { padding: 40px 40px; background: linear-gradient(160deg, var(--lime-wash), var(--mint)); }
.sample-q h3 { font-size: 26px; line-height: 1.4; margin: 16px 0 12px; color: var(--petrol); }
.sample-q p { color: var(--ink-2); margin: 0; }
.sample-body { padding: 32px 36px 36px; }
.sample-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sample-tabs button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 650; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.sample-tabs button[aria-selected="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.sample-hint { font-size: 19px; color: var(--ink); line-height: 1.7; }
.sample-model { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.sample-model b { color: var(--petrol); }
.sample-say { font-size: 18px; line-height: 1.8; color: var(--ink); background: var(--lime-wash); border-radius: 16px; padding: 16px 20px; }
.sample-say[lang="en"] { font-family: Georgia, "Times New Roman", serif; }
.mini-plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mini-plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px 22px; text-decoration: none; color: inherit; box-shadow: var(--sh-1); transition: box-shadow .15s, transform .15s; }
.mini-plan:hover { box-shadow: var(--sh-2); transform: translateY(-2px); color: inherit; }
.mini-plan.featured { border: 2px solid var(--petrol); }
.mini-plan .badge { position: absolute; top: -12px; left: 20px; background: var(--lime); color: var(--petrol); font-size: 12.5px; font-weight: 750; padding: 3px 10px; border-radius: 999px; }
.mini-plan b { font-size: 18px; }
.mini-tag { color: var(--muted); font-size: 14px; flex: 1; }
.mini-price { color: var(--muted); font-size: 14px; margin-top: 6px; }
.mini-price em { font-style: normal; font-size: 30px; font-weight: 800; color: var(--petrol); letter-spacing: -.02em; }
@media (max-width: 1080px) { .mini-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) { .sample { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sample-q { padding: 24px 20px; }
  .sample-q h3 { font-size: 21px; }
  .sample-body { padding: 22px 18px 24px; }
  .mini-plans { grid-template-columns: 1fr; }
}
.rd-same { margin-top: -3px; }

/* ---------------------------------------------------------------- learning centre: next steps and progress */
.nx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nx { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lime-2); text-decoration: none; color: inherit; box-shadow: var(--sh-1); transition: box-shadow .15s, transform .15s; }
.nx:hover { box-shadow: var(--sh-2); transform: translateY(-1px); color: inherit; }
.nx b { font-size: 16px; color: var(--ink); }
.nx span { color: var(--muted); font-size: 14px; flex: 1; line-height: 1.6; }
.nx em { font-style: normal; font-weight: 700; color: var(--teal); font-size: 14px; }
.pg-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pg-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pg-item span { color: var(--muted); font-size: 13px; }
.pg-item b { font-size: 22px; color: var(--petrol); font-variant-numeric: tabular-nums; }
.pg-item small { color: var(--faint); font-size: 12.5px; line-height: 1.4; }
.pg-item.off b { color: var(--faint); }
@media (max-width: 1180px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nx-grid { grid-template-columns: 1fr; } .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart .val.side { font-size: 11.5px; }
.chart-data { margin-top: 8px; }
.chart-data summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 13.5px; }
.chart-data .table-scroll { margin-top: 8px; }
.chart-data th, .chart-data td { padding: 6px 10px; font-size: 13.5px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.prod-body .cta-row { margin-top: auto; }
.disclaimer { color: var(--faint); font-size: 13.5px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.mm-g { font-size: 13px; font-weight: 700; color: var(--faint); margin: 10px 0 2px; }
.mm-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.mm-row h2 { font-size: 17px; margin: 0 0 4px; }
@media (max-width: 760px) { .mm-row { grid-template-columns: 1fr; } }
.persona { background: var(--lime-wash); border: 1px solid #e3efc1; border-radius: 18px; padding: 16px 20px; margin-bottom: 24px; }
.persona b { color: var(--petrol); }
.persona p { margin: 6px 0; color: var(--ink-2); font-size: 14.5px; }
.persona ul { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* one-off services: the résumé review card (résumé, learn-résumé and pricing pages) and its account rows */
.svc-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 34px; box-shadow: var(--sh-1); }
.svc-card h2 { font-size: 26px; margin: 12px 0 6px; }
.svc-card .ticks { margin: 14px 0 0; }
.svc-side { display: grid; gap: 10px; justify-items: start; padding-left: 28px; border-left: 1px solid var(--line); }
.svc-side p { margin: 0; }
.svc-price { font-size: 40px; font-weight: 800; color: var(--petrol); line-height: 1; font-variant-numeric: tabular-nums; }
.svc-price span { font-size: 22px; vertical-align: 12px; margin-right: 2px; }
.svc-price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.svc-row { padding: 16px 18px; border-radius: 16px; background: var(--bg-2); }
.svc-row + .svc-row { margin-top: 12px; }
.svc-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.svc-row .field { margin-bottom: 12px; }
.svc-result { margin-top: 10px; }
.svc-result p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.svc-note { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.svc-follow { margin-top: 14px; }
.svc-opt { cursor: default; align-items: flex-start; }
.svc-opt .ticks { margin: 8px 0 0; }
.st-svc-paid, .st-svc-followup { background: var(--warn-soft); color: var(--warn); }
.st-svc-submitted { background: #e9f1ff; color: #2c56c8; }
.st-svc-delivered, .st-svc-done { background: var(--ok-soft); color: var(--ok); }
.st-svc-refunded { background: #f1f3f2; color: var(--muted); }
@media (max-width: 760px) {
  .svc-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .svc-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
.learn-svc { margin-top: 40px; }
.learn-svc .svc-card { box-shadow: none; }
input[type=file].input { padding: 9px 12px; font-size: 14px; cursor: pointer; }
input[type=file].input::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; color: var(--petrol); cursor: pointer; }
/* checkout: referral code */
.co-ref { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-ref label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.co-ref-row { display: flex; gap: 8px; }
.co-ref-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-ref .form-msg { margin: 8px 0 0; }
.co-ref-on { margin: 0; font-size: 14px; color: var(--petrol); }
/* checkout while online payment is off: e-mail and the assistant's WeCom QR side by side */
.co-contact { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.co-contact p:last-child { margin-bottom: 0; }
.co-qr { flex: none; margin: 0; text-align: center; }
.co-qr img { display: block; width: 140px; height: 140px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.co-qr figcaption { max-width: 154px; margin: 8px auto 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
.co-nopay-text { color: var(--ink-2); }
@media (max-width: 560px) { .co-contact { flex-direction: column; align-items: stretch; } .co-contact .co-qr { align-self: center; } }
.co-pc { margin: 18px 0 4px; padding: 22px 18px 20px; border-radius: 14px; background: var(--lime-wash); border: 1px solid var(--lime-soft); text-align: center; }
.co-pc p { margin: 0; }
.co-pc-lead { font-size: 15px; font-weight: 650; color: var(--ink); }
.co-pc-tip { margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.checkout [data-copy] { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; color: var(--petrol); cursor: pointer; }
.co-pc .co-pc-url { margin: 10px 0 4px; font-size: 25px; font-weight: 750; letter-spacing: -.01em; }
.checkout .co-mail { font-weight: 650; }
.checkout .co-copy { padding: 5px 10px; border-radius: 999px; background: var(--petrol); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: 0; line-height: 1; }
.checkout .co-mail .co-copy { padding: 4px 8px; background: #fff; color: var(--petrol); border: 1px solid var(--line-2); font-size: 11.5px; }
.co-pc-cs { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.co-pc .co-qr { display: inline-block; margin-top: 14px; }
.adm-bar-in .adm-who { margin-left: auto; margin-right: 16px; font-size: 13px; color: rgba(255, 255, 255, .72); }
/* admin 数据 */
.adm-period { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.adm-bar-cell { width: 34%; }
.adm-bar-v { display: block; height: 8px; min-width: 2px; border-radius: 4px; background: var(--lime); }
.tbl td.adm-exp-cell { width: 1%; padding-top: 6px; padding-bottom: 6px; text-align: right; }
.adm-exp { width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--petrol); cursor: pointer; }
.adm-exp:hover { border-color: var(--petrol-3); }
.adm-exp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.adm-exp[aria-expanded="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.adm-exp[aria-expanded="true"] svg { transform: rotate(180deg); }
.tbl .adm-hours-row > td { padding: 16px 18px 8px; background: var(--bg-2); }
.adm-hours-top { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.adm-hours-sum { margin: 0; max-width: 70ch; font-size: 14px; line-height: 1.6; color: var(--ink); }
.adm-hours-sum b { color: var(--petrol); }
.adm-legend { display: flex; gap: 16px; margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.adm-legend span::before { content: ""; display: inline-block; width: 18px; margin-right: 6px; vertical-align: middle; }
.adm-legend .lg-uv::before { height: 8px; background: rgba(196, 230, 107, .6); border-top: 2px solid var(--petrol); }
.adm-legend .lg-pv::before { height: 0; border-top: 2px dashed var(--petrol-3); }
.adm-chart { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 190px auto; }
.adm-yax, .adm-plot, .adm-xax { position: relative; }
.adm-yax span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.adm-plot .g { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.adm-plot .a { fill: var(--lime); opacity: .5; }
.adm-plot .uv, .adm-plot .pv { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.adm-plot .uv { stroke: var(--petrol); stroke-width: 2.25; }
.adm-plot .pv { stroke: var(--petrol-3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.adm-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); }
.adm-hc { position: relative; }
.adm-hc::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--petrol-3); opacity: 0; }
.adm-hc::after { content: ""; position: absolute; top: var(--y); left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--petrol); background: #fff; opacity: 0; }
.adm-hc:hover::before { opacity: .35; }
.adm-hc:hover::after { opacity: 1; }
.adm-tip { display: none; position: absolute; top: 0; left: calc(50% + 10px); z-index: 2; padding: 7px 10px; border-radius: 8px; background: var(--petrol); color: #fff; font-size: 12px; line-height: 1.55; white-space: nowrap; pointer-events: none; }
.adm-hc:hover .adm-tip { display: block; }
.adm-hc:nth-child(n+17) .adm-tip { left: auto; right: calc(50% + 10px); }
.adm-xax { grid-column: 2; height: 26px; }
.adm-xax span { position: absolute; top: 7px; transform: translateX(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-hours > .small { margin: 4px 0 0; }
.adm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
@media (max-width: 760px) { .adm-two { grid-template-columns: minmax(0, 1fr); } }
/* promoter page */
.partner-link { word-break: break-all; }
.p-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 8px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.p-card span { display: block; color: var(--muted); font-size: 14px; }
.p-card b { display: block; margin: 4px 0; font-size: 28px; color: var(--petrol); font-variant-numeric: tabular-nums; }
.p-card small { color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qr-until { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.adm-qr { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.adm-qr img { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.adm-ref-acts { display: flex; gap: 6px; white-space: nowrap; }
