/* TrainTanmay help page: Apple-style finish (apple-design skill: system type with size-specific
   tracking, neutral greys, a translucent top bar, rounded cards and pill buttons).
   Looks only: no class, control or script changes. Delete the <link> to apple-help.css in
   help.html to undo all of it. The dyslexia-friendly font rules (html.dys …) still win.
   Type: Apple devices use their own San Francisco; everything else gets Inter, the closest open
   match, so Windows, Android and Chromebooks all look the same. */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..800&display=swap");

:root{
  --a-display:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI Variable Display","Segoe UI",system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --a-text:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Segoe UI Variable Text","Segoe UI",system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --a-mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --bg:#f5f5f7;--surface:#fff;--ink:#1d1d1f;--muted:#6e6e73;--line:#e3e3e8;
}
@media (prefers-color-scheme:dark){
  :root{--bg:#000;--surface:#1c1c1e;--ink:#f5f5f7;--muted:#a1a1a6;--line:#2c2c2e}
}

body{font-family:var(--a-text);font-size:17px;line-height:1.55;background-image:none;font-feature-settings:"kern";text-rendering:optimizeLegibility}
/* plain neutral page: without the grid paper, the edge of polish.css's colour glow showed as a faint line */
body::after{display:none}

/* top bar: translucent, the page scrolls under it */
header{padding:10px 20px;background:color-mix(in srgb,var(--surface) 72%,transparent);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-bottom-color:color-mix(in srgb,var(--ink) 9%,transparent)}
.brand b{font-family:var(--a-display);font-weight:700;font-size:1.2rem;letter-spacing:-.02em}
html.dys .brand b{font-family:var(--a-display)}   /* the wordmark is a logo: it keeps its face, as before */
.brand small{font-family:var(--a-text);font-weight:600;letter-spacing:.08em}

/* headings: weight and tight tracking as they grow; body tracking near zero */
h1,h2,h3{font-family:var(--a-display);font-weight:700}
h1{font-size:clamp(2.1rem,5vw,3rem);line-height:1.07;letter-spacing:-.028em}
h2{font-size:1.65rem;line-height:1.15;letter-spacing:-.022em}
h3{font-size:1.2rem;line-height:1.25;letter-spacing:-.012em;font-weight:600}
.lead{font-size:1.2rem;line-height:1.5;letter-spacing:-.005em}

/* cards: rounder, a soft resting shadow instead of a heavy outline */
.card{border-radius:18px;padding:22px 24px;margin:16px 0;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 10px 30px -18px rgba(0,0,0,.18)}
@media (prefers-color-scheme:dark){.card{box-shadow:none}}

/* buttons: pills with a quick press */
.app a.go{border-radius:980px;padding:8px 18px;font-size:.94rem;letter-spacing:-.005em;
  transition:filter .2s ease,transform .1s ease-out}
.app a.go:hover{filter:brightness(1.08)}
.app a.go:active{transform:scale(.97)}
/* the bug-report button has its shape written inline; match it to the other buttons */
.card a[href^="https://forms.gle"]{border-radius:980px!important;padding:8px 18px!important;transition:filter .2s ease,transform .1s ease-out}
.card a[href^="https://forms.gle"]:hover{filter:brightness(1.08)}
.card a[href^="https://forms.gle"]:active{transform:scale(.97)}

.dysbtn{height:34px;border-radius:980px;font-family:var(--a-text);font-weight:600}
.dysbtn:hover{transform:none;box-shadow:none}
.dysbtn:not([aria-pressed=true]):hover{background:color-mix(in srgb,var(--ink) 6%,var(--surface))}
.dysbtn:active{transform:scale(.97)}

.tour video{border-radius:18px}
kbd{font-family:var(--a-mono);border-radius:6px}
footer{font-size:.82rem}

/* accessibility settings: solid surfaces, firmer edges */
@media (prefers-reduced-transparency:reduce){
  header{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media (prefers-contrast:more){
  header{border-bottom-color:var(--ink)}
  .card{border-color:color-mix(in srgb,var(--ink) 45%,transparent)}
}
