/* Shared homepage layout for every locale with translated editorial copy. */
body[data-home-editorial] { --home-text-on-light: #0A0E1A; }
body[data-home-editorial] main > section:where(:not(#top):not(#stats)) {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
body[data-home-editorial] #faq { padding-bottom: 1.5rem; }
body[data-home-editorial] #faq .faq-more-link { margin-bottom: 0; }
body[data-home-editorial] #faq .faq-answer {
  white-space: pre-line;
  color: var(--text);
}
body[data-home-editorial] #download { padding-top: 1.5rem; }
body[data-home-editorial] #top .hero-title {
  font-size: clamp(2.15rem, 4.5vw, 3.7rem);
  line-height: 1.12;
  max-width: 23ch;
  min-block-size: 0;
  margin-block: 0 1.25rem;
  text-wrap: balance;
}
body[data-home-editorial] #top .subtitle {
  min-block-size: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  margin-block: 0 1rem;
  max-width: 64ch;
}
body[data-home-editorial] #top .hero-note {
  min-block-size: 0;
  margin-block: 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
body[data-home-editorial] .home-editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block: 1.25rem .75rem;
}
body[data-home-editorial] .home-editorial-actions .btn {
  min-height: 48px;
  padding: .8rem 1.25rem;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}
body[data-home-editorial] .home-editorial-actions .btn-primary,
body[data-home-editorial] #download > .container > .btn-primary,
body[data-home-editorial] .ki-phone-cta {
  color: var(--text-on-dark);
  background: var(--violet-600);
}
body[data-home-editorial] .home-editorial-actions .btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
body[data-home-editorial] .home-editorial-hint {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.6;
  margin-block: .75rem 0;
}
body[data-home-editorial] .home-editorial-intro,
body[data-home-editorial] .home-editorial-note {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 70ch;
  margin-block: 1.25rem;
}
body[data-home-editorial] #local-uptrade .section-title {
  color: var(--text);
  max-width: 28ch;
  margin-inline: auto;
  text-wrap: balance;
}
body[data-home-editorial] #local-uptrade .home-editorial-intro,
body[data-home-editorial] #local-uptrade .home-editorial-note {
  margin-inline: auto;
  text-align: center;
}
body[data-home-editorial] #local-uptrade .home-editorial-note {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: .95rem;
}
body[data-home-editorial] .uptrade-step .uptrade-kicker,
body[data-home-editorial] .uptrade-step .uptrade-label,
body[data-home-editorial] .uptrade-step .uptrade-copy {
  color: var(--text-on-dark);
}
body[data-home-editorial] .uptrade-step .uptrade-copy {
  font-size: .85rem;
  line-height: 1.5;
}
body[data-home-editorial] .uptrade-step .uptrade-kicker {
  font-size: .75rem;
  letter-spacing: .04em;
}
body[data-home-editorial] #ki-title {
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  text-wrap: balance;
}
body[data-home-editorial] #ki-title .hl,
body[data-home-editorial] #ki-benefits,
body[data-home-editorial] #how .section-subtitle,
body[data-home-editorial] #pricing .section-subtitle,
body[data-home-editorial] .pricing-allinclude,
body[data-home-editorial] #pricing .note {
  color: var(--text);
}
/* These surfaces stay light even when the surrounding page uses the dark theme. */
body[data-home-editorial] #values .values-subtitle,
body[data-home-editorial] #values .value-card p,
body[data-home-editorial] #how .step-number {
  color: var(--home-text-on-light);
  text-shadow: none;
}
body[data-home-editorial] #founders .founders-badge {
  color: var(--text-on-dark);
  background: var(--violet-600);
}
body[data-home-editorial] .ki-left-panel,
body[data-home-editorial] .ki-phone {
  background: var(--surface);
  border-color: var(--border-strong);
}
body[data-home-editorial] .ki-phone-head,
body[data-home-editorial] .ki-phone-msg,
body[data-home-editorial] #ki-benefits li { color: var(--text); }
body[data-home-editorial] .ki-phone-msg {
  background: var(--surface);
  border-color: var(--border-strong);
}
body[data-home-editorial] #ki-benefits li { line-height: 1.65; }
body[data-home-editorial] .ki-phone .ki-mascot {
  width: min(165px, 40%);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0A0E1A;
}
body[data-home-editorial] #ki-agent .home-editorial-note { font-size: .95rem; }
body[data-home-editorial] .ki-phone-cta { white-space: normal; line-height: 1.4; }
body[data-home-editorial] #pricing .section-media-heading,
body[data-home-editorial] #how .section-media-heading {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-shadow: none;
  max-width: 32ch;
  margin-inline: auto;
  text-wrap: balance;
}
body[data-home-editorial] #pricing .section-subtitle,
body[data-home-editorial] #how .section-subtitle,
body[data-home-editorial] #pricing .pricing-allinclude,
body[data-home-editorial] #pricing .note {
  max-width: 70ch;
  line-height: 1.65;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  border-color: transparent;
}
body[data-home-editorial] #pricing .pricing-allinclude,
body[data-home-editorial] #pricing .note {
  background: var(--surface);
  border-color: var(--border);
}
body[data-home-editorial] #download h2 {
  max-width: 28ch;
  margin-inline: auto;
  text-wrap: balance;
}
body[data-home-editorial] #download > .container > p {
  max-width: 65ch;
  margin-inline: auto;
  line-height: 1.75;
}
body[data-home-editorial] .home-editorial-discover {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem .6rem;
  color: var(--text);
  margin-block: 1rem;
}
body[data-home-editorial] .home-editorial-discover a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}
body[data-home-editorial] a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}
@media (max-width: 640px) {
  body[data-home-editorial] .home-editorial-actions .btn { flex: 1 1 100%; }
  body[data-home-editorial] #top .hero-title { font-size: clamp(2rem, 8vw, 2.75rem); }
  body[data-home-editorial] .home-editorial-intro { font-size: 1rem; }
}
