:root {
  --paper: #f7f3ea;
  --paper-deep: #ece5d7;
  --ink: #17233b;
  --ink-2: #26344f;
  --muted: #667087;
  --line: rgba(23, 35, 59, .16);
  --coral: #ff6b4a;
  --coral-dark: #e44e31;
  --blue: #2367d1;
  --mint: #c6e8d5;
  --yellow: #f1d56a;
  --white: #fffdf8;
  --success: #247b5a;
  --danger: #b83f37;
  --shadow: 0 22px 60px rgba(34, 31, 26, .12);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --container: min(1240px, calc(100% - 48px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Aptos", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: white; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 110px 0; }
.section-tight { padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 42px; }
.section-heading h2, .display-title, .auth-copy h1, .page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
.section-heading h2 { font-size: clamp(2.7rem, 5.1vw, 5.3rem); max-width: 830px; margin: 14px 0 0; }
.section-heading p { max-width: 430px; color: var(--muted); font-size: 1.05rem; margin: 0 0 7px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; font-weight: 750; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link:hover { color: var(--coral-dark); }

.site-header {
  width: min(1400px, calc(100% - 32px));
  height: 78px;
  margin: 14px auto 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 50;
  border: 1px solid rgba(23, 35, 59, .12);
  border-radius: 24px;
  background: rgba(247, 243, 234, .92);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(23, 35, 59, .1); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.3rem; font-weight: 850; letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; }
.main-nav { display: flex; align-items: center; gap: 27px; font-size: .91rem; font-weight: 700; }
.main-nav > a:not(.button) { position: relative; }
.main-nav > a:not(.button)::after { content: ""; position: absolute; height: 2px; background: var(--coral); bottom: -7px; left: 0; width: 0; transition: width .22s var(--ease); }
.main-nav > a:not(.button):hover::after { width: 100%; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s, opacity .2s; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 23px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 18px; font-size: .88rem; }
.button-coral { background: var(--coral); color: var(--ink); box-shadow: 0 8px 20px rgba(255, 107, 74, .2); }
.button-coral:hover { background: #ff7a5c; box-shadow: 0 12px 28px rgba(255, 107, 74, .28); }
.button-ink { background: var(--ink); color: white; }
.button-ink:hover { background: var(--ink-2); }
.button-light { background: var(--white); color: var(--ink); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--white); }
.button-block { width: 100%; }
.button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.hero { min-height: calc(100vh - 100px); padding: 68px 0 46px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { width: var(--container); margin: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .75fr); align-items: center; gap: 6vw; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.3rem, 8.4vw, 8.7rem); line-height: .84; letter-spacing: -.075em; font-weight: 500; margin: 22px 0 28px; max-width: 850px; }
.hero-copy h1 em { color: var(--coral); font-style: italic; }
.hero-intro { display: flex; gap: 22px; align-items: flex-start; max-width: 660px; }
.hero-intro::before { content: ""; width: 50px; height: 1px; margin-top: 15px; flex: 0 0 50px; background: var(--ink); }
.hero-intro p { font-size: clamp(1rem, 1.4vw, 1.22rem); color: var(--ink-2); margin: 0; max-width: 510px; }
.hero-actions { display: flex; align-items: center; gap: 17px; margin-top: 34px; }
.hero-note { color: var(--muted); font-size: .8rem; max-width: 150px; line-height: 1.35; }
.hero-visual { position: relative; min-height: 570px; }
.journey-board { position: absolute; inset: 0; border-radius: 220px 220px 32px 32px; background: var(--ink); color: white; overflow: hidden; box-shadow: var(--shadow); }
.journey-board::after { content: ""; position: absolute; right: -44px; top: 110px; width: 160px; height: 160px; border: 30px solid rgba(241, 213, 106, .9); border-radius: 50%; }
.journey-label { position: absolute; left: 44px; top: 55px; display: flex; align-items: center; gap: 10px; color: #d9deea; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.journey-label::before { content: ""; width: 8px; height: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,107,74,.17); }
.journey-route { position: absolute; inset: 90px 24px 30px; }
.journey-route svg { width: 100%; height: 100%; overflow: visible; }
.route-path { stroke-dasharray: 7 8; animation: routeMove 12s linear infinite; }
@keyframes routeMove { to { stroke-dashoffset: -150; } }
.journey-card { position: absolute; min-width: 220px; background: var(--white); color: var(--ink); border-radius: 20px; padding: 15px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 38px rgba(0,0,0,.2); }
.journey-card .avatar { width: 48px; height: 48px; font-size: .86rem; }
.journey-card strong { display: block; font-size: .91rem; }
.journey-card small { color: var(--muted); font-size: .74rem; }
.journey-card-one { left: 27px; top: 162px; transform: rotate(-3deg); }
.journey-card-two { right: 24px; bottom: 55px; transform: rotate(2deg); }
.journey-match { position: absolute; left: 54%; top: 44%; transform: translate(-50%, -50%); width: 115px; aspect-ratio: 1; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; text-align: center; line-height: 1.05; font-weight: 900; box-shadow: 0 0 0 12px rgba(255,107,74,.13); }
.journey-match b { font-family: Georgia, serif; font-size: 2rem; }

.proof-strip { width: var(--container); margin: 0 auto 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); }
.proof-strip > div { min-height: 118px; padding: 23px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.proof-strip > div:first-child { border-left: 0; padding-left: 0; font-size: 1.15rem; font-weight: 750; }
.proof-strip strong { font-family: Georgia, serif; font-size: 2.2rem; line-height: 1; font-weight: 500; }
.proof-strip small { color: var(--muted); margin-top: 7px; }

.steps-section { background: var(--ink); color: white; border-radius: 52px 52px 0 0; }
.steps-section .section-heading p { color: #aeb7c7; }
.steps { border-top: 1px solid rgba(255,255,255,.16); }
.step-row { display: grid; grid-template-columns: 100px .72fr 1fr; gap: 28px; align-items: center; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.step-number { font-family: Georgia, serif; color: var(--coral); font-size: 1.25rem; }
.step-row h3 { font-family: Georgia, serif; font-size: clamp(2rem, 3.6vw, 4rem); line-height: 1; font-weight: 500; margin: 0; }
.step-row p { margin: 0; color: #b7c0cf; max-width: 570px; }
.step-row:hover h3 { color: var(--yellow); }

.teacher-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.teacher-card { grid-column: span 4; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.teacher-card:nth-child(2) { transform: translateY(38px); }
.teacher-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.teacher-card:nth-child(2):hover { transform: translateY(30px); }
.teacher-portrait { height: 250px; padding: 25px; background: var(--accent, var(--mint)); display: flex; align-items: end; justify-content: space-between; position: relative; overflow: hidden; }
.teacher-portrait::before { content: attr(data-initials); position: absolute; top: -30px; right: -8px; font-family: Georgia, serif; font-size: 10rem; line-height: 1; color: rgba(255,255,255,.32); letter-spacing: -.1em; }
.avatar { width: 68px; height: 68px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font-weight: 850; letter-spacing: -.04em; }
.rating-pill { position: relative; z-index: 1; background: var(--white); border-radius: 999px; padding: 7px 12px; font-size: .78rem; font-weight: 850; }
.rating-pill span { color: #ca8d00; }
.teacher-body { padding: 24px; }
.teacher-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; background: var(--paper-deep); padding: 4px 10px; font-size: .73rem; font-weight: 750; }
.tag-blue { background: #dce8fa; color: #174b99; }
.tag-green { background: #dff1e7; color: #1d6c4d; }
.tag-coral { background: #ffe4dc; color: #a83d27; }
.teacher-body h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; }
.teacher-title { color: var(--muted); margin: 5px 0 19px; min-height: 50px; }
.teacher-footer { display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--line); padding-top: 17px; }
.teacher-footer small { display: block; color: var(--muted); }
.teacher-footer strong { font-size: 1.1rem; }
.icon-link { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; transition: background .2s, color .2s; }
.icon-link:hover { background: var(--ink); color: white; }

.ai-section { padding: 120px 0; overflow: hidden; }
.ai-frame { width: var(--container); min-height: 620px; margin: auto; border-radius: var(--radius-lg); background: var(--coral); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.ai-copy { padding: clamp(38px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.ai-copy h2 { font-family: Georgia, serif; font-size: clamp(3rem, 5.5vw, 6rem); line-height: .9; letter-spacing: -.055em; font-weight: 500; margin: 18px 0 28px; }
.ai-copy p { max-width: 500px; font-size: 1.08rem; }
.ai-copy .button { align-self: flex-start; margin-top: 18px; }
.match-demo { background: var(--ink); margin: 25px; border-radius: 27px; padding: clamp(25px, 4vw, 50px); color: white; display: flex; flex-direction: column; justify-content: center; }
.match-demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.match-demo-head span { color: #aab4c5; font-size: .82rem; }
.match-demo-head i { width: 10px; height: 10px; background: #72dba9; border-radius: 50%; box-shadow: 0 0 0 6px rgba(114,219,169,.12); }
.match-person { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 18px; border-radius: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; margin: 9px 0; }
.match-person:first-of-type { background: var(--white); color: var(--ink); transform: scale(1.04); }
.match-person small { display: block; color: #9eabba; }
.match-person:first-of-type small { color: var(--muted); }
.match-score { font-family: Georgia, serif; font-size: 1.65rem; color: var(--yellow); }
.match-person:first-of-type .match-score { color: var(--coral-dark); }
.match-reason { color: #c8d0dd; font-size: .82rem; margin-top: 18px; line-height: 1.8; }
.match-reason span { color: white; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.price-card { min-height: 430px; padding: 38px; border-left: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.price-card:first-child { border-left: 0; }
.price-card.featured { background: var(--yellow); }
.price-card .featured-label { position: absolute; top: 20px; right: 20px; background: var(--ink); color: white; padding: 5px 10px; border-radius: 999px; font-size: .69rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.price-card h3 { font-size: 1.4rem; margin: 20px 0 5px; }
.price-card .price { font-family: Georgia, serif; font-size: 3.7rem; line-height: 1; letter-spacing: -.06em; margin: 22px 0; }
.price-card p { color: var(--muted); }
.price-card.featured p { color: var(--ink-2); }
.price-card ul { list-style: none; margin: 8px 0 28px; padding: 0; }
.price-card li { padding: 7px 0; font-size: .91rem; }
.price-card li::before { content: "✓"; margin-right: 9px; font-weight: 900; }
.price-card .button { margin-top: auto; }

.site-footer { margin: 60px 16px 16px; background: var(--ink); color: white; border-radius: 42px; padding: clamp(36px, 7vw, 90px); }
.footer-lead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 70px; }
.footer-lead h2 { font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 7rem); line-height: .88; letter-spacing: -.06em; font-weight: 500; margin: 20px 0 0; }
.round-link { width: 175px; height: 175px; flex: 0 0 auto; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: 1.1rem; font-weight: 850; line-height: 1.2; transform: rotate(-6deg); transition: transform .3s var(--ease); }
.round-link:hover { transform: rotate(0) scale(1.05); }
.round-link span { font-size: 1.5rem; }
.footer-base { padding: 42px 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; }
.brand-light img { filter: drop-shadow(0 0 0 transparent); }
.footer-base p { color: #adb7c7; max-width: 340px; margin: 0; }
.footer-base > div { display: flex; justify-content: flex-end; gap: 22px; color: #dbe1ea; font-size: .9rem; }
.footer-credit { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; color: #828da0; font-size: .75rem; }

.toast { position: fixed; right: 24px; top: 105px; z-index: 90; max-width: 420px; padding: 14px 48px 14px 18px; background: var(--ink); color: white; border-radius: 14px; box-shadow: var(--shadow); animation: toastIn .35s var(--ease); }
.toast-success { border-left: 5px solid #55c28c; }
.toast-error { border-left: 5px solid var(--coral); }
.toast-info { border-left: 5px solid var(--blue); }
.toast button { position: absolute; right: 10px; top: 5px; background: none; border: 0; color: white; font-size: 1.5rem; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

/* Forms and authentication */
.auth-page { min-height: 100vh; }
.auth-shell { width: min(1180px, calc(100% - 32px)); min-height: calc(100vh - 130px); margin: 38px auto 70px; display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.auth-copy { background: var(--ink); color: white; padding: clamp(36px, 6vw, 76px); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-copy::after { content: "M"; position: absolute; right: -80px; bottom: -130px; color: rgba(255,255,255,.045); font-family: Georgia, serif; font-size: 32rem; line-height: 1; }
.auth-copy h1 { font-size: clamp(3.4rem, 6vw, 6.2rem); margin: 24px 0; position: relative; z-index: 1; }
.auth-copy p { color: #bdc5d2; max-width: 390px; position: relative; z-index: 1; }
.auth-quote { position: relative; z-index: 1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); font-family: Georgia, serif; font-size: 1.35rem; }
.auth-form-wrap { padding: clamp(34px, 7vw, 90px); align-self: center; }
.auth-form-wrap h2 { margin: 0 0 7px; font-size: 2rem; letter-spacing: -.04em; }
.auth-form-wrap > p { margin: 0 0 30px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { font-size: .81rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf6; padding: 12px 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,103,209,.1); }
.field small { color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { min-height: 58px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; cursor: pointer; font-weight: 750; background: #fbfaf6; }
.choice input:checked + label { background: #e8f0fc; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-error { background: #fff0ed; color: var(--danger); border: 1px solid #f3c4bc; border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; }
.auth-switch { text-align: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.auth-switch a { color: var(--blue); font-weight: 800; }
.demo-box { margin-top: 25px; padding: 15px; background: var(--paper); border-radius: 14px; font-size: .79rem; color: var(--muted); }
.demo-box strong { color: var(--ink); }

/* Page and teacher directory */
.page-hero { padding: 90px 0 55px; }
.page-hero-grid { width: var(--container); margin: auto; display: grid; grid-template-columns: 1fr .45fr; gap: 50px; align-items: end; }
.page-hero h1 { font-size: clamp(4rem, 8vw, 8.5rem); margin: 15px 0 0; }
.page-hero p { font-size: 1.1rem; color: var(--muted); margin: 0 0 12px; }
.filter-bar { width: var(--container); margin: 0 auto 40px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.filter-bar select, .filter-bar input { width: 100%; min-height: 48px; border: 0; background: var(--paper); border-radius: 11px; padding: 10px 13px; }
.directory-grid { width: var(--container); margin: 0 auto 100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.directory-card { min-height: 310px; display: grid; grid-template-columns: .45fr .55fr; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.directory-card .teacher-portrait { height: 100%; min-height: 310px; }
.directory-card .teacher-body { display: flex; flex-direction: column; }
.directory-card .teacher-footer { margin-top: auto; }
.empty-state { grid-column: 1/-1; padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.teacher-detail { width: var(--container); margin: 75px auto 100px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 55px; align-items: start; }
.profile-panel { position: sticky; top: 112px; background: var(--accent); border-radius: var(--radius-lg); padding: 30px; min-height: 510px; display: flex; flex-direction: column; overflow: hidden; }
.profile-panel::after { content: attr(data-initials); position: absolute; bottom: -50px; right: -25px; font: 15rem/1 Georgia, serif; color: rgba(255,255,255,.28); letter-spacing: -.1em; }
.profile-panel .avatar { width: 100px; height: 100px; font-size: 1.4rem; position: relative; z-index: 1; }
.profile-panel h1 { font-family: Georgia, serif; font-size: 3.4rem; line-height: .94; letter-spacing: -.05em; margin: auto 0 10px; position: relative; z-index: 1; }
.profile-panel p { margin: 0; position: relative; z-index: 1; font-weight: 750; }
.profile-content h2 { font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; margin: 0 0 20px; }
.profile-content > p { color: var(--muted); font-size: 1.08rem; max-width: 700px; }
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; margin: 34px 0; }
.profile-facts div { padding: 20px; border-left: 1px solid var(--line); }
.profile-facts div:first-child { border-left: 0; }
.profile-facts strong { display: block; font-size: 1.3rem; }
.profile-facts small { color: var(--muted); }
.slot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 34px; }
.slot { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.slot span { display: block; font-weight: 800; }
.slot small { color: var(--muted); }

/* Request + matching */
.request-layout { width: min(1120px, calc(100% - 40px)); margin: 70px auto 110px; display: grid; grid-template-columns: .54fr 1fr; gap: 55px; align-items: start; }
.request-aside { position: sticky; top: 116px; }
.request-aside h1 { font-family: Georgia, serif; font-size: clamp(3.3rem, 5.5vw, 5.8rem); line-height: .91; letter-spacing: -.055em; font-weight: 500; margin: 18px 0 25px; }
.request-aside p { color: var(--muted); }
.progress-list { list-style: none; padding: 25px 0 0; margin: 35px 0 0; border-top: 1px solid var(--line); }
.progress-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 8px 0; font-size: .87rem; }
.progress-list b { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: .72rem; }
.progress-list li.active { color: var(--ink); font-weight: 800; }
.progress-list li.active b { background: var(--coral); border-color: var(--coral); }
.request-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(25px, 5vw, 55px); box-shadow: 0 25px 70px rgba(23,35,59,.06); }
.request-form-card h2 { margin: 0 0 8px; font-size: 1.9rem; letter-spacing: -.04em; }
.request-form-card > p { margin: 0 0 30px; color: var(--muted); }
.match-results { width: min(1120px, calc(100% - 40px)); margin: 70px auto 120px; }
.match-results-head { display: grid; grid-template-columns: 1fr .6fr; gap: 30px; align-items: end; margin-bottom: 40px; }
.match-results-head h1 { font-family: Georgia, serif; font-size: clamp(3.3rem, 6vw, 6.5rem); line-height: .91; letter-spacing: -.055em; font-weight: 500; margin: 17px 0 0; }
.match-results-head p { color: var(--muted); }
.match-result-card { display: grid; grid-template-columns: 135px 1fr 180px; gap: 25px; align-items: center; padding: 24px; margin: 14px 0; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.match-result-card:first-of-type { border-color: var(--coral); box-shadow: 0 18px 45px rgba(255,107,74,.11); }
.match-score-ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--coral) calc(var(--score) * 1%), var(--paper-deep) 0); position: relative; }
.match-score-ring::before { content: ""; position: absolute; inset: 9px; background: var(--white); border-radius: inherit; }
.match-score-ring span { position: relative; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 600; }
.match-main h2 { margin: 0 0 3px; font-size: 1.55rem; }
.match-main > p { margin: 0 0 14px; color: var(--muted); }
.reason-list { display: flex; gap: 7px; flex-wrap: wrap; }
.match-actions { text-align: right; }
.match-actions strong { display: block; font-size: 1.2rem; margin-bottom: 12px; }

/* Dashboards */
.dashboard-body { background: #f2eee5; }
.dashboard-body .site-footer { display: none; }
.dashboard-shell { width: min(1440px, calc(100% - 32px)); margin: 30px auto 70px; display: grid; grid-template-columns: 245px 1fr; gap: 25px; align-items: start; }
.dashboard-sidebar { position: sticky; top: 110px; min-height: calc(100vh - 140px); padding: 24px; border-radius: 24px; background: var(--ink); color: white; display: flex; flex-direction: column; }
.user-chip { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.user-chip .avatar { width: 43px; height: 43px; background: var(--coral); color: var(--ink); font-size: .72rem; }
.user-chip strong { display: block; font-size: .87rem; }
.user-chip small { display: block; color: #9ba7b8; font-size: .72rem; }
.dashboard-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.dashboard-nav a { padding: 11px 13px; border-radius: 11px; color: #aeb8c8; font-size: .88rem; font-weight: 700; }
.dashboard-nav a:hover, .dashboard-nav a.active { background: rgba(255,255,255,.1); color: white; }
.dashboard-nav a.active::before { content: "•"; color: var(--coral); margin-right: 8px; }
.dashboard-sidebar .sidebar-help { margin-top: auto; padding: 16px; background: rgba(255,255,255,.07); border-radius: 15px; font-size: .78rem; color: #b5bfce; }
.dashboard-sidebar .sidebar-help a { color: white; font-weight: 800; }
.dashboard-main { min-width: 0; }
.dashboard-head { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.dashboard-head h1 { font-family: Georgia, serif; font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: 1; font-weight: 500; letter-spacing: -.05em; margin: 0; }
.dashboard-head p { margin: 5px 0 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.dash-card { grid-column: span 4; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 23px; min-width: 0; }
.dash-card-wide { grid-column: span 8; }
.dash-card-full { grid-column: 1/-1; }
.dash-card h2 { font-size: 1rem; margin: 0 0 18px; letter-spacing: -.02em; }
.metric { display: flex; justify-content: space-between; align-items: end; }
.metric strong { font-family: Georgia, serif; font-size: 3rem; line-height: 1; font-weight: 500; }
.metric span { font-size: .75rem; color: var(--success); background: #e0f2e9; padding: 4px 8px; border-radius: 999px; }
.dash-label { color: var(--muted); font-size: .78rem; margin-top: 9px; }
.next-lesson { background: var(--ink); color: white; position: relative; overflow: hidden; }
.next-lesson::after { content: ""; position: absolute; width: 100px; height: 100px; border: 22px solid var(--yellow); border-radius: 50%; right: -35px; top: -40px; opacity: .9; }
.next-lesson h2 { color: #aeb8c8; }
.next-lesson h3 { font-family: Georgia, serif; font-size: 2.1rem; line-height: 1; margin: 25px 0 8px; position: relative; z-index: 1; }
.next-lesson p { color: #b7c0cf; margin: 0 0 20px; }
.lesson-list { display: flex; flex-direction: column; }
.lesson-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 15px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.lesson-item:first-child { border-top: 0; padding-top: 0; }
.lesson-date { width: 58px; height: 58px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; text-align: center; font-weight: 850; line-height: 1.05; font-size: .82rem; }
.lesson-item h3 { margin: 0; font-size: .98rem; }
.lesson-item p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: .69rem; font-weight: 850; white-space: nowrap; }
.status-confirmed, .status-paid, .status-active, .status-open { color: #146143; background: #daf0e4; }
.status-pending, .status-matched { color: #806008; background: #f6e9b8; }
.status-cancelled, .status-failed, .status-suspended { color: #9d352b; background: #f9ddd7; }
.status-completed { color: #174b99; background: #dce8fa; }
.status-refunded { color: #704f08; background: #f4e8b8; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-action { min-height: 120px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; transition: background .2s, color .2s; }
.quick-action span { font-size: 1.4rem; }
.quick-action:hover { background: var(--ink); color: white; }
.request-summary { padding: 16px 0; border-top: 1px solid var(--line); }
.request-summary:first-of-type { border-top: 0; }
.request-summary-head { display: flex; justify-content: space-between; gap: 15px; }
.request-summary h3 { margin: 0; font-size: 1rem; }
.request-summary p { color: var(--muted); margin: 5px 0 10px; font-size: .84rem; }
.balance-card { background: var(--yellow); }
.balance-card .metric strong { font-size: 2.6rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .83rem; }
.data-table th { text-align: left; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.inline-form { display: flex; align-items: center; gap: 7px; }
.inline-form select, .inline-form input { min-height: 36px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 8px; max-width: 150px; }
.panel-section { margin-top: 20px; }
.panel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 17px; }
.panel-toolbar h2 { margin: 0; font-size: 1.3rem; }
.availability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.availability-item { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.availability-item strong { display: block; }
.availability-item small { color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-stat { background: var(--white); border: 1px solid var(--line); border-radius: 17px; padding: 19px; }
.admin-stat strong { font-family: Georgia, serif; display: block; font-size: 2.4rem; line-height: 1; }
.admin-stat small { color: var(--muted); }

/* Checkout */
.checkout-layout { width: min(1020px, calc(100% - 40px)); margin: 70px auto 110px; display: grid; grid-template-columns: 1fr .7fr; gap: 24px; align-items: start; }
.checkout-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(25px, 5vw, 48px); }
.checkout-card h1 { font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; font-weight: 500; letter-spacing: -.05em; margin: 14px 0 30px; }
.order-summary { position: sticky; top: 112px; background: var(--ink); color: white; }
.order-summary h2 { margin-top: 0; }
.order-line { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.13); }
.order-line small { color: #aeb7c7; }
.order-total { font-family: Georgia, serif; font-size: 2rem; }
.secure-note { color: #aeb7c7; font-size: .76rem; margin-top: 20px; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr .82fr; gap: 30px; }
  .hero-copy h1 { font-size: clamp(4rem, 8.5vw, 7rem); }
  .hero-visual { min-height: 490px; }
  .teacher-card { grid-column: span 6; }
  .teacher-card:nth-child(2) { transform: none; }
  .teacher-card:nth-child(2):hover { transform: translateY(-7px); }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card { grid-template-columns: .35fr .65fr; }
  .dash-card { grid-column: span 6; }
  .dash-card-wide { grid-column: span 12; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .availability-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --container: min(100% - 32px, 720px); }
  .site-header { height: 68px; padding: 0 14px; border-radius: 19px; }
  .brand img { width: 38px; height: 38px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .main-nav { position: fixed; top: 96px; left: 16px; right: 16px; padding: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .22s var(--ease); }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 9px 6px; }
  .main-nav .button { margin-top: 5px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 78px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 20px; }
  .hero { min-height: auto; padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(4.2rem, 18vw, 7rem); }
  .hero-visual { min-height: 500px; margin-top: 25px; }
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
  .proof-strip > div:first-child { grid-column: 1/-1; border-bottom: 1px solid var(--line); }
  .step-row { grid-template-columns: 55px 1fr; }
  .step-row p { grid-column: 2; }
  .ai-frame { grid-template-columns: 1fr; }
  .ai-copy { min-height: 480px; }
  .match-demo { min-height: 470px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .price-card:first-child { border-top: 0; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { min-height: 420px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .teacher-detail { grid-template-columns: 1fr; }
  .profile-panel { position: relative; top: auto; min-height: 430px; }
  .request-layout { grid-template-columns: 1fr; }
  .request-aside { position: relative; top: auto; }
  .progress-list { display: none; }
  .match-results-head { grid-template-columns: 1fr; }
  .match-result-card { grid-template-columns: 105px 1fr; }
  .match-actions { grid-column: 2; text-align: left; }
  .match-score-ring { width: 92px; height: 92px; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: relative; top: auto; min-height: auto; }
  .dashboard-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .dashboard-sidebar .sidebar-help { margin-top: 20px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: relative; top: auto; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 24px); }
  .site-header { width: calc(100% - 20px); top: 10px; margin-top: 10px; }
  .brand { font-size: 1.14rem; }
  .brand img { width: 35px; height: 35px; }
  .hero { padding-top: 52px; }
  .hero-copy h1 { font-size: clamp(3.7rem, 18vw, 5.5rem); line-height: .88; }
  .hero-intro::before { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-note { max-width: none; text-align: center; }
  .hero-visual { min-height: 430px; }
  .journey-board { border-radius: 150px 150px 25px 25px; }
  .journey-label { left: 25px; top: 42px; }
  .journey-card { min-width: 185px; padding: 11px; }
  .journey-card .avatar { width: 40px; height: 40px; }
  .journey-card-one { top: 130px; left: 14px; }
  .journey-card-two { right: 14px; bottom: 36px; }
  .journey-match { width: 90px; }
  .journey-match b { font-size: 1.5rem; }
  .proof-strip { margin-bottom: 48px; }
  .proof-strip > div { padding: 15px 8px; min-height: 95px; }
  .proof-strip strong { font-size: 1.65rem; }
  .proof-strip small { font-size: .67rem; }
  .steps-section { border-radius: 30px 30px 0 0; }
  .step-row { padding: 25px 0; grid-template-columns: 38px 1fr; gap: 12px; }
  .teacher-grid { display: block; }
  .teacher-card { margin-bottom: 16px; }
  .teacher-portrait { height: 210px; }
  .ai-section { padding: 70px 0; }
  .ai-frame { width: calc(100% - 20px); }
  .ai-copy { min-height: auto; }
  .match-demo { margin: 10px; padding: 18px; min-height: 420px; }
  .match-person { grid-template-columns: auto 1fr; }
  .match-score { grid-column: 2; font-size: 1.2rem; }
  .site-footer { margin: 35px 8px 8px; padding: 38px 24px; border-radius: 28px; }
  .footer-lead { display: block; padding-bottom: 45px; }
  .round-link { width: 135px; height: 135px; margin-top: 35px; }
  .footer-base { grid-template-columns: 1fr; }
  .footer-base > div { justify-content: flex-start; flex-wrap: wrap; }
  .footer-credit { display: block; }
  .footer-credit span { display: block; margin-top: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .auth-shell { width: calc(100% - 20px); margin-top: 25px; }
  .auth-copy, .auth-form-wrap { padding: 30px 24px; }
  .auth-copy { min-height: 350px; }
  .choice-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 65px 0 35px; }
  .page-hero h1 { font-size: 4.2rem; }
  .filter-bar { grid-template-columns: 1fr; }
  .directory-card { display: block; }
  .directory-card .teacher-portrait { min-height: 220px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts div { border-left: 0; border-top: 1px solid var(--line); }
  .profile-facts div:first-child { border-top: 0; }
  .slot-list { grid-template-columns: 1fr; }
  .request-layout, .match-results, .checkout-layout { width: calc(100% - 20px); margin-top: 45px; }
  .request-form-card { padding: 25px 20px; }
  .match-result-card { grid-template-columns: 1fr; text-align: center; }
  .match-score-ring { margin: auto; }
  .match-actions { grid-column: auto; text-align: center; }
  .reason-list { justify-content: center; }
  .dashboard-shell { width: calc(100% - 20px); margin-top: 20px; }
  .dashboard-sidebar { padding: 17px; }
  .dashboard-nav { grid-template-columns: repeat(2, 1fr); }
  .dashboard-head { align-items: flex-start; flex-direction: column; padding: 15px 3px 22px; }
  .dashboard-grid { display: block; }
  .dash-card { margin-bottom: 12px; }
  .lesson-item { grid-template-columns: 58px 1fr; }
  .lesson-item .status { grid-column: 2; justify-self: start; }
  .quick-actions { grid-template-columns: 1fr; }
  .availability-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .panel-toolbar { align-items: flex-start; flex-direction: column; }
  .toast { right: 10px; left: 10px; top: 90px; max-width: none; }
}

@media (max-width: 360px) {
  .hero-copy h1 { font-size: 3.35rem; }
  .availability-grid, .admin-stats { grid-template-columns: 1fr; }
  .dashboard-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
