/* doo.chat: the site's shared stylesheet. The home (site/index.html) and every page link it before
   their own <style>, so a page's rules still come after these and win on a tie.

   What lives here: the tokens, the base, the header, the buttons, the section heads, the deep band,
   the app's own pieces drawn in em («the app, drawn»), the questions, the close and the footer.
   What does not: a page's own story and figures stay in that page.

   Pages link it as /site.css?v=<hash>; after a change run `python -m app.site_assets --stamp` from
   orchestrator/ (tests/test_site_offline.py fails while any page links an old hash). */

/* ───────────────────────────── the chrome ───────────────────────────── */
@font-face {
  font-family: 'Manrope';
  src: url('/app/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --verde: #0F7E6D; --verde-hondo: #0A6B5D; --coral: #FC8555; --coral-tinta: #B03D10;
  --coral-tint: #FDEFE6; --coral-line: #F6D7CA;
  --crema: #FDF8EF; --surface: #ffffff; --ink: #14342E;
  --muted: #5A6E68; --border: #e2e6df; --tint: #EAF3F0;
  --rojo: #B3363D; --rojo-tint: #F9E9EB;
  /* the deep band's ground is --ink; on it secondary text is tinta-sub and verde turns verde claro */
  --tinta-sub: #B0BAB6; --verde-claro: #3FBFA9;
  /* a hairline that still reads on crema and white */
  --rule: color-mix(in srgb, var(--ink) 15%, transparent);
  --lift: 0 16px 34px -24px rgba(15, 126, 109, .5);
  --lift-ink: 0 30px 60px -30px rgba(0, 0, 0, .65);
  --out: cubic-bezier(.16, 1, .3, 1);
  --head: 64px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--verde); color: #fff; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 6px; }
.ink :focus-visible { outline-color: var(--verde-claro); }
.cta-final :focus-visible { outline-color: #fff; }
section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--crema); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--verde); text-decoration: none; text-underline-offset: 3px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
main { overflow-x: clip; }

/* header */
header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--crema) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: var(--head); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }
.brand svg { display: block; }
.nav-links { display: none; gap: 22px; margin-left: 8px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--muted); white-space: nowrap; }
.nav-links a:hover { color: var(--verde); }
.nav .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; font-size: 15.5px; line-height: 1.3;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--verde); color: #fff; box-shadow: 0 10px 24px -14px rgba(15,126,109,.65); }
.btn.primary:hover { background: var(--verde-hondo); }
.btn.ghost { border-color: var(--verde); color: var(--verde); background: transparent; }
.btn.ghost:hover { background: var(--tint); color: var(--verde-hondo); }
/* WhatsApp: a quiet second door. Verde outline like «Entrar»; only the glyph wears WhatsApp's green
   (white on that green is 2.8:1). */
.btn.wa { border-color: var(--verde); color: var(--verde-hondo); background: transparent; }
.btn.wa:hover { background: var(--tint); }
.btn.wa svg { flex: none; color: #1FAF63; }
.btn svg { flex: none; }
/* «Crear cuenta» shows at every width: on a phone it is the visitor's next step. Below 760 px
   «Entrar» turns into a text link so both fit beside the brand. The section links need about
   1,000 px on one line; below that they stay hidden and never wrap. */
@media (max-width: 759.98px) {
  .nav { gap: 8px; }
  .nav .btn { padding: 10px 16px; font-size: 15px; }
  .nav .btn.ghost { border-color: transparent; padding-inline: 8px; }
}
@media (max-width: 359.98px) {
  .nav { gap: 6px; }
  .nav .btn { padding: 9px 13px; font-size: 14px; }
  .nav .btn.ghost { padding-inline: 4px; }
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
/* an edition page names its edition after the wordmark, behind a hairline (docs/editions.md §1.4) */
.edition { margin-left: -4px; padding-left: 14px; border-left: 1.5px solid var(--border); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.5; color: var(--verde-hondo); }
@media (max-width: 759.98px) { .edition { margin-left: 2px; padding-left: 10px; font-size: 15.5px; } }
/* under 480 px the edition's name takes the place of «Entrar»: the visitor there is new, and the footer
   keeps the door («Entrar a mi negocio») for who already has an account */
@media (max-width: 479.98px) { .nav:has(.edition) .btn.ghost { display: none; } }
/* under 360 px the longest edition («distribuidora») and «Crear cuenta» leave no room for the word: the mark
   stands for Doo there, and the link keeps its name («Doo, inicio») */
@media (max-width: 359.98px) { .nav:has(.edition) .brand { gap: 0; font-size: 0; } }

section { padding: 96px 0; }
@media (max-width: 759.98px) { section { padding: 68px 0; } }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.sec-head { max-width: 44em; }
.sec-title { font-size: clamp(34px, 5.2vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.sec-title em { font-style: normal; color: var(--verde); }
.sec-sub { margin-top: 18px; color: var(--muted); max-width: 34em; font-size: 17.5px; line-height: 1.55; text-wrap: pretty; }
.sec-sub strong { color: var(--ink); }
.sec-sub a { font-weight: 700; }
.sec-sub a:hover { color: var(--verde-hondo); text-decoration: underline; }
/* the deep band of a page that is not the home: one per page (DESIGN.md, the Band Rhythm Rule).
   The home's deep band is its voice beat (.b4). */
.ink { background: var(--ink); color: var(--crema); }
.ink .sec-title em { color: var(--verde-claro); }
.ink .sec-sub { color: var(--tinta-sub); }
.ink a { color: var(--verde-claro); }

/* hidden text for screen readers */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the «Conoce …» links end in a drawn arrow, never a typed one */
.arw { display: inline-block; vertical-align: -2px; margin-left: 2px; transition: transform .15s var(--out); }
a:hover > .arw { transform: translateX(2px); }

/* ───────────────────────────── the app, drawn ─────────────────────────────
   The Doo app's own pieces (pwa/src/app.css: chat, act card, status, chips, composer, voice
   screen), set in em so one scene is sharp at any size: inside a phone 1em is the screen's width
   over 26, the 15 px of the app on a 390 px phone. The demonstrations reuse them outside the
   phone too. Contents are those of real runs on the Distribuidora Los Altos example company. */
.app svg, .moment svg, .emp-show svg { display: block; }
.a-user { align-self: flex-end; max-width: 85%; padding: .6em 1em; border-radius: 1.2em 1.2em .33em 1.2em; background: var(--verde); color: #fff; font-weight: 500; line-height: 1.42; }
.a-file { align-self: flex-end; display: inline-flex; align-items: center; gap: .4em; padding: .22em .6em; border: 1px solid var(--border); border-radius: .5em; background: #fff; color: var(--muted); font-size: .8em; }
.a-file svg { width: 1.1em; height: 1.1em; }
.a-think { align-self: flex-start; display: inline-flex; align-items: center; gap: .55em; padding: .4em .95em; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: .93em; font-style: italic; }
.a-think::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--verde-claro); animation: breathe 1.1s ease-in-out infinite; }
.a-text p + p { margin-top: .6em; }
.a-card { display: grid; gap: .85em; padding: 1.1em 1.1em 1.15em; border: 1px solid var(--border); border-radius: .8em; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,52,46,.06); }
.a-card .a-h { font-size: 1.1em; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.a-fields { display: grid; grid-template-columns: minmax(6.2em, 36%) 1fr; gap: .45em .9em; font-size: .97em; line-height: 1.35; }
.a-fields dt { color: var(--muted); font-size: .9em; }
.a-fields dd { min-width: 0; }
.a-line b { display: block; font-size: .95em; font-weight: 700; }
.a-line dl { margin-top: .25em; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: .6em; }
.a-line dt { font-size: .78em; color: var(--muted); }
.a-line dd { font-size: .95em; font-variant-numeric: tabular-nums; }
.a-line + .a-line { padding-top: .75em; border-top: 1px solid var(--border); }
.a-sum { display: grid; justify-content: end; gap: .15em; padding-top: .7em; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.a-sum p { display: flex; justify-content: space-between; gap: 2em; }
.a-sum .g { font-size: 1.1em; font-weight: 800; }
.a-sum .n { font-size: .85em; color: var(--muted); }
/* the app's notice: a full 1 px línea in its own hue, never a thick edge */
.a-warn { display: flex; gap: .55em; padding: .75em .85em; border: 1px solid var(--coral-line); border-radius: .67em; background: var(--coral-tint); color: var(--coral-tinta); font-size: .88em; font-weight: 600; line-height: 1.4; }
.a-warn svg { flex: none; width: 1.15em; height: 1.15em; margin-top: .08em; }
/* once the act is decided the notice folds away, as the app's .fold does: its height and the card's
   gap go in 200 ms, so the card closes up instead of jumping (a grid row cannot go below zero, so
   the act below takes the gap back) */
.a-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .2s var(--out), opacity .16s ease; }
.a-fold > div { min-height: 0; overflow: hidden; }
.a-fold + .a-act { transition: margin-top .2s var(--out); }
.demo .app .a-card:has(.a-ok.on) > .a-fold { display: grid; grid-template-rows: 0fr; opacity: 0; }
.demo .app .a-card:has(.a-ok.on) > .a-fold + .a-act { margin-top: -.85em; }
/* the act's foot, one cell (the app's .act): the two buttons; on the tap they fade out (160 ms) as
   the act names itself beside the wheel, the button's words in the present («Registrando venta y
   emitiendo factura…»); then the status rises in their place */
.a-act { display: grid; align-items: start; }
.a-act > * { grid-area: 1 / 1; }
.a-btns { display: flex; gap: .55em; }
.a-yes, .a-no { display: flex; align-items: center; justify-content: center; min-height: 3.1em; padding: .4em .7em; border-radius: .67em; text-align: center; line-height: 1.25; }
.a-yes { position: relative; flex: 1.4; background: var(--verde); color: #fff; font-weight: 700; transition: filter .15s, transform .15s; }
.a-no { flex: 1; border: 1.5px solid var(--border); color: var(--muted); font-weight: 600; }
.a-yes.press { filter: brightness(.86); transform: scale(.975); }
.a-yes.press::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); animation: tap .7s var(--out) both; }
.a-spin { display: flex; align-items: center; justify-content: center; min-height: 3.2em; padding: 0 .55em; color: var(--muted); font-size: .97em; font-weight: 600; line-height: 1.3; text-align: center; text-wrap: balance; }
/* the wheel rides the first line of the words, centred with them */
.a-spin > span::before { content: ""; display: inline-block; box-sizing: border-box; width: 1.05em; height: 1.05em; margin-right: .6em; vertical-align: -.17em; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--verde-hondo); animation: spin .8s linear infinite; }
.demo .app .a-act:has(> .a-spin.on, > .a-ok.on) > .a-btns { display: flex; opacity: 0; visibility: hidden; transition: opacity .16s ease, visibility 0s linear .16s; }
.demo .app .a-spin[data-t].on { animation: fade .16s ease both; }
.demo .moment .a-act > .a-btns:not(.on) { transition: opacity .16s ease, visibility 0s linear .16s; }
.demo .moment .a-act > .a-spin:not(.on) { transform: none; }
.demo .moment .a-act > .a-spin.on { transition: opacity .16s ease; }
/* the outcome (the app's .apr-status): the check rides the first line, centred with the words; one
   line stands as tall as the buttons it replaces */
.a-ok { display: block; padding: .9em .9em; border-radius: .67em; background: var(--tint); color: var(--verde-hondo); font-size: .97em; font-weight: 700; text-align: center; text-wrap: balance; line-height: 1.4; }
.a-ok svg { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .45em; vertical-align: -.2em; }
.a-doc { padding: 1em 1.1em 1.1em; border: 1px solid var(--border); border-radius: .8em; background: #fff; }
.a-doc .a-h { font-size: 1.05em; font-weight: 800; }
.a-doc small { display: block; color: var(--muted); font-size: .85em; }
/* the document card (DocumentCard.tsx): the PDF's first page in its frame, then the toolbar */
.a-frame { margin-top: .8em; height: 21em; overflow: hidden; padding: .55em; border: 1px solid var(--border); border-radius: .67em; background: #F1F3F0; }
.a-frame .fel { border-radius: .3em; box-shadow: 0 0 0 1px var(--border); }
.a-tool { display: flex; flex-wrap: wrap; align-items: center; gap: .55em .95em; margin-top: .8em; font-size: .87em; }
.a-tool .fn { flex: 1 0 100%; font-weight: 700; color: var(--muted); }
.a-share { position: relative; display: inline-flex; align-items: center; gap: .45em; padding: .5em 1em .5em .8em; border-radius: 999px; background: var(--verde); color: #fff; font-weight: 700; white-space: nowrap; transition: filter .15s, transform .15s; }
.a-share svg { width: 1.1em; height: 1.1em; }
.a-link { font-weight: 600; color: var(--verde-hondo); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--verde) 40%, transparent); text-underline-offset: 2px; white-space: nowrap; }
/* a file the card cannot draw (FileCard.tsx): the Excel of a book */
.a-file-tile { display: flex; align-items: center; gap: .8em; margin-top: .8em; padding: .8em .95em; border: 1px solid var(--border); border-radius: .67em; background: #F1F3F0; }
.a-file-tile .fg { flex: none; display: grid; place-items: center; width: 2.8em; height: 2.8em; border: 1px solid var(--border); border-radius: .6em; background: #fff; color: var(--verde-hondo); }
.a-file-tile .fm { min-width: 0; }
.nw { white-space: nowrap; }
.a-file-tile svg { width: 1.45em; height: 1.45em; }
.a-file-tile b { display: block; font-size: .95em; line-height: 1.3; overflow-wrap: anywhere; }
.a-file-tile small { display: block; margin-top: .15em; color: var(--muted); font-size: .85em; font-variant-numeric: tabular-nums; }
/* a tap on any drawn control: it gives, and a ring opens from it */
.press { filter: brightness(.88); transform: scale(.97); }
.a-share.press::after, .a-chips .press::after, .sh-apps .press i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); animation: tap .7s var(--out) both; }
.a-chips .press { position: relative; }
.a-chips .press::after { border-color: var(--verde); }

/* the invoice: Doo's FEL letter representation (l10n_gt_fel.report_fel_doo, «Factura FEL (carta)»),
   its own colours and proportions, with the type a little larger so a smaller page still reads.
   Drawn once (#fel-page); the script copies it into the document card and the WhatsApp preview. */
.fel-box { container-type: inline-size; margin: 0; }
.fel {
  padding: 2.2em 2.3em 1.9em; background: #fff; color: #14342E; text-align: left;
  font-size: 9px; font-size: calc(100cqw / 42); line-height: 1.35; font-weight: 500; letter-spacing: 0;
}
.f-head { display: grid; grid-template-columns: 58fr 42fr; gap: 1.3em; margin-bottom: 1.2em; }
.f-em { display: flex; align-items: center; gap: .9em; min-width: 0; }
.fel svg { display: block; }
.f-logo { flex: none; width: 4.2em; height: 4.2em; }
.f-name { margin: .1em 0; font-size: 1.67em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.fel .f-meta { color: #5A6E68; font-size: .96em; line-height: 1.4; }
.fel .f-meta b { color: #14342E; font-weight: 600; }
.f-id { text-align: right; }
.f-kind { font-size: 1.83em; font-weight: 800; color: #0A6B5D; letter-spacing: -0.03em; line-height: 1.1; }
.fel .f-dte { margin: .3em 0 .7em; font-size: .79em; font-weight: 600; color: #617570; text-transform: uppercase; letter-spacing: .06em; }
.f-sn { font-size: 1.08em; font-weight: 600; }
.fel .f-auth { margin-top: .25em; font-size: .875em; color: #5A6E68; letter-spacing: .02em; }
.fel .f-date { margin-top: .5em; font-size: .96em; }
.fel .f-lbl { margin-bottom: .25em; font-size: .79em; font-weight: 600; color: #0A6B5D; text-transform: uppercase; letter-spacing: .06em; }
.f-card, .f-cert { margin-bottom: 1.2em; padding: .75em 1.1em; border: 1px solid #e2e6df; border-radius: .83em; }
.f-who { font-size: 1.08em; font-weight: 600; }
.f-lines { width: 100%; margin-bottom: 1em; border-collapse: collapse; }
.f-lines th { padding: .35em .65em .5em; border-bottom: 2px solid #0F7E6D; text-align: left; font-size: .79em; font-weight: 600; color: #617570; text-transform: uppercase; letter-spacing: .06em; }
.f-lines td { padding: .6em .65em; border-bottom: 1px solid #e2e6df; vertical-align: top; }
.f-lines .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-sum { display: grid; grid-template-columns: 54fr 46fr; align-items: start; margin-bottom: 1.2em; }
.fel .f-words { padding: .5em 2em 0 0; font-size: .92em; color: #5A6E68; line-height: 1.45; }
.f-words b { color: #14342E; font-weight: 600; }
.f-tot { padding: .65em 1.15em .6em; border-radius: .83em; background: #FDF8EF; }
.f-tot p { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: .25em 0; color: #5A6E68; font-size: .92em; font-variant-numeric: tabular-nums; }
.f-tot .g { color: #14342E; font-size: 1em; }
.f-tot .g span { font-size: 1.08em; font-weight: 800; }
.f-tot .g b { font-size: 1.67em; font-weight: 800; color: #0A6B5D; letter-spacing: -0.02em; }
.f-cert { display: flex; justify-content: space-between; gap: .8em; margin-bottom: 1em; }
.fel .f-cert .f-lbl { color: #617570; }
.f-qr { flex: none; width: 5.3em; height: 5.3em; }
.fel .f-phr { margin-bottom: .7em; font-size: .875em; color: #5A6E68; }
.f-foot { padding-top: .7em; border-top: 1px solid #e2e6df; font-size: .83em; color: #617570; overflow-wrap: anywhere; }
.fel .f-brand { margin-top: .85em; padding-top: .7em; border-top: 2px solid #0F7E6D; font-size: .875em; color: #5A6E68; }
.f-brand .wm { margin-right: .4em; font-size: 1.43em; font-weight: 800; letter-spacing: -0.04em; color: #14342E; }
.f-brand b { color: #14342E; font-weight: 600; }
.f-brand .dl { color: #126197; font-weight: 600; }

/* the phone's own share sheet, over the app */
.a-dim { position: absolute; inset: 0; z-index: 3; background: rgba(20,52,46,.34); }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: .65em 1.2em 1.7em; border-radius: 1.4em 1.4em 0 0; background: #fff; box-shadow: 0 -.6em 2em rgba(20,52,46,.18); }
.sh-grab { width: 2.6em; height: .3em; margin: 0 auto 1em; border-radius: 1em; background: var(--border); }
.sh-file { display: flex; align-items: center; gap: .85em; padding-bottom: 1em; border-bottom: 1px solid var(--border); }
.sh-thumb { flex: none; width: 2.7em; height: 3.4em; overflow: hidden; border-radius: .25em; box-shadow: 0 0 0 1px var(--border); }
.a-card small.a-sub { display: block; margin-top: .1em; color: var(--muted); font-size: .85em; }
.sh-file b { display: block; font-size: .97em; }
.sh-file small { display: block; color: var(--muted); font-size: .85em; }
.sh-apps { display: flex; justify-content: space-between; padding: 1.15em .1em .3em; }
.sh-apps span { display: grid; justify-items: center; gap: .45em; width: 4.6em; font-size: .8em; font-weight: 600; text-align: center; }
.sh-apps i { position: relative; display: grid; place-items: center; width: 3.9em; height: 3.9em; border-radius: 1.1em; background: #EEF1EE; color: var(--ink); transition: filter .15s, transform .15s; }
.sh-apps i svg { width: 1.7em; height: 1.7em; }
.sh-apps .wa i { background: #1FAF63; color: #fff; }
.sh-apps .press i { filter: brightness(.88); transform: scale(.94); }
.sh-apps .press { filter: none; transform: none; }

/* a WhatsApp chat, drawn in em: the customer's, where the invoice lands */
.wchat { display: flex; flex-direction: column; background: var(--crema); color: var(--ink); line-height: 1.4; }
.wc-top { flex: none; display: flex; align-items: center; gap: .75em; padding: .85em 1.1em; background: var(--ink); color: #fff; }
.wc-top > span:first-child { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #fff; color: var(--ink); font-weight: 800; }
.wc-top b { display: block; font-size: 1.02em; }
.wc-top small { display: block; font-size: .8em; color: var(--tinta-sub); }
.wc-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .6em; padding: .9em .85em 1.05em; }
.wc-day { align-self: center; padding: .15em .75em; border-radius: .5em; background: #fff; color: var(--muted); font-size: .8em; font-weight: 600; }
.wc-msg { align-self: flex-start; max-width: 84%; padding: .55em .8em .4em; border-radius: .75em; background: #fff; font-size: .95em; }
.wc-msg.out { align-self: flex-end; background: #E3E8E1; }
.wc-msg time { display: flex; justify-content: flex-end; align-items: center; gap: .3em; margin-top: .1em; font-size: .76em; color: #4E625C; }
.wc-ticks { width: 1.35em; height: .85em; color: #7F8F8A; transition: color .35s; }
.read .wc-ticks, .wc-ticks.read-always { color: var(--verde); }
.wc-doc { width: 84%; padding: .3em .3em .4em; }
.wc-prev { height: 7.2em; overflow: hidden; border-radius: .5em; box-shadow: 0 0 0 1px rgba(20,52,46,.08); }
.wc-file { display: flex; align-items: center; gap: .6em; padding: .55em .45em .35em; }
.wc-file > i { flex: none; padding: .2em .35em; border-radius: .3em; background: var(--ink); color: #fff; font-size: .68em; font-weight: 800; font-style: normal; letter-spacing: .04em; }
.wc-file b { display: block; font-size: .92em; line-height: 1.25; }
.wc-file small { display: block; font-size: .78em; color: var(--muted); }
.wc-doc > p { padding: .25em .5em 0; }
.wc-doc time { padding-right: .5em; }
.a-wa { position: absolute; inset: 0; z-index: 5; overflow: hidden; }
.a-wa .wc-top { padding-top: 1.15em; }
@keyframes up { from { transform: translateY(100%); } }
/* WhatsApp opens the way an app does: out of the tile that was tapped, opaque within a few frames,
   over the share sheet, which leaves only once it is covered */
@keyframes launch { from { transform: scale(.14); opacity: 0; border-radius: 4em; } 30% { opacity: 1; } to { border-radius: 0; } }
/* [data-t] outranks the timeline's generic entrance («in», below), which would otherwise fade these in */
.demo .app .a-sheet[data-t].on { animation: up .45s var(--out) both; }
.demo .app .a-dim[data-t].on { animation: fade .3s ease both; }
.demo .app .a-wa[data-t].on { transform-origin: 12.7% 91%; animation: launch .5s var(--out) both; }
@keyframes fade { from { opacity: 0; } }
.a-kpi { display: grid; gap: .75em; }
.a-kpi span { display: block; font-size: .87em; color: var(--muted); }
/* a figure is read, not tapped: tinta, as in the app (a late amount would be rojo) */
.a-kpi b { display: block; font-size: 1.85em; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.a-owe > div { padding: .7em 0; border-bottom: 1px solid var(--border); }
.a-owe > div:first-child { padding-top: 0; }
.a-owe b { display: block; font-size: .95em; font-weight: 700; }
.a-owe dl { margin-top: .3em; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; align-items: center; }
.a-owe dt { font-size: .78em; color: var(--muted); }
.a-owe dd { font-size: .93em; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: .08em .6em; border-radius: 999px; font-size: .88em; font-weight: 700; }
.pill.bad { background: var(--rojo-tint); color: var(--rojo); }
.pill.ok { background: var(--tint); color: var(--verde-hondo); }
.a-chips { flex: none; display: flex; gap: .5em; padding: .45em 1.07em 0; overflow: hidden; white-space: nowrap; }
.a-chips span { flex: none; padding: .45em .95em; border: 1px solid var(--verde-claro); border-radius: 999px; background: var(--tint); color: var(--verde-hondo); font-size: .87em; font-weight: 600; }
.a-voice { flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--verde); color: #fff; }
.a-voice svg { width: 1.15em; height: 1.15em; }
.a-typed.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.18em; background: var(--verde); animation: blink 1s steps(2, start) infinite; }
/* Doo's own line beside its face: the coral of the smile is Doo's voice */
.doo-says { display: flex; gap: .75em; align-items: flex-start; }
.doo-says > svg { flex: none; width: 2.2em; height: 2.2em; }
.doo-says > p { padding-top: .2em; font-weight: 600; line-height: 1.45; text-wrap: pretty; }

/* the phone's screen: one app scene (or the stage's five) inside */
.screen { container-type: inline-size; }
.app {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--crema); color: var(--ink); text-align: left;
  font-size: 13px; font-size: calc(100cqw / 26); line-height: 1.45; font-weight: 500;
}
.a-top { flex: none; display: flex; align-items: center; gap: .6em; height: 3.6em; padding: .6em 1.15em 0; }
.a-top > svg { flex: none; width: 1.45em; height: 1.45em; color: var(--ink); }
.a-title { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; gap: .45em; font-size: 1.07em; font-weight: 700; white-space: nowrap; }
.a-title span { overflow: hidden; text-overflow: ellipsis; }
.a-title i { flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--verde); }
.a-log { flex: 1; min-height: 0; position: relative; overflow: hidden; }
/* still: the whole conversation, to scroll by hand */
html:not(.demo) .a-log { overflow-y: auto; scrollbar-width: none; }
html:not(.demo) .a-log::-webkit-scrollbar { display: none; }
.a-flow { display: flex; flex-direction: column; gap: .95em; padding: .7em 1.07em 1.1em; transition: transform .6s var(--out); }
/* a new conversation: the app's own greeting and quick actions (Transcript.tsx), until the first message goes */
.a-empty { padding: 6em .2em 0; text-align: center; color: var(--muted); line-height: 1.45; }
.a-empty .a-av { display: block; width: 4.3em; height: 4.3em; margin: 0 auto 1.05em; border-radius: 50%; overflow: hidden; }
.a-empty .a-av svg { display: block; width: 100%; height: 100%; }
.a-empty .a-h { margin-bottom: .3em; font-size: 1.4em; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.a-qa { display: flex; flex-wrap: wrap; justify-content: center; gap: .45em; margin-top: 1.4em; }
.a-qa span { padding: .42em .85em; border: 1px solid var(--border); border-radius: 2em; background: #fff; color: var(--ink); font-size: .9em; font-weight: 600; }
.a-tray { flex: none; display: flex; padding: .45em 1.07em 0; }
.a-comp { flex: none; display: flex; align-items: center; gap: .55em; min-height: 3.35em; margin: .6em .85em 1.05em; padding: .35em .35em .35em .95em; border: 1px solid var(--border); border-radius: 1.7em; background: #fff; }
.a-comp > svg { flex: none; width: 1.2em; height: 1.2em; color: var(--muted); }
.a-field { flex: 1; min-width: 0; max-height: 4.35em; overflow: hidden; line-height: 1.45; }
.a-ph { display: block; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
/* the voice screen */
.a-voz { padding: 1.3em 1.15em 1em; }
.v-sheet { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.05em; overflow: hidden; }
.a-voz:not(.docked) .v-sheet { justify-content: center; text-align: center; }
.v-pres { display: flex; flex-direction: column; align-items: center; gap: 1em; }
.a-voz.docked .v-pres { flex-direction: row; gap: .9em; animation: settle .5s var(--out); }
.v-face { flex: none; width: 9em; height: 9em; border-radius: 24%; }
.a-voz.docked .v-face { width: 4.3em; height: 4.3em; }
.v-face svg { width: 100%; height: 100%; }
.a-voz.hear .v-face { animation: listen 1.6s ease-in-out infinite; }
.a-voz.talk .v-face { animation: talk .45s ease-in-out infinite alternate; }
.v-status { display: grid; gap: .45em; justify-items: center; }
.a-voz.docked .v-status { justify-items: start; }
.v-label { font-size: 1.3em; font-weight: 600; line-height: 1.3; }
.a-voz.docked .v-label { font-size: 1.07em; }
.v-label.dim { color: var(--muted); }
.v-turn { display: grid; gap: .55em; }
.v-heard.live { color: var(--muted); font-style: italic; }
.v-tag { display: inline-block; margin-right: .45em; padding: .06em .5em; border-radius: .4em; background: var(--tint); color: var(--verde-hondo); font-size: .85em; font-weight: 700; }
.v-cap { font-size: 1.32em; font-weight: 600; line-height: 1.32; }
/* the app's three round keys (2026-12-05), icons only: the microphone, Doo's sound, «Salir» */
.v-ctl { flex: none; display: flex; justify-content: center; gap: 1.8em; padding-top: .7em; }
.v-ctl span { display: grid; place-items: center; width: 3.9em; height: 3.9em; border: 1px solid var(--border); border-radius: 50%; background: #fff; }
.v-ctl svg { width: 1.65em; height: 1.65em; }

/* the timeline: html.demo (JavaScript, motion allowed) shows each piece from its data-t until its
   data-off. Without it, each scene is its end: what has data-off is gone, the rest is there. */
html:not(.demo) .app [data-off] { display: none; }
.demo .app [data-t]:not(.on), .demo .app [data-off]:not(.on) { display: none; }
.demo .app [data-t].on { animation: in .45s var(--out) both; }
.demo .moment [data-t] { transition: opacity .55s var(--out), transform .55s var(--out); }
.demo .moment [data-t]:not(.on) { opacity: 0; transform: translateY(.6em); }
.demo .moment [data-off]:not(.on), html:not(.demo) .moment [data-off] { opacity: 0; visibility: hidden; }
.demo .moment .w[data-t]:not(.on) { opacity: .5; transform: none; }
.demo .moment .seg[data-t]:not(.on) { opacity: 1; transform: scaleX(0); }
@keyframes in { from { opacity: 0; transform: translateY(.55em); } }
@keyframes settle { from { opacity: 0; transform: translateY(-.4em); } }
@keyframes tap { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes breathe { 50% { opacity: .35; } }
@keyframes listen { 50% { box-shadow: 0 0 0 .35em rgba(63,191,169,.32); } }
@keyframes talk { to { transform: scale(1.04); } }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* the app's badge (app.css .badge): one hue per role. ok = verde, warn = ámbar (pending),
   bad = rojo (overdue), info = azul, mute = neutral. In em, so it sits in the drawn app and on a page. */
.bdg { display: inline-block; padding: .17em .75em; border-radius: 999px; font-size: .8em; font-weight: 700; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bdg.ok { background: var(--tint); color: var(--verde-hondo); }
.bdg.warn { background: #FBF0D9; color: #8C5500; }
.bdg.bad { background: var(--rojo-tint); color: var(--rojo); }
.bdg.info { background: #E4F0F9; color: #126197; }
.bdg.mute { background: #eef1ec; color: var(--muted); }
/* a KPI view (KpiView.tsx): its figures two by two, in tinta (a figure is read, not tapped) */
.book-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: .8em 1em; }
.book-kpi dt { font-size: .85em; color: var(--muted); }
.book-kpi dd { font-size: 1.2em; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ───────────────────────────── the page's shared parts ─────────────────────────────
   What the home and the edition pages both show: what Doo does not carry, and the plans. */
/* the kinds of business Doo fits, each with what it would tell Doo */
.kinds { list-style: none; padding: 0; margin-top: 48px; border-bottom: 1px solid var(--rule); }
.kind { display: grid; gap: 8px 40px; padding: 26px 0 28px; border-top: 1px solid var(--rule); }
@media (min-width: 860px) { .kind { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); align-items: center; } }
.kind h3 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.kind-txt > p:first-child { color: var(--muted); font-size: 16px; text-wrap: pretty; max-width: 34em; }
.kind-go { margin-top: 6px; }
/* what that business would tell Doo, as the app's own bubble: the section's «cabe en un mensaje», shown */
.kind-msg {
  justify-self: end; max-width: 25em; padding: 11px 16px 12px; border-radius: 18px 18px 6px 18px;
  background: var(--verde); color: #fff; font-size: 15.5px; font-weight: 600; line-height: 1.4; text-wrap: pretty;
}
@media (max-width: 859.98px) { .kind-msg { margin-top: 8px; max-width: 88%; } }
.kind-go a { display: inline-block; padding: 4px 0; font-weight: 700; }
.kind-go a:hover { color: var(--verde-hondo); text-decoration: underline; }
.kinds-note { margin-top: 22px; max-width: 40em; font-weight: 600; text-wrap: pretty; }
/* the way out: quiet text, so the kinds above stay the section's focal point */
.fit-not { margin-top: 64px; display: grid; gap: 10px 40px; }
@media (min-width: 860px) { .fit-not { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); } }
.fit-not h3 { font-size: 19.5px; letter-spacing: -0.015em; line-height: 1.25; }
.fit-not p { color: var(--muted); font-size: 15.5px; max-width: 34em; text-wrap: pretty; }
.fit-not p + p { margin-top: 10px; }
/* what Doo does not carry, read at a glance; the dash says «without» */
.fit-list { list-style: none; padding: 0; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 17px; font-weight: 700; color: var(--ink); }
.fit-list li { position: relative; padding-left: 18px; }
.fit-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 2px; border-radius: 1px; background: var(--muted); }
.fit-not .out { margin-top: 14px; }
.fit-not .out a { font-weight: 700; }
.fit-not .out a:hover { color: var(--verde-hondo); text-decoration: underline; }

/* Planes (2026-12-03): the three plans first, Negocio raised and recommended; Empresa's extras in its own card;
   what every plan brings fills the space beside them */
.plans-lead { margin-top: 36px; max-width: 46em; font-size: 17px; font-weight: 600; text-wrap: pretty; }
.tiers { margin-top: 28px; display: grid; gap: 16px; }
.tier { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 22px; background: var(--crema); }
.tier h3 { font-size: 21px; letter-spacing: -0.015em; }
.t-for { margin-top: 4px; min-height: 2.9em; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.t-price { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.t-price strong { font-size: clamp(54px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.t-price span { font-size: 14px; font-weight: 700; }
.t-allow { margin: 18px 0 22px; font-size: 15px; }
.t-allow b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.t-allow span { display: block; color: var(--muted); }
.t-free { display: flex; align-items: center; gap: 7px; margin: -10px 0 22px; font-size: 14px; font-weight: 600; text-wrap: pretty; }
.t-free svg { flex: none; color: var(--verde); }
.tier > .btn { width: 100%; }
.tier.pick { background: #fff; box-shadow: var(--lift), 0 0 0 2px var(--verde); }
.tier.pick .t-price strong { color: var(--verde); }
.t-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 5px 14px; border-radius: 999px; background: var(--verde); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.t-more { margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--rule); border-bottom: 0; font-size: 15px; }
/* Empresa's extras fold on phones (site.js closes details[data-fold] there) and stay open on wide screens */
.tier .t-more summary { align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--ink); }
.tier .t-more summary::after { margin-top: 4px; }
.t-more summary b { font-weight: 700; }
.t-tease { display: none; color: var(--muted); }
.t-more:not([open]) .t-tease { display: inline; }
.t-more ul, .incl-base { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px 28px; font-size: 15px; }
.t-more li, .incl-base li { display: flex; gap: 10px; align-items: flex-start; }
.t-more li svg, .incl-base li svg { flex: none; margin-top: 4px; color: var(--verde); }
.incl { display: grid; align-content: start; gap: 18px; padding: 28px 26px; border-radius: 22px; background: var(--crema); }
.incl h3 { font-size: 21px; letter-spacing: -0.015em; }
.incl-sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.incl-base { margin: 0; }
.incl-pk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 14.5px; font-weight: 700; }
.t-link { margin-top: 16px; }
.incl .more, .tier .more { font-size: 15px; }
.incl .more a, .tier .more a { font-weight: 700; }
.incl .more a:hover, .tier .more a:hover { color: var(--verde-hondo); text-decoration: underline; }
@media (min-width: 860px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
  .tier:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
  .tiers .incl { grid-column: 1 / 3; grid-row: 2; }
  .tier.pick { margin-top: -14px; padding-top: 44px; padding-bottom: 40px; }
  .tier .t-more summary { pointer-events: none; cursor: default; }
  .tier .t-more summary::after { display: none; }
  .incl { padding: 32px 40px; }
  .incl-base { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* who makes Doo, in one line under the plans; the limits live in the plan lines and the FAQ */
.proofline { margin-top: 30px; max-width: 46em; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.proofline b { color: var(--ink); }

/* preguntas: the title holds still beside the questions; the questions sit on hairlines */
.faq-grid { display: grid; gap: 36px 72px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .faq-side { position: sticky; top: calc(var(--head) + 36px); }
}
.faq-side .btn { margin-top: 24px; }
.faq { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); padding: 18px 4px; }
details[open] summary { color: var(--verde-hondo); }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary:hover { color: var(--verde-hondo); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 14px; height: 14px; background: var(--verde); transition: transform .25s var(--out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; max-width: 40em; color: var(--muted); font-size: 15.5px; text-wrap: pretty; }
details p + p { margin-top: 8px; }
details a { font-weight: 700; }
details a:hover { color: var(--verde-hondo); text-decoration: underline; }
/* «¿Qué gasta mensajes?»: a day with Doo as a bill, what spends a mensaje and what does not
   (the plans' option A, 2026-12-03: one number on the card, this is where it is explained) */
.day-bill { width: 100%; max-width: 32em; margin-top: 14px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.day-bill th, .day-bill td { padding: 8px 0; border-bottom: 1px dashed var(--rule); text-align: left; font-weight: 400; vertical-align: baseline; color: var(--ink); }
.day-bill td { padding-left: 16px; text-align: right; font-weight: 700; white-space: nowrap; }
.day-bill td.free { color: var(--verde-hondo); }
.day-bill tfoot th, .day-bill tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 10px; font-weight: 800; }

/* final CTA: the composer, waiting for the visitor's first message */
.cta-final { display: grid; gap: 30px 56px; align-items: center; padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 60px); border-radius: 28px; background: var(--verde); color: #fff; }
@media (min-width: 900px) { .cta-final { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cta-final h2 { font-size: clamp(34px, 4.6vw, 50px); letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.cta-final p { margin-top: 14px; max-width: 28em; font-size: 17px; color: #fff; }
.cta-chat { display: grid; gap: 14px; font-size: 16.5px; }
.cta-chat .a-user { justify-self: end; max-width: 92%; background: #fff; color: var(--ink); box-shadow: 0 26px 44px -28px rgba(0,0,0,.5); }
.cta-chat .doo-says > svg { border-radius: 30%; box-shadow: 0 0 0 2px #fff; }
.cta-chat .doo-says > p { color: #fff; }
.cta-final .btns { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-final .btn.primary { background: #fff; color: var(--verde-hondo); box-shadow: none; }
.cta-final .btn.primary:hover { background: var(--crema); }
/* WhatsApp on the verde band: white outline, white text (4.97:1) */
.cta-final .btn.wa { background: transparent; border-color: #fff; color: #fff; }
.cta-final .btn.wa:hover { background: color-mix(in srgb, #fff 12%, transparent); }
.cta-final .btn.wa svg { color: #fff; }
footer { padding: 44px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer .fbrand img { width: 132px; height: auto; display: block; }
footer .dl { color: #126197; font-weight: 700; }
footer a { white-space: nowrap; }
footer a:hover { text-decoration: underline; }
@media (max-width: 479.98px) { footer .fsep { display: none; } footer .fdoor { display: block; margin-top: 6px; } }
