:root {
  color-scheme: light;
  --ink: #13201d;
  --muted: #61706b;
  --line: #d8e4df;
  --soft: #f5faf7;
  --paper: #ffffff;
  --brand: #123f36;
  --brand-2: #1e6b5a;
  --gold: #f3c44f;
  --rose: #d95f59;
  --blue: #316b9b;
  --shadow: 0 18px 45px rgba(21, 45, 39, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fbfdfb;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.topnav button,
.top-cta,
.plain-button,
.icon-button,
.choice,
.primary,
.secondary,
.danger,
.tab-button,
.table-button {
  border: 0;
  background: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.topnav button {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.topnav button:hover,
.topnav button:focus-visible {
  background: var(--soft);
  color: var(--brand);
  outline: none;
}

.top-cta,
.primary {
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(18, 63, 54, 0.16);
}

.top-cta {
  padding: 12px 16px;
}

.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  text-decoration: none;
}

.secondary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--brand);
  font-weight: 700;
}

.danger {
  border-radius: 8px;
  background: #fff2ef;
  color: #9b2e27;
  font-weight: 700;
}

.app-shell {
  min-height: calc(100vh - 74px);
}

.section {
  padding: 72px 28px;
}

.section.alt {
  background: var(--soft);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 74px);
  padding: 72px 28px 42px;
  background:
    linear-gradient(90deg, rgba(251, 253, 251, 1) 0%, rgba(251, 253, 251, 0.86) 46%, rgba(251, 253, 251, 0.56) 76%),
    url("assets/hero-dashboard.svg") right 7vw center / min(54vw, 680px) auto no-repeat,
    #fbfdfb;
}

.hero-inner {
  display: grid;
  width: min(1120px, 100%);
  min-height: 560px;
  margin: 0 auto;
  align-content: center;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid #bcd8ce;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 640px;
  color: #394844;
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted);
}

.trust-row span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-weight: 700;
}

.income-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.income-strip article {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(23, 63, 55, 0.06);
}

.income-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 22px;
}

.income-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.shop-blueprint {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #b7d6cc;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 63, 54, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 63, 54, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 22px 22px;
  box-shadow: 0 14px 34px rgba(23, 63, 55, 0.1);
}

.hero-blueprint {
  max-width: 660px;
}

.shop-blueprint.locked {
  margin-top: 0;
  opacity: 0.72;
}

.shop-blueprint.dashboard {
  margin: 0 0 20px;
}

.blueprint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blueprint-head strong {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  text-transform: none;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.builder-node {
  position: relative;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(18, 63, 54, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.builder-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  border-top: 2px solid #b7d6cc;
}

.builder-node:last-child::after {
  display: none;
}

.builder-node span {
  display: inline-grid;
  width: 28px;
  height: 24px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 7px;
  background: #e8f4ef;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.builder-node strong {
  display: block;
  color: #21342f;
  font-size: 14px;
  line-height: 1.28;
}

.locked-blueprint {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  border: 1px dashed #b7d6cc;
  border-radius: 8px;
  background: #f8fbfa;
}

.dashboard-demo {
  margin-top: 0;
}

.mock-store {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid #bed8cf;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mock-browser-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f3f7f5;
}

.mock-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9bb4ab;
}

.mock-browser-bar span:first-child {
  background: #e46f61;
}

.mock-browser-bar span:nth-child(2) {
  background: #f0c95a;
}

.mock-browser-bar span:nth-child(3) {
  background: #59b77d;
}

.mock-hero {
  min-height: 210px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(18, 63, 54, 0.94), rgba(32, 107, 89, 0.86)),
    #123f36;
  color: white;
}

.mock-hero p {
  margin-bottom: 8px;
  color: #cae7dd;
  font-weight: 800;
}

.mock-hero h3 {
  max-width: 440px;
  font-size: 30px;
  line-height: 1.16;
}

.mock-hero button {
  min-height: 38px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #1f2a26;
  font-weight: 900;
}

.mock-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.mock-products div {
  min-height: 118px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8fbfa 0 58%, #e4eee9 58% 100%);
  border: 1px solid var(--line);
}

.trust-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.showcase-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(23, 63, 55, 0.08);
}

.showcase-card img,
.media-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #eef5f2;
}

.showcase-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.case-metrics {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: #fff7df;
}

.case-metrics strong {
  color: #8a5d00;
  font-size: 28px;
  line-height: 1.05;
}

.case-metrics span {
  color: #5b4322;
  font-weight: 800;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(23, 63, 55, 0.06);
}

.media-card h3,
.media-card p {
  padding-right: 20px;
  padding-left: 20px;
}

.media-thumb {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(243, 196, 79, 0.25), rgba(30, 107, 90, 0.16)),
    #f7faf8;
  color: var(--brand);
  font-weight: 900;
  text-align: center;
}

.card,
.price-panel,
.result-panel,
.task-panel,
.modal-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(23, 63, 55, 0.06);
}

.card {
  padding: 22px;
}

.card .number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: #e8f4ef;
  color: var(--brand);
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: #31423d;
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: #dff3ea;
  color: var(--brand);
  font-weight: 900;
}

.price-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  overflow: hidden;
}

.price-side {
  padding: 30px;
}

.price-side.featured {
  background: #123f36;
  color: white;
}

.price {
  margin: 12px 0;
  font-size: 42px;
  font-weight: 900;
}

.price small {
  font-size: 16px;
  font-weight: 700;
}

.quiz-wrap,
.dashboard-wrap,
.admin-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 42px 28px 72px;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6efeb;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--brand-2);
}

.quiz-card {
  max-width: 780px;
  margin: 28px auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.choice {
  width: 100%;
  min-height: 58px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.choice:hover,
.choice.selected {
  border-color: var(--brand-2);
  background: #edf8f3;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: #394844;
  line-height: 1.5;
}

.error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff0ed;
  color: #a53328;
  font-weight: 800;
}

.result-header {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.result-panel {
  padding: 28px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #e8f4ef;
  color: var(--brand);
  font-weight: 900;
}

.direction-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.direction-card strong {
  color: var(--brand);
}

.muted {
  color: var(--muted);
}

.dashboard-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.stat strong {
  display: block;
  font-size: 26px;
}

.task-panel {
  padding: 24px;
  background: #123f36;
  color: white;
}

.task-panel .muted {
  color: #bddbd1;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 36px 0 16px;
}

.upgrade-band {
  padding: 24px;
  border: 1px solid #f0d17c;
  border-radius: 8px;
  background: #fff7df;
}

.high-ticket {
  border-left: 5px solid var(--gold);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 27, 24, 0.52);
}

.modal-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.close-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
}

.admin-panel {
  padding: 20px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.score {
  display: inline-flex;
  min-width: 44px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f4ef;
  color: var(--brand);
  font-weight: 900;
}

.table-button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--brand);
  font-weight: 800;
}

.empty-state {
  padding: 26px;
  border: 1px dashed #b8c9c2;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.sticky-help {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
}

.sticky-help .primary {
  min-height: 48px;
}

.noscript {
  padding: 40px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .topnav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top-cta {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    background:
      linear-gradient(180deg, rgba(251, 253, 251, 0.96), rgba(251, 253, 251, 0.9)),
      url("assets/hero-dashboard.svg") center bottom / 92vw auto no-repeat,
      #fbfdfb;
  }

  .hero-inner {
    min-height: 760px;
    align-content: start;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .builder-grid,
  .locked-blueprint,
  .demo-showcase,
  .trust-media-grid,
  .showcase-grid,
  .income-strip,
  .price-panel,
  .stats-row,
  .admin-grid,
  .dashboard-header {
    grid-template-columns: 1fr;
  }

  .builder-node::after {
    top: auto;
    right: auto;
    bottom: -10px;
    left: 24px;
    width: 0;
    height: 10px;
    border-top: 0;
    border-left: 2px solid #b7d6cc;
  }
}

@media (max-width: 560px) {
  .section,
  .quiz-wrap,
  .dashboard-wrap,
  .admin-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .button-row,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .primary,
  .secondary,
  .danger {
    width: 100%;
  }

  .sticky-help {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}
