/* /start (download / add-to-browser page) premium layer, matching /pricing and /schools: dark hero with grid + glows,
   instructions in a glass card, gold primary buttons, glowing gradient-framed preview window, trust row.
   Every state section (windows / install / ready / firefox / phones…) shares these styles; start.js is untouched. */
.sp { --gold: #fbbf24; --gold-2: #f59e0b; --deep: #120b1f; --edge: rgba(255, 255, 255, .12);
  position: relative; overflow: hidden; color: #ece6fa; padding: 64px 0 72px !important;
  background: linear-gradient(165deg, var(--deep) 0%, #1d1235 55%, #2a1950 100%); }
.sp::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 40% 20%, #000 10%, transparent 72%); }
.sp-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.sp-glow-a { width: 600px; height: 600px; right: -160px; top: -200px; background: rgba(139, 92, 246, .45); }
.sp-glow-b { width: 460px; height: 460px; left: -180px; bottom: -160px; background: rgba(245, 158, 11, .13); }
.sp > .wrap { position: relative; z-index: 1; }

/* copy */
.sp .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge);
  color: #d9cff3; font-size: .76rem; letter-spacing: .1em; }
.sp .eyebrow.ok-eye { color: #86efac; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.sp h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; margin: 18px 0 14px; }
.sp .lead { color: #c9bfe0; }
.sp .lead b, .sp .start-steps b, .sp .istep b { color: #fff; }
.sp a:not(.btn) { color: var(--gold); }
.sp a:not(.btn):hover { color: #fcd34d; }
.sp .start-note { color: #a99dc4; }
.sp .linkish { color: var(--gold); }
.sp kbd { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }

/* buttons: the main action is gold */
.sp .btn-primary { background: linear-gradient(180deg, #fcd34d 0%, var(--gold-2) 100%); color: #2a1a03; border: 0; font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 26px rgba(245, 158, 11, .35); transition: transform .15s, filter .15s; }
.sp .btn-primary:hover { color: #2a1a03; filter: brightness(1.05); transform: translateY(-1px); }
.sp #winDownload, .sp .start-store { font-size: 1.12rem; padding: 16px 30px; }
.sp .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.sp .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* step lists in a glass card */
.sp .install-steps, .sp .start-steps { padding: 22px 22px 20px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge);
  backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.sp .istep, .sp .start-steps li { color: #d9cff3; }
.sp .istep > span, .sp .start-steps li > span { width: 34px; height: 34px; border-radius: 11px; background: var(--deep); color: var(--gold); font-weight: 700;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, .35), 0 6px 16px rgba(0, 0, 0, .3); }
.sp .istep img { border: 0; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 30px rgba(0, 0, 0, .35); }
.sp .copy-addr { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(251, 191, 36, .45); }

/* preview window: gradient frame + glow + floating chips */
.sp .start-art { padding: 26px 8px 30px; }
.sp .sa-window { border-radius: 18px; transform: rotate(1.2deg);
  box-shadow: 0 0 0 7px rgba(167, 139, 250, .18), 0 0 0 8px rgba(196, 181, 253, .4), 0 40px 90px rgba(0, 0, 0, .5), 0 0 110px rgba(139, 92, 246, .35); }
.sp-chip { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 14px; font-size: .9rem; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(29, 18, 53, .88); border: 1px solid var(--edge); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); animation: spFloat 6s ease-in-out infinite; }
.sp-chip b { color: var(--gold); }
.sp-chip-a { left: -14px; bottom: 6px; }
.sp-chip-b { right: -6px; top: 0; animation-delay: -3s; }
@keyframes spFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* trust row */
.sp-trust { list-style: none; margin: 64px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--edge); }
.sp-trust li { display: flex; flex-direction: column; gap: 3px; }
.sp-trust b { color: #fff; font-size: 1.05rem; }
.sp-trust span { color: #a99dc4; font-size: .92rem; }

@media (max-width: 900px) { .sp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp .sa-window { transform: none; } .sp-chip { display: none; } }
@media (max-width: 600px) { .sp { padding: 40px 0 52px !important; } .sp .start-actions .btn { flex: 1 1 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .sp-chip { animation: none; } .sp .btn-primary { transition: none; } }
/* top-align the two columns so the main button sits high on the first screen */
.sp .start-grid { align-items: start; }
.sp .start-art { margin-top: 20px; }
@media (min-width: 901px) and (max-height: 820px) {
  .sp { padding-top: 36px !important; }
  .sp h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 14px 0 10px; }
  .sp .lead { margin-bottom: 18px; font-size: 1.02rem; }
}
.sp .start-copy > section { padding: 0; } /* (site.css gives every <section> 96px of padding) */

/* the download page: every way to get Speaklit, as boxes, first thing on the page */
.sp-hero { max-width: 760px; margin-bottom: 30px; }
.sp-hero h1 { margin: 16px 0 10px; }
.sp-hero .lead { margin: 0; font-size: 1.12rem; }
.sp-started { margin: 16px 0 0; display: inline-block; padding: 10px 16px; border-radius: 12px; color: #fde68a; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); }
.sp-ext > section { margin-bottom: 36px; }
.sp-group { margin-bottom: 26px; }
.sp-group h2 { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a99dc4; }
.sp-plats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sp-plats li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); transition: border-color .15s, background .15s; }
.sp-plats li > div { flex: 1 1 auto; min-width: 0; margin-bottom: 2px; }
.sp-plats svg { width: 26px; height: 26px; flex: none; color: #a99dc4; }
.sp-plats b { display: block; color: #fff; font-size: 1rem; }
.sp-plats li > div span { display: block; color: #a99dc4; font-size: .85rem; margin-top: 2px; }
.sp-plats em { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #c4b5fd;
  padding: 5px 10px; border-radius: 999px; background: rgba(167, 139, 250, .1); border: 1px solid rgba(167, 139, 250, .28); white-space: nowrap; }
.sp-plats em.ok { color: #fde68a; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .35); }
.sp-plats li.live { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .35); }
.sp-plats li.live svg { color: var(--gold); }
.sp-plats li.live:hover { background: rgba(251, 191, 36, .1); }
.sp-plats .btn { padding: 8px 18px; font-size: .9rem; }
.sp-plats li.you { box-shadow: 0 0 0 2px rgba(167, 139, 250, .55), 0 14px 40px rgba(109, 40, 217, .25); }
.sp-you { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .7rem; font-weight: 600; color: #ede9fe; padding: 3px 9px; border-radius: 999px; background: rgba(139, 92, 246, .45); }

/* further down: how to install on Windows, next to the picture */
.sp-more { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--edge); }
.sp-win h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; margin: 16px 0 12px; }
.sp-win, #windows { scroll-margin-top: 90px; }
.sp .sp-trust { margin-top: 56px; }
@media (max-width: 1000px) { .sp-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .sp-plats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp-plats li { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .sp-plats li > div { margin: 0; }
  .sp-plats li > :last-child:not(div), .sp-plats li > em, .sp-plats li > .btn { flex: none; }
  .sp-you { top: -10px; right: 14px; }
}
.on-phone .sp-more { display: none; }
/* boxes with a second, smaller download (Linux: .deb next to the AppImage) */
.sp-acts { display: flex; align-items: center; gap: 14px; }
.sp .sp-plats .sp-alt { font-size: .85rem; font-weight: 600; color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.sp .sp-plats .sp-alt:hover { color: #fff; }
.on-phone .sp-alt { display: none; }
.sp .start-actions .btn-ghost.js-dl { padding-top: 14px; padding-bottom: 14px; }
.sp-win .copy-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; margin-top: 6px; }
/* "Instructions ↓" under a box's buttons */
.sp .sp-plats .sp-instr { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: .84rem; font-weight: 600; color: #c4b5fd; text-decoration: none; }
.sp .sp-plats .sp-instr svg { width: 14px; height: 14px; transition: transform .15s; }
.sp .sp-plats .sp-instr:hover { color: #fff; }
.sp .sp-plats .sp-instr:hover svg { transform: translateY(2px); }
@media (max-width: 520px) { .sp-plats li:has(.sp-instr) { flex-wrap: wrap; } .sp .sp-plats .sp-instr { flex-basis: 100%; padding-left: 40px; } }

/* ---- after a download starts: the walkthrough replaces the page's intro (start.js openGuide) ---- */
.dg [hidden] { display: none !important; }
.dg { margin: 0 0 44px; scroll-margin-top: 90px; }
.dg-head { max-width: 780px; }
.dg-head h1 { margin: 16px 0 10px; }
.dg-head .lead { margin: 0; font-size: 1.12rem; }
.dg-eye { color: #fde68a !important; border-color: rgba(251, 191, 36, .35) !important; background: rgba(251, 191, 36, .08) !important; }
.dg-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); animation: dgPulse 1.6s ease-out infinite; }
@keyframes dgPulse { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); } 100% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); } }
.dg-again { margin: 12px 0 0; color: #a99dc4; font-size: .95rem; }
.dg-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.dg-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.dg-step:has(> .dg-shots:not([hidden])) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); }
.dg-text { display: flex; gap: 14px; align-items: flex-start; }
.dg-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--deep); color: var(--gold); font-weight: 700;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, .35), 0 6px 16px rgba(0, 0, 0, .3); }
.dg-text h3 { color: #fff; font-size: 1.3rem; letter-spacing: -.01em; margin: 3px 0 8px; }
.dg-text p { margin: 0; color: #d9cff3; line-height: 1.6; }
.dg-text b { color: #fff; }
.dg-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dg-shots figure { margin: 0; }
.dg-shots img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 30px rgba(0, 0, 0, .35); }
.dg-shots figcaption { margin-top: 8px; text-align: center; font-size: .9rem; color: #c9bfe0; }
.dg-shots figcaption b { color: #fff; }
.dg-video { margin: 26px 0 0; }
.dg-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #0d0718;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px rgba(0, 0, 0, .45); }
.dg-steps[data-sys="windows"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dg-steps[data-sys="windows"] .dg-step { align-items: start; }
.dg-why { margin: 16px 0 0; padding: 14px 18px; border-radius: 14px; color: #fde68a; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); line-height: 1.55; }
.dg-why b { color: #fff; }
.dg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; color: #a99dc4; font-size: .95rem; }
.sp-others { display: none; margin: 0 0 18px; padding-top: 34px; border-top: 1px solid var(--edge); color: #fff; font-size: 1.25rem; font-weight: 600; }
.dl-on .sp-hero, .dl-on .sp-more { display: none; }
.dl-on .sp-others { display: block; }
@media (max-width: 900px) { .dg-step:has(> .dg-shots:not([hidden])), .dg-steps[data-sys="windows"] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dg-step { padding: 18px 16px; } .dg-shots { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .dg-pulse { animation: none; } }
