/* ridvamo.com: one stylesheet for every page. Colors match the app theme. */
:root {
  --cobalt: #3157f6;
  --cobalt-deep: #1e3fae;
  --lime: #c8f35a;
  --lime-ink: #26350b;
  --ink: #101828;
  --muted: #475467;
  --mist: #f4f7fb;
  --line: #d0d5dd;
  --up: #c2410c;
  --down: #1f7a5c;
  --radius: 1.25rem;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.55;
}

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

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* nav bar: white text on the cobalt pages, ink on the plain ones */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.3rem;
}
.links a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.links a:hover {
  text-decoration: underline;
}
@media (max-width: 34rem) {
  .links .wide {
    display: none;
  }
}
.hero .nav {
  color: #fff;
}
.bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar .nav {
  color: var(--ink);
}
.bar .brand img {
  box-shadow: none;
}

/* hero */
.hero {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--cobalt);
  color: #fff;
  padding-bottom: 3.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 1.5rem;
}
@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    padding-top: 3rem;
  }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  font-size: 0.9rem;
}
h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(3.2rem, 11vw, 6.2rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.05em;
}
h1 span {
  color: var(--lime);
}
.lead {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
}

/* the bid board illustration */
.board {
  position: relative;
  margin: 0;
  border-radius: 1.6rem;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 2rem 4rem rgba(9, 20, 60, 0.45);
  overflow: hidden;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem 0.8rem;
  font-weight: 800;
  font-size: 1.05rem;
}
.board-head span {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  background: #eef2ff;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.zone {
  padding: 0.8rem 1rem;
}
.zone.hi {
  background: linear-gradient(#fff7f2, #ffe9dd);
}
.zone.lo {
  display: grid;
  gap: 0.6rem;
  background: linear-gradient(#e7f7ee, #f7fcf9);
}
.line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 0.7rem;
  background: var(--lime);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.line b {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  border: 2px solid var(--ink);
  font-size: 0.85rem;
  white-space: nowrap;
}
.line b strong {
  color: var(--ink);
  font-size: 1.1rem;
  margin-left: 0.2rem;
}
.bid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 0.6rem 1.2rem rgba(16, 24, 40, 0.12);
}
.bid i {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
  flex: none;
}
.bid div {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  line-height: 1.2;
}
.bid small {
  display: block;
  font-weight: 600;
  color: var(--muted);
}
.bid em {
  font-style: normal;
  text-align: right;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.bid em small {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}
.up em small {
  background: var(--up);
}
.down em small {
  background: var(--down);
}
.board figcaption {
  padding: 0.6rem 1.2rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f7fcf9;
}

/* sections */
section {
  padding: 3.5rem 0;
}
h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  counter-increment: step;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 900;
}
.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.fine {
  margin: 1.2rem 0 0;
  color: var(--muted);
  max-width: 44rem;
}

.haulers {
  background: var(--ink);
  color: #fff;
}
.haulers h2 span {
  color: var(--lime);
}
.haulers p {
  max-width: 40rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}
.button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.9rem 1.4rem;
  border-radius: 0.85rem;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  text-decoration: none;
}
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.alt {
  background: #fff;
}

/* questions */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}
.faq details {
  padding: 0 1.2rem;
  border-radius: 1rem;
  background: var(--mist);
  border: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 800;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--cobalt);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* ticked lists */
.ticks {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 2rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  background: var(--lime);
  box-shadow: inset 0 0 0 2px var(--lime-ink);
}

.foot {
  padding: 2.5rem 0 3rem;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin-bottom: 0.9rem;
}
.foot nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.foot nav a:hover {
  text-decoration: underline;
}
.foot p {
  margin: 0.3rem 0 0;
}

/* plain pages (404, support, delete account) */
.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.page h1,
.legal h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
}
.page h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.page p,
.page li,
.legal p,
.legal li {
  color: #1d2939;
}
.page .intro {
  font-size: 1.15rem;
  color: var(--muted);
}
.callout {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--cobalt);
}
.callout.warn {
  border-left-color: var(--up);
}
.callout p {
  margin: 0.3rem 0;
}

/* legal documents: contents beside the text on wide screens */
.doc {
  display: grid;
  gap: 1.5rem;
  max-width: 74rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
@media (min-width: 64rem) {
  .doc {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 3rem;
  }
  .toc {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }
}
.toc {
  font-size: 0.92rem;
}
.toc summary {
  font-weight: 800;
  cursor: pointer;
}
.toc ol {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--cobalt);
}
.legal .meta {
  margin: 0 0 1.4rem;
  color: var(--muted);
}
.legal h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  scroll-margin-top: 1rem;
}
.legal section:first-of-type h2 {
  margin-top: 1.2rem;
}
.legal h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
}
.legal p {
  max-width: 46rem;
}
.legal ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.3rem;
}
