/* VocaStack landing site — palette derived from app icon:
   red-orange #E8452C, amber #F5A623, green #12B76A, blue #2E6BE6 */
:root {
  --red: #e8452c;
  --red-dark: #b93117;
  --amber: #f5a623;
  --amber-dark: #8a5c00;
  --green: #12b76a;
  --green-dark: #0d7a48;
  --blue: #2e6be6;
  --blue-dark: #1e4fbf;
  --bg: #fffdfa;
  --bg-alt: #fbf4ec;
  --surface: #ffffff;
  --text: #23201d;
  --text-muted: #5c554e;
  --border: #e8ddd2;
  --shadow: 0 8px 24px rgba(35, 32, 29, 0.10);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --red: #ff6b4f;
    --red-dark: #ff8a73;
    --amber: #ffb84d;
    --amber-dark: #ffc670;
    --green: #2fd68a;
    --green-dark: #5ee2a6;
    --blue: #6b97f2;
    --blue-dark: #8fb0f5;
    --bg: #17130f;
    --bg-alt: #201a15;
    --surface: #26201a;
    --text: #f3ede6;
    --text-muted: #b8aea3;
    --border: #3a322a;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--red); }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.brand img { border-radius: 9px; }
.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    gap: 0.9rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- layout ---------- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
h1, h2, h3 { line-height: 1.22; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 0; }
.section-lede { color: var(--text-muted); max-width: 46ch; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--red-dark);
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.lede { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 1.75rem; }
.lede strong { color: var(--text); }

.store-badges { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #17130f;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  border: 1px solid #17130f;
  line-height: 1.15;
  font-weight: 600;
  font-size: 1.05rem;
}
.badge small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.85; }
.badge:hover { background: #322a22; color: #fff; }
@media (prefers-color-scheme: dark) {
  .badge { background: #f3ede6; color: #17130f; border-color: #f3ede6; }
  .badge:hover { background: #fff; color: #17130f; }
}
.hero-props {
  list-style: none;
  display: flex;
  gap: 0.6rem 1.4rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero-props li::before { content: "✓ "; color: var(--green-dark); font-weight: 700; }

/* card stack visual */
.hero-visual { text-align: center; }
.card-stack {
  display: grid;
  gap: 0.8rem;
  max-width: 300px;
  margin: 0 auto;
}
.vcard {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
.vcard-lang { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; min-width: 4.6rem; }
.vcard-word { font-size: 1.35rem; font-weight: 800; flex: 1; }
.vcard-family { font-size: 0.7rem; opacity: 0.85; border: 1px solid rgba(255,255,255,0.5); padding: 0.1rem 0.5rem; border-radius: 999px; }
.vcard-en { background: #d63b22; transform: rotate(-2deg); }
.vcard-es { background: #d98d0c; transform: rotate(1.5deg); }
.vcard-de { background: #0e9457; transform: rotate(-1deg); }
.vcard-fr { background: #2458c4; transform: rotate(2deg); }
.visual-caption { font-size: 0.82rem; color: var(--text-muted); margin-top: 1.1rem; }

/* ---------- problem / solution ---------- */
.problem { background: var(--bg); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.split-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.split-col h3 { margin-top: 0; }
.x-list, .check-list { padding-left: 0; list-style: none; margin: 0; }
.x-list li, .check-list li { padding: 0.4rem 0 0.4rem 1.7rem; position: relative; }
.x-list li::before { content: "✕"; position: absolute; left: 0; color: var(--red-dark); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-dark); font-weight: 700; }

/* ---------- features ---------- */
.features { background: var(--bg-alt); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border-top: 4px solid var(--border);
}
.feature h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
.f-red { border-top-color: var(--red); }
.f-amber { border-top-color: var(--amber); }
.f-green { border-top-color: var(--green); }
.f-blue { border-top-color: var(--blue); }

/* ---------- how it helps ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  margin-top: 2rem;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}
.n-red { background: #d63b22; }
.n-amber { background: #b26f00; }
.n-green { background: #0e9457; }
.n-blue { background: #2458c4; }
.how-item h3 { margin: 0.75rem 0 0.5rem; }
.how-item p { margin: 0; color: var(--text-muted); }
.how-cta { margin-top: 2.5rem; text-align: center; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
}
.btn-primary:hover { background: var(--red-dark); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #d63b22; }
  .btn-primary:hover { background: #e8452c; }
}

/* ---------- audience ---------- */
.audience { background: var(--bg-alt); }
.audience-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}
.audience-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
}
.audience-list li:nth-child(4n+1) { border-left-color: var(--red); }
.audience-list li:nth-child(4n+2) { border-left-color: var(--amber); }
.audience-list li:nth-child(4n+3) { border-left-color: var(--green); }
.audience-list li:nth-child(4n+4) { border-left-color: var(--blue); }

/* ---------- FAQ ---------- */
.accordion { margin-top: 1.5rem; max-width: 780px; }
.accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  padding: 0;
  overflow: hidden;
}
.accordion summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.95rem 1.2rem;
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--red-dark);
}
.accordion details[open] summary::after { content: "–"; }
.accordion details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--text-muted); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; margin-top: 0; }
.footer-brand img { border-radius: 6px; }
.footer-h { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin: 0.3rem 0 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-meta { color: var(--text-muted); font-size: 0.88rem; }
.footer-fine {
  padding-top: 0;
  padding-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- guide pages ---------- */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--text-muted); }
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
}
.article header h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.article-meta { color: var(--text-muted); font-size: 0.9rem; }
.article h2 { margin-top: 2.4rem; font-size: 1.45rem; }
.article h3 { margin-top: 1.8rem; }
.article blockquote {
  border-left: 4px solid var(--amber);
  margin: 1.5rem 0;
  padding: 0.4rem 0 0.4rem 1.2rem;
  color: var(--text-muted);
  font-style: italic;
}
.article table { border-collapse: collapse; width: 100%; margin: 1.4rem 0; font-size: 0.95rem; }
.article th, .article td { border: 1px solid var(--border); padding: 0.55rem 0.8rem; text-align: left; }
.article th { background: var(--bg-alt); }
.app-callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 2.2rem 0;
}
.app-callout h2, .app-callout h3 { margin-top: 0; }
.related {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.related h2 { font-size: 1.1rem; margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.75rem; }
  .split, .how-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .card-stack { max-width: 340px; }
}
@media (max-width: 400px) {
  body { font-size: 1rem; }
  .section-inner { padding: 2.5rem 1rem; }
  .badge { width: 100%; justify-content: center; }
}
