/*
 * Yarda landing — job-site equipment aesthetic.
 * Premise: .loom/design/yard-crm-2026-07-09T181233Z.md
 * Tokens trace to packages/ui/src/tokens.ts — change there first, mirror here.
 * Flat fills only; hairline borders are the deepest allowed shadow.
 */

:root {
  /* primary — deep field green */
  --green-600: #15803d;
  --green-700: #116932;
  --green-100: #d1fadf;
  --green-50: #ecfdf3;

  /* accent — safety orange (chips/callouts only; never body text on white) */
  --orange-500: #f97316;
  --orange-600: #ea580c; /* darkest step still reading as safety orange — display numerals */
  --orange-100: #ffedd5;

  /* neutrals — green-tinted, sunlight-first */
  --ink: #0a0f0c;
  --n-700: #2a342e;
  --n-600: #3f4a42;
  --n-500: #5a6e62;
  --n-300: #b9c6c0;
  --n-200: #dce4e0;
  --n-100: #eef2f0;
  --n-50: #f7f9f8;
  --white: #ffffff;

  --font-display: "Archivo Black", -apple-system, "SF Pro Display", Roboto, system-ui, sans-serif;
  --font-text: "Inter", -apple-system, "SF Pro Text", Roboto, system-ui, sans-serif;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --measure: 38rem;

  /* glove-sized touch targets */
  --tap-lg: 4rem;
  --tap-xl: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black is drawn heavy at 400 */
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}

p {
  text-wrap: pretty;
  margin: 0;
}

a {
  color: var(--green-700);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

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

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

.site-header {
  border-bottom: 1px solid var(--n-200);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap-lg);
  padding-block: 0.75rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--green-600);
  text-decoration: none;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--n-300);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--n-600);
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap-lg);
  padding-inline: 1.75rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}

.btn-primary:active {
  background: var(--green-700);
}

.btn-hero {
  min-height: var(--tap-xl);
  font-size: 1.25rem;
  padding-inline: 2.25rem;
}

.btn-compact {
  min-height: 3rem;
  font-size: 0.9375rem;
  padding-inline: 1.25rem;
}

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

.hero {
  padding-block: 4.5rem 4rem;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.chip {
  display: inline-block;
  background: var(--orange-500);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-600);
}

.hero .lede {
  font-size: 1.25rem;
  color: var(--n-600);
  max-width: var(--measure);
}

.hero-note {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--n-500);
}

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

.band {
  padding-block: 4rem;
}

.band-tinted {
  background: var(--n-50);
  border-block: 1px solid var(--n-200);
}

.band-green {
  background: var(--green-600);
  color: var(--white);
}

.kicker {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.band-green .kicker {
  color: var(--white);
}

.band h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  max-width: 22ch;
}

.band .sub {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--n-600);
  max-width: var(--measure);
}

.band-green .sub {
  color: var(--green-50);
}

/* ---------- money loop steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.step {
  background: var(--white);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange-600);
}

.step h3 {
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.step p {
  color: var(--n-600);
  font-size: 0.9875rem;
}

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.feature {
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.feature p {
  color: var(--n-600);
  font-size: 0.9875rem;
}

/* ---------- bilingual band ---------- */

.band-green h2 {
  color: var(--white);
}

/* ---------- download / waitlist ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap-lg);
  padding: 0.625rem 1.5rem;
  border: 1px dashed var(--n-300);
  border-radius: var(--radius);
  color: var(--n-500);
}

.store-badge strong {
  color: var(--n-600);
  font-size: 1rem;
}

.store-badge span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.founding {
  margin-top: 2rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--n-600);
  max-width: var(--measure);
}

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

.founding .chip {
  margin-bottom: 0.375rem;
}

.waitlist-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.waitlist-cta p {
  color: var(--n-600);
  font-size: 0.9375rem;
}

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

.site-footer {
  border-top: 1px solid var(--n-200);
  padding-block: 2.5rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  color: var(--n-500);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

/* ── waitlist form ─────────────────────────────────────────────────────────── */
.waitlist-form[hidden] {
  display: none;
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.waitlist-form input[type="email"] {
  min-width: 16rem;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--green-200, #cde7d2);
  border-radius: 12px;
}
.waitlist-form input[type="email"]:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}
.waitlist-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.waitlist-msg {
  min-height: 1.4em;
  font-weight: 600;
}
.waitlist-msg.ok {
  /* the form is hidden on success — lead the row with the confirmation */
  order: -1;
  display: inline-block;
  padding: 0.9rem 1.5rem;
  color: var(--green-700, #14622f);
  font-size: 1.1rem;
  background: #e8f5ec;
  border: 1px solid var(--green-600, #15803d);
  border-radius: 12px;
}
.waitlist-msg.err {
  color: #b91c1c;
}

/* Orlo Works attribution — Style E strip, light state. Colors are fixed by
   the OW brand spec and intentionally do NOT use Yarda tokens. */
.site-footer .wrap.ow-strip {
  border-top: 1px solid #e4e4e0;
  margin-top: 1.5rem;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* outweighs .site-footer .wrap space-between; spec wants a 14px gap */
  gap: 14px;
}

.ow-label {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888888;
}

.ow-wm {
  font-family: "Fraunces", serif;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  color: #1c1c1a;
  text-decoration: none;
  /* expand tap target without moving layout */
  padding: 14px 8px;
  margin: -14px -8px;
}

.ow-o {
  font-weight: 175;
  font-style: italic;
  letter-spacing: -0.01em;
}

.ow-d {
  color: #c8a84b;
  font-weight: 175;
  font-style: normal;
  margin: 0 0.14em;
}

.ow-w {
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.04em;
}
