/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --ivory:    #F0EBE1;
  --carbon:   #111110;
  --carbon2:  #1a1a18;
  --green:    #2E7D52;
  --green-lt: #3fa86e;
  /*--violet:   #6B5B8C; old text */
  --ff-serif: 'Nunito Sans', sans-serif;
  --ff-mono:  'DM Mono', 'Courier New', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* proximity snap is mobile-safe unlike mandatory */
  scroll-snap-type: y proximity;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-serif);
  background-color: var(--carbon);
  color: var(--ivory);
  overflow-x: hidden;
}

/* ─── Language nav ───────────────────────────────────────── */
.lang-nav {
  position: absolute;
  top: 1.25rem;
  right: 5%;
  z-index: 900;
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--ivory);
  border-color: var(--green);
  outline: none;
}

.lang-btn.active {
  color: var(--green-lt);
  border-color: var(--green);
}

/* ─── Sections ───────────────────────────────────────────── */
.vido-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 10%;
  position: relative;
  overflow: hidden;
}

.vido-section.alt { background-color: var(--carbon2); }

/* Subtle geometric background accent */
.vido-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(46,125,82,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(107,91,140,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.vido-inner {
  max-width: 860px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ─── Fade-in animation ──────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Typography ─────────────────────────────────────────── */
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 2rem;
}

h1 strong {
  font-weight: 400;
  color: var(--green-lt);
}

.lead-body {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--ivory);
  margin-bottom: 2rem;
  max-width: 720px;
}

blockquote {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  color: var(--green-lt);
  border-left: 2px solid var(--green-lt);
  padding-left: 1.5rem;
  margin: 2rem 0 0;
  line-height: 1.7;
}

/* Decorative rule between sections */
.section-line {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,125,82,0.3), transparent);
}

/* ─── CTA section ────────────────────────────────────────── */
.cta-section { align-items: flex-start; }
.cta-section .vido-inner { max-width: 100%; }

.cta-card {
  background: rgba(240,235,225,0.04);
  border-top: 1px solid var(--green);
  padding: 2rem;
  border-radius: 2px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s;
}

.cta-card:hover { background: rgba(240,235,225,0.07); }

.cta-card-title {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ivory);
}

.cta-card p {
  font-size: 0.95rem;
  color: var(--ivory);
  line-height: 1.7;
  flex-grow: 1;
}

.cta-btn {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--green-lt);
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
  align-self: flex-start;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background-color: var(--green-lt);
  color: var(--ivory);
  outline: none;
}

/* ─── Modal ──────────────────────────────────────────────── */
.vido-modal {
  background: var(--carbon2);
  border: 1px solid rgba(46,125,82,0.3);
  border-radius: 4px;
  color: var(--ivory);
}

.vido-modal .modal-title {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 300;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.vido-input {
  background: rgb(255 255 255);
  border: 1px solid rgba(46,125,82,0.4);
  color: var(--ivory);
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
}

.vido-input:focus {
  background: rgb(236 233 233);
  border-color: var(--green-lt);
  box-shadow: none;
  color: var(--ivory);
  outline: none;
}

.modal-error {
  color: #e07070;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  min-height: 1.1rem;
}

.modal-success {
  color: var(--green-lt);
  font-size: 1rem;
  padding: 0.5rem 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .lang-nav {
    top: 0.75rem;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
  }
}
  .lang-btn { font-size: 0.6rem; padding: 0.2rem 0.35rem; }

/* ─── Comparison table (Section 08) ─────────────────────── */
.comparison-title {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.table-wrap { overflow-x: auto; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.65rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(240,235,225,0.08);
  color: var(--ivory);
  white-space: nowrap;

}

.comparison-table th {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  border-bottom: 1px solid rgba(46,125,82,0.3);
}

.comparison-table .col-vido {
  color: var(--green-lt);
  border-left: 1px solid rgba(46,125,82,0.3);
  /*border-right: 1px solid rgba(46,125,82,0.3);*/
}

.comparison-table .check { color: var(--green-lt); font-size: 1rem; }

.comparison-table .row-label {
  text-align: left;
  color: var(--ivory);
  font-size: 0.82rem;
  white-space: normal;
  min-width: 180px;
}

.comparison-table tbody tr:hover td { background: rgba(240,235,225,0.03); }