/* =====================================================================
   Gotgrade design system
   Read: education marketplace for students + tutors, trust-first modern.
   Dials: VARIANCE 7 / MOTION 5 / DENSITY 4.
   Type: Cabinet Grotesk (display) + Satoshi (text), via Fontshare.
   Icons: Phosphor (web font).
   Shape rule: buttons + badges are full pill, cards + images 16px,
   inputs 10px. Nothing else.
   One accent: cobalt. Green / amber / red are status colors only.
   ===================================================================== */

:root {
  --bg: #f3f4f7;
  --surface: #fcfcfd;
  --surface-2: #e9ebf0;
  --ink: #0f1420;
  --ink-2: #485164;
  --ink-3: #6b7387;
  --line: #dde1e8;
  --brand: #2f4fd8;
  --brand-2: #2340b8;
  --brand-soft: #e3e8fb;
  --brand-ink: #f7f8ff;
  --ok: #17845a;   --ok-soft: #dff2e8;
  --warn: #9a6512; --warn-soft: #fbefd9;
  --bad: #c13b30;  --bad-soft: #fae4e1;
  --shadow: 0 1px 2px rgba(15,20,32,.04), 0 12px 32px -12px rgba(28,40,90,.18);
  --r-card: 16px;
  --r-input: 10px;
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* Dark tokens: follow the system unless the visitor picked Light; [data-mode="dark"] forces them */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --bg: #0b0e15;
    --surface: #131824;
    --surface-2: #1a2030;
    --ink: #e9ecf3;
    --ink-2: #a9b0c1;
    --ink-3: #8a92a6;
    --line: #262d3e;
    --brand: #6d84ff;
    --brand-2: #8c9dff;
    --brand-soft: #1b2247;
    --brand-ink: #0b0e15;
    --ok: #4fc48f;   --ok-soft: #10291e;
    --warn: #e2a84b; --warn-soft: #2c2210;
    --bad: #f07a6f;  --bad-soft: #321613;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-mode="dark"] {
    --bg: #0b0e15;
    --surface: #131824;
    --surface-2: #1a2030;
    --ink: #e9ecf3;
    --ink-2: #a9b0c1;
    --ink-3: #8a92a6;
    --line: #262d3e;
    --brand: #6d84ff;
    --brand-2: #8c9dff;
    --brand-soft: #1b2247;
    --brand-ink: #0b0e15;
    --ok: #4fc48f;   --ok-soft: #10291e;
    --warn: #e2a84b; --warn-soft: #2c2210;
    --bad: #f07a6f;  --bad-soft: #321613;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px -14px rgba(0,0,0,.6);
    color-scheme: dark;
}
:root[data-mode="light"] { color-scheme: light; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.ph, .ph-fill { font-size: 18px; line-height: 1; flex-shrink: 0; }

/* ---------- Type ---------- */
.h1, .h2, .h3, .logo, .dash-top h1, .auth-box h1, .auth-art h2, .kpi b, .wallet > b, .proof b, .q-price, .offer-price b {
  font-family: var(--display);
}
.h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: 18.5px; color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary, .btn-accent { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover, .btn-accent:hover { background: var(--brand-2); box-shadow: 0 8px 22px -10px var(--brand); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-light { background: var(--brand-ink); color: var(--brand); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .ph { transition: transform .25s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Nav ----------
   One line on desktop: logo | centered links | actions. 68px tall.
   Below 1024px the links + actions move into a drawer under the bar. */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.skip-link:focus { top: 12px; }
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled, .nav.open { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(28,40,90,.35); }
.nav-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.logo-mark .ph { font-size: 19px; }
.nav-links { display: flex; justify-content: center; gap: 4px; font-weight: 500; color: var(--ink-2); font-size: 14.5px; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.nav-login { font-weight: 600; font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-login:hover { color: var(--ink); background: var(--surface-2); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; }
.nav-toggle .ph { font-size: 22px; }

/* Account dropdown (native <details>, JS only closes it on outside click) */
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary { border-color: var(--ink-3); }
.acct summary .avatar { width: 32px; height: 32px; font-size: 12px; }
.acct summary .ph { font-size: 14px; color: var(--ink-3); transition: transform .25s var(--ease); }
.acct[open] summary .ph { transform: rotate(180deg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 6px; animation: popModal .2s var(--ease); }
.acct-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-head strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-head span { font-size: 12.5px; color: var(--ink-3); }
.acct-menu a, .acct-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-input); font-size: 14px; font-weight: 500; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg); color: var(--ink); }

/* Mobile drawer */
.mobile-menu { display: none; }
@media (max-width: 1024px) {
  .nav-bar { grid-template-columns: 1fr auto; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .mobile-menu { display: block; max-height: calc(100dvh - 68px); overflow-y: auto; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-links { display: grid; padding: 8px 16px; }
  .mobile-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mobile-links a .ph { color: var(--ink-3); }
  .mobile-actions { display: grid; gap: 10px; padding: 16px 16px 24px; }
  .mobile-user { display: flex; gap: 12px; align-items: center; padding-bottom: 6px; }
  .mobile-user strong { display: block; }
  body.menu-open { overflow: hidden; }
}
[id] { scroll-margin-top: 88px; }
.flash { margin-top: 20px; }
.alert-box .ph { font-size: 20px; }

/* ---------- Shared blocks ---------- */
.section { padding: 104px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.card-pad { padding: 26px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-wide { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.grid-half { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 1100px) { .grid-wide, .grid-half { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); } .section { padding: 72px 0; } }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge .ph, .badge .ph-fill { font-size: 13px; }
.badge-green { background: var(--ok-soft); color: var(--ok); }
.badge-amber { background: var(--warn-soft); color: var(--warn); }
.badge-red { background: var(--bad-soft); color: var(--bad); }
.badge-blue { background: var(--brand-soft); color: var(--brand); }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #f7f8fb; flex-shrink: 0; object-fit: cover; }
.avatar-lg { width: 60px; height: 60px; font-size: 20px; }
.av1 { background: #2f4fd8; } .av2 { background: #b4563a; } .av3 { background: #1d6f62; } .av4 { background: #6b4bb3; } .av5 { background: #a8355e; } .av6 { background: #4c5568; }
.stars { color: var(--ink); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; }
.stars .ph-fill { font-size: 14px; color: var(--brand); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.textarea { min-height: 150px; resize: vertical; }
.input-icon { position: relative; }
.input-icon .ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.input-icon .input { padding-left: 42px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--r-card); padding: 30px; text-align: center; color: var(--ink-2); background: var(--bg); cursor: pointer; transition: border-color .2s; }
.dropzone:hover { border-color: var(--brand); }
.dropzone .ph { font-size: 30px; color: var(--brand); display: block; margin: 0 auto 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--brand); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 16px; font-weight: 600; font-size: 14.5px; color: var(--ink-3); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =====================================================================
   HOME
   ===================================================================== */

/* Hero: asymmetric split, copy left, photo right */
.hero { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 64px; align-items: center; }
.hero .h1 { max-width: 12ch; }
.hero .lead { margin: 24px 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* Main photo + small offset inset photo. The inset sits on the page bg with a ring so it reads as a separate print. */
.hero-media { position: relative; padding: 0 0 36px 36px; }
.hero-main { width: 100%; height: clamp(340px, 58vh, 520px); object-fit: cover; object-position: 50% 40%; border-radius: var(--r-card); box-shadow: var(--shadow); }
.hero-inset { position: absolute; left: 0; bottom: 0; width: clamp(130px, 30%, 190px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-card); border: 6px solid var(--bg); box-shadow: var(--shadow); }
@media (max-width: 960px) {
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero .h1 { max-width: 14ch; }
  .hero-media { padding: 0; }
  .hero-main { height: clamp(240px, 56vw, 380px); }
  .hero-inset { display: none; }
}

/* Proof band: plain numbers, hairline separators, no cards */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof div { padding: 30px 28px; }
.proof div + div { border-left: 1px solid var(--line); }
.proof b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.proof span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(3) { border-left: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proof div { padding: 22px 16px; }
}

/* How it works: sticky intro + form on the left, step rail on the right */
.how { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 72px; align-items: start; }
.how-intro { position: sticky; top: 100px; }
.how-intro p { color: var(--ink-2); margin: 16px 0 28px; max-width: 42ch; }
.ask { padding: 24px; box-shadow: var(--shadow); }
.ask .textarea { min-height: 96px; }
.rail { position: relative; display: grid; gap: 14px; }
.rail-step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.rail-step:nth-child(2) { background: var(--brand-soft); border-color: transparent; }
.rail-step:nth-child(3) { background: var(--surface-2); border-color: transparent; }
.rail-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.rail-icon .ph { font-size: 26px; }
.rail-step p { color: var(--ink-2); margin-top: 6px; max-width: 46ch; }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; gap: 40px; } .how-intro { position: static; } }
@media (max-width: 640px) { .rail-step { grid-template-columns: 1fr; padding: 22px; gap: 14px; } }

/* Subjects bento: 1 large photo tile + 8 subject tiles = 9 cells, 4x3 */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 168px; gap: 14px; margin-top: 44px; }
.tile { border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tile .ph { font-size: 28px; color: var(--brand); }
.tile strong { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; display: block; }
.tile span { color: var(--ink-3); font-size: 13.5px; }
.tile-feature { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; display: grid; grid-template-columns: 100%; grid-template-rows: minmax(0,1fr) auto; background: #10162a; color: #eef1f8; border-color: transparent; }
.tile-feature img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.tile-feature .tile-body { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tile-feature strong { font-size: 24px; }
.tile-feature span { color: rgba(238,241,248,.72); }
.tile-feature .ph { color: #eef1f8; }
.tile-tint { background: var(--brand-soft); border-color: transparent; }
.tile-solid { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.tile-solid .ph, .tile-solid span { color: var(--brand-ink); opacity: .9; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 150px; } }
@media (max-width: 520px) { .tile-feature { grid-row: span 2; } .tile strong { font-size: 18px; } }

/* Live questions feed: rows, single bottom hairline */
.feed { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.feed-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 130px 96px 72px; gap: 20px; align-items: center; padding: 22px 26px; transition: background .2s; }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
.feed-row:hover { background: var(--bg); }
.feed-row h3 { font-size: 16.5px; font-weight: 700; }
.feed-row .meta { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.feed-row .badge { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.feed-row .price { font-family: var(--display); font-weight: 800; font-size: 22px; text-align: right; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); background: transparent; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 860px) {
  .feed-row { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px; }
  .feed-row > :nth-child(1) { grid-column: 1 / -1; }
  .feed-row > :nth-child(2) { grid-column: 1 / 2; }
  .feed-row .price { grid-row: 2; grid-column: 2; }
  .feed-row > :nth-child(3), .feed-row > :nth-child(4) { grid-column: 1 / 2; }
}

/* Tutors: horizontal scroll-snap row */
.tutor-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin-top: 40px; scrollbar-width: thin; }
.tutor { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tutor:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tutor img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.tutor h3 { font-size: 18px; margin-top: 16px; }
.tutor .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; }
.tutor-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.verified { display: inline-flex; gap: 5px; align-items: center; color: var(--ok); font-weight: 600; }

/* Tutor band: cobalt block, photo left, copy right */
.band { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: var(--brand); color: var(--brand-ink); border-radius: var(--r-card); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.band-copy { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.band-copy .eyebrow { color: var(--brand-ink); opacity: .8; }
.band-copy p { opacity: .85; margin: 16px 0 28px; max-width: 42ch; font-size: 17px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-bottom: 34px; }
.perks b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.perks span { font-size: 14px; opacity: .8; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } .band img { min-height: 260px; max-height: 320px; } .band-copy { padding: 36px 24px; } }

/* Testimonials: one large quote + two stacked */
.quotes { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 16px; margin-top: 44px; }
.quotes-side { display: grid; gap: 16px; }
.quote { padding: 30px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote p { font-size: 16.5px; line-height: 1.55; }
.quote-big { background: var(--surface-2); border-color: transparent; padding: 44px; }
.quote-big p { font-family: var(--display); font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.quote-by { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote-by strong { display: block; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } .quote-big { padding: 30px; } }

/* FAQ: heading column + accordion column */
.faq-wrap { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 72px; align-items: start; }
.faq-wrap .side p { color: var(--ink-2); margin-top: 16px; max-width: 36ch; }
.faq-wrap .side a { color: var(--brand); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; margin-top: 20px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 24px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq-q .ph { transition: transform .3s var(--ease); font-size: 20px; }
.faq-a { display: none; padding: 0 0 24px; color: var(--ink-2); max-width: 60ch; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .ph { transform: rotate(45deg); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Footer: same theme, tinted surface */
.footer { background: var(--surface-2); padding: 72px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 52px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   APP PAGES
   ===================================================================== */
.page-head { padding: 44px 0 30px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ph { font-size: 13px; }
.layout-side { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 28px; align-items: start; }
.layout-main { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .layout-side, .layout-main { grid-template-columns: minmax(0,1fr); } }
.sticky { position: sticky; top: 92px; }
@media (max-width: 960px) { .sticky { position: static; } }

.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.filter-group .check { margin-bottom: 8px; justify-content: space-between; }
.filter-group .check label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .input-icon { flex: 1; min-width: 220px; }
.toolbar .select { width: auto; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.pager a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.q-card { padding: 24px; display: block; transition: border-color .2s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.q-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.q-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.q-card h3 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.q-card p { color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.q-foot span { display: inline-flex; align-items: center; gap: 6px; }
.q-price { margin-left: auto; font-weight: 800; font-size: 22px; color: var(--ink); }

.offer { padding: 22px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: start; }
.offer + .offer { margin-top: 14px; }
.offer.best { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.offer-price { text-align: right; }
.offer-price b { font-size: 28px; font-weight: 800; display: block; letter-spacing: -.02em; }
.offer-msg { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.offer-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
@media (max-width: 640px) { .offer { grid-template-columns: auto 1fr; } .offer-price { grid-column: 1 / -1; text-align: left; } .offer-actions { justify-content: flex-start; } }

.detail-list { display: grid; gap: 14px; font-size: 14.5px; }
.detail-list div { display: flex; justify-content: space-between; gap: 12px; }
.detail-list span { color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.detail-list b { font-weight: 700; }
.attach { display: flex; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--bg); font-size: 14.5px; }
.attach .ph { color: var(--brand); font-size: 20px; }
.attach small { color: var(--ink-3); margin-left: auto; }
.tutor-top { display: flex; gap: 14px; align-items: center; }
.tutor-top strong { display: block; }

.chat { display: flex; flex-direction: column; height: 540px; overflow: hidden; }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 75%; padding: 11px 15px; border-radius: 16px 16px 16px 4px; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg small { display: block; font-size: 11.5px; opacity: .65; margin-top: 4px; }
.msg-file { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }

/* Dashboards */
.dash { display: grid; grid-template-columns: 256px minmax(0,1fr); min-height: calc(100dvh - 69px); }
.dash-side { background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 0 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.dash-user strong { display: block; font-size: 15px; }
.dash-nav { display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-input); font-weight: 500; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.dash-nav a .ph { font-size: 19px; }
.dash-nav a:hover { background: var(--bg); color: var(--ink); }
.dash-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.dash-nav .count { margin-left: auto; background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.dash-nav-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 20px 12px 8px; }
.dash-main { padding: 34px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-top h1 { font-size: 30px; letter-spacing: -.025em; font-weight: 800; line-height: 1.15; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash-side { display: none; } .dash-main { padding: 22px 16px; } }

.kpi { padding: 22px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.kpi-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi-icon .ph { font-size: 20px; }
.kpi b { display: block; font-size: 32px; font-weight: 800; margin-top: 14px; letter-spacing: -.03em; line-height: 1.1; }
.kpi small { font-size: 13px; color: var(--ok); font-weight: 600; }
.kpi small.down { color: var(--bad); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--bg); }
.table .who { display: flex; gap: 10px; align-items: center; }
.table .who .avatar { width: 32px; height: 32px; font-size: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16.5px; font-weight: 700; }
.card-head a { color: var(--brand); font-weight: 700; font-size: 13.5px; }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 300px; padding: 24px 24px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { width: 100%; max-width: 40px; background: var(--brand); border-radius: 8px 8px 2px 2px; display: block; }
.bar i.light { background: var(--brand-soft); }
.bar span { font-size: 12.5px; color: var(--ink-3); padding-bottom: 14px; }

.wallet { background: var(--brand); color: var(--brand-ink); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.wallet > span { opacity: .7; font-size: 14px; }
.wallet > b { display: block; font-size: 44px; font-weight: 800; margin: 6px 0 22px; letter-spacing: -.03em; line-height: 1.05; }
.wallet .detail-list span { color: inherit; opacity: .7; }
.wallet .btn-light { background: var(--brand-ink); color: var(--brand); }

.list-item { display: flex; gap: 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item small { color: var(--ink-3); font-size: 13px; }

/* Auth */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.auth-art { position: relative; color: #f4f6fb; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; background: #0f1420; }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,14,24,.35) 0%, rgba(10,14,24,.2) 40%, rgba(10,14,24,.88) 100%); }
.auth-art .logo-mark { background: #f4f6fb; color: #0f1420; }
.auth-art h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; max-width: 460px; font-weight: 800; }
.auth-art p { color: rgba(244,246,251,.8); margin-top: 14px; max-width: 420px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 410px; }
.auth-box h1 { font-size: 34px; letter-spacing: -.025em; font-weight: 800; line-height: 1.1; }
.auth-box > p { color: var(--ink-2); margin: 8px 0 28px; }
.auth-box a.link { color: var(--brand); font-weight: 700; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.role-pick label { border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 16px; cursor: pointer; display: block; background: var(--surface); transition: border-color .2s, background .2s; }
.role-pick input { display: none; }
.role-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.role-pick .ph { color: var(--brand); margin-bottom: 8px; font-size: 24px; display: block; }
.role-pick strong { display: block; font-size: 15px; }
.role-pick span { font-size: 13px; color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Motion: reveal on enter (hierarchy), off for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  [data-reveal].in { opacity: 1; transform: none; }
  .hero [data-reveal] { transition-duration: 1s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Toast & Alert Styles */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: 100%; pointer-events: none; }
.toast { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.15); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; pointer-events: auto; animation: slideInToast .3s var(--ease); }
.toast-success { border-left: 4px solid var(--ok); }
.toast-error { border-left: 4px solid var(--bad); }
.toast-info { border-left: 4px solid var(--brand); }
.alert-box { padding: 14px 18px; border-radius: var(--r-input); margin-bottom: 18px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-error { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.alert-info { background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
@keyframes slideInToast { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Modal overlay */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,14,24,.6); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-window { background: var(--surface); border-radius: var(--r-card); width: 100%; max-width: 520px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; animation: popModal .25s var(--ease); }
@keyframes popModal { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* Full Custom Rich Text Editor Styles */
.rich-editor-wrapper {
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: border-color .2s;
}
.rich-editor-wrapper:focus-within {
  border-color: var(--brand);
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
  user-select: none;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tb-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
}
.tb-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background .15s, color .15s;
}
.tb-btn:hover {
  background: var(--surface);
  color: var(--brand);
}
.tb-btn:active {
  background: var(--brand-soft);
}
.tb-select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  height: 32px;
}
.tb-color-picker {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
}
.tb-color-picker:hover {
  background: var(--surface);
  color: var(--brand);
}
.tb-color-picker input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  left: 0;
  top: 0;
}
.rich-editor-content {
  min-height: 280px;
  max-height: 520px;
  overflow-y: auto;
  padding: 18px 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  outline: none;
}
.rich-editor-content:empty:before {
  content: attr(data-placeholder);
  color: var(--ink-3);
  pointer-events: none;
  display: block;
}
.rich-editor-content h1 { font-size: 28px; font-weight: 800; margin: 0.8em 0 0.4em; }
.rich-editor-content h2 { font-size: 23px; font-weight: 800; margin: 0.8em 0 0.4em; color: var(--ink); }
.rich-editor-content h3 { font-size: 19px; font-weight: 700; margin: 0.7em 0 0.3em; }
.rich-editor-content h4 { font-size: 16px; font-weight: 700; margin: 0.6em 0 0.3em; }
.rich-editor-content p { margin-bottom: 0.8em; }
.rich-editor-content ul, .rich-editor-content ol { padding-left: 24px; margin-bottom: 0.8em; }
.rich-editor-content blockquote { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 1em 0; font-style: italic; }
.rich-editor-content pre { background: #0f1420; color: #f8fafc; padding: 14px 18px; border-radius: 8px; font-family: monospace; font-size: 14px; overflow-x: auto; margin: 1em 0; }
.rich-editor-content code { background: var(--bg); color: var(--brand); padding: 2px 6px; border-radius: 4px; font-family: monospace; }
.rich-editor-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.rich-editor-content th, .rich-editor-content td { border: 1px solid var(--line); padding: 8px 12px; }
.rich-editor-content th { background: var(--bg); font-weight: 700; }
.rich-editor-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.8em 0; }
.rich-editor-content a { color: var(--brand); text-decoration: underline; }
.rich-editor-source {
  width: 100%;
  min-height: 280px;
  padding: 18px 20px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  border: none;
  outline: none;
  background: #0f1420;
  color: #38bdf8;
  resize: vertical;
}
.rich-editor-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* Article Body Typography for Public Blog */
.article-body {
  color: var(--ink);
  line-height: 1.85;
  font-size: 17px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 1.7em 0 0.6em;
  color: var(--ink);
  line-height: 1.25;
}
.article-body h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 1.5em 0 0.5em;
  color: var(--ink);
  line-height: 1.3;
}
.article-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 1.3em 0 0.5em;
  color: var(--ink);
}
.article-body p {
  margin-bottom: 1.3em;
  color: var(--ink);
}
.article-body ul, .article-body ol {
  padding-left: 26px;
  margin-bottom: 1.4em;
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}
.article-body blockquote {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  padding: 16px 22px;
  border-radius: 0 var(--r-input) var(--r-input) 0;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--ink);
}
.article-body pre {
  background: #0f1420;
  color: #f1f5f9;
  padding: 18px 22px;
  border-radius: var(--r-input);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 1.8em 0;
}
.article-body code:not(pre code) {
  background: var(--bg);
  color: var(--brand);
  padding: 3px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  border: 1px solid var(--line);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-card);
  margin: 2em 0;
  box-shadow: var(--shadow);
}
.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.article-body a:hover {
  opacity: .85;
}

/* ==========================================================================
   NEW PROFESSIONAL BLOG DETAIL LAYOUT (MATCHING REFERENCE DESIGN)
   ========================================================================== */

/* Full-Width Hero Section with Image & Overlay */
.blog-hero-section {
  position: relative;
  background-color: #0f1420;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 20, 32, 0.94) 0%, rgba(15, 20, 32, 0.82) 50%, rgba(20, 24, 38, 0.65) 100%);
  z-index: -1;
}
.blog-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-hero-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.blog-hero-crumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color .2s;
}
.blog-hero-crumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.blog-hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.blog-hero-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 960px;
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}
.blog-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 2-Column Content Layout */
.blog-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
  max-width: 1240px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

/* Left Content Pane */
.blog-article-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.blog-lead-text {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--line);
}

/* FAQ Block on Article */
.blog-faq-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--line);
}
.blog-faq-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--ink);
}
.blog-faq-item {
  margin-bottom: 22px;
}
.faq-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
  line-height: 1.35;
}
.faq-answer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Right Sticky Sidebar */
.blog-sidebar-pane {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Sidebar CTA: brand block, same cobalt as the rest of the site */
.sidebar-cta {
  background: var(--brand);
  border-radius: var(--r-card);
  padding: 30px 26px;
  color: var(--brand-ink);
  box-shadow: var(--shadow);
}
.sidebar-cta h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: inherit;
}
.sidebar-cta p {
  font-size: 14px;
  line-height: 1.55;
  opacity: .85;
  margin-bottom: 24px;
}
.btn-cta-white {
  background: var(--brand-ink);
  color: var(--brand);
  font-weight: 700;
  font-size: 14.5px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-cta-outline {
  background: transparent;
  color: var(--brand-ink);
  border: 1.5px solid color-mix(in srgb, var(--brand-ink) 55%, transparent);
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-cta-outline:hover {
  background: color-mix(in srgb, var(--brand-ink) 12%, transparent);
  border-color: var(--brand-ink);
}

/* Sidebar Widgets (Services / Subjects list) */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}
.sidebar-widget-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--line);
  color: var(--ink);
}
.sidebar-subject-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-subject-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-input);
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  background: var(--bg);
  transition: background .2s, transform .2s, color .2s;
}
.sidebar-subject-item:hover {
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateX(4px);
}
.sidebar-subject-item i {
  font-size: 16px;
  color: var(--brand);
  transition: transform .2s;
}
.sidebar-subject-item:hover i {
  transform: translateX(3px);
}

/* Bottom Related Articles Section */
.related-articles-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 70px 0 90px;
}
.related-articles-title {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.related-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.related-card:hover .related-card-img {
  transform: scale(1.05);
}
.related-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.related-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.related-card-badge {
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
}
.related-card-date {
  color: var(--ink-3);
  font-size: 12.5px;
}
.related-card-title {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.related-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.related-card:hover .related-card-link {
  gap: 10px;
}

/* Floating Help Support Badge */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.floating-support-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

@media (max-width: 960px) {
  .blog-main-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 16px;
  }
  .blog-article-pane {
    padding: 28px 20px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADVANCED RICH TEXT EDITOR & TOOLBAR
   ========================================================================== */
.rich-editor-wrapper {
  background: #ffffff;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.rich-editor-wrapper:focus-within {
  border-color: var(--brand, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.rich-editor-wrapper.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  border-radius: 0;
  margin: 0;
}
.rich-editor-wrapper.fullscreen .rich-editor-content,
.rich-editor-wrapper.fullscreen .rich-editor-source {
  height: calc(100vh - 130px);
  max-height: none;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2px 3px;
}
.tb-divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  margin: 0 3px;
}
.tb-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #475569;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.tb-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.tb-btn:active {
  transform: scale(0.95);
}
.tb-btn.active {
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 700;
}
.tb-select {
  height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}
.tb-select:hover {
  border-color: #cbd5e1;
}
.tb-color-picker {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  font-size: 15px;
  margin: 0;
  overflow: hidden;
}
.tb-color-picker:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.tb-color-picker input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
}

/* Math symbols & Quick tags bar */
.rich-quickbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border-bottom: 1px dashed #e2e8f0;
  overflow-x: auto;
  font-size: 12px;
}
.rich-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.rich-quick-btn:hover {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
}
.math-sym {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.math-sym:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

.rich-editor-content {
  min-height: 280px;
  max-height: 520px;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.75;
  color: #1e293b;
  outline: none;
  background: #ffffff;
}
.rich-editor-content:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}
.rich-editor-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 10px;
  line-height: 1.3;
}
.rich-editor-content h2 {
  font-size: 21px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ede9fe;
  line-height: 1.35;
}
.rich-editor-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 14px 0 6px;
}
.rich-editor-content p {
  margin: 0 0 12px;
}
.rich-editor-content blockquote {
  border-left: 4px solid #6366f1;
  background: #f5f3ff;
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: #3730a3;
  font-style: normal;
}
.rich-editor-content pre {
  background: #0f172a;
  color: #38bdf8;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13.5px;
  overflow-x: auto;
  margin: 14px 0;
}
.rich-editor-content code {
  background: #f1f5f9;
  color: #d946ef;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: monospace;
}
.rich-editor-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.rich-editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.rich-editor-content th,
.rich-editor-content td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 14px;
  text-align: left;
}
.rich-editor-content th {
  background: #f8fafc;
  font-weight: 700;
  color: #1e293b;
}
.rich-editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 14px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.rich-editor-content a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 600;
}
.rich-editor-content ul,
.rich-editor-content ol {
  padding-left: 26px;
  margin: 0 0 14px;
}
.rich-editor-content li {
  margin-bottom: 5px;
}
.rich-editor-content hr {
  border: none;
  border-top: 2px dashed #e2e8f0;
  margin: 20px 0;
}

.rich-editor-source {
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  padding: 20px 24px;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #0f172a;
  background: #f8fafc;
  border: none;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.rich-editor-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* TinyMCE Editor Custom Modern Styling */
.tox-tinymce {
  border: 1.5px solid var(--line, #e2e8f0) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}
.tox .tox-toolbar-overlord,
.tox .tox-toolbar,
.tox .tox-toolbar__primary {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.tox .tox-tbtn {
  border-radius: 6px !important;
  margin: 2px 1px !important;
}
.tox .tox-tbtn:hover {
  background: #ede9fe !important;
  color: #6d28d9 !important;
}
.tox .tox-statusbar {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  font-size: 12px !important;
}
.tox .tox-statusbar__branding {
  display: none !important;
}

/* Snippet and Content Box Styles */
.tip-box {
  border-left: 4px solid #6366f1;
  background: #f5f3ff;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: #3730a3;
  font-style: normal;
}
.warning-box {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: #92400e;
  font-style: normal;
}
.takeaways-box {
  border: 1px solid #86efac;
  background: #f0fdf4;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 16px 0;
}
.takeaways-box h4 {
  color: #166534;
  margin: 0 0 8px 0;
  font-weight: 700;
}
.takeaways-box ul {
  margin: 0;
  padding-left: 20px;
  color: #15803d;
}
.formula-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 18px;
  font-family: 'Fira Code', Consolas, monospace;
  font-weight: 700;
  color: #0f172a;
  margin: 16px 0;
}
.editor-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.editor-table th,
.editor-table td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  text-align: left;
}
.editor-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

/* 2-Column Responsive Editor Layout */
.blog-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .blog-editor-grid {
    grid-template-columns: 1fr;
  }
}

.rich-editor-wrapper {
  max-width: 100%;
  box-sizing: border-box;
}

.rich-editor-content,
.rich-editor-source {
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

/* ==========================================================================
   PUBLIC SITE REFRESH: blog index, utilities, small polish
   ========================================================================== */
.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; }
.blog-hero-title { font-family: var(--display); }
.blog-index-hero { padding: 72px 0 84px; }
.blog-index-head { max-width: 760px; text-align: center; }
.blog-index-head .blog-hero-title { margin: 0 auto 14px; font-size: clamp(32px, 4.4vw, 50px); }
.blog-index-head p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 28px; }
.blog-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.blog-search .ph { font-size: 20px; color: var(--brand); }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 11px 6px; font-size: 15.5px; }
.blog-search input::placeholder { color: var(--ink-3); }
.blog-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 40%, transparent), 0 18px 40px -18px rgba(0,0,0,.5); }
.blog-index-body { padding-top: 40px; padding-bottom: 88px; }
.blog-chips { justify-content: center; margin: 0 0 40px; }
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.related-card-img-wrap { display: block; aspect-ratio: 16 / 10; height: auto; }
.blog-hero-meta { gap: 8px 20px; }
@media (max-width: 640px) {
  .blog-index-hero { padding: 48px 0 56px; }
  .blog-index-head p { font-size: 16px; }
}

.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer-brand p { color: var(--ink-2); max-width: 34ch; font-size: 14.5px; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 6px; }

.h1, .h2, .blog-hero-title, .related-articles-title { text-wrap: balance; }

/* =====================================================================
   HOME REDESIGN
   Structure follows the reference the client shared (announcement bar,
   soft-blue hero with arch photos, centered heads with coral kickers,
   navy numbers band, card grids, closing CTA banner). Content is Gotgrade.
   Shape rule from here on: buttons 8px, cards 14px, badges + chips pill,
   hero photos arch-topped.
   ===================================================================== */
:root {
  --soft: #f2f5fe;
  --navy: #0c1b36;
  --coral: #e5434f;
  --t-blue: #bcc8f6; --t-coral: #f6b9c0; --t-mint: #bfe6d7; --t-sand: #f3dcbb;
  --r-card: 14px;
  --star: #e09400; /* rating stars: fixed amber in every theme */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --soft: #10172a;
    --navy: #070d1c;
    --coral: #ff7b86;
    --t-blue: #27315f; --t-coral: #4c2229; --t-mint: #173d33; --t-sand: #42321d;
  }
}
:root[data-mode="dark"] {
    --soft: #10172a;
    --navy: #070d1c;
    --coral: #ff7b86;
    --t-blue: #27315f; --t-coral: #4c2229; --t-mint: #173d33; --t-sand: #42321d;
}
/* Public pages sit on white like the reference; dashboards keep the grey canvas */
body.site { --bg: #ffffff; --surface: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) body.site { --bg: #0b0e15; --surface: #141a27; } }
:root[data-mode="dark"] body.site { --bg: #0b0e15; --surface: #141a27; }
.btn { border-radius: 8px; }

/* Announcement bar */
.topbar { background: var(--navy); color: rgba(238,242,251,.82); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #fff; font-weight: 700; }
.topbar .accent { color: color-mix(in srgb, var(--coral) 60%, #fff); }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar-links { display: flex; gap: 20px; }
@media (max-width: 720px) { .topbar-links { display: none; } .topbar .container { justify-content: center; text-align: center; padding-top: 8px; padding-bottom: 8px; } }

/* Shared section pieces */
.e-section { padding: 96px 0; }
.e-soft { background: var(--soft); }
.e-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; }
.e-h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.e-head { margin-bottom: 44px; }
.e-head-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.e-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.e-head-split .chips { margin-top: 0; }
.e-body { color: var(--ink-2); font-size: 16.5px; max-width: 52ch; margin: 18px 0 28px; }
.sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Hero */
.e-hero { background: var(--soft); padding: 64px 0 80px; overflow: hidden; }
.e-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.e-title { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; max-width: 13ch; }
.e-title .hl { color: var(--brand); }
.e-lead { font-size: 18px; color: var(--ink-2); max-width: 44ch; margin: 22px 0 34px; }
.e-hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.e-play { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.e-play-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--coral); color: var(--coral); background: var(--surface); transition: background .25s, color .25s, transform .25s var(--ease); }
.e-play:hover .e-play-icon { background: var(--coral); color: #fff; transform: scale(1.06); }
.e-hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; max-width: 580px; width: 100%; justify-self: end; }
.arch { margin: 0; padding: 12px 12px 0; border-radius: 999px 999px 16px 16px; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 8px 8px; }
.arch-a { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1.08; }
.arch-c { grid-column: 1; grid-row: 2; aspect-ratio: 1 / 1.12; width: 74%; justify-self: end; }
.arch-b { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 1 / 1.45; }
.arch-b img { object-position: 62% 50%; }
.tint-blue { background: var(--t-blue); }
.tint-coral { background: var(--t-coral); }
.tint-mint { background: var(--t-mint); }
.tint-sand { background: var(--t-sand); }

/* Subject cards */
.e-cats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.e-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 16px 36px -28px rgba(28,40,90,.4); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
.e-cat:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.e-cat-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; transition: background .25s, color .25s; }
.e-cat-icon .ph { font-size: 28px; }
.e-cat:hover .e-cat-icon { background: var(--brand); color: var(--brand-ink); }
.e-cat strong { font-size: 17px; font-weight: 700; }
.e-cat > span:last-child { color: var(--ink-3); font-size: 14px; }

/* How it works: collage + steps */
.e-about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; align-items: center; }
.e-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.e-badge-coral { grid-column: 1; grid-row: 1; background: var(--coral); color: #fff; border-radius: var(--r-card); padding: 20px; text-align: center; align-self: end; }
.e-badge-coral b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.05; }
.e-badge-coral span { font-size: 14px; opacity: .92; }
.e-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card); }
.e-collage .c-1 { grid-column: 1; grid-row: 2 / 4; min-height: 280px; }
.e-collage .c-2 { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 4 / 5; height: auto; }
.e-rating-card { grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.e-rating-card b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; }
.e-rating-card span { font-size: 13.5px; color: var(--ink-2); }
.e-stack { display: flex; }
.e-stack .avatar { width: 36px; height: 36px; font-size: 12px; border: 2px solid var(--surface); }
.e-stack .avatar + .avatar { margin-left: -10px; }
.e-steps { display: grid; gap: 14px; margin-bottom: 30px; }
.e-step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 16px 36px -30px rgba(28,40,90,.45); }
.e-step-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.e-step-icon .ph { font-size: 24px; }
.e-step h3 { font-size: 17px; font-weight: 700; }
.e-step p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }

/* Numbers band */
.e-stats { background: var(--navy); color: #eef2fb; padding: 68px 0; background-image: radial-gradient(circle at 8% 120%, rgba(255,255,255,.07), transparent 42%), radial-gradient(circle at 92% -30%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 48%); }
.e-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px 24px; text-align: center; }
.e-stat-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.09); display: grid; place-items: center; margin: 0 auto 16px; }
.e-stat-icon .ph-fill { font-size: 24px; color: #fff; }
.e-stats b { display: block; font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.e-stats-grid > div > span:last-child { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(238,242,251,.72); font-weight: 600; }

/* Question cards */
.e-qgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; transition: opacity .2s; }
.e-qgrid.is-loading { opacity: .5; }
.e-q { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
.e-q:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.e-q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.e-price { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--brand-ink); background: var(--brand); padding: 3px 12px; border-radius: 8px; }
.e-q h3 { font-size: 17px; font-weight: 700; line-height: 1.35; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.e-q-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }
.e-q-meta span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.e-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-card); color: var(--ink-2); }
.e-empty .ph { font-size: 36px; color: var(--ink-3); }
.e-empty p { margin: 8px 0 16px; }

/* Students / tutors cards */
.e-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.e-path { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px; align-items: center; padding: 18px; background: var(--surface); border-radius: var(--r-card); box-shadow: 0 24px 48px -32px rgba(28,40,90,.45); }
.e-path img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; border-radius: 10px; }
.e-path-tag { color: var(--brand); font-weight: 700; font-size: 14px; }
.e-path h3 { font-family: var(--display); font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 8px; }
.e-path p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }

/* Tutors */
.e-tutors { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.e-tutor { text-align: center; display: flex; flex-direction: column; align-items: center; }
.e-tutor-photo { position: relative; width: 100%; aspect-ratio: 1 / 1.08; border-radius: var(--r-card); overflow: hidden; margin-bottom: 16px; display: grid; place-items: center; }
.e-tutor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.e-tutor:hover .e-tutor-photo img { transform: scale(1.04); }
.e-tutor-initials { font-family: var(--display); font-size: 56px; font-weight: 800; color: var(--ink); opacity: .7; }
.e-verified { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--ok); display: grid; place-items: center; box-shadow: var(--shadow); }
.e-tutor h3 { font-size: 18px; font-weight: 700; }
.e-tutor-role { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.e-tutor-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.e-tutor-meta .ph-fill { color: var(--star); font-size: 15px; }
.e-tutor-meta > span:not(.sep) { color: var(--ink-3); font-weight: 500; }

/* Reviews */
.e-reviews { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.e-review { margin: 0; background: var(--surface); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 48px -34px rgba(28,40,90,.45); }
.e-stars { color: var(--star); display: flex; gap: 3px; }
.e-stars .ph-fill { font-size: 17px; }
.e-review blockquote { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; flex: 1; }
.e-review figcaption { display: flex; align-items: center; gap: 12px; }
.e-review figcaption strong { display: block; font-size: 15.5px; }
.e-review figcaption div span { font-size: 13.5px; color: var(--ink-3); }
.e-q-mark { margin-left: auto; font-size: 40px; color: var(--brand-soft); }

/* Blog cards */
.e-posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.e-post { background: var(--surface); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.e-post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.e-post-img { aspect-ratio: 16 / 10; overflow: hidden; }
.e-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.e-post:hover .e-post-img img { transform: scale(1.04); }
.e-post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.e-post-meta { font-size: 13px; color: var(--brand); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.e-post h3 { font-size: 18px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.e-post p { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.e-more { margin-top: auto; font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.e-more .ph { transition: transform .25s var(--ease); }
.e-post:hover .e-more .ph { transform: translateX(3px); }

/* FAQ on the home page reuses the shared accordion */
.e-faq { padding-top: 0; }

/* Closing CTA banner */
.e-cta-wrap { padding: 0 0 56px; }
body.site .footer { margin-top: 0; }
.e-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: var(--navy); color: #fff; padding: 56px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 40px; align-items: center; }
.e-cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cta-bg) center / cover no-repeat; }
.e-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 96%, transparent) 0%, color-mix(in srgb, var(--navy) 88%, transparent) 50%, color-mix(in srgb, var(--navy) 72%, transparent) 100%); }
.e-cta h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.e-cta p { color: rgba(255,255,255,.78); margin-top: 12px; }
.e-cta-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; background: rgba(255,255,255,.1); padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); }
.e-cta-form .input { grid-column: 1 / -1; }
.e-cta-form .input, .e-cta-form .select { background: #fff; color: #0f1420; border-color: transparent; }
.e-cta-form .input::placeholder { color: #626b7f; }

/* Responsive */
@media (max-width: 1024px) {
  .e-hero-grid, .e-about-grid { grid-template-columns: 1fr; gap: 48px; }
  .e-hero-art { justify-self: center; max-width: 520px; }
  .e-cats, .e-tutors { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .e-posts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .e-reviews, .e-paths { grid-template-columns: 1fr; }
  .e-cta { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 640px) {
  .e-section { padding: 64px 0; }
  .e-hero { padding: 36px 0 52px; }
  .e-hero-art { gap: 12px; }
  .arch { padding: 8px 8px 0; }
  .e-cats { gap: 12px; }
  .e-cat { padding: 22px 12px; }
  .e-qgrid, .e-posts { grid-template-columns: 1fr; }
  .e-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .e-path { grid-template-columns: 1fr; }
  .e-path img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .e-collage { gap: 12px; }
  .e-cta-form { grid-template-columns: 1fr; }
  .e-cta-wrap { padding-bottom: 64px; }
}

/* =====================================================================
   APPEARANCE: colour themes, fonts, light/dark mode
   Each theme only sets --th (brand) and --th-accent (in the
   appearance partial). Everything else is derived here, so a new
   theme is one line in resources/views/partials/appearance.blade.php.
   ===================================================================== */
:root[data-theme] {
  --brand: var(--th);
  --brand-2: color-mix(in srgb, var(--th) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--th) 11%, #fff);
  --brand-ink: #ffffff;
  --coral: var(--th-accent);
  --soft: color-mix(in srgb, var(--th) 6%, #fff);
  --navy: color-mix(in srgb, var(--th) 24%, #070b16);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme]:not([data-mode="light"]) {
    --brand: color-mix(in srgb, var(--th) 62%, #fff);
    --brand-2: color-mix(in srgb, var(--th) 48%, #fff);
    --brand-soft: color-mix(in srgb, var(--th) 24%, #0b0e15);
    --brand-ink: #0b0e15;
    --coral: color-mix(in srgb, var(--th-accent) 72%, #fff);
    --soft: color-mix(in srgb, var(--th) 10%, #0b0e15);
    --navy: color-mix(in srgb, var(--th) 16%, #05080f);
  }
}
:root[data-theme][data-mode="dark"] {
  --brand: color-mix(in srgb, var(--th) 62%, #fff);
  --brand-2: color-mix(in srgb, var(--th) 48%, #fff);
  --brand-soft: color-mix(in srgb, var(--th) 24%, #0b0e15);
  --brand-ink: #0b0e15;
  --coral: color-mix(in srgb, var(--th-accent) 72%, #fff);
  --soft: color-mix(in srgb, var(--th) 10%, #0b0e15);
  --navy: color-mix(in srgb, var(--th) 16%, #05080f);
}

/* Floating trigger: bottom-left so it never collides with the support button */
.ap-trigger { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .25s var(--ease), background .2s; }
.ap-trigger:hover { transform: rotate(-12deg) scale(1.05); }
.ap-trigger .ph { font-size: 22px; color: var(--brand); }

/* Side panel */
.ap-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8,12,22,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.ap-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(400px, 100vw); background: var(--surface); color: var(--ink); border-left: 1px solid var(--line); box-shadow: -24px 0 60px -30px rgba(8,12,22,.5); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .35s var(--ease); }
.ap-open .ap-backdrop { opacity: 1; pointer-events: auto; }
.ap-open .ap-panel { transform: none; }
.ap-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.ap-head h2 { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ap-head p { font-size: 13px; color: var(--ink-3); }
.ap-body { flex: 1; overflow-y: auto; padding: 22px; display: grid; gap: 28px; align-content: start; }
.ap-group h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.ap-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.ap-modes button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.ap-modes button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(8,12,22,.12); }
.ap-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ap-theme { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.ap-theme:hover { transform: translateY(-2px); }
.ap-theme[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.ap-swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ap-swatch::after { content: ""; position: absolute; right: 0; bottom: 0; width: 50%; height: 50%; background: var(--sw-accent); border-top-left-radius: 100%; }
.ap-swatch .ph-bold { position: absolute; inset: 0; z-index: 1; display: none; place-items: center; color: #fff; font-size: 16px; }
.ap-theme[aria-pressed="true"] .ap-swatch .ph-bold { display: grid; }
.ap-fonts { display: grid; gap: 8px; }
.ap-font { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s; }
.ap-font:hover { border-color: var(--ink-3); }
.ap-font[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.ap-font b { font-size: 18px; font-weight: 700; line-height: 1.2; }
.ap-font span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.ap-foot { padding: 16px 22px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .ap-trigger { left: 14px; bottom: 14px; width: 44px; height: 44px; } .ap-themes { grid-template-columns: repeat(3, 1fr); } }
@media print { .ap-trigger, .ap-panel, .ap-backdrop { display: none; } }
/* Auth pages: the left photo column carries a quote at the bottom, so park the trigger on the form side */
body:has(.auth) .ap-trigger { left: auto; right: 20px; }
