/* ============================================================================
   Toloka Gopher TSR — Landing page styles
   ----------------------------------------------------------------------------
   Full-page styling for landing.html. Realizes the approved Claude-design layout
   in clean, token-driven CSS. The hero shell lives in hero.css; this file adds
   the hero CTA/micro and every other section.

   Colours come from tokens.css. A few values in the approved design are NOT in
   the Toloka token set — they are centralized here as --x-* so the Webflow
   rebuild can reconcile them in one place (see DESIGN-REVIEW.md).
   ========================================================================== */

:root {
  /* design extras (not yet Toloka tokens — reconcile at Webflow port) */
  --x-tint-1: #e5e5fa;   /* lavender — step/who card 1 */
  --x-tint-2: #e8ffa6;   /* lime     — step/who card 2 */
  --x-tint-3: #ffeec9;   /* peach    — step/who card 3 */
  --x-tint-4: var(--color-accent); /* yellow — step card 4 */
  --x-line:   #e3e3e6;   /* chip / input / button borders */
  --x-num:    #d9d9de;   /* faint card index numerals */
  --x-dash:   #cfcfd6;   /* experimental dashed card border */
  --x-foot-muted: #9b9ca6;
  --x-foot-link:  #e6e6ea;
  --x-on-yellow-sub:   #3a3b42; /* hero sub text on yellow */
  --x-on-yellow-micro: #5a5b62; /* hero microcopy on yellow */
  --x-err: #e5484d;             /* form error (design); token is --color-error */
}

/* ---- primitives ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input, select, button, textarea { font-family: inherit; }
::placeholder { color: var(--color-text-faint); }
h1, h2, h3, p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 28px);
}
.section { padding-block: clamp(48px, 7.2vw, 80px); } /* -20% vertical rhythm */
.section--muted { background: var(--color-bg-muted); }
.section--dark { background: var(--color-ink); color: var(--color-white); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: var(--fw-semibold); font-size: var(--fs-ui);
  border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: var(--btn-transition), transform .2s ease, box-shadow .2s ease;
  white-space: nowrap; text-align: center;
}
.btn--dark { background: var(--color-ink); color: var(--color-white); padding: 16px 28px; }
.btn--dark:hover { background: var(--color-black-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30,31,39,.28); }
.btn--accent { background: var(--color-accent); color: var(--color-ink); padding: 16px 28px; }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,225,106,.4); }
.btn--sm { padding: 11px 18px; font-size: var(--fs-small); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ============================ NAV ======================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  display: inline-flex; width: 36px; height: 36px; border-radius: 9px;
  background: var(--color-accent); align-items: center; justify-content: center; flex: none;
}
.brand__img { width: 72%; height: auto; display: block; }
.brand__name { font-weight: var(--fw-bold); font-size: var(--fs-ui); letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: var(--fs-small); font-weight: var(--fw-medium); }
.nav__links a:hover { color: var(--color-text-muted); }
.nav__lang { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 3px; flex: none; }
.lang__btn {
  padding: 5px 11px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  background: transparent; color: var(--color-text-faint); font-weight: var(--fw-bold); font-size: 12px;
  transition: var(--transition-fast);
}
.lang__btn.is-active { background: var(--color-ink); color: var(--color-white); }
.lang__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav__cta { flex: none; }
.nav__cta .arrow { font-size: 12px; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ============================ HERO (extends hero.css) ==================== */
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--space-8); }
.hero__micro {
  margin-top: var(--space-5); display: flex; align-items: center; gap: 9px;
  font-size: var(--fs-small); color: var(--x-on-yellow-micro);
}
.hero__micro::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-ink); flex: none; }
.hero__sub { color: var(--x-on-yellow-sub) !important; }
.hero__content { max-width: var(--container-max); width: 100%; padding-block: clamp(36px, 6vh, 92px); }
.hero__inner { max-width: 600px; }
/* Reduce hero height + vertically center copy so there's no big empty band
   before the trust band (the ASCII field still fills the section background). */
.hero { min-height: 80svh; display: flex; align-items: center; }

/* ============================ TRUST BAND ================================= */
.trust { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-block: 21px; }
.trust__lockup { display: flex; align-items: center; gap: 11px; font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.trust__lockup .brand__mark { width: 32px; height: 32px; border-radius: 8px; }
.trust__stats { display: flex; flex-wrap: wrap; gap: 18px 38px; margin-left: auto; }
.stat__num { font-size: 25px; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.stat__label { font-size: 13px; color: var(--color-text-muted); font-weight: var(--fw-medium); }

/* ============================ SECTION HEADER ============================= */
.kicker {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 13px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.kicker--outline::before { background: transparent; border: 1.5px solid var(--color-text-faint); }
.kicker--accent { color: var(--color-accent); }
.section__head { max-width: 660px; margin-bottom: 36px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: var(--fw-bold); letter-spacing: -.02em; line-height: 1.1; }

/* problem block */
.problem__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.problem__h { font-size: clamp(27px, 3.6vw, 42px); font-weight: var(--fw-bold); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 22px; }
.problem__body { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; color: var(--color-text-muted); max-width: 60ch; margin-inline: auto; }

/* ============================ FEATURE GRIDS ============================= */
.grid { display: grid; gap: 16px; }
.grid--avail { grid-template-columns: repeat(auto-fit, minmax(286px, 1fr)); }
.grid--exp   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--how   { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.grid--where { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--who   { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card-avail {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 158px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card-avail:hover { border-color: var(--color-ink); box-shadow: 0 10px 26px rgba(30,31,39,.06); }
.card-avail__top { display: flex; align-items: center; justify-content: space-between; }
.card-avail__num { font-size: 13px; font-weight: var(--fw-bold); color: var(--x-num); }
.card-avail__text { font-size: 16.5px; line-height: 1.42; font-weight: var(--fw-medium); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.badge--avail { background: var(--badge-available-bg); color: var(--badge-available-text); }
.badge--exp { align-self: flex-start; background: var(--badge-experimental-bg); border: 1px solid var(--badge-experimental-border); color: var(--badge-experimental-text); padding: 4px 11px; }

.card-exp {
  background: var(--color-bg); border: 1px dashed var(--x-dash); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.card-exp__text { font-size: 16px; line-height: 1.45; font-weight: var(--fw-medium); flex: 1; }
.want {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 8px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: var(--fw-semibold);
  cursor: pointer; color: var(--color-ink); background: transparent; border: 1px solid var(--x-num);
  transition: var(--transition-fast);
}
.want.is-on { background: var(--color-accent); border-color: var(--color-accent); }
.want:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* how it works (dark) */
.card-step {
  border-radius: var(--radius-xl); padding: 26px 24px; min-height: 186px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--color-ink);
}
.card-step:nth-child(4n+1) { background: var(--x-tint-1); }
.card-step:nth-child(4n+2) { background: var(--x-tint-2); }
.card-step:nth-child(4n+3) { background: var(--x-tint-3); }
.card-step:nth-child(4n+4) { background: var(--x-tint-4); }
.card-step__num { font-size: 54px; font-weight: var(--fw-bold); line-height: 1; letter-spacing: -.04em; }
.card-step__text { font-size: 16px; line-height: 1.4; font-weight: var(--fw-semibold); }

/* where you work */
.where__sub { font-size: 15px; font-weight: var(--fw-semibold); color: var(--color-text-muted); font-family: "Courier New", ui-monospace, monospace; letter-spacing: .01em; margin-top: 12px; }
.card-where {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card-where:hover { border-color: var(--color-ink); box-shadow: 0 10px 26px rgba(30,31,39,.06); }
.card-where__tag { font-size: 12px; font-weight: var(--fw-bold); color: var(--color-text-faint); font-family: "Courier New", ui-monospace, monospace; }
.card-where__name { font-size: 19px; font-weight: var(--fw-bold); margin-top: 6px; }
.card-where__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.4; }

/* who it's for */
.card-who { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.who__icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.who__icon:nth-child(1) { } /* tint set per-card below */
.card-who:nth-child(3n+1) .who__icon { background: var(--x-tint-1); }
.card-who:nth-child(3n+2) .who__icon { background: var(--x-tint-2); }
.card-who:nth-child(3n+3) .who__icon { background: var(--x-tint-3); }
.who__icon span { width: 13px; height: 13px; border-radius: 50%; background: var(--color-ink); }
.card-who__title { font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.card-who__body { color: var(--color-text-muted); line-height: 1.55; font-size: 15px; }

/* ============================ FAQ ======================================= */
.faq__inner { max-width: 820px; margin-inline: auto; }
.faq__list { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: none; cursor: pointer; text-align: left;
  font-size: clamp(16px, 1.7vw, 19px); font-weight: var(--fw-semibold); color: var(--color-ink);
}
.faq__q:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.faq__icon { font-size: 26px; font-weight: 300; color: var(--color-text-muted); transition: transform .2s ease; flex: none; line-height: 1; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 4px 26px; font-size: 16px; line-height: 1.62; color: var(--color-text-muted); max-width: 66ch; }
.faq__a[hidden] { display: none; }

/* ============================ WAITLIST + FORM =========================== */
.waitlist__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.waitlist__copy { flex: 1 1 360px; min-width: 300px; }
.waitlist__sub { font-size: 17px; line-height: 1.55; color: var(--color-text-faint); max-width: 42ch; margin: 18px 0 28px; }
.points { display: flex; flex-direction: column; gap: 14px; }
.point { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e6e6ea; }
.point__check { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,225,106,.18); color: var(--color-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: var(--fw-bold); flex: none; }
.waitlist__formwrap { flex: 1 1 440px; min-width: 300px; }

.form {
  background: var(--color-bg); color: var(--color-ink); border-radius: var(--radius-2xl);
  padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 20px;
}
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; }
.label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: var(--fw-semibold); margin-bottom: 8px; }
.label .req { color: var(--x-err); }
.label .opt { color: var(--color-text-faint); font-weight: var(--fw-medium); }
.input, .select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-md); border: 1px solid var(--x-line);
  font-size: 15px; color: var(--color-ink); background: var(--color-bg); outline: none;
}
.select { cursor: pointer; }
.input:focus, .select:focus { border-color: var(--color-ink); box-shadow: 0 0 0 3px rgba(30,31,39,.07); }
.input.is-err { border-color: var(--x-err); }
.err { color: var(--x-err); font-size: 13px; margin-top: 7px; font-weight: var(--fw-medium); }
.err[hidden] { display: none; }

.seg { display: flex; gap: 10px; }
.seg__btn {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: var(--fw-semibold);
  cursor: pointer; border: 1px solid var(--x-line); background: var(--color-bg); color: var(--color-ink);
  transition: var(--transition-fast);
}
.seg__btn.is-on { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }
.seg__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: var(--fw-medium); cursor: pointer; user-select: none;
  border: 1px solid var(--x-line); background: var(--color-bg); color: var(--color-ink);
  transition: var(--transition-fast);
}
.chip.is-on { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }
.chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.subgroup__label { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 9px; }
.form__submit { margin-top: 4px; width: 100%; }
.privacy { font-size: 12.5px; color: var(--color-text-faint); text-align: center; line-height: 1.5; }

.success { background: var(--color-bg); color: var(--color-ink); border-radius: var(--radius-2xl); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 340px; justify-content: center; }
.success[hidden], .form[hidden] { display: none; }
.success__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--color-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 30px; }
.success__title { font-size: 26px; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.success__body { color: var(--color-text-muted); line-height: 1.6; font-size: 16px; max-width: 42ch; }

/* ============================ FOOTER ==================================== */
.footer { background: var(--color-black-deep); color: var(--color-white); }
.footer__inner { padding-block: 44px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; justify-content: space-between; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.footer__lockup { font-size: 14px; color: var(--x-foot-muted); }
.footer__links { display: flex; gap: 28px; font-size: 14px; font-weight: var(--fw-medium); }
.footer__links a { color: var(--x-foot-link); }
.footer__links a:hover { color: var(--color-accent); }
.footer__contact { font-size: 14px; color: var(--x-foot-muted); max-width: 280px; }
.footer__contact a { color: var(--x-foot-link); }
.footer__contact a:hover { color: var(--color-accent); }
.footer__copy { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 13px; color: var(--color-text-muted); }

/* ============================ MOBILE STICKY CTA ========================= */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 11px 16px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border); transform: translateY(120%); transition: transform .25s ease;
}
.mobilebar.is-visible { transform: translateY(0); }
.mobilebar .btn { width: 100%; }
@media (min-width: 861px) { .mobilebar { display: none; } }

/* anchor offset for sticky nav */
[id] { scroll-margin-top: 80px; }
