@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1B2540;
  --ink-soft: #5C6B85;
  --paper: #F5F7FA;
  --panel: #FFFFFF;
  --line: #E3E7EE;
  --violet: #16255C;
  --violet-deep: #0A1638;
  --violet-glow: rgba(22,37,92,.10);
  --coral: #4A831C;
  --coral-deep: #3A6816;
  --amber: #D9A125;
  --teal: #17A398;
  --red: #E14F4F;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(27,37,64,.05), 0 2px 8px rgba(27,37,64,.05);
  --shadow: 0 4px 14px rgba(27,37,64,.07), 0 14px 40px rgba(22,37,92,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 500px at 100% -10%, rgba(255,107,91,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(91,63,160,.12), transparent 55%),
    var(--paper);
  background-attachment: fixed;
}
h1, h2, h3, .display {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
a { color: var(--violet); }

/* ---------- Layout shell ---------- */
.jk-shell { min-height: 100%; display: flex; flex-direction: column; }

.jk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.jk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 19px;
}

/* Real JK Speak logo (replaces the old CSS-drawn waveform mark) */
.jk-logo-img { height: 34px; width: auto; display: block; }
.jk-logo-sm { height: 22px; }
.jk-logo-lg { height: 56px; }

/* Retained for reference/unused now that the real logo image is in place */
.mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--violet), var(--coral));
  display: flex; align-items: center; justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(22,37,92,.35);
}
.mark i {
  display: inline-block;
  width: 3px;
  border-radius: 3px;
  background: #fff;
  animation: wave 1.1s ease-in-out infinite;
}
.mark i:nth-child(1) { height: 8px; animation-delay: 0s; }
.mark i:nth-child(2) { height: 15px; animation-delay: .15s; }
.mark i:nth-child(3) { height: 11px; animation-delay: .3s; }
.mark i:nth-child(4) { height: 6px; animation-delay: .45s; }
@keyframes wave {
  0%, 100% { transform: scaleY(.55); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mark i { animation: none; }
}

.jk-role-pill {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--violet-glow);
  color: var(--violet-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: 4px;
}
.jk-header-right { display: flex; align-items: center; gap: 16px; }
.jk-header-right .who { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

.jk-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 28px 60px;
  animation: rise .5s cubic-bezier(.16,1,.3,1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons / forms ---------- */
button, .btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  background: var(--violet);
  color: #fff;
  transition: transform .1s ease, box-shadow .15s ease, opacity .12s ease;
  box-shadow: 0 2px 8px rgba(91,63,160,.25);
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(91,63,160,.32); }
button:active, .btn:active { transform: translateY(0) scale(.98); }
button.secondary { background: #fff; color: var(--violet-deep); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
button.secondary:hover { box-shadow: var(--shadow); }
button.amber { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); box-shadow: 0 2px 8px rgba(232,80,64,.3); }
button.danger { background: var(--red); }
button.ghost { background: transparent; color: var(--ink-soft); padding: 7px 11px; box-shadow: none; }
button.ghost:hover { background: var(--violet-glow); color: var(--violet-deep); transform: none; box-shadow: none; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

input, select, textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fdfcfe;
  color: var(--ink);
  width: 100%;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-glow);
}
button:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 2px; }
label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.field { margin-bottom: 16px; }

/* ---------- Cards / panels ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card h2 { margin-top: 0; font-size: 17px; }
.card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------- Login screen ---------- */
.jk-plain-shell {
  min-height: 100vh;
  width: 100%;
}
.jk-login-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.jk-login-card {
  width: 100%; max-width: 540px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px 44px;
  box-shadow: var(--shadow);
  animation: rise .5s cubic-bezier(.16,1,.3,1);
}
.jk-login-card .jk-brand { justify-content: center; margin-bottom: 8px; font-size: 30px;}
.jk-login-card .mark { width: 48px; height: 48px; border-radius: 14px; }
.jk-login-card .jk-logo-img { height: 56px; margin: 0 auto; }
.jk-login-sub { text-align: center; color: var(--ink-soft); font-size: 15px; margin-bottom: 30px; }
.jk-login-card input { font-size: 16px; padding: 13px 15px; }
.jk-login-card label { font-size: 13.5px; }
.jk-login-card button[type="submit"] { font-size: 15px; padding: 13px 18px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-scroll { overflow: auto; max-height: 600px; border: 1px solid var(--line); border-radius: 8px; }
.table-scroll table { min-width: 760px; }
.table-scroll table thead th { position: sticky; top: 0; background: var(--panel); z-index: 3; }
.table-scroll table th:first-child, .table-scroll table td:first-child {
  position: sticky; left: 0; background: var(--panel); z-index: 2; box-shadow: 2px 0 4px rgba(27,37,64,.06);
}
.table-scroll table thead th:first-child { z-index: 4; }
.table-scroll table tbody tr:hover td:first-child { background: var(--violet-glow); }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--violet-glow); }

/* ---------- Status badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.badge-open { background: var(--violet-glow); color: var(--violet-deep); }
.badge-booked { background: rgba(255,107,91,.14); color: var(--coral-deep); }
.badge-blocked { background: rgba(107,98,132,.12); color: var(--ink-soft); }
.badge-completed { background: rgba(23,163,152,.14); color: var(--teal); }
.badge-absent { background: rgba(225,79,79,.12); color: var(--red); }
.badge-leave { background: rgba(91,63,160,.12); color: var(--violet-deep); }

/* ---------- Balance meter (signature element) ---------- */
.balance-meter { display: flex; align-items: baseline; gap: 12px; }
.balance-meter .num {
  font-family: 'Sora', sans-serif; font-size: 46px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.balance-meter .label { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.balance-dots { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.balance-dots span {
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  display: inline-block;
}
.balance-dots span.empty { background: var(--line); }

/* ---------- Calendar grid ---------- */
.cal-day-col { min-width: 150px; }
.cal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cal-day-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--ink-soft); }
.slot {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  background: #fff;
  transition: border-color .12s ease, transform .12s ease;
}
.slot:hover { transform: translateX(2px); }
.slot.open { border-color: rgba(91,63,160,.4); border-left: 3px solid var(--violet); }
.slot.booked { border-left: 3px solid var(--coral); background: rgba(255,107,91,.04); }
.slot.blocked { background: var(--paper); color: var(--ink-soft); }
.slot .t { font-weight: 700; font-family: 'Sora', sans-serif; letter-spacing: -.01em; }
.slot .actions { margin-top: 8px; display: flex; gap: 7px; flex-wrap: wrap; }
.slot .actions button { padding: 6px 11px; font-size: 12px; box-shadow: none; }

.empty-state {
  text-align: center; padding: 44px 20px; color: var(--ink-soft);
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
}
.jk-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.16,1,.3,1);
  box-shadow: var(--shadow);
  z-index: 999;
}
.jk-toast.jk-toast-error { background: var(--red); }
.jk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) {
  .card-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .jk-main { padding: 20px 16px 50px; }
}

/* ============================================================
   Sidebar layout (column-based shell)
   ============================================================ */
.jk-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  align-items: start;
}
.jk-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 18px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--line);
}
.jk-sidebar .jk-brand { padding: 4px 10px 0; }
.jk-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 32px;
}
.jk-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.jk-nav a .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  transition: background .12s ease, transform .12s ease;
}
.jk-nav a:hover { background: var(--violet-glow); color: var(--violet-deep); }
.jk-nav a:hover .dot { background: var(--violet); transform: scale(1.3); }
.jk-sidebar-spacer { flex: 1; }
.jk-sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
.jk-sidebar-foot .who { font-size: 13.5px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 2px; }
.jk-sidebar-foot .role-tag { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.jk-sidebar-foot button { width: 100%; margin-top: 12px; }

.jk-content { min-width: 0; }
.jk-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

@media (max-width: 860px) {
  .jk-shell { grid-template-columns: 1fr; }
  .jk-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    gap: 18px;
  }
  .jk-sidebar .jk-brand { padding: 0; }
  .jk-nav { flex-direction: row; margin-top: 0; overflow-x: auto; gap: 4px; }
  .jk-nav a { white-space: nowrap; padding: 8px 12px; }
  .jk-sidebar-spacer { display: none; }
  .jk-sidebar-foot { display: none; }
  .jk-topbar { display: flex; }
}

/* ============================================================
   Column-based day calendar (used for schedule / open slots)
   ============================================================ */
.day-columns {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.day-col {
  flex: 0 0 216px;
  scroll-snap-align: start;
}
.day-col-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.day-col-head .dow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.day-col-head .dnum {
  font-family: 'Sora', sans-serif;
  font-size: 21px;
  font-weight: 700;
}
.day-col-head.today .dnum { color: var(--violet); }
.day-col-empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* Dashboard stat grid for column-style summary cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--violet-deep);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 600;
}

/* ============================================================
   Weekly availability grid + timezone controls
   ============================================================ */
.tz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tz-row label { margin: 0; }
.tz-row select { width: auto; min-width: 220px; }

.week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.week-nav button { padding: 8px 14px; }
.week-nav .week-label {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  min-width: 170px;
  text-align: center;
}

.wgrid-wrap { overflow-x: auto; overflow-y: auto; max-height: 470px; border: 1px solid var(--line); border-radius: 8px; }
.wgrid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  width: 100%;
}
.wgrid th, .wgrid td { border: none; padding: 0; }
.wgrid thead th {
  text-align: center;
  padding: 6px 4px 10px;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  color: var(--ink-soft);
  position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.wgrid thead th .dnum { color: var(--ink); font-weight: 700; font-size: 14px; }
.wgrid .time-col {
  width: 78px;
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
  vertical-align: middle;
}
.wgrid .gap-row td { height: 14px; }
.wcell {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  margin: 2px;
  cursor: pointer;
  transition: background .1s ease, transform .08s ease, border-color .1s ease;
}
.wcell:hover { transform: scale(1.04); }
.wcell.open { background: var(--violet-glow); border-color: var(--violet); }
.wcell.booked { background: rgba(255,107,91,.18); border-color: var(--coral); cursor: default; }
.wcell.blocked { background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 4px, var(--line) 4px, var(--line) 6px); cursor: not-allowed; }
.wcell.past { opacity: .4; cursor: not-allowed; }
.wgrid td.cellwrap { padding: 1px; }
.wgrid-legend { display: flex; gap: 18px; font-size: 12px; color: var(--ink-soft); margin-top: 12px; flex-wrap: wrap; }
.wgrid-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wgrid-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); }
.wgrid-legend i.open { background: var(--violet-glow); border-color: var(--violet); }
.wgrid-legend i.booked { background: rgba(255,107,91,.18); border-color: var(--coral); }
.wgrid-legend i.blocked { background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 4px, var(--line) 4px, var(--line) 6px); }

.copy-forward { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.copy-forward input { width: 70px; }

/* ============================================================
   Marketing homepage
   ============================================================ */
.mkt-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(247,245,251,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mkt-nav .jk-brand { font-size: 20px; }
.mkt-nav-links { display: flex; align-items: center; gap: 28px; }
.mkt-nav-links a:not(.mkt-signin-btn) {
  color: var(--ink-soft); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.mkt-nav-links a:not(.mkt-signin-btn):hover { color: var(--violet-deep); }
.mkt-signin-btn {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 100px;
  text-decoration: none; font-size: 14.5px;
  box-shadow: 0 3px 10px rgba(91,63,160,.3);
  transition: transform .12s ease, box-shadow .15s ease;
  display: inline-block;
}
.mkt-signin-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91,63,160,.38); }
.mkt-lang-select {
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 12px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-soft);
  background: var(--panel); cursor: pointer;
}

.mkt-shell { overflow-x: hidden; }
.mkt-tagline {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12.5px; color: var(--ink-soft);
  margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line);
}
@media (max-width: 700px) { .mkt-tagline { display: none; } }

.mkt-hero {
  position: relative;
  padding: 90px 6vw 100px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.mkt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--violet-deep); background: var(--violet-glow);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 22px;
}
.mkt-hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.mkt-hero h1 .accent {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mkt-hero p.lede {
  font-size: 18px; color: var(--ink-soft); line-height: 1.6; max-width: 46ch; margin-bottom: 32px;
}
.mkt-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.mkt-cta-row .btn-outline {
  padding: 13px 26px; border-radius: 100px; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .12s ease, background .12s ease;
}
.mkt-cta-row .btn-outline:hover { border-color: var(--violet); background: var(--violet-glow); }
.mkt-cta-row .btn-primary {
  padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgba(232,80,64,.32);
  transition: transform .12s ease;
}
.mkt-cta-row .btn-primary:hover { transform: translateY(-1px); }

.mkt-hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  justify-self: center;
}
.mkt-hero-art .blob {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(91,63,160,.18), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(255,107,91,.20), transparent 60%);
  border-radius: 50%;
  filter: blur(4px);
}
.mkt-hero-illust {
  position: relative; z-index: 2;
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 30px rgba(36,28,61,.12));
}
.mkt-hero-badge {
  position: absolute; bottom: 6%; right: -4%; z-index: 3;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow);
  text-align: center;
}
.mkt-hero-badge .big-num {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 28px; line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mkt-hero-badge .big-label { color: var(--ink-soft); font-size: 11.5px; margin-top: 4px; font-weight: 600; }

.mkt-section { padding: 70px 6vw; max-width: 1180px; margin: 0 auto; }
.mkt-section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.mkt-section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.mkt-section-head p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

.mkt-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 0 6vw; max-width: 1180px; margin: -50px auto 0; position: relative; z-index: 5;
}
.mkt-stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.mkt-stat-card .n { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 30px; color: var(--violet-deep); }
.mkt-stat-card .l { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }

.mkt-programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mkt-program-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.mkt-program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mkt-program-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--coral)); color: #fff; margin-bottom: 18px;
}
.mkt-program-card h3 { font-size: 18px; margin: 0 0 10px; }
.mkt-program-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }

.mkt-approach {
  background: linear-gradient(155deg, var(--violet-deep), var(--violet));
  border-radius: 28px; padding: 60px 6vw; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 1180px; margin: 0 auto; position: relative; overflow: hidden;
}
.mkt-approach::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: rgba(255,107,91,.28); border-radius: 50%; filter: blur(30px);
}
.mkt-approach h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; }
.mkt-approach p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.7; margin: 0 0 12px; position: relative; z-index: 2; }
.mkt-approach-list { list-style: none; padding: 0; margin: 0; position: relative; z-index: 2; }
.mkt-approach-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: #fff; }
.mkt-approach-list li .dot2 {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: 12px;
}

.mkt-contact {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 6vw; text-align: center; box-shadow: var(--shadow-sm);
  max-width: 780px; margin: 0 auto;
}
.mkt-contact h2 { margin-bottom: 10px; }
.mkt-contact p { color: var(--ink-soft); margin-bottom: 28px; }
.mkt-contact-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.mkt-contact-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 22px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px;
  transition: border-color .12s ease, transform .12s ease;
}
.mkt-contact-btn:hover { border-color: var(--violet); transform: translateY(-2px); }
.mkt-contact-btn .ic { font-size: 20px; }
.mkt-qr-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; text-align: center;
}
.mkt-qr-box img { width: 150px; height: 150px; display: block; margin: 0 auto; border-radius: 6px; }
.mkt-qr-box p { color: var(--ink); font-weight: 600; font-size: 12.5px; margin-top: 8px; margin-bottom: 0; }

.mkt-footer {
  padding: 40px 6vw 50px; text-align: center; color: var(--ink-soft); font-size: 13.5px;
}
.mkt-footer .jk-brand { justify-content: center; margin-bottom: 14px; }

@media (max-width: 900px) {
  .mkt-hero { grid-template-columns: 1fr; padding-top: 60px; text-align: center; }
  .mkt-hero p.lede { margin-left: auto; margin-right: auto; }
  .mkt-cta-row { justify-content: center; }
  .mkt-hero-art { margin-top: 20px; }
  .mkt-stats { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .mkt-programs { grid-template-columns: 1fr; }
  .mkt-approach { grid-template-columns: 1fr; padding: 40px 24px; }
  #reviews-list { grid-template-columns: 1fr !important; }
  .mkt-nav-links { gap: 14px; }
  .mkt-nav-links a:not(.mkt-signin-btn) { display: none; }
}

/* Homework / feedback panels on schedule cards */
.hw-fb-panel {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.hw-fb-panel textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 13px; padding: 8px 10px;
  border-radius: 8px; border: 1px solid var(--line); resize: vertical;
}
.hw-fb-panel input[type="file"] { font-size: 12px; width: 100%; }

/* Star rating input (student review form) */
.star-rating { display: flex; gap: 6px; font-size: 34px; line-height: 1; user-select: none; }
.star-rating .star { color: var(--line); cursor: pointer; transition: color .1s ease, transform .1s ease; }
.star-rating .star:hover { transform: scale(1.12); }
.star-rating .star.filled { color: var(--amber); }

/* Public review cards (marketing page) */
.mkt-review-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.mkt-review-stars { color: var(--amber); font-size: 18px; letter-spacing: 2px; margin-bottom: 10px; }
.mkt-review-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.mkt-review-card .who { font-weight: 700; font-size: 13.5px; color: var(--ink); }

/* Capped, searchable schedule/class-list sections (admin/teacher/student) */
.list-scroll { max-height: 640px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.list-scroll table thead th { position: sticky; top: 0; background: var(--panel); z-index: 2; }
.section-search { margin-bottom: 14px; max-width: 340px; }
.flat-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.flat-row:last-child { border-bottom: none; }
