/* Ladder Tutors: cobalt, animated shapes, reeded glass. Shared by all five pages; see DESIGN.md. */

@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("assets/fonts/funnel-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("assets/fonts/funnel-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Funnel Sans"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("assets/fonts/funnel-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Sans"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("assets/fonts/funnel-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --cobalt: #1F6FD9;
  --cobalt-deep: #185BBE;
  --navy: #0A1A4A;
  --ink: #0B1B4D;
  --white: #FFFFFF;
  --on-cobalt-2: #FFFFFF;
  --on-cobalt-3: rgba(255, 255, 255, .96);
  --lime: #C8F560;
  --lime-press: #B3E043;
  --tier-student: #FFB321;
  --tier-college: #5EE6B0;
  --tier-pro: #FFFFFF;
  --glass: rgba(10, 26, 74, .24);
  --glass-strong: rgba(10, 26, 74, .4);
  --glass-edge: rgba(255, 255, 255, .28);
  --hair: rgba(255, 255, 255, .22);
  --radius: 22px;
  --font: "Funnel Sans", system-ui, -apple-system, sans-serif;
  --display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--glass-edge) var(--navy); }
body { margin: 0; font-family: var(--font); color: var(--white); background: var(--cobalt); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Prototype banner */
.proto { background: var(--navy); color: var(--on-cobalt-2); font-size: 13px; text-align: center; padding: 8px 16px; }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

/* The backdrop: big soft geometric shapes (circle, triangle, rounded square, ladder rungs)
   in the tier colours, drifting behind reeded glass. A shifted copy shows through
   alternate half-ribs so every edge steps at each rib. The veil keeps the text side cobalt. */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow.refract { transform: translateX(14px) scale(1.03); -webkit-mask-image: repeating-linear-gradient(90deg, transparent 0 6px, #000 6px 12px); mask-image: repeating-linear-gradient(90deg, transparent 0 6px, #000 6px 12px); }
.sh { position: absolute; display: block; will-change: transform; }
.sh-circle { left: 49%; top: 6%; width: clamp(220px, 30vw, 460px); aspect-ratio: 1; border-radius: 50%; background: var(--tier-student); animation: sh-drift 22s ease-in-out infinite alternate; }
.sh-tri { left: 54%; top: 50%; width: clamp(180px, 24vw, 360px); aspect-ratio: 1 / .88; background: var(--tier-college); clip-path: polygon(50% 0, 100% 100%, 0 100%); animation: sh-turn 44s linear infinite; }
.sh-square { left: 85%; top: 66%; width: clamp(140px, 17vw, 260px); aspect-ratio: 1; border-radius: 26%; background: var(--white); animation: sh-tilt 28s ease-in-out infinite alternate; }
.sh-rungs { left: 87%; top: 8%; width: clamp(90px, 9vw, 140px); display: flex; flex-direction: column; gap: 22px; animation: sh-climb 7s ease-in-out infinite; }
.sh-rungs i { display: block; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); }
@keyframes sh-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vw, 9%) scale(1.07); } }
@keyframes sh-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sh-tilt { from { transform: rotate(10deg) translate(0, 0); } to { transform: rotate(-16deg) translate(3vw, -6%); } }
@keyframes sh-climb { 0% { transform: translateY(40px); opacity: 0; } 25%, 70% { opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sh { animation: none; } .sh-rungs { opacity: 1; } }
.veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,26,74,.6) 0, rgba(10,26,74,0) 150px), linear-gradient(90deg, rgba(31,111,217,.96) 0%, rgba(31,111,217,.92) 36%, rgba(31,111,217,.4) 46%, rgba(31,111,217,.06) 54%, rgba(31,111,217,0) 100%); }
.reeds {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.17) 0 1px,
    rgba(255,255,255,.05) 1px 4px,
    rgba(255,255,255,0) 4px 9px,
    rgba(10,26,74,.12) 9px 12px);
}

/* Nav */
.nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.logo { font-family: var(--display); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.nav-pill { display: flex; gap: 4px; padding: 5px; border-radius: 999px; }
.nav-pill a { text-decoration: none; font-size: 14px; padding: 8px 16px; border-radius: 999px; color: var(--on-cobalt-2); transition: background .25s var(--ease), color .25s var(--ease); }
.nav-pill a:hover, .nav-pill a[aria-current="page"] { background: rgba(10, 26, 74, .45); color: var(--white); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-end .login { text-decoration: none; font-size: 14px; padding: 10px 16px; border-radius: 999px; background: rgba(10, 26, 74, .5); color: var(--white); }
.nav-end .login:hover { background: rgba(10, 26, 74, .7); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-press); }
.btn-glass { background: var(--glass); border-color: var(--glass-edge); color: var(--white); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass:hover { background: var(--glass-strong); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--navy); }
.btn svg { flex: 0 0 auto; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - 34px); display: flex; flex-direction: column; overflow: hidden; }
.hero-body {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 40px 56px; align-items: end;
  padding-top: 64px; padding-bottom: 56px;
}
.hero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(3.1rem, 8.2vw, 6rem); line-height: .96; letter-spacing: -0.04em; text-wrap: balance; }
.hero .lede { text-shadow: 0 1px 18px rgba(10, 26, 74, .75); margin-top: 22px; max-width: 40ch; text-wrap: pretty; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--white); }

.search { background: rgba(10, 26, 74, .38); margin-top: 32px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; padding: 6px; border-radius: 28px; max-width: 720px; }
.search label { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 18px; border-radius: 22px; min-height: 60px; }
.search label:focus-within { background: var(--glass-strong); }
.search .q { flex: 2 1 240px; }
.search .lv { flex: 1 1 170px; }
.search small { font-size: 12px; color: var(--white); letter-spacing: .01em; }
.search input, .search select { font: inherit; font-size: 16px; color: var(--white); background: transparent; border: 0; padding: 2px 0; outline: none; width: 100%; }
.search input::placeholder { color: var(--on-cobalt-3); }
.search select option { color: var(--ink); background: #fff; }
.search .btn { min-height: 60px; padding: 0 26px; font-size: 16px; flex: 0 0 auto; }
.levels { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.levels span { font-size: 13px; color: var(--on-cobalt-3); margin-right: 4px; }
.levels a { font-size: 13px; text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hair); color: var(--on-cobalt-2); transition: background .25s var(--ease), color .25s var(--ease); }
.levels a:hover { background: var(--white); color: var(--ink); }

/* Open slots panel */
.slots { background: rgba(10, 26, 74, .6); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.slots-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-size: 13px; color: var(--white); }
.slots-head .live { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.slot {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av name type" "when when rate"; align-items: center; gap: 14px 12px; text-decoration: none;
  padding: 16px; border-radius: 16px; background: rgba(10,26,74,.16); border: 1px solid rgba(255,255,255,.18);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.slot:hover { background: rgba(10,26,74,.3); transform: translateY(-2px); }
.slot b { grid-area: name; font-weight: 500; font-size: 16px; }
.slot .type { grid-area: type; justify-self: end; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(10,26,74,.35); color: var(--on-cobalt-2); white-space: nowrap; }
.slot .when { grid-area: when; display: flex; flex-direction: column; gap: 2px; }
.slot .when small, .slot .rate small { font-size: 12px; color: var(--white); }
.slot .when span, .slot .rate span { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 19px; letter-spacing: -0.02em; }
.slot .rate { grid-area: rate; display: flex; flex-direction: column; gap: 2px; text-align: right; }
.slots .all { display: inline-flex; align-items: center; gap: 6px; align-self: center; font-size: 14px; color: var(--white); padding: 6px 10px; }
.slots .all:hover { color: var(--white); }

/* Initial badges: one bold colour per tutor type (identity, not action) */
.av { grid-area: av; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .02em; color: var(--ink); }
.av-student { background: var(--tier-student); }
.av-college { background: var(--tier-college); }
.av-pro { background: var(--tier-pro); }

/* Sections */
.band { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.band-deep { background: var(--cobalt-deep); isolation: isolate; }
.band-deep::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 9px, rgba(10,26,74,.08) 9px 12px); }
.band-navy { background: var(--navy); }
.band h2 { font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.band .sub { margin-top: 14px; max-width: 52ch; font-size: 18px; color: var(--on-cobalt-2); }

/* The ladder: three rungs, pros at the top */
.rungs { position: relative; margin-top: 56px; list-style: none; padding: 0 0 0 104px; }
.rungs::before, .rungs::after { content: ""; position: absolute; top: -28px; bottom: -28px; width: 4px; border-radius: 999px; background: rgba(255,255,255,.55); }
.rungs::before { left: 18px; }
.rungs::after { left: 70px; }
.rung { position: relative; border-top: 1px solid var(--hair); }
.rung:last-child { border-bottom: 1px solid var(--hair); }
.rung::before { content: ""; position: absolute; left: -86px; width: 56px; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px; background: rgba(255,255,255,.55); transition: background .3s var(--ease), transform .3s var(--ease); }
.rung:hover::before, .rung:focus-within::before { background: var(--white); transform: scaleY(1.6); }
.rung a {
  display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2fr) auto; gap: 12px 40px; align-items: center;
  padding: 30px 8px; text-decoration: none; transition: background .3s var(--ease), padding .3s var(--ease);
}
.rung a:hover { background: rgba(255,255,255,.07); padding-left: 20px; }
.rung h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.rung .tag { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--on-cobalt-3); }
.rung .key { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.rung p { font-size: 16px; color: var(--on-cobalt-2); max-width: 46ch; }
.rung p em { font-style: normal; color: var(--white); }
.rung .from { text-align: right; white-space: nowrap; }
.rung .from small { display: block; font-size: 12px; color: var(--on-cobalt-3); }
.rung .from span { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }

/* How it works: one line under the ladder */
.flow { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.flow h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -0.02em; }
.flow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 16px; color: var(--on-cobalt-2); }
.flow .arr { display: flex; color: var(--on-cobalt-3); }
.flow .chip { margin-left: 6px; font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(10,26,74,.3); border: 1px solid var(--hair); color: var(--white); white-space: nowrap; }
.flow .chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--white); margin-right: 7px; vertical-align: 1px; }

/* Safety */
.rules { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.rule { padding: 26px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 28px 1fr; gap: 4px 16px; }
.rule svg { grid-row: span 2; margin-top: 3px; color: var(--white); }
.rule h3 { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.rule p { color: var(--on-cobalt-2); font-size: 16px; max-width: 48ch; }
.todo, .rule .todo { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 14px; color: #7A4A00; background: #FFF4D6; padding: 2px 6px; border-radius: 6px; line-height: 1.8; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Tutor CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta .sh-circle { left: 47%; top: 14%; }
.cta .sh-tri { left: 63%; top: -8%; }
.cta .sh-square { left: 60%; top: 58%; }
.cta .sh-rungs { left: 86%; top: 8%; }
.cta .veil { background: linear-gradient(90deg, rgba(31,111,217,.96) 0%, rgba(31,111,217,.9) 36%, rgba(31,111,217,.3) 46%, rgba(31,111,217,0) 54%); }
.cta-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta h2 { max-width: 12ch; }

/* Footer */
.foot { background: var(--navy); color: var(--on-cobalt-3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-top: 28px; padding-bottom: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .nav-pill { display: none; }
  .hero-body { grid-template-columns: 1fr; padding-top: 48px; }
  .slots { max-width: 520px; }
  .rung a { grid-template-columns: 1fr auto; }
  .rung p { grid-column: 1 / -1; grid-row: 2; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rungs { padding-left: 52px; }
  .rungs::before { left: 4px; }
  .rungs::after { left: 32px; }
  .rung::before { left: -48px; width: 32px; }
  .hero-body { padding-top: 250px; }
  .hero .sh-circle, .cta .sh-circle { left: 38%; top: 70px; width: 190px; }
  .hero .sh-tri, .cta .sh-tri { left: 68%; top: 110px; width: 140px; }
  .hero .sh-square, .cta .sh-square { left: 6%; top: 150px; width: 100px; }
  .hero .sh-rungs, .cta .sh-rungs { left: 8%; top: 40px; width: 70px; gap: 14px; }
  .hero .sh-rungs i, .cta .sh-rungs i { height: 10px; }
  .hero .veil { background: linear-gradient(180deg, rgba(10,26,74,.6) 0, rgba(31,111,217,.04) 90px, rgba(31,111,217,.04) 270px, rgba(31,111,217,.94) 318px, rgba(31,111,217,.96) 100%); }
  .cta { padding-top: 230px; }
  .cta .sh-circle { top: 10px; } .cta .sh-tri { top: 40px; } .cta .sh-square { top: 70px; } .cta .sh-rungs { top: 20px; }
  .cta .veil { background: linear-gradient(180deg, rgba(31,111,217,.05) 0, rgba(31,111,217,.05) 170px, rgba(31,111,217,.92) 225px, rgba(31,111,217,.94) 100%); }
  .flow ol { flex-direction: column; align-items: flex-start; gap: 10px; }
  .flow .arr { display: none; }
  .nav-end .login { display: none; }
  .search { border-radius: 22px; }
  .search .btn { width: 100%; }
}

/* ============================================================
   App pages (search, profile, booking, apply): same world,
   built for tasks. Cobalt ground with a quiet reed texture,
   frosted navy panels, white type, lime only on the main action.
   ============================================================ */
body.app { min-height: 100vh; display: flex; flex-direction: column; }
body.app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px, rgba(10,26,74,.07) 9px 12px); }
body.app main { flex: 1; }
.topbar { position: relative; z-index: 3; padding-bottom: 8px; }
.topbar .nav { padding-top: 18px; }
.secure { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-cobalt-2); }

.page { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(72px, 9vw, 112px); }
.page-title { font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.page-sub { margin-top: 12px; font-size: 18px; color: var(--on-cobalt-2); max-width: 52ch; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 15px; text-decoration: none; color: var(--on-cobalt-2); }
.back:hover { color: var(--white); }
.back svg { transform: scaleX(-1); }

.split { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.split.filters-left { grid-template-columns: 300px minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sticky { position: sticky; top: 20px; }

.panel { background: rgba(10, 26, 74, .32); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.panel h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.panel .meta { font-size: 14px; color: var(--on-cobalt-2); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }

/* Badges, pills, chips */
.av-lg { width: 64px; height: 64px; font-size: 22px; }
.av-xl { width: 104px; height: 104px; font-size: 34px; }
.type-pill { display: inline-flex; align-items: center; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 26, 74, .45); border: 1px solid var(--hair); color: var(--white); white-space: nowrap; }
.open { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--white); white-space: nowrap; }
.open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.tag { display: inline-flex; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 26, 74, .24); border: 1px solid var(--hair); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--white); }
.stars svg { color: var(--white); }
.num-lg { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1; }
.num-lg small { font-family: var(--font); font-size: 14px; letter-spacing: 0; color: var(--on-cobalt-2); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--on-cobalt-2); }
.field input, .field select, .field textarea, .select {
  font: inherit; font-size: 16px; color: var(--white); background: rgba(10, 26, 74, .42);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 16px; padding: 12px 14px; width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-cobalt-3); }
.field input:hover, .field select:hover, .field textarea:hover, .select:hover { border-color: rgba(255, 255, 255, .5); }
.field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: var(--white); background: rgba(10, 26, 74, .6); box-shadow: 0 0 0 3px rgba(200, 245, 96, .45); }
.field select option, .select option { color: var(--ink); background: #fff; }
.field input[type="date"] { color-scheme: dark; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: 14px; color: var(--on-cobalt-2); }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; min-height: 28px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--white); }
input[type="range"] { width: 100%; accent-color: var(--white); }

/* Toggle chips and choices: selected inverts to solid white */
.toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 16px; font: inherit; font-size: 15px; color: var(--white); background: rgba(10, 26, 74, .22); border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.toggle:hover { border-color: rgba(255, 255, 255, .6); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle:has(input:checked), .toggle[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.toggle { position: relative; }
.choice-row { display: grid; gap: 8px; }
.choice-row .toggle { padding: 8px 6px; flex-direction: column; gap: 0; line-height: 1.2; }
.choice-row .toggle .dow { font-size: 12px; opacity: .85; }
.choice-row .toggle .dnum { font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }

/* Buttons on app pages */
.btn-block { width: 100%; min-height: 56px; font-size: 16px; }
.btn:disabled, .btn[aria-disabled="true"] { background: rgba(255, 255, 255, .1); border-color: var(--hair); color: var(--on-cobalt-3); cursor: not-allowed; transform: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--white); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Search results */
.result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: start; text-decoration: none; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.result:hover { background: rgba(10, 26, 74, .48); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.result .av { grid-area: auto; }
.result-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.result-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.result-name b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; }
.result-body p { font-size: 15px; color: var(--on-cobalt-2); }
.result-body .fine { font-size: 13px; color: var(--on-cobalt-3); }
.result-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.result-side .go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.results-bar .count { font-size: 15px; color: var(--on-cobalt-2); }
.results-bar .count b { color: var(--white); font-weight: 500; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-cobalt-2); }
.sort .select { width: auto; padding: 9px 12px; font-size: 14px; }
.empty { border-style: dashed; text-align: center; padding: 48px 24px; }
.empty b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.empty p { margin-top: 8px; color: var(--on-cobalt-2); }

/* Profile + booking */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.profile-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; }
.profile-head p { margin-top: 10px; font-size: 17px; color: var(--on-cobalt-2); max-width: 54ch; }
.profile-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--on-cobalt-2); }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.7; color: var(--on-cobalt-2); max-width: 68ch; }
.placeholder { border: 1px dashed rgba(255, 255, 255, .4); border-radius: 16px; padding: 26px; text-align: center; color: var(--on-cobalt-2); font-size: 15px; }
.booking { display: flex; flex-direction: column; gap: 22px; background: rgba(10, 26, 74, .5); }
.booking h3 { margin-bottom: 10px; }
.sumline { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--on-cobalt-2); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hair); }
.total span:first-child { font-size: 16px; }
.total span:last-child { font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fine { font-size: 13px; color: var(--on-cobalt-3); }
.center { text-align: center; }
dl.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 15px; }
dl.summary dt { color: var(--on-cobalt-2); }
dl.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* Notices + done state */
.notice { border-radius: 16px; padding: 16px 18px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.notice svg { flex: 0 0 auto; margin-top: 2px; }
.notice-error { background: rgba(255, 138, 122, .16); border: 1px solid rgba(255, 168, 156, .7); color: var(--white); }
.notice-consent { flex-direction: column; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .45); }
.notice-consent p { margin-top: 4px; font-size: 14px; color: var(--on-cobalt-2); }
.done { max-width: 620px; margin: 24px auto 0; padding: clamp(32px, 5vw, 52px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; background: rgba(10, 26, 74, .5); }
.done .mark { width: 72px; height: 72px; border-radius: 50%; background: var(--white); color: var(--cobalt); display: flex; align-items: center; justify-content: center; }
.done h1, .done h2 { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; }
.done p { color: var(--on-cobalt-2); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.done .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* Become a tutor */
.hero-tutor { min-height: 0; }
.hero-tutor .hero-body { grid-template-columns: minmax(0, 1fr); padding-top: 72px; padding-bottom: 88px; }
.hero-tutor h1 { max-width: 14ch; }
.perks { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.perk { padding: 24px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 28px 1fr; gap: 4px 16px; }
.perk svg { grid-row: span 2; margin-top: 3px; }
.perk h3 { font-weight: 500; font-size: 19px; }
.perk p { color: var(--on-cobalt-2); font-size: 16px; max-width: 46ch; }
.who { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.who h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 14px; }
.who ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--on-cobalt-2); }
.who .key { width: 12px; height: 12px; border-radius: 50%; }
.apply form { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.payout { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 14px; color: var(--on-cobalt-2); padding-bottom: 6px; }
.payout b { color: var(--white); font-weight: 500; font-family: var(--display); font-size: 18px; }

@media (max-width: 960px) {
  .split, .split.filters-left { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .perks, .who { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .panel { padding: 20px; }
  .result { grid-template-columns: auto minmax(0, 1fr); }
  .result-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .hero-tutor .hero-body { padding-top: 220px; padding-bottom: 64px; }
}
.dotkey { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.range-head { display: flex; justify-content: space-between; }
.range-head b { color: var(--white); font-weight: 500; font-family: var(--display); font-variant-numeric: tabular-nums; }
.hero-tutor h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.hero-tutor .lede { max-width: 46ch; }
.hidden { display: none !important; }
.filters-toggle { display: none; width: 100%; list-style: none; }
.filters-toggle::-webkit-details-marker { display: none; }
@media (max-width: 960px) {
  .filters-toggle { display: inline-flex; }
  .filters[open] .filters-toggle { margin-bottom: 22px; }
}

/* Review fixes: honest states, phone order, themed browser controls */
.btn:disabled, .btn[aria-disabled="true"] { background: transparent; border: 1px dashed rgba(255, 255, 255, .45); color: var(--on-cobalt-3); }
.who .keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -6px 0 14px; font-size: 14px; color: var(--on-cobalt-2); }
.who .keys > span { display: inline-flex; align-items: center; gap: 8px; }
.apply #form-view, .apply #done-view { max-width: 820px; }
.apply #done-view { margin-left: 0; }

.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: 0 0 auto; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 6px; background: rgba(10, 26, 74, .3) no-repeat center / 14px; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.check input:hover { border-color: var(--white); }
.check input:checked { background-color: var(--white); border-color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.field select, .select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .85; cursor: pointer; }
input[type="range"] { appearance: none; -webkit-appearance: none; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .35); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 2px 6px rgba(10, 26, 74, .35); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .35); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 0; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--lime); outline-offset: 3px; }
.filters-toggle { gap: 10px; }

@media (max-width: 960px) {
  .summary-first > aside { order: -1; }
  .profile-split > .stack { display: contents; }
  .profile-split > aside { order: 1; }
  .profile-split > .stack > :not(.profile-head) { order: 2; }
  aside.panel:has(.filters:not([open])) { background: none; border: 0; padding: 0; }
}

/* Review pass 2 */
.sort .select { padding: 9px 40px 9px 12px; background-position: right 12px center; }
.field input[type="range"] { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Phone menu */
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; gap: 8px; padding: 0 16px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; display: flex; flex-direction: column; padding: 8px; border-radius: var(--radius); background: rgba(10, 26, 74, .96); border: 1px solid var(--glass-edge); box-shadow: 0 18px 40px rgba(10, 26, 74, .45); }
.nav-menu-panel a { padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--white); font-size: 15px; }
.nav-menu-panel a:hover, .nav-menu-panel a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
@media (max-width: 960px) { .nav-menu { display: block; } }

/* Invalid fields after the user has interacted */
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: rgba(255, 168, 156, .9); }
.field input:disabled { opacity: .6; }
.logo, .nav-end .btn { white-space: nowrap; }
@media (max-width: 480px) { .nav-end > .btn-glass[href="tutors.html"] { display: none; } }

/* Legal pages (terms, privacy): reading layout */
.notice-draft { margin-top: 28px; max-width: 880px; background: rgba(10, 26, 74, .5); border: 1px solid rgba(255, 244, 214, .55); color: var(--white); }
.legal { margin-top: 40px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 24px; font-size: 14px; }
.legal-toc > p:first-child { color: var(--on-cobalt-3); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.legal-toc ol a { display: block; padding: 7px 0 7px 16px; border-left: 2px solid var(--hair); color: var(--on-cobalt-2); text-decoration: none; }
.legal-toc ol a:hover { color: var(--white); border-left-color: var(--white); }
.legal-other { margin-top: 20px; color: var(--on-cobalt-3); }
.legal-other a { color: var(--white); }
.legal-body { max-width: 70ch; font-size: 17px; line-height: 1.7; color: var(--on-cobalt-2); }
.legal-intro { font-size: 19px; color: var(--white); margin-bottom: 8px; }
.legal-body section { padding-top: 40px; scroll-margin-top: 24px; }
.legal-body h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; color: var(--white); margin-bottom: 14px; }
.legal-body h3 { font-size: 17px; font-weight: 500; color: var(--white); margin: 20px 0 6px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-body ul ul { margin-top: 10px; gap: 6px; }
.legal-body b { color: var(--white); font-weight: 500; }
.legal-body a { color: var(--white); }
.foot a[aria-current="page"] { color: var(--white); }
.agree { margin-top: 12px; }
.agree a { color: var(--white); }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; gap: 2px 16px; }
  .legal-toc ol a { padding-left: 0; border-left: 0; }
}
.legal-body ul + p, .legal-body p + ul { margin-top: 14px; }

/* Coming-soon page */
.hero-soon { min-height: 100svh; }
.hero-soon .hero-body { grid-template-columns: minmax(0, 760px); align-items: center; padding-top: 48px; padding-bottom: 72px; }
.soon-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(10, 26, 74, .45); border: 1px solid var(--hair); }
.waitlist { margin-top: 32px; padding: 14px; border-radius: 28px; background: rgba(10, 26, 74, .38); display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.who-row { display: flex; flex-wrap: wrap; gap: 8px; }
.who-row .toggle { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 999px; }
.join-row { display: flex; flex-wrap: wrap; gap: 8px; }
.join-row .email { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; padding: 8px 18px; border-radius: 22px; background: rgba(10, 26, 74, .35); border: 1px solid var(--hair); }
.join-row .email:focus-within { border-color: var(--white); }
.join-row .email small { font-size: 12px; color: var(--white); }
.join-row .email input { font: inherit; font-size: 17px; color: var(--white); background: transparent; border: 0; outline: none; padding: 2px 0; width: 100%; }
.join-row .email input::placeholder { color: var(--on-cobalt-3); }
.join-row .btn { min-height: 60px; padding: 0 28px; font-size: 16px; flex: 0 0 auto; }
.join-row .btn:disabled { background: var(--lime); color: var(--ink); border: 0; opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.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; }
.form-msg { min-height: 0; font-size: 14px; color: var(--white); padding: 0 6px; }
.form-msg:empty { display: none; }
.joined { margin-top: 32px; max-width: 680px; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 24px; background: rgba(10, 26, 74, .45); }
.joined .mark { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--cobalt); display: flex; align-items: center; justify-content: center; }
.joined b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.joined p { color: var(--on-cobalt-2); margin-top: 2px; }
.soon-fine { margin-top: 14px; font-size: 13px; color: var(--on-cobalt-2); text-shadow: 0 1px 12px rgba(10, 26, 74, .6); }
.soon-keys { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--white); text-shadow: 0 1px 12px rgba(10, 26, 74, .6); }
.soon-keys li { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .hero-soon .hero-body { padding-top: 220px; }
  .join-row .btn { width: 100%; }
}
.soon-tag { white-space: nowrap; }
.soon-tag .short { display: none; }
@media (max-width: 560px) { .soon-tag .long { display: none; } .soon-tag .short { display: inline; } }
