/* Dyslexia Font welcome page. One screen on laptops (no vertical scroll from 861px wide), stacked on phones. */
@font-face{font-family:"DFX OpenDyslexic";src:url(fonts/OpenDyslexic-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"DFX Lexend";src:url(fonts/lexend-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"DFX Atkinson";src:url(fonts/atkinson-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}

:root{
  --brand:#1d4ed8;--brand-hover:#1e40af;--brand-50:#eff4ff;--brand-100:#dbe7fe;--brand-bright:#2563eb;
  --ink:#0f172a;--ink2:#475569;--ink3:#64748b;--line:#e2e8f0;--line-strong:#cbd5e1;
  --surface:#fff;--page:#f6f8ff;
  --success:#047857;--success-bg:#ecfdf5;--success-line:#a7f3d0;--annot:#dc2626;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --page-w:1080px;--gutter:24px;--r-btn:10px;--r-card:16px;--r-pill:999px;
  --shadow-card:0 0 0 1px rgba(15,23,42,.06),0 10px 28px -10px rgba(15,23,42,.18);
  --glow:radial-gradient(1000px 420px at 50% -180px,rgba(37,99,235,.14),rgba(37,99,235,0) 70%);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--glow) no-repeat,var(--page);color:var(--ink);font:16px/1.5 var(--font)}
img,svg{max-width:100%}
p{margin:0 0 12px}
a{color:var(--brand);text-underline-offset:2px}
a:hover{color:var(--brand-hover)}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
h1,h2{margin:0;text-wrap:balance}
h1{font-size:clamp(28px,4.2vh + 8px,40px);line-height:1.12;letter-spacing:-.02em;font-weight:700;margin:12px 0 10px}
.lead{font-size:17px;line-height:1.45;color:var(--ink2);max-width:46ch}
.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}
.svg-sprite{position:absolute}

/* Layout */
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;max-width:calc(var(--page-w) + 2*var(--gutter));margin:0 auto;padding:18px var(--gutter) 0}
.page{flex:1;display:flex;flex-direction:column;min-height:0;width:100%;max-width:calc(var(--page-w) + 2*var(--gutter));margin:0 auto;padding:8px var(--gutter) 12px}
.mode{display:none;flex:1;min-height:0;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:40px;align-items:center}
body[data-mode="pin"] .mode-pin,body[data-mode="usage"] .mode-usage{display:grid}
.col-text{min-width:0}
.col-media{min-width:0;min-height:0;display:flex;justify-content:center;align-items:center}
.fine{margin:6px 0 0;text-align:center;font-size:13px;line-height:1.3;color:var(--ink3)}

/* Components */
.lockup{display:inline-flex;align-items:center;gap:10px;font-weight:650;font-size:16px;color:var(--ink);text-decoration:none;letter-spacing:-.01em}
.lockup img{width:32px;height:32px;display:block}
.icon{width:20px;height:20px;flex:none;display:inline-block;vertical-align:-4px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.icon--sm{width:16px;height:16px;vertical-align:-3px}
.status-pill{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 12px 0 9px;border-radius:var(--r-pill);font-size:14px;font-weight:600;line-height:1;white-space:nowrap;background:var(--surface);color:var(--ink2);box-shadow:inset 0 0 0 1px var(--line)}
.status-pill--success{background:var(--success-bg);color:var(--success);box-shadow:inset 0 0 0 1px var(--success-line)}
.status-pill--live{min-height:32px;padding:6px 14px 6px 12px;gap:10px;background:var(--brand-50);color:var(--brand-hover);box-shadow:inset 0 0 0 1px var(--brand-100);white-space:normal;line-height:1.25;font-weight:500;margin:0 0 18px;border-radius:16px}
.status-pill__dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--brand-bright);box-shadow:0 0 0 3px var(--brand-100)}
.just-pinned-only{display:none}
body[data-just-pinned] .just-pinned-only{display:inline-flex}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:var(--r-btn);font:600 16px/1 var(--font);text-decoration:none;white-space:nowrap;background:var(--brand);color:#fff;box-shadow:0 8px 18px -8px rgba(29,78,216,.6);transition:transform .14s,background-color .14s}
.btn:hover{color:#fff;background:var(--brand-hover);transform:translateY(-1px)}
.switch{color:var(--ink3);font-size:14px;margin:0}
.switch a{font-weight:600}
.badge{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--annot);color:#fff;font:700 15px/1 var(--font);box-shadow:0 0 0 2px #fff,0 2px 6px rgba(15,23,42,.2)}
.badge--brand{background:var(--brand)}
.shot{display:block;max-width:100%;height:auto;background:var(--surface);border-radius:12px;box-shadow:var(--shadow-card)}

/* Pin mode */
.clicks{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:14px}
.clicks li{display:flex;align-items:center;gap:12px;font-weight:500;font-size:18px;line-height:1.35}
.hint{color:var(--ink3);font-weight:400;font-size:16px}
.shot--pin{width:100%;max-height:100%;object-fit:contain}

/* Usage mode */
.use-steps{list-style:none;margin:16px 0 14px;padding:0;display:grid;gap:10px}
.use-steps li{display:flex;align-items:flex-start;gap:12px}
.use-steps b{display:block;font-size:17px;line-height:1.3;font-weight:600}
.use-steps span:not(.badge){display:block;font-size:15px;line-height:1.4;color:var(--ink2)}
.use-steps .badge{margin-top:0}
.ba{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 14px}
.ba__box{background:var(--surface);border-radius:12px;box-shadow:var(--shadow-card);padding:10px 14px 8px}
.ba__box--after{box-shadow:0 0 0 2px var(--brand),0 10px 28px -10px rgba(29,78,216,.4)}
.ba__tag{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink3);margin-bottom:2px}
.ba__box--after .ba__tag{color:var(--brand)}
.ba__text{margin:0;font-size:17px;line-height:1.45}
.ba__text--before{font-family:Georgia,"Times New Roman",serif}
.ba__text--after{font-family:"DFX OpenDyslexic",sans-serif;letter-spacing:.01em}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
.shot--popup{height:auto;max-height:calc(100vh - 150px);width:auto;max-width:min(100%,340px);object-fit:contain}

@media (prefers-reduced-motion:no-preference){
  .status-pill__dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--brand-bright);animation:live-dot 1.8s cubic-bezier(.2,.8,.2,1) 6}
  body[data-just-pinned] .just-pinned-only{animation:chip-pop .32s cubic-bezier(.2,.8,.2,1) both}
}
@keyframes live-dot{0%{transform:scale(1);opacity:.55}100%{transform:scale(2.8);opacity:0}}
@keyframes chip-pop{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}.btn:hover{transform:none}}

/* Short laptop screens: tighten */
@media (min-width:861px) and (max-height:760px){
  .top{padding-top:12px}
  .use-steps{margin:12px 0 10px;gap:8px}
  .use-steps b{font-size:16px}.use-steps span:not(.badge){font-size:14px}
  .ba{margin-bottom:10px}.ba__text{font-size:16px}
  .lead{font-size:16px;margin-bottom:8px}
  .status-pill--live{margin-bottom:14px}
  .clicks{margin-bottom:12px}
  .btn{height:42px}
}

/* Phones and narrow windows: stack, vertical scroll is fine, never horizontal */
@media (max-width:860px){
  .mode{gap:20px;grid-template-columns:minmax(0,1fr);align-items:start}
  .page{padding-bottom:20px}
  .shot--popup{max-height:none;width:100%;max-width:300px}
  .shot--pin{width:100%}
  .col-media{order:2}
  .btn{width:100%}
  .clicks li{font-size:17px}
  .hint{white-space:normal}
}
@media (max-width:520px){
  :root{--gutter:16px}
  .ba{grid-template-columns:1fr}
  .lockup span{font-size:15px}
}

/* Privacy page */
.doc{display:block;max-width:calc(760px + 2*var(--gutter));padding-bottom:48px}
.doc h1{margin-top:20px}
.doc h2{font-size:20px;line-height:1.3;font-weight:650;margin:28px 0 8px}
.doc p,.doc li{max-width:68ch}
.doc ul{margin:0 0 12px;padding-left:24px}
.doc li{margin:0 0 8px}
.doc .meta{color:var(--ink3);font-size:14px}

/* Pin mode: the picture is the guide, give it more room */
@media (min-width:861px){
  .mode-pin{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
  .mode-pin .clicks li{font-size:19px}
}
