:root {
  --ink: #232823;
  --ink-soft: #505a53;
  --paper: #fffafa;   /* Snow White — the global page colour */
  --paper-2: #ffffff;
  --line: #e9e6df;
  --line-strong: #dcd8cf;
  --hover: #f6f4ef;
  --muted: #838b85;
  --accent: #14614a;
  --accent-2: #0e4a39;
  --accent-soft: #edf3ef;
  --clay: #c4694f;
  --clay-soft: #fdf4ef;
  --cream: #f4f0e6;
  --gold: #b8860b;
  --danger: #a4161a;
  --danger-bg: #fff1ef;
  --ok: #14614a;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(35, 40, 35, 0.03), 0 16px 40px -32px rgba(35, 40, 35, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.mt { margin-top: 1.5rem; }
.mt-2 { margin-top: 2.5rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- logo lockup ---------- */
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; display: block; flex: none; border-radius: 50%; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark .name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.brand .wordmark .sub {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.28rem;
}
.inline-form { display: inline; margin: 0; }

/* ---------- hamburger + side panel ---------- */
.menu-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper-2); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.menu-btn:hover { background: var(--hover); border-color: var(--line-strong); }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-btn.inline { display: none; }
.menu-btn.floating {
  position: fixed; top: 14px; left: 14px; z-index: 60;
  background: var(--paper-2); box-shadow: var(--shadow);
}
body.is-student { padding-top: 4.35rem; }
body.is-student footer { padding-bottom: 5.5rem; }

/* ---------- floating notifications (students) ---------- */
.notif { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
.notif-btn {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--paper-2); cursor: pointer;
  box-shadow: 0 10px 26px -16px rgba(17, 24, 39, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.notif-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(17, 24, 39, 0.5); border-color: var(--line-strong); }
.notif-icon { width: 26px; height: 26px; fill: var(--ink); display: block; }
.notif-badge {
  position: absolute; top: 6px; right: 5px; min-width: 19px; height: 19px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0; border: 2px solid var(--paper-2);
}
.notif-badge[hidden] { display: none; }
.notif-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(368px, calc(100vw - 32px)); max-height: min(68vh, 520px); overflow-y: auto;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 28px 70px -28px rgba(17, 24, 39, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.notif.open .notif-panel { opacity: 1; visibility: visible; transform: none; }
.notif-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.8rem 1rem; background: var(--paper-2); border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.notif-mark {
  border: none; background: none; cursor: pointer; padding: 0.15rem 0.2rem;
  font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--accent);
}
.notif-mark:hover { text-decoration: underline; }
.notif-list { padding: 0.4rem; }
.notif-item {
  display: flex; gap: 0.6rem; padding: 0.7rem 0.75rem; border-radius: 10px;
  color: inherit; text-decoration: none; align-items: flex-start;
}
.notif-item:hover { background: var(--hover); text-decoration: none; }
.notif-mark-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 0.42rem; flex: none; opacity: 0; }
.notif-item.unread .notif-mark-dot { opacity: 1; }
.notif-text { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.notif-title { font-size: 0.88rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.notif-body { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-time { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.notif-empty { padding: 1.1rem 1rem; margin: 0; font-size: 0.86rem; color: var(--muted); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(17, 24, 39, 0.42);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 80;
  width: min(320px, 84vw);
  display: flex; flex-direction: column;
  padding: 1.1rem 1.1rem 1.75rem;
  background: var(--paper); border-right: 1px solid var(--line);
  box-shadow: 0 20px 60px -30px rgba(17, 24, 39, 0.45);
  transform: translateX(-102%); visibility: hidden;
  transition: transform 0.22s ease, visibility 0.22s ease;
  overflow-y: auto;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.4rem; }
.drawer-close {
  border: none; background: none; cursor: pointer; color: var(--muted);
  font-size: 1.6rem; line-height: 1; padding: 0.15rem 0.5rem; border-radius: 8px;
}
.drawer-close:hover { background: var(--hover); color: var(--ink); }
.drawer-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.drawer-nav > a {
  display: block; padding: 0.72rem 0.8rem; border-radius: 10px;
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 600;
}
.drawer-nav > a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.drawer-nav > a.active { background: var(--hover); color: var(--ink); }
.drawer-foot { margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.drawer-foot .btn { margin-top: 0.15rem; }
.drawer-who { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.85rem; font-size: 0.82rem; color: var(--muted); }
.drawer-who strong { color: var(--ink); font-size: 0.9rem; }
body.menu-open { overflow: hidden; }

.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-brand img { width: 26px; height: 26px; border-radius: 8px; display: block; }
.footer-brand strong { color: var(--ink); font-size: 0.95rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 250, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.nav { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.nav a { padding: 0.45rem 0.7rem; border-radius: 8px; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.nav a:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.nav a.active { color: var(--accent-2); background: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; letter-spacing: 0.005em; font-size: 0.92rem; cursor: pointer;
  background: var(--ink); color: #ffffff;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #101512; color: #ffffff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); color: #ffffff; }
.btn.accent:hover { background: var(--accent-2); color: #ffffff; }
.btn.ghost { background: #ffffff; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { background: var(--danger); color: #ffffff; }
.btn.danger:hover { background: #8a1215; color: #ffffff; }
.btn.sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 3rem; position: relative; overflow: hidden; }
.hero-logo { width: 68px; height: 68px; display: block; border-radius: 18px; margin-bottom: 1.25rem; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  border: 1px solid #cfe0d7; background: #eef6f2; padding: 0.3rem 0.7rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 54ch; color: var(--ink-soft); }
.hero .cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.fee-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.fee-card .price { font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; color: var(--ink); }
.fee-card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.fee-card li { display: flex; gap: 0.6rem; padding: 0.45rem 0; border-top: 1px dashed var(--line); font-size: 0.94rem; color: var(--ink-soft); }
.fee-card li:first-child { border-top: none; }
.fee-card li::before { content: "—"; color: var(--accent); }

/* ---------- no refund band ---------- */
.norefund {
  background: #9b2226; color: #fff; text-align: center;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  font-size: 0.74rem; padding: 0.62rem 1rem;
}
.norefund strong { text-decoration: underline; text-underline-offset: 3px; }
.norefund a { color: #ffffff; text-decoration: underline; }
.notice-box {
  border: 2px solid var(--danger); background: var(--danger-bg); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; color: #6d1114; font-size: 0.95rem;
}
.notice-box h4 { color: var(--danger); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin-bottom: 0.4rem; font-family: inherit; }
.notice-box p:last-child { margin-bottom: 0; color: #6d1114; }

/* ---------- sections & cards ---------- */
section { padding: 3rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.card h3 { margin-bottom: 0.35rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.step-num { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 0.78rem; color: var(--accent); font-weight: 500; letter-spacing: 0.12em; }

/* ---------- forms ---------- */
label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 0.78rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #ffffff; font: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 97, 74, 0.09);
}
textarea { resize: vertical; min-height: 110px; }
.field + .field { margin-top: 0.9rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); }
.check input { margin-top: 0.25rem; width: 1rem; height: 1rem; flex: none; }
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }

/* ---------- flash ---------- */
.flash { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.92rem; margin-bottom: 1.25rem; border: 1px solid; }
.flash.ok { background: #ecf7f1; border-color: #bfdccd; color: #0b4a38; }
.flash.err { background: var(--danger-bg); border-color: #e8c3c0; color: #7d1215; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.24rem 0.7rem; border-radius: 999px;
  background: var(--hover); color: var(--ink-soft); white-space: nowrap;
}
.badge.ok { background: var(--accent-soft); color: var(--accent-2); }
.badge.warn { background: #faf1dc; color: #7d5a10; }
.badge.err { background: #fbeeec; color: #92302c; }
.badge.info { background: #eff3ef; color: #43544a; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.stat { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 0.95rem 1.1rem; }
.stat .n { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.6rem; line-height: 1.15; font-weight: 500; }
.stat .l { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- app shell ---------- */
.apphead { padding: 2rem 0 1rem; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin: 1.25rem 0 1.5rem; overflow-x: auto; }
.tabs a { padding: 0.6rem 0.9rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- lessons ---------- */
.lesson-item {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1rem 1.15rem; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 0.6rem; transition: border-color 0.15s, transform 0.1s;
}
.lesson-item:hover { border-color: var(--line-strong); text-decoration: none; }
.lesson-item h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.lesson-item .meta { font-size: 0.82rem; color: var(--muted); }
.lesson-notes { white-space: pre-wrap; font-size: 1rem; line-height: 1.75; color: #1f2937; }
.lesson-notes p { color: inherit; }
.video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; margin: 1rem 0; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-el { width: 100%; border-radius: 12px; background: #000; }
.file-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 0.5rem; font-size: 0.9rem; background: var(--paper-2); }

/* ---------- Q&A ---------- */
.q { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: 0.75rem; }
.q.highlight { animation: flashbg 2s ease; }
@keyframes flashbg { from { background: #eef6f2; } to { background: var(--paper-2); } }
.q-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; margin-bottom: 0.35rem; }
.q-who { font-weight: 700; font-size: 0.88rem; }
.q-body { white-space: pre-wrap; margin: 0; color: #1f2937; }
.q-meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.answers { margin-top: 0.85rem; padding-left: 0.9rem; border-left: 2px solid #e5e7eb; }
.answer { padding: 0.55rem 0; }
.answer + .answer { border-top: 1px dashed var(--line); }
.answer .who { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.answer .when { font-size: 0.72rem; color: var(--muted); margin-left: 0.4rem; }
.answer p { margin: 0.2rem 0 0; color: #1f2937; white-space: pre-wrap; }
.reply-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.reply-form input { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #17a673; box-shadow: 0 0 0 0 rgba(23,166,115,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(23,166,115,0); } 100% { box-shadow: 0 0 0 0 rgba(23,166,115,0); } }

/* ---------- footer ---------- */
footer.site-footer {
  position: relative; overflow: hidden;
  background: #f8f8ff; border-top: 1px solid #e8e8f2;
  margin-top: 4.5rem; padding: 3.25rem 0 0;
  font-size: 0.85rem; color: #6f7280;
}
footer.site-footer::before {
  content: ""; position: absolute; top: -170px; left: 50%;
  width: min(800px, 130%); height: 330px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20, 97, 74, 0.1), rgba(20, 97, 74, 0));
  pointer-events: none;
}
.site-footer .wrap { position: relative; }

.foot-top { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2rem; align-items: end; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.foot-brand img { width: 26px; height: 26px; border-radius: 50%; display: block; }
.foot-brand strong { color: #2f332f; font-size: 0.95rem; font-weight: 500; }
.foot-title {
  margin: 0.85rem 0 0.3rem; font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem); font-weight: 500; line-height: 1.2;
  letter-spacing: -0.02em; color: #2e322e;
}
.foot-line { margin: 0; max-width: 44ch; font-size: 0.88rem; line-height: 1.7; color: #787c88; }

.foot-cta { display: flex; gap: 0.55rem; justify-content: flex-end; flex-wrap: wrap; }
.foot-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.78rem 1.35rem; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  border: 1px solid transparent; transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.foot-btn.primary { background: var(--accent); color: #ffffff; }
.foot-btn.primary:hover { background: var(--accent-2); color: #ffffff; text-decoration: none; }
.foot-btn.quiet { background: transparent; border-color: #dcdce8; color: #3f4350; }
.foot-btn.quiet:hover { background: #ffffff; color: #3f4350; text-decoration: none; }
.foot-btn:active { transform: translateY(1px); }

.foot-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid #e9e9f2;
}
.foot-col { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-head { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9b9eaa; margin-bottom: 0.35rem; }
.foot-col a {
  position: relative; width: fit-content; font-size: 0.85rem; color: #5b5f6c;
  transition: color 0.15s ease;
}
.foot-col a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.22s ease;
}
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-col a:hover::after { width: 100%; }
.foot-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.foot-facts li { position: relative; padding-left: 0.9rem; font-size: 0.85rem; color: #5b5f6c; }
.foot-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); opacity: 0.45;
}

.foot-wordmark {
  margin: 2.75rem 0 -0.08em; text-align: center;
  font-family: "Iowan Old Style", Palatino, Georgia, serif; font-weight: 500;
  font-size: clamp(3.4rem, 12vw, 9rem); line-height: 0.8; letter-spacing: -0.045em;
  color: #e9e9f5; user-select: none; pointer-events: none; white-space: nowrap;
}

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem 1.5rem;
  flex-wrap: wrap; padding: 1.15rem 0 1.35rem;
  border-top: 1px solid #e9e9f2; font-size: 0.75rem; color: #969aa6;
}
.foot-bottom-links { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot-bottom a { color: #6c7080; }
.foot-bottom a:hover { color: var(--accent); text-decoration: none; }
.foot-sep { color: #c6c8d3; }

/* legal */
.legal h2 { margin-top: 2.2rem; }
.legal ul { color: var(--ink-soft); padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .topbar .nav { display: none; }
  .menu-btn.inline { display: inline-flex; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap, .narrow { width: min(1120px, 100% - 1.9rem); }
  section { padding: 2.25rem 0; }
  .hero { padding-top: 2rem; }
  .norefund { font-size: 0.66rem; letter-spacing: 0.03em; line-height: 1.5; padding: 0.55rem 0.85rem; }
  .fee-card, .card, .form-card { padding: 1.15rem; }
  .fee-card .price { font-size: 2.1rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .n { font-size: 1.35rem; }
  .lesson-item { flex-direction: column; align-items: stretch; }
  .lesson-item .btn { width: 100%; }
  .q-head { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .reply-form { flex-direction: column; }
  .reply-form .btn { width: 100%; }
  .row { gap: 0.6rem; }
  .row > input, .row > select { min-width: 0; flex: 1 1 100%; }
  .btn { min-height: 42px; }
  .btn.sm { min-height: 36px; }
  .tabs { margin: 1rem 0 1.25rem; }
  .tabs a { padding: 0.55rem 0.7rem; font-size: 0.88rem; }
  .auth .side { padding: 1.75rem 1.25rem; }
  .notif { right: 12px; bottom: 12px; }
  .notif-btn { width: 50px; height: 50px; }
  .notif-icon { width: 24px; height: 24px; }
  footer { margin-top: 2.5rem; padding: 2rem 0; }
  table { font-size: 0.85rem; }
}
@media (max-width: 340px) {
  .brand .wordmark .sub { letter-spacing: 0.18em; }
  .stats { grid-template-columns: 1fr; }
}

/* auth split */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - 62px); }
.auth .side { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.auth .panel { background: #ffffff; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .side:first-child { padding-bottom: 1rem; } .auth .panel { border-left: none; border-top: 1px solid var(--line); } }

/* ============================================================
   Landing page — soft, quiet, visual first
   ============================================================ */
.lp { overflow-x: clip; }
.lp-wrap { width: min(1060px, 100% - 2.5rem); margin-inline: auto; }
.lp-hero { padding: clamp(1.5rem, 3.4vw, 2.6rem) 0 clamp(0.5rem, 1.5vw, 1rem); }

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.15rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--line);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #63706a; font-weight: 500;
}
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.lp-stage {
  max-width: 820px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--cream);
  box-shadow: 0 30px 70px -50px rgba(35, 40, 35, 0.55);
}
.lp-stage img { display: block; width: 100%; height: auto; }
.lp-caption {
  margin: 0.85rem 0 0; text-align: center;
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.01em;
}

.lp-intro { max-width: 660px; margin: clamp(1.9rem, 4vw, 3rem) auto 0; text-align: center; }
.lp-intro h1 { margin: 0 0 0.5rem; font-size: clamp(2.2rem, 5.2vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; }
.lp-lede { font-size: clamp(1.02rem, 2vw, 1.18rem); color: #49534c; margin: 0 0 1rem; line-height: 1.55; }
.lp-body { font-size: 0.96rem; line-height: 1.85; color: #6b746d; margin: 0; }
.lp-note { font-size: 0.79rem; color: var(--muted); margin: 1.15rem 0 0; }
.lp-tiny { font-size: 0.76rem; margin: 0.85rem 0 0; text-align: center; color: rgba(255, 255, 255, 0.62); }
.lp-tiny a { color: rgba(255, 255, 255, 0.85); }

.lp-actions { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* quiet buttons — thin weight, no heavy shadows */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.82rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.lp-btn:hover { text-decoration: none; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn.primary { background: var(--accent); color: #ffffff; }
.lp-btn.primary:hover { background: var(--accent-2); }
.lp-btn.quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.lp-btn.quiet:hover { background: #ffffff; border-color: #c9c4b9; }
.lp-btn.light { background: #ffffff; color: var(--accent-2); }
.lp-btn.light:hover { background: #f3f6f2; }
.lp-btn.block { display: flex; width: 100%; }

/* sections */
.lp-section { padding: clamp(2rem, 4.5vw, 3.4rem) 0; }
.lp-label {
  margin: 0 0 0.7rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.lp-label.soft { color: rgba(255, 255, 255, 0.66); }
.lp-label.clay { color: var(--clay); }
.lp-section h2 { margin: 0 0 0.8rem; font-weight: 500; }

.lp-sheet {
  background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.lp-sheet.warm { background: #f6f8f4; border-color: #e6ece3; }

/* "What you will learn" — photo behind frosted glass */
.lp-photo {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 0; border-color: rgba(255, 255, 255, 0.4);
  background: #1d2b25; color: #ffffff;
  box-shadow: 0 34px 70px -38px rgba(18, 45, 35, 0.6);
}
.lp-photo::before {
  content: ""; position: absolute; inset: -7%; z-index: -2;
  background: url("/img/learn-students.jpg") center / cover no-repeat;
  filter: blur(3px) saturate(1.04) brightness(0.9);
  transform: scale(1.05);
}
.lp-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(172deg, rgba(9, 32, 25, 0.72) 0%, rgba(9, 32, 25, 0.4) 42%, rgba(7, 24, 19, 0.52) 100%);
}
.lp-photo-glass {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius-lg) - 1px);
  backdrop-filter: blur(9px) saturate(1.1);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
}
.lp-photo h2 { color: #ffffff; text-shadow: 0 1px 14px rgba(6, 22, 17, 0.4); }
.lp-photo .lp-body { color: rgba(255, 255, 255, 0.82); }
.lp-photo .lp-topics li {
  background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lp-photo .lp-topic { color: #ffffff; }

.lp-split { display: grid; grid-template-columns: 1.32fr 0.78fr; gap: 1.15rem; align-items: start; }
.lp-twins { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.lp-topics { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.lp-topics li {
  background: #fbfaf7; border: 1px solid #f0eee6; border-radius: 16px;
  padding: 1rem 1.1rem; font-size: 0.88rem; line-height: 1.7; color: #6b746d;
}
.lp-topic { display: block; margin-bottom: 0.2rem; font-size: 0.94rem; color: var(--ink); }

.lp-fee {
  background: var(--accent); color: #ffffff; border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  position: sticky; top: 88px;
}
.lp-fee-amount {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 500; line-height: 1.1;
  margin: 0.5rem 0 0.35rem; letter-spacing: -0.02em; color: #ffffff;
}
.lp-fee-note { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.68); }
.lp-fee .lp-btn.primary { background: #ffffff; color: var(--accent-2); margin-top: 1.5rem; }
.lp-fee .lp-btn.primary:hover { background: #f1f5f1; }

.lp-list { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.lp-list li {
  position: relative; padding-left: 1.35rem; margin-bottom: 0.62rem;
  font-size: 0.89rem; line-height: 1.65; color: #5f6862;
}
.lp-list li::before {
  content: ""; position: absolute; left: 0; top: 0.58em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.45;
}
.lp-fee .lp-list li { color: rgba(255, 255, 255, 0.82); }
.lp-fee .lp-list li::before { background: #ffffff; opacity: 0.5; }

.lp-quiet {
  margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid #eeebe4;
  font-size: 0.81rem; line-height: 1.7; color: var(--muted);
}

.lp-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.lp-steps li { background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.4rem; }
.lp-step { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--accent); }
.lp-steps h3 { margin: 0.85rem 0 0.35rem; font-size: 1.06rem; font-weight: 500; }
.lp-steps p { margin: 0; font-size: 0.88rem; line-height: 1.75; color: #6b746d; }

.lp-policy { background: #fdf8f2; border: 1px solid #ece1d4; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.lp-policy h2 { color: #40342c; }
.lp-policy .lp-body { color: #6f5f53; max-width: 74ch; }
.lp-accs { display: grid; gap: 0.55rem; margin-top: 1.5rem; max-width: 700px; }
.lp-accs details { background: #ffffff; border: 1px solid #efe5d8; border-radius: 14px; padding: 0.85rem 1.05rem; }
.lp-accs summary { cursor: pointer; list-style: none; font-size: 0.88rem; color: #5b4b41; }
.lp-accs summary::-webkit-details-marker { display: none; }
.lp-accs summary::after { content: "+"; float: right; color: #a68f7c; }
.lp-accs details[open] summary::after { content: "–"; }
.lp-accs p { margin: 0.7rem 0 0; font-size: 0.87rem; line-height: 1.8; color: #6f5f53; }

.lp-close { background: var(--accent); color: #ffffff; border-radius: 30px; padding: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.lp-close h2 { color: #ffffff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.lp-close p { color: rgba(255, 255, 255, 0.78); max-width: 44ch; margin: 0 auto 1.6rem; font-size: 0.95rem; }

@media (max-width: 900px) {
  .lp-split, .lp-twins { grid-template-columns: 1fr; }
  .lp-fee { position: static; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .lp-wrap { width: min(1060px, 100% - 1.9rem); }
  .lp-topics { grid-template-columns: 1fr; }
  .lp-stage { border-radius: 20px; }
  .lp-actions .lp-btn { flex: 1 1 100%; }
  .lp-sheet, .lp-policy { border-radius: 20px; }
  .lp-eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* ---------- landing header (no hamburger) ---------- */
.topbar.minimal .inner { padding: 0.85rem 0; }
.lp-header-actions { display: flex; align-items: center; gap: 1.35rem; }
.lp-header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.005em; line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.lp-header-btn:active { transform: translateY(1px); }
.lp-header-btn.solid { background: var(--accent); color: #ffffff; }
.lp-header-btn.solid:hover { background: var(--accent-2); color: #ffffff; text-decoration: none; }
.lp-header-btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.lp-header-btn.quiet:hover { background: #ffffff; border-color: #c9c4b9; color: var(--ink); text-decoration: none; }

/* ---------- swipe-up motion ---------- */
@keyframes lp-swipe-up {
  from { opacity: 0; transform: translate3d(0, 44px, 0); }
  60% { opacity: 1; }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.lp-eyebrow { animation: lp-swipe-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.lp-stage { animation: lp-swipe-up 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s both; }
.lp-caption { animation: lp-swipe-up 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.22s both; }
.lp-intro { animation: lp-swipe-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.26s both; }

.has-reveal [data-reveal] {
  opacity: 0; transform: translate3d(0, 52px, 0);
  transition: opacity 0.75s ease, transform 0.95s cubic-bezier(0.16, 0.84, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.has-reveal [data-reveal].is-in { opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .lp-eyebrow, .lp-stage, .lp-caption, .lp-intro { animation: none; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 780px) {
  .foot-top { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .foot-cta { justify-content: flex-start; }
  .foot-cta .foot-btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; margin-top: 2.25rem; padding-top: 1.9rem; }
  .foot-wordmark { margin-top: 2rem; text-align: left; font-size: 13.6vw; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .lp-header-actions { gap: 0.9rem; }
}
@media (max-width: 380px) {
  .foot-grid { grid-template-columns: 1fr; }
}


/* ---------- profile menu ---------- */
.profile { position: relative; }
.profile-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: none; background: none; cursor: pointer; border-radius: 999px;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid #d5e4db; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.avatar svg { width: 21px; height: 21px; display: block; }
.profile-btn:hover .avatar { background: #e2eee7; border-color: #c6dbcf; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  width: 236px; padding: 0.4rem;
  background: #ffffff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 50px -30px rgba(35, 40, 35, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.profile.open .profile-menu { opacity: 1; visibility: visible; transform: none; }
.profile-who {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.55rem 0.65rem 0.6rem; margin-bottom: 0.3rem; border-bottom: 1px solid var(--line);
}
.profile-who strong { font-size: 0.87rem; font-weight: 500; color: var(--ink); }
.profile-who span { font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.profile-menu a, .profile-logout {
  display: block; width: 100%; text-align: left; padding: 0.55rem 0.65rem;
  border: none; border-radius: 10px; background: none; font: inherit;
  font-size: 0.85rem; color: var(--ink-soft); cursor: pointer;
}
.profile-menu a:hover, .profile-logout:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.profile-menu form { margin: 0.25rem 0 0; padding-top: 0.25rem; border-top: 1px solid var(--line); }
.profile-logout { color: #92302c; }
.profile.floating { position: fixed; top: 14px; right: 14px; z-index: 61; }
.profile.floating .profile-btn {
  padding: 3px; background: var(--paper-2);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* drawer settings */
.drawer-settings {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.72rem 0.8rem; border-radius: 10px;
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 500;
}
.drawer-settings:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.drawer-settings .gear { width: 18px; height: 18px; fill: currentColor; opacity: 0.75; }

@media (max-width: 640px) {
  .profile-menu { right: -6px; }
  .profile.floating .profile-menu { right: 0; }
}
