/* Rez Eats website. No JavaScript of its own (the privacy and terms pages
   use Termly's embed); light and dark follow the visitor's device. */

:root {
  --brand: #8231a7;
  --brand-deep: #6a2489;
  --brand-text: #8231a7;
  --brand-soft: #f3e8f9;
  --lavender: #c99bea;
  --ink: #17121b;
  --ink-soft: #5d5566;
  --surface: #ffffff;
  --surface-2: #f8f4fb;
  --card: #ffffff;
  --border: #ebe4f0;
  --shadow: 0 1px 2px rgb(40 12 56 / 6%), 0 8px 24px rgb(40 12 56 / 7%);
  --shadow-lift: 0 2px 4px rgb(40 12 56 / 8%), 0 16px 40px rgb(40 12 56 / 12%);
  --radius: 24px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-text: #c98be6;
    --brand-soft: #2a1834;
    --ink: #f3eff6;
    --ink-soft: #b8afc2;
    --surface: #110e14;
    --surface-2: #17131c;
    --card: #1b1621;
    --border: #2d2535;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 35%), 0 16px 40px rgb(0 0 0 / 40%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* A column at least a screen tall, so the footer sits at the bottom even on a
   short page like the not-found page. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand-text);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(130 49 167 / 35%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 0.15s, color 0.15s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  color: var(--brand-text);
  background: var(--brand-soft);
}

.nav .nav-wide {
  display: none;
}

@media (min-width: 760px) {
  .nav .nav-wide {
    display: inline-block;
  }
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgb(255 120 200 / 22%), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgb(201 155 234 / 35%), transparent 60%),
    #8231a7;
  padding-block: clamp(40px, 8vw, 96px) clamp(76px, 11vw, 150px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-logo-wrap {
  justify-self: center;
  width: min(72vw, 300px);
  filter: drop-shadow(0 18px 40px rgb(40 8 60 / 35%));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 22%);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffb2;
  box-shadow: 0 0 0 4px rgb(125 255 178 / 22%);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 4.6vw + 1rem, 4.1rem);
  font-weight: 800;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 18px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  color: rgb(255 255 255 / 88%);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 30px rgb(30 6 45 / 25%);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6f98;
}

.store-badge strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #2b1238;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
}

.hero-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgb(255 255 255 / 35%);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.hero-links a:hover {
  border-color: #fff;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(40px, 7vw, 90px);
  color: var(--surface);
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-logo-wrap {
    order: 2;
    width: min(100%, 420px);
  }
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-tinted {
  background: var(--surface-2);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.kicker {
  display: inline-block;
  color: var(--brand-text);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.7rem);
  font-weight: 800;
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  gap: 18px;
}

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

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.card h3,
.card .h3 {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 800;
}

.card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-text);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: color-mix(in srgb, var(--brand-text) 20%, transparent);
  letter-spacing: -0.04em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 800;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------ status card */

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(26px, 5vw, 56px);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(201 155 234 / 28%), transparent 60%),
    var(--brand-soft);
  border: 1px solid var(--border);
}

.feature h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
}

.feature p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

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

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}

.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--brand-text);
}

.id-card {
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 1.6;
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(18rem 10rem at 100% 0%, rgb(255 255 255 / 22%), transparent 60%),
    linear-gradient(135deg, #9a45c2, #6a2489);
  box-shadow: 0 24px 60px rgb(106 36 137 / 35%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 14px;
  transform: rotate(-3deg);
}

.id-card .id-title {
  width: 45%;
  height: 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
}

.id-card .id-body {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 18px;
  align-items: center;
}

/* A photo placeholder: head and shoulders. */
.id-card .id-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: rgb(255 255 255 / 20%);
}

.id-card .id-photo::before,
.id-card .id-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 70%);
}

.id-card .id-photo::before {
  top: 20%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.id-card .id-photo::after {
  bottom: -10%;
  width: 80%;
  height: 42%;
  border-radius: 50% 50% 0 0;
}

.id-card .lines {
  display: grid;
  gap: 10px;
}

.id-card .line {
  height: 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 55%);
}

.id-card .line.short {
  width: 55%;
  background: rgb(255 255 255 / 35%);
}

.id-card .verified {
  justify-self: start;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: #1f7a45;
  font-weight: 800;
  font-size: 0.82rem;
}

.id-card .verified svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1.2fr 0.8fr;
  }

  /* Picture on the left, so consecutive features alternate sides. */
  .feature.flip {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .feature.flip > :last-child {
    order: -1;
  }
}

/* ------------------------------------------------------------- driver pay */

.pay-tiles {
  justify-self: center;
  display: grid;
  gap: 18px;
  width: min(100%, 380px);
}

.pay-tile {
  display: grid;
  gap: 6px;
  margin-right: 12%;
  padding: 24px 28px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(18rem 10rem at 100% 0%, rgb(255 255 255 / 22%), transparent 60%),
    linear-gradient(135deg, #9a45c2, #6a2489);
  box-shadow: 0 24px 60px rgb(106 36 137 / 35%);
  transform: rotate(-2.5deg);
}

.pay-tile.alt {
  margin-right: 0;
  margin-left: 12%;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  transform: rotate(2deg);
}

.pay-figure {
  font-size: clamp(2.8rem, 3vw + 1.8rem, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pay-tile.alt .pay-figure {
  color: var(--brand-text);
}

.pay-label {
  font-size: 1.05rem;
  font-weight: 700;
}

/* -------------------------------------------------------------- final cta */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 64px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(40rem 20rem at 0% 0%, rgb(255 120 200 / 25%), transparent 60%),
    radial-gradient(40rem 20rem at 100% 100%, rgb(201 155 234 / 35%), transparent 60%),
    #8231a7;
}

.cta img {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgb(30 6 45 / 35%);
}

.cta h2 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.8rem);
}

.cta p {
  margin: 14px auto 0;
  max-width: 34rem;
  color: rgb(255 255 255 / 88%);
  font-size: 1.1rem;
}

.cta .store-row {
  justify-content: center;
}

.cta a {
  color: #fff;
  font-weight: 700;
}

/* ------------------------------------------------------------- inner pages */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(50rem 22rem at 100% 0%, rgb(255 120 200 / 20%), transparent 60%),
    radial-gradient(40rem 22rem at 0% 100%, rgb(201 155 234 / 30%), transparent 60%),
    #8231a7;
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 110px);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 3.4vw + 1rem, 3.3rem);
  font-weight: 800;
  text-wrap: balance;
}

.page-hero p {
  margin-top: 14px;
  max-width: 38rem;
  color: rgb(255 255 255 / 88%);
  font-size: 1.15rem;
}

/* The Privacy Policy and Terms of Service: Termly's embed puts the document
   in an iframe and sets its height to fit. Termly's own styles are blocked
   by the content security policy (_headers), so the width is set here. The
   document is dark text on white, so it sits on a white sheet in dark mode
   too, and the sheet stays hidden until the iframe exists. */
.section.policy-section {
  padding-top: clamp(24px, 4vw, 48px);
}

.policy {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy:not(:has(iframe)) {
  display: none;
}

/* Termly's loading spinner. Without its blocked styles it would stretch to
   the full width and stay there, so only the iframe is shown. */
.policy [name="termly-embed"] > :not(iframe) {
  display: none;
}

.policy iframe {
  display: block;
  width: 100%;
  border: 0;
  color-scheme: light;
}

.policy-fallback {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* The not-found page: the purple panel fills the screen above the footer. */
main.fill {
  display: flex;
  flex-direction: column;
}

main.fill .page-hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 1vw + 1rem, 1.8rem);
  font-weight: 800;
  margin-top: 44px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p {
  margin-top: 12px;
}

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

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
}

.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--ink);
}

.two-col {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 760px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.list-card {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.list-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.list-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

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

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

.contact-card a.email {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  word-break: break-all;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 50rem;
}

.faq details {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 20px;
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 800;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 16px;
  color: var(--ink-soft);
}

.faq details p + p {
  margin-top: -6px;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: 48px 32px;
  font-size: 0.95rem;
}

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

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-grid h2 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--ink);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--brand-text);
  text-decoration: underline;
}

.footer-tagline {
  margin-top: 12px;
  max-width: 22rem;
  color: var(--ink-soft);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* Just the bottom line, on the not-found page. */
.site-footer.compact {
  padding-block: 24px;
}

.site-footer.compact .footer-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
