/* Vamos Sur — brand colours from the app (Canadian red, Mexican green, sand, terracotta, monarch orange). */
:root {
  --red: #C8102E;
  --red-soft: #FBE7E9;
  --green: #006847;
  --green-soft: #E2F1EA;
  --sand: #F6EBDD;
  --sand-deep: #EBDAC3;
  --card: #FFFDF9;
  --terracotta: #B5502A;
  --monarch: #E07A12;
  --monarch-soft: #FCEBD5;
  --ink: #2A211A;
  --ink-soft: #5B4E43;
  --line: #E2D3BF;
  --link: #00573C;
  --link-hover: #003D2A;
  --white: #FFFFFF;
  --radius: 16px;
  --measure: 42rem;
  --space: 1.25rem;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  font-size: 1rem;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

/* Canada / Mexico stripe */
.flag-bar {
  display: flex;
  height: 8px;
  width: 100%;
}

.flag-bar span:first-child {
  flex: 1;
  background: var(--red);
}

.flag-bar span:last-child {
  flex: 1;
  background: var(--green);
}

.wrap {
  width: min(var(--measure), 100% - 2 * var(--space));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand:hover {
  color: var(--ink);
}

.brand img,
.brand picture {
  width: 48px;
  height: 48px;
  flex: none;
}

.brand-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Landing */
.hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}

.hero-logo {
  width: 176px;
  height: 176px;
  margin: 0 auto 1.1rem;
}

@media (min-width: 640px) {
  .hero-logo {
    width: 208px;
    height: 208px;
  }
}

.hero h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.tagline {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}

.coming-soon {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--terracotta);
}

.community h2,
.features-block h2,
.page h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

.community {
  margin-bottom: 2.5rem;
}

.community h2 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  text-align: center;
}

.community-lead {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .actions {
    flex-direction: row;
    justify-content: center;
  }

  .actions .btn {
    flex: 1 1 0;
    max-width: 18rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  line-height: 1.25;
}

.btn:focus-visible {
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: var(--link-hover);
  border-color: var(--link-hover);
  color: var(--white);
}

.btn-secondary {
  background: var(--card);
  color: var(--green);
  border-color: var(--green);
}

.btn-secondary:hover {
  background: var(--green-soft);
  color: var(--link-hover);
}

.features-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.85rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 1px 0 rgba(42, 33, 26, 0.04);
}

.features-block h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.features-lead {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 1.55rem;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
}

/* Inner pages */
.page {
  padding: 0.75rem 0 3rem;
}

.page h1 {
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.meta {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.page h2 {
  font-size: 1.28rem;
  line-height: 1.3;
  margin: 1.85rem 0 0.55rem;
  color: var(--ink);
}

.page p,
.page li {
  margin: 0 0 0.9rem;
}

.page ul {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.page li::marker {
  color: var(--terracotta);
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.faq {
  display: grid;
  gap: 0.85rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.15rem 1rem 0.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--terracotta);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p:last-child {
  margin-bottom: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.25rem;
  margin-top: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
}

.footer-nav a {
  font-weight: 700;
  text-decoration: none;
  color: var(--link);
}

.footer-nav a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 36rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

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

@media print {
  .flag-bar,
  .skip,
  .actions,
  .site-header {
    /* keep header for context */
  }

  body {
    background: white;
    color: black;
  }

  .site-footer,
  .actions {
    display: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #333;
  }

  a[href^="mailto:"]::after {
    content: "";
  }
}
