/* ============================================================
   Renti - monochrome, flat, desktop-wide
   Title / figures : Source Serif 4
   Interface / body : IBM Plex Sans
   One flat surface. No cards. Black & white only.
   ============================================================ */

:root {
  --bg:      #FFFFFF;
  --ink:     #121210;
  --ink-2:   #3D3D37;
  --muted:   #6E6E68;
  --faint:   #A2A29B;
  --line:    #E7E7E1;
  --line-2:  #D2D2CA;
  --wash:    #F1F1EC;   /* the only tint - quiet neutral for tracks/bars */

  --font-title: "Inter", system-ui, sans-serif;
  --font-body:  "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
}
button { font-family: inherit; cursor: pointer; color: inherit; border-radius: 4px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
  padding: 16px 44px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand__mark { width: 26px; height: 26px; border-radius: 5px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--font-title); font-size: 14px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; line-height: 1;
  color: var(--ink-2);
  white-space: nowrap;
}
/* ---------- dashboard button (top corner) ---------- */
.dash-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 4px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg);
  font-size: 14px; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.dash-btn:hover { background: var(--bg); color: var(--ink); }

/* ---------- landing (hero) page: video left, text right ---------- */
.land { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.05fr .95fr; }
.land__media { position: relative; overflow: hidden; background: var(--wash); border-right: 1px solid var(--line); }
.land__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.land__text { display: flex; flex-direction: column; justify-content: center; padding: 56px 72px; }
.land__title { margin: 0; font-weight: 400; font-size: clamp(38px, 4vw, 56px); line-height: 1.06; letter-spacing: -0.03em; max-width: 16ch; }
.land__sub { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 44ch; }

/* ---------- boxy dashboard (balanced) ---------- */
.board { flex: 1; min-height: 0; display: grid; grid-template-rows: 1fr auto auto; }
.board__top { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); min-height: 0; }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 40px; text-align: center; }
.cell--control { border-right: 1px solid var(--line); }
.cell--control .eyebrow { margin-bottom: 32px; }
.cell--control .switch { margin: 0; }
.cell--earned .eyebrow { margin-bottom: 16px; }
.earn__v { font-weight: 400; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-size: clamp(52px, 7vw, 88px); }

.stats2 { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { border-left: 1px solid var(--line); padding: 30px 22px; text-align: center; }
.stat:first-child { border-left: 0; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { margin-top: 8px; font-size: clamp(22px, 2.4vw, 30px); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.withdraw2 {
  width: 100%; border: 0; background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 48px; font-size: 18px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.withdraw2:hover { background: var(--ink); color: var(--bg); }
.withdraw2 svg { width: 20px; height: 20px; }
.control { padding-right: 96px; }
.earn { padding-left: 96px; border-left: 1px solid var(--line); }

/* ---------- the slide switch (transform-driven, smooth) ---------- */
.switch {
  position: relative;
  width: 380px; max-width: 100%;
  height: 90px;
  margin: 30px 0 0;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  cursor: pointer; user-select: none; touch-action: none;
  transition: background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.switch[aria-checked="true"] { background: var(--ink); border-color: var(--ink); }

.switch__txt {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 15px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  transition: opacity .2s ease;
}
.switch__txt--on  { left: 36px; color: var(--bg);   opacity: 0; }
.switch__txt--off { right: 36px; color: var(--muted); opacity: 1; }
.switch[aria-checked="true"] .switch__txt--on  { opacity: 1; }
.switch[aria-checked="true"] .switch__txt--off { opacity: 0; }

.switch__thumb {
  position: absolute; top: 7px; left: 7px;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform .17s cubic-bezier(.33,0,.2,1);
  will-change: transform;
}
.switch[aria-checked="true"] .switch__thumb { border-color: var(--bg); }
.switch__thumb svg { width: 30px; height: 30px; }

/* expandable device info (popover) */
.device { position: relative; margin-top: 26px; display: inline-block; }
.device__toggle {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 9px;
  width: 100%; min-width: 210px;
  border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink);
  border-radius: 4px; padding: 10px 15px; font-size: 14px; cursor: pointer;
  transition: border-color .15s ease;
}
.device__toggle:hover { border-color: var(--ink); }
.device__toggle svg { width: 12px; height: 8px; color: var(--muted); transition: transform .2s ease; }
.device__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.device__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 4px;
  padding: 16px;
}
.device__panel .specs { margin-top: 0; grid-template-columns: auto 1fr; gap: 9px 14px; justify-content: stretch; }
.device__panel .spec-v { text-align: left; }

/* company dropdown */
.rentto { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rentto label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.select {
  appearance: none; -webkit-appearance: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background-color: var(--bg);
  border: 1.5px solid var(--line-2); border-radius: 4px;
  padding: 11px 42px 11px 16px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239C9C94' stroke-width='1.6'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 15px center;
  transition: border-color .15s ease;
}
.select:focus { outline: none; border-color: var(--ink); }
.rate { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- top bar right (status + navigation) ---------- */
.top__right { display: inline-flex; align-items: center; gap: 12px; }
.top__nav {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.linkbtn, .logout {
  border: 0; border-radius: 4px;
  background: transparent;
  font-family: inherit; font-size: 13.5px; line-height: 1;
  color: var(--muted); text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.linkbtn { padding: 9px 12px; cursor: pointer; }
.logout { padding: 10px 12px; }
.linkbtn:hover, .linkbtn.is-active, .logout:hover { background: var(--wash); color: var(--ink); }
.linkbtn:focus-visible, .logout:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

/* ---------- onboarding (full-page, boxy) ---------- */
.onboard { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; }
.onboard__bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 44px; border-bottom: 1px solid var(--line); }
.onboard__skip { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.onboard__skip:hover { color: var(--ink); }
.onboard__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.05fr .95fr; }
.onboard__num {
  border-right: 1px solid var(--line); background: var(--wash);
  display: grid; place-items: center;
  font-size: clamp(120px, 22vw, 300px); line-height: 1; letter-spacing: -0.04em; color: var(--ink);
}
.onboard__panel { display: flex; flex-direction: column; justify-content: center; padding: 56px 72px; }
.onboard__title { margin: 20px 0 0; font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; max-width: 15ch; }
.onboard__text { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 42ch; }
.onboard__nav { display: flex; gap: 12px; margin-top: 44px; }
.onboard__back { padding: 13px 24px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 15px; cursor: pointer; }
.onboard__back:hover { border-color: var(--ink); }
.onboard__next { padding: 13px 28px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); font-size: 15px; cursor: pointer; }
.onboard__next:hover { background: var(--bg); color: var(--ink); }
.onboard__foot { border-top: 1px solid var(--line); padding: 20px 44px; }
.ob-dots { display: flex; gap: 8px; }
.ob-dot { width: 28px; height: 6px; background: var(--line-2); }
.ob-dot.is-on { background: var(--ink); }

/* ---------- auth page (boxy) ---------- */
.auth { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth__aside { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: #fff; display: flex; align-items: flex-end; padding: 56px 64px; }
.auth__machine { position: absolute !important; inset: auto !important; left: 4%; top: 0 !important; width: 72%; height: 62%; transform: translateY(20px) !important; z-index: 0; opacity: .9; pointer-events: none; }
.auth__aside-copy { position: relative; z-index: 1; }
.auth__pitch { margin: 14px 0 0; font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.02em; max-width: 15ch; }
.auth__panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 40px; }
.auth__form { width: 100%; max-width: 360px; }
.auth__title { margin: 12px 0 32px; font-weight: 400; font-size: 34px; letter-spacing: -0.02em; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line-2); background: var(--bg);
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ink); }
.auth__submit {
  width: 100%; margin-top: 8px; padding: 14px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 4px;
  font-size: 15px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.auth__submit:hover { background: var(--bg); color: var(--ink); }
.auth__alt { margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth__alt a { color: var(--ink); text-decoration: underline; }

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 44px;
  border-top: 1px solid var(--line);
  color: var(--faint); font-size: 12.5px; flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .top { padding-left: 28px; padding-right: 28px; }
  .land { grid-template-columns: 1fr; }
  .land__media { min-height: 42vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .land__text { padding: 40px 28px; }

  .board__top { grid-template-columns: 1fr; }
  .cell--control { border-right: 0; border-bottom: 1px solid var(--line); }

  .onboard__bar { padding: 20px 28px; }
  .onboard__body { grid-template-columns: 1fr; }
  .onboard__num { border-right: 0; border-bottom: 1px solid var(--line); min-height: 26vh; font-size: 120px; }
  .onboard__panel { padding: 40px 28px; }
  .onboard__foot { padding: 18px 28px; }

  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth__machine { display: none; }
  .auth__panel { padding: 44px 28px; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .top { min-height: 0; padding: 14px 20px; gap: 14px; flex-wrap: wrap; }
  .top__right { width: 100%; gap: 8px; }
  .top__nav { margin-left: auto; }
  .linkbtn { padding-left: 9px; padding-right: 9px; }
  .logout { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 420px) {
  .switch { width: 100%; }
}

/* ---------- dark mode (applied while Rent Mode is on) ---------- */
body { transition: background-color .3s ease, color .3s ease; }
body.dark {
  --bg:     #0F0F0D;
  --ink:    #F3F3EE;
  --ink-2:  #C6C6BE;
  --muted:  #9C9C94;
  --faint:  #6C6C65;
  --line:   #2A2A24;
  --line-2: #3C3C35;
  --wash:   #191915;
}
.top, .board__top, .stats2, .cell, .stat, .withdraw2, .switch, .select, .onboard {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

/* ---------- auth error ---------- */
.auth__error { color: #B4231F; font-size: 13.5px; margin: 0 0 14px; min-height: 18px; }

/* ---------- new: earnings gating, dual dropdowns, compute meter ---------- */
.is-hidden { display: none !important; }
.controls { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.compute { margin-top: 22px; min-height: 18px; white-space: nowrap; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- auth: renter / company segmented control ---------- */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--line-2); border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px 8px; font-size: 14px; color: var(--muted); cursor: pointer; border-left: 1.5px solid var(--line-2); }
.seg:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.google-auth { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.google-auth:hover { border-color: var(--ink); }
.google-auth__mark {
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  background: linear-gradient(90deg, #4285F4 0 25%, #34A853 25% 50%, #FBBC05 50% 75%, #EA4335 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- company page ---------- */
.cell--form, .cell--list { align-items: stretch; justify-content: flex-start; text-align: left; padding: 44px 56px; }
.cell--form { border-right: 1px solid var(--line); }
.cell--form .eyebrow, .cell--list .eyebrow { margin-bottom: 22px; }
.offer-form { width: 100%; max-width: 380px; }
.offer-form .field input[type="text"], .offer-form .field input[type="number"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); background: var(--bg);
  font-family: inherit; font-size: 15px; color: var(--ink); border-radius: 4px;
}
.offer-form .field input:focus { outline: none; border-color: var(--ink); }
.offer-list { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.offer { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.offer__name { font-size: 15px; }
.offer__meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.offer__del { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.offer__del:hover { color: var(--ink); }
.offer-empty { color: var(--faint); font-size: 14px; }
.offer-note { margin-top: 20px; font-size: 13px; color: var(--faint); max-width: 42ch; }

@media (max-width: 860px) {
  .cell--form { border-right: 0; border-bottom: 1px solid var(--line); }
  .cell--form, .cell--list { padding: 36px 28px; }
}

/* ---------- auto-detected computer specs ---------- */
.specs { margin-top: 24px; display: grid; grid-template-columns: auto auto; gap: 7px 16px; justify-content: center; }
.spec-k { text-align: right; color: var(--muted); font-size: 13px; }
.spec-v { text-align: left; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
