/* ========== 全域變數 ========== */
:root {
  /* 版心 */
  --content-width: 1120px;
  --content-gutter: 16px;
  --content-gutter-mobile: 12px;
  --section-container-width: min(
    var(--content-width),
    calc(100% - var(--content-gutter) * 2)
  );
  --section-container-width-mobile: min(
    var(--content-width),
    calc(100% - var(--content-gutter-mobile) * 2)
  );

  /* 色票 */
  --bg: #f7f1e7;
  --paper: #fffaf1;
  --card-bg: rgba(255, 250, 241, 0.84);
  --card-border: 1px solid var(--line);
  --radius-card: 16px;
  --white: #fff;
  --ink: #182833;
  --muted: #6d776f;
  --teal: #0e4d45;
  --coral: #df6d55;
  --gold: #c39a45;
  --rose-strong: #cf0f46;
  --rose-soft: #c81045;
  --rose-dark: #bd4d3b;
  --menu-link: #22384b;
  --menu-link-soft: #6d8192;
  --line-native: #10bf76;
  --avatar-bg: #1b74e4;
  --rating-gold: #e6a23c;
  --line: rgba(14, 77, 69, 0.16);

  /* 字級與排版 */
  --font-main: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;

  /* 間距與節奏 */
  --motion-fast: 0.18s ease;
  --motion-medium: 0.22s ease;
  --section-gap: 24px;
  --section-gap-mobile: 18px;
  --section-gap-desktop: 48px;

  /* 陰影系統 */
  --shadow: 0 18px 50px rgba(24, 40, 51, 0.12);
  --card-shadow: 0 10px 30px rgba(24, 40, 51, 0.07);
  --surface-card-shadow: var(--card-shadow);
  --button-outer-glow: 0 14px 30px rgba(223, 109, 85, 0.26);
  --button-soft-glow: 0 16px 30px rgba(223, 109, 85, 0.22);
  --surface-focus: 2px solid var(--coral);
  --surface-focus-offset: 3px;
}

/* 基礎 Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(223, 109, 85, 0.14),
      transparent 28rem
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(14, 77, 69, 0.14),
      transparent 30rem
    ),
    var(--bg);
  line-height: 1.7;
}
body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  appearance: none;
  cursor: pointer;
}

/* 無障礙：鍵盤焦點 */
:focus-visible {
  outline: var(--surface-focus);
  outline-offset: var(--surface-focus-offset);
}

/* 頂部導覽 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: var(--section-container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(24, 40, 51, 0.12);
}
.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
}
.desktop-nav {
  display: none;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}
.desktop-nav a:hover {
  color: var(--teal);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.top-login-button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(24, 40, 51, 0.08);
}
.icon-button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal);
  padding: 0;
  gap: 0;
  transform-origin: right center;
  box-shadow: 0 10px 22px rgba(24, 40, 51, 0.08);
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast),
    background var(--motion-fast);
  will-change: width, transform;
}

/* 漢堡按鈕與頁面目錄 */
.menu-label {
  position: absolute;
  display: none !important;
  width: 0 !important;
  overflow: hidden;
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  opacity: 0 !important;
  white-space: nowrap;
  will-change: width, opacity, transform;
  transition:
    width var(--motion-medium),
    opacity var(--motion-medium),
    transform var(--motion-medium);
}
.menu-icon {
  position: relative;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: currentColor;
}
.menu-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
}
.menu-bar {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  will-change: opacity;
}
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(24, 40, 51, 0.16);
}
.icon-button[aria-expanded="true"] {
  width: 48px;
  min-width: 48px;
  grid-template-columns: 1fr;
  gap: 0;
  justify-content: center;
  padding: 0;
  border-color: var(--rose-strong);
  background: var(--rose-strong);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(207, 15, 70, 0.22);
}
.icon-button[aria-expanded="true"] .menu-label {
  position: absolute;
  display: none !important;
  width: 0 !important;
  min-width: 0;
  opacity: 0 !important;
}
.icon-button[aria-expanded="true"] .menu-icon {
  justify-self: center;
  width: 22px;
  color: var(--white);
}

/* 全螢幕浮層導覽 */
.mobile-menu {
  position: fixed;
  top: var(--menu-panel-top, 88px);
  left: 50%;
  right: auto;
  z-index: 56;
  display: grid;
  align-content: start;
  gap: 8px;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - var(--menu-panel-top, 88px) - 12px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(75, 122, 160, 0.2);
  border-radius: 20px;
  background: rgba(218, 235, 255, 0.84);
  box-shadow: 0 22px 60px rgba(31, 54, 79, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overscroll-behavior: contain;
  translate: -50% 0;
  transform-origin: top center;
  will-change: transform, opacity;
}
.mobile-menu[hidden],
.mobile-menu-overlay[hidden] {
  display: none;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(24, 40, 51, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
}
.mobile-menu-head b {
  display: block;
  line-height: 1.3;
  color: var(--rose-soft);
  font-size: 18px;
}
.menu-close-button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--rose-strong);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.menu-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(75, 122, 160, 0.16);
  border-radius: 18px;
  background: rgba(238, 247, 255, 0.56);
}
.menu-primary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.menu-group-title {
  grid-column: 1 / -1;
  color: var(--rose-soft);
  font-size: 13px;
  font-weight: 900;
}
.menu-account-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.menu-account-title small {
  max-width: 58%;
  overflow: hidden;
  color: var(--menu-link-soft);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-group a,
.menu-group button {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(84, 125, 160, 0.18);
  border-radius: 14px;
  background: rgba(236, 247, 255, 0.56);
  color: var(--menu-link);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-group b {
  font-size: 18px;
  line-height: 1.2;
}
.menu-group small {
  color: var(--menu-link-soft);
  font-weight: 800;
}
.menu-group .line-native-button {
  background: var(--line-native);
  color: var(--white);
}
.menu-group .line-native-button small {
  color: rgba(255, 255, 255, 0.78);
}

/* 內容區 */
.hero,
.section {
  width: var(--section-container-width);
  margin: 0 auto;
}
.hero {
  display: grid;
  gap: 20px;
  padding: 18px 0 18px;
}
.hero-copy {
  align-self: center;
}
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.eyebrow::before,
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 11vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}
h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
}
.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions,
.price-card .button,
.payment-panel .button {
  margin-top: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--rose-dark));
  box-shadow: var(--button-outer-glow);
}
.button.secondary {
  color: var(--teal);
  background: var(--paper);
  border-color: var(--line);
}
.button.full {
  width: 100%;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.trust-list li {
  padding: 8px 12px;
  color: var(--teal);
  background: rgba(14, 77, 69, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.section {
  padding: var(--section-gap) 0;
}
#form,
#support,
#reviews,
#teacher,
#consult,
#faq,
#preview {
  scroll-margin-top: 92px;
}
.hero + .section,
.section + .section {
  padding-top: 12px;
}
.section-head {
  margin-bottom: 12px;
}
.pain-grid,
.answer-grid,
.compare-grid,
.result-grid,
.support-grid {
  display: grid;
  gap: 14px;
}
:where(
  .pain-grid article,
  .answer-grid article,
  .compare-grid article,
  .report-card,
  .calc-form fieldset,
  .payment-panel,
  .full-report article,
  details,
  .price-card,
  .support-grid article,
  .teacher-card,
  .privacy-section
) {
  border: var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
.pain-grid article,
.answer-grid article,
.compare-grid article,
.report-card,
.full-report article,
.support-grid article {
  padding: 18px;
}
.privacy-section {
  padding: 18px !important;
}
.pain-grid b,
.answer-grid b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}
.pain-grid p,
.answer-grid p {
  margin: 0;
  color: var(--muted);
}
.answer-grid span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--paper);
  background: var(--teal);
  border-radius: 12px;
  font-weight: 900;
}

.preview-layout {
  display: block;
}
.mode-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.76);
}
.mode-tabs label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--teal);
  font-weight: 900;
  cursor: pointer;
}
#previewModeAmbiguous:checked ~ .mode-tabs label[for="previewModeAmbiguous"],
#previewModeDating:checked ~ .mode-tabs label[for="previewModeDating"] {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 77, 69, 0.18);
}
.mode-panel {
  display: none;
}
#previewModeAmbiguous:checked ~ .mode-panels .ambiguous-panel,
#previewModeDating:checked ~ .mode-panels .dating-panel {
  display: grid;
}
.report-cards {
  display: grid;
  gap: 14px;
}
.preview-scenario {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.72);
}
.mode-panels .mode-panel {
  display: none;
}
#previewModeAmbiguous:checked ~ .mode-panels .ambiguous-panel,
#previewModeDating:checked ~ .mode-panels .dating-panel {
  display: grid;
}
.preview-scenario-head {
  display: grid;
  gap: 4px;
}
.preview-scenario-head small,
.report-card small {
  color: var(--teal);
  font-weight: 900;
}
.preview-scenario-head b {
  font-size: clamp(20px, 6vw, 28px);
  line-height: 1.2;
}
.report-card h3 {
  color: var(--teal);
}
.locked {
  margin-top: 14px;
  padding: 12px;
  color: var(--teal);
  background: rgba(14, 77, 69, 0.08);
  border-radius: 12px;
  font-weight: 800;
}

.compare-section {
  display: grid;
  gap: 14px;
}
.compare-grid {
  grid-template-columns: 1fr;
}
.compare-grid article {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 252, 245, 0.96),
      rgba(242, 249, 246, 0.9)
    ),
    var(--card-bg);
}
.compare-grid article::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(14, 77, 69, 0.12);
  border-radius: 50%;
  background: rgba(14, 77, 69, 0.05);
}
.compare-grid small {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 77, 69, 0.08);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}
.compare-grid b {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}
.compare-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.analysis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  counter-reset: item;
  list-style: none;
}
.analysis-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 84px;
  padding: 12px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.32;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.analysis-list li::before {
  counter-increment: item;
  content: counter(item);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}
.content-list-section .section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.price-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 5.5vw, 30px);
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(223, 109, 85, 0.13),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 252, 245, 0.98),
      rgba(244, 249, 244, 0.94)
    ),
    var(--paper);
  color: var(--ink);
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
}
.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.deal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(12, 92, 77, 0.1);
  border: 1px solid rgba(12, 92, 77, 0.18);
  font-weight: 900;
}
.price-saving {
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
}
.price-main {
  display: grid;
  gap: 8px;
}
.price-label {
  margin: 0;
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
}
.price-main h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0;
  line-height: 1.05;
}
.price-main h2 span {
  color: var(--teal);
  font-size: clamp(44px, 13vw, 66px);
  font-weight: 950;
  letter-spacing: 0;
}
.price-main h2 s {
  color: rgba(24, 40, 51, 0.48);
  font-size: 18px;
  font-weight: 800;
  text-decoration-thickness: 2px;
}
.price-main p:not(.price-label) {
  margin: 0;
  color: var(--muted);
}
.price-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.price-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(12, 92, 77, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.price-flow b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
}
.price-includes {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.price-includes li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 12px 12px 38px;
  border: 1px solid rgba(24, 40, 51, 0.08);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.66);
}
.price-includes li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-size: 12px;
  font-weight: 900;
}
.price-includes b {
  color: var(--ink);
  font-size: 17px;
}
.price-includes span,
.price-footnote {
  color: var(--muted);
}
.price-footnote {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.price-cta {
  width: 100%;
  justify-content: center;
  min-height: 56px;
  margin-top: 2px !important;
  box-shadow: var(--button-soft-glow);
}

.calc-form {
  display: grid;
  gap: 14px;
}
.calc-form fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
}
.calc-form legend {
  padding: 0 6px;
  color: var(--teal);
  font-weight: 900;
}
.form-message {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}
.form-message:empty {
  display: none;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 252, 245, 0.88);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    background var(--motion-fast);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(14, 77, 69, 0.52);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 3px rgba(14, 77, 69, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
input::placeholder,
textarea::placeholder {
  color: rgba(92, 111, 105, 0.68);
  font-weight: 700;
}
select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%),
    linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
textarea {
  min-height: 118px;
  line-height: 1.65;
  resize: vertical;
}
.field-row {
  display: grid;
  gap: 12px;
}
.birth-field {
  align-content: start;
}
.birth-selects {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 8px;
}
.birth-selects input {
  min-height: 52px;
  padding: 10px 8px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}
.birth-hint {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.76);
}
.radio-grid label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--teal);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition:
    color var(--motion-fast),
    background var(--motion-fast),
    box-shadow var(--motion-fast);
}
.radio-grid input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.radio-grid label:has(input:checked) {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 77, 69, 0.18);
}
.radio-grid label:has(input:focus-visible) {
  outline: var(--surface-focus);
  outline-offset: var(--surface-focus-offset);
}

.support-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
  align-content: start;
}
.support-section .support-grid {
  grid-template-columns: minmax(0, 1fr);
}
.lookup-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.support-grid small {
  color: var(--teal);
  font-weight: 900;
}
.support-grid p {
  color: var(--muted);
  margin: 0;
}
.support-grid .button {
  width: min(220px, 100%);
  margin-top: auto;
  justify-self: start;
}
.history-list {
  display: grid;
  gap: 8px;
}
.history-list button {
  width: 100%;
  border: 1px solid rgba(14, 77, 69, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}
.history-list .history-title-row,
.history-list .history-order-id,
.history-list .history-status {
  display: block;
}
.history-list .history-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.history-list b {
  min-width: 0;
  line-height: 1.35;
}
.history-list .history-order-id {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.history-list .history-status {
  flex: 0 0 auto;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 6px;
  padding: 3px 10px;
}
.history-list .history-status-unlocked {
  border-color: rgba(25, 135, 99, 0.26);
  background: rgba(25, 135, 99, 0.12);
  color: #0a6f57;
}
.history-list .history-status-locked {
  border-color: rgba(210, 83, 58, 0.28);
  background: rgba(210, 83, 58, 0.12);
  color: #a6432d;
}
input[type="file"] {
  min-height: auto;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 252, 245, 0.88);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.bug-report-note,
.bug-report-file-list {
  min-height: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.bug-report-file-list {
  color: var(--teal);
}

.casting-stage[hidden] {
  display: none;
}
.casting-card {
  position: relative;
  display: grid;
  gap: clamp(8px, 2vw, 14px);
  overflow: hidden;
  padding: clamp(12px, 3.4vw, 24px);
  border: 1px solid rgba(14, 77, 69, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.97),
      rgba(239, 232, 219, 0.96)
    ),
    radial-gradient(
      circle at 16% 14%,
      rgba(14, 77, 69, 0.14),
      transparent 38%
    ),
    radial-gradient(circle at 86% 82%, rgba(223, 109, 85, 0.13), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 24px 70px rgba(14, 77, 69, 0.16);
}
.casting-card::before,
.casting-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.casting-card::before {
  inset: 10px;
  border: 1px solid rgba(14, 77, 69, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(14, 77, 69, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 77, 69, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.58;
}
.casting-card::after {
  top: -20%;
  bottom: -20%;
  left: -42%;
  width: 34%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  transform: skewX(-17deg);
  opacity: 0;
}
.casting-stage:not([hidden]) .casting-card::after {
  animation: castingSweep 2.45s ease-in-out infinite;
}
.casting-page-head {
  position: relative;
  z-index: 1;
  display: none;
  gap: 4px;
  text-align: center;
}
.casting-page-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 6.2vw, 34px);
  line-height: 1.12;
}
.casting-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.casting-board {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: minmax(82px, 1fr) minmax(82px, 0.62fr) minmax(82px, 1fr);
  align-items: center;
  gap: clamp(8px, 2.4vw, 14px);
  min-height: clamp(132px, 34vw, 196px);
  overflow: hidden;
  padding: clamp(12px, 3vw, 20px);
  border: 1px solid rgba(14, 77, 69, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 238, 224, 0.7)),
    radial-gradient(circle at 50% 50%, rgba(14, 77, 69, 0.12), transparent 54%);
}
.casting-board-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  opacity: 0.72;
}
.casting-board-grid i {
  border-right: 1px solid rgba(14, 77, 69, 0.075);
  border-bottom: 1px solid rgba(14, 77, 69, 0.075);
}
.casting-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16%;
  width: 18%;
  background:
    linear-gradient(90deg, transparent, rgba(14, 77, 69, 0.2), transparent);
  opacity: 0;
}
.casting-person,
.casting-bridge {
  position: relative;
  z-index: 1;
}
.casting-person {
  display: grid;
  gap: 4px;
  min-height: clamp(86px, 24vw, 128px);
  place-items: center;
  padding: 10px 8px;
  border: 1px solid rgba(14, 77, 69, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(14, 77, 69, 0.08);
}
.casting-person::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(195, 154, 69, 0.22);
}
.casting-person small,
.casting-person span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.casting-person b {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 950;
  line-height: 1.06;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.casting-bridge {
  display: grid;
  gap: 5px;
  justify-items: center;
  color: var(--teal);
}
.casting-bridge span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(14, 77, 69, 0.56), transparent);
  transform-origin: center;
}
.casting-bridge strong {
  display: grid;
  width: clamp(72px, 18vw, 88px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(14, 77, 69, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 63%, rgba(14, 77, 69, 0.08) 64%),
    conic-gradient(var(--coral), var(--teal), var(--gold), var(--coral));
  color: var(--teal);
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(14, 77, 69, 0.14);
}

.casting-signal-grid {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.casting-signal-grid span {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgba(14, 77, 69, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  overflow: hidden;
}

.casting-signal-grid span::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 77, 69, 0.3), transparent);
}

.casting-signal-grid b {
  color: var(--teal);
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1.02;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.casting-numbers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.casting-numbers span {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--teal);
}
.casting-numbers span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(14, 77, 69, 0.14),
    transparent 78%
  );
  opacity: 0;
  transform: translateX(-80%);
}
.casting-numbers span.is-lit::after {
  animation: castingNumberSweep 1.15s ease-out both;
}
.casting-numbers small {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}
.casting-numbers b {
  max-width: 100%;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.casting-progress {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(14, 77, 69, 0.12);
  transform-origin: center;
}
.casting-progress i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--teal), var(--coral));
  box-shadow: 0 0 18px rgba(14, 77, 69, 0.24);
  transition: width 0.72s ease;
}
.casting-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.casting-steps li {
  display: grid;
  min-height: 30px;
  place-items: center;
  padding: 4px 3px;
  border: 1px solid rgba(14, 77, 69, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.casting-steps li.is-active {
  border-color: rgba(14, 77, 69, 0.34);
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 8px 18px rgba(14, 77, 69, 0.12);
  animation: castingStepPulse 1.05s ease-in-out infinite;
}
.casting-steps li.is-complete {
  color: var(--teal);
}
.casting-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--teal);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.casting-live-grid {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.casting-live-grid span {
  display: grid;
  gap: 3px;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(14, 77, 69, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.casting-live-grid b {
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}
body.is-calculating-demo .site-header {
  position: static;
}
body.is-calculating-demo main#top {
  width: min(760px, calc(100% - 28px));
  min-height: calc(100svh - 80px);
  padding-top: clamp(8px, 2.4vh, 22px);
}
body.is-calculating-demo main#top > .hero,
body.is-calculating-demo main#top > .section:not(#castingStage),
body.is-casting-active main#top > .hero,
body.is-casting-active main#top > .section:not(#castingStage) {
  display: none !important;
}
body.is-calculating-demo .casting-stage,
body.is-calculating-demo .casting-stage[hidden],
body.is-casting-active .casting-stage,
body.is-casting-active .casting-stage[hidden] {
  display: grid;
}
body.is-calculating-demo .casting-stage {
  min-height: calc(100svh - 92px);
  padding: 0;
  align-items: center;
}
body.is-calculating-demo .casting-card {
  gap: clamp(8px, 2vw, 14px);
}
body.is-calculating-demo .casting-page-head,
body.is-calculating-demo .casting-board,
body.is-calculating-demo .casting-signal-grid,
body.is-calculating-demo .casting-live-grid,
.casting-stage:not([hidden]) .casting-page-head,
.casting-stage:not([hidden]) .casting-board,
.casting-stage:not([hidden]) .casting-signal-grid {
  display: grid;
}
body.is-calculating-demo .casting-card > p,
.casting-stage:not([hidden]) .casting-card > p {
  font-size: clamp(14px, 3.8vw, 17px);
}
body.is-calculating-demo .casting-scan-line,
.casting-stage:not([hidden]) .casting-scan-line {
  animation: castingBoardScan 2.2s ease-in-out infinite;
}
body.is-calculating-demo .casting-person,
.casting-stage:not([hidden]) .casting-person {
  animation: castingPanelBreath 1.9s ease-in-out infinite;
}
body.is-calculating-demo .casting-bridge strong,
.casting-stage:not([hidden]) .casting-bridge strong {
  animation: castingCorePulse 1.55s ease-in-out infinite;
}
body.is-calculating-demo .casting-bridge span,
.casting-stage:not([hidden]) .casting-bridge span {
  animation: castingBridgePulse 1.35s ease-in-out infinite;
}
body.is-calculating-demo .casting-signal-grid b,
.casting-stage:not([hidden]) .casting-signal-grid b {
  animation: castingDigitPulse 1.2s ease-in-out infinite;
}
body.is-calculating-demo .casting-live-grid b,
.casting-stage:not([hidden]) .casting-live-grid b {
  animation: castingDigitPulse 1.2s ease-in-out infinite;
}
body.is-calculating-demo .casting-numbers,
.casting-stage:not([hidden]) .casting-numbers,
body.is-calculating-demo .casting-live-grid,
.casting-stage:not([hidden]) .casting-live-grid {
  display: none;
}
.casting-stage:not([hidden]) .casting-numbers span {
  animation: stageNumberPop 0.46s ease-out both;
}
.casting-stage:not([hidden]) .casting-numbers span:nth-child(2) {
  animation-delay: 0.08s;
}
.casting-stage:not([hidden]) .casting-numbers span:nth-child(3) {
  animation-delay: 0.16s;
}

@media (max-width: 560px) {
  html:has(body.is-calculating-demo),
  html:has(body.is-casting-active),
  body.is-calculating-demo,
  body.is-casting-active {
    height: 100svh;
    overflow: hidden;
  }
  body.is-calculating-demo .site-header,
  body.is-casting-active .site-header {
    display: none;
  }
  body.is-calculating-demo main#top,
  body.is-casting-active main#top {
    display: grid;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
  }
  body.is-calculating-demo #castingStage,
  body.is-casting-active #castingStage {
    width: 100%;
  }
  body.is-calculating-demo .casting-stage,
  body.is-casting-active .casting-stage {
    position: relative;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    align-items: stretch;
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(239, 232, 219, 0.96)),
      radial-gradient(circle at 14% 12%, rgba(14, 77, 69, 0.16), transparent 34%),
      radial-gradient(circle at 88% 78%, rgba(223, 109, 85, 0.14), transparent 34%);
  }
  body.is-calculating-demo .casting-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(14, 77, 69, 0.055) 1px, transparent 1px),
      linear-gradient(180deg, rgba(14, 77, 69, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.58;
  }
  body.is-calculating-demo .casting-card,
  body.is-casting-active .casting-card,
  .casting-stage:not([hidden]) .casting-card {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    max-height: none;
    align-content: space-evenly;
    gap: clamp(6px, 1.25vh, 10px);
    padding: clamp(12px, 3.2vw, 16px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.is-calculating-demo .casting-card::before,
  body.is-calculating-demo .casting-card::after,
  body.is-casting-active .casting-card::before,
  body.is-casting-active .casting-card::after,
  .casting-stage:not([hidden]) .casting-card::before,
  .casting-stage:not([hidden]) .casting-card::after {
    display: none;
  }
  .casting-page-head {
    gap: 2px;
  }
  .casting-page-head .kicker {
    font-size: 12px;
  }
  .casting-page-head h2 {
    font-size: clamp(19px, 5.2vw, 23px);
    line-height: 1.12;
  }
  .casting-page-head p {
    display: none;
  }
  .casting-board {
    grid-template-columns: 1fr;
    gap: clamp(7px, 1.25vh, 10px);
    min-height: clamp(162px, 25vh, 210px);
    padding: clamp(10px, 3vw, 14px);
    border-radius: 0;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 238, 224, 0.56)),
      radial-gradient(circle at 50% 50%, rgba(14, 77, 69, 0.13), transparent 54%);
  }
  .casting-bridge {
    order: 2;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 6px;
  }
  .casting-bridge span {
    height: 2px;
  }
  .casting-bridge strong {
    width: auto;
    min-width: 68px;
    min-height: 26px;
    aspect-ratio: auto;
    padding: 3px 10px;
    border-width: 1px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1;
  }
  .casting-person {
    min-height: clamp(50px, 7.4vh, 62px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    column-gap: 8px;
    padding: 8px 11px;
    border-radius: 0;
  }
  .casting-person.is-self {
    order: 1;
  }
  .casting-person.is-partner {
    order: 3;
  }
  .casting-person::after {
    inset: 7px;
    border-radius: 0;
  }
  .casting-person small,
  .casting-person span {
    font-size: 10px;
  }
  .casting-person b {
    font-size: clamp(18px, 5vw, 22px);
    text-align: left;
  }
  .casting-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(7px, 1.2vh, 10px);
  }
  .casting-signal-grid span {
    min-height: clamp(46px, 6.4vh, 56px);
    padding: 8px;
    border-radius: 0;
    font-size: 10px;
  }
  .casting-signal-grid b {
    font-size: 13px;
  }
  .casting-progress {
    height: 6px;
  }
  .casting-steps li {
    min-height: 22px;
    padding: 3px 2px;
    border-radius: 7px;
    font-size: 10px;
  }
  .casting-card > p {
    font-size: 12px !important;
    line-height: 1.35;
  }
}

@keyframes castingBoardScan {
  0% {
    left: -22%;
    opacity: 0;
  }
  50% {
    opacity: 0.86;
  }
  100% {
    left: 104%;
    opacity: 0;
  }
}
@keyframes castingPanelBreath {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 14px 30px rgba(14, 77, 69, 0.08);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(14, 77, 69, 0.13);
  }
}
@keyframes castingBridgePulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scaleX(0.78);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes stageNumberPop {
  0% {
    opacity: 0.3;
    transform: translateY(10px) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes castingNumberSweep {
  0% {
    opacity: 0;
    transform: translateX(-82%);
  }
  28% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateX(86%);
  }
}
@keyframes castingStepPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes castingSweep {
  0% {
    left: -48%;
    opacity: 0;
  }
  22% {
    opacity: 0.68;
  }
  54% {
    opacity: 0.34;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}
@keyframes castingCorePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes castingDigitPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.result-section[hidden] {
  display: none;
}
.result-section {
  padding-top: 18px;
}
body.is-result-page main#top > .hero,
body.is-result-page main#top > .section:not(#result) {
  display: none !important;
}
body.is-result-page main#top {
  padding-top: 18px;
}
body.is-result-page .result-section,
body.is-result-page .result-section[hidden] {
  display: block;
}
body.is-result-page .result-section {
  padding-top: 22px;
  padding-bottom: 42px;
}
.result-report {
  display: grid;
  gap: 14px;
}
.result-cover-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(12, 92, 77, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(223, 109, 85, 0.18),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 252, 245, 0.98),
      rgba(240, 248, 243, 0.96)
    );
  box-shadow: 0 18px 44px rgba(24, 40, 51, 0.1);
}
.result-cover-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
}
.result-error-card h3 {
  margin-bottom: 8px;
}
.result-error-card p {
  color: var(--muted);
}
.result-error-card .button {
  width: fit-content;
}
.result-cover-top {
  display: grid;
  gap: 6px;
}
.result-cover-top span,
.result-block-head span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(12, 92, 77, 0.1);
  font-size: 14px;
  font-weight: 900;
}
.result-cover-top small {
  color: var(--muted);
  font-weight: 800;
  word-break: break-all;
}
.result-score-row {
  display: grid;
  gap: 14px;
}
.result-score-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.result-score-main small {
  align-self: center;
  color: var(--teal);
  font-weight: 900;
}
.result-score-main strong {
  color: var(--ink);
  font-size: clamp(72px, 22vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
}
.result-score-main span {
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
}
.result-grade-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-left: 5px solid var(--coral);
  background: rgba(255, 250, 241, 0.72);
}
.result-grade-card b {
  color: var(--coral);
  font-size: 24px;
  line-height: 1.2;
}
.result-grade-card p {
  margin: 0;
  color: var(--muted);
}
.result-score-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 92, 77, 0.13);
}
.result-score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}
.result-pair-grid {
  display: grid;
  gap: 10px;
}
.result-person-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(24, 40, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 10px 28px rgba(24, 40, 51, 0.06);
}
.result-person-card span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}
.result-person-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}
.result-person-card p {
  margin: 0;
  color: var(--muted);
}
.result-person-card div {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 14px;
  font-weight: 900;
}
.result-person-card small {
  color: var(--muted);
  line-height: 1.55;
}
.result-section-block {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}
.result-block-head {
  display: grid;
  gap: 8px;
}
.result-block-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 8vw, 38px);
  line-height: 1.18;
}
.result-insight-list {
  display: grid;
  gap: 10px;
}
.result-insight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(24, 40, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.86);
}
.result-insight-card > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--white);
  background: var(--coral);
  font-weight: 900;
}
.result-insight-card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}
.result-insight-card p {
  margin: 0;
  color: var(--muted);
}
.locked-chapter-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.locked-chapter-head {
  display: grid;
  gap: 4px;
}
.locked-chapter-head b {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}
.locked-chapter-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.locked-chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.locked-chapter-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 82px;
  padding: 11px 9px;
  border: 1px solid rgba(24, 40, 51, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}
.locked-chapter-list b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
}
.locked-chapter-list span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.32;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.locked-chapter-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.locked-chapter-list li.is-previewed {
  background: rgba(12, 92, 77, 0.07);
}
.locked-chapter-list li.is-previewed small {
  color: var(--teal);
}
.payment-panel {
  margin-top: 16px;
  padding: 18px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(12, 92, 77, 0.1), rgba(255, 250, 241, 0.92)),
    var(--paper);
}
.payment-panel h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}
.payment-panel p {
  margin-top: 0;
  color: var(--muted);
  word-break: break-all;
}
.order-copy-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0 10px;
}
.result-order-notice {
  position: relative;
  display: grid;
  gap: 10px;
  margin: -2px 0 16px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(195, 154, 69, 0.36);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(195, 154, 69, 0.22), transparent 46%),
    linear-gradient(135deg, rgba(14, 77, 69, 0.08), rgba(255, 255, 255, 0.72)),
    rgba(255, 250, 241, 0.88);
}
.result-order-notice:empty {
  display: none;
}
.result-order-notice .order-copy-note {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-weight: 700;
}
.result-order-notice .order-copy-note b {
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
}
.result-order-notice .order-copy-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.order-copy-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  word-break: normal !important;
}
.order-copy-note b,
.order-copy-note span {
  display: block;
}
.order-copy-row {
  display: block;
}
.order-copy-input {
  min-height: 46px;
  border-radius: 12px;
  border-color: rgba(14, 77, 69, 0.26);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: text;
}
.payment-panel .button {
  width: 100%;
  margin-top: 8px;
}
.unlock-code-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 77, 69, 0.14);
}
.unlock-code-panel label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.unlock-code-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}
.unlock-code-row input {
  min-height: 46px;
  width: 100%;
  border-radius: 12px;
  border-color: rgba(14, 77, 69, 0.26);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.unlock-code-row .button {
  width: 100%;
  min-height: 46px;
  margin-top: 0;
  padding-inline: 16px;
  white-space: nowrap;
  border-color: rgba(14, 77, 69, 0.22);
  background: rgba(255, 255, 255, 0.78);
}
.unlock-code-message {
  min-height: 20px;
  margin: 0 !important;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: normal !important;
}
.unlock-code-message.is-error {
  color: #a33d31;
}
.unlock-code-message.is-success {
  color: var(--teal);
  font-weight: 900;
}
.full-report {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.full-report article h3 {
  color: var(--teal);
}
.full-report article p {
  margin-bottom: 0;
  color: var(--muted);
}
.method-section {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: center;
  overflow: hidden;
}
.method-section > div {
  display: grid;
  gap: 10px;
}
.method-section h2 {
  margin: 0;
}
.method-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}
.method-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.method-points li {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.method-points b {
  color: var(--teal);
  font-size: 17px;
  line-height: 1.25;
}
.method-points span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}
.testimonials {
  display: grid;
  gap: 14px;
}
.testimonial-grid {
  display: grid;
  gap: 14px;
}
.testimonial-grid article {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  border: var(--card-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(
      145deg,
      rgba(255, 252, 245, 0.98),
      rgba(244, 249, 246, 0.9)
    ),
    var(--card-bg);
  box-shadow: var(--card-shadow);
}
.testimonial-grid article::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 14px;
  color: rgba(14, 77, 69, 0.08);
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
}
.testimonial-grid b {
  position: relative;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.25;
}
.testimonial-grid p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stats-grid-five,
.stats-grid-six {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stats-grid-five article:first-child,
.stats-grid-six article:first-child {
  border-color: rgba(223, 109, 85, 0.24);
  background:
    linear-gradient(
      145deg,
      rgba(255, 244, 239, 0.98),
      rgba(232, 242, 233, 0.72)
    );
}
.stats-grid article {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 14px 10px;
  border: 1px solid rgba(14, 77, 69, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 252, 245, 0.94),
      rgba(232, 242, 233, 0.76)
    );
  text-align: center;
  box-shadow: 0 12px 26px rgba(24, 40, 51, 0.06);
}
.stats-grid strong {
  color: var(--coral);
  font-size: clamp(22px, 7vw, 32px);
  line-height: 1.08;
}
.stats-grid span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}
.stats-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}
.today-unlock-counter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(224, 93, 78, 0.2);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(224, 93, 78, 0.12),
    rgba(14, 77, 69, 0.08)
  );
  box-shadow: 0 14px 34px rgba(24, 40, 51, 0.08);
}
.today-unlock-counter b {
  grid-row: span 2;
  color: var(--coral);
  font-size: clamp(36px, 12vw, 58px);
  line-height: 0.92;
}
.today-unlock-counter span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}
.today-unlock-counter small {
  color: var(--muted);
  font-weight: 800;
}
.fb-review-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.fb-review-card {
  padding: 14px 12px 10px;
  border: 1px solid #dadde1;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.fb-review-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.fb-avatar {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--avatar-bg);
  border-radius: 999px;
  font-weight: 900;
}
.fb-review-top b,
.fb-review-top small {
  display: block;
}
.fb-review-top b {
  color: #050505;
  font-size: 15px;
  line-height: 1.25;
}
.fb-review-top small {
  color: #65676b;
  font-size: 13px;
  line-height: 1.3;
}
.fb-recommend-link {
  color: #1877f2;
  font-weight: 700;
}
.fb-review-card p {
  margin: 11px 0 10px;
  color: #050505;
  font-size: 15.5px;
  line-height: 1.55;
}
.fb-review-reactions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding-top: 7px;
  border-top: 1px solid #ced0d4;
  color: #65676b;
  font-size: 13px;
  font-weight: 600;
}
.fb-reaction-icons {
  display: inline-flex;
  align-items: center;
  padding-left: 5px;
}
.fb-reaction-icons i {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}
.fb-reaction-count {
  color: #65676b;
  font-size: 13px;
}

.teacher-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}
.teacher-media {
  display: grid;
  gap: 12px;
}
.teacher-card img,
.teacher-main-image,
.teacher-proof-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(14, 77, 69, 0.12);
  background: rgba(255, 250, 241, 0.78);
}
.teacher-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.teacher-proof-grid figure {
  display: grid;
  gap: 6px;
  margin: 0;
}
.teacher-proof-grid img {
  padding: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.teacher-proof-grid figcaption {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.teacher-copy {
  display: grid;
  gap: 12px;
}
.teacher-card p,
.privacy-section p,
.consult-card p,
.result-consult-card p {
  color: var(--muted);
}
.teacher-facts {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.teacher-facts li {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(14, 77, 69, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}
.teacher-facts b {
  color: var(--ink);
  line-height: 1.3;
}
.teacher-facts span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}
.teacher-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.teacher-tags span {
  min-width: 0;
  padding: 8px 4px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(14, 77, 69, 0.1);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.consult-section,
.result-extension {
  display: grid;
  gap: 14px;
}
.consult-card,
.result-consult-card,
.result-extension-block,
.result-mini-faq {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: var(--card-border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 109, 85, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(238, 247, 242, 0.9));
  box-shadow: var(--card-shadow);
}
.consult-card h2,
.result-consult-card h2,
.result-extension-block h2 {
  margin: 0;
}
.consult-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}
.consult-card .button,
.result-consult-card .button {
  width: 100%;
}
.result-extension {
  margin-top: 18px;
}
.result-extension[hidden] {
  display: none;
}
.section-head.compact {
  margin-bottom: 0;
}
.result-next-grid {
  display: grid;
  gap: 10px;
}
.result-next-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(14, 77, 69, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}
.result-next-grid b {
  color: var(--teal);
  font-size: 17px;
  line-height: 1.3;
}
.result-next-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}
.result-mini-faq {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

details {
  padding: 16px 18px;
}
details + details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 900;
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.login-dialog,
.info-dialog,
.payment-dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 18px;
  color: var(--ink);
}
.login-dialog,
.info-dialog {
  padding: 0;
  background: transparent;
}
.payment-dialog {
  background: var(--paper);
  box-shadow: var(--shadow);
}
.login-dialog::backdrop,
.info-dialog::backdrop,
.payment-dialog::backdrop {
  background: rgba(24, 40, 51, 0.52);
  backdrop-filter: blur(6px);
}
.login-dialog form,
.info-dialog form {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 30px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 241, 0.98),
      rgba(241, 234, 223, 0.96)
    ),
    var(--paper);
  box-shadow: 0 24px 70px rgba(24, 40, 51, 0.24);
}
.login-dialog[open] form,
.info-dialog[open] form {
  animation: dialogPop 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dialog-kicker {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 77, 69, 0.1);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}
.login-dialog h2,
.info-dialog h2 {
  margin: 0;
  color: var(--teal);
  font-size: 28px;
  line-height: 1.2;
}
.login-dialog p,
.info-dialog-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.info-dialog-body p {
  margin: 0 0 8px;
}
.info-dialog-body ul {
  margin: 0;
  padding-left: 20px;
}
.info-dialog-body li + li {
  margin-top: 4px;
}
.plain-email {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.collaboration-form {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}
.collaboration-form label {
  display: grid;
  gap: 6px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}
.collaboration-form input,
.collaboration-form textarea {
  background: rgba(255, 252, 245, 0.88);
  font: inherit;
  font-weight: 800;
}
.collaboration-form textarea {
  min-height: 118px;
  resize: vertical;
}
.collaboration-form small {
  min-height: 18px;
  color: var(--teal);
  font-weight: 900;
  text-align: left;
}
.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}
.login-mode-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}
.login-mode-tabs button.active {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(223, 109, 85, 0.24);
}
.login-panel {
  display: grid;
  gap: 12px;
}
.login-panel[hidden] {
  display: none;
}
.login-panel label {
  color: var(--teal);
}
.lookup-dialog label {
  display: grid;
  gap: 8px;
  color: var(--teal);
  font-weight: 900;
}
.lookup-dialog input {
  background: rgba(255, 252, 245, 0.88);
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}
.dialog-submit {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(14, 77, 69, 0.22);
}
.dialog-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.dialog-message {
  display: block;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.pre-report-order-dialog form {
  text-align: left;
}
.pre-report-order-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(14, 77, 69, 0.18);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.92);
}
.pre-report-order-box small {
  color: var(--muted);
  font-weight: 900;
}
.pre-report-order-box b {
  color: var(--teal);
  font-size: clamp(20px, 5.2vw, 28px);
  font-weight: 950;
  letter-spacing: 0;
  word-break: break-all;
  user-select: all;
}
.secondary-dialog-submit {
  background: rgba(255, 252, 245, 0.9);
  color: var(--teal);
  border: 1px solid rgba(14, 77, 69, 0.22);
  box-shadow: none;
}
.payment-dialog form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.94);
  color: var(--teal);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(24, 40, 51, 0.08);
}
.confirm-rows {
  display: grid;
  gap: 8px;
}
.confirm-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mock-checkout {
  padding: 16px;
  background: rgba(14, 77, 69, 0.08);
  border-radius: 14px;
}
.mock-checkout p {
  margin-bottom: 0;
  color: var(--muted);
}
menu {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

@keyframes dialogPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-legal {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  width: min(100%, 520px);
  overflow-x: auto;
  scrollbar-width: none;
}
.footer-legal::-webkit-scrollbar {
  display: none;
}
.footer-legal button,
.footer-legal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.footer-legal a[hidden] {
  display: none;
}
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 720px) {
  .desktop-nav {
    display: none !important;
  }
  .icon-button {
    display: inline-grid !important;
  }
  .hero {
    padding-top: 60px;
    padding-bottom: 30px;
  }
  .pain-grid,
  .answer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-section .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .analysis-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-row {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .method-section {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .result-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .casting-card {
    width: min(760px, 100%);
    margin-inline: auto;
  }
  .teacher-card {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .stats-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .result-next-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .consult-card,
  .result-consult-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .consult-card .button,
  .result-consult-card .button {
    width: auto;
    min-width: 180px;
  }
  menu {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  :root {
    --section-container-width: var(--section-container-width-mobile);
    --section-gap: var(--section-gap-mobile);
  }
  .header-inner {
    gap: 10px;
    padding-inline: 2px 10px;
  }
  .brand {
    gap: 8px;
  }
  .top-login-button {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 13px;
  }
  .mobile-menu {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - var(--menu-panel-top, 88px) - 8px);
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    scrollbar-gutter: stable;
  }
  .menu-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }
  .menu-primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-group a,
  .menu-group button {
    min-height: 58px;
    padding: 10px 9px;
    border-radius: 13px;
  }
  .menu-group b {
    font-size: 16px;
    line-height: 1.16;
  }
  .menu-group small {
    font-size: 12px;
    line-height: 1.34;
  }
  .support-grid .button {
    width: 100%;
    justify-self: stretch;
  }
  .lookup-name-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1040px) {
  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .answer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .analysis-list,
  .locked-chapter-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fb-review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fb-review-top {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .section {
    padding: var(--section-gap-desktop) 0;
  }
  .hero + .section,
  .section + .section {
    padding-top: calc(var(--section-gap-desktop) - 10px);
  }
}
