/* ─── Arcos marketing pages (static, under public/) ─────────────────────────
   The shell (header, nav, footer, forms) and the design system that the pages
   ported from catalist.org were written against. Those pages keep only their
   page-specific CSS inline; everything shared lives here, once.

   Palette: the same fixed values as the React landing page (--lp-* in
   src/styles/landing.css). These pages never load the app stylesheet, so the
   values are written out here — keep the two in step by hand. The catalist.org
   variable names (--orange, --navy, …) are kept as ALIASES of the Arcos tokens
   so the ported CSS reads in Arcos blues without a rewrite; re-theming later
   means changing the --as-* block only. */

:root {
  --as-deep: #1a202c;
  --as-slate: #2d3748;
  --as-steel: #4a5568;
  --as-mist: #f7fafc;
  --as-cloud: #edf2f7;
  --as-ink: #1a202c;
  --as-ink-2: #4a5568;
  --as-muted: #718096;
  --as-blue: #3182ce;
  --as-blue-bright: #4299e1;
  --as-blue-soft: #63b3ed;
  --as-gold: #ecc94b;
  --as-line: #cbd5e0;
  --as-line-soft: #e2e8f0;
  --as-on-dark: #e2e8f0;
  --as-on-dark-soft: #a0aec0;
  --as-footer: #141a24;
  --as-catalist-band: #2a2622;
  --as-header-h: 64px;
  --as-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Aliases for the ported catalist.org CSS. */
  --orange: var(--as-blue-bright);
  --coral: var(--as-blue-soft);
  --navy: var(--as-deep);
  --navy-mid: var(--as-slate);
  --body-bg: var(--as-mist);
  --card-bg: #ffffff;
  --text: var(--as-ink);
  --text-mid: var(--as-ink-2);
  --text-light: var(--as-muted);
  --border: var(--as-line-soft);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--as-font);
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--as-blue-bright); outline-offset: 2px; border-radius: 4px; }

/* ── Design system shared by the ported pages ── */

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-family: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.15s; border: none; white-space: nowrap; }
.btn-sm { font-size: 13px; padding: 7px 16px; }
.btn-md { font-size: 15px; padding: 11px 24px; }
.btn-lg { font-size: 16px; padding: 14px 32px; }
.btn-primary { background: var(--as-blue-bright); color: #fff; }
.btn-primary:hover { background: var(--as-blue); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(66, 153, 225, 0.35); }
.btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.5); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-mid { background: var(--as-cloud); }
.section-white { background: #fff; }

h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-mid); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-label {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { margin-bottom: 12px; font-size: clamp(1.3rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--orange), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero { background: var(--navy); color: #fff; padding: 90px 0 80px; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--as-blue-soft); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 680px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); padding: 32px; }

.text-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; background: var(--navy); color: rgba(255,255,255,0.92); border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.text-link::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.text-link:hover { background: var(--navy-mid); transform: translateY(-1px); text-decoration: none; }
.text-link-sm { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--navy); color: rgba(255,255,255,0.88); border-radius: 100px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.text-link-sm::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.text-link-sm:hover { background: var(--navy-mid); transform: translateY(-1px); text-decoration: none; }
.section-dark .text-link, .section-dark .text-link-sm { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.section-dark .text-link:hover, .section-dark .text-link-sm:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
p > .text-link, p > .text-link-sm { display: flex; width: fit-content; margin-top: 16px; }

.callout { background: linear-gradient(135deg, var(--navy), #2a4365); border-radius: var(--radius); padding: 56px 48px; color: #fff; text-align: center; }
.callout h2 { color: #fff; margin-bottom: 16px; }
.callout p { color: rgba(255,255,255,0.65); margin-bottom: 32px; font-size: 1.05rem; }
.callout-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .callout { padding: 40px 28px; }
  .outcomes-card { padding: 28px 24px; }
}

/* ── Header ── */

.as-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 32, 44, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.as-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--as-header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.as-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--as-mist);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.as-brand img { display: block; height: 26px; width: auto; }

.as-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.as-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.as-nav a:hover, .as-nav a.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.as-ext { font-size: 11px; opacity: 0.6; margin-left: 3px; }
.as-nav-mobile-only { display: none; }

.as-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.as-signin { font-size: 14px; font-weight: 500; color: var(--as-mist); opacity: 0.85; text-decoration: none; transition: opacity 0.2s; }
.as-signin:hover { opacity: 1; }
.as-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--as-mist);
  text-decoration: none;
  border: 1px solid rgba(226, 232, 240, 0.35);
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: 0.2s;
}
.as-cta:hover { background: rgba(226, 232, 240, 0.1); border-color: rgba(226, 232, 240, 0.6); }

.as-menu-btn { display: none; }

@media (max-width: 860px) {
  .as-bar { gap: 14px; }
  .as-signin { display: none; }
  .as-menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 38px; padding: 9px 8px;
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent;
  }
  .as-menu-btn span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .as-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .as-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .as-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .as-nav {
    display: none; position: absolute; top: var(--as-header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 6px 0 12px; flex: none;
    background: var(--as-deep); border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .as-nav.is-open { display: flex; }
  .as-nav a { padding: 13px 24px; font-size: 16px; border-radius: 0; }
  .as-nav-mobile-only { display: block; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 6px; padding-top: 14px !important; }
}

/* ── Forms (light surface) ── */

.as-form { display: flex; flex-direction: column; gap: 16px; }
.as-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.as-field { display: flex; flex-direction: column; gap: 7px; }
.as-field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--as-blue); }
.as-field input, .as-field textarea {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--as-ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.as-field input::placeholder, .as-field textarea::placeholder { color: var(--as-muted); }
.as-field input:focus, .as-field textarea:focus { outline: none; border-color: var(--as-blue-bright); box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.18); }
.as-field textarea { resize: vertical; min-height: 130px; }
.as-form .btn { align-self: flex-start; margin-top: 2px; }
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-form-error { color: #c53030; font-size: 0.92rem; line-height: 1.5; }
.as-form-error a { color: inherit; }
.as-form-success {
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid rgba(72, 187, 120, 0.4);
  border-radius: 12px;
  padding: 28px;
  color: var(--as-ink);
  font-size: 1.02rem;
  line-height: 1.55;
}
.as-form-success strong { color: #276749; }
.as-aside { font-size: 0.95rem; color: var(--as-muted); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--as-line-soft); line-height: 1.6; }
.as-aside a { color: var(--as-blue); font-weight: 600; text-decoration: none; }
.as-aside a:hover { text-decoration: underline; text-underline-offset: 3px; }
.as-intro h2 { margin: 6px 0 14px; }
.as-intro > p { font-size: 1.05rem; max-width: 46ch; }
@media (max-width: 640px) { .as-form-row { grid-template-columns: 1fr; } }

/* ── Footer: the Arcos band, then the Catalist band ── */

.as-footer { background: var(--as-footer); color: var(--as-muted); font-size: 0.9rem; }
.as-foot-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.as-foot-brand .as-brand { font-size: 17px; color: var(--as-on-dark-soft); margin-bottom: 14px; }
.as-foot-brand .as-brand img { height: 22px; }
.as-foot-brand p { max-width: 32ch; line-height: 1.55; color: var(--as-muted); font-size: 0.9rem; }
.as-foot-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.as-foot-col a { display: block; color: var(--as-on-dark-soft); text-decoration: none; font-size: 13.5px; padding: 4px 0; transition: color 0.15s; }
.as-foot-col a:hover { color: var(--as-mist); text-decoration: underline; text-underline-offset: 3px; }
.as-foot-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
.as-foot-bottom a { color: var(--as-on-dark-soft); text-decoration: none; }
.as-foot-bottom a:hover { color: var(--as-mist); text-decoration: underline; text-underline-offset: 3px; }
.as-foot-legal { display: flex; gap: 20px; flex-wrap: wrap; }

.as-foot-catalist { background: var(--as-catalist-band); border-top: 1px solid rgba(255,255,255,0.06); }
.as-foot-catalist-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 38px;
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 32px;
  align-items: start;
}
.as-foot-catalist h4 { color: var(--as-gold); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.as-foot-catalist p { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 36ch; line-height: 1.55; }
.as-foot-catalist-links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 4px; }
.as-foot-catalist-links a { color: rgba(255,255,255,0.72); font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.as-foot-catalist-links a::after { content: " ↗"; font-size: 11px; opacity: 0.55; }
.as-foot-catalist-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .as-foot-main { grid-template-columns: 1fr 1fr; }
  .as-foot-brand { grid-column: 1 / -1; }
  .as-foot-catalist-inner { grid-template-columns: 1fr; gap: 18px; }
}
