:root {
  color-scheme: light;
  --ink: #0a1129; --blue: #084af1; --border: #bed7f7; --muted: #465977;
  --light: #f2f8ff;
  font-family: Arial, "Helvetica Neue", sans-serif; color: var(--ink); background: #f6faff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #104bee; outline-offset: 4px; }
a { color: var(--blue); text-underline-offset: 3px; }
.bound { width: min(100%, 1380px); margin-inline: auto; }
.skip { position: absolute; z-index: 4; left: 12px; top: -75px; background: white; padding: 10px; }
.skip:focus { top: 8px; }
.site-head { background: linear-gradient(110deg, #fff 8%, #edf6ff 75%, #e3f1ff); border-bottom: 1px solid #deebfb; }
.nav-inner { min-height: 71px; padding: 0 clamp(26px,4.7vw,68px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .41em; color: inherit; text-decoration: none; font-size: clamp(22px,2.1vw,31px); font-weight: 750; line-height: 1.15; letter-spacing: -.055em; white-space: nowrap; }
.brand img { display:block; width:1.55em; height:auto; }
.site-head nav { display:flex; gap:clamp(20px,4vw,63px); }
.site-head nav a { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; color:inherit; font-weight:650; font-size:clamp(16px,1.35vw,20px); letter-spacing:-.02em; }
.site-head a:hover { color:var(--blue); }
.hero { overflow:hidden; position:relative; isolation:isolate;
  background: radial-gradient(ellipse at 82% 55%,#b1dfff 0%,#d8ecff 32%,transparent 66%),linear-gradient(110deg,#f8fbff 5%,#e8f3ff 65%,#d4ebff); }
.hero::before, .hero::after { content:""; position:absolute; z-index:-1; width:105%; height:47%; border-radius:50%; border-top:2px solid #ffffffd8; transform:rotate(-16deg); top:41%; left:-2%; box-shadow:0 -17px 25px -20px #8ecbffab; pointer-events:none; }
.hero::after { top:88%; left:-5%; transform:rotate(-6deg); background:#f9fcff77; }
.hero-inner { position:relative; display:grid; grid-template-columns: 43% 57%; align-items:center; padding:clamp(34px,4.1vw,60px) clamp(20px,3.5vw,54px) clamp(28px,3.4vw,50px); }
.hero-copy { z-index:1; }
.hero h1 { margin:0; font-size:clamp(42px,5.15vw,71px); font-weight:750; line-height:1.03; letter-spacing:-.06em; }
.hero h1 span { display:block; }
.lead { margin:clamp(13px,1.5vw,24px) 0 clamp(23px,2.8vw,39px); font-size:clamp(19px,1.92vw,28px); line-height:1.21; letter-spacing:-.032em; }
.setup { max-width:min(96%,490px); }
.roles { display:grid; grid-template-columns:1.12fr 1fr; border:1px solid #9fbefa; background:#ffffffc4; border-radius:12px; margin:0 0 16px; overflow:hidden; }
.roles button { min-height:clamp(43px,3.7vw,52px); padding:7px 12px; border:0; border-radius:10px; background:transparent; color:var(--ink); font-weight:650; font-size:clamp(15px,1.3vw,19px); }
.roles button[aria-selected="true"] { background:var(--blue); color:#fff; }
.roles button:focus-visible { outline-offset:-4px; outline-color:#73baff; }
.setup-card { border:1px solid #dae8fc; border-radius:19px; background:linear-gradient(110deg,#fff,#f3f9ff); box-shadow:0 7px 22px -13px #4b87c366; padding:clamp(17px,1.8vw,27px); }
.setup label:not(.check), .join-strip label { display:block; font-weight:700; font-size:clamp(15px,1.42vw,20px); margin-bottom:9px; letter-spacing:-.027em; }
.lesson-home input[type="text"], #quick-code { display:block; width:100%; border:1px solid #9cb4d8; border-radius:9px; min-height:clamp(44px,4vw,56px); padding:10px 15px; font-size:clamp(16px,1.48vw,21px); color:var(--ink); background:#fff; }
input::placeholder { color:#65758d; opacity:1; }
#code-input, #quick-code { letter-spacing:.09em; text-transform:uppercase; }
.form-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:17px; }
.action { display:inline-flex; align-items:center; justify-content:center; min-height:clamp(44px,4vw,54px); border:1px solid var(--blue); border-radius:10px; padding:10px clamp(18px,2.5vw,36px); font-size:clamp(16px,1.4vw,20px); font-weight:650; line-height:1.16; text-decoration:none; }
.primary { background:var(--blue); color:#fff; }
.primary:hover { background:#053bc9; }
.action:disabled { opacity:.7; cursor:wait; }
.form-actions .primary { flex:1; }
.text-link { color:#0c42c0; background:transparent; border:0; padding:8px 0 8px 8px; text-decoration:underline; text-underline-offset:3px; font-size:clamp(14px,1.17vw,17px); font-weight:600; }
.camera-options { margin-top:10px; font-size:13px; color:#425a79; }
.camera-options summary { cursor:pointer; width:fit-content; padding:3px 0; }
.check { display:flex; gap:8px; align-items:center; margin-top:7px; }
.check input { width:18px; height:18px; accent-color:var(--blue); }
.error { color:#922d32; font-size:14px; margin:10px 0 0; }
.hint, .free { color:var(--muted); line-height:1.4; }
.hint { font-size:14px; margin:10px 0 0; }
.free { font-size:clamp(14px,1.25vw,17px); margin:12px 5px 0; }
.resume { display:inline-flex; margin:10px 5px 0; font-weight:650; }
.hero-visual { position:relative; margin:0 -1.8% 0 0; min-width:0; }
.hero-visual > img { width:100%; height:auto; display:block; }
.hero-visual figcaption { color:#465d78; font-size:12px; text-align:right; padding-right:4%; }
.lower { padding:clamp(22px,2.9vw,42px) clamp(19px,2.5vw,37px) clamp(28px,3.2vw,48px); }
.how > h2 { margin:0 0 clamp(16px,2vw,28px) clamp(0px,1vw,15px); font-size:clamp(30px,3.8vw,54px); line-height:1.05; letter-spacing:-.055em; }
.how ol { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,1.35vw,20px); }
.how li { display:flex; align-items:center; padding:clamp(15px,1.55vw,24px); gap:clamp(12px,1.4vw,22px); min-height:clamp(143px,14vw,198px); border:1px solid var(--border); border-radius:20px; background:linear-gradient(114deg,#fcfdff,#eef6ff); box-shadow:inset 0 0 0 1px #ffffffb0; }
.how li img { width:clamp(64px,8.8vw,126px); max-width:32%; height:auto; flex:none; }
.how h3, .join-strip h2 { margin:0; font-size:clamp(21px,2vw,29px); letter-spacing:-.046em; line-height:1.1; }
.how p, .join-strip p { margin:.55em 0 0; font-size:clamp(15px,1.34vw,19px); line-height:1.31; letter-spacing:-.019em; }
.join-strip { margin-top:clamp(20px,2.8vw,40px); padding:clamp(22px,2.6vw,38px); display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:24px; background:linear-gradient(109deg,#f8fbff 0%,#eff7ff 45%,#cfe6ff); border:1px solid #cee2fc; border-radius:19px; }
.join-strip h2 { font-size:clamp(23px,2.5vw,35px); }
.join-strip form { display:grid; grid-template-columns: minmax(85px,1fr) auto; align-items:end; gap:8px 12px; }
.join-strip .error { grid-column:1 / -1; }
.site-footer { background:linear-gradient(110deg,#132953,#112449 68%,#172e56); color:white; }
.foot-inner { display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr; gap:clamp(18px,3.5vw,52px); padding:clamp(26px,2.8vw,40px) clamp(23px,4.5vw,64px); }
.foot-brand { border-right:1px solid #5a6d8e; }
.foot-brand .brand { font-size:clamp(19px,1.83vw,26px); }
.foot-brand img { filter:brightness(0) invert(1); }
.site-footer h2 { margin:0 0 8px; font-size:clamp(16px,1.4vw,20px); }
.site-footer nav { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.site-footer a, .site-footer nav button { color:#f3f8ff; text-decoration:none; }
.site-footer nav a, .site-footer nav button { font-size:clamp(14px,1.13vw,16px); line-height:1.45; }
.site-footer nav button { background:none; padding:0; border:0; }
.site-footer a:hover, .site-footer nav button:hover { text-decoration:underline; }
.site-footer :focus-visible { outline-color:#a6dcff; }
#lesson-help { width:min(460px,calc(100% - 28px)); padding:25px; border:1px solid var(--border); border-radius:17px; color:var(--ink); box-shadow:0 15px 60px #1429513d; }
#lesson-help h2 { margin:0; font-size:26px; }
#lesson-help p { line-height:1.46; }
#lesson-help::backdrop { background:#10234880; }
@media (max-width:900px) {
  .nav-inner { min-height:60px; }
  .hero-inner { grid-template-columns:48% 52%; }
  .hero h1 { font-size:clamp(35px,5.3vw,48px); }
  .setup { max-width:100%; }
  .hero-visual { margin:0 -3% 0 0; }
  .how li { gap:8px; padding:15px 12px; }
  .how h3 { font-size:20px; }
  .join-strip { gap:15px; }
  .join-strip .action { padding-inline:15px; }
}
@media (max-width:650px) {
  .nav-inner { min-height:55px; padding:5px 15px; gap:9px; }
  .brand { font-size:18px; gap:4px; }
  .site-head nav { gap:10px; }
  .site-head nav a { font-size:13px; min-height:40px; line-height:1.1; }
  .hero-inner { display:flex; flex-direction:column; align-items:stretch; padding:25px 17px 11px; }
  .hero h1 { font-size:clamp(34px,9.8vw,55px); }
  .lead { font-size:19px; margin:12px 0 19px; }
  .desktop-break { display:none; }
  .setup { max-width:470px; }
  .roles { margin-bottom:9px; }
  .setup-card { padding:15px; border-radius:14px; }
  .form-actions { margin-top:13px; }
  .hero-visual { width:min(100%,420px); margin:2px auto 0; }
  .hero-visual figcaption { margin-top:-2px; font-size:10px; }
  .lower { padding:22px 12px 24px; }
  .how > h2 { font-size:29px; margin-left:4px; }
  .how ol { grid-template-columns:1fr; gap:9px; }
  .how li { min-height:90px; gap:15px; padding:10px 15px; border-radius:14px; }
  .how li img { width:63px; }
  .how p { margin-top:4px; }
  .join-strip { grid-template-columns:1fr; gap:14px; padding:19px 15px; margin-top:14px; border-radius:14px; }
  .join-strip label { margin-bottom:5px; }
  .join-strip .action { font-size:14px; min-height:44px; padding:7px 12px; }
  .foot-inner { grid-template-columns:repeat(2,minmax(0,1fr)); padding:22px 18px 25px; gap:18px 15px; }
  .foot-brand { grid-column:1 / -1; border:0; }
  .site-footer nav { gap:3px; }
  .site-footer nav a, .site-footer nav button { padding-block:3px; }
}
@media (max-width:355px) { .nav-inner {padding-inline:10px;} .brand {font-size:16px;} .site-head nav a {font-size:12px;} .site-head nav {gap:7px;} }
