/* Mándalo, "work truck": deep forest green and safety orange, with Archivo set big, heavy,
   and narrow so it reads on a phone in the sun. Archivo is under the SIL Open Font License
   (public/fonts/OFL.txt) and served from this site, so no request leaves it. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #0f3a2a;
  --forest-deep: #0a2a1e;
  --vis: #ff6a13;
  --vis-hover: #ff8238;
  --on-vis: #1b0d03;
  --on-dark: #f4f1ea;
  --on-dark-muted: #c9d6cd;
  --bubble: #20473a;

  --paper: #f4f1ea;
  --card: #ffffff;
  --ink: #141714;
  --muted: #4c5751;
  --line: #d8d3c5;
  --link: #1a6040;

  --radius: 6px;
  --gutter: 16px;
  --max: 1120px;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1511;
    --card: #121e18;
    --ink: #eef0ea;
    --muted: #a9b5ad;
    --line: #26342c;
    --link: #8fd3a9;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--vis); outline-offset: 3px; }

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

/* Big, narrow, uppercase display type. */
.hero h1, section.block h2, .legal h1, .notfound h1, .notfound h2 {
  font-weight: 850;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

/* The hazard stripe that closes the dark band at the top of each page. */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--vis) 0 14px, var(--forest) 14px 28px);
}

/* Header */
.site-header { background: var(--forest); color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 68px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
.brand {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 850;
  font-stretch: 75%;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-top: 0.25em;
}
/* The wordmark's accent: an orange slash over the A of MÁNDALO. */
.brand .acc { position: relative; display: inline-block; }
.brand .acc::before {
  content: "";
  position: absolute;
  left: 34%;
  top: -0.24em;
  width: 0.3em;
  height: 0.2em;
  background: var(--vis);
  transform: skewX(-30deg);
}
.site-header nav { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font-size: 0.95rem; font-weight: 600; }
.site-header nav a { color: var(--on-dark); text-decoration: none; }
.site-header nav a:hover { color: var(--vis); }
.site-header nav a.lang { border: 1.5px solid rgba(244, 241, 234, 0.45); border-radius: var(--radius); padding: 3px 10px; }
/* On the home pages the stripe sits under the hero instead. */
body:has(.hero) .site-header .stripe { display: none; }

/* Hero */
.hero { background: var(--forest); color: var(--on-dark); }
.hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 56px; }
.tag {
  display: inline-block;
  margin: 0 0 18px;
  border: 1.5px solid var(--vis);
  border-radius: var(--radius);
  padding: 3px 10px;
  color: var(--vis);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); margin: 0 0 20px; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--vis); }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--on-dark-muted); max-width: 32em; margin: 0 0 28px; }

/* The example conversation, on a phone. */
.phone {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  background: var(--forest-deep);
  border: 2px solid #2b5a45;
  border-radius: 28px;
  padding: 18px 14px 8px;
}
.bubble {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: var(--bubble);
  color: var(--on-dark);
  font-size: 1rem;
  line-height: 1.4;
}
.bubble.me { margin-left: auto; background: var(--vis); color: var(--on-vis); font-weight: 600; border-radius: 18px 18px 4px 18px; }
.bubble .meta { display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 1fr; padding-top: 56px; padding-bottom: 76px; }
  .phone { justify-self: end; }
}

.button {
  display: inline-block;
  background: var(--vis);
  color: var(--on-vis);
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: var(--radius);
}
.button:hover { background: var(--vis-hover); }

/* Sections */
section.block .wrap { padding-top: 64px; padding-bottom: 64px; }
section.block h2 { font-size: clamp(2.1rem, 6vw, 3.2rem); margin: 0 0 16px; }
section.block > .wrap > p { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: 16px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--vis);
  font-weight: 850;
  font-stretch: 75%;
  font-size: 3rem;
  line-height: 1;
}
.steps h3, .features h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; font-stretch: 88%; line-height: 1.25; }
.steps p, .features p { margin: 0; color: var(--muted); font-size: 1rem; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.features div { background: var(--paper); border-top: 4px solid var(--vis); padding: 18px 18px 22px; }

/* The closing call to join the pilot. */
section.pilot { background: var(--forest); color: var(--on-dark); }
section.pilot > .wrap > p { color: var(--on-dark-muted); }
section.pilot a:not(.button) { color: var(--vis); }

/* Legal pages */
.legal .wrap { max-width: 780px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); margin: 0 0 10px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; font-size: 0.95rem; }
.legal h2 { font-size: 1.35rem; font-weight: 800; font-stretch: 88%; line-height: 1.25; margin: 40px 0 8px; }
.legal h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 1.02rem; }
.legal .summary { background: var(--card); border-left: 4px solid var(--vis); padding: 16px 20px; }

/* Not found */
.notfound .wrap { padding-top: 64px; padding-bottom: 80px; }
.notfound h1, .notfound h2 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 0 0 16px; }
.notfound h2 { margin-top: 48px; }

/* Footer */
.site-footer { background: var(--forest-deep); color: var(--on-dark-muted); font-size: 0.92rem; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 44px; }
.site-footer a { color: var(--on-dark); }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 600; }
.site-footer p { margin: 4px 0; }
