/* Canggu Bike, shared design system. Native CSS, one theme per page (follows the OS),
   one accent per site (set on <body data-site="rent|wash|hub">).
   Shape rule: buttons and chips are pills, cards 20px, inputs 12px. Nothing else. */
/* Outfit loads with font-display: optional (never swaps mid-load, so no layout shift). Until it is cached,
   text uses Arial resized to Outfit's metrics, so line breaks match. */
@font-face { font-family: "Outfit"; src: url("/shared/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: optional; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); font-weight: 100 600; size-adjust: 99.58%; ascent-override: 100.42%; descent-override: 26.11%; line-gap-override: 0%; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Bold"); font-weight: 601 900; size-adjust: 96.20%; ascent-override: 103.95%; descent-override: 27.03%; line-gap-override: 0%; }

:root {
  --bg: #f2f4f3; --surface: #ffffff; --ink: #0f1417; --muted: #4f5b64; --line: #d8dee1;
  --ink-on-accent: #0f1417;
  --r-card: 20px; --r-input: 12px; --r-pill: 999px;
  --shadow: 0 1px 0 rgb(15 20 23 / .04), 0 18px 40px -22px rgb(15 20 23 / .28);
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
body[data-site="rent"] { --accent: #ff5a1f; --accent-text: #b8360a; --tint: #ffe9df; }
body[data-site="wash"] { --accent: #19b6cf; --accent-text: #0a6577; --tint: #dcf4f8; }
body[data-site="hub"]  { --accent: #ff5a1f; --accent-text: #b8360a; --tint: #ffe9df; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1114; --surface: #151c21; --ink: #eef2f3; --muted: #9aa8b0; --line: #26313a;
          --shadow: 0 1px 0 rgb(255 255 255 / .04), 0 18px 40px -22px rgb(0 0 0 / .8); }
  body[data-site="rent"], body[data-site="hub"] { --accent-text: #ff7d4d; --tint: #2a1a13; }
  body[data-site="wash"] { --accent-text: #4fd3e8; --tint: #0f2a30; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
a, button, summary, label, select, input { touch-action: manipulation; -webkit-tap-highlight-color: rgb(255 90 31 / .18); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 "Outfit", "Outfit Fallback", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* header: one line, 68px */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr .wrap { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; font-size: 1.2rem; white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); letter-spacing: 0; font-size: .95rem; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a:active { color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--ink-on-accent); }
.burger:hover { border-color: var(--ink); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); place-items: center; cursor: pointer; font-size: 1.4rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: 600 1rem/1 "Outfit", "Outfit Fallback", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--ink-on-accent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* photo slots: icon fallback under, real <img> on top (removed by onerror if the file is missing) */
.photo { position: relative; overflow: hidden; border-radius: var(--r-card); background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent) 8%, var(--bg))); display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.photo > .ico { width: 56px; height: 56px; opacity: .55; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.sec-head p { margin-top: 16px; color: var(--muted); max-width: 56ch; }
.accent { color: var(--accent-text); }

/* hero: split, fits the first viewport */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; min-height: min(640px, calc(100dvh - 68px - 40px)); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); }
.hero .sub { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .photo { aspect-ratio: 4 / 4.4; border-radius: 28px; transform: rotate(1.2deg); box-shadow: var(--shadow); }

/* strip of facts under hero (plain, no cards) */
.facts { border-block: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px; display: flex; gap: 12px; align-items: center; font-weight: 500; }
.facts li + li { border-left: 1px solid var(--line); }
.facts .ico { color: var(--accent-text); font-size: 1.5rem; }

/* forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-input); border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--surface); color: var(--ink); font: 400 1rem "Outfit", "Outfit Fallback", sans-serif; }
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
.field .err { color: #c0261c; font-size: .9rem; min-height: 1.2em; }
@media (prefers-color-scheme: dark) { .field .err { color: #ff8a80; } }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0261c; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hint { color: var(--muted); font-size: .92rem; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .3s var(--ease); color: var(--accent-text); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 56px 0 120px; color: var(--muted); }
.ftr .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr h3 { font-size: 1rem; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr .copy { grid-column: 1 / -1; font-size: .9rem; padding-top: 24px; border-top: 1px solid var(--line); }

/* sticky WhatsApp bar on phones */
.wa-fab { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); box-shadow: 0 14px 30px -10px rgb(0 0 0 / .45); }

/* reveal on scroll (motion = hierarchy: content arrives in reading order) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .rv.in { opacity: 1; transform: none; }
  .hero h1, .hero .sub, .hero .cta { animation: rise .9s var(--ease) both; }
  .hero .sub { animation-delay: .08s; } .hero .cta { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 880px) {
  .hdr .wrap { gap: 12px; }
  .burger { display: grid; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; flex-direction: column; align-items: stretch; gap: 0; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 14px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero .photo { aspect-ratio: 16 / 11; transform: none; order: -1; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row2 { grid-template-columns: 1fr; }
  .ftr .wrap { grid-template-columns: 1fr; }
}
@media (min-width: 881px) { .wa-fab { display: none; } }

/* ---------- editorial pages (guides, bike pages, service pages) ---------- */
.crumbs { padding: 22px 0 0; font-size: .92rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; color: var(--ink); }
.art { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 104px); }
.art-head { max-width: 800px; }
.art-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.art-head .meta { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.answer { margin-top: 28px; padding: 22px 26px; border-radius: var(--r-card); background: var(--tint); border: 1px solid transparent; max-width: 800px; }
.answer b { display: block; margin-bottom: 6px; color: var(--accent-text); font-size: .95rem; letter-spacing: .01em; }
.answer p { font-size: 1.12rem; line-height: 1.55; }
.art-grid { display: grid; grid-template-columns: minmax(0, 800px) 300px; gap: clamp(32px, 5vw, 72px); margin-top: 40px; align-items: start; }
.prose { font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 52px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 8px; letter-spacing: -.02em; }
.prose p { margin: 0 0 18px; color: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent-text); }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose .tablewrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .88rem; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.prose tr:last-child td { border-bottom: 0; }
.prose td.n, .prose th.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose .src { font-size: .92rem; color: var(--muted); }
.prose .src li { font-size: .92rem; }
.aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.aside .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.aside h2, .aside h3 { font-size: 1.05rem; margin: 0 0 12px; letter-spacing: -.01em; }
.aside .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.aside .price small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.aside dl { margin: 14px 0 18px; display: grid; gap: 8px; font-size: .96rem; }
.aside dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.aside dt { color: var(--muted); } .aside dd { margin: 0; font-weight: 600; text-align: right; }
.aside .btn { width: 100%; }
.aside .btn + .btn { margin-top: 10px; }
.aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside ul a { text-decoration: none; font-weight: 500; } .aside ul a:hover { text-decoration: underline; color: var(--accent-text); }
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; margin-bottom: 18px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rel-grid a { display: block; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), border-color .2s; }
.rel-grid a:hover { transform: translateY(-3px); border-color: var(--accent); }
.rel-grid b { display: block; font-size: 1.08rem; letter-spacing: -.02em; }
.rel-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: .95rem; }
.cta-band { margin-top: 56px; padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: #10161a; color: #eef2f3; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 22ch; }
.cta-band p { color: #a7b4bb; margin-top: 8px; max-width: 46ch; }
.cta-band .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #eef2f3; border-color: rgb(238 242 243 / .4); } .cta-band .btn-ghost:hover { border-color: #eef2f3; }
.photo-wide { aspect-ratio: 16 / 9; margin: 8px 0 34px; border-radius: 24px; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hub-list a { display: block; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), border-color .2s; }
.hub-list a:hover { transform: translateY(-3px); border-color: var(--accent); }
.hub-list b { display: block; font-size: 1.2rem; letter-spacing: -.02em; } .hub-list span { display: block; margin-top: 8px; color: var(--muted); }
.ftr .cols4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 980px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } .ftr .cols4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 880px) { .ftr .cols4 { grid-template-columns: 1fr; } }

.art-grid > *, .prose > * { min-width: 0; }
.prose .models { gap: 14px; }
.prose .models .model h4 { overflow-wrap: anywhere; }
