/* Large type and strong contrast throughout: the readers are older adults and their families. */
:root {
  --ink: #16242e;
  --muted: #4a5a66;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #d9dee2;
  --brand: #0b5a6b;
  --brand-dark: #073f4b;
  --tint: #e6f2f4;
  --accent: #b4480f;
  --good: #1c6b3a;
  --warn: #8a4b00;
  --focus: #ffbf47;
  --shadow: 0 1px 2px rgba(22, 36, 46, .06), 0 6px 20px rgba(22, 36, 46, .07);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
header.site { background: var(--brand-dark); color: #fff; position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
header.site a { color: #fff; text-decoration: none; }
header.site .name { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
header.site nav { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; font-size: .98rem; }
header.site nav a { padding: .3rem 0; border-bottom: 3px solid transparent; }
header.site nav a:hover, header.site nav a[aria-current="page"] { border-bottom-color: #7fd3e0; }

/* Type */
h1, h2, .lede-serif { font-family: var(--serif); letter-spacing: -.01em; }
h1 { font-size: 2.5rem; line-height: 1.12; margin: 0 0 .8rem; font-weight: 700; }
h2 { font-size: 1.65rem; line-height: 1.2; margin: 3rem 0 .9rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0 0 1.25rem; }
.hero { padding: 2.75rem 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--brand); margin: 0 0 .6rem; }
.section-intro { color: var(--muted); max-width: 40rem; margin-top: -.4rem; }

/* Home hero */
.home-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; padding: 3rem 0 2rem; }
.home-hero .photo { position: relative; }
.home-hero .photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.home-hero .photo .float { position: absolute; left: -1.25rem; bottom: -1.25rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: .8rem 1rem; max-width: 15rem; font-size: .9rem; line-height: 1.4; }
.home-hero .photo .float strong { display: block; font-size: 1.5rem; font-family: var(--serif); color: var(--brand-dark); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; list-style: none; padding: 1.25rem 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust li { font-size: .95rem; color: var(--muted); line-height: 1.4; }
.trust strong { display: block; color: var(--ink); font-size: 1.05rem; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-items: end; }

/* Page banner photo on guides */
.banner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: center; padding: 2.5rem 0 1rem; }
.banner img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.banner h1 { font-size: 2.2rem; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1.25rem; margin: 1.25rem 0; }
.scooter-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.scooter-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,36,46,.08), 0 14px 32px rgba(22,36,46,.12); color: var(--ink); }
.scooter-card img { display: block; width: 100%; background: linear-gradient(#f3f6f7, #e9eef0); padding: .75rem .75rem 0; }
.scooter-card > div { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.scooter-card h3 { margin: .5rem 0 .4rem; font-size: 1.1rem; line-height: 1.3; }
.facts { list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .93rem; color: var(--muted); }
.facts li { padding: .15rem 0; }
.price { margin: auto 0 0; font-weight: 800; font-size: 1.15rem; }
.badge { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: #fff; background: var(--c, var(--brand)); border-radius: 999px; padding: .12rem .7rem; }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.25rem; margin: 1.25rem 0; }
.type-card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 16px; padding: 1rem 1.2rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.type-card:hover { transform: translateY(-3px); color: var(--ink); }
.type-card h3 { margin: .4rem 0 .3rem; display: flex; justify-content: space-between; align-items: baseline; }
.type-card h3 span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.type-card p { margin: 0; font-size: .95rem; color: var(--muted); }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.why > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.why h3 { margin-top: 0; }
.why p { margin: 0; color: var(--muted); }
.why .n { font-family: var(--serif); font-size: 2rem; color: var(--brand); line-height: 1; }

/* Quiz */
.quiz { scroll-margin-top: 5rem; padding: 2rem; }
.progress { height: 10px; background: #e3e8ec; border-radius: 999px; overflow: hidden; margin: .5rem 0 1.5rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .25s; }
.stepcount { font-size: .9rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .07em; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
legend { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; padding: 0; margin-bottom: .6rem; line-height: 1.25; }
.hint { color: var(--muted); font-size: .98rem; margin: -.2rem 0 .9rem; }
.choices { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: #fff; min-height: 4.4rem; font-weight: 600; transition: border-color .12s, background .12s; }
.choice:hover span { border-color: var(--brand); }
.choice input:checked + span { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + span { outline: 4px solid var(--focus); outline-offset: 2px; }
.choice small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }
.quiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.js .step { display: none; }
.js .step.active { display: block; }

button, .button {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 12px;
  padding: .8rem 1.5rem; text-decoration: none; line-height: 1.3;
}
button:hover, .button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary, button.secondary { background: #fff; color: var(--brand); }
.button.secondary:hover, button.secondary:hover { background: var(--tint); color: var(--brand-dark); }
.button.big { font-size: 1.1rem; padding: 1rem 1.8rem; }
button[hidden] { display: none; }
.error { color: var(--accent); font-weight: 600; margin: .9rem 0 0; }

/* Results */
#results { scroll-margin-top: 5rem; }
.result { display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; border-left: 8px solid var(--brand); }
.result .pic img { background: linear-gradient(#f3f6f7, #e9eef0); border-radius: 12px; padding: .5rem; display: block; }
.result h3 { margin: .3rem 0 .4rem; font-size: 1.4rem; font-family: var(--serif); }
.rank { display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: .1rem .8rem; font-size: .85rem; font-weight: 700; }
.fit, .watch { padding-left: 0; margin: .6rem 0; list-style: none; }
.fit li, .watch li { padding-left: 1.7rem; position: relative; margin-bottom: .3rem; }
.fit li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.watch li { color: var(--warn); }
.watch li::before { content: "!"; position: absolute; left: .25rem; font-weight: 800; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem 1.25rem; margin: 1rem 0; padding: 0; }
.specs div { border-top: 1px solid var(--line); padding-top: .4rem; }
.specs dt, .keyfacts dt { font-size: .82rem; color: var(--muted); }
.specs dd, .keyfacts dd { margin: 0; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.source, .caption { font-size: .9rem; color: var(--muted); }
.unknown { color: var(--muted); font-weight: 400; font-style: italic; }

/* Scooter page */
.crumbs { font-size: .9rem; color: var(--muted); padding: 1.25rem 0 0; }
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: 1.25rem 0 .5rem; }
.product-top .art img { display: block; width: 100%; background: linear-gradient(#f3f6f7, #e6ecef); border-radius: 18px; padding: 1.25rem 1.25rem .5rem; }
.product-top h1 { font-size: 2.1rem; margin-top: .6rem; }
.keyfacts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; margin: 1.25rem 0; padding: 0; }
.keyfacts div { border-top: 3px solid var(--tint); padding-top: .5rem; }
.keyfacts dd { font-size: 1.35rem; font-family: var(--serif); }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.verdict .card { margin: 0; }
.verdict h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.verdict ul { margin: 0; padding-left: 1.2rem; }
.verdict li { margin-bottom: .4rem; }
.verdict .yes { border-top: 6px solid var(--good); }
.verdict .no { border-top: 6px solid var(--accent); }
.fitgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: 1.25rem; }
.fitgrid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; display: grid; grid-template-columns: 13rem 1fr; gap: 1.25rem; align-items: center; }
.fitgrid figcaption { font-size: .97rem; }
blockquote { margin: 1rem 0; padding: .9rem 1.2rem; border-left: 5px solid var(--brand); background: #fff; font-family: var(--serif); font-size: 1.1rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .1rem .65rem; background: #eef2f4; color: var(--muted); }
.tag.good { background: #e2f3e8; color: var(--good); }
.tag.low { background: #fdeee2; color: var(--warn); }

/* Tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: #eef2f4; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
table.spec th { font-weight: 600; width: 34%; }
table.spec td { white-space: normal; }
th button { background: none; border: 0; color: var(--ink); padding: 0; font-weight: 700; border-radius: 4px; }
th button:hover { background: none; color: var(--brand); text-decoration: underline; }
th[aria-sort="ascending"] button::after { content: " ▲"; font-size: .7em; }
th[aria-sort="descending"] button::after { content: " ▼"; font-size: .7em; }
td.num, th.num { text-align: right; }
tbody tr:hover { background: #f6f9fa; }
td.name { display: flex; align-items: center; gap: .7rem; white-space: normal; min-width: 17rem; font-weight: 600; }
td.name img { width: 4.2rem; flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1rem 0; }
.filters label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
select { font: inherit; padding: .55rem .6rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; }

.note { background: #fff7e6; border: 1px solid #e9cf9a; border-radius: 12px; padding: .9rem 1.1rem; margin: 1.25rem 0; }
article p, article li { max-width: 42rem; }
article li { margin-bottom: .4rem; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin: .6rem 0; max-width: 46rem; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: .7rem 0 0; }

/* Footer */
footer.site { margin-top: 4rem; background: #16242e; color: #c5cfd6; padding: 2.5rem 0 3rem; font-size: .93rem; }
footer.site a { color: #fff; display: block; padding: .15rem 0; }
footer.site h2 { font-family: inherit; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: #8fa0ab; margin: 0 0 .5rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; margin-bottom: 1.75rem; }
footer.site p { max-width: 46rem; margin: 0; }

@media (max-width: 52rem) {
  h1 { font-size: 1.9rem; }
  .home-hero, .banner, .product-top, .verdict { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-hero .photo .float { position: static; max-width: none; margin-top: .75rem; }
  .result { grid-template-columns: 1fr; }
  .result .pic img { max-width: 15rem; }
  .fitgrid figure { grid-template-columns: 1fr; }
  .fitgrid { grid-template-columns: 1fr; }
  .fitgrid figure svg { max-width: 15rem; }
  .card, .quiz { padding: 1.15rem; }
  header.site { position: static; }
}
