/* Welcome Bikers web (creators., go., open., account deletion). Mobile-first, no build step.
   Tokens and character follow the partners landing (wb_partners_landing/site/styles.css).

   Classes for pages that extend templates/web/base.html:
   .container            centred column with safe-area gutters (max 1200px; .container--narrow 720px)
   .header               dark bar with the logo; .header--overlay sits over a hero image
   .hero                 dark block; .hero__bg <picture> behind it; .hero__title (caps, <em> = red line),
                         .hero__lead, .hero__actions, .hero__note
   .section              vertical rhythm; --paper (light), --white, --black; .section__head h2 + .section__lead
   .btn                  52px button; --red (main), --dark, --ghost (on dark), --light; --lg, --sm, --block
   .card                 white card, radius 16; .card--dark on black
   .steps/.step          numbered steps (.step__icon, .step__num, h3, p)
   .faq                  <details> list: .faq details > summary + .faq__a p
   .field                label + input/textarea/select; .field__hint, .field__error, .is-invalid
   .check                checkbox row: <label class="check"><input type="checkbox"> <span>…</span></label>
   .notice               inline message; --info, --error, --success; .banner = full-width top strip
   .stack                vertical gap 16px (.stack--lg 28px); .muted, .fineprint, .center
   .reveal               fades in on scroll when JS is on (html.motion); respects reduced motion
*/

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.c154477b9aff.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/montserrat-extra.b19ed2a33677.woff2") format("woff2");
  unicode-range: U+106-107, U+10C-10D, U+110-111, U+160-161, U+17D-17E, U+2248;
}

:root {
  --black: #0a0a0a;
  --ink: #111214;
  --surface: #17181a;
  --surface-2: #202124;
  --paper: #f3f2ef;
  --white: #ffffff;
  --text: #111214;
  --text-2: #55585d;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.68);
  --line: rgba(17, 18, 20, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --red: #ff0000;
  --red-btn: #e10000;
  --red-dark: #c11111;
  --red-text: #d10000;
  --green: #15803d;
  --header-h: 68px;
  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.35);
  --section-y: clamp(56px, 10vw, 112px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--white); color: var(--black); font-weight: 700; }
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }
.stack { display: grid; gap: 16px; }
.stack--lg { display: grid; gap: 28px; }
.muted { color: var(--text-2); }
.fineprint { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.center { display: flex; justify-content: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius-sm);
  font-size: 17px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn[disabled], .btn.is-busy { opacity: 0.6; cursor: default; pointer-events: none; }
.btn--red { background: var(--red-btn); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--red-btn); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--light:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header and footer ---------- */
.header { background: var(--black); color: var(--white); }
.header--overlay { position: absolute; inset: 0 0 auto; z-index: 10; background: transparent; }
.header__bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); padding-top: env(safe-area-inset-top); }
.header__logo img { height: 46px; width: auto; }
.header__bar > :last-child:not(.header__logo) { margin-left: auto; }
.footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); background: var(--black); color: var(--on-dark-2); font-size: 15px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--black { background: var(--black); color: var(--on-dark); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 48px); }
.section__head h2, .title {
  font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.section__lead { margin-top: 14px; font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 600px; }
.section--black .section__lead, .section--black .muted { color: var(--on-dark-2); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 56px; background: var(--black); color: var(--on-dark); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.35) 35%, rgba(10, 10, 10, 0.8) 75%, var(--black) 100%);
}
.hero__title { font-size: clamp(40px, 12vw, 88px); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__lead { margin-top: 20px; max-width: 540px; font-size: clamp(18px, 2.2vw, 22px); color: rgba(255, 255, 255, 0.86); }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--on-dark-2); }
@media (min-width: 560px) { .hero__actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 980px) {
  .hero { min-height: min(88svh, 820px); display: flex; align-items: center; }
  .hero__bg::after {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(10, 10, 10, 0.15) 100%),
      linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, transparent 25%, transparent 70%, rgba(10, 10, 10, 0.9) 100%);
  }
}

/* ---------- Cards and steps ---------- */
.card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.card--dark { background: var(--surface); border-color: var(--line-dark); color: var(--on-dark); }
@media (min-width: 700px) { .card { padding: 32px; } }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.step__icon { grid-row: span 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--red-btn); }
.step__icon .i { width: 26px; height: 26px; }
.step__num { color: var(--red-text); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; }
.step h3 { margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.step p { margin-top: 6px; color: var(--text-2); }
.step + .step::before { content: ""; position: absolute; left: 47px; top: -15px; height: 16px; border-left: 2px dashed var(--red-btn); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { grid-template-columns: 1fr; padding: 28px 24px; }
  .step__icon { grid-row: auto; margin-bottom: 18px; }
  .step + .step::before { left: -21px; top: 55px; width: 20px; height: 0; border-left: 0; border-top: 2px dashed var(--red-btn); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 20px 44px 20px 0; font-size: 19px; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  border-radius: 2px; background: var(--red-btn); transition: transform 0.25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq__a p { padding: 0 44px 22px 0; color: var(--text-2); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-size: 15px; font-weight: 700; }
.field__opt { margin-left: 6px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 13px 16px; border: 1.5px solid #d5d6d8; border-radius: var(--radius-sm);
  background: var(--white); font-size: 17px; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9ca0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 18, 20, 0.08); }
.field input[readonly] { background: var(--paper); color: var(--text-2); }
.field__hint { font-size: 14px; color: var(--text-2); }
.field__error { color: var(--red-btn); font-size: 14px; font-weight: 600; }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--red-btn); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check, .field > label.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 16px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red-btn); }

/* ---------- Notices ---------- */
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-size: 16px; }
.notice--info { background: #eef3fb; border-color: #c9d8f0; }
.notice--error { background: #fdecec; border-color: #f3b8b8; color: #8f0000; }
.notice--success { background: #e9f6ee; border-color: #b7e1c6; color: #0f5a2b; }
.banner { padding: 12px 0; background: #fff4d6; color: #5c4300; font-size: 15px; font-weight: 600; }
.banner .container { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }

/* ---------- Motion: light reveals, off for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal { opacity: 0; translate: 0 24px; transition: opacity 600ms var(--ease) var(--d, 0ms), translate 800ms var(--ease) var(--d, 0ms); }
  .motion .reveal.is-in { opacity: 1; translate: 0 0; }
}
