/* lorolingua.com marketing site — same token system as the app
 * (apps/web/src/ui/tokens.css); fonts shared from apps/web (copied by
 * build.mjs). See README.md in this folder. */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/Baloo2.var.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/Literata.var.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/Literata-italic.var.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  --papel: #F5F7F0; --hoja: #ECF1E3; --selva: #14231B; --selva-soft: #46584C;
  --loro: #1F7A45; --loro-deep: #166138; --loro-wash: #DFEDDF;
  --mango: #F2A03D; --mango-wash: #FBE9CC; --guinda: #C94F3B;
  --line: #D8E0CE; --card: #FFFFFF; --btn-ink: #FFFFFF;
  --shadow: 0 2px 6px rgba(20,35,27,.07), 0 12px 32px rgba(20,35,27,.08);
  --r-s: 6px; --r-m: 12px; --r-l: 24px;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --display: "Baloo 2", var(--ui);
  --reading: "Literata", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papel: #0D1A12; --hoja: #152619; --selva: #E9EFE4; --selva-soft: #9DB0A0;
    --loro: #3FAE6C; --loro-deep: #4FBF7C; --loro-wash: #1A3323;
    --mango: #F2A03D; --mango-wash: #3D2E14; --guinda: #E0705C;
    --line: #24402F; --card: #142418; --btn-ink: #0D1A12;
    --shadow: 0 2px 6px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

/* ── Base ── */
* { box-sizing: border-box; }
html { background: var(--papel); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papel); color: var(--selva);
  font-family: var(--ui); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; }
a { color: var(--loro-deep); }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--loro-deep); font-weight: 700; margin: 0 0 10px;
}
.section { padding: 64px 0 8px; }
.section h2 { font-size: 30px; font-weight: 600; }
.section-intro { max-width: 62ch; color: var(--selva-soft); margin: 8px 0 28px; }
.frame {
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}

/* ── Chiki ── */
.chiki-bob { animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1.6deg); }
}
@media (prefers-reduced-motion: reduce) { .chiki-bob { animation: none; } }

/* ── Landing band: nav + hero ── */
.landing { position: relative; background: linear-gradient(180deg, var(--hoja), var(--papel) 78%); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; padding: 22px 0 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark svg { width: 34px; height: 37px; }
.wordmark b {
  font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1;
  color: var(--selva); letter-spacing: .01em;
}
.wordmark b span { color: var(--loro); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; }
.nav-links a { color: var(--selva-soft); text-decoration: none; }
.nav-links a:hover { color: var(--selva); }
.nav-links .btn { color: var(--selva); }
.nav-links .btn-primary { color: var(--btn-ink); }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 16.5px;
  padding: 11px 22px 13px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--loro); color: var(--btn-ink); }
.btn-primary:hover { background: var(--loro-deep); }
.btn-ghost { border-color: var(--line); color: var(--selva); background: transparent; }
.btn-ghost:hover { border-color: var(--loro); color: var(--loro-deep); }
.btn-small { font-size: 14.5px; padding: 7px 16px 9px; }

/* Language selector — languages always in their own name, no flags */
.lang-sel { position: relative; }
.lang-sel summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; color: var(--selva-soft); font-size: 14.5px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.lang-sel summary::-webkit-details-marker { display: none; }
.lang-sel summary:hover { color: var(--loro-deep); border-color: var(--loro); }
.lang-sel summary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 6;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; min-width: 130px;
}
.lang-menu a {
  text-align: left; padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; color: var(--selva); text-decoration: none;
}
.lang-menu a:hover { background: var(--loro-wash); color: var(--selva); }
.lang-menu a[aria-current="true"] { font-weight: 700; color: var(--loro-deep); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding: 56px 0 56px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px); font-weight: 800; line-height: 1.06;
  letter-spacing: -.01em; margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--loro); }
.hero-sub { font-size: 18.5px; max-width: 46ch; color: var(--selva-soft); margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.cta-note { font-size: 13px; color: var(--selva-soft); margin: -10px 0 18px; }
.locale-pill {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  font-size: 13px; color: var(--selva-soft); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--card);
}
.locale-pill[hidden] { display: none; }
.locale-pill:hover { color: var(--loro-deep); border-color: var(--loro); }
.locale-pill svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.langs { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-chip {
  font-size: 13.5px; padding: 4px 12px 5px; border-radius: 999px;
  background: var(--loro-wash); color: var(--loro-deep); font-weight: 600;
}
.hero-chiki { display: flex; justify-content: center; }
.hero-chiki svg { width: min(320px, 70vw); height: auto; }

/* Chiki's comic speech bubble — phrases cycle through the pairs */
.chiki-stage { position: relative; display: inline-block; }
.bubble {
  position: absolute; top: -38px; right: 55%; z-index: 1;
  width: 215px; height: 64px;
  background: var(--card); border: 2px solid var(--selva);
  border-radius: 16px 16px 4px 16px;
}
.bubble::after {
  content: ""; position: absolute; bottom: -9px; right: 16px;
  width: 13px; height: 13px; background: var(--card);
  border-right: 2px solid var(--selva); border-bottom: 2px solid var(--selva);
  transform: skewX(-18deg) rotate(45deg);
}
.phrase {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 6px 14px; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25;
  color: var(--selva); opacity: 0;
  animation: phrase-cycle 16s linear infinite;
  animation-delay: calc(var(--i) * 4s);
}
@keyframes phrase-cycle {
  0% { opacity: 0; transform: translateY(4px); }
  3% { opacity: 1; transform: none; }
  22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phrase { animation: none; }
  .bubble .phrase:first-child { opacity: 1; }
}

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 34px 0; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 22px 22px 24px;
}
.feature h3 { font-size: 19px; font-weight: 600; margin: 10px 0 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--selva-soft); }
.feature .glyph {
  width: 40px; height: 40px; border-radius: var(--r-s);
  background: var(--loro-wash); display: grid; place-items: center;
}
.feature .glyph svg { width: 22px; height: 22px; stroke: var(--loro-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon-chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--mango); background: var(--mango-wash);
  border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: 2px;
}
.soon-chip--flat { margin-left: 0; }

/* ── Reader product shot ── */
.reader-chrome {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--selva-soft);
}
.reader-chrome .back { font-size: 18px; color: var(--selva-soft); }
.reader-chrome .rtitle { font-family: var(--reading); font-weight: 600; color: var(--selva); font-size: 15px; }
.reader-chrome .rmeta { margin-left: auto; font-variant-numeric: tabular-nums; }
.reader-progress { height: 3px; background: var(--hoja); }
.reader-progress i { display: block; height: 100%; width: 12%; background: var(--loro); }
.reader-body { padding: 36px 24px 44px; display: flex; justify-content: center; position: relative; }
.reader-col { max-width: 62ch; }
.reader-col h3 { font-family: var(--reading); font-size: 27px; font-weight: 600; margin-bottom: 2px; }
.reader-col .byline { font-family: var(--reading); font-style: italic; color: var(--selva-soft); font-size: 15.5px; margin: 0 0 22px; }
.reader-col p { font-family: var(--reading); font-size: 19px; line-height: 1.72; margin: 0 0 1.1em; }
.w { border-radius: 4px; padding: 0 1px; }
.w-tapped { background: var(--mango-wash); box-shadow: 0 2px 0 var(--mango); }
.fab {
  position: absolute; right: 22px; bottom: 22px; width: 52px; height: 52px;
  border-radius: 50%; background: var(--loro); border: 0; box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.fab svg { width: 24px; height: 24px; stroke: var(--btn-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tooltip {
  max-width: 340px; margin: 10px 0 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
  padding: 14px 18px 12px; font-size: 15px; font-family: var(--ui);
}
.hit-head { display: flex; gap: 8px; align-items: baseline; }
.hit-lemma { font-weight: 600; }
.hit-lemma--lg { font-family: var(--reading); font-size: 18px; }
.hit-pos { font-size: 12.5px; color: var(--selva-soft); background: var(--hoja); border-radius: 4px; padding: 1px 7px; }
.tooltip-close { margin-left: auto; color: var(--selva-soft); font-size: 17px; line-height: 1; }
.hit-def { color: var(--selva); margin: 4px 0 0 2px; }
.tip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.page-btn {
  display: inline-block; font-family: var(--ui); font-size: 13.5px; font-weight: 600;
  color: var(--loro-deep); background: var(--loro-wash); border: 0; border-radius: 999px;
  padding: 6px 14px; cursor: pointer; text-decoration: none;
}
.page-btn:hover { background: var(--loro); color: var(--btn-ink); }

/* ── Why-it-works band ── */
.method {
  background: var(--hoja); border-radius: var(--r-l);
  padding: 26px 28px 24px; margin: 40px 0;
}
.method h2 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0; }
.method-sub { font-size: 14px; color: var(--selva-soft); margin: 4px 0 18px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mchip {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--loro-deep); margin-bottom: 5px;
}
.method-grid p { margin: 0; font-size: 13.5px; color: var(--selva-soft); }

/* ── Pricing ── */
.pricing-head { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 14px; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px;
}
.tier h4 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0; }
.tier p { margin: 0; font-size: 13.5px; color: var(--selva-soft); flex: 1; }
.tier .price { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--loro-deep); margin-top: 10px; }
.tier-premium { border-color: var(--loro); box-shadow: 0 0 0 1px var(--loro) inset; }
.tier-cta { margin-top: 10px; }
.pricing-note { font-size: 13px; color: var(--selva-soft); margin: 12px 2px 0; }

/* ── Downloads ── */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 22px 22px 18px; cursor: pointer; text-align: left; font-family: var(--ui);
  color: var(--selva); font-size: 16px; transition: border-color .15s, transform .15s;
}
.dl-card:hover { border-color: var(--loro); transform: translateY(-2px); }
.dl-card .glyph {
  width: 40px; height: 40px; border-radius: var(--r-s); margin-bottom: 8px;
  background: var(--loro-wash); display: grid; place-items: center;
}
.dl-card .glyph svg { width: 22px; height: 22px; stroke: var(--loro-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-card h3 { font-size: 18px; font-weight: 600; }
.dl-card .dl-file { font-size: 13.5px; color: var(--selva-soft); overflow-wrap: anywhere; }
.dl-card .dl-get {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--loro-deep);
}
.dl-card .dl-get svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-note { font-size: 13px; color: var(--selva-soft); margin: 14px 2px 0; }
.store-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--selva); color: var(--papel); border: 0; border-radius: 12px;
  padding: 9px 18px 10px; cursor: pointer; font-family: var(--ui); text-align: left;
}
.store-btn:hover { opacity: .88; }
.store-btn svg { width: 24px; height: 24px; fill: var(--papel); }
.store-btn .s1 { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.store-btn .s2 { display: block; font-family: var(--display); font-weight: 600; font-size: 16.5px; line-height: 1.15; }
.mobile-head {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--loro-deep); font-weight: 700; margin: 36px 0 2px;
}

/* ── Dialogs ── */
dialog {
  border: 0; border-radius: var(--r-l); background: var(--card); color: var(--selva);
  box-shadow: var(--shadow); padding: 30px 30px 26px; max-width: 400px;
  width: calc(100vw - 48px); text-align: center;
}
dialog::backdrop { background: rgba(13, 26, 18, .5); }
dialog .chiki-row { display: flex; justify-content: center; margin-bottom: 4px; }
dialog .chiki-row svg { width: 84px; height: auto; }
dialog h3 { font-size: 21px; font-weight: 600; }
dialog p { color: var(--selva-soft); font-size: 14.5px; margin: 8px 0 20px; }
dialog .dlg-actions { display: flex; flex-direction: column; gap: 10px; }
dialog .dlg-note { font-size: 12.5px; color: var(--selva-soft); margin: 14px 0 0; }
.dlg-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 19px; color: var(--selva-soft); cursor: pointer; line-height: 1;
}

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); background: var(--hoja); margin-top: 72px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; padding: 36px 0 30px; }
.footer .wordmark svg { width: 28px; height: 30px; }
.footer .wordmark b { font-size: 20px; }
.footer-tag { font-size: 13.5px; color: var(--selva-soft); margin: 8px 0 0; max-width: 30ch; }
.footer-links { display: flex; gap: 48px; margin-left: auto; flex-wrap: wrap; }
.footer-links h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--selva-soft); font-weight: 700; margin: 0 0 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { color: var(--selva); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--loro-deep); }
.footer-lang { display: flex; gap: 4px 18px; flex-wrap: wrap; padding: 0 0 8px; }
.footer-lang a { font-size: 13.5px; color: var(--selva-soft); text-decoration: none; }
.footer-lang a:hover { color: var(--loro-deep); }
.footer-lang a[aria-current="true"] { color: var(--loro-deep); font-weight: 700; }
.footer-copy { font-size: 12.5px; color: var(--selva-soft); padding: 0 0 26px; margin: 0; }

/* ── Subpages (blog, legal, 404): compact header band ── */
.subhead { background: linear-gradient(180deg, var(--hoja), var(--papel)); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Blog index ── */
.blog-hero { padding: 52px 0 6px; }
.blog-hero h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; max-width: 16ch; }
.blog-intro { font-size: 18.5px; color: var(--selva-soft); max-width: 54ch; margin: 14px 0 0; }
.blog-langs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--selva-soft); margin: 18px 0 0; }
.blog-langs a {
  text-decoration: none; color: var(--loro-deep); font-weight: 700; font-size: 13.5px;
  background: var(--loro-wash); border-radius: 999px; padding: 4px 12px;
}
.blog-langs a span { font-weight: 500; opacity: .75; margin-left: 2px; }
.blog-langs a:hover { background: var(--loro); color: var(--btn-ink); }
.blog-list { padding-top: 34px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; background: var(--card); color: var(--selva);
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--loro); box-shadow: var(--shadow); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--hoja); overflow: hidden; }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-cover--none { display: flex; align-items: center; justify-content: center; }
.post-cover--none svg { width: 28%; height: auto; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; flex: 1; }
.post-meta { font-size: 13.5px; color: var(--selva-soft); font-variant-numeric: tabular-nums; }
.post-title { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.18; text-wrap: balance; }
.post-desc { font-size: 15px; color: var(--selva-soft); flex: 1; }
.post-more { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--loro-deep); margin-top: 6px; }
.post-card--lead { grid-column: 1 / -1; flex-direction: row; }
.post-card--lead .post-cover { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
.post-card--lead .post-body { flex: 1; padding: 34px 36px; justify-content: center; gap: 12px; }
.post-card--lead .post-title { font-size: clamp(26px, 3vw, 34px); }
.post-card--lead .post-desc { flex: 0; font-size: 17px; }
.blog-empty { text-align: center; padding: 30px 0 10px; color: var(--selva-soft); font-size: 17px; }
.blog-empty svg { width: 110px; height: auto; }

/* ── Article ── */
.post-head { padding-top: 36px; }
.post-back { font-size: 14.5px; color: var(--selva-soft); text-decoration: none; }
.post-back:hover { color: var(--loro-deep); }
.post-head .post-meta { margin: 24px 0 10px; }
.post-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -.01em; }
.post-lede { font-family: var(--reading); font-size: 21px; line-height: 1.5; color: var(--selva-soft); margin: 16px 0 0; }
.post-translations { font-size: 14px; color: var(--selva-soft); margin: 14px 0 0; }
.post-draft {
  display: inline-block; margin: 16px 0 0; padding: 3px 12px; border-radius: 999px;
  background: var(--mango-wash); color: var(--guinda); font-size: 13px; font-weight: 700;
}
.post-hero { max-width: 980px; margin: 34px auto 6px; padding: 0 24px; }
.post-hero img { display: block; width: 100%; height: auto; border-radius: var(--r-l); border: 1px solid var(--line); }
.post-content { font-family: var(--reading); font-size: 19px; line-height: 1.72; padding-top: 18px; }
.post-content p, .post-content ul, .post-content ol { margin: 0 0 1.1em; }
.post-content h2 { font-family: var(--display); font-size: 29px; font-weight: 700; line-height: 1.18; margin: 1.6em 0 .45em; }
.post-content h3 { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.2; margin: 1.4em 0 .4em; }
.post-content h4 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 1.2em 0 .3em; }
.post-content li { margin: .35em 0; }
.post-content li::marker { color: var(--loro); font-weight: 700; }
.post-content a { text-underline-offset: 3px; }
.post-content strong { font-weight: 700; }
.post-content blockquote {
  margin: 1.5em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--mango);
  font-style: italic; color: var(--selva);
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content figure { margin: 1.8em 0; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--r-m); }
.post-content figure img { display: block; margin: 0 auto; }
.post-content figcaption { font-family: var(--ui); font-size: 14px; color: var(--selva-soft); text-align: center; margin-top: 10px; }
.post-content code { font-size: .86em; background: var(--hoja); border-radius: 4px; padding: 1px 5px; }
.post-content pre {
  background: var(--hoja); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 16px 18px; overflow-x: auto; font-size: 15px; line-height: 1.55;
}
.post-content pre code { background: none; padding: 0; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-cta {
  display: flex; gap: 24px; align-items: center; margin: 44px 0 6px; padding: 26px 30px;
  background: var(--loro-wash); border: 1px solid var(--line); border-radius: var(--r-l); font-family: var(--ui);
}
.post-cta .chiki-bob { flex: none; }
.post-cta svg { display: block; width: 86px; height: auto; }
.post-cta .post-cta-h { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.2; color: var(--selva); margin: 0 0 4px; }
.post-cta p { font-size: 15.5px; line-height: 1.5; color: var(--selva-soft); margin: 0 0 16px; }
.post-more-list { padding-top: 64px; }
.post-more-list h2 { font-size: 25px; font-weight: 700; margin: 0 0 18px; }

/* ── Legal pages ── */
.legal { padding-top: 40px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.08; }
.legal-alt { font-size: .55em; font-weight: 600; color: var(--selva-soft); margin-left: .25em; }
.legal-updated { font-size: 14px; color: var(--selva-soft); margin: 10px 0 28px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 38px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.68; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 1.25em; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--loro); }
.legal-summary { background: var(--loro-wash); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 24px 8px; }
.legal-summary p:first-child { font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.legal-table { overflow-x: auto; margin: 0 0 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--display); font-weight: 600; font-size: 15px; }
.legal code { font-size: .9em; background: var(--hoja); border-radius: 4px; padding: 1px 5px; }
.legal-links { margin-top: 40px; font-size: 14.5px; color: var(--selva-soft); }
mark.missing { background: var(--mango-wash); color: var(--guinda); font-weight: 600; border-radius: 4px; padding: 0 5px; }

/* ── 404 ── */
.notfound { text-align: center; padding: 64px 24px 16px; }
.notfound svg { width: 120px; height: auto; }
.notfound h1 { font-size: 34px; margin: 16px 0 8px; }
.notfound p { color: var(--selva-soft); margin: 0 0 26px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .features, .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-chiki { order: -1; }
  .hero-chiki svg { width: min(220px, 55vw); }
  .chiki-stage { margin-top: 34px; }
  .bubble { right: 45%; }
  .features { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav-links { gap: 12px; }
  .nav-links a.nav-text { display: none; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 560px) {
  .pricing { grid-template-columns: 1fr; }
  .wrap, .narrow, .post-hero { padding-left: 16px; padding-right: 16px; }
  .lang-sel summary span { display: none; }
  .nav-links .btn-ghost { display: none; }
}
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card--lead { flex-direction: column; }
  .post-card--lead .post-cover { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .post-card--lead .post-body { padding: 22px 24px 26px; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-content { font-size: 18px; }
  .post-lede { font-size: 19px; }
  .post-cta { flex-direction: column; text-align: center; padding: 24px 22px; }
  .legal th, .legal td { padding: 8px 6px; }
}
