/*
  Brio landing page — plain CSS, no framework, no build step.

  DESIGN RULES:
    - Light page, matching the app. The app is one light theme with dark
      mode deleted (constants/theme.ts, userInterfaceStyle: "light" in
      app.json) — a black marketing site in front of a white app read as two
      different products. Background #F5F7FA, cards white #FFFFFF, brand
      blue #27508F, a lighter accent blue #8FAFDA for tints and non-text
      decoration only (see the next rule), near-black heading text #16191C,
      secondary body text #3F4854, hairline borders #DFE5ED.
    - HIGH CONTRAST EVERYWHERE. These people work in sunlight, on a phone
      screen. #8FAFDA reads fine as a wash behind other text or as a detail
      on top of the solid brand blue, but it is too light to be TEXT on this
      page's background — every place that used to carry it as a text or
      border color now uses the darker brand blue (--accent) instead. No
      text anywhere is lighter than --text against this background.
    - Primary buttons are the solid brand blue with white text — the same
      "filled control" the app itself uses for every primary action, never
      a black-on-white button. Secondary buttons are a thin border with
      near-black text.
    - No stock photography. The one illustration on the page (the app
      screenshot) is built from HTML and CSS, not an image file.
    - Mobile-first: base styles target a phone, media queries widen things
      for a bigger screen.
*/

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #dfe5ed;
  --text: #3f4854;
  --heading: #16191c;
  --accent: #27508f;
  --accent-hover: #1f4278;
  --accent-light: #8fafda;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--heading);
}

a {
  color: inherit;
}

/* Only visually hidden, never removed from the tab order or from screen
   readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                 */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.mark {
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.wordmark {
  color: var(--heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 26px;
  order: 3;
  flex-basis: 100%;
}

.main-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.login-link:hover {
  color: var(--accent);
}

/*
  THE LANGUAGE TOGGLE HAS TO BE FOUND BY SOMEONE WHO CANNOT READ THIS PAGE.
  It always shows BOTH "English" and "Español" side by side, not two-letter
  codes and not a globe icon — a visitor scanning for their own language
  reads their own word instantly, regardless of which page they landed on.
*/
.lang-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.lang-toggle a,
.lang-toggle span {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.lang-toggle .current {
  background: var(--border);
  color: var(--heading);
}

.lang-toggle a {
  color: var(--text);
  border: 1px solid var(--border);
}

.lang-toggle a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 780px) {
  .main-nav {
    order: 0;
    flex-basis: auto;
  }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 88px 24px 56px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* A soft tint, not the light accent as text — #8FAFDA on this background
   is not high-contrast enough to read on its own (see the file header). */
.pill {
  display: inline-block;
  background: rgba(39, 80, 143, 0.08);
  border: 1px solid rgba(39, 80, 143, 0.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 28px;
}

.hero-headline {
  font-size: clamp(32px, 6.5vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 18px;
  color: var(--text);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--text);
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* App screenshot mockup — built from HTML and CSS, not an image          */
/* ---------------------------------------------------------------------- */

.mockup-section {
  padding: 0 20px 88px;
}

.mockup-frame {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  /* A card-elevation shadow tuned for a light page — a dark, blurred,
     blue-grey shadow, not the near-opaque black that used to sit under it
     on a near-black background. */
  box-shadow: 0 30px 60px -28px rgba(16, 25, 40, 0.22);
}

.mockup-titlebar {
  background: #e7e7e9;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}

.mockup-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c9cc;
  display: inline-block;
}

.mockup-body {
  display: flex;
  background: #ffffff;
}

.mockup-sidebar {
  width: 140px;
  flex-shrink: 0;
  background: #f4f5f6;
  border-right: 1px solid #e2e3e5;
  padding: 16px 0;
  display: none;
}

.mockup-sidebar-item {
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4a4d52;
}

.mockup-sidebar-item.active {
  background: var(--accent);
  color: #ffffff;
}

.mockup-main {
  flex: 1;
  padding: 20px 20px 22px;
  min-width: 0;
}

.mockup-daytitle {
  font-size: 15px;
  font-weight: 800;
  color: #111214;
  margin: 0 0 14px;
  text-transform: capitalize;
}

.mockup-job {
  border: 1px solid #e2e3e5;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.mockup-job-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mockup-job-time {
  color: #111214;
}

.mockup-job-status {
  color: var(--accent);
}

.mockup-job-address {
  font-weight: 800;
  font-size: 14px;
  color: #111214;
}

.mockup-job-client {
  font-size: 12px;
  color: #6b6f75;
}

/* The job's service line and assigned worker — one small muted line,
   shown as a real screen would, not a marketing label. */
.mockup-job-meta {
  font-size: 11px;
  color: #6b6f75;
  margin-top: 4px;
}

.mockup-drive-warning {
  margin-top: 8px;
  background: #20242b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
}

.mockup-stats {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.mockup-stat {
  flex: 1;
  background: #f4f5f6;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.mockup-stat-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #111214;
}

.mockup-stat-label {
  display: block;
  font-size: 11px;
  color: #6b6f75;
  margin-top: 2px;
}

@media (min-width: 560px) {
  .mockup-sidebar {
    display: block;
  }
}

/* ---------------------------------------------------------------------- */
/* Shared section rhythm                                                 */
/* ---------------------------------------------------------------------- */

.section {
  padding: 88px 20px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner > h2 {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  margin: 0 0 36px;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Features grid                                                         */
/* ---------------------------------------------------------------------- */

.feature-grid {
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-cell {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
}

.feature-cell:last-child {
  border-bottom: none;
}

.feature-cell h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.feature-cell p {
  color: var(--text);
  font-size: 15px;
  margin: 0;
}

@media (min-width: 780px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-cell {
    border-right: 1px solid var(--border);
  }

  .feature-cell:nth-child(3n) {
    border-right: none;
  }

  .feature-cell:nth-child(n + 4) {
    border-bottom: none;
  }
}

/* ---------------------------------------------------------------------- */
/* The pool section — the one thing no competitor has, so it gets its own */
/* background wash to stand apart from the plain page around it.         */
/* ---------------------------------------------------------------------- */

.section-pool {
  background: rgba(39, 80, 143, 0.05);
}

.pool-copy {
  max-width: 640px;
  margin: 0 auto 44px;
}

.pool-copy p {
  color: var(--text);
  font-size: 16px;
  margin: 0 0 16px;
}

.pool-copy p:last-child {
  margin-bottom: 0;
}

/* The one sentence on this page that is legal protection, not persuasion —
   set apart with a divider and full weight so it reads as a plain, stated
   fact, never buried in the same paragraph as the pitch above it and never
   dressed up as a warning either. */
.pool-vouch {
  font-weight: 700;
  color: var(--heading);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.pool-mockup-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.pool-mockup-body {
  padding: 22px 22px 24px;
}

.pool-mockup-shift {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: rgba(39, 80, 143, 0.04);
}

.pool-mockup-shift-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.pool-mockup-shift-badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.pool-mockup-shift-time {
  font-size: 12px;
  font-weight: 700;
  color: #111214;
}

.pool-mockup-shift-address {
  font-weight: 800;
  font-size: 16px;
  color: #111214;
  margin-bottom: 4px;
}

.pool-mockup-shift-pay {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}

.pool-mockup-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pool-mockup-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6f75;
  margin-bottom: 10px;
}

.pool-mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eceef0;
}

.pool-mockup-row:last-child {
  border-bottom: none;
}

.pool-mockup-name {
  font-size: 14px;
  font-weight: 700;
  color: #111214;
}

.pool-mockup-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Claimed is the resolved, positive state — filled in the brand blue, the
   same "this is the one that matters" treatment .price-card-featured and
   .mockup-job-status already use. */
.pool-mockup-tag-claimed {
  background: var(--accent);
  color: #ffffff;
}

/* Applied is still pending — outlined and muted, deliberately lower
   emphasis than a claimed shift. */
.pool-mockup-tag-applied {
  border: 1px solid var(--border);
  color: #6b6f75;
}

@media (min-width: 640px) {
  .pool-mockup-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* Product section mockup wrapper — same frame classes as the pool        */
/* mockup, nested inside a section rather than standing alone.            */
/* ---------------------------------------------------------------------- */

.product-mockup-wrap {
  max-width: 760px;
  margin: 0 auto 44px;
}

/* ---------------------------------------------------------------------- */
/* Comparison box (Spanish page only as of this rewrite — see             */
/* site/es/index.html; kept here so that page's styling doesn't break)   */
/* ---------------------------------------------------------------------- */

.compare-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr;
}

.compare-left,
.compare-right {
  padding: 32px 28px;
}

.compare-left {
  border-bottom: 1px solid var(--border);
}

.compare-left h2 {
  font-size: clamp(22px, 4.5vw, 28px);
  margin: 0 0 12px;
}

.compare-left p {
  color: var(--text);
  font-size: 16px;
  margin: 0;
  max-width: 42ch;
}

.differentiator-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.differentiator-list li {
  color: var(--text);
  font-size: 15px;
  max-width: 44ch;
}

.differentiator-list strong {
  display: block;
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 2px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.compare-row:last-of-type {
  border-bottom: none;
}

.compare-name {
  color: var(--text);
}

.compare-price {
  color: var(--heading);
  font-weight: 700;
}

/* Brio's own row in the comparison — the brand blue, dark enough to read as
   text on this background, not the lighter accent. */
.compare-row-brio .compare-name,
.compare-row-brio .compare-price {
  color: var(--accent);
  font-weight: 800;
}

.compare-note {
  color: var(--text);
  font-size: 13px;
  margin: 14px 0 0;
}

@media (min-width: 780px) {
  .compare-box {
    grid-template-columns: 1fr 1fr;
  }

  .compare-left {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

/* ---------------------------------------------------------------------- */
/* Pricing                                                                */
/* ---------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}

.price-card h3 {
  font-size: 20px;
  margin: 0 0 14px;
}

.price-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 18px;
}

.price-amount span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.price-detail {
  color: var(--text);
  font-size: 14px;
  margin: 0 0 6px;
}

.price-card .btn {
  margin-top: 22px;
  width: 100%;
}

.price-card-featured {
  border-color: var(--accent);
  /* The lighter accent as a background wash — safe here because nothing
     reads it as text, only as a tint sitting under near-black text. */
  background: rgba(143, 175, 218, 0.16);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Two short, bold facts sitting between the price cards and the cancel
   promise below — not fine print, the same full-weight treatment. */
.pricing-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  text-align: center;
}

.pricing-facts p {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
}

@media (min-width: 640px) {
  .pricing-facts {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
}

/* A real promise, not fine print: bold near-black text at the same visual
   weight as .price-card-featured, not the muted .price-detail grey the
   rest of this section's small print uses. */
.cancel-promise {
  margin-top: 20px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  /* The lighter accent as a background wash — safe here because nothing
     reads it as text, only as a tint sitting under near-black text. */
  background: rgba(143, 175, 218, 0.16);
}

.cancel-promise p {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  font-size: 16px;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* Closing / early access form                                           */
/* ---------------------------------------------------------------------- */

.closing {
  text-align: center;
}

.closing-headline {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  margin: 0 0 32px;
}

.closing .lead-form {
  margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* Email capture (shared by the closing section)                        */
/* ---------------------------------------------------------------------- */

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.lead-form input[type='email'] {
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  width: 100%;
}

.lead-form input[type='email']::placeholder {
  color: var(--text);
}

.lead-form input[type='email']:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/*
  The honeypot field. A real visitor never sees this — off-screen, not
  display:none, because some bots skip display:none fields specifically to
  evade this exact trick. tabindex="-1" also keeps it out of the tab order
  for anyone tabbing through with a keyboard.
*/
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.trust-note {
  color: var(--text);
  font-size: 13px;
  margin: 14px 0 0;
}

.lead-message {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  min-height: 1.5em;
}

/* Errors stay the same near-black text as any other message, never
   colored — high contrast is carried by weight and a wavy underline, not
   by a text color. */
.lead-message--error {
  text-decoration: underline;
  text-decoration-style: wavy;
}

@media (min-width: 640px) {
  .closing .lead-form {
    flex-direction: row;
  }

  .closing .lead-form input[type='email'] {
    flex: 1;
  }

  .closing .lead-form .btn {
    flex-shrink: 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Contact page                                                           */
/* ---------------------------------------------------------------------- */

.contact-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 24px 140px;
}

.contact-page h1 {
  font-size: clamp(28px, 5vw, 36px);
  margin: 0 0 16px;
}

.contact-page > p {
  color: var(--text);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 0 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  width: 100%;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  gap: 8px;
}

.footer-brand .wordmark {
  font-size: 16px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------------- */
/* Error and placeholder pages (404, /login, /privacy)                   */
/* ---------------------------------------------------------------------- */

.error-main,
.placeholder-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 120px 24px 140px;
  text-align: center;
}

.error-code {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.error-main h1,
.placeholder-main h1 {
  font-size: clamp(26px, 5vw, 34px);
  margin: 0 0 16px;
}

.error-main p,
.placeholder-main p {
  color: var(--text);
  font-size: 16px;
  margin: 0 0 32px;
}

/* An inline link inside a placeholder paragraph (e.g. "get in touch" on
   /privacy) keeps the paragraph's own muted color — no colored text,
   same rule as everywhere else on this site — and is set apart by an
   underline instead. */
.error-main p a,
.placeholder-main p a {
  text-decoration: underline;
}

.error-main p a:hover,
.placeholder-main p a:hover {
  color: var(--accent);
}
