/* promo-site design system — was duplicated verbatim inside index.php's
   and de.php's <style> blocks (byte-for-byte identical, only the body
   copy differed between the two pages); extracted here so it's defined
   once. Not shared with the main app's public_html/styles.css — this is
   its own light/dark theme pair tuned for the landing page. */

:root {
  --bg: #F9F6F2;
  --surface: #FFFFFF;
  --surface-2: #F3ECE1;
  --accent: #0A1B4D;
  --accent-2: #5C7A00;
  --accent-soft: #0A1B4D1a;
  --error: #B3253D;
  --text: #33302C;
  --text-muted: #6B655D;
  --border: #E4DACB;
  --shadow: 0 20px 44px -18px rgba(51, 48, 44, 0.28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2B2A28;
    --surface: #35322F;
    --surface-2: #3F3B36;
    --accent: #00C2E8;
    --accent-2: #8BD100;
    --accent-soft: #00C2E822;
    --error: #E8695A;
    --text: #F3EDE4;
    --text-muted: #C9C0B4;
    --border: #4A453F;
    --shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2B2A28; --surface: #35322F; --surface-2: #3F3B36;
  --accent: #00C2E8; --accent-2: #8BD100; --accent-soft: #00C2E822;
  --error: #E8695A;
  --text: #F3EDE4; --text-muted: #C9C0B4; --border: #4A453F;
  --shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F9F6F2; --surface: #FFFFFF; --surface-2: #F3ECE1;
  --accent: #0A1B4D; --accent-2: #5C7A00; --accent-soft: #0A1B4D1a;
  --error: #B3253D;
  --text: #33302C; --text-muted: #6B655D; --border: #E4DACB;
  --shadow: 0 20px 44px -18px rgba(51, 48, 44, 0.28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

.mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Georgia, "Iowan Old Style", serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.92rem;
}
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } }

.lang-switch { display: flex; gap: 0.5rem; font-size: 0.85rem; }
.lang-switch a { text-decoration: none; color: var(--text-muted); font-weight: 600; }
.lang-switch a.active { color: var(--accent); }
.lang-switch a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px var(--accent-soft); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ── */
.hero { padding: 5.5rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 1.15rem 0 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }

/* ── Hero tag artifact ── */
.tag-stage { display: flex; justify-content: center; }
.tag {
  position: relative;
  width: 290px;
  height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-3.5deg);
  animation: tag-settle 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes tag-settle {
  from { transform: rotate(-11deg) translateY(-14px); opacity: 0; }
  to   { transform: rotate(-3.5deg) translateY(0); opacity: 1; }
}

/* Pushes through the 4 .tag-slide example items (each a full
   name/category/SKU/value/confidence set, not just an image swap):
   each slide enters from the right and exits to the left, carousel-
   style. .tag-viewport clips the sliding cards to the card's own
   rounded rectangle — it's a separate element from .tag itself so
   .tag's ::before/::after (the decorative string/hole hanging above
   the card) aren't clipped too, since those sit outside .tag's own
   box on purpose. Percentage-based per-slide keyframes on a shared
   16s cycle keep all 4 in sync without animation-delay staggering;
   translateX(100%)/(-100%) are both fully off-screen (clipped by the
   viewport), so the instant either one is reached, that slide is
   invisible regardless of exactly when — no crossfade math needed at
   the seams the way the opacity version required. */
.tag-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
}
.tag-slide {
  position: absolute;
  inset: 0;
  padding: 2.1rem 1.5rem 1.5rem;
}
.tag-slide:nth-child(1) { animation: tag-push-1 16s infinite; }
.tag-slide:nth-child(2) { animation: tag-push-2 16s infinite; }
.tag-slide:nth-child(3) { animation: tag-push-3 16s infinite; }
.tag-slide:nth-child(4) { animation: tag-push-4 16s infinite; }
@keyframes tag-push-1 {
  0%   { transform: translateX(100%); }
  3%   { transform: translateX(0); }
  22%  { transform: translateX(0); }
  25%  { transform: translateX(-100%); }
  100% { transform: translateX(-100%); }
}
@keyframes tag-push-2 {
  0%, 25% { transform: translateX(100%); }
  28% { transform: translateX(0); }
  47% { transform: translateX(0); }
  50% { transform: translateX(-100%); }
  100% { transform: translateX(-100%); }
}
@keyframes tag-push-3 {
  0%, 50% { transform: translateX(100%); }
  53% { transform: translateX(0); }
  72% { transform: translateX(0); }
  75% { transform: translateX(-100%); }
  100% { transform: translateX(-100%); }
}
@keyframes tag-push-4 {
  0%, 75% { transform: translateX(100%); }
  78%  { transform: translateX(0); }
  97%  { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  /* The site-wide reduced-motion rule collapses animation-duration to
     0.01ms, which would make this push through all 4 slides almost
     instantly instead of just stopping — show the first slide plainly
     in place instead, no motion at all. */
  .tag-slide { animation: none !important; transform: translateX(-100%); }
  .tag-slide:first-child { transform: translateX(0); }
}
.tag::before {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  width: 18px; height: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.tag::after {
  content: "";
  position: absolute;
  top: -46px; left: 50%;
  width: 1px; height: 40px;
  background: var(--border);
  transform: translateX(-50%) rotate(4deg);
  transform-origin: bottom;
}
.tag-glyph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.tag-glyph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-name { font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 0.15rem; text-wrap: balance; }
.tag-cat { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1rem; }
.tag-divider { border: none; border-top: 1px dashed var(--border); margin: 0 0 0.9rem; }
.tag-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; }
.tag-sku { color: var(--text-muted); }
.tag-value { font-weight: 700; color: var(--accent); font-size: 1.2rem; }
.tag-conf {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}
.tag-conf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

/* ── Facts strip ── */
.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.6rem 0;
}
@media (max-width: 780px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
.fact-label { font-family: Georgia, serif; font-weight: 700; font-size: 1.02rem; margin-bottom: 0.3rem; text-wrap: balance; }
.fact-body { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

/* ── Section headers ── */
.section { padding: 5.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
.section-sub { color: var(--text-muted); margin-top: 0.9rem; font-size: 1.02rem; }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.7rem;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.feature-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Benefits ── */
.benefits-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 880px) { .benefits-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.benefit-list { display: flex; flex-direction: column; gap: 1.7rem; }
.benefit-item { display: flex; gap: 1.1rem; }
.benefit-num { font-family: Georgia, serif; font-weight: 700; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; width: 1.6rem; }
.benefit-item h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.benefit-item p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── How it works ── */
.how-bg { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: 2.2rem; } }
.step { counter-increment: step; }
.step-num {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.step-num::before { content: "0" counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Personas ── */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
@media (max-width: 880px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .persona-grid { grid-template-columns: 1fr; } }
.persona-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.18s, background 0.18s;
}
.persona-card:hover { border-color: var(--accent); background: var(--surface); }
.persona-icon { color: var(--accent); margin-bottom: 0.9rem; }
.persona-icon svg { width: 24px; height: 24px; }
.persona-card h3 { font-size: 0.96rem; margin-bottom: 0.4rem; }
.persona-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ── Early access / pricing ── */
.cta-section {
  background: var(--text);
  color: var(--bg);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 780px) { .cta-section { grid-template-columns: 1fr; padding: 2.6rem 1.8rem; border-radius: 16px; } }
.cta-section h2 { color: inherit; }
.cta-section .section-sub { color: inherit; opacity: 0.72; }
.cta-roadmap {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  opacity: 0.65;
  border-top: 1px solid currentColor;
  padding-top: 1.1rem;
}
.cta-actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
@media (max-width: 780px) { .cta-actions { align-items: stretch; } }
.cta-section .btn-primary { justify-content: center; }

.access-form { display: flex; flex-direction: column; gap: 0.7rem; width: 100%; }
.access-form .form-row { display: flex; gap: 0.7rem; }
@media (max-width: 480px) { .access-form .form-row { flex-direction: column; } }
.access-form input, .access-form textarea {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.access-form input:focus-visible, .access-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.access-form textarea { resize: vertical; min-height: 4.5rem; }
.hp-field { display: none; }
.form-banner { padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.92rem; font-weight: 600; }
.form-banner.success { background: var(--accent); color: var(--bg); }
.form-banner.error { background: var(--surface); color: var(--error); border: 1px solid var(--error); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2.2rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 32ch; margin: 0.6rem 0 0; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}
