/* GearLend: coming soon
   Tokens lifted from the live marketplace app (marketplaceDefaults.css /
   computed styles at localhost:3000) so this teaser and the real product
   read as the same brand on day one. */

:root {
  --gl-orange: #FF9300;
  --gl-amber: #FEC700;
  --gl-mark: #FF7C00;
  --gl-ink: #19191A;
  --gl-body: #4A4A4F;
  --gl-page: #FAFAFA;
  --gl-warm: #FAF6F0;
  --gl-white: #FFFFFF;
  --gl-line: rgba(25, 25, 26, 0.09);

  --font: -apple-system, BlinkMacSystemFont, "system-ui", "Inter", Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  --wrap: 1152px;
  --radius: 4px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--gl-page);
  color: var(--gl-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--gl-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gl-orange);
  outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  height: 84px;
}
.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar__logo img { height: 30px; width: auto; }
.topbar__contact {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
}
.topbar__contact:hover { border-bottom-color: rgba(255,255,255,0.6); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gl-orange);
  margin: 0 0 12px;
}
.eyebrow--light { color: #FFB74D; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0e0e0f;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 28%, rgba(10,10,10,0.72) 78%, rgba(8,8,9,0.92) 100%),
    linear-gradient(90deg, rgba(8,8,9,0.55) 0%, rgba(8,8,9,0.05) 45%);
}
.hero__inner {
  position: relative;
  padding-top: 128px;
  padding-bottom: 64px;
  max-width: 720px;
}
.hero__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.5px;
}
.hero__sub {
  color: rgba(255,255,255,0.86);
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 32px;
}

/* ---------- Signup form ---------- */
.signup { max-width: 480px; }
.signup__row {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.98);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.signup__row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--gl-ink);
}
.signup__row input[type="email"]::placeholder { color: #9a9a9e; }
.signup__row input[type="email"]:focus { outline: none; }
.signup__row:focus-within {
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 2px var(--gl-orange);
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn--primary {
  /* Amber fill with ink text: the marketplace's white-on-amber pairing is
     ~1.6:1 contrast, well under WCAG AA. Ink on amber reads ~11:1. */
  background: var(--gl-amber);
  color: var(--gl-ink);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(254,199,0,0.35); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: 0.7; cursor: default; transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--gl-ink);
  border: 1.5px solid var(--gl-ink);
  padding: 10px 20px;
  margin-top: 18px;
}
.btn--ghost:hover { background: var(--gl-ink); color: #fff; }

.btn__spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(25,25,26,0.25);
  border-top-color: var(--gl-ink);
  border-radius: 50%;
}
.is-loading .btn__spinner { display: inline-block; animation: spin 0.7s linear infinite; }
.is-loading .btn__label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.signup__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  cursor: pointer;
}
.signup__check input { width: 16px; height: 16px; accent-color: var(--gl-orange); }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.signup__fine {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}
.signup__status {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}
.signup__status[data-state="ok"] { color: #7CE38B; }
.signup__status[data-state="error"] { color: #FF8A80; }

/* ---------- Phases ---------- */
.phases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
}
.phases__step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2px;
}
.phases__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.phases__step.is-done { color: rgba(255,255,255,0.78); }
.phases__step.is-done .phases__dot { background: #8FD19E; }
.phases__step.is-current { color: #fff; }
.phases__step.is-current .phases__dot {
  position: relative;
  background: var(--gl-orange);
  box-shadow: 0 0 0 4px rgba(255,147,0,0.28);
}
.phases__step.is-current .phases__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gl-orange);
  animation: phase-ping 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
@keyframes phase-ping {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phases__step.is-current .phases__dot::after { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section__title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--gl-ink);
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}
.section__sub {
  font-size: 17px;
  color: var(--gl-body);
  max-width: 560px;
  margin: 0 0 40px;
  text-wrap: balance;
}

/* ---------- Pillars ---------- */
.pillars { background: var(--gl-white); padding: 64px 0; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
}
.pillar__icon {
  width: 32px;
  height: 32px;
  color: var(--gl-orange);
  margin-bottom: 12px;
}
.pillar h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gl-ink);
  margin: 0 0 4px;
}
.pillar p {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  color: #636369;
}

/* ---------- Categories ---------- */
.categories { background: var(--gl-warm); }
.categories__scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.categories__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 128px;
  gap: 20px;
  padding-bottom: 8px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.cat-tile picture {
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gl-white);
  box-shadow: 0 4px 14px rgba(25,25,26,0.08);
  padding: 15%;
}
.cat-tile img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gl-ink);
}

/* ---------- How GearLend works ---------- */
.how { background: var(--gl-warm); }
.how__head { text-align: center; }
.how__head .eyebrow { display: block; }
.how__title { margin-inline: auto; }
.how__sub {
  font-size: 16px;
  color: var(--gl-body);
  max-width: 480px;
  margin: 0 auto 32px;
}

.how__tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--gl-white);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(25,25,26,0.08);
  margin-bottom: 48px;
}
.how__tab {
  border: none;
  background: transparent;
  color: #636369;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.how__tab.is-active { background: var(--gl-ink); color: #fff; }
.how__tab:not(.is-active):hover { color: var(--gl-ink); }

.how__panel { display: none; }
.how__panel.is-active { display: block; }

.how__intro {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--gl-body);
  margin: 0 0 40px;
}

.how__steps {
  --how-col-gap: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--how-col-gap);
  row-gap: 40px;
  max-width: 1080px;
  margin-inline: auto;
}
.how__step {
  position: relative;
  text-align: center;
  padding-inline: 8px;
}
.how__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gl-white);
  border: 1px solid #E6DDD1;
  color: var(--gl-orange);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.how__icon svg { width: 24px; height: 24px; }
.how__stepnum {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #7C7C83;
}
.how__steptitle {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.18px;
  color: var(--gl-ink);
}
.how__stepdesc {
  margin: 0;
  font-size: 15px;
  line-height: 1.53;
  color: #636369;
}

@media (min-width: 861px) {
  .how__step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 28px;
    right: 100%;
    width: var(--how-col-gap);
    height: 1px;
    background: #E6DDD1;
  }
}

.how__cta { text-align: center; margin-top: 44px; }
.btn--dark-pill {
  background: var(--gl-ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 32px;
}
.btn--dark-pill:hover { opacity: 0.9; }

@media (max-width: 860px) {
  .how__steps { grid-template-columns: 1fr; row-gap: 32px; max-width: 420px; }
  .how__step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
  .how__icon { margin-bottom: 0; grid-row: 1 / 4; align-self: start; }
  .how__stepnum { grid-column: 2; }
  .how__steptitle { grid-column: 2; }
  .how__stepdesc { grid-column: 2; }
}

@media (max-width: 480px) {
  .how__tabs { width: 100%; }
  .how__tab { flex: 1; padding: 11px 16px; }
}

/* ---------- Closing CTA ---------- */
.closing {
  background: var(--gl-ink);
  text-align: center;
}
.closing__inner { max-width: 560px; }
.closing__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
.closing__sub {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */
.footer { background: var(--gl-white); border-top: 1px solid var(--gl-line); padding-top: 48px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
}
.footer__brand img { height: 26px; width: auto; margin-bottom: 10px; }
.footer__brand p { margin: 0; font-size: 14px; color: var(--gl-body); }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--gl-ink); }
.footer__links a:hover { color: var(--gl-orange); }
.footer__bottom {
  border-top: 1px solid var(--gl-line);
  padding: 20px 24px 28px;
}
.footer__bottom p { margin: 0; font-size: 13px; color: #8a8a8f; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pillars__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .audiences__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { height: 72px; }
  .hero { min-height: 580px; }
  .hero__inner { padding-top: 100px; padding-bottom: 48px; }
  .hero__sub { font-size: 16.5px; }
  .signup__row { flex-direction: column; background: transparent; padding: 0; box-shadow: none; gap: 10px; }
  .signup__row:focus-within { box-shadow: none; }
  .signup__row input[type="email"] {
    background: rgba(255,255,255,0.98);
    border-radius: 10px;
    padding: 13px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  .signup__row .btn--primary { width: 100%; padding: 13px 22px; }
  .section { padding: 56px 0; }
  .pillars__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__inner { flex-direction: column; }
}
