/* TeachUsConnect website. Brand: navy #11164E, blue #017DFE, teal #00C8CC. */
:root {
  --ink: #EEF1FF; --ink2: #C4C9EA; --muted: #9BA2CF;
  --blue: #017DFE; --blue-text: #6FB4FF; --teal: #00C8CC; --teal-deep: #38E0E3;
  --orange: #FF7A45; --gold: #FFB020; --pink: #E5487A; --green: #2EC27E; --purple: #8B5CF6;
  --sun: #FFB627;
  --paper: #070B2E; --white: #141A55; --line: rgba(255,255,255,.10); --soft: #1A2266;
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #EEF1FF; --ink2: #C4C9EA; --muted: #9BA2CF; --blue-text: #6FB4FF; --teal-deep: #38E0E3;
    --paper: #0A0E33; --white: #11164E; --line: #283070; --soft: #172061; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper) url('/img/stars.svg') repeat; background-attachment: fixed; color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-text); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.025em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: 21px; line-height: 1.55; color: var(--ink2); max-width: 36em; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark img { width: 44px; height: auto; }
.mark span { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.mark sup { font-size: 10px; font-weight: 600; margin-left: 1px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink2); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 700 16px var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #0067D6; }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.menu { display: none; }
@media (max-width: 900px) {
  .top nav { display: none; }
  .top nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .top nav.open a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu { display: inline-flex; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 700 15px var(--body); color: var(--ink); }
  .top .btn.primary { display: none; }
}

/* Hero: search first */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero { padding: 64px 0 28px; }
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: 18px; }
.search { display: flex; gap: 8px; margin-top: 30px; max-width: 760px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 6px; }
.search:focus-within { border-color: var(--blue); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 18px var(--body); padding: 10px 18px; outline: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.areas { margin-top: 10px; }
.chips.areas button { padding: 6px 13px; font-size: 14px; }
.chips button, .seg button { white-space: nowrap; background: var(--white); color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 15px var(--body); cursor: pointer; }
.chips button:hover, .seg button:hover { border-color: var(--ink); color: var(--ink); }
.chips button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Advertisement slider, filled from the console */
.slider { position: relative; margin: 0 0 36px; border-radius: 22px; overflow: hidden; background: var(--ink); }
.slider[hidden] { display: none; }
.track { display: flex; transition: transform .5s ease; }
.slide { flex: 0 0 100%; min-height: 220px; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; text-decoration: none; position: relative; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,51,.82), rgba(10,14,51,.25) 70%, transparent); }
.slide.plain::before { background: linear-gradient(120deg, #11164E, #0158B8); }
.slide .say { position: relative; padding: 32px 64px; max-width: 640px; }
.slide b { display: block; font: 800 clamp(22px, 2.8vw, 34px)/1.15 var(--display); letter-spacing: -.02em; }
.slide p { margin-top: 8px; color: #DDE3FF; font-size: 17px; }
.slide .go { display: inline-block; margin-top: 16px; background: #fff; color: #11164E; border-radius: 999px; padding: 9px 18px; font: 700 15px var(--body); }
.slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #11164E; font: 700 24px/1 var(--body); cursor: pointer; }
.slider .prev { left: 12px; } .slider .next { right: 12px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; width: 26px; border-radius: 6px; }
.slider.one .nav, .slider.one .dots { display: none; }
@media (max-width: 640px) { .slide { min-height: 180px; } .slide .say { padding: 24px 24px 36px; } .slider .nav { display: none; } }

/* Marketplace */
.market { padding: 20px 0 72px; }
.mhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.mhead h2 { font-size: clamp(24px, 2.6vw, 32px); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: flex; gap: 6px; }
#sort { font: 600 15px var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
.count { color: var(--muted); font-size: 15px; margin: 10px 0 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: inherit; }
.card:hover { border-color: var(--blue); box-shadow: 0 10px 28px rgba(17,22,78,.10); }
.card .tint { height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 16px; color: #fff; font: 700 14px var(--body); position: relative; }
.card .tint .sub { margin-right: auto; padding-left: 92px; }
.face { position: absolute; left: 16px; top: 22px; width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--white); background: var(--soft); color: var(--blue-text); display: grid; place-items: center; font: 800 30px var(--display); object-fit: cover; }
.card .in { padding-top: 46px !important; }
.card .tint .kind { background: rgba(255,255,255,.2); border-radius: 999px; padding: 3px 10px; }
.card .in { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 18px; }
.who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--muted); font-size: 14px; }
.who b { color: var(--ink); font: 700 16px var(--display); }
.meta { color: var(--muted); font-size: 14px; }
.card .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price { font: 800 19px var(--display); }
.price small { font: 500 13px var(--body); color: var(--muted); }
.star { font-weight: 700; font-size: 14px; color: var(--ink); }
.new { font-weight: 600; font-size: 13px; color: var(--teal-deep); }
.empty { grid-column: 1 / -1; background: var(--white); border: 1px dashed var(--line); border-radius: 18px; padding: 36px 28px; max-width: 760px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--ink2); margin-top: 10px; }
.empty .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
section.trust { padding: 0 0 72px; }
section.trust .facts { margin-top: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two .head { margin: 0; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 32px; } .search input { font-size: 16px; padding: 8px 12px; } }
dialog { border: 0; border-radius: 22px; padding: 28px; width: min(560px, 92vw); background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgba(8,10,40,.55); }
dialog .x { float: right; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
dialog h3 { font-size: 24px; margin-top: 8px; clear: both; }
dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0; font-size: 16px; }
dialog dt { color: var(--muted); } dialog dd { margin: 0; }
dialog .btn { margin-top: 6px; }

.bridge { background: var(--ink); color: #EEF1FF; border-radius: 28px; padding: 30px 30px 26px; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .bridge { background: #050829; border: 1px solid var(--line); } }
.bridge h3 { color: #fff; font-size: 22px; letter-spacing: -.01em; }
.bridge .ask { color: #B9C0EC; font-size: 16px; margin-top: 6px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.cities button { background: rgba(255,255,255,.08); color: #E4E8FF; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 14px; font: 600 15px var(--body); cursor: pointer; }
.cities button[aria-pressed="true"] { background: var(--teal); color: #032B33; border-color: var(--teal); }
.span { display: grid; grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr); align-items: center; gap: 12px; }
.end b { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(28px, 3.3vw, 46px); line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.end small { display: block; color: #B9C0EC; font-size: 15px; margin-top: 8px; }
.end.you { text-align: right; }
.end.you b { color: var(--teal); }
.wire { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--sun) 0 8px, transparent 8px 14px); position: relative; }
.wire::after { content: ''; position: absolute; right: -2px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,182,39,.0); transform: scale(1.15); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255,182,39,.5); } }
.slots { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
.slots p { color: #B9C0EC; font-size: 15px; }
.slots ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.slots li { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.slots li span:last-child { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.slots li span:last-child { text-align: right; }
.slots li.good span:last-child::after { content: 'good fit'; display: block; color: var(--teal); font-weight: 600; font-size: 13px; }

/* Facts under the hero */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 20px 0 0; }
.facts b { font-family: var(--display); font-size: 20px; display: block; }
.facts span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Sections */
section.band { padding: 96px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 44px; }
.head p { margin-top: 16px; color: var(--ink2); font-size: 19px; }

/* Categories: a directory, not cards */
.dir { columns: 3 300px; column-gap: 48px; }
.dir details { break-inside: avoid; border-top: 1px solid var(--line); padding: 14px 0; }
.dir summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.dir summary::-webkit-details-marker { display: none; }
.dir summary::after { content: '+'; color: var(--blue-text); font-weight: 400; font-size: 24px; line-height: 1; }
.dir details[open] summary::after { content: '−'; }
.dir p { color: var(--muted); font-size: 16px; margin-top: 8px; }

/* Steps: a real sequence */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--blue); display: block; margin-bottom: 12px; }
.steps p { color: var(--ink2); font-size: 17px; margin-top: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Two column feature text */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.checks li::before { content: ''; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032B33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks b { display: block; font-size: 18px; }
.checks span { color: var(--ink2); font-size: 17px; }

/* Money held until the class happens */
.held { border: 2px solid var(--ink); border-radius: 22px; padding: 28px; background: var(--white); }
.held ol { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.held li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line); font-size: 17px; }
.held li b { font-family: var(--display); }

/* Teachers band */
.teach { background: var(--ink); color: #E4E8FF; }
@media (prefers-color-scheme: dark) { .teach { background: #050829; } }
.teach h2, .teach h3 { color: #fff; }
.teach .head p, .teach p { color: #C4C9EA; }
.teach .steps li { border-color: var(--teal); }
.teach .steps li::before { color: var(--teal); }
.teach .steps p { color: #C4C9EA; }
.teach .btn.primary { background: var(--teal); color: #032B33; }
.teach .btn.ghost { border-color: #fff; color: #fff; }
.teach .btn.ghost:hover { background: #fff; color: var(--ink); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 20px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 10px; color: var(--ink2); }

/* Footer */
footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
footer img { width: 150px; }
footer h3 { font-size: 16px; margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: var(--ink2); text-decoration: none; font-size: 16px; }
footer a:hover { text-decoration: underline; }
footer .legal { margin-top: 40px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* Legal pages */
.doc { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink2); }
.doc p + p { margin-top: 12px; }
.doc .updated { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* Teacher page and Foundation page */
.x-page { padding: 40px 0 64px; }
.x-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.x-avatar { width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(135deg,#017DFE,#00C8CC); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 34px 'Plus Jakarta Sans', sans-serif; overflow: hidden; flex-shrink: 0; }
.x-avatar img { width: 100%; height: 100%; object-fit: cover; }
.x-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.x-stat { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.x-stat b { display: block; font: 800 28px 'Plus Jakarta Sans', sans-serif; }
.x-list { display: grid; gap: 12px; }
.x-item { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.x-item h3 { margin: 0 0 4px; font-size: 18px; }
.x-muted { color: var(--muted, #5E6590); }
.x-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.x-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.x-form input, .x-form select, .x-form textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: inherit; }
.x-form .wide { grid-column: 1 / -1; }
.x-form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.x-form legend { font: 700 17px 'Plus Jakarta Sans', sans-serif; margin-bottom: 8px; }
.x-note { padding: 14px 16px; border-radius: 14px; margin: 16px 0; }
.x-note.ok { background: #E3F7EC; color: #13542D; }
.x-note.bad { background: #FFE3E3; color: #8A1C1C; }
.x-hp { position: absolute; left: -9999px; }


/* 2.0: 3D hero, aurora, live wall */
.hero { position: relative; overflow: hidden; }
.aurora { position: absolute; inset: -20% -10% auto; height: 140%; pointer-events: none; z-index: 0;
  background: radial-gradient(40% 50% at 15% 20%, rgba(1,125,254,.22), transparent 70%), radial-gradient(35% 45% at 85% 30%, rgba(0,200,204,.22), transparent 70%);
  animation: aur 18s ease-in-out infinite alternate; }
@keyframes aur { from { transform: translate3d(0,0,0) } to { transform: translate3d(3%,4%,0) } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-3d { position: relative; perspective: 900px; min-height: 340px; }
.hero-3d .h-main { width: 112%; max-width: none; margin-left: -6%; height: auto; transform-style: preserve-3d; transition: transform .25s ease-out; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(1,125,254,.25)); }
.hero-3d .h-orb { position: absolute; width: 22%; height: auto; animation: bob 4.2s ease-in-out infinite; filter: drop-shadow(0 14px 20px rgba(17,22,78,.25)); }
.h-orb.o1 { left: -4%; top: 4%; animation-delay: -1s; } .h-orb.o2 { right: -2%; bottom: 2%; animation-delay: -2.3s; } .h-orb.o3 { left: 8%; bottom: -6%; width: 18%; animation-delay: -3.1s; }
@keyframes bob { 0%,100% { translate: 0 0 } 50% { translate: 0 -12px } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-3d { order: -1; min-height: 0; max-width: 420px; margin: 0 auto -10px; } }
.facts img { width: 72px; height: 72px; margin-bottom: 6px; }
.livewall { padding: 8px 0 24px; }
.lw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lw-head h2 { font-size: clamp(24px, 2.6vw, 32px); display: flex; align-items: center; gap: 10px; }
.lw-head p { color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(229,72,77,0) } }
.lw-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; padding: 8px 14px 34px; margin: 0 -14px; scroll-snap-type: x mandatory; scroll-padding: 14px; }
.lw-card { position: relative; scroll-snap-align: start; border-radius: 26px; padding: 18px; min-height: 210px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--white) 92%, var(--blue)), var(--white)); border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(1,125,254,.10); transition: transform .2s; overflow: hidden; }
.lw-card:hover { transform: translateY(-4px); }
.lw-card.live { background: linear-gradient(145deg, color-mix(in srgb, var(--white) 82%, #E5484D), var(--white)); }
.lw-card img { position: absolute; right: -10px; top: -8px; width: 110px; height: 110px; animation: bob 4.5s ease-in-out infinite; }
.lw-when { align-self: flex-start; background: rgba(17,22,78,.82); color: #fff; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.lw-card.live .lw-when { background: #E5484D; }
.lw-title { margin-top: auto; font: 800 19px/1.2 var(--display); max-width: 85%; }
.lw-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.lw-meta b { color: var(--ink); }
.top nav a, .btn { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 901px) { .top .wrap { gap: 18px; } .top nav { gap: 16px; } .top nav a { font-size: 15px; } .top nav a.opt { display: none; } }


/* 2.0 look, matching the app: deep space, glass, warm accents */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 40% at 10% 0%, rgba(1,125,254,.30), transparent 70%), radial-gradient(40% 40% at 95% 25%, rgba(0,200,204,.22), transparent 70%),
              radial-gradient(40% 35% at 5% 95%, rgba(255,122,69,.16), transparent 70%), radial-gradient(35% 30% at 80% 90%, rgba(139,92,246,.18), transparent 70%); }
.top { background: rgba(7,11,46,.72); }
.card, .x-stat, .x-item, .held, .empty, .lw-card, dialog, .search { background: linear-gradient(145deg, rgba(30,38,110,.78), rgba(20,26,85,.62)); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.10); }
.card { border-radius: 24px; box-shadow: 0 18px 40px rgba(1,125,254,.12); }
.card:hover { border-color: var(--teal); box-shadow: 0 18px 44px rgba(0,200,204,.22); transform: translateY(-3px); }
.card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.search { border: 1px solid rgba(255,255,255,.18); }
.btn.primary { background: linear-gradient(135deg, #017DFE, #00C8CC); box-shadow: 0 10px 26px rgba(1,125,254,.35); }
.btn.primary:hover { filter: brightness(1.08); }
.facts > div { background: linear-gradient(145deg, rgba(30,38,110,.7), rgba(20,26,85,.5)); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: 18px; }
.facts > div:nth-child(1) { box-shadow: inset 0 0 0 1px rgba(255,176,32,.25); } .facts > div:nth-child(2) { box-shadow: inset 0 0 0 1px rgba(46,194,126,.25); }
.facts > div:nth-child(3) { box-shadow: inset 0 0 0 1px rgba(229,72,122,.25); } .facts > div:nth-child(4) { box-shadow: inset 0 0 0 1px rgba(139,92,246,.3); }
.lw-card:nth-child(6n+1) { background: linear-gradient(145deg, rgba(255,122,69,.30), rgba(20,26,85,.7)); }
.lw-card:nth-child(6n+2) { background: linear-gradient(145deg, rgba(255,176,32,.28), rgba(20,26,85,.7)); }
.lw-card:nth-child(6n+3) { background: linear-gradient(145deg, rgba(229,72,122,.28), rgba(20,26,85,.7)); }
.lw-card:nth-child(6n+4) { background: linear-gradient(145deg, rgba(46,194,126,.26), rgba(20,26,85,.7)); }
.lw-card:nth-child(6n+5) { background: linear-gradient(145deg, rgba(139,92,246,.30), rgba(20,26,85,.7)); }
.lw-card:nth-child(6n) { background: linear-gradient(145deg, rgba(0,200,204,.26), rgba(20,26,85,.7)); }
.lw-card.live { background: linear-gradient(145deg, rgba(229,72,77,.42), rgba(20,26,85,.7)) !important; }
.aurora { display: none; }
section.alt { background: rgba(20,26,85,.35); }

/* Opening: the logo flies in from every direction and assembles (first visit in a session) */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(65% 60% at 50% 45%, #FFFFFF, #E4EDFF 60%, #C9D8FF); transition: opacity .6s ease .1s; }
.intro[hidden] { display: none !important; }
.intro.done { opacity: 0; pointer-events: none; }
/* Safety net: even if a script never runs, the intro fades away by itself and never blocks the page. */
.intro { animation: introAway .6s ease 4.2s forwards; }
@keyframes introAway { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro .v2 { position: absolute; left: 50%; top: 104%; transform: translateX(-50%); font: 800 clamp(22px, 4.4vw, 34px)/1 var(--display); letter-spacing: -.02em;
  padding: 6px 16px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #017DFE, #00C8CC); box-shadow: 0 10px 26px rgba(1,125,254,.35); opacity: 0; animation: v2pop .6s cubic-bezier(.2,.9,.25,1.3) 1.55s forwards; }
@keyframes v2pop { from { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-12deg); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); } }
.intro .logo { position: relative; width: min(70vw, 460px); aspect-ratio: 2756 / 2210; perspective: 900px; }
.intro .logo img { position: absolute; height: auto; opacity: 0; transform-style: preserve-3d; animation: fly 1.25s cubic-bezier(.2,.9,.25,1.15) forwards; }
.intro .glow { position: absolute; inset: 18% 24% 40%; border-radius: 50%; background: radial-gradient(circle, rgba(0,200,204,.35), transparent 70%); opacity: 0; animation: glow 1.2s ease 1.5s forwards; }
.intro .ring { position: absolute; left: 50%; top: 32%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 2px solid rgba(1,125,254,.55); opacity: 0; animation: ring 1s ease-out 1.7s forwards; }
.intro .bar { position: absolute; left: 50%; bottom: 14vh; width: 180px; height: 4px; margin-left: -90px; border-radius: 4px; background: rgba(17,22,78,.12); overflow: hidden; }
.intro .bar::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #017DFE, #00C8CC); animation: load 2.6s ease forwards; }
@keyframes fly { from { opacity: 0; transform: translate3d(var(--x), var(--y), 0) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--s)); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes glow { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .5; } }
@keyframes ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(60); } }
@keyframes load { to { width: 100%; } }

.d-acts { display: flex; gap: 10px; flex-wrap: wrap; }

.hdr-signin { color: var(--ink); font-weight: 700; text-decoration: none; margin-right: 14px; white-space: nowrap; }
.hdr-signin:hover { color: #00C8CC; }
/* Sign in / Join free: in the header on wide screens, inside Menu on phones. */
.top nav .nav-acct { display: none; }
@media (max-width: 900px) {
  .hdr-signin { display: none; }
  .top nav.open .nav-acct { display: block; font-weight: 800; color: #00C8CC; }
  .top .btn.primary { display: inline-flex; padding: 9px 14px; font-size: 14px; margin-left: 8px; }
  .menu { margin-left: auto; }
}
@media (max-width: 480px) { .top .btn.primary { display: none; } }
@media (max-width: 900px) { .top:not(:has(nav)) .hdr-signin { display: inline; margin-left: auto; } }

/* Student plans: three cards, the middle one lifted. */
.plan-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 28px; }
.plan-switch button { border: 0; background: transparent; color: var(--ink2); font: 700 15px var(--body); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.plan-switch button.on { background: var(--blue); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.plan h3 { font: 800 26px var(--display); margin: 0 0 4px; }
.plan.p-spark h3 { color: var(--teal-deep); } .plan.p-star h3 { color: var(--gold); } .plan.p-rocket h3 { color: var(--orange); }
.plan-tag { color: var(--ink2); margin: 0 0 18px; min-height: 48px; }
.plan-price { margin: 0; color: var(--muted); } .plan-price b { font: 800 44px var(--display); color: var(--ink); letter-spacing: -.02em; }
.plan-note { color: var(--green); font-weight: 600; margin: 6px 0 18px; min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 28px; color: var(--ink2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) scale(.8); }
.plan .btn { justify-content: center; }
.plan.best { border: 2px solid var(--gold); background: linear-gradient(180deg, rgba(255,176,32,.12), var(--white) 42%); box-shadow: 0 18px 60px rgba(255,176,32,.18); transform: translateY(-10px); }
.plan.best:hover { transform: translateY(-16px); }
.plan-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1200; font: 800 13px var(--body); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plans-foot { color: var(--muted); margin-top: 26px; max-width: 760px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan.best { transform: none; } .plan.best:hover { transform: translateY(-6px); } .plan-tag { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .plan, .plan:hover, .plan.best:hover { transition: none; transform: none; } }

/* The Plans link in the top menu stands out in gold. */
#nav a.nav-plans { color: var(--gold); font-weight: 700; }
/* Four plan lengths (1, 3, 6, 12 months): wrap neatly on narrow phones. */
.plan-switch { flex-wrap: wrap; justify-content: center; max-width: 100%; }
@media (max-width: 520px) { .plan-switch { border-radius: 18px; } .plan-switch button { padding: 8px 12px; font-size: 14px; } }

/* Seasonal look (season.js): snow over the page, a hat on the logo, a switch to turn it off. */
canvas.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.santa-hat { position: absolute; left: -9px; top: -11px; transform: rotate(-18deg); pointer-events: none; line-height: 0; }
.season-switch { position: fixed; left: 14px; bottom: 14px; z-index: 61; border: 0; border-radius: 999px; padding: 8px 14px;
  background: #0F2A1D; color: #F5CD6A; font: 600 14px/1 system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }
.season-switch:focus-visible { outline: 3px solid #F2C14E; outline-offset: 2px; }
