/* CueClass site — inner pages in the silver style (DESIGN.md v7). Loaded after the older page styles
   (base / layout / components / panels / pages / content) and silver.css: it re-points their tokens to
   the white + ink + silver palette and restyles the few pieces that carried the old blue look.
   Text pairs (WCAG): ink #0F172A on #FFF 17.9:1, on #F8FAFC 17.1:1 · muted #475569 on #FFF 7.6:1. */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --line: #e5e9ef;
  --line-strong: #d5dce5;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --brand: #0f172a;
  --brand-ink: #0f172a;
  --brand-tint: #f1f5f9;
  --accent: #e6ebf1;
  --disabled-bg: #f1f5f9;
  --disabled-ink: #475569;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 22px;
  --section: clamp(56px, 7vw, 104px);
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body {
  font-family: var(--sv-cjk);
  line-height: 1.7;
}

h1,
h2,
h3 {
  letter-spacing: -0.005em;
  font-feature-settings: normal;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

a {
  color: var(--sv-ink);
  text-decoration-color: rgba(15, 23, 42, 0.3);
}

a:hover {
  color: var(--sv-ink);
  text-decoration-color: var(--sv-orange);
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
}

code,
kbd {
  font-family: var(--sv-latin);
  background: var(--surface-2);
  border-color: var(--line);
}

/* ---------------------------------------------------------------- page head */

.page-head {
  padding-top: clamp(56px, 7vw, 96px);
}

.page-head h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

/* ---------------------------------------------------------------- sections: white throughout, a hairline between */

.section-alt,
.section + .section-alt,
.section.section-alt {
  background: #fff;
  border-bottom: 0;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  min-height: 46px;
  padding: 10px 24px;
  font-weight: 500;
  border-radius: 999px;
  border-color: var(--line-strong);
}

.btn-primary {
  color: #fff;
  background: var(--sv-ink);
  border-color: var(--sv-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(15, 23, 42, 0.16);
}

.btn-primary:hover {
  color: #fff;
  background: #1e293b;
  border-color: #1e293b;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  color: var(--disabled-ink);
  background: var(--disabled-bg);
  border: 1px solid var(--line);
  box-shadow: none;
}

/* ---------------------------------------------------------------- cards, lists, panels */

.card,
.price-card,
.school-box,
.faq-group details,
.table-wrap,
.mail-plate {
  border-color: var(--line);
}

.card--lead {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #e6ebf1 0%, #c5cdd8 50%, #9aa6b6 100%) border-box;
  box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.25);
}

.card-no {
  color: var(--muted);
}

/* the recommended plan: brushed-silver rim instead of a blue outline */
.price-card.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #e6ebf1 0%, #c5cdd8 50%, #9aa6b6 100%) border-box;
  box-shadow: inset 0 1px 0 #fff, 0 30px 60px -36px rgba(15, 23, 42, 0.28);
}

.badge {
  left: auto;
  right: 24px;
  font-weight: 500;
  background: var(--sv-metal);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 var(--sv-metal-low);
}

.school-box {
  background: #fff;
}

.notice {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -36px rgba(15, 23, 42, 0.22);
}

.check-list li::before {
  border-color: var(--sv-ink);
}

.tag {
  color: var(--sv-ink);
  background: var(--sv-metal);
  border: 0;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 var(--sv-metal-low);
}

.data-table thead th,
.legal thead th {
  background: var(--surface);
}

/* ---------------------------------------------------------------- features page: one row per effect, no pin */

.tour-stage {
  display: none !important;
}

.tour-shot {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.25);
}

/* ---------------------------------------------------------------- news + legal */

.news-item {
  border-color: var(--line);
}

.legal h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.tour-shot figcaption {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
}

.price .amount,
.price-card .amount {
  font-family: var(--sv-latin);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* phones: two-column tables become stacked rows instead of a sideways scroll */
@media (max-width: 640px) {
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table th,
  .data-table td,
  .data-table tbody tr:last-child > * {
    padding: 0;
    border: 0;
  }

  .data-table {
    min-width: 0;
  }

  .data-table tbody th {
    width: 100%;
    margin-bottom: 4px;
  }

  .data-table td + td {
    margin-top: 6px;
  }
}

/* features: the notice right after "還有這些" no longer stacks two section paddings and its own margin */
.section-alt + .section {
  padding-top: 0;
}

.section-alt + .section .notice:first-child {
  margin-top: 0;
}

.notice .dot {
  display: none;
}

/* tracking, as on the home page */
h1,
h2,
h3 {
  letter-spacing: 0.035em;
}

.lead,
.fine,
p,
li,
td,
th,
summary {
  letter-spacing: 0.045em;
}
