/* Visual style: Aboard reference (docs/design-aboardhr.md).
   Off-white canvas, system-ui with tight tracking, one Signal Blue accent, pastel washes instead of shadows. */
:root[data-theme="light"] {
    --ink: #262626; --graphite: #757577; --ash: #aeaeaf; --line: #ececec;
    --blue: #008ae8; --sky: #e0f2fe;
    --blush: #fbcfe8; --lavender: #e6dafd; --mint: #b6edee; --powder: #afe4ff; --butter: #ffe77a;
    --float-shadow: 0 2px 8px rgba(205, 205, 205, .6);
    --pico-font-family: system-ui, Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
    --pico-font-size: 16px;
    --pico-line-height: 1.5;
    --pico-background-color: #fafafa;
    --pico-color: var(--ink);
    --pico-muted-color: var(--graphite);
    --pico-primary: var(--blue);
    --pico-primary-rgb: 0, 138, 232;
    --pico-primary-background: var(--blue);
    --pico-primary-border: var(--blue);
    --pico-primary-underline: rgba(0, 138, 232, .5);
    --pico-primary-hover: #0074c4;
    --pico-primary-hover-background: #0074c4;
    --pico-primary-hover-border: #0074c4;
    --pico-primary-focus: rgba(0, 138, 232, .25);
    --pico-primary-inverse: #fff;
    --pico-secondary: var(--blue);
    --pico-secondary-background: var(--sky);
    --pico-secondary-border: var(--sky);
    --pico-secondary-inverse: var(--blue);
    --pico-secondary-hover-background: #cbe9fc;
    --pico-secondary-hover-border: #cbe9fc;
    --pico-border-radius: 10px;
    --pico-card-background-color: #fff;
    --pico-card-sectioning-background-color: #fff;
    --pico-card-box-shadow: none;
    --pico-muted-border-color: var(--line);
    --pico-form-element-background-color: #fff;
    --pico-form-element-border-color: #dcdcdc;
    --pico-form-element-active-border-color: var(--blue);
    --pico-form-element-focus-color: rgba(0, 138, 232, .25);
    --pico-form-element-selected-background-color: var(--blue);
}
body { min-height: 100vh; }
/* Negative tracking grows with size: it is the signature of the style */
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.009em; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.75rem); letter-spacing: -.006em; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.005em; line-height: 1.4; }
small { line-height: 1.5; }
hgroup > :not(:first-child) { color: var(--graphite); }
a:not([role="button"]) { text-decoration-thickness: 1px; }
/* Pill buttons: blue filled primary, blue ghost / sky secondary */
button, [role="button"], input[type="submit"] { font-weight: 500; border-radius: 99px; padding: 12px 24px; }
:is(button, [role="button"]).outline { background: transparent; border-color: var(--blue); color: var(--blue); }
input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea { border-radius: 10px; }
article { border: 0; border-radius: 24px; box-shadow: none; }
article > header, article > footer { text-align: left; background: transparent; }
.container { max-width: 1200px; }
main.container { padding-top: 2.5rem; min-height: 65vh; }
main .container { width: 100%; padding-inline: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header nav { min-height: 64px; gap: 1rem; }
.site-header nav ul { gap: .5rem; }
.site-header nav a.secondary { color: var(--graphite); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-header nav a.secondary:hover { color: var(--ink); }
.brand-logo { display: block; height: 36px; width: auto; }
#language-switcher { min-height: 36px; border-radius: 99px; background-color: var(--sky); border-color: var(--sky); color: var(--blue); }
.menu-toggle { display: none; }
.site-footer { margin-top: 4rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--graphite); font-size: 15px; }
.site-footer p { margin: 0; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 100; padding: .75rem; background: #fff; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: 2rem 4rem; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 1; letter-spacing: -.01em; max-width: 15ch; margin-bottom: 1.5rem; }
.hero-description { color: var(--graphite); font-size: 1.125rem; max-width: 43ch; margin-bottom: 1.75rem; }
.hero-copy [role="button"] { width: auto; }
.hero-note { font-size: 12px; color: var(--graphite); margin-top: 1rem; }
/* Pastel product card frames the hero media */
.fit-illustration { margin: 0; padding: 24px; background: var(--powder); border-radius: 24px; }
.fit-illustration img { width: 100%; height: auto; display: block; border-radius: 10px; }
.video-facade { all: unset; position: relative; display: block; width: 100%; cursor: pointer; border-radius: 10px; }
.video-facade:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.video-play { position: absolute; inset: 50% auto auto 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--blue); transition: transform .15s; }
.video-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.fit-illustration iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.fit-illustration figcaption { padding-top: .75rem; font-size: 12px; color: var(--ink); }
/* Feature blocks: rotating pastel washes */
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.landing-features > * { background: var(--lavender); border-radius: 24px; padding: 40px 32px 32px; }
.landing-features > :nth-child(2) { background: var(--mint); }
.landing-features > :nth-child(3) { background: var(--butter); }
.landing-features h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.005em; line-height: 1.4; }
.landing-features p { color: var(--ink); max-width: 50ch; margin-bottom: 0; }
.landing-features a { color: var(--ink); }
.wizard { max-width: 790px; margin-inline: auto; padding: clamp(1.25rem, 4vw, 2.5rem); }
.wizard hgroup { margin-bottom: 1.75rem; }
.visual-card { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: .75rem; margin: 0; text-align: center; cursor: pointer; box-shadow: none; }
.visual-card:hover { background: #fafafa; border-color: var(--ash); }
.visual-card.selected { border: 2px solid var(--blue); padding: calc(.75rem - 1px); background: var(--sky); }
.visual-card img { width: 100%; height: 180px; object-fit: contain; display: block; mix-blend-mode: multiply; }
.visual-card span { display: block; margin-top: .65rem; font-size: .9rem; font-weight: 500; }
.page-heading { margin-bottom: 1.5rem; }
.page-heading p { color: var(--graphite); margin-bottom: 0; max-width: 70ch; }
.profile-summary { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; background: var(--sky); }
.profile-summary > img { width: 65px; height: 112px; object-fit: contain; mix-blend-mode: multiply; }
.profile-data { flex: 1; min-width: 0; }
.profile-data p { margin-bottom: .4rem; }
.profile-data small { color: var(--graphite); }
.profile-summary button { width: auto; margin-bottom: 0; font-size: .8rem; padding: 10px 18px; }
.results-disclosure { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1rem 1.5rem; margin-bottom: 1rem; }
.results-disclosure > summary { margin-bottom: 0; font-weight: 500; color: var(--ink); }
.results-disclosure[open] > summary { margin-bottom: 1.5rem; }
#accessory-panel .accessory-card img { height: 90px; }
.accessory-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.accessory-card.active { border-color: var(--blue); background: var(--sky); }
.accessory-card img { width: 100%; height: 110px; object-fit: contain; mix-blend-mode: multiply; }
.accessory-card label[for="acc-upbikers"] { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.pill-group { display: flex; gap: .25rem; width: fit-content; margin-top: .25rem; }
.pill-label { position: relative; margin: 0; padding: .4rem .9rem; background: #fff; border: 1px solid #dcdcdc; border-radius: 99px; cursor: pointer; font-size: .85rem; min-width: 44px; text-align: center; }
.pill-label input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill-label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill-label:focus-within { outline: 3px solid var(--pico-primary-focus); outline-offset: 2px; }
#motos-list-container { margin-top: 1.5rem; }
.results-count { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: .5rem 1.1rem; margin-bottom: .5rem; }
.results-count > span:last-child { color: var(--graphite); font-size: 15px; }
.moto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: 1.25rem; }
.moto-card { position: relative; padding: 0; margin: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.moto-card:hover { border-color: var(--ash); }
.moto-card > a { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.moto-photo { background: #fff; }
.moto-photo img { display: block; width: 100%; height: 205px; object-fit: contain; }
.moto-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.moto-card header { padding: 0; margin: 0 0 .8rem; border: 0; background: transparent; }
.moto-brand { color: var(--graphite); font-size: 12px; margin-bottom: .3rem; }
.moto-model { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.moto-specs { color: var(--graphite); font-size: 15px; }
.moto-seat { color: var(--ink); margin-top: .5rem; }
/* Match badges as pastel pills */
.match-badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--ink); }
.match-perfect { background: var(--mint); }
.match-ok { background: var(--butter); }
.match-extreme { background: var(--blush); }
.favorite-btn { position: absolute; top: 1rem; right: 1rem; z-index: 1; padding: 0; margin: 0; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--graphite); border-radius: 50%; display: grid; place-items: center; }
.favorite-btn:hover, .favorite-btn.active { background: var(--sky); color: var(--blue); border-color: var(--sky); }
.favorite-card { display: flex; align-items: center; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.favorite-card img { width: 70px; height: 60px; object-fit: contain; }
.favorite-card .info { flex: 1; min-width: 0; }
.favorite-card h4 { font-size: .9rem; margin: 0; }
.favorite-card p { font-size: .8rem; margin: 0; }
.remove-favorite { cursor: pointer; padding: .5rem; }
.detail-photo { padding: 24px; overflow: hidden; background: var(--powder); }
.detail-photo img { display: block; width: 100%; height: 360px; object-fit: contain; background: #fff; border-radius: 10px; }
.static-page { max-width: 850px; margin-inline: auto; }
.static-content { overflow-wrap: anywhere; }
.static-content h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
/* Page-level articles are the canvas, not cards */
article.seo-page, article.static-page { background: transparent; padding-inline: 0; }
.landing-links, .landing-faq { margin-top: 4rem; }
.landing-links h2, .landing-faq h2 { font-size: clamp(1.5rem, 3.5vw, 2.75rem); }
.link-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; }
.link-list li { list-style: none; margin: 0; }
.link-list a { display: inline-block; padding: 8px 16px; border-radius: 99px; background: var(--sky); color: var(--blue); font-size: 15px; font-weight: 500; text-decoration: none; }
.link-list a:hover { background: #cbe9fc; }
.landing-faq details { border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.landing-faq p { color: var(--graphite); max-width: 75ch; }
.seo-page section { margin-top: 4rem; }
.seo-text { max-width: 78ch; }
.seo-text .lead { font-size: 1.125rem; }
.seo-note { color: var(--graphite); font-size: 15px; max-width: 78ch; }
.moto-card h3 { margin: 0; }
.moto-badges { margin-top: 1rem; }
.footer-links { display: block; margin-bottom: 1.25rem; }
.footer-links ul, .footer-links ul:first-of-type { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: 0; margin: .4rem 0 0; }
.footer-links li { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--graphite); }
.footer-links a:hover { color: var(--blue); }
.link-button { all: unset; cursor: pointer; color: var(--graphite); text-decoration: underline; }
.link-button:focus-visible { outline: 3px solid var(--blue); }
/* Floating panel: the only place with a shadow */
.cookie-banner { position: fixed; inset: auto 1rem 1rem; z-index: 200; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: 1rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 4px 16px rgba(205, 205, 205, .5); font-size: 15px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; margin: 0; }
.cookie-actions { display: flex; gap: .75rem; }
/* Accept and reject get the same weight, as the AEPD guide requires */
.cookie-actions button { margin: 0; width: auto; padding: .5rem 1.25rem; }
.affiliate-note { display: block; color: var(--graphite); font-size: 12px; margin-top: .75rem; }
.amazon-card { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; padding: .75rem .9rem; background: var(--butter); border: 0; border-radius: 24px; color: var(--ink); text-decoration: none; }
.amazon-card:hover { background: #ffde4d; }
.amazon-card-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); }
.amazon-card-text { flex: 1; min-width: 0; line-height: 1.3; }
.amazon-card-text strong { display: block; font-size: .85rem; font-weight: 600; }
.amazon-card-text small { color: var(--ink); font-size: .75rem; }
.amazon-card-cta { flex: none; padding: 6px 14px; border-radius: 99px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.amazon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: .25rem .75rem; }
.htmx-indicator { display: none; }
.htmx-request.htmx-indicator { display: inline-block; }
.htmx-request { opacity: .6; transition: opacity .2s; }
@media (max-width: 767px) {
    /* App-style bar: 56px, sticky, logo left, hamburger right; links drop down below it */
    .site-header { padding-block: 0; }
    .site-header nav { min-height: 56px; flex-wrap: nowrap; }
    .brand-logo { height: 30px; }
    .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -.5rem 0 0; padding: 0;
                   color: var(--ink); background: transparent; border: 0; box-shadow: none; }
    .menu-toggle .icon-close, .site-header.open .menu-toggle .icon-open { display: none; }
    .site-header.open .menu-toggle .icon-close { display: inline; }
    .site-header .nav-links { display: none; }
    .site-header.open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: .25rem 0 .75rem;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--float-shadow); }
    .site-header .nav-links li { padding: 0; }
    .site-header .nav-links a.secondary { display: block; margin: 0; padding: .85rem 1.25rem; font-size: 1rem; border-radius: 0; }
    .site-header .nav-links li:last-child { padding: .5rem 1.25rem 0; }
    main.container { padding-top: 1.5rem; }
    .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1rem 2.5rem; }
    .fit-illustration { max-width: 500px; padding: 16px; }
    .landing-features { grid-template-columns: 1fr; }
    .landing-features > * { padding: 28px 24px; }
    .wizard .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard .proportions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .visual-card img { height: 140px; }
    .proportions-grid .visual-card img { height: 130px; }
    .proportions-grid .visual-card span { font-size: .75rem; }
    .profile-summary { flex-wrap: wrap; padding: 1rem; gap: .75rem; }
    .profile-summary > img { width: 45px; height: 90px; }
    .profile-data { flex-basis: calc(100% - 65px); font-size: .85rem; }
    .profile-summary button { width: 100%; }
    #favorites-list { grid-template-columns: 1fr !important; }
    .detail-photo { padding: 16px; }
    .detail-photo img { height: 260px; }
    .static-page { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (min-width: 768px) { .mobile-only { display: none; } }
.tryon-image { display: block; width: 100%; margin-top: 1rem; border-radius: 10px; }
.tryon-output { display: flex; flex-direction: column; justify-content: center; min-height: 240px; padding: 1rem;
                border: 2px dashed var(--line); border-radius: 24px; text-align: center; }
.tryon-output .tryon-image { margin-top: 0; }
