/* gear.css — the Fin Selector. Reuses quiz.css (.which-options, .data-ribbon) and site.css. */

.fin-quiz { padding-bottom: var(--space-4); }
.fin-step { gap: var(--space-2); }
.fin-hint { text-align: center; color: var(--muted); margin: 0; font-size: 0.92rem; }
.fin-progress {
  height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent);
  position: relative; overflow: hidden;
}
.fin-progress::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--done, 0%);
  background: var(--accent); transition: width 0.2s ease;
}
@media (prefers-reduced-motion: reduce) { .fin-progress::after { transition: none; } }

.which-options button.fin-suggested { border-color: var(--accent); }
.which-options button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.fin-search {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; margin-bottom: var(--space-2);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--border-strong); border-radius: 12px;
}
.fin-search:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fin-model-list { max-height: 60vh; overflow-y: auto; }
/* long model names wrap onto two lines: the button grows with them instead of spilling */
.fin-model-list button { height: auto; min-height: 44px; white-space: normal; }
/* the list scrolls inside a fixed height: without this its flex rows shrink and the icons spill
   over the next row (owner's phone, 2026-10-31) */
.fin-model-list > * { flex-shrink: 0; }
.fin-follow { width: 100%; }
.fin-learn { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.fin-learn h2 { font-family: "Bebas Neue", sans-serif; font-size: 1.4rem; margin: 0 0 0.5rem; }
.fin-learn ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.fin-learn a { color: var(--accent); font-weight: 600; }
/* out of the way while the questions are on screen */
#step:not([hidden]) ~ .fin-learn { display: none; }
.fin-reel-result { display: block; margin: 0.25rem 0 var(--space-1); font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.quiz-intro .fin-reel-link { display: block; margin: 1rem auto 0; max-width: 22rem; font-size: 0.85rem; color: inherit; opacity: 0.85; text-decoration: underline; text-underline-offset: 3px; }
/* iOS Safari paints button text its own blue unless told otherwise (owner's iPhone, 2026-10-31) */
.which-options button { color: var(--ink); -webkit-text-fill-color: currentColor; }
/* room between "Não sei" and the search box, whose focus ring would otherwise cover its border */
.fin-model-step > .which-options { margin-bottom: var(--space-2); }
.which-options button.fin-has-icon { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.fin-icon { width: 48px; height: 48px; flex: none; border-radius: 8px; }
.fin-opt-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--q-surface-2, rgba(127, 127, 127, 0.12)); color: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.fin-opt-icon svg { width: 40px; height: 40px; }
.fin-opt-emoji { font-size: 1.9rem; background: none; }
#fin-glossary[data-futures="no"] .fin-gloss-ride { display: none; }

.fin-nav { display: flex; gap: var(--space-1); justify-content: space-between; margin-top: var(--space-2); }
.fin-nav .btn { flex: 1 1 0; }
.fin-nav .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.fin-result { display: grid; gap: var(--space-2); padding-top: var(--space-3); }
.fin-result h2 { font-family: "Bebas Neue", sans-serif; font-size: 2rem; margin: 0; }
.fin-current h3, .fin-pick h3 { margin: 0.2rem 0; }
.fin-name-row { display: flex; align-items: center; gap: 0.75rem; }
.fin-icon-lg { width: 64px; height: 64px; }
.fin-shape { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin: 0.3rem 0; overflow-wrap: anywhere; }
.fin-diff { font-weight: 600; margin: 0.3rem 0; }
.fin-why { margin: 0; }
.fin-pick { display: grid; gap: 0.2rem; border-left: 3px solid var(--accent); }
.fin-shops { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-1); }
/* one shop per row: "Buscar em Mercado Livre" in a half-width button wrapped to three lines on a phone */
.fin-shop-row { flex: 1 1 100%; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.fin-shop-row .btn { width: 100%; }
.fin-shop-meta { margin: 0; font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.fin-disclosure { font-size: 0.8rem; margin: 0 0 var(--space-1); }
.fin-shop-minor { flex: 0 1 auto; }
.fin-shop-minor .btn { width: auto; font-size: 0.85rem; padding: 0.35rem 0.8rem; }
.fin-spec-link { margin-top: 0.4rem; align-self: start; font-size: 0.85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.fin-note { font-size: 0.82rem; color: var(--muted); margin: 0; }
.fin-error { color: var(--bad); }
.fin-contact { display: grid; gap: var(--space-1); }
.fin-contact .fin-search { margin-bottom: 0; }
.fin-contact .fin-hint { text-align: left; font-size: 0.82rem; }
/* the symptom list is long: keep Back / Next on screen while scrolling it */
.fin-step-multi .fin-nav {
  position: sticky; bottom: 0; padding: var(--space-1) 0 calc(var(--space-1) + env(safe-area-inset-bottom));
  background: var(--ground); z-index: 2;
}
.fin-consent { min-height: 44px; align-items: center; }
.fin-consent input { min-width: 24px; min-height: 24px; }
.fin-consent a { display: inline-block; padding: 0.4rem 0; }

/* ---------------------------------------------------------------- Fin Comparator (gear/fins/compare/) */
.fin-compare { display: grid; gap: var(--space-2); padding-top: var(--space-3); padding-bottom: var(--space-3); }
.fc-head h1 { font-family: "Bebas Neue", sans-serif; font-size: 2.6rem; margin: 0; line-height: 1; }
.fc-lede { margin: 0.4rem 0 0; color: var(--muted); max-width: 40rem; }
.fc-loc { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.fc-loc-select, .fc-size { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--muted); border-radius: 8px; padding: 0.35rem 0.4rem; min-height: 36px; max-width: 100%; }
.fc-loc-select { font-weight: 600; }
/* fins as columns; a trait name spans the full width above its boxes */
.fc-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); column-gap: 0.6rem; row-gap: 0.35rem; align-items: start; }
.fc-col { min-width: 0; }
.fc-headcell { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; padding: 0.75rem 0.4rem 0.6rem; background: var(--paper, #F7EEDF); border-radius: 12px; border-top: 3px solid var(--accent); }
.fc-icon { width: 56px; height: 56px; }
.fc-name { font-family: "IBM Plex Sans", sans-serif; font-size: 0.9rem; font-weight: 700; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.fc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin: 0; }
.fc-chip { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.02em; padding: 0.1rem 0.4rem; border-radius: 999px; background: rgba(127, 127, 127, 0.14); }
.fc-size { font-size: 0.8rem; width: 100%; }
.fc-size-one { font-size: 0.8rem; margin: 0; color: var(--muted); }
.fc-remove { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.fc-remove:focus-visible { outline: 2px solid var(--accent); }
.fc-add { min-height: 140px; border: 2px dashed var(--muted); border-radius: 12px; background: none; color: var(--accent); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; padding: 0.5rem; }
@media (hover: hover) { .fc-add:hover { border-color: var(--accent); } }
.fc-trait { grid-column: 1 / -1; margin-top: 0.5rem; padding-top: 0.45rem; border-top: 1px solid rgba(127, 127, 127, 0.25); }
.fc-trait-name { font-family: "Bebas Neue", sans-serif; font-size: 1.25rem; letter-spacing: 0.03em; }
.fc-cell { display: flex; justify-content: center; }
.fc-boxes { display: flex; gap: 3px; }
.fc-box { width: clamp(12px, 3.6vw, 20px); aspect-ratio: 1; border-radius: 3px; border: 1.5px solid var(--accent); opacity: 0.55; }
.fc-box.on { background: var(--accent); opacity: 1; }
.fc-na { font-size: 0.7rem; line-height: 1.25; color: var(--muted); text-align: center; }
.fc-buycell { display: grid; gap: 0.4rem; margin-top: 0.8rem; }
.fc-shops { display: grid; gap: 0.3rem; }
.fc-buy { width: 100%; font-size: 0.85rem; padding-left: 0.4rem; padding-right: 0.4rem; white-space: normal; line-height: 1.2; min-height: 44px; }
.fc-small { margin: 0; font-size: 0.7rem; color: var(--muted); overflow-wrap: anywhere; text-align: center; }
.fc-more summary, .fc-measures summary { font-size: 0.75rem; color: var(--muted); cursor: pointer; text-align: center; padding: 0.35rem 0; min-height: 32px; }
.fc-more { display: grid; }
.fc-more[open] { gap: 0.25rem; }
.fc-shop-link { display: block; font-size: 0.75rem; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; padding: 0.3rem 0; overflow-wrap: anywhere; text-align: center; }
.fc-measures[open] { display: grid; gap: 0.1rem; text-align: center; }
.fc-measure { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.fc-measures .fin-spec-link { align-self: center; font-size: 0.75rem; margin-top: 0.2rem; }
.fc-actions { display: flex; justify-content: center; }
.fc-legend h2, .fc-cta h2, .fc-picker h2 { font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; margin: 0 0 0.5rem; }
.fc-legend dl { margin: 0; display: grid; gap: 0.15rem; }
.fc-legend dt { font-weight: 700; margin-top: 0.4rem; }
.fc-legend dd { margin: 0; color: var(--muted); font-size: 0.9rem; }
.fc-cta { border-left: 3px solid var(--accent); }
.fc-cta p { margin: 0 0 0.75rem; }
/* the picker */
.fc-picker { display: grid; gap: 0.6rem; }
.fc-picker[hidden] { display: none; }
.fc-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.fc-picker-head h2 { margin: 0; }
.fc-close { padding: 0.35rem 0.9rem; }
.fc-brands { display: flex; gap: 0.4rem; }
.fc-brand { font: inherit; font-size: 0.85rem; padding: 0.4rem 0.9rem; min-height: 40px; border-radius: 999px; border: 1px solid var(--muted); background: none; color: var(--ink); cursor: pointer; -webkit-text-fill-color: currentColor; }
.fc-brand[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #F7EEDF; }
.fc-search { font: inherit; width: 100%; padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid var(--muted); background: transparent; color: var(--ink); }
.fc-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; max-height: 60vh; overflow-y: auto; }
.fc-result { width: 100%; display: flex; align-items: center; gap: 0.6rem; text-align: left; font: inherit; color: var(--ink); -webkit-text-fill-color: currentColor; background: rgba(127, 127, 127, 0.08); border: 1px solid transparent; border-radius: 10px; padding: 0.45rem 0.6rem; min-height: 52px; cursor: pointer; }
.fc-result .fc-icon { width: 40px; height: 40px; }
.fc-result-text { display: grid; }
.fc-result .fc-small { text-align: left; }
.fc-result-name { font-weight: 600; font-size: 0.9rem; }
@media (hover: hover) { .fc-result:hover { border-color: var(--accent); } }
/* the selector's way in: one link under the picks */
.fin-compare-link { display: block; text-align: center; }
.fc-trait { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.6rem; }
.fc-trait-sub { font-size: 0.72rem; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
.fc-ends { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.fc-cell { flex-direction: column; align-items: center; gap: 0.15rem; }
.fc-rn { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.fc-vs { margin: 0; font-size: 0.68rem; line-height: 1.25; color: var(--muted); }
.fc-differ { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); }
.fc-disclosure { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--muted); }
.fin-compare { gap: var(--space-1); }
.fc-head { margin-bottom: var(--space-1); }
.fc-buy { font-family: "IBM Plex Sans", sans-serif; text-transform: none; letter-spacing: 0; font-size: 0.95rem; border-radius: 10px; padding: 0.5rem 0.3rem; }
.fc-more summary, .fc-measures summary { list-style: none; }
.fc-more summary::-webkit-details-marker, .fc-measures summary::-webkit-details-marker { display: none; }
.fc-more summary::before, .fc-measures summary::before { content: "+ "; }
.fc-more[open] summary::before, .fc-measures[open] summary::before { content: "− "; }
.fc-buy { white-space: nowrap; text-align: center; font-size: 0.9rem; padding-left: 0.2rem; padding-right: 0.2rem; }
.fc-yours { border-top-color: var(--navy, #162030); }
.fc-yours-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fc-head + .fin-error[hidden] + .fc-table { margin-top: 0; }
.fc-lede { margin-bottom: 0; }
/* mobile review round 2 */
.fc-measure-list { display: grid; gap: 0.15rem; justify-items: center; }
.fc-stick { position: sticky; top: 0; z-index: 2; background: var(--cream-bg, #F0E4D0); font-size: 0.72rem; font-weight: 700; text-align: center; padding: 0.35rem 0.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid rgba(127, 127, 127, 0.25); }
.fc-remove { width: 44px; height: 44px; top: -4px; right: -4px; }
.fc-loc-select, .fc-size { min-height: 44px; }
.fc-more summary, .fc-measures summary { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.fc-shop-link { padding: 0.65rem 0; }
.fc-yours-tag { margin-top: -0.15rem; }
.quiz-intro #compare-link { margin-top: 0.5rem; }
.fc-more summary::before, .fc-measures summary::before { content: "+\00a0"; }
.fc-more[open] summary::before, .fc-measures[open] summary::before { content: "−\00a0"; }
.fc-buycell { gap: 0; }
/* 1: a buy button never wider than its column (beats .quiz-page .btn from quiz.css) */
.fc-shops { grid-template-columns: minmax(0, 1fr); }
.quiz-page .btn.fc-buy { width: 100%; min-width: 0; padding: 0.45rem 0.2rem; border-radius: 10px; white-space: normal; overflow-wrap: anywhere; font-size: clamp(0.74rem, 3.3vw, 0.9rem); line-height: 1.15; }
/* mobile review round 3 */
.fc-grid > .fc-differ { grid-column: 1 / -1; margin: 0.5rem 0 0; padding: 0.5rem 0.6rem; border-left: 3px solid var(--accent); background: rgba(200, 90, 20, 0.08); font-size: 0.78rem; color: var(--ink); }
.fc-chip-warn { background: rgba(200, 90, 20, 0.16); }
.fc-pick-tag { color: var(--accent); font-weight: 700; }
.fc-full { margin: 0.4rem 0 0; font-size: 0.75rem; color: var(--muted); }
.fc-share-url { display: block; width: 100%; margin-top: 0.5rem; font: inherit; font-size: 0.8rem; padding: 0.6rem; border: 1px solid var(--muted); border-radius: 8px; background: transparent; color: var(--ink); }
.fc-actions { flex-direction: column; align-items: center; }
/* Comparator tidy (2026-11-01): the name strip shows only once the fin cards scroll away; the legend folds */
.fc-stick { transition: opacity 0.15s; }
.fc-grid.fc-heads-on .fc-stick { opacity: 0; visibility: hidden; }
.fc-linkcell { min-width: 0; }
.fc-legend summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 44px; }
.fc-legend summary::-webkit-details-marker { display: none; }
.fc-legend summary h2 { margin: 0; }
.fc-legend summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.fc-legend[open] summary::after { content: "\2212"; }
.fc-legend[open] summary { margin-bottom: 0.25rem; }
/* the selector intro's two text links: a 44px tap area, same look */
.quiz-intro .fin-reel-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 0.4rem; }

/* Fin Selector landing (#intro, owner 2026-11-02: the ad landing page is the selector's own first screen):
   one call to action, how it works, a real example, questions, a second start. Hidden while the quiz runs. */
.fin-quiz .quiz-intro h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 0.98; margin: 0; }
.fin-quiz .quiz-intro .lp-sub { margin: 0; max-width: 30rem; opacity: 0.92; }
.lp-trust { list-style: none; padding: 0; margin: 0.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; font-size: 0.85rem; }
.lp-trust li::before { content: "✓ "; color: #E07030; font-weight: 700; }
.lp-sec { margin-top: 2.2rem; }
.lp-sec > h2 { font-size: 1.7rem; margin: 0 0 0.9rem; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; counter-reset: s; }
.lp-steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.75rem; align-items: start; }
.lp-steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: var(--cream); font-family: "Bebas Neue", sans-serif; font-size: 1.3rem; }
.lp-steps strong { display: block; }
.lp-steps span { font-size: 0.92rem; opacity: 0.85; }
.lp-ex { padding: 1.1rem; }
.lp-ex .lp-ex-tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin: 0 0 0.6rem; }
.lp-ex-row { display: grid; grid-template-columns: 64px 1fr; gap: 0.8rem; align-items: center; padding: 0.55rem 0; }
.lp-ex-row + .lp-ex-row { border-top: 1px dashed rgba(22, 32, 48, 0.2); }
.lp-ex-row img { width: 64px; height: 64px; object-fit: contain; }
.lp-ex-row small { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #C85A14; font-weight: 700; }
.lp-ex-row b { display: block; }
.lp-ex-row span { font-size: 0.85rem; opacity: 0.85; }
.lp-ex .lp-ex-why { margin: 0.7rem 0 0; font-size: 0.88rem; }
.lp-faq details { border-top: 1px solid rgba(22, 32, 48, 0.15); padding: 0.75rem 0; }
.lp-faq details:last-child { border-bottom: 1px solid rgba(22, 32, 48, 0.15); }
.lp-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.lp-faq p { margin: 0.5rem 0 0; font-size: 0.92rem; }
.lp-sizes > p { margin: 0 0 0.7rem; font-size: 0.92rem; }
.fin-size-chart { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.fin-size-chart th, .fin-size-chart td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.fin-size-chart th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.fin-size-chart td:first-child { font-weight: 700; width: 3.2rem; }
.lp-sizes .fin-note { margin: 0.6rem 0 0; font-size: 0.85rem; opacity: 0.85; }
.lp-again { display: flex; justify-content: center; margin: 2rem 0 0.5rem; }
.fin-cookies { margin: 1rem 0 0; font-size: 0.8rem; opacity: 0.7; }
.fin-cookies a { color: inherit; }

/* the trip path (gear/fins/TRIP_DESIGN.md): a spot's name with its break and season under it */
.fin-opt-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.1rem; }
.fin-opt-sub { font-size: 0.8rem; font-weight: 400; opacity: 0.7; }
.fin-trip-other { display: grid; gap: 0.5rem; margin-top: var(--space-2); }
.fin-trip-other .fin-search { margin-bottom: 0; }
.fin-set-head { font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: 0.02em; margin: var(--space-2) 0 0; }
