:root {
  --ink: #3d6b64;
  --ink-soft: #5a8680;
  --paper: #ffffff;
  --cream: #fff8f1;
  --card: #ffffff;
  --amber: #f0c27a;
  --amber-deep: #e8b89a;
  --seal: #e8b89a;
  --go: #6cbfb0;
  --muted: #6b817c;
  --line: #b7d0cb;
  --haze: #eef7f5;
  --shadow: 10px 10px 0 #cfe8e2;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --serif: "Noto Serif TC", "PMingLiU", "PingFang TC", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --display: "Instrument Serif", "Noto Serif TC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(#d8f3ec 1px, transparent 1px) 0 0 / 100% 72px,
    #ffffff;
  font-family: var(--sans);
  line-height: 1.7;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

header,
main,
footer { position: relative; z-index: 1; }

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 6vw;
  background: #fff;
  border-bottom: 3px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(13.5rem, 22vw, 19rem);
  height: auto;
}

.brand-mark {
  display: block;
  width: 4.05rem;
  height: 2.75rem;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 900; }
.brand-text em { font-style: normal; color: var(--muted); font-size: 0.75rem; font-weight: 600; }

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--seal);
  color: #fff !important;
  box-shadow: 4px 4px 0 var(--go);
}

.hero,
.markets,
.problem,
.method,
.subjects,
.plans,
.slots,
.tutor,
.diagnose,
.book,
.faq {
  padding: 6rem 6vw;
  scroll-margin-top: 5.5rem;
  border-bottom: 3px solid var(--ink);
}

.markets { padding-top: 2.5rem; }

.markets p {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-weight: 700;
}

.markets ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.markets li {
  padding: 1.4rem 1.4rem 1.2rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.markets li:nth-child(2) { transform: translateY(18px); }
.markets li:nth-child(3) { transform: translateY(-10px); }

.markets strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
}

.markets span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
  padding-top: 4.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
}

h1, h2, h3, legend {
  font-family: var(--serif);
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h1 em {
  font-family: var(--display);
  font-style: italic;
  color: var(--seal);
}

.lede {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 500;
}

.hero-actions,
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 2.2rem;
}

.btn {
  appearance: none;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 0 var(--go);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--go);
}

.btn-primary {
  background: var(--seal);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 3px solid var(--ink);
  background: #fff;
}

.hero-stats div {
  padding: 0.9rem 1rem;
  border-right: 3px solid var(--ink);
}

.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font-family: var(--serif); font-weight: 900; font-size: 1.05rem; }
.hero-stats dd { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.88rem; font-weight: 600; }

.hero-stage {
  position: relative;
  min-height: 28rem;
}

.hero-plate {
  position: absolute;
  inset: 28px -18px -18px 28px;
  background: var(--haze);
  border: 3px solid var(--ink);
}

.hero-card {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 1.8rem;
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--seal);
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.hero-card-head p { margin: 0; color: #d8d8d8; font-weight: 700; }

.seal {
  display: block;
  width: 4.4rem;
  height: 3.35rem;
  object-fit: contain;
  transform: rotate(-8deg);
  filter: drop-shadow(6px 6px 0 var(--seal));
}

.slot-preview,
.slot-board {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.slot-preview li,
.slot-chip {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.hero-card-note {
  margin: 1rem 0 0;
  color: #cfcfcf;
  font-size: 0.88rem;
}

.section-head { max-width: 42rem; margin-bottom: 2.4rem; }
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 8px;
  margin-top: 0.85rem;
  background: var(--ink);
}
.section-lead { color: var(--ink-soft); font-weight: 500; }

.problem-grid,
.subject-grid,
.plan-grid,
.steps {
  display: grid;
  gap: 1.3rem;
}

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

.problem-grid article,
.subject-grid article,
.plan,
.layer,
.tutor-card,
.wizard,
.diagnosis-card,
.book-form,
.faq details,
.markets li {
  background: #fff;
  border: 3px solid var(--ink);
}

.problem-grid article,
.subject-grid article,
.plan,
.layer,
.tutor-card,
.wizard,
.diagnosis-card,
.book-form,
.faq details {
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.problem-grid article:nth-child(2),
.subject-grid article:nth-child(2),
.plan:nth-child(2) { transform: translateY(16px); }

.problem-grid article:nth-child(3),
.subject-grid article:nth-child(3) { transform: translateY(-8px); }

.problem-grid span {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--seal);
  font-weight: 700;
}

.problem-grid h3,
.subject-grid h3,
.plan h3 {
  font-weight: 900;
  font-size: 1.4rem;
}

.split-cards {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}

.layer-ai {
  background: var(--haze);
  position: relative;
  z-index: 1;
}

.layer-human {
  background: var(--ink);
  color: #fff;
  transform: translate(18px, 22px);
  box-shadow: 12px 12px 0 var(--seal);
}

.layer-kicker { color: var(--amber); letter-spacing: 0.08em; font-size: 0.82rem; font-weight: 800; }
.layer ul, .plan ul, .tutor ul { padding-left: 1.1rem; }

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.steps li {
  padding: 1.2rem 1.1rem 0 0;
  border-top: 8px solid var(--ink);
}

.steps strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 900; }
.steps p { margin: 0.4rem 0 0; color: var(--muted); }

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

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.plan.is-selected {
  outline: none;
  box-shadow: 0 0 0 4px var(--seal), var(--shadow);
}

.plan-featured {
  background: var(--ink);
  color: #fff;
  transform: translateY(-18px) scale(1.03);
  box-shadow: 12px 12px 0 var(--seal);
  z-index: 1;
}

.plan-tag { margin: 0; color: var(--amber); font-size: 0.82rem; font-weight: 800; }
.price { font-family: var(--serif); font-size: 1.9rem; margin: 0; font-weight: 900; }
.price span { font-size: 0.9rem; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.plan-featured .price span { color: #fff3c4; }
.plan-hours {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.plan-featured .plan-hours { color: #c8fff3; }
.plan .btn { margin-top: auto; }

.wallet-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1.6rem;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.wallet-bar div {
  padding: 1rem 1.1rem;
  border-right: 3px solid var(--ink);
}

.wallet-bar div:last-child { border-right: 0; }
.wallet-bar dt { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.wallet-bar dd {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 1.2rem;
  align-items: start;
}

.calendar,
.cal-day {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.calendar-head h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.calendar-head .btn { padding: 0.45rem 0.8rem; box-shadow: 4px 4px 0 var(--ink); }

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-weekdays span {
  padding: 0.35rem 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.cal-cell {
  appearance: none;
  min-height: 4.6rem;
  padding: 0.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cal-cell:disabled {
  cursor: default;
  opacity: 0.35;
}

.cal-cell.is-other { visibility: hidden; }

.cal-cell.is-open {
  border-color: var(--ink);
  background: #fff;
}

.cal-cell.is-today .cal-date { color: var(--seal); }

.cal-cell.is-selected {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--seal);
}

.cal-cell.is-selected .cal-count,
.cal-cell.is-selected .cal-date { color: #fff; }

.cal-date {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 900;
}

.cal-count {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.cal-day h3 { margin: 0.2rem 0 1rem; font-size: 1.5rem; font-weight: 900; }
.cal-times {
  display: grid;
  gap: 0.65rem;
  max-height: 28rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.picked-slots,
.lesson-list {
  margin: 1.4rem 0 0;
  padding: 1.1rem;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  list-style: none;
}

.picked-slots p,
.lesson-list p { margin: 0 0 0.7rem; font-weight: 800; }

.picked-slots ul,
.lesson-list {
  display: grid;
  gap: 0.45rem;
}

.picked-slots li,
.lesson-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid #ececec;
  font-weight: 700;
}

.picked-slots .btn {
  padding: 0.35rem 0.7rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.slot-board {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.slot-chip {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.slot-chip.is-selected {
  background: var(--ink);
  color: #fff;
}

.slot-chip[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  box-shadow: none;
}

.tutor { padding-top: 3rem; }
.tutor-card { max-width: 52rem; }

.wizard { max-width: 46rem; }

.wizard-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.wizard-progress span {
  flex: 1;
  height: 8px;
  background: #ddd;
}

.wizard-progress span.is-active { background: var(--ink); }

.wizard-step { border: 0; padding: 0; margin: 0; }
.wizard-step[hidden] { display: none; }
legend { font-size: 1.45rem; margin-bottom: 1rem; font-weight: 900; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.choice-grid label,
.book-form label {
  display: block;
  padding: 0.9rem;
  border: 2px solid var(--ink);
  background: var(--haze);
  font-weight: 600;
}

.choice-grid input { margin-right: 0.45rem; }

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 0.85rem;
  border: 2px solid var(--ink);
  font: inherit;
  background: #fff;
}

.diagnosis-card {
  max-width: 46rem;
  margin-top: 1.2rem;
  background: var(--haze);
}

.diagnosis-card h3 { margin-top: 0; font-weight: 900; }
.diagnosis-meta { color: var(--muted); font-weight: 700; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full { grid-column: 1 / -1; }
.book-form .btn { margin-top: 1.2rem; }
.form-fine { color: var(--muted); font-size: 0.88rem; }

.member-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.member-button.is-signed-in {
  background: var(--seal);
  color: #fff;
}

.member-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.2rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.member-status strong,
.member-status span {
  display: block;
}

.member-status span {
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--seal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-card label {
  display: block;
  margin-top: 0.8rem;
  font-weight: 700;
}

.btn-google {
  width: 100%;
  margin-top: 0.5rem;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-feedback {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 2px solid #b42318;
  border-radius: 12px;
  background: #fff1f0;
  color: #8a1c13;
  font-weight: 750;
}

.auth-feedback[hidden] {
  display: none;
}

.auth-card button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.pay-mark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.pay-mark b { color: var(--ink); }

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.pipeline li {
  padding: 1rem 1.1rem;
  border-right: 3px solid var(--ink);
}

.pipeline li:last-child { border-right: 0; }
.pipeline b {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 900;
}
.pipeline span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.pipeline .is-done,
.pipeline .is-active {
  background: var(--ink);
  color: #fff;
}
.pipeline .is-done span,
.pipeline .is-active span { color: #c8fff3; }

.desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.desk-grid article {
  padding: 1.3rem;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.desk-grid h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.desk-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desk-grid li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid #ececec;
  font-weight: 700;
}

.pay-main {
  width: min(44rem, 92vw);
  margin: 2.4rem auto 4rem;
}

.pay-card {
  padding: 1.7rem;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.pay-card h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: 2.1rem;
  font-weight: 900;
}

.pay-facts {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 1.4rem;
}

.pay-facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #ececec;
}

.pay-facts dt {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.pay-facts dd {
  margin: 0;
  font-weight: 700;
}

.faq-list { display: grid; gap: 1rem; }
.faq details summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; font-weight: 800; }

.site-footer {
  padding: 2.6rem 6vw 3.2rem;
  background: var(--ink);
  color: #d8d8d8;
  border-top: 0;
}

.footer-brand {
  display: inline-block;
  margin: 0 0 1rem;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 15.5rem;
  height: auto;
}

.site-footer p { margin: 0.35rem 0; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 1.3rem; }
.site-footer p a { color: #fff; font-weight: 700; }

.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.05rem;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--seal);
  font-weight: 700;
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop { background: rgba(0, 0, 0, 0.62); }

.modal-inner {
  width: min(32rem, 92vw);
  background: #fff;
  padding: 1.7rem;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

@media (max-width: 960px) {
  .brand-logo { width: 13.5rem; }
  .hero,
  .split-cards,
  .problem-grid,
  .subject-grid,
  .plan-grid,
  .steps,
  .form-grid,
  .choice-grid,
  .markets ul,
  .calendar-shell,
  .pipeline,
  .desk-grid,
  .wallet-bar {
    grid-template-columns: 1fr;
  }

  .wallet-bar div {
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
  .wallet-bar div:last-child { border-bottom: 0; }

  .pipeline li {
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
  .pipeline li:last-child { border-bottom: 0; }

  .markets li:nth-child(2),
  .markets li:nth-child(3),
  .problem-grid article:nth-child(2),
  .problem-grid article:nth-child(3),
  .subject-grid article:nth-child(2),
  .subject-grid article:nth-child(3),
  .plan:nth-child(2),
  .plan-featured,
  .layer-human {
    transform: none;
  }

  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { border-right: 0; border-bottom: 3px solid var(--ink); }
  .hero-stats div:last-child { border-bottom: 0; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 6vw;
    left: 6vw;
    padding: 1rem;
    background: #fff;
    border: 3px solid var(--ink);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.is-open { display: flex; }
}

.nav-toggle,
.nav-cta,
.eyebrow,
.toast {
  border-radius: var(--radius-pill);
}

.markets li,
.hero-stats,
.hero-plate,
.hero-card,
.problem-grid article,
.subject-grid article,
.plan,
.layer,
.tutor-card,
.wizard,
.diagnosis-card,
.book-form,
.faq details,
.wallet-bar,
.calendar,
.cal-day,
.picked-slots,
.lesson-list,
.pipeline,
.desk-grid article,
.pay-card,
.modal-inner,
.site-nav {
  border-radius: var(--radius);
}

.hero-stats,
.wallet-bar,
.pipeline {
  overflow: hidden;
}

.slot-preview li,
.slot-chip,
.choice-grid label,
.book-form label,
textarea,
input[type="text"],
input[type="email"],
select {
  border-radius: var(--radius-sm);
}

.wizard-progress span,
.section-head h2::after {
  border-radius: var(--radius-pill);
}

/* Premium conversion redesign */
:root {
  --ink: #25275c;
  --ink-soft: #515579;
  --paper: #ffffff;
  --cream: #fff8f3;
  --card: #ffffff;
  --amber: #ffd38e;
  --amber-deep: #ff9d77;
  --seal: #ff7b5c;
  --go: #6967d9;
  --muted: #727691;
  --line: #e4e4f0;
  --haze: #f3f1ff;
  --shadow: 0 18px 50px rgba(43, 42, 99, 0.10);
  --shadow-hover: 0 24px 65px rgba(43, 42, 99, 0.16);
  --radius: 26px;
  --radius-sm: 16px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 4%, rgba(255, 193, 168, 0.22), transparent 26rem),
    radial-gradient(circle at 94% 8%, rgba(124, 119, 231, 0.16), transparent 30rem),
    #fcfcff;
}

.grain { opacity: 0.025; }

.site-header {
  padding: 0.85rem 6vw;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(37, 39, 92, 0.09);
  box-shadow: 0 8px 30px rgba(37, 39, 92, 0.05);
  backdrop-filter: blur(18px);
}

.brand-text strong { color: var(--ink); }
.brand-text em { color: var(--muted); }
.site-nav { gap: 1.5rem; }
.site-nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--seal); }

.nav-cta {
  padding: 0.65rem 1.15rem;
  background: linear-gradient(135deg, #ff8e70, var(--seal));
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(255, 123, 92, 0.28);
}

.hero,
.markets,
.problem,
.method,
.subjects,
.plans,
.slots,
.desk,
.tutor,
.diagnose,
.book,
.faq {
  border-bottom: 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 75px);
  padding-top: 5.5rem;
  padding-bottom: 7rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  left: 42%;
  top: 8%;
  border-radius: 50%;
  background: rgba(255, 211, 142, 0.22);
  filter: blur(1px);
  z-index: -1;
}

.eyebrow {
  padding: 0.42rem 0.8rem;
  color: #5652bb;
  background: #eceaff;
  border: 1px solid #dedbff;
  border-radius: var(--radius-pill);
}

h1 {
  max-width: 12ch;
  color: #212352;
  font-size: clamp(3rem, 6.3vw, 5.6rem);
  line-height: 1.08;
}

h1 em {
  color: var(--seal);
  background: linear-gradient(110deg, #ff7b5c 10%, #f3a66f 92%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.85;
}

.hero-actions { margin-bottom: 0.8rem; }
.cta-proof {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.btn {
  min-height: 3.15rem;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 39, 92, 0.14);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff8f70, #ff7057);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 112, 87, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 15px 32px rgba(255, 112, 87, 0.34);
}

.btn-ghost {
  border-color: #d9daea;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.hero-stats,
.wallet-bar,
.pipeline {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 35px rgba(37, 39, 92, 0.06);
}

.hero-stats div,
.wallet-bar div,
.pipeline li {
  border-color: var(--line);
  border-width: 1px;
}

.hero-stats dt { color: #303268; }

.hero-stage { min-height: 29rem; }
.hero-plate {
  inset: 28px -10px -14px 30px;
  border: 0;
  background: linear-gradient(145deg, #e9e6ff, #ffe9dd);
  border-radius: 30px;
  transform: rotate(1.5deg);
}

.hero-card {
  overflow: hidden;
  padding: 2rem;
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 155, 119, 0.28), transparent 14rem),
    linear-gradient(145deg, #30336f, #242653);
  box-shadow: 0 30px 70px rgba(37, 39, 92, 0.25);
}

.hero-card-head p,
.hero-card-note { color: #dedffa; }
.seal {
  transform: rotate(-5deg);
  filter: drop-shadow(0 8px 16px rgba(11, 12, 44, 0.25));
}
.slot-preview li {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.diagnose,
.plans,
.book {
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 182, 151, 0.18), transparent 24rem),
    linear-gradient(180deg, #f8f7ff, #fff);
}

.problem,
.slots,
.faq {
  background: #fffaf7;
}

.section-head { max-width: 47rem; }
.section-head h2 { color: #222451; }
.section-head h2::after {
  width: 4.2rem;
  height: 5px;
  background: linear-gradient(90deg, var(--seal), #8a82eb);
}

.problem-grid article,
.subject-grid article,
.plan,
.layer,
.tutor-card,
.wizard,
.diagnosis-card,
.book-form,
.faq details,
.markets li,
.calendar,
.cal-day,
.picked-slots,
.lesson-list,
.desk-grid article,
.pay-card,
.modal-inner {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.problem-grid article,
.subject-grid article,
.markets li,
.plan {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.problem-grid article:hover,
.subject-grid article:hover,
.markets li:hover,
.plan:hover {
  transform: translateY(-6px);
  border-color: #d3d0fa;
  box-shadow: var(--shadow-hover);
}

.problem-grid article:nth-child(2),
.problem-grid article:nth-child(3),
.subject-grid article:nth-child(2),
.subject-grid article:nth-child(3),
.markets li:nth-child(2),
.markets li:nth-child(3) {
  transform: none;
}

.problem-grid span {
  color: #7973db;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.markets li {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(145deg, #fff, #f8f7ff);
}
.markets li::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, #8a82eb, #ff9b7c);
}

.split-cards { gap: 1.2rem; }
.layer-ai { background: linear-gradient(145deg, #f6f4ff, #fff); }
.layer-human {
  border: 0;
  background: linear-gradient(145deg, #343675, #25275c);
  transform: none;
  box-shadow: 0 24px 55px rgba(37, 39, 92, 0.22);
}
.layer-kicker { color: #ffbf8c; }

.steps { gap: 1rem; }
.steps li {
  padding: 1.25rem;
  border-top: 0;
  border-radius: 18px;
  background: #f7f6ff;
}
.steps strong { color: #5f5ac7; }

.plan-grid { gap: 1.1rem; }
.plan { padding: 1.8rem 1.5rem; }
.plan h3 { color: #25275c; }
.plan-tag { color: #6964cc; }
.price { color: #27295d; }
.plan-hours {
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #5551ba;
  background: #efedff;
}
.plan.is-selected {
  outline: none;
  border-color: #817ae4;
  box-shadow: 0 0 0 3px rgba(129, 122, 228, 0.16), var(--shadow);
}
.plan-featured {
  border: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 153, 117, 0.36), transparent 12rem),
    linear-gradient(145deg, #373a7e, #26285a);
  color: #fff;
  transform: translateY(-14px);
  box-shadow: 0 25px 60px rgba(37, 39, 92, 0.24);
}
.plan-featured:hover { transform: translateY(-20px); }
.plan-featured h3,
.plan-featured .price { color: #fff; }
.plan-featured .plan-tag { color: #ffd29c; }
.plan-featured .price span { color: #dddfff; }
.plan-featured .plan-hours {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.calendar,
.cal-day { padding: 1.4rem; }
.calendar-head .btn {
  min-height: auto;
  box-shadow: none;
}
.cal-cell.is-open {
  border: 1px solid #e0e0ed;
  background: #fff;
}
.cal-cell.is-open:hover {
  border-color: #aca7ef;
  background: #f7f6ff;
}
.cal-cell.is-today .cal-date { color: var(--seal); }
.cal-cell.is-selected {
  background: linear-gradient(145deg, #7670df, #5a57c5);
  box-shadow: 0 8px 18px rgba(90, 87, 197, 0.25);
}
.slot-chip {
  border: 1px solid #dedeea;
  background: #fff;
  box-shadow: none;
}
.slot-chip:hover {
  border-color: #8d87e8;
  background: #f8f7ff;
}
.slot-chip.is-selected {
  border-color: transparent;
  background: linear-gradient(145deg, #7670df, #5956c3);
}

.wizard,
.book-form { background: rgba(255, 255, 255, 0.9); }
.wizard-progress span { background: #e7e6f1; }
.wizard-progress span.is-active {
  background: linear-gradient(90deg, #7a73df, #ff9676);
}
.choice-grid label,
.book-form label {
  border: 1px solid #e0e0ed;
  background: #fbfbff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.choice-grid label:hover {
  border-color: #aaa5ed;
  background: #f4f2ff;
}
textarea,
input[type="text"],
input[type="email"],
select {
  border: 1px solid #d9d9e7;
  outline: none;
}
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: #7771db;
  box-shadow: 0 0 0 4px rgba(119, 113, 219, 0.12);
}
.diagnosis-card { background: linear-gradient(145deg, #f1efff, #fff7f2); }

.pipeline .is-done,
.pipeline .is-active {
  background: linear-gradient(145deg, #716bd7, #5754bc);
}
.pipeline .is-done span,
.pipeline .is-active span { color: #efefff; }

.tutor-card {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 143, 107, 0.28), transparent 18rem),
    linear-gradient(145deg, #30336f, #232550);
  box-shadow: 0 28px 65px rgba(37, 39, 92, 0.22);
}
.tutor-card h2 { color: #fff; }
.tutor-card .eyebrow {
  color: #ffd3a9;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

.faq details { box-shadow: 0 10px 30px rgba(37, 39, 92, 0.06); }
.faq details[open] {
  border-color: #d1cef7;
  background: #fbfaff;
}

.site-footer {
  color: #d9daee;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 134, 96, 0.20), transparent 22rem),
    #202249;
}

.toast {
  border: 0;
  background: #292b61;
  box-shadow: 0 14px 35px rgba(37, 39, 92, 0.25);
}

.modal::backdrop { background: rgba(25, 27, 65, 0.64); }
.modal-inner { box-shadow: 0 30px 80px rgba(22, 24, 62, 0.28); }

.booking-action-bar {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border: 2px solid #d1cef7;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 60px rgba(37, 39, 92, 0.24);
  backdrop-filter: blur(16px);
}

.booking-action-bar[hidden] { display: none !important; }
.has-booking-action { padding-bottom: 7rem; }
.booking-action-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}
.booking-action-copy strong { font-size: 0.95rem; }
.booking-action-copy span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-action-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}
.booking-action-buttons .btn {
  padding: 0.75rem 1rem;
  box-shadow: none;
}

.pay-page {
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 180, 147, 0.22), transparent 25rem),
    radial-gradient(circle at 90% 4%, rgba(124, 119, 231, 0.16), transparent 28rem),
    #fbfbff;
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 4rem; }
  .hero::before { display: none; }
  .hero-plate { inset: 20px 0 -12px 18px; }
  .plan-featured,
  .plan-featured:hover { transform: none; }
  .site-nav {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
  }
  .wallet-bar div,
  .pipeline li,
  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero,
  .markets,
  .problem,
  .method,
  .subjects,
  .plans,
  .slots,
  .desk,
  .tutor,
  .diagnose,
  .book,
  .faq {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-stage { min-height: auto; }
  .hero-card { padding: 1.4rem; }
  .hero-plate { display: none; }
  .booking-action-bar {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
  }
  .booking-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
  }
  .booking-action-buttons .btn {
    min-height: 2.9rem;
    padding: 0.65rem 0.55rem;
    font-size: 0.82rem;
  }
  .has-booking-action { padding-bottom: 10rem; }
}
