/* Map & Pace — accessible marketing site styles
   Mobile-first. rem-based sizing. No animation by default. */

:root {
  --bg: #FBF7F1;          /* warm cream background */
  --surface: #FFFFFF;     /* card / input surface */
  --text: #2A2723;        /* near-black warm text */
  --muted: #59534B;       /* secondary text (AA on bg + surface) */
  --line: #E4DCCD;        /* soft borders */
  --accent: #1E6B58;      /* deep green — primary actions */
  --accent-dark: #155044; /* darker green — links, hover */
  --accent-soft: #E3EEE8; /* light green tint */
  --focus: #1E6B58;       /* focus outline color */
  --footer-bg: #2A2723;
  --footer-text: #F3EDE2;
  --radius: 0.75rem;
}

/* ---------- Base ---------- */

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

html {
  font-size: 100%; /* 16px browser default; visitors can zoom/resize */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* ---------- Focus visibility ---------- */

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

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Layout ---------- */

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

.container-narrow {
  max-width: 40rem;
}

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background-color: #F5EFE5;
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 42rem;
  font-size: 1.125rem;
}

.section-note {
  color: var(--muted);
  margin-top: 1.5rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.lede {
  font-size: 1.25rem;
  max-width: 38rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

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

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
}

.nav-list a:hover {
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 3.5rem;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  flex: 1 1 22rem;
}

.hero-art {
  flex: 0 1 16rem;
  width: 100%;
  max-width: 17rem;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  min-height: 2.875rem; /* 46px — comfortable touch/keyboard target */
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary:hover {
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 48rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--accent-dark);
}

.card p {
  flex-grow: 0;
}

.card-meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Product card ---------- */

.product-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 0.375rem solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 44rem;
}

.product-card h3 {
  color: var(--accent-dark);
  margin-top: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background-color: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  border-radius: 999px;
  margin: 0;
}

.product-status {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Shop / bundles ---------- */

.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 60rem) {
  .bundle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bundle-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.bundle-card.available {
  border-left: 0.375rem solid var(--accent);
}

.bundle-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.bundle-card h2 {
  margin: 0;
  color: var(--accent-dark);
}

.price {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin: 0;
}

.price-note {
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
}

.bundle-tagline {
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 0.75rem;
}

.bundle-cta,
.bundle-card > .product-status {
  margin-top: auto;
}

.bundle-cta {
  align-self: flex-start;
}

.bundle-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
}

.bundle-actions .bundle-cta {
  margin-top: 0;
}

.product-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Lists ---------- */

.plain-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.plain-list li::marker {
  color: var(--accent);
}

.plain-list li {
  margin-bottom: 0.6rem;
}

/* ---------- Form ---------- */

.signup-form {
  margin-top: 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  max-width: 26rem;
  min-height: 2.875rem;
  padding: 0.6rem 0.8rem;
  font-size: 1.125rem;
  font-family: inherit;
  color: var(--text);
  background-color: var(--surface);
  border: 2px solid var(--muted);
  border-radius: var(--radius);
}

.field input:focus {
  border-color: var(--accent);
}

.form-hint {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  max-width: 34rem;
}

.form-status {
  font-weight: 700;
  color: var(--accent-dark);
  min-height: 1.5em;
}

.form-preview {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 34rem;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 2.5rem;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration-color: var(--footer-text);
}

.site-footer a:hover {
  color: #C6E0D4;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav {
  margin-bottom: 1.25rem;
}

.footer-nav a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--footer-text);
}

.disclaimer {
  font-size: 0.9375rem;
  max-width: 46rem;
  color: #DCD3C4;
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: #DCD3C4;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
