/* HELP ME CHOOSE - the page's styles. Phone first: most people meet this page on a phone.
   Brand (F:\BIKOTIC BRANDING\brand-guide.md): the light layout. Blue gradient header, white page, navy footer.
   Orange (--bk-buy) is ONLY on affiliate buy links. Sage is bike 1, plum is bike 2, nothing else.
   Oswald for headings and labels, IBM Plex Sans for reading, JetBrains Mono for numbers. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bk-white); color: var(--bk-text); overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--bk-blue); }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--bk-navy); outline-offset: 2px; }
h2:focus { outline: none; }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 16px; }
.grey { color: var(--bk-text-grey); }
.note { color: var(--bk-text-grey); font-size: 15px; }
.error { color: var(--bk-text); font-weight: 600; border-left: 4px solid var(--bk-navy); padding-left: 10px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ header and hero */
.top { background: var(--bk-hero-gradient); color: var(--bk-text-on-dark); padding-bottom: 28px; }
.topRow { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { width: 130px; height: auto; }
.topLink { font-family: var(--bk-font-head); font-weight: 500; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--bk-white); text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 0 4px; }
.hero { padding-top: 14px; }
.hero h1 { font-size: clamp(40px, 11vw, 72px); }
.hero .bk-lead { margin-top: 12px; max-width: 34em; font-size: 17px; }

/* ------------------------------------------------------------ the stage: questions, e-bike panel, results */
#stage { padding-top: 20px; padding-bottom: 36px; scroll-margin-top: 8px; min-height: 420px; }
.card { background: var(--bk-white); border: 1px solid var(--bk-border); border-radius: 12px; padding: 18px 16px; max-width: 620px; margin: 0 auto; }
.card > * + * { margin-top: 12px; }
.progress { color: var(--bk-blue); font-size: 13px; }
.bar { height: 6px; background: var(--bk-light-blue); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; background: var(--bk-blue); }
.qTitle { font-size: 26px; margin-top: 16px; }
.options { display: grid; gap: 10px; margin-top: 16px; }
.option { min-height: 58px; padding: 12px 16px; text-align: left; font-size: 17px; font-weight: 500; background: var(--bk-white); border: 2px solid var(--bk-border); border-radius: 10px; cursor: pointer; }
.option.on { border-color: var(--bk-blue); background: var(--bk-light-blue); }
.option:active { background: var(--bk-panel); }
.quizNav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.link { background: none; border: 0; padding: 0 6px; min-height: 44px; color: var(--bk-blue); font-weight: 500; text-decoration: underline; cursor: pointer; }

/* buttons that aren't for buying: flat brand blue, Oswald */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 2px solid var(--bk-blue); border-radius: 8px; background: var(--bk-blue); color: var(--bk-white); font-family: var(--bk-font-head); font-weight: 500; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn.ghost { background: var(--bk-white); color: var(--bk-blue); }
.btn.small { min-height: 44px; padding: 6px 14px; font-size: 14px; }

/* the height question */
.units { display: flex; gap: 8px; }
.unit { min-height: 44px; padding: 6px 14px; border: 2px solid var(--bk-border); border-radius: 8px; background: var(--bk-white); cursor: pointer; font-weight: 500; }
.unit.on { border-color: var(--bk-blue); background: var(--bk-light-blue); }
.fields > * + * { margin-top: 12px; }
.fieldRow { display: flex; gap: 10px; align-items: flex-end; }
.field { display: block; }
.fieldLabel { display: block; font-weight: 500; margin-bottom: 4px; }
.fieldBox { display: flex; align-items: center; gap: 6px; }
.field input { width: 96px; min-height: 48px; padding: 8px 10px; font-size: 18px; border: 2px solid var(--bk-border); border-radius: 8px; background: var(--bk-white); color: var(--bk-text); }
.field input:focus { border-color: var(--bk-blue); outline: none; }
.fieldUnit { color: var(--bk-text-grey); }
.fieldActions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the e-bike panel (in the questions and in its guide tab) */
.ebike ul, .guide ul { padding-left: 20px; }
.ebike li + li, .guide li + li { margin-top: 8px; }
.ebike > div > * + *, .guide > div > * + * { margin-top: 12px; }

/* ------------------------------------------------------------ the results */
.resultsHead > * + * { margin-top: 8px; }
.resultsHead .bk-h2 { font-size: clamp(30px, 8vw, 44px); }
.notice { background: var(--bk-light-blue); border-radius: 10px; padding: 12px 14px; }
.notice > * + * { margin-top: 8px; }
.nearest .btn { margin-left: 4px; }
.pair { display: grid; gap: 16px; margin-top: 16px; }
.pick { border: 1px solid var(--bk-border); border-radius: 12px; overflow: hidden; background: var(--bk-white); display: flex; flex-direction: column; }
.pickHead { color: var(--bk-white); padding: 12px 14px; }
.pick1 .pickHead { background: var(--bk-bike1-gradient); }
.pick2 .pickHead { background: var(--bk-bike2-gradient); }
.pickHead .bk-label { font-size: 13px; }
.pick { scroll-margin-top: 8px; }
.pick:focus { outline: none; }
.pickSlot { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.slotTag, .justIn { font-family: var(--bk-font-head); font-weight: 600; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; border-radius: 6px; padding: 3px 10px; }
.slotTag { background: var(--bk-white); }
.pick1 .slotTag { color: var(--bk-bike1-end); }
.pick2 .slotTag { color: var(--bk-bike2); }
.justIn { border: 1px solid var(--bk-white); padding: 2px 9px; }
.pickName { font-family: var(--bk-font-head); font-weight: 600; font-size: 22px; line-height: 1.15; text-transform: uppercase; margin-top: 2px; }
.pickName .year { font-size: 15px; font-weight: 500; opacity: .9; }
.photoBox { background: var(--bk-white); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 6px; }
.photoBox img { width: 100%; height: 100%; object-fit: contain; }
.pickBody { padding: 4px 14px 16px; }
.pickBody > * + * { margin-top: 10px; }
.price strong { font-size: 22px; }
.price .grey { font-size: 14px; }
.why { font-size: 16px; }
.size .bk-data { font-weight: 700; }
.sizeBox { background: var(--bk-panel); border-radius: 8px; padding: 10px 12px; }
.tag { display: inline-block; font-size: 14px; font-weight: 500; color: var(--bk-text-grey); background: var(--bk-panel); border-radius: 6px; padding: 3px 8px; }
.buy { border-top: 1px solid var(--bk-border); padding-top: 12px; }
.buy > * + * { margin-top: 10px; }
.buyRow > * + * { margin-top: 4px; }
.facts { font-size: 14px; color: var(--bk-text-grey); }
/* THE ONLY ORANGE ON THE PAGE: an affiliate link out to a shop */
.buyBtn, .directBtn { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.buyBtn { background: var(--bk-buy); color: var(--bk-buy-text); }
.directBtn { border: 2px solid var(--bk-blue); color: var(--bk-blue); background: var(--bk-white); }

/* COMPARE: the brand's main action, a white button on navy */
.compareBand { background: var(--bk-navy); color: var(--bk-text-on-dark); border-radius: 12px; padding: 18px 16px; margin-top: 16px; text-align: center; }
.compareBtn { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 12px; background: var(--bk-white); color: var(--bk-compare-text); border-radius: 8px; font-family: var(--bk-font-head); font-weight: 600; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }

.moreTitle { margin-top: 28px; }
.more { list-style: none; padding: 0; margin-top: 10px; border-top: 1px solid var(--bk-border); }
.moreRow { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bk-border); }
.thumbBox { width: 76px; aspect-ratio: 16 / 10; display: flex; align-items: center; }
.thumbBox img { width: 100%; height: 100%; object-fit: contain; }
.moreText { min-width: 0; }
.moreText > * + * { margin-top: 2px; }
.moreName { font-weight: 600; line-height: 1.3; }
.moreText .price strong { font-size: 16px; }
.moreText .why, .moreText .size { font-size: 14px; color: var(--bk-text-grey); }
.moreText .tag { margin-top: 4px; margin-right: 4px; font-size: 13px; }
/* the swap buttons say what they do: under the bike on a phone, side by side, sage for bike 1 and plum for bike 2 */
.swap { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swapBtn { min-height: 46px; padding: 6px 8px; border: 0; border-radius: 8px; color: var(--bk-white); font-family: var(--bk-font-head); font-weight: 500; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.swap1 { background: var(--bk-bike1-end); }
.swap2 { background: var(--bk-bike2); }
.resultsEnd { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ the guides */
.guides { background: var(--bk-light-blue); padding: 32px 0 40px; }
.guides .bk-h2 { font-size: clamp(30px, 8vw, 44px); }
.guidesLead { margin-top: 8px; font-size: 17px; }
.tabs { display: none; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.js .tabs { display: flex; }
.tabs button { min-height: 46px; padding: 8px 14px; border: 2px solid var(--bk-blue); border-radius: 8px; background: var(--bk-white); color: var(--bk-blue); font-family: var(--bk-font-head); font-weight: 500; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--bk-blue); color: var(--bk-white); }
.guide { background: var(--bk-white); border-radius: 12px; padding: 18px 16px; margin-top: 14px; font-size: 17px; }
.guide > * + * { margin-top: 12px; }
.guide .bk-h3 { font-size: 22px; }

/* ------------------------------------------------------------ footer */
.foot { background: var(--bk-navy); color: var(--bk-text-grey-on-dark); font-size: 14px; padding: 24px 0 32px; }
.foot p + p { margin-top: 8px; }
.foot a { color: var(--bk-mist); display: inline-block; padding: 12px 2px; }

/* ------------------------------------------------------------ wider screens */
@media (min-width: 760px)
{
	.wrap { padding: 0 24px; }
	.hero .bk-lead { font-size: 19px; }
	.card { padding: 24px; }
	.options { grid-template-columns: 1fr 1fr; }
	.pair { grid-template-columns: 1fr 1fr; align-items: stretch; }
	.compareBand { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 18px 24px; }
	.compareBtn { margin-top: 0; padding: 0 44px; flex: none; }
	.moreRow { grid-template-columns: 110px 1fr auto; gap: 16px; }
	.thumbBox { width: 110px; }
	.swap { grid-column: auto; grid-template-columns: 1fr; width: 190px; }
	.guide { padding: 24px; font-size: 18px; }
}

/* ------------------------------------------------------------ THE CONSENT BOX (index.html #consentBar, app.js CONSENT)
   The comparison app's own box (its buy.css THE CONSENT BOX), the same look: the page dimmed behind a centred white box,
   Accept and Reject the same size and look (Reject is never smaller, fainter or harder to reach), and the privacy page.
   It has to be answered before the page can be used. Gone for good once answered. */
#consentBar { position: fixed; inset: 0; z-index: 850; display: flex; align-items: center; justify-content: center; padding: 16px; color: #141414; }
.cbBack { position: absolute; inset: 0; background: rgba(20, 37, 54, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cbBox { position: relative; width: 100%; max-width: 440px; padding: 20px; background: #ffffff; border: 1px solid var(--bk-border); border-radius: 14px; box-shadow: 0 18px 50px rgba(20, 37, 54, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08); outline: none; }
.cbText { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.cbActs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cbActs button { min-height: 48px; padding: 0 14px; font-family: var(--bk-font-body); font-weight: 600; font-size: 16px; color: var(--bk-blue); background: #ffffff; border: 1px solid var(--bk-blue); border-radius: 8px; cursor: pointer; }
.cbActs button:hover { background: var(--bk-blue); color: #ffffff; }
.cbPrivacy { display: inline-block; margin-top: 6px; padding: 12px 0; font-size: 14px; line-height: 20px; color: var(--bk-blue); text-decoration: underline; }
@media (max-height: 480px)
{
	.cbBox { padding: 14px 16px; }
	.cbText { margin-bottom: 10px; font-size: 15px; }
	.cbActs button { min-height: 44px; }
	.cbPrivacy { margin-top: 2px; }
}
/* above the picks: the comparison app's "Ad" line and the state of tracking, with Change */
.buyAff { margin-top: 12px; font-size: 14px; color: var(--bk-text-grey); }
.buyAff:empty { display: none; }
.buyAd { display: inline-block; font-weight: 600; color: var(--bk-text); border: 1px solid var(--bk-text-grey); border-radius: 4px; padding: 0 5px; line-height: 1.4; }
.buyState { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.buyChange { min-height: 44px; min-width: 44px; padding: 0 6px; background: none; border: 0; color: var(--bk-blue); font-weight: 500; text-decoration: underline; cursor: pointer; }
