/* depotpro.com public site. Plain CSS, no build step. */

:root {
  --green: #0B8361;
  --green-deep: #073D2D;
  --amber: #FBBF24;
  --concrete: #EEF0EC;
  --ink: #17201C;
  --steel: #4E5A54;
  --line: #CFD5D0;
  --white: #FFFFFF;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.5rem, 5.5vw, 4.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-deep); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; }

/* Wordmark: matches the app's DEPOT/PRO logo */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--amber); letter-spacing: 0.05em; }
.wordmark:hover { color: var(--ink); }
.on-dark .wordmark,
.on-dark .wordmark:hover { color: var(--white); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--green); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.button.secondary { background: transparent; color: var(--green-deep); }
.button.secondary:hover { background: var(--concrete); color: var(--green-deep); }
.site-nav .button { color: var(--white); }

/* Hero */
.hero {
  background: var(--concrete);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.hero p {
  margin: 0 0 2rem;
  font-size: var(--step-1);
  color: var(--steel);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero visual: a gate receipt, the document every depot runs on */
.receipt {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(7, 61, 45, 0.35);
  padding: 1.5rem 1.5rem 1.25rem;
  transform: rotate(1.5deg);
  max-width: 26rem;
  justify-self: end;
  width: 100%;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--ink);
}
.receipt-head strong { font-family: var(--font-display); font-size: var(--step-1); }
.receipt-head span { color: var(--steel); font-size: var(--step--1); }
.receipt-unit {
  margin: 1rem 0 0.25rem;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-3);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.receipt dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 1rem 0;
  font-size: var(--step--1);
}
.receipt dt { color: var(--steel); }
.receipt dd { margin: 0; text-align: right; font-weight: 500; }
.receipt-sign {
  border-top: 1px dashed var(--line);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  color: var(--steel);
  font-size: var(--step--1);
}
.receipt-sign svg { width: 9rem; height: auto; color: var(--ink); }
.receipt-stamp {
  position: absolute;
  top: 5.25rem;
  right: 1.5rem;
  border: 3px solid var(--green);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  transform: rotate(-8deg);
}

/* Corrugated steel band: the one bold element */
.corrugated {
  height: 3.5rem;
  background:
    repeating-linear-gradient(
      90deg,
      var(--green-deep) 0 14px,
      #0A5A43 14px 18px,
      var(--green) 18px 30px,
      #0A5A43 30px 34px
    );
  border-top: 6px solid var(--amber);
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.1;
  max-width: 22ch;
}
.section .lead {
  margin: 0 0 3rem;
  font-size: var(--step-1);
  color: var(--steel);
  max-width: 40rem;
}

.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.areas li {
  padding: 1.75rem 2rem 2rem 0;
  border-bottom: 1px solid var(--line);
}
.areas li:nth-child(odd) { border-right: 1px solid var(--line); }
.areas li:nth-child(even) { padding-left: 2rem; padding-right: 0; }
.areas h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.areas h3 svg { flex: none; width: 1.75rem; height: 1.75rem; color: var(--green); }
.areas p { margin: 0; color: var(--steel); max-width: 30rem; }

/* Dark band */
.on-dark {
  background: var(--green-deep);
  color: var(--white);
}
.on-dark .lead,
.on-dark p { color: #C9DED5; }
.on-dark a { color: var(--amber); }
.on-dark a:hover { color: var(--white); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.facts li {
  padding-left: 1.25rem;
  border-left: 4px solid var(--amber);
}
.facts strong { display: block; color: var(--white); font-size: var(--step-1); }

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.contact h2 { margin-bottom: 0.5rem; }
.contact p { margin: 0; color: var(--steel); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #B7C2BC;
  font-size: var(--step--1);
  padding-block: 2.5rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--amber); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 0.25rem; }

/* Legal pages */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.1;
}
.doc .effective { margin: 0 0 2.5rem; color: var(--steel); }
.doc h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.3;
}
.doc p,
.doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--concrete);
  border-left: 4px solid var(--green);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: var(--step--1);
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.doc th { border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }
.doc figure { margin: 1.5rem 0; }
.doc figure img { border: 1px solid var(--line); border-radius: 6px; }
.doc figcaption { margin-top: 0.5rem; color: var(--steel); font-size: var(--step--1); }

/* SMS opt-in screen, drawn to match the field app (also the source for the Twilio screenshot) */
.optin-screen {
  border: 10px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  padding: clamp(1.25rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1f2328;
}
.optin-inner {
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.optin-back { display: flex; align-items: center; gap: 6px; font-size: 16px; padding: 10px 0; }
.optin-title { margin: 16px 0 12px; font-size: clamp(24px, 4vw, 32px); font-weight: 500; line-height: 1.2; }
.optin-help { margin-bottom: 28px; font-size: 16px; line-height: 1.5; color: #57606a; }
.optin-label { font-size: 14px; font-weight: 500; color: #57606a; margin-bottom: 8px; }
.optin-input {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 20px;
  border: 1px solid #8c959f;
  border-radius: 4px;
}
.optin-consent { margin-top: 24px; font-size: 14px; line-height: 1.55; color: #424a53; }
.optin-consent strong { color: #1f2328; }
.optin-button {
  margin-top: 24px;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0B8361;
  color: #ffffff;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 500;
}

/* Small screens */
@media (max-width: 52rem) {
  .hero .wrap,
  .split { grid-template-columns: minmax(0, 1fr); }
  .receipt { justify-self: start; transform: none; }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .areas li,
  .areas li:nth-child(even) { padding: 1.5rem 0; border-right: none; }
}

@media (max-width: 30rem) {
  .site-nav .nav-link { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .receipt { animation: settle 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both 150ms; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(24px) rotate(4deg); }
    to { opacity: 1; transform: rotate(1.5deg); }
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 52rem) {
  @keyframes settle {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}
