/* Bargo's website: the landing page and the terms / privacy pages (docs/design/Website.dc.html,
   WebsiteMobile.dc.html, Legal.dc.html). Phone first; wider screens get the design's desktop layout. */
:root {
  --ink: #17122b;
  --cream: #fff4e6;
  --white: #ffffff;
  --orange: #ff6b2c;
  --orange-soft: #ffd2bc;
  --lime: #c9f23a;
  --violet: #5b3df5;
  --violet-soft: #8f7bff;
  --violet-pale: #e7e2ff;
  --muted: #5e5670;
  --muted-dark: #c9c3da;
  --border: #ede4d6;
  --rule: #e6dccb;
  --sand: #efe3d3;
  --night-card: #2e2745;
  --error: #c8231a;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--violet);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 16px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  text-decoration: none;
}

.logo:hover {
  color: var(--white);
}

.logo .dot,
.footer-logo .dot {
  color: var(--orange);
}

.site-nav {
  display: none;
  gap: 28px;
  flex-grow: 1;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.header-spacer {
  flex-grow: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font:
    700 16px/1.2 "DM Sans",
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  color: var(--ink);
  filter: brightness(1.05);
}

.btn.white {
  background: var(--white);
}

.btn.small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--violet);
}

.section-title {
  font-size: clamp(36px, 7vw, 56px);
  letter-spacing: -1.5px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  margin: 0 8px;
  padding: 40px 20px 0;
  border-radius: 28px;
  background: var(--violet);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blob-violet {
  width: 320px;
  height: 320px;
  right: -140px;
  top: -140px;
  background: var(--violet-soft);
}

.blob-orange {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: 40px;
  background: var(--orange);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 660px;
}

.pill {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.hero h1 {
  font-size: clamp(48px, 11vw, 88px);
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--white);
}

.hero p {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--violet-pale);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 22px;
  border-radius: 18px;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--white);
  text-decoration: none;
}

.store-btn:hover {
  color: var(--white);
}

.store-btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}

.store-btn .small-line {
  display: block;
  font-size: 12px;
  color: var(--muted-dark);
}

.store-btn .big-line {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.soon {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  border-radius: 18px;
  border: 2px dashed var(--violet-pale);
  font-weight: 700;
}

.phone {
  position: relative;
  align-self: center;
  width: 280px;
  margin-bottom: -60px;
  border-radius: 44px;
  background: var(--ink);
  padding: 12px;
  transform: rotate(4deg);
}

.phone-screen {
  border-radius: 34px;
  background: var(--cream);
  padding: 22px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
}

.phone-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.phone-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 10px 12px;
}

.phone-card .label {
  color: var(--muted);
}

.offer-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.offer-card .amount {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
}

.offer-card .meter {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--lime);
}

.driver-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffb38f;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.cards-3 {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  font-size: 26px;
}

.card p {
  font-size: 17px;
  color: var(--muted);
}

.step-no {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}

.bg-orange {
  background: var(--orange);
}

.bg-lime {
  background: var(--lime);
}

.bg-violet {
  background: var(--violet-soft);
}

.dark-panel {
  margin: 0 8px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--white);
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.dark-panel .eyebrow {
  color: var(--lime);
}

.dark-panel h2 {
  color: var(--white);
}

.dark-panel .lead {
  font-size: 18px;
  color: var(--muted-dark);
}

.safety-grid {
  display: grid;
  gap: 16px;
}

.safety-card {
  background: var(--night-card);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.safety-card h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
}

.safety-card p {
  color: var(--muted-dark);
}

/* Bargo Share */
.share-panel {
  margin: 0 8px;
  border-radius: 28px;
  background: var(--lime);
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.share-panel .eyebrow {
  color: var(--ink);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 700;
}

.ticks svg {
  flex-shrink: 0;
}

/* Drive with Bargo */
.drive {
  display: grid;
  gap: 32px;
}

.drive-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drive-copy .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat .big {
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.stat .what {
  font-weight: 700;
}

.needs {
  grid-column: span 2;
  background: var(--white);
}

.needs p {
  color: var(--muted);
}

.estimator {
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.estimator h3 {
  font-size: 24px;
  color: var(--white);
}

.trip-picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.trip-picks legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

.trip-picks label {
  position: relative;
}

.trip-picks input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.trip-picks span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 14px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.trip-picks input:checked + span {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.trip-picks input:focus-visible + span {
  outline: 3px solid var(--violet-soft);
  outline-offset: 2px;
}

.estimate {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1.1;
}

.fine {
  font-size: 13px;
  color: var(--muted-dark);
}

/* The form */
.apply {
  display: grid;
  gap: 28px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input {
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0 14px;
  font:
    16px "DM Sans",
    system-ui,
    sans-serif;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  font-size: 14px;
  font-weight: 700;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.agree input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--violet);
}

.agree a {
  color: var(--violet);
}

.form-card .btn {
  min-height: 58px;
  font-size: 17px;
}

.form-card .btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.form-problem {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fde3e1;
  color: var(--error);
  font-weight: 700;
}

.form-done {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-done h3 {
  font-size: 28px;
}

.form-done p {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

/* FAQ */
.faq {
  display: grid;
  gap: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 18px 22px;
}

.faq summary {
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
  font-size: 17px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 32px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--lime);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
}

.footer-tag {
  margin-top: 10px;
  color: var(--muted-dark);
  max-width: 360px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col .head {
  font-weight: 700;
  color: var(--lime);
}

.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #3a3354;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted-dark);
}

.placeholder {
  background: rgba(255, 107, 44, 0.18);
  border-radius: 4px;
  padding: 0 4px;
}

/* Legal pages */
.legal {
  display: grid;
  gap: 32px;
  padding: 24px 0 72px;
}

.legal aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: var(--sand);
}

.doc-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.doc-switch a[aria-current="page"] {
  background: var(--white);
  border-color: var(--ink);
}

.toc {
  display: none;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  background: var(--sand);
}

.draft-note {
  padding: 16px;
  border-radius: 18px;
  background: var(--orange-soft);
  font-size: 14px;
}

.legal article {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal h1 {
  font-size: clamp(40px, 8vw, 56px);
  letter-spacing: -1.5px;
}

.legal .updated {
  margin-top: 10px;
  color: var(--muted);
}

.legal section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.legal h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.legal section p,
.legal section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.legal section p {
  margin-top: 10px;
}

.legal section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal section li + li {
  margin-top: 4px;
}

.legal strong {
  color: var(--ink);
}

/* Wider screens */
@media (min-width: 720px) {
  .wrap {
    padding: 0 40px;
  }

  .site-header {
    padding: 12px 40px;
    min-height: 96px;
  }

  .hero,
  .dark-panel,
  .share-panel {
    margin: 0 24px;
    border-radius: 40px;
  }

  .hero {
    padding: 64px 48px 0;
  }

  .dark-panel {
    padding: 80px 48px;
  }

  .share-panel {
    padding: 64px 48px;
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .safety-grid,
  .ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 100px 0;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1080px) {
  .site-nav {
    display: flex;
  }

  .header-spacer {
    display: none;
  }

  .site-header {
    padding: 12px 80px;
    gap: 40px;
  }

  .wrap {
    padding: 0 80px;
  }

  .hero,
  .dark-panel,
  .share-panel {
    margin: 0 40px;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding: 80px;
    min-height: 640px;
  }

  .hero-copy {
    flex-grow: 1;
  }

  .blob-violet {
    width: 400px;
    height: 400px;
    right: -80px;
    top: -80px;
  }

  .blob-orange {
    width: 300px;
    height: 300px;
    right: 420px;
    bottom: -150px;
  }

  .phone {
    width: 320px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .phone-screen {
    padding-bottom: 26px;
  }

  .dark-panel,
  .share-panel {
    flex-direction: row;
    padding: 100px 80px;
    gap: 80px;
  }

  .dark-panel > .intro,
  .share-panel > .intro {
    width: 420px;
    flex-shrink: 0;
  }

  .dark-panel > .safety-grid,
  .share-panel > .ticks {
    flex-grow: 1;
  }

  .drive,
  .apply {
    grid-template-columns: 1fr 520px;
    gap: 60px;
  }

  .faq {
    grid-template-columns: 420px 1fr;
    gap: 80px;
  }

  .legal {
    grid-template-columns: 300px 1fr;
    gap: 60px;
    padding: 40px 0 80px;
  }

  .legal aside {
    position: sticky;
    top: 24px;
    align-self: start;
  }

  .toc {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
