/* =====================================================================
   不動產經紀人題庫筆記 — realtor.tw 形象網頁設計系統
   綠 × 金 × 藏藍。供 realtor 形象首頁 / 風格指南 / 影片頁共用。
   Token 架構沿用專案 system.css 慣例（--brand-primary/accent、--ink-*、
   --bg…），色階以 color-mix(in oklab) 由三顆種子色推導。
   ===================================================================== */

:root {
  --brand-primary: #1F9D5C;   /* 綠：行動 / 通過 / 主 CTA */
  --brand-accent:  #D9A62B;   /* 金：加贈 / 徽章 / 正向強調 */
  --brand-navy:    #1B4D74;   /* 藏藍：標題強調 / 法規區塊 */

  --p-50:  color-mix(in oklab, var(--brand-primary) 10%, white);
  --p-100: color-mix(in oklab, var(--brand-primary) 22%, white);
  --p-200: color-mix(in oklab, var(--brand-primary) 40%, white);
  --p-300: color-mix(in oklab, var(--brand-primary) 62%, white);
  --p-400: color-mix(in oklab, var(--brand-primary) 85%, white);
  --p-500: var(--brand-primary);
  --p-600: color-mix(in oklab, var(--brand-primary) 86%, black);
  --p-700: color-mix(in oklab, var(--brand-primary) 72%, black);
  --p-800: color-mix(in oklab, var(--brand-primary) 55%, black);

  --a-50:  color-mix(in oklab, var(--brand-accent) 12%, white);
  --a-100: color-mix(in oklab, var(--brand-accent) 24%, white);
  --a-200: color-mix(in oklab, var(--brand-accent) 42%, white);
  --a-400: color-mix(in oklab, var(--brand-accent) 85%, white);
  --a-500: var(--brand-accent);
  --a-600: color-mix(in oklab, var(--brand-accent) 84%, black);
  --a-700: color-mix(in oklab, var(--brand-accent) 66%, black);

  --n-50:  color-mix(in oklab, var(--brand-navy) 10%, white);
  --n-100: color-mix(in oklab, var(--brand-navy) 22%, white);
  --n-200: color-mix(in oklab, var(--brand-navy) 40%, white);
  --n-500: var(--brand-navy);
  --n-600: color-mix(in oklab, var(--brand-navy) 86%, black);
  --n-700: color-mix(in oklab, var(--brand-navy) 72%, black);

  --ink-900: #1B1F2A;
  --ink-700: #3E4352;
  --ink-500: #6C7180;
  --ink-400: #9AA0AC;
  --ink-300: #C7CBD3;
  --bg:        #F7F8F5;
  --bg-sunk:   #EFF2EC;
  --surface:   #FFFFFF;
  --line:      #E2E5DE;
  --line-soft: #EEF0EA;

  --font-zh: "Noto Sans TC", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,28,20,.06), 0 2px 6px rgba(20,28,20,.05);
  --shadow-md: 0 4px 10px rgba(20,28,20,.07), 0 14px 30px rgba(20,28,20,.08);
  --shadow-lg: 0 10px 24px rgba(20,28,20,.10), 0 30px 60px rgba(20,28,20,.12);
  --shadow-pop: 4px 4px 0 var(--ink-900);
}

/* ---- reset / base ---- */
.rt * { box-sizing: border-box; }
.rt {
  margin: 0; font-family: var(--font-zh); background: var(--bg); color: var(--ink-900);
  line-height: 1.65; letter-spacing: .01em; -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.rt img { display: block; max-width: 100%; }
/* 一般連結繼承脈絡色；排除按鈕（.rt-btn* / .rt-btn--buy），
   否則此重置的 specificity（0,1,1）會壓過按鈕自身的 color 宣告（0,1,0），
   使按鈕文字錯誤繼承外層顏色（例：Google 登入鍵變深色、白底鍵白字看不見）。*/
.rt a:not([class*="rt-btn"]) { color: inherit; text-decoration: none; }
.rt a { text-decoration: none; }
.rt a:not([class*="rt-btn"]):hover { color: var(--p-600); }
.rt h1, .rt h2, .rt h3, .rt h4 { line-height: 1.2; margin: 0; font-weight: 900; letter-spacing: .005em; }
.rt p { margin: 0; text-wrap: pretty; }
@keyframes rt-floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- layout ---- */
.rt-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rt-container--wide { max-width: 1320px; }
.rt-section { padding: 88px 0; }
.rt-section--sunk { background: var(--bg-sunk); }
.rt-section--navy { background: var(--n-50); }

/* ---- header / nav ---- */
.rt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,245,.86);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.rt-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.rt-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.rt-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rt-logo-name {
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  letter-spacing: -.01em; white-space: nowrap;
}
.rt-logo-name .g { color: #1F9D5C; font-weight: 700; }
.rt-logo-name .d { color: #D9A62B; font-weight: 700; }

.rt-nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.rt-nav a {
  font-weight: 500; font-size: .94rem; color: var(--ink-700); white-space: nowrap;
}
.rt-nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.rt-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); flex: none; cursor: pointer; padding: 0;
}
.rt-hamburger span { display: block; width: 16px; height: 2px; background: var(--ink-900); margin: 0 auto; }

.rt-mobile-nav {
  display: none; flex-direction: column; gap: 2px; padding: 8px 24px 16px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.rt-mobile-nav.is-open { display: flex; }
/* 只設直接子連結（堆疊選單項）；巢狀於 .rt-nav-cta 的 CTA 按鈕不套用，
   避免覆蓋按鈕自身顏色。*/
.rt-mobile-nav > a {
  font-weight: 500; font-size: 1rem; color: var(--ink-700);
  padding: 11px 4px; border-bottom: 1px solid var(--line-soft);
}
.rt-mobile-nav > a:last-of-type { border-bottom: 0; }
.rt-mobile-nav .rt-nav-cta { margin-top: 14px; gap: 10px; }
.rt-mobile-nav .rt-nav-cta .rt-btn { flex: 1; }

/* ---- buttons ---- */
.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .9rem; padding: 9px 16px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; white-space: nowrap; cursor: pointer;
  font-family: var(--font-zh);
}
.rt-btn--primary { background: var(--p-500); color: #fff; box-shadow: var(--shadow-sm); }
.rt-btn--primary:hover { color: #fff; }
.rt-btn--navy { background: var(--n-500); color: #fff; }
.rt-btn--navy:hover { color: #fff; }
.rt-btn--outline { background: var(--surface); color: var(--ink-900); border-color: var(--ink-900); }
.rt-btn--text { background: transparent; color: var(--ink-700); }
.rt-btn--white { background: #fff; color: var(--ink-900); border-color: var(--line); box-shadow: var(--shadow-sm); }
.rt-btn--lg { padding: 16px 30px; font-size: 1.08rem; }
.rt-btn--md { padding: 13px 24px; font-size: 1rem; }
.rt-btn .g { font-family: var(--font-display); font-weight: 700; }

/* 粉紅「直接購買」— 書籍販售專用，比照 momo 購物購買鍵，刻意與站內綠色 CTA 區隔 */
.rt-btn--buy {
  background: #ff1170; color: #fff; font-weight: 700; font-size: .76rem;
  border-radius: 6px; padding: 9px 0; width: 100%; white-space: nowrap;
  box-shadow: 0 2px 4px rgba(255,17,112,.35); border: 0;
}
.rt-btn--buy:hover { color: #fff; }

/* ---- eyebrow / pills / badges ---- */
.rt-eyebrow {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--n-600);
}
.rt-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-weight: 700; font-size: .76rem; letter-spacing: .04em;
  padding: 5px 11px; border-radius: var(--r-pill);
}
.rt-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.rt-pill--gold { background: var(--a-100); color: var(--a-700); }
.rt-pill--navy { background: var(--n-100); color: var(--n-700); }
.rt-pill--green { background: var(--p-100); color: var(--p-700); }
.rt-pill--muted { background: var(--bg-sunk); color: var(--ink-700); }
.rt-pill--dark { background: var(--ink-900); color: #fff; }

.rt-check {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: var(--a-100); color: var(--a-700); align-items: center; justify-content: center; flex: none;
}

/* ---- section head ---- */
.rt-head { max-width: 960px; margin-bottom: 40px; }
.rt-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rt-head--narrow { max-width: 680px; }
.rt-h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; margin-top: 12px; }
.rt-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-700); font-weight: 400; margin-top: 12px; }
.rt-lead--sm { font-size: clamp(.95rem, 1.4vw, 1.1rem); }
.rt-nowrap { white-space: nowrap; }

/* ---- cards ---- */
.rt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.rt-card--sticker { border: 2px solid var(--ink-900); box-shadow: var(--shadow-pop); }

/* ---- grids ---- */
.rt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rt-grid-2--wide { gap: 24px; }
.rt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rt-grid-3--tight { gap: 16px; }

/* ---- hero ---- */
.rt-hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.rt-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(640px 440px at 88% 4%, var(--p-50), transparent 70%),
    radial-gradient(520px 380px at 4% 96%, var(--n-50), transparent 72%);
}
.rt-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.rt-hero h1 {
  margin: 18px 0 0; font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 900;
  line-height: 1.06; letter-spacing: -.02em;
}
.rt-hero h1 .keep { white-space: nowrap; color: #1F9D5C; }
.rt-hero h1 .hl { color: #D9A62B; }
.rt-hero h1 .g { color: #1F9D5C; }
.rt-hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-700);
  font-weight: 400; margin-top: 16px;
}
.rt-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.rt-hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.rt-hero-trust span.item { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-700); }

.rt-hero-visual { position: relative; display: grid; place-items: center; min-height: 388px; }
.rt-mascot-circle {
  width: min(372px, 80%); aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--ink-900);
  box-shadow: 8px 8px 0 rgba(27,31,42,.92); display: grid; place-items: center;
}
.rt-mascot-circle img { width: 92%; filter: drop-shadow(0 10px 18px rgba(27,31,42,.16)); }
.rt-badge-card {
  position: absolute; background: #fff; border: 2px solid var(--ink-900);
  border-radius: 14px; padding: 11px 15px; box-shadow: 3px 3px 0 var(--ink-900);
  display: flex; align-items: center; gap: 10px;
}
.rt-badge-card .big { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.rt-badge-card .sub { font-size: .76rem; color: var(--ink-500); line-height: 1.2; }
.rt-badge-card--tl { top: 6%; left: -2%; }
.rt-badge-card--br { bottom: 16%; right: -5%; }
.rt-badge-card--bl { bottom: 0%; left: 6%; }

/* ---- stat bar ---- */
.rt-statbar-wrap { max-width: 1120px; margin: -10px auto 0; padding: 0 24px; }
.rt-statbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.rt-stat {
  background: var(--surface); padding: 26px 28px;
  display: flex; flex-direction: column; gap: 8px; justify-content: flex-end;
}
.rt-stat .val {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--p-600); line-height: 1; min-height: 2.4rem; display: flex; align-items: flex-end;
}
.rt-stat .lbl { font-size: .92rem; color: var(--ink-500); }

/* ---- table ---- */
.rt-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.rt-table th {
  text-align: left; font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  color: var(--n-700); background: var(--n-50); padding: 12px 16px; border-bottom: 1px solid var(--n-100);
}
.rt-table th.num { text-align: right; }
.rt-table th:first-child { border-top-left-radius: 8px; }
.rt-table th:last-child { border-top-right-radius: 8px; }
.rt-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.rt-table td.muted { color: var(--ink-500); }
.rt-table td.num { text-align: right; font-family: var(--font-display); font-weight: 600; }
.rt-table tr.total { background: var(--a-50); }
.rt-table tr.total td { border-bottom: 0; font-weight: 700; color: var(--a-700); }
.rt-table tr.total td.num { font-weight: 700; }

.rt-counts-card { padding: 36px; max-width: 880px; margin: 0 auto; }
.rt-counts-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.rt-counts-head .title { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: var(--ink-900); letter-spacing: -.01em; margin-top: 10px; }
.rt-counts-head .sub { font-size: .96rem; color: var(--ink-500); margin-top: 4px; }
.rt-counts-head img { width: 58px; height: 58px; flex: none; border-radius: 50%; }

/* ---- subject cards ---- */
.rt-subject-card { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.rt-subject-card .dn { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--n-600); letter-spacing: .08em; }
.rt-subject-card .name { font-weight: 700; font-size: 1.04rem; margin-top: 6px; }
.rt-subject-card .en { font-size: .82rem; color: var(--ink-500); margin-top: 2px; }
.rt-subject-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---- passing-standard box ---- */
.rt-pass-box {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--n-200);
  border-radius: var(--r-md); padding: 24px 28px; font-size: .9rem; color: var(--ink-700); line-height: 1.9;
}
.rt-pass-box .title { font-weight: 700; color: var(--n-700); margin-bottom: 8px; }
.rt-pass-box .lvl2 { padding-left: 1.4em; }

/* ---- feature cards ---- */
.rt-feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
}
.rt-feature-body { padding: 32px 32px 26px; }
.rt-feature-body h3 { font-size: 1.42rem; }
.rt-feature-body p { color: var(--ink-500); font-size: .98rem; margin-top: 10px; }
.rt-feature-body .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.rt-feature-mock { margin-top: 4px; padding: 0 26px 30px; }

/* mock: Q&A card */
.rt-mock { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; font-size: .9rem; }
.rt-mock-q { font-family: var(--font-display); font-size: .9rem; color: var(--ink-900); line-height: 1.5; }
.rt-mock-analyze { margin-top: 10px; padding: 10px 12px; background: var(--p-50); border-radius: 8px; color: var(--p-800); font-weight: 500; }
.rt-mock-analyze .tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; color: var(--p-600); display: block; margin-bottom: 3px; letter-spacing: .06em; }
.rt-mock-note { margin-top: 10px; padding: 10px 12px; background: var(--a-50); border-left: 3px solid var(--a-400); border-radius: 0 8px 8px 0; color: var(--a-700); font-size: .86rem; }
.rt-mock-note .tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; display: block; margin-bottom: 3px; letter-spacing: .06em; }

/* mock: browser quiz */
.rt-browser { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.rt-browser-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg-sunk); border-bottom: 1px solid var(--line); }
.rt-browser-dots { display: flex; gap: 5px; }
.rt-browser-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.rt-browser-url { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 12px; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-500); display: flex; align-items: center; gap: 6px; }
.rt-browser-body { padding: 16px 18px; background: var(--surface); }
.rt-browser-q { font-family: var(--font-display); font-size: .86rem; color: var(--ink-900); margin-bottom: 12px; }
.rt-opt { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; font-size: .84rem; color: var(--ink-700); }
.rt-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-300); flex: none; display: block; }
.rt-opt.is-correct { border-color: var(--a-400); color: var(--a-700); background: var(--a-50); font-weight: 500; }
.rt-opt.is-correct .radio { border-color: var(--a-500); background: var(--a-500); display: grid; place-items: center; color: #fff; font-size: .6rem; }
.rt-chips { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.rt-chips span { flex: 1; min-width: 110px; font-size: .8rem; padding: 10px 12px; border-radius: 8px; text-align: center; background: var(--a-50); color: var(--a-700); font-weight: 600; }

/* mock: scorecard */
.rt-scorecard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.rt-scorecard-top { display: flex; align-items: center; gap: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.rt-score-ring { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--a-500) 82%, var(--a-100) 0); }
.rt-score-ring span { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--a-700); }
.rt-score-title { font-weight: 700; font-size: .95rem; }
.rt-score-sub { font-size: .78rem; color: var(--ink-500); margin-top: 3px; }
.rt-score-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
.rt-score-row:last-child { border-bottom: 0; }
.rt-score-row .date { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-400); }
.rt-score-row .label { color: var(--ink-700); }
.rt-score-row .pts { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--p-600); }
.rt-score-row .pts.low { color: var(--n-600); }

/* mock: changelog */
.rt-changelog { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 18px; }
.rt-changelog-row { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.rt-changelog-row:last-child { border-bottom: 0; }
.rt-changelog-row .yr { font-family: var(--font-mono); font-weight: 700; font-size: .72rem; color: var(--p-700); background: var(--p-50); padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap; flex: none; }
.rt-changelog-row .txt { font-size: .85rem; color: var(--ink-700); line-height: 1.5; }
.rt-changelog-row .txt b { color: var(--ink-900); font-weight: 700; }

/* ---- demo video frame ---- */
.rt-demo-frame {
  max-width: 600px; margin: 0 auto; aspect-ratio: 5/6; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid var(--ink-900); background: #0b0d12;
}
.rt-demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- books ---- */
.rt-book-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; align-items: stretch;
}
.rt-book-cover { width: 33%; flex: none; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rt-book-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; }
.rt-book-body { width: 67%; padding: 14px 14px 14px 0; display: flex; flex-direction: column; }
.rt-book-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-top: 8px; }
.rt-book-edition { font-size: .86rem; color: var(--ink-500); margin-top: 3px; }
.rt-book-isbn { font-size: .8rem; color: var(--ink-400); margin-top: 2px; font-family: var(--font-mono); }
.rt-book-price-wrap { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.rt-book-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--p-600); }
.rt-book-bonus { font-size: .66rem; color: var(--a-700); margin-top: 2px; line-height: 1.3; }

/* ---- licenses ---- */
.rt-license-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 36px; }
.rt-license-card h3 { font-size: 1.25rem; margin-top: 14px; }
.rt-license-card p { color: var(--ink-500); font-size: .96rem; margin-top: 10px; }
.rt-license-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

/* ---- pricing ---- */
.rt-price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 36px;
}
.rt-price-card h3 { font-size: 1.25rem; }
.rt-price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.rt-price-figure { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 6px; }
.rt-price-figure .cur { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink-500); }
.rt-price-figure .num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.rt-price-note { color: var(--ink-500); font-size: .88rem; }
.rt-price-feats { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; flex: 1; }
.rt-price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-700); }

/* ---- service ---- */
.rt-service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 36px; }
.rt-service-ico { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--p-50); color: var(--p-600); margin-bottom: 16px; font-size: 1.3rem; }
.rt-service-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.rt-service-card p { font-size: .96rem; color: var(--ink-500); }

/* ---- login band ---- */
.rt-loginband { background: var(--ink-900); border-radius: var(--r-xl); padding: 56px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.rt-loginband .blob { position: absolute; border-radius: 50%; }
.rt-loginband .blob-r { right: -60px; bottom: -70px; width: 260px; height: 260px; background: radial-gradient(circle, var(--n-500), transparent 70%); opacity: .4; }
.rt-loginband .blob-l { left: -70px; top: -80px; width: 240px; height: 240px; background: radial-gradient(circle, var(--a-500), transparent 70%); opacity: .32; }
.rt-loginband img.mascot { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px; position: relative; }
.rt-loginband h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; color: #fff; position: relative; }
.rt-loginband p { color: rgba(255,255,255,.72); margin-top: 12px; position: relative; }
.rt-loginband-actions { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; position: relative; }

/* ---- footer ---- */
.rt-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; }
.rt-footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.rt-footer-brand { max-width: 280px; }
.rt-footer-brand .logo { display: inline-flex; align-items: center; gap: 10px; }
.rt-footer-brand .logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.rt-footer-brand p { color: var(--ink-500); margin-top: 16px; font-size: .92rem; }
.rt-footer-col h4 { font-size: .82rem; letter-spacing: .04em; color: var(--ink-500); font-weight: 700; margin-bottom: 14px; text-transform: uppercase; }
.rt-footer-col a { display: block; color: var(--ink-700); font-size: .94rem; padding: 5px 0; }
.rt-footer-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--ink-400); }
.rt-footer-legal .ver { font-family: var(--font-mono); }

/* =====================================================================
   響應式：nav 於 ~1100px 以下收合為 hamburger（不縮字硬塞）
   ===================================================================== */
@media (max-width: 1100px) {
  .rt-nav, .rt-header-inner > .rt-nav-cta { display: none; }
  .rt-hamburger { display: inline-flex; }
}
@media (max-width: 900px) {
  .rt-hero-grid { grid-template-columns: 1fr; }
  .rt-hero-visual { min-height: 320px; }
  .rt-grid-3 { grid-template-columns: 1fr; }
  .rt-statbar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .rt-grid-2, .rt-grid-2--wide { grid-template-columns: 1fr; }
  .rt-section { padding: 60px 0; }
  .rt-book-card { flex-direction: column; }
  .rt-book-cover, .rt-book-body { width: 100%; }
  .rt-book-body { padding: 0 14px 14px; }
}

/* =====================================================================
   風格指南專用（style_guide.html）
   ===================================================================== */
.rt-sg-hero { padding: 64px 0 36px; }
.rt-sg-hero h1 { margin-top: 16px; font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.06; letter-spacing: -.02em; }
.rt-sg-hero h1 .navy { color: var(--n-600); }
.rt-sg-block { padding: 52px 0; border-top: 1px solid var(--line); }
.rt-sg-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.rt-sg-head .no { font-family: var(--font-mono); font-size: .85rem; color: var(--p-500); font-weight: 700; }
.rt-sg-head h2 { font-size: 1.5rem; }
.rt-sg-head p { color: var(--ink-500); font-size: .95rem; width: 100%; max-width: 640px; }
.rt-sg-h3 { font-size: 1.25rem; margin-bottom: 14px; }
.rt-sg-h3--mt { margin: 28px 0 14px; }
.rt-sg-swatches { display: grid; gap: 6px; }
.rt-sg-swatch { border-radius: 10px; height: 64px; display: flex; align-items: flex-end; padding: 7px; }
.rt-sg-swatch span { font-family: var(--font-mono); font-size: .62rem; font-weight: 700; }
.rt-sg-note { color: var(--ink-500); margin-top: 8px; font-size: .82rem; }
.rt-sg-neutral-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rt-sg-neutral { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.rt-sg-neutral .cap { padding: 10px 12px; font-size: .8rem; }
.rt-sg-neutral .cap .n { font-weight: 700; }
.rt-sg-neutral .cap .hex { font-family: var(--font-mono); color: var(--ink-500); font-size: .76rem; }
.rt-sg-demo-box { background: var(--bg-sunk); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rt-sg-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.rt-sg-scale-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.rt-sg-scale-row:last-child { border-bottom: 0; }
.rt-sg-scale-row .meta { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-400); white-space: nowrap; }
.rt-sg-token-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rt-sg-token { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; min-width: 150px; }
.rt-sg-token .swatch { height: 40px; margin-bottom: 10px; }
.rt-sg-token .n { font-size: .82rem; font-weight: 700; }
.rt-sg-token .v { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-500); }
@media (max-width: 900px) {
  .rt-sg-type-grid { grid-template-columns: 1fr; }
  .rt-sg-neutral-grid { grid-template-columns: repeat(2, 1fr); }
}
