  :root {
    --sky-0: #0E0A2E;
    --sky: #1B1446;
    --sky-2: #271E5E;
    --card: #2A2163;
    --card-line: #3B3180;
    --gold: #FFC93C;
    --gold-deep: #E0A800;
    --lilac: #B9A6FF;
    --mint: #5EE6B5;
    --rose: #FF8A7A;
    --text: #F4F1FF;
    --muted: #B8B2DA;
    --page: #FFFDF7;
    --ink: #1D1A33;
    --ink-soft: #5C5880;
    --radius: 22px;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; color: var(--text); background: var(--sky);
    background-image: radial-gradient(1200px 600px at 80% -10%, #3A2A8C 0%, transparent 60%),
                      radial-gradient(900px 500px at -10% 30%, #2B1F6E 0%, transparent 60%);
    background-attachment: fixed;
    font-family: "Inter", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: "Fredoka", "Inter", sans-serif; font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
  a { color: inherit; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }

  /* starfield */
  .stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .5; animation: twinkle 3s ease-in-out infinite; }
  .stars i.big { width: 3px; height: 3px; background: #FFE9A8; }
  @keyframes twinkle { 0%,100% { opacity: .15 } 50% { opacity: .9 } }

  /* buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; cursor: pointer; text-decoration: none;
    background: var(--gold); color: var(--ink); font: 600 18px "Fredoka", sans-serif;
    padding: 15px 28px; border-radius: 999px; box-shadow: 0 5px 0 var(--gold-deep);
    transition: transform .1s ease, box-shadow .1s ease, filter .2s;
  }
  .btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
  .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-deep); }
  .btn:disabled { opacity: .5; cursor: default; transform: none; }
  .btn.small { padding: 10px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--gold-deep); }
  .btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--card-line); }
  .btn.ghost:active { box-shadow: inset 0 0 0 2px var(--lilac); }
  .btn.mint { background: var(--mint); box-shadow: 0 5px 0 #2FB487; }
  :focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }

  /* nav */
  nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
  .logo { font: 700 24px "Fredoka", sans-serif; text-decoration: none; display: flex; align-items: center; gap: 8px; }
  .logo .s { color: var(--gold); font-size: 26px; filter: drop-shadow(0 0 8px rgba(255,201,60,.6)); }

  /* hero */
  .hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 40px 0 88px; }
  .eyebrow { display: inline-block; color: var(--mint); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(40px, 6.4vw, 68px); }
  .hero h1 .glow { color: var(--gold); text-shadow: 0 0 28px rgba(255,201,60,.35); }
  .lede { font-size: 19px; color: var(--muted); max-width: 31em; margin: 0 0 30px; }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .note { font-size: 14px; color: var(--muted); }

  /* phone mock */
  .phone {
    background: var(--sky-0); border-radius: 36px; padding: 14px; max-width: 360px; margin-left: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 2px var(--card-line); transform: rotate(2deg);
  }
  .phone .bar { display: flex; justify-content: center; gap: 6px; padding: 6px 0 12px; font-size: 18px; }
  .phone .bar .on { color: var(--gold); } .phone .bar .off { color: #4A4180; }
  .storycard { background: var(--page); color: var(--ink); border-radius: 24px; padding: 18px 18px 22px; }
  .scene { height: 150px; border-radius: 16px; background: linear-gradient(#CFE6FF 0 60%, #A8E2B4 60%); display: flex; align-items: flex-end; justify-content: center; gap: 18px; font-size: 56px; padding-bottom: 14px; position: relative; overflow: hidden; }
  .scene .moon { position: absolute; top: 14px; right: 18px; font-size: 30px; }
  .mock-text { font: 700 24px/1.45 "Andika", sans-serif; margin: 16px 2px 12px; }
  .mock-text .w { border-radius: 8px; padding: 0 3px; transition: background .25s, color .25s; }
  .mock-text .w.read { color: #1E9E70; }
  .mock-text .w.now { background: #FFE39A; }
  .listening { display: flex; align-items: center; gap: 10px; font: 600 14px "Inter"; color: var(--ink-soft); }
  .pulse { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 15px; animation: pulse 1.6s infinite; flex: none; }
  @keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(94,230,181,.6)} 70%{box-shadow:0 0 0 14px rgba(94,230,181,0)} 100%{box-shadow:0 0 0 0 rgba(94,230,181,0)} }

  /* sections */
  section { padding: 80px 0; }
  section h2 { font-size: clamp(30px, 4.6vw, 46px); text-align: center; }
  .sub { text-align: center; color: var(--muted); max-width: 36em; margin: 0 auto 44px; }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--card-line); }
  .card .ico { font-size: 32px; margin-bottom: 12px; }
  .card h3 { font-size: 22px; }
  .card p { margin: 0; color: var(--muted); }
  .step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 17px "Fredoka"; margin-bottom: 14px; }

  .magic { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #33277A, #22195A); border: 1px solid var(--card-line); border-radius: 32px; padding: 48px; }
  .magic h2 { text-align: left; }
  .magic p { color: var(--muted); }
  .wave { display: flex; align-items: center; gap: 4px; height: 70px; }
  .wave span { width: 6px; border-radius: 3px; background: var(--mint); animation: wave 1.2s ease-in-out infinite; }
  @keyframes wave { 0%,100% { height: 12px } 50% { height: 62px } }
  .play-card { background: var(--sky-0); border-radius: 22px; padding: 26px; border: 1px solid var(--card-line); }
  .play-card .t { font: 600 20px "Fredoka"; margin-bottom: 4px; }

  /* pricing */
  .price-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 36px 28px; }
  .price { font: 700 52px "Fredoka"; color: var(--gold); }
  .price small { font: 500 17px "Inter"; color: var(--muted); }
  .ticks { list-style: none; padding: 0; margin: 18px 0 26px; text-align: left; display: inline-block; }
  .ticks li { padding: 5px 0 5px 30px; position: relative; }
  .ticks li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }
  .hardcover { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--card-line); font-size: 15px; color: var(--muted); }
  .linkish { background: none; border: 0; color: var(--lilac); font: 600 15px "Inter"; cursor: pointer; text-decoration: underline; padding: 0; }

  /* form */
  form { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; }
  label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
  input, select {
    font: 500 16px "Inter", sans-serif; padding: 13px 14px; border-radius: 14px;
    border: 2px solid var(--card-line); background: var(--sky-0); color: var(--text); width: 100%;
  }
  input::placeholder { color: #7D76A8; }
  input:focus, select:focus { outline: none; border-color: var(--lilac); }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--muted); }
  .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold); }
  .msg { text-align: center; font-weight: 600; min-height: 1.5em; }
  .msg.ok { color: var(--mint); } .msg.err { color: var(--rose); }

  .faq { max-width: 720px; margin: 0 auto; }
  details { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
  summary { font: 600 18px "Fredoka"; cursor: pointer; }
  details p { color: var(--muted); margin: 10px 0 0; }
  footer { padding: 40px 0 60px; text-align: center; color: var(--muted); font-size: 14px; }

  dialog { border: 0; border-radius: var(--radius); padding: 28px; max-width: 420px; width: calc(100% - 32px); background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
  dialog::backdrop { background: rgba(14,10,46,.7); }

  /* ================= TRIAL ================= */
  .trial { position: fixed; inset: 0; z-index: 50; background: var(--sky-0); display: none; flex-direction: column; overflow-y: auto; }
  .trial.open { display: flex; }
  .trial-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 12px; }
  .starpath { display: flex; gap: 8px; font-size: 26px; }
  .starpath span { color: #3D3478; transition: color .3s, transform .3s; }
  .starpath span.on { color: var(--gold); transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(255,201,60,.7)); }
  .x { background: var(--card); border: 0; color: var(--text); width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
  .stage { flex: 1; display: grid; place-items: center; padding: 8px 16px 32px; }
  .screen { width: 100%; max-width: 560px; display: none; animation: rise .35s ease; }
  .screen.on { display: block; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
  .screen h2 { font-size: clamp(28px, 6vw, 38px); text-align: center; }
  .screen .sub { margin-bottom: 26px; }
  .who { text-align: center; font: 600 13px "Inter"; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .chip { background: var(--card); border: 2px solid var(--card-line); color: var(--text); border-radius: 18px; padding: 18px 14px; font: 600 17px "Fredoka"; cursor: pointer; text-align: left; display: flex; gap: 10px; align-items: center; }
  .chip .e { font-size: 26px; }
  .chip[aria-pressed="true"] { border-color: var(--gold); background: #3A2E85; }
  .pick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0 22px; }
  .pick button { width: 64px; height: 64px; font-size: 36px; border-radius: 18px; background: var(--card); border: 2px solid var(--card-line); cursor: pointer; }
  .pick button[aria-pressed="true"] { border-color: var(--gold); background: #3A2E85; transform: scale(1.06); }
  .name-in { font: 600 28px "Andika", sans-serif; text-align: center; padding: 16px; border-radius: 18px; }
  .center { text-align: center; }
  .stack { display: grid; gap: 12px; }
  .lbl { font: 600 15px "Inter"; color: var(--muted); text-align: center; margin-top: 18px; }
  .err-line { color: var(--rose); text-align: center; min-height: 1.4em; font-weight: 600; font-size: 15px; }
  .gate { background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 24px; }
  .gate ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
  .gate li { margin: 4px 0; }

  .book { background: var(--page); color: var(--ink); border-radius: 28px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
  .book .scene { height: 170px; font-size: 64px; }
  .doors { display: flex; gap: 22px; align-items: flex-end; }
  .door { width: 46px; height: 74px; border-radius: 22px 22px 4px 4px; position: relative; }
  .door::after { content: ""; position: absolute; right: 8px; top: 40px; width: 6px; height: 6px; border-radius: 50%; background: #FFE39A; }
  .door.red { background: #E5484D; } .door.blue { background: #3E63DD; }
  .page-text { font: 700 clamp(26px, 6.4vw, 36px)/1.5 "Andika", sans-serif; margin: 18px 4px 14px; word-spacing: .08em; }
  .page-text .w { display: inline-block; border-radius: 10px; padding: 0 4px; margin: 0 -1px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
  .page-text .w.read { color: #1E9E70; }
  .page-text .w.now { background: #FFE39A; }
  .page-text .w.hint { animation: wiggle .6s ease 2; background: #FFD15C; }
  @keyframes wiggle { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-4deg) scale(1.08) } 75% { transform: rotate(4deg) scale(1.08) } }
  .book-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .tool { background: #EFEAFB; color: var(--ink); border: 0; border-radius: 999px; padding: 10px 14px; font: 600 14px "Inter"; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
  .status { display: flex; align-items: center; gap: 10px; font: 600 14px "Inter"; color: var(--ink-soft); }
  .status .pulse.off { animation: none; background: #CFCBE3; }
  .helper { text-align: center; color: var(--muted); font-size: 15px; margin-top: 14px; min-height: 1.5em; }
  .quiz { margin-top: 16px; display: none; }
  .quiz.on { display: block; animation: rise .35s ease; }
  .quiz .q { font: 700 24px/1.4 "Andika", sans-serif; color: var(--text); text-align: center; margin-bottom: 14px; }
  .quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .quiz .opts button { font: 700 22px "Andika"; padding: 18px; border-radius: 20px; border: 0; cursor: pointer; color: #fff; }
  .quiz .opts .red, .quiz .opts .opt-a { background: #E5484D; } .quiz .opts .blue, .quiz .opts .opt-b { background: #3E63DD; }
  .quiz .opts button.shake { animation: wiggle .5s ease; }

  .burst { position: fixed; pointer-events: none; z-index: 60; font-size: 26px; animation: fly 1s ease-out forwards; }
  @keyframes fly { from { opacity: 1; transform: translate(0,0) scale(.6) } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(40deg) } }
  .big-stars { font-size: 54px; text-align: center; letter-spacing: 8px; color: var(--gold); filter: drop-shadow(0 0 16px rgba(255,201,60,.6)); }
  .result { text-align: center; color: var(--muted); font-size: 18px; margin: 0 0 22px; }
  .result b { color: var(--text); }
  .practice { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 16px 18px; margin-bottom: 6px; }
  .pr-h { font: 600 16px "Fredoka"; margin-bottom: 8px; }
  .pr-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; border-top: 1px dashed var(--card-line); }
  .pr-row:first-of-type { border-top: 0; }
  .pr-word { background: var(--page); color: var(--ink); border: 0; border-radius: 12px; padding: 6px 12px; font: 700 20px "Andika"; cursor: pointer; }
  .pr-sim { color: var(--muted); font-size: 15px; }
  #playBack[data-state="playing"] { background: var(--lilac); box-shadow: 0 5px 0 #8C78E0; }
  .eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
  .eq i { width: 4px; background: var(--ink); border-radius: 2px; animation: eq .8s ease-in-out infinite; }
  .eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
  @keyframes eq { 0%,100% { height: 5px } 50% { height: 18px } }

  @media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 44px; padding-bottom: 56px; }
    .phone { margin: 0 auto; transform: none; }
    .grid3 { grid-template-columns: 1fr; }
    .magic { grid-template-columns: 1fr; padding: 30px 22px; }
    section { padding: 56px 0; }
  }
  @media (max-width: 480px) {
    .row, .chips { grid-template-columns: 1fr; }
    nav .btn[data-start-trial] { display: none; }
    .pick { gap: 8px; }
    .pick button { width: 50px; height: 50px; font-size: 28px; border-radius: 14px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
  }

/* ================= Shared additions ================= */
.navlink { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.navlink:hover { color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= Parent app ================= */
.app-main { padding: 8px 0 80px; }
.app-nav-right { display: flex; gap: 10px; align-items: center; }
.app-nav-right select { width: auto; padding: 8px 12px; border-radius: 999px; font-weight: 600; }
.view { display: none; } .view.on { display: block; animation: rise .35s ease; }
.panel { background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 28px; }
.narrow { max-width: 520px; margin: 40px auto 0; }
.panel h1 { font-size: clamp(28px, 5vw, 38px); }
.panel .note { margin-top: 10px; }
.kid-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 22px; }
.kid-avatar { width: 84px; height: 84px; border-radius: 26px; background: var(--card); border: 2px solid var(--card-line); display: grid; place-items: center; font-size: 46px; position: relative; flex: none; }
.kid-avatar .pet { position: absolute; right: -10px; bottom: -8px; font-size: 30px; }
.kid-head h1 { font-size: clamp(28px, 5vw, 40px); margin: 0; }
.kid-head .sub2 { color: var(--muted); margin-top: 4px; }
.streak { margin-left: auto; background: var(--card); border: 1px solid var(--card-line); border-radius: 999px; padding: 8px 16px; font: 600 16px "Fredoka"; }
.today { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: linear-gradient(135deg, #3A2C8C, #2A1F6B); border: 1px solid var(--card-line); border-radius: 26px; padding: 24px 26px; margin-bottom: 18px; }
.today .lbl2 { color: var(--mint); font: 600 13px "Inter"; letter-spacing: .08em; text-transform: uppercase; }
.today h2 { text-align: left; font-size: clamp(24px, 4vw, 32px); margin: 6px 0 4px; }
.today .why { color: var(--muted); }
.today .acts { display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--card-line); border-radius: 20px; padding: 18px; }
.tile .k { color: var(--muted); font-size: 14px; }
.tile .v { font: 700 34px "Fredoka"; margin-top: 2px; }
.tile .h { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.box { background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 22px; }
.box h3 { font-size: 20px; margin-bottom: 4px; }
.box .note { margin: 0 0 12px; }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chip2 { background: var(--sky-0); border: 1px solid var(--card-line); border-radius: 999px; padding: 6px 12px; font: 700 16px "Andika"; color: var(--text); cursor: pointer; }
.chip2.m { border-color: #2C7A5E; }
.prow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--card-line); flex-wrap: wrap; }
.prow:first-of-type { border-top: 0; }
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--card-line); flex-wrap: wrap; }
.sessions li:first-child { border-top: 0; }
.sessions .t { font-weight: 600; }
.sessions .m { color: var(--muted); font-size: 14px; }
/* chart: single series, words read per day */
.chart { position: relative; margin-top: 8px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 2px; height: 150px; border-bottom: 1px solid var(--card-line); }
.bar-slot { height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; }
.bar { width: 100%; max-width: 24px; background: #26A378; border-radius: 4px 4px 0 0; min-height: 0; transition: filter .15s; }
.bar.zero { height: 2px !important; background: var(--card-line); border-radius: 1px; }
.bar-slot:hover .bar, .bar-slot:focus-visible .bar { filter: brightness(1.25); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.ymax { position: absolute; top: -4px; left: 0; color: var(--muted); font-size: 12px; }
.tip { position: absolute; pointer-events: none; background: var(--sky-0); border: 1px solid var(--card-line); border-radius: 10px; padding: 6px 10px; font-size: 13px; white-space: nowrap; transform: translate(-50%, -110%); display: none; z-index: 2; }
.tip b { color: var(--text); }
details.settings { margin-top: 8px; }
.danger { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 2px #6B3A5A; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.save-summary { background: var(--sky-0); border-radius: 16px; padding: 14px 16px; margin: 14px 0; color: var(--muted); }
.save-summary b { color: var(--text); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .today { grid-template-columns: 1fr; }
  .streak { margin-left: 0; }
}
@media (max-width: 480px) { .app-nav-right .navlink { display: none; } .panel { padding: 22px; } }
.app-nav-right .btn.small { white-space: nowrap; }
@media (max-width: 480px) {
  nav { gap: 10px; }
  .logo { font-size: 20px; }
  .app-nav-right { gap: 8px; }
  .app-nav-right select { max-width: 120px; padding: 7px 10px; font-size: 14px; }
  .app-nav-right .btn.small { padding: 8px 12px; font-size: 14px; }
}

/* listening: grown-up override + field-test debug line */
.tool.ok { background: #E3F8EF; position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.tool.ok::after { content: ""; position: absolute; inset: 0; background: rgba(38,163,120,.35); transform: scaleX(0); transform-origin: left; }
.tool.ok.holding::after { transform: scaleX(1); transition: transform .7s linear; }
.debug { margin-top: 8px; font: 12px ui-monospace, Menlo, monospace; color: var(--lilac); text-align: center; word-break: break-word; }

/* legal pages */
.legal { max-width: 720px; margin: 24px auto 40px; line-height: 1.65; }
.legal h1 { font: 700 clamp(32px, 6vw, 44px) "Fredoka"; margin: 0 0 4px; }
.legal h2 { font: 600 22px "Fredoka"; margin: 34px 0 8px; }
.legal h3 { font: 600 16px "Inter"; margin: 20px 0 4px; color: var(--gold); }
.legal p, .legal li { color: var(--text); opacity: .92; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a, footer a, .check a, .note a { color: var(--lilac); }
.tldr { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 6px 22px 12px; margin-top: 20px; }
.tldr h2 { margin-top: 14px; }
