@font-face {
  font-family: Inter;
  src: url("/fonts/Inter_24pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/Inter_24pt-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --muted: #3a3a3c;
  --paper: #f6f1e7;
  --card: #ffffff;
  --line: #e7e0d4;
  --green: #166534;
  --green-soft: #e7f6ec;
  --amber: #f59e0b;
  --danger: #b91c1c;
  --shadow: 0 18px 40px rgba(22, 101, 52, 0.08);
  --sans: Inter, "Segoe UI", sans-serif;
  --body: Nunito, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(880px 420px at 0% -10%, #dcfce7 0%, transparent 62%),
    radial-gradient(640px 360px at 100% 0%, #fef3c7 0%, transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2;
}
.skip:focus { top: 12px; }

a { color: var(--green); }
a:hover { color: #14532d; }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.layout { display: grid; gap: 28px; }

.brand {
  margin: 0 0 14px;
  color: #16a34a;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 22px;
  line-height: 1;
}
.brand a {
  color: #16a34a;
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bita {
  display: block;
  width: 168px;
  height: auto;
  margin: 4px 0 12px;
}

h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lede {
  margin: 14px 0 0;
  max-width: 36rem;
  font-size: 18px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
}

.card h2,
.story h2 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.card > p,
.hint {
  margin: 0 0 16px;
  color: var(--muted);
}

form { display: grid; gap: 12px; position: relative; }

label {
  display: grid;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.optional {
  font-weight: 400;
  color: #6e6e73;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.3 var(--body);
}

input:focus,
select:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.35;
}

.check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 1px;
  accent-color: var(--green);
}

button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover { background: #14532d; color: white; }

button:disabled { opacity: 0.7; cursor: progress; }

.button.secondary {
  background: var(--green-soft);
  color: var(--green);
}
.button.secondary:hover { background: #d3efdc; color: var(--green); }

.error {
  margin: 0;
  color: var(--danger);
  font-size: 15px;
}

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

.thanks { display: grid; gap: 12px; }
.thanks[hidden],
form[hidden],
.error[hidden],
.button[hidden],
.socials[hidden],
[hidden] { display: none !important; }

.thanks h2 { margin-bottom: 0; }
#thanks-title:focus { outline: none; }
.thanks p { margin: 0; color: var(--muted); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.socials a { font-family: var(--sans); font-size: 14px; font-weight: 700; }
.socials-footer { margin: 0 0 10px; }

.story { display: grid; gap: 56px; }
.story h2 { margin: 0; font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.035em; }
.story-lede { margin: 12px 0 0; max-width: 34rem; color: var(--muted); font-size: 18px; }

.pair { display: grid; gap: 8px; justify-items: center; }
.pair > div { width: 100%; }
.bita-large {
  display: block;
  width: min(100%, 280px);
  height: auto;
}

.swatches {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.swatches li { width: 16px; height: 16px; border-radius: 50%; }
.swatch-label { margin: 8px 0 0; color: #6e6e73; font-size: 14px; }

.device {
  width: min(100%, 280px);
  margin: 0;
  padding: 8px;
  background: #1c1c1e;
  border-radius: 36px;
  box-shadow: 0 22px 48px rgba(28, 28, 30, 0.16);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #f3f2f8;
}
.swatch-red { background: #dc2626; }
.swatch-orange { background: #ea580c; }
.swatch-amber { background: #d97706; }
.swatch-green { background: #16a34a; }
.swatch-deep { background: #166534; }
.swatch-brown { background: #78350f; }

.turnstile { min-height: 65px; }

.notes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.notes li {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.notes span {
  display: block;
  margin-top: 4px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--muted);
}

.plates h2 { margin-bottom: 16px; }
.plate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plate-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: #f3f2f8;
}
.plate-grid p {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.site-footer {
  margin-top: 8px;
  color: #6e6e73;
  font-size: 14px;
}
.site-footer p { margin: 0; }

.fine {
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.45;
}

.page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}
.page h1 {
  font-size: clamp(32px, 6vw, 44px);
  margin: 8px 0 12px;
}
.page h2 { font-family: var(--sans); font-size: 20px; margin: 28px 0 8px; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 1.2rem; }
.page h1[tabindex]:focus { outline: none; }

.baja-form {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}
.baja-form p { margin: 0; }
.baja-form button { justify-self: start; }

@media (min-width: 768px) {
  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
    align-items: center;
    justify-items: stretch;
  }
  .bita-large { width: min(100%, 440px); justify-self: center; }
  .device { width: min(100%, 320px); justify-self: center; }
  .plate-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
  .plate-grid p { font-size: 15px; }
}

@media (min-width: 880px) {
  .wrap { padding-top: 48px; }
  .layout {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "hero card"
      "story story";
    column-gap: 56px;
    row-gap: 48px;
    align-items: start;
  }
  .hero { grid-area: hero; }
  .card { grid-area: card; padding: 26px 24px 22px; }
  .story { grid-area: story; gap: 72px; }
  .device { width: min(100%, 460px); }
  .bita-large { width: min(100%, 500px); }
  .bita { width: 200px; }
  .brand { font-size: 26px; }
}

/* The card follows the scroll only when the whole form fits: pinned and taller
   than the window, its button would be out of reach until the end of the page. */
@media (min-width: 880px) and (min-height: 900px) {
  .card { position: sticky; top: 28px; }
}

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