:root {
  --ink: #0b1020;
  --paper: #f6f7fb;
  --card: #ffffff;
  --line: #dfe3ec;
  --muted: #657087;
  --acid: #d8ff52;
  --blue: #5478ff;
  --coral: #ff6b61;
  --amber: #ffbf3c;
  --green: #27b36a;
  --shadow: 0 20px 70px rgba(11, 16, 32, .09);
}

.premium-section { padding: 56px 0; border-top: 1px solid var(--line); }
.premium-section > p { max-width: 720px; color: #42506b; }
.premium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 20px; }
.premium-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.premium-card h3 { margin: 4px 0 12px; font-size: 1.35rem; }
.premium-card .premium-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.045em; margin: 0; }
.premium-card > p:not(.premium-price):not(.panel-label) { flex: 1; }
.premium-card button { width: 100%; margin-top: 14px; }
.premium-card button:disabled { cursor: not-allowed; opacity: .65; }
#checkoutConsentRow { max-width: 760px; margin: 20px 0; }
#checkoutConsent { width: 20px; height: 20px; vertical-align: middle; }
#checkoutMessage { font-size: .9375rem; }
.payment-panel { max-width: 740px; margin: 12vh auto; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.payment-panel h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
@media (max-width: 760px) { .premium-grid { grid-template-columns: 1fr; } .premium-card { padding: 22px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 15%, rgba(84,120,255,.12), transparent 25rem),
    radial-gradient(circle at 92% 28%, rgba(216,255,82,.18), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button { cursor: pointer; }

.site-header, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { min-height: 76px; }
.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--acid);
  background: var(--ink);
}
.privacy-note { color: var(--muted); font-size: .875rem; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-link { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.72); font-size: .84rem; font-weight: 800; text-decoration: none; }
.language-link:hover { border-color: var(--blue); color: var(--blue); }

main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.intro { max-width: 820px; padding: 11vh 0 12vh; }
.eyebrow, .panel-label {
  color: #42506b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 18px 0 24px;
  max-width: 850px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .93;
  letter-spacing: -.075em;
}
h1 span { color: var(--blue); }
.lede { max-width: 680px; margin: 0 0 28px; color: #39445a; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.promise-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.promise-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  font-size: .88rem;
  font-weight: 700;
}

.primary-button, .secondary-button, .copy-button, .text-button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.primary-button { padding: 0 22px; color: var(--acid); background: var(--ink); box-shadow: 0 10px 24px rgba(11,16,32,.18); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11,16,32,.22); }
.primary-button:disabled { cursor: not-allowed; opacity: .35; }
.primary-button.compact { min-width: 120px; }
.secondary-button { padding: 0 20px; color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.text-button { padding: 0 6px; color: var(--muted); background: transparent; }
.microcopy { margin: 15px 0 0; color: var(--muted); font-size: .82rem; }
.hidden { display: none !important; }

.assessment { max-width: 780px; min-height: 650px; padding: 8vh 0; margin: 0 auto; }
.assessment-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; font-weight: 750; }
.progress-track { height: 7px; margin: 12px 0 28px; overflow: hidden; border-radius: 999px; background: #dfe3ec; }
.progress-track div { width: 6.66%; height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease; }
.question-card { padding: clamp(24px, 5vw, 52px); border: 1px solid rgba(11,16,32,.08); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.question-kicker { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.question-card h2 { min-height: 104px; margin: 0 0 30px; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.04em; }
.answer-list { display: grid; gap: 10px; }
.answer-option { position: relative; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-option label {
  min-height: 54px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  font-weight: 700;
  cursor: pointer;
}
.answer-option label::after { content: ""; width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid #aab2c2; border-radius: 50%; }
.answer-option input:checked + label { border-color: var(--blue); background: #edf1ff; box-shadow: 0 0 0 2px rgba(84,120,255,.12); }
.answer-option input:checked + label::after { border: 5px solid var(--blue); }
.answer-option input:focus-visible + label { outline: 3px solid rgba(84,120,255,.28); outline-offset: 2px; }
.assessment-nav { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }

.results { padding: 8vh 0 10vh; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.results-heading h2 { margin: 10px 0 0; font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.055em; line-height: 1; }
.score-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 12px solid var(--acid);
  border-radius: 50%;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.score-ring strong { font-size: 2.7rem; line-height: .9; }
.score-ring span { margin-top: 5px; color: #bac2d2; font-size: .78rem; }
.status-card, .script-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: #eef1f7;
}
.status-card p, .script-card p { margin: 4px 0 0; color: #4e596e; }
.status-dot { width: 12px; height: 12px; margin-top: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); }
.result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 20px; }
.result-panel { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.result-panel h3 { margin: 8px 0 10px; font-size: 1.65rem; letter-spacing: -.035em; }
.result-panel > p:not(.panel-label) { color: var(--muted); }
.category-bars { display: grid; gap: 13px; margin-top: 28px; }
.bar-row { display: grid; grid-template-columns: 105px 1fr 34px; align-items: center; gap: 10px; font-size: .8rem; font-weight: 750; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e7eaf0; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--blue); }
.action-panel ol { margin: 22px 0 0; padding-left: 24px; }
.action-panel li { margin-bottom: 17px; padding-left: 5px; }
.script-card { justify-content: space-between; margin-top: 20px; background: var(--ink); color: white; }
.script-card p:not(.panel-label) { color: #d7dce7; font-size: 1.05rem; }
.script-card .panel-label { color: var(--acid); }
.copy-button { min-height: 40px; padding: 0 15px; color: var(--ink); background: var(--acid); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.result-actions button { flex: 0 1 auto; }
.results-note { max-width: 580px; }

.benchmark-card, .daily-poll {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.benchmark-card h3, .daily-poll h2 { margin: 8px 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.benchmark-card > div > p:not(.panel-label), .benchmark-status, .poll-meta { color: var(--muted); }
.benchmark-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 16px; }
.benchmark-fields label { color: #42506b; font-size: .82rem; font-weight: 800; }
.benchmark-fields select {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfcff;
  font: inherit;
}
.benchmark-status { min-height: 24px; margin: 12px 0 0; font-size: .9rem; }
.daily-poll { margin: 0 0 8vh; background: var(--ink); color: white; }
.daily-poll .eyebrow { color: var(--acid); }
.daily-poll h2 { max-width: 760px; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.poll-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.poll-option {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #394155;
  border-radius: 999px;
  color: white;
  background: #161d30;
  font-weight: 800;
}
.poll-option:hover, .poll-option.selected { border-color: var(--acid); color: var(--ink); background: var(--acid); }
.poll-option:disabled { cursor: default; }
.poll-result-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr 46px; align-items: center; gap: 10px; width: min(650px, 100%); }
.poll-result-track { height: 9px; overflow: hidden; border-radius: 99px; background: #293146; }
.poll-result-fill { height: 100%; border-radius: inherit; background: var(--acid); }
.poll-meta { margin-bottom: 0; color: #aeb7c9; }

.why-section { margin: 0 0 8vh; padding: 50px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-top: 1px solid var(--line); }
.why-section h2 { max-width: 560px; margin: 12px 0 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -.05em; }
.why-section > p { margin: 25px 0 0; color: #4c576d; font-size: 1.1rem; }
.answer-library { margin: 0 0 10vh; }
.answer-library h2 { max-width: 700px; margin: 12px 0 26px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.05em; }
.answer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.answer-links a { display: flex; min-height: 170px; padding: 24px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--card); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.answer-links a:hover { transform: translateY(-3px); border-color: var(--blue); }
.answer-links strong { font-size: 1.2rem; line-height: 1.25; }
.answer-links span { color: var(--blue); font-size: .88rem; font-weight: 800; }
footer { min-height: 90px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 12px; color: white; background: var(--ink); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .privacy-note { display: none; }
  .site-header, footer, main { width: min(100% - 28px, 1040px); }
  .intro { padding: 8vh 0 10vh; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .results-heading { align-items: center; }
  .score-ring { width: 106px; height: 106px; border-width: 9px; }
  .score-ring strong { font-size: 2.1rem; }
  .result-grid, .why-section { grid-template-columns: 1fr; gap: 20px; }
  .script-card { flex-direction: column; }
  .bar-row { grid-template-columns: 90px 1fr 30px; }
  .result-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .result-actions button { width: 100%; padding-left: 12px; padding-right: 12px; }
  .result-actions .primary-button { grid-column: 1 / -1; }
  .benchmark-fields { grid-template-columns: 1fr; }
  .daily-poll { margin-bottom: 6vh; }
  .answer-links { grid-template-columns: 1fr; }
  .answer-links a { min-height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
