/* apario.io: landing styles.
   Apario design system v2 (Surface / Crescendo), see design/apario-design-system-v2.
   One page, two themes: dark by default, "Daylight" when the visitor's system is in light
   mode (prefers-color-scheme). There is no toggle on purpose.
   Fonts: Space Grotesk (display, numbers), Inter (body), Space Mono (labels, data). */

/* ============================ tokens ============================
   Two sets, dark and light ("Daylight"). The page takes the visitor's system theme.
   The dark page is dark everywhere (owner decision: no light elements on it).
   On the LIGHT page, `.inv` turns ONE element dark (a card, the form, the phone) as an accent.
   Never a band across the page: the dot field must stay uninterrupted.
   `.t-dark` is always dark. Every component reads tokens, so it flips by itself. */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
  --wrap: 1200px; --gut: 24px;
}
:root, .t-dark {
  color-scheme: dark;
  --abyss: #060B16; --ink: #0B1220; --surface: #0E1830; --raised: #152037;
  --line: #1C2740; --line2: #2A3A5C;
  --text: #F4F7FF; --body: #CDD7EC; --muted: #A3B4D6; --faint: #8092B4;
  --bluetx: #6EA0FF; --dot: 110, 160, 255; --mark: #3B82F6;
  --glass1: rgba(148, 168, 204, .05); --glass2: rgba(148, 168, 204, .09); --glass3: rgba(148, 168, 204, .15);
  --gline: rgba(148, 168, 204, .17); --inset: rgba(6, 11, 22, .5);
  --card: rgba(14, 24, 48, .74); --card-solid: #0E1830; --nav: rgba(11, 18, 32, .72);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --ok: #6EE7B7; --ok-bg: rgba(52, 211, 153, .12); --ok-line: rgba(52, 211, 153, .35); --ok-solid: #34D399;
  --warn: #FCD34D; --warn-bg: rgba(245, 181, 68, .13); --warn-line: rgba(245, 181, 68, .4); --warn-solid: #F5B544;
  --bad: #FCA5A5; --bad-bg: rgba(248, 113, 113, .12); --bad-line: rgba(248, 113, 113, .38);
  --info-bg: rgba(59, 130, 246, .13); --info-line: rgba(59, 130, 246, .35);
  --page-bg: var(--ink); --nav-fade: #0B1220;
  --stage-glow: radial-gradient(90% 60% at 85% 0%, rgba(59, 130, 246, .20), transparent 62%), linear-gradient(to top, rgba(59, 130, 246, .10), transparent 45%);
  --dot-dim: .16; --dot-lit: .95; --spot-glow: rgba(59, 130, 246, .10); --blob: rgba(59, 130, 246, .20);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -28px rgba(0, 0, 0, .7);
  --shadow-win: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -36px rgba(0, 0, 0, .85);
  --glow: 0 0 0 3px rgba(59, 130, 246, .18), 0 0 40px -8px rgba(59, 130, 246, .6); --glow-line: rgba(59, 130, 246, .6);
  --shift-m: #3B82F6; --shift-t: #1E3A8A; --shift-t-line: rgba(110, 160, 255, .45);
  --paper: #F3F1EA; --paper-ink: #2A2F3A; --paper-line: #D8D4C8;
  /* fills that stay readable when the pointer spotlight passes behind them */
  --card-hover: rgba(13, 22, 44, .96); --glass-solid: rgba(14, 24, 48, .62);
  --solid-bg: linear-gradient(160deg, #101B36 0%, #0B1220 60%, #0A1020 100%); --slab-glow: rgba(59, 130, 246, .22);
  /* the second button: glass on dark; on the light page it is navy, a dark accent */
  --btn2-bg: rgba(148, 168, 204, .09); --btn2-fg: #F4F7FF; --btn2-hover: rgba(22, 34, 64, .96); --btn2-line: rgba(148, 168, 204, .17); --btn2-shadow: none;
  --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(110, 160, 255, .3), 0 36px 60px -28px rgba(0, 0, 0, .95);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --abyss: #EEF2F9; --ink: #F5F7FB; --surface: #FFFFFF; --raised: #EEF2F9;
    --line: #DCE3EF; --line2: #C3CEE0;
    --text: #0B1220; --body: #22335C; --muted: #46536B; --faint: #5B6880;
    --bluetx: #1D4ED8; --dot: 30, 58, 138; --mark: #1E3A8A;
    --glass1: rgba(255, 255, 255, .45); --glass2: rgba(255, 255, 255, .65); --glass3: rgba(255, 255, 255, .85);
    --gline: rgba(30, 58, 138, .14); --inset: rgba(255, 255, 255, .8);
    --card: rgba(255, 255, 255, .72); --card-solid: #FFFFFF; --nav: rgba(245, 247, 251, .78);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .7);
    --ok: #047857; --ok-bg: rgba(16, 185, 129, .13); --ok-line: rgba(4, 120, 87, .32); --ok-solid: #059669;
    --warn: #92400E; --warn-bg: rgba(245, 181, 68, .24); --warn-line: rgba(180, 110, 10, .4); --warn-solid: #D97706;
    --bad: #B91C1C; --bad-bg: rgba(239, 68, 68, .11); --bad-line: rgba(185, 28, 28, .3);
    --info-bg: rgba(37, 99, 235, .10); --info-line: rgba(37, 99, 235, .32);
    --page-bg: linear-gradient(160deg, #F1F5FC 0%, #E6EDF9 52%, #D9E4F6 100%); --nav-fade: #EDF2FA;
    --stage-glow: radial-gradient(80% 60% at 88% 0%, rgba(59, 130, 246, .22), transparent 60%), radial-gradient(70% 55% at 0% 100%, rgba(99, 102, 241, .12), transparent 65%);
    --dot-dim: .15; --dot-lit: .7; --spot-glow: rgba(37, 99, 235, .12); --blob: rgba(59, 130, 246, .16);
    --shadow-card: 0 18px 44px -26px rgba(30, 58, 138, .38);
    --shadow-win: 0 36px 80px -36px rgba(30, 58, 138, .5);
    --glow: 0 0 0 3px rgba(37, 99, 235, .16), 0 14px 34px -16px rgba(37, 99, 235, .55); --glow-line: rgba(37, 99, 235, .6);
    --shift-m: #2563EB; --shift-t: #1E3A8A; --shift-t-line: transparent;
    --paper: #FFFFFF; --paper-ink: #2A2F3A; --paper-line: #D5DBE6;
    --card-hover: rgba(255, 255, 255, .97); --glass-solid: rgba(255, 255, 255, .62);
    --solid-bg: linear-gradient(160deg, #FFFFFF 0%, #EEF3FB 55%, #E1EAF8 100%); --slab-glow: rgba(59, 130, 246, .20);
  --btn2-bg: #0F1B36; --btn2-fg: #F4F7FF; --btn2-hover: #1B2B52; --btn2-line: transparent; --btn2-shadow: 0 10px 24px -16px rgba(15, 27, 54, .7);
  --shadow-pop: 0 0 0 1px rgba(37, 99, 235, .28), 0 32px 60px -28px rgba(30, 58, 138, .6);
  }
  .inv, .t-dark {
    color-scheme: dark;
    --abyss: #060B16; --ink: #0B1220; --surface: #0E1830; --raised: #152037;
    --line: #1C2740; --line2: #2A3A5C;
    --text: #F4F7FF; --body: #CDD7EC; --muted: #A3B4D6; --faint: #8092B4;
    --bluetx: #6EA0FF; --dot: 110, 160, 255; --mark: #3B82F6;
    --glass1: rgba(148, 168, 204, .05); --glass2: rgba(148, 168, 204, .09); --glass3: rgba(148, 168, 204, .15);
    --gline: rgba(148, 168, 204, .17); --inset: rgba(6, 11, 22, .5);
    --card: rgba(14, 24, 48, .74); --card-solid: #0E1830; --nav: rgba(11, 18, 32, .72);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
    --ok: #6EE7B7; --ok-bg: rgba(52, 211, 153, .12); --ok-line: rgba(52, 211, 153, .35); --ok-solid: #34D399;
    --warn: #FCD34D; --warn-bg: rgba(245, 181, 68, .13); --warn-line: rgba(245, 181, 68, .4); --warn-solid: #F5B544;
    --bad: #FCA5A5; --bad-bg: rgba(248, 113, 113, .12); --bad-line: rgba(248, 113, 113, .38);
    --info-bg: rgba(59, 130, 246, .13); --info-line: rgba(59, 130, 246, .35);
    --page-bg: var(--ink); --nav-fade: #0B1220;
    --stage-glow: radial-gradient(90% 60% at 85% 0%, rgba(59, 130, 246, .20), transparent 62%), linear-gradient(to top, rgba(59, 130, 246, .10), transparent 45%);
    --dot-dim: .16; --dot-lit: .95; --spot-glow: rgba(59, 130, 246, .10); --blob: rgba(59, 130, 246, .20);
    --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -28px rgba(0, 0, 0, .7);
    --shadow-win: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -36px rgba(0, 0, 0, .85);
    --glow: 0 0 0 3px rgba(59, 130, 246, .18), 0 0 40px -8px rgba(59, 130, 246, .6); --glow-line: rgba(59, 130, 246, .6);
    --shift-m: #3B82F6; --shift-t: #1E3A8A; --shift-t-line: rgba(110, 160, 255, .45);
    --paper: #F3F1EA; --paper-ink: #2A2F3A; --paper-line: #D8D4C8;
    /* fills that stay readable when the pointer spotlight passes behind them */
    --card-hover: rgba(13, 22, 44, .96); --glass-solid: rgba(14, 24, 48, .62);
    --solid-bg: linear-gradient(160deg, #101B36 0%, #0B1220 60%, #0A1020 100%); --slab-glow: rgba(59, 130, 246, .22);
  /* the second button: glass on dark; on the light page it is navy, a dark accent */
  --btn2-bg: rgba(148, 168, 204, .09); --btn2-fg: #F4F7FF; --btn2-hover: rgba(22, 34, 64, .96); --btn2-line: rgba(148, 168, 204, .17); --btn2-shadow: none;
  --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(110, 160, 255, .3), 0 36px 60px -28px rgba(0, 0, 0, .95);
  }
}
.inv, .t-dark { color: var(--body); }

/* ============================ base ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--page-bg); background-attachment: fixed; color: var(--body);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: #2563EB; color: #fff; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #6EA0FF; outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.dsp { font-family: var(--font-display); letter-spacing: -.03em; font-weight: 500; color: var(--text); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.eyebrow { font: 700 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bluetx); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================ the field (background) ============================
   Same stage as the app: a calm grid of dots, one blue glow, and a spotlight that brightens
   the dots around the pointer. Phones have no pointer, so there the glow drifts slowly and a
   few dots breathe (transform and opacity only: nothing is repainted). */
.field { position: fixed; inset: 0; height: 100lvh; z-index: -1; pointer-events: none; overflow: hidden; }
.field > div { position: absolute; inset: 0; }
.field-glow { background: var(--stage-glow); }
.field-dots {
  background-image: radial-gradient(circle, rgba(var(--dot), var(--dot-dim)) 1.3px, transparent 1.8px);
  background-size: 20px 20px;
}
.field-spot {
  --mx: -400px; --my: -400px; opacity: 0; transition: opacity 400ms var(--ease-out);
  background-image:
    radial-gradient(circle, rgba(var(--dot), var(--dot-lit)) 1.5px, transparent 2px),
    radial-gradient(300px circle at var(--mx) var(--my), var(--spot-glow), transparent 72%);
  background-size: 20px 20px, auto;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 42%, transparent 100%);
  mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 42%, transparent 100%);
}
.field-spot[data-on] { opacity: 1; }
.field .field-blob, .field .field-tw { display: none; }
@media (hover: none), (pointer: coarse) {
  .field .field-spot { display: none; }
  .field .field-blob {
    display: block; inset: auto; left: -35vmax; top: -30vmax; width: 90vmax; height: 90vmax; border-radius: 50%;
    background: radial-gradient(closest-side, var(--blob), transparent);
    animation: fieldDrift 28s ease-in-out infinite alternate; will-change: transform;
  }
  .field .field-tw {
    display: block; background-size: 100px 100px;
    background-image: radial-gradient(circle, rgba(var(--dot), var(--dot-lit)) 1.5px, transparent 2px);
    animation: fieldBreathe 6s ease-in-out infinite alternate; will-change: opacity; opacity: 0;
  }
  .field .field-tw.b { background-position: 40px 60px; animation-duration: 8s; animation-delay: -3s; }
}
@keyframes fieldDrift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(55vw, 38lvh, 0); }
  100% { transform: translate3d(8vw, 85lvh, 0); }
}
@keyframes fieldBreathe { from { opacity: 0; } to { opacity: .8; } }

/* ============================ buttons, pills ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent; font: 600 14.5px/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background-color 120ms, border-color 120ms, transform 120ms;
}
.btn:active { transform: translateY(1px); }
.btn-p { background: #2563EB; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px -12px rgba(59, 130, 246, .9); }
.btn-s { background: var(--btn2-bg); border-color: var(--btn2-line); color: var(--btn2-fg); box-shadow: var(--btn2-shadow); }
.btn-g { background: transparent; color: var(--bluetx); padding: 0 10px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
@media (hover: hover) {
  .btn-p:hover { background: #1D4ED8; }
  .btn-s:hover { background: var(--btn2-hover); }
  .btn-g:hover { background: var(--info-bg); }
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  font: 600 12px/1 var(--font-body); border: 1px solid var(--gline); background: var(--glass2); color: var(--muted);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.b { color: var(--bluetx); background: var(--info-bg); border-color: var(--info-line); }
.pill.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.pill.wn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill.bd { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.pill.xs { height: 20px; padding: 0 8px; font-size: 11px; }

.card {
  background: var(--card); border: 1px solid var(--gline); border-radius: 20px; box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
/* Cards are transparent at rest: that is the look. The pointer spotlight lights the dots behind
   whatever the mouse is on, so the card under the pointer turns solid (and lifts: see .tilt). */
.card, .win, .trust li, .tabs, .bill, .faq details { transition: background-color 200ms ease, border-color 200ms ease; }
@media (hover: hover) {
  .card:hover, .win:hover, .trust li:hover, .tabs:hover, .bill:hover, .faq details:hover { background-color: var(--card-hover); }
}
@media (pointer: coarse) {
  .card, .nav-in, .win { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  :root { --card: rgba(14, 24, 48, .93); --nav: rgba(11, 18, 32, .94); }
}
@media (pointer: coarse) and (prefers-color-scheme: light) {
  :root { --card: rgba(255, 255, 255, .95); --nav: rgba(245, 247, 251, .96); }
}

/* ============================ nav ============================ */
.nav { position: sticky; top: 0; z-index: 40; padding: 12px var(--gut) 0; }
/* Content scrolling past fades out behind the bar instead of showing in the gap above it. */
.nav::before { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(100% + 16px); z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--nav-fade) 40%, transparent); }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; height: 60px; padding: 0 12px 0 18px; display: flex; align-items: center; gap: 24px;
  background: var(--nav); border: 1px solid var(--gline); border-radius: 16px; box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand svg { width: 30px; height: 30px; }
.brand .mk { fill: var(--mark); }
.brand span { font: 500 24px/1 var(--font-display); letter-spacing: -.035em; color: var(--text); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font: 500 14px/1 var(--font-body); color: var(--muted); transition: color 120ms, background-color 120ms; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-cta .short { display: none; }
.nav-cta .login { padding: 8px 12px; border-radius: 8px; font: 500 14px/1 var(--font-body); color: var(--muted); white-space: nowrap; transition: color 120ms; }
@media (hover: hover) { .nav-links a:hover, .nav-cta .login:hover { color: var(--text); } .nav-links a:hover { background: var(--glass1); } }

/* ============================ sections ============================ */
.sec { padding: 104px 0 0; }
.sec-h { max-width: 720px; }
.sec-h.center { margin: 0 auto; text-align: center; }
.sec-h h2 { margin-top: 14px; font: 500 clamp(30px, 4vw, 44px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.sec-h p { margin-top: 16px; font-size: 17px; color: var(--muted); text-wrap: pretty; }

/* ---- hero ---- */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { margin-top: 20px; font: 500 clamp(40px, 5.4vw, 66px)/1.02 var(--font-display); letter-spacing: -.035em; color: var(--text); text-wrap: balance; }
.hero .lede { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; text-wrap: pretty; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 12px/1.4 var(--font-mono); color: var(--faint); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok-solid); }

.trust { margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--gline); background: var(--glass1); }
.trust .ic { margin-top: 2px; color: var(--text); }
.trust b { display: block; font: 600 14px/1.3 var(--font-body); color: var(--text); }
.trust span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ============================ mockups ============================
   Drawn in the app's own language (same tokens, type and status pills), with sample data.
   They follow the visitor's theme, like the app. */
.win { border-radius: 20px; border: 1px solid var(--gline); background: var(--card); box-shadow: var(--shadow-win); overflow: hidden; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.win-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--gline); background: var(--glass1); }
.win-bar .url { font: 400 11.5px/1 var(--font-mono); color: var(--faint); }
.win-bar .url b { color: var(--muted); font-weight: 400; }
.win-bar .pill { margin-left: auto; }
.win-body { padding: 18px; display: grid; gap: 14px; }
.mk-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mk-h h4 { font: 500 19px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.mk-h p { margin-top: 3px; font: 400 11.5px/1.4 var(--font-mono); color: var(--faint); }
.mk-lbl { font: 700 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.box { border-radius: 14px; border: 1px solid var(--gline); background: var(--glass1); padding: 14px; min-width: 0; }
.box.glow { border-color: var(--glow-line); box-shadow: var(--glow); }
.box .v { margin-top: 8px; font: 500 22px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.box .v.sm { font-size: 18px; }
.box .s { margin-top: 5px; font-size: 12px; color: var(--muted); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.up { color: var(--ok); } .dn { color: var(--bad); } .am { color: var(--warn); }
.meter { height: 8px; border-radius: 999px; background: var(--inset); border: 1px solid var(--gline); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 50%); border-radius: 999px; background: #3B82F6; transform-origin: left; }
.meter.ok i { background: var(--ok-solid); } .meter.wn i { background: var(--warn-solid); }
.rows { display: grid; }
.rows > * { display: grid; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gline); font-size: 13px; color: var(--body); }
.rows > *:last-child { border-bottom: 0; padding-bottom: 0; }
.rows > *:first-child { padding-top: 0; }
.rows .th { font: 700 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.rows .r { text-align: right; font: 400 12.5px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.rows .t { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 400; }
.rows > .be { grid-template-columns: 54px minmax(0, 1fr) auto; }
.rows > .c4 { grid-template-columns: minmax(0, 1.1fr) 1fr 1fr 96px; }
.rows > .c3 { grid-template-columns: minmax(0, 1fr) 70px 86px; }
.rows > .c3 > span:nth-child(2), .rows > .c3 > span:nth-child(3) { text-align: right; }
.rows > .c2 { grid-template-columns: minmax(0, 1fr) auto; }
.rows > .c4 > span:nth-child(2), .rows > .c4 > span:nth-child(3), .rows .st { text-align: right; }
.rows small.am { color: var(--warn); }
.win-bar .url { white-space: nowrap; }
.win-bar .pill { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rows > .att { grid-template-columns: auto minmax(0, 1fr) auto; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; border: 1px solid var(--info-line); background: var(--info-bg); color: var(--body); }
.note.wn { border-color: var(--warn-line); background: var(--warn-bg); }
.note.ok { border-color: var(--ok-line); background: var(--ok-bg); }
.note .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--bluetx); }
.note.wn .ic { color: var(--warn); } .note.ok .ic { color: var(--ok); }
.note b { color: var(--text); font-weight: 600; }

/* file chip + channels (Cuadre) */
.filechip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--gline); background: var(--glass1); font-size: 12.5px; color: var(--text); min-width: 0; }
.filechip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip .pill { margin-left: auto; }
.count { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.count div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--inset); border: 1px solid var(--gline); font: 400 12px/1 var(--font-mono); color: var(--muted); }
.count b { color: var(--text); font-weight: 400; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ok-line); background: var(--ok-bg); }
.result b { font: 600 14px/1.2 var(--font-body); color: var(--ok); }
.result span { display: block; margin-top: 3px; font: 400 11.5px/1.3 var(--font-mono); color: var(--muted); }
.result strong { font: 500 24px/1 var(--font-display); color: var(--ok); }

/* schedule (Horario) */
.sched { display: grid; grid-template-columns: minmax(84px, 1.3fr) repeat(7, minmax(0, 1fr)); gap: 5px; align-items: center; font-size: 12px; }
.sched .d { text-align: center; font: 700 9.5px/1.3 var(--font-mono); letter-spacing: .08em; color: var(--faint); }
.sched .d b { display: block; font: 500 13px/1.2 var(--font-display); letter-spacing: 0; color: var(--text); }
.sched .p { min-width: 0; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched .p small { display: block; font-weight: 400; font-size: 10.5px; color: var(--faint); }
.sh { height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 700 10.5px/1 var(--font-mono); }
.sh.m { background: var(--shift-m); color: #fff; }
.sh.t { background: var(--shift-t); color: #fff; border: 1px solid var(--shift-t-line); }
.sh.o { border: 1px dashed var(--line2); color: var(--faint); }

/* bars (Gastos / budgets) */
.bars { display: grid; gap: 9px; }
.bars > div { display: grid; grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--body); }
.bars .r { font: 400 12px/1 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }

/* phone (App del equipo): a mockup of the real team app (tareas/index.html). Same blocks,
   order and words: header, attendance card, progress, tasks by shift with their tags.
   Sample data only. If the app changes, change this with it. */
.phone-wrap { display: flex; justify-content: center; align-items: center; gap: 18px; }
.phone { width: min(266px, 100%); margin: 0 auto; flex: none; border-radius: 34px; padding: 9px; border: 1px solid var(--gline); background: var(--card-solid); box-shadow: var(--shadow-win); }
.phone-in { border-radius: 26px; border: 1px solid var(--gline); background: var(--ink); overflow: hidden; }
.phone-wrap .phone { margin: 0; }
.ph-second { order: -1; width: min(246px, 100%); }
.ph-top { display: flex; align-items: center; gap: 9px; padding: 12px 12px 10px; border-bottom: 1px solid var(--gline); background: var(--glass1); }
.ph-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--glass3); display: grid; place-items: center; flex: none; color: var(--mark); }
.ph-logo svg { width: 19px; height: 19px; display: block; }
.ph-top > div { flex: 1; min-width: 0; display: grid; }
.ph-top b { font: 500 12.5px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.ph-top span { font-size: 10px; color: var(--muted); }
.ph-av { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gline); background: var(--glass3); display: grid; place-items: center; font: 600 10.5px/1 var(--font-body); color: var(--text); font-style: normal; flex: none; }
.ph-body { padding: 12px 11px 14px; display: grid; gap: 8px; }
.ph-hello { display: grid; gap: 5px; margin: 2px 2px 2px; }
.ph-hello span { font: 700 8px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ph-hello b { font: 500 19px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.ph-clock { border-radius: 13px; border: 1px solid var(--gline); background: var(--glass1); padding: 11px; }
.ph-clock.on { display: flex; align-items: center; gap: 8px; border-color: var(--ok-line); background: var(--ok-bg); }
.ph-clock.on > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ph-clock.on b { display: flex; align-items: center; gap: 6px; font: 600 11px/1.25 var(--font-body); color: var(--text); }
.ph-clock.on span { font-size: 10px; color: var(--muted); padding-left: 12px; }
.ph-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok-solid); flex: none; }
.ph-clock em { font: 600 10.5px/1 var(--font-body); font-style: normal; white-space: nowrap; padding: 8px 9px; border-radius: 8px; border: 1px solid var(--gline); background: var(--glass3); color: var(--text); flex: none; }
.ph-clock.off { display: grid; justify-items: center; text-align: center; gap: 0; padding: 13px 11px 10px; }
.ph-lbl { font: 700 8px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ph-now { margin: 8px 0 6px; font: 500 32px/1 var(--font-display); letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.ph-st { font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.ph-clock em.pri { justify-self: stretch; padding: 13px 9px; border-radius: 10px; border-color: transparent; background: #2563EB; color: #fff; font-size: 12.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 20px -12px rgba(37, 99, 235, .9); }
.ph-clock small { margin-top: 8px; font-size: 9px; line-height: 1.4; color: var(--faint); }
.ph-foot { justify-self: stretch; display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--gline); font-size: 9px; color: var(--muted); white-space: nowrap; }
.ph-foot b { color: var(--text); font-weight: 600; }
.ph-foot u { text-decoration: none; color: var(--bluetx); font-weight: 600; }
.ph-wait { text-align: center; font-size: 10px; color: var(--muted); padding: 10px 6px 4px; }
.ph-prog { display: flex; align-items: center; gap: 10px; border-radius: 13px; border: 1px solid var(--gline); background: var(--glass1); padding: 10px 11px; }
.ph-ring { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(#3B82F6 50%, var(--glass3) 0); display: grid; place-items: center; flex: none; }
.ph-ring b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font: 600 9px/1 var(--font-display); font-style: normal; color: var(--text); }
.ph-prog > div { display: grid; gap: 2px; }
.ph-prog > div b { font: 500 12.5px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.ph-prog > div span { font-size: 10px; color: var(--muted); }
.ph-sec { display: flex; justify-content: space-between; margin: 5px 3px 0; font: 700 8px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ph-task { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--gline); background: var(--glass1); }
.ph-task > i { width: 17px; height: 17px; margin-top: 1px; flex: none; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; }
.ph-task > div { min-width: 0; display: grid; gap: 5px; }
.ph-task b { font: 600 11.5px/1.25 var(--font-body); color: var(--text); }
.ph-task p { display: flex; flex-wrap: wrap; gap: 4px; }
.ph-task p span { font: 500 8.5px/1 var(--font-body); padding: 3.5px 6px; border-radius: 999px; border: 1px solid var(--gline); background: var(--glass2); color: var(--muted); white-space: nowrap; }
.ph-task p .acc { background: var(--info-bg); border-color: var(--info-line); color: var(--bluetx); }
.ph-task p .ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.ph-task p .warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); font-weight: 600; }
.ph-task.urgent { border-color: var(--warn-line); }
.ph-task.done { background: transparent; }
.ph-task.done b { color: var(--faint); font-weight: 500; text-decoration: line-through; }
.ph-task.done > i { background: var(--ok-solid); border-color: var(--ok-solid); }
.ph-task.done > i::after { content: ""; width: 7px; height: 4px; border-left: 1.75px solid var(--ink); border-bottom: 1.75px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
@media (max-width: 1180px) { .ph-second { display: none; } }

/* ============================ mockups, portal look (2026-11) ============================
   The portal was redesigned: each screen has a page header with its sections as tabs, ONE
   glowing result card (big figure, state in words, a line of context, small figures) and
   plain cards with bar rows below. These pieces draw that inside a .win. Sample data only.
   If the portal changes, change the mockups with it. */
.win { position: relative; }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.a-head > div:first-child { min-width: 0; }
.a-head h4 { margin-top: 6px; font: 500 21px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.a-head p { margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.a-step { display: flex; gap: 5px; flex: none; }
.a-step span { height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--gline); background: var(--glass2); font: 500 11.5px/26px var(--font-body); color: var(--text); white-space: nowrap; }
.a-step .sq { padding: 0 8px; color: var(--muted); }
.a-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--gline); overflow: hidden; }
.a-tabs span { flex: none; padding: 8px 10px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; font: 500 11.5px/1.2 var(--font-body); color: var(--muted); white-space: nowrap; }
.a-tabs .on { color: var(--text); font-weight: 600; border-color: var(--gline); border-bottom-color: #3B82F6; background: linear-gradient(to bottom, var(--glass3), var(--glass1)); }

/* the result card: the only glow of the screen; leans green or red with the result */
.a-res { --tint: transparent; display: grid; gap: 12px; min-width: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--glow-line); box-shadow: var(--glow); background: linear-gradient(135deg, var(--tint), transparent 62%), var(--glass1); }
.a-res.ok { --tint: var(--ok-bg); border-color: var(--ok-line); box-shadow: 0 0 0 3px var(--ok-bg), 0 0 36px -10px var(--ok-line); }
.a-res.bad { --tint: var(--bad-bg); border-color: var(--bad-line); box-shadow: 0 0 0 3px var(--bad-bg), 0 0 36px -10px var(--bad-line); }
.a-res .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.a-res .top > div:first-child { min-width: 0; }
.a-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 8px; }
.a-fig b { font: 500 34px/1 var(--font-display); letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.a-fig b.ok { color: var(--ok); } .a-fig b.bad { color: var(--bad); }
.a-res .n { margin-top: 7px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.a-res .n b { color: var(--text); font-weight: 600; }
.a-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; background: #2563EB; color: #fff; font: 600 12px/1 var(--font-body); white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 20px -12px rgba(37, 99, 235, .9); }
.a-btn .ic { width: 14px; height: 14px; }
.a-btn.g { background: var(--glass2); color: var(--text); border: 1px solid var(--gline); box-shadow: none; }

/* small figures; boxed = each in its own inset box */
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px 14px; }
.a-stats > div { min-width: 0; }
.a-stats span { display: block; font-size: 10.5px; line-height: 1.3; color: var(--muted); }
.a-stats b { display: block; margin-top: 3px; font: 500 15px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.a-stats b.ok { color: var(--ok); } .a-stats b.bad { color: var(--bad); } .a-stats b.wn { color: var(--warn); }
.a-stats small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.3; color: var(--faint); }
.a-stats.boxed { gap: 8px; }
.a-stats.boxed > div { padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--gline); }
.a-stats.boxed b { font-size: 17px; }
.a-stats .dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--faint); vertical-align: 1px; }
.a-stats .dot.b { background: #3B82F6; }

/* a plain card with an edge */
.a-card { display: grid; gap: 10px; min-width: 0; padding: 14px; border-radius: 14px; border: 1px solid var(--gline); background: var(--glass1); }
.a-card .h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.a-card h5 { margin: 0; font: 500 13.5px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.a-card .h p, .a-card > p.s { margin-top: 2px; font-size: 10.5px; line-height: 1.35; color: var(--faint); }
.a-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* bar rows: name and value on a line, the bar under them, an optional target marker */
.a-rows { display: grid; gap: 10px; }
.a-brow { display: grid; gap: 5px; min-width: 0; }
.a-brow .l { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; color: var(--text); }
.a-brow .l span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-brow .l span:last-child { flex: none; font: 400 11.5px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.a-brow .l small { color: var(--faint); font: inherit; }
.a-brow > small { font-size: 10px; color: var(--faint); }
.a-brow > small.bad { color: var(--bad); } .a-brow > small.ok { color: var(--ok); }
.a-bar { position: relative; height: 6px; border-radius: 3px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--gline); }
.a-bar i { display: block; height: 100%; width: var(--w, 50%); max-width: 100%; border-radius: 3px; background: #3B82F6; transform-origin: left; }
.a-bar.ok i { background: var(--ok-solid); } .a-bar.wn i { background: var(--warn-solid); } .a-bar.bd i { background: #EF4444; } .a-bar.mu i { background: var(--faint); }
.a-bar b { position: absolute; top: -4px; left: var(--m, 50%); width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--text); }
.rv.is-in .a-bar i, .panel:not([hidden]) .a-bar i, .rise .a-bar i { animation: aFill .7s var(--ease-out) backwards; }
@keyframes aFill { from { transform: scaleX(0); } }

/* a line that needs a person (ember) */
.a-note { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--warn-line); background: var(--warn-bg); font-size: 11.5px; line-height: 1.35; color: var(--warn); }
.a-note i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warn-solid); }
.a-note span { flex: 1; min-width: 0; }
.a-note b { flex: none; font-weight: 600; color: var(--bluetx); white-space: nowrap; }

/* pace line (Resumen) */
.a-pace { display: block; width: 100%; height: auto; overflow: visible; }
.a-pace .base { stroke: var(--gline); stroke-width: 1; }
.a-pace .goal { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 5; }
.a-pace .sold { fill: none; stroke: var(--ok-solid); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.a-pace .halo { fill: var(--ok-solid); opacity: .25; } .a-pace .tip { fill: var(--text); }
.rise .a-pace .sold { animation: aDraw 1.1s var(--ease-out) .5s backwards; }
@keyframes aDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.a-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 10px; color: var(--faint); }
.a-legend span { display: inline-flex; align-items: center; gap: 6px; }
.a-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--ok-solid); }
.a-legend u { width: 14px; border-top: 2px dashed var(--muted); text-decoration: none; }

/* standings: day / week / month against break-even */
.a-stand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a-stand > div { display: grid; gap: 6px; min-width: 0; padding: 10px 11px; border-radius: 12px; background: var(--inset); border: 1px solid var(--gline); }
.a-stand .t { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--muted); }
.a-stand .t small { color: var(--faint); font: inherit; white-space: nowrap; }
.a-stand b { font: 500 16px/1 var(--font-display); letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.a-stand b small { font: 400 10px/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.a-stand em { font-style: normal; font-size: 10px; line-height: 1.3; color: var(--ok); }

/* cuadre: sales by payment method, bill count */
.a-chans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a-chans > div { display: grid; gap: 6px; min-width: 0; padding: 10px 11px; border-radius: 12px; background: var(--inset); border: 1px solid var(--gline); }
.a-chans .t { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text); }
.a-chans .t span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-chans .t i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.a-chans .cash .t i { background: #3B82F6; }
.a-chans .t small { flex: none; font: 400 9.5px/1 var(--font-body); color: var(--faint); }
.a-chans .cash .t small { color: var(--ok); }
.a-chans b { font: 500 17px/1 var(--font-display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.a-lines { display: grid; gap: 7px; }
.a-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--body); }
.a-lines > div span:last-child { font: 400 11.5px/1.2 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.a-lines > .tot { padding-top: 8px; border-top: 1px solid var(--gline); font-weight: 600; color: var(--text); }
.a-lines > .tot span:last-child { font: 500 15px/1 var(--font-display); }
.a-lines > .sub { padding-left: 12px; color: var(--muted); font-size: 11.5px; }

/* weekday columns */
.a-cols { display: flex; align-items: flex-end; gap: 6px; }
.a-cols > div { flex: 1; min-width: 0; display: grid; gap: 5px; justify-items: stretch; text-align: center; font-size: 10px; color: var(--muted); }
.a-cols .c { height: 64px; display: flex; align-items: flex-end; }
.a-cols .c i { display: block; width: 100%; height: var(--h, 50%); border-radius: 4px 4px 0 0; background: #3B82F6; transform-origin: bottom; }
.a-cols .best .c i { background: var(--ok-solid); } .a-cols .best { color: var(--text); font-weight: 600; }
.panel:not([hidden]) .a-cols .c i, .rv.is-in .a-cols .c i { animation: aRise .7s var(--ease-out) backwards; }
@keyframes aRise { from { transform: scaleY(0); } }

/* ============================ Otto ============================
   The assistant of the portal (src/features/otto). Same face and colours: blue eyes, cyan
   smile; pupils light on the light page, dark on the dark one. */
:root, .t-dark { --otto-primary: #4d8dff; --otto-pupil: #04101f; --otto-accent: #22d3ee; }
@media (prefers-color-scheme: light) {
  :root { --otto-primary: #1f5fe0; --otto-pupil: #f5f8fd; --otto-accent: #0e7490; }
  .inv, .t-dark { --otto-primary: #4d8dff; --otto-pupil: #04101f; --otto-accent: #22d3ee; }
}
.otto-face { display: block; overflow: visible; width: var(--s, 40px); height: auto; aspect-ratio: 112 / 86; flex: none; }
.otto-face .eyes circle { fill: var(--otto-primary); }
.otto-face .pupils { transition: transform 140ms cubic-bezier(.45, 0, .25, 1); }
.otto-face .pupils g { transform-box: fill-box; transform-origin: center; animation: ottoBlink 5s cubic-bezier(.45, 0, .25, 1) infinite; }
.otto-face .pupils circle { fill: var(--otto-pupil); }
.otto-face .smile { fill: none; stroke: var(--otto-accent); stroke-width: 6; stroke-linecap: round; }
@keyframes ottoBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
/* the launcher bubble, as it sits in the corner of every screen */
.win.has-otto { overflow: visible; }
.win.has-otto .win-bar { border-radius: 19px 19px 0 0; }
.otto-bub { position: absolute; right: -18px; bottom: -18px; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gline); background: var(--card-solid); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .7), 0 0 0 4px var(--info-bg); --s: 30px; }

.otto-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; }
.otto-txt h2 { margin-top: 14px; }
.otto-txt > p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--body); max-width: 34em; }
.otto-hi { display: flex; align-items: center; gap: 12px; }
.otto-hi .otto-face { --s: 54px; }
.otto-pts { display: grid; gap: 14px; margin-top: 26px; }
.otto-pts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.otto-pts .ic { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--bluetx); }
.otto-pts b { font: 600 15.5px/1.3 var(--font-body); color: var(--text); }
.otto-pts span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.otto-fine { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; color: var(--muted); }
.otto-fine b { color: var(--text); font-weight: 600; }

/* the chat panel */
.otto-win { width: min(440px, 100%); margin-left: auto; border-radius: 20px; border: 1px solid var(--glow-line); background: var(--card); box-shadow: var(--glow), var(--shadow-win); overflow: hidden; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.otto-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--gline); background: var(--glass1); }
.otto-top .otto-face { --s: 44px; }
.otto-top div { min-width: 0; display: grid; gap: 2px; }
.otto-top b { font: 600 14px/1.2 var(--font-body); color: var(--text); }
.otto-top span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otto-msgs { display: grid; gap: 10px; padding: 14px; font-size: 13px; line-height: 1.5; color: var(--body); }
.otto-q { justify-self: end; max-width: 86%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--info-bg); border: 1px solid var(--info-line); color: var(--text); }
.otto-a { justify-self: start; max-width: 94%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--glass1); border: 1px solid var(--gline); }
.otto-a b { color: var(--text); font-weight: 600; }
.otto-a .tag { display: block; margin-bottom: 5px; font: 700 9.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bluetx); }
.otto-a ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.otto-a p + p { margin-top: 6px; }
.otto-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.otto-chips span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gline); background: var(--glass1); font: 500 11.5px/1.2 var(--font-body); color: var(--text); }
.otto-in { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--gline); }
.otto-in span { flex: 1; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--gline); background: var(--inset); font: 400 13px/36px var(--font-body); color: var(--faint); }
.otto-in b { flex: none; height: 38px; padding: 0 14px; border-radius: 12px; background: #2563EB; color: #fff; font: 600 13px/38px var(--font-body); }

/* the announcement above the hero headline */
.announce { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 18px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--gline); background: var(--glass2); font-size: 13.5px; color: var(--body); transition: background-color 200ms ease; }
.announce .otto-face { --s: 26px; }
.announce b { color: var(--text); font-weight: 600; }
.announce .ic { width: 15px; height: 15px; color: var(--bluetx); flex: none; }
.announce > span:last-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .announce:hover { background: var(--card-hover); } }

@media (max-width: 980px) {
  .otto-grid { grid-template-columns: 1fr; gap: 32px; }
  .otto-win { margin: 0 auto; }
}
@media (max-width: 560px) {
  .a-stand, .a-chans { grid-template-columns: 1fr; }
  .a-2 { grid-template-columns: 1fr; }
  .a-fig b { font-size: 28px; }
  .a-head h4 { font-size: 18px; }
  .otto-txt > p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .a-bar i, .a-cols .c i, .a-pace .sold, .otto-face .pupils g { animation: none !important; }
}

/* ============================ combined layout (2026-11-21) ============================
   The rework draft, merged with this page. From the draft: a centered hero with ONE wide
   product screen under the headline, a contact field with the button inside, numbered
   steps, the tools grid, a tick row over the plans, questions in two columns. Kept from
   this page: see-through cards that lift, lean and turn solid under the pointer, the
   receipt scan, the tool tabs (now below the hero screen) and Otto. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-c { padding-top: 56px; }
.hero-top { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-c h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 74px); max-width: 15em; }
.hero-c .lede { max-width: 640px; }
.hero-c .hero-cta, .hero-cta.center { justify-content: center; }
.hero-c .hero-cta { width: 100%; }
.hero-c h1 { max-width: none; text-wrap: initial; }
@media (max-width: 760px) { .br-w { display: none; } .hero-c h1 { text-wrap: balance; } }
.hero-c .hero-note { justify-content: center; }
.hero-form { display: flex; align-items: center; gap: 6px; width: min(430px, 100%); height: 52px; padding: 5px 5px 5px 16px; border-radius: 14px; border: 1px solid var(--gline); background: var(--glass2); transition: border-color 160ms ease, background-color 160ms ease; }
.hero-form:focus-within { border-color: var(--glow-line); background: var(--card-hover); }
/* like the cards: see-through at rest, solid under the pointer (the lit dots stay behind) */
@media (hover: hover) { .hero-form:hover { background: var(--card-hover); } }
.hero-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 15px/1 var(--font-body); color: var(--text); }
.hero-form input::placeholder { color: var(--faint); }
.hero-form .btn { height: 42px; padding: 0 16px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.hero-c .btn-s.lg { height: 52px; }

/* the one product screen: wide, rising under the headline */
.hero-win { max-width: 1080px; margin: 52px auto 0; border-color: var(--glow-line); box-shadow: var(--shadow-win), 0 0 0 4px var(--info-bg), 0 0 90px -24px rgba(59, 130, 246, .55); }
.hero-win .win-body { padding: 22px; gap: 16px; }
.hero-win .a-head h4 { font-size: 26px; }
.win-bar .dots { display: inline-flex; gap: 6px; margin-right: 4px; }
.win-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--glass3); border: 1px solid var(--gline); }
.a-step .seg { display: inline-flex; gap: 2px; padding: 2px; height: 28px; }
.a-step .seg b { padding: 0 8px; border-radius: 6px; font: 500 11px/22px var(--font-body); color: var(--muted); }
.a-step .seg b.on { background: var(--glass3); color: var(--text); }
.a-res.wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; padding: 20px; }
.a-res.wide .chart { min-width: 0; display: grid; align-content: start; }
.a-res.wide .a-fig b { font-size: 46px; }
.a-res.wide .n { margin-bottom: 10px; font-size: 13px; }
.a-res.wide .a-legend { margin-top: 8px; }
.a-axis { display: flex; justify-content: space-between; margin-top: 4px; font: 400 10px/1 var(--font-mono); color: var(--faint); }
.a-stand.col { grid-template-columns: minmax(0, 1fr); align-content: stretch; }
.a-stand.col > div { padding: 12px 14px; align-content: center; }
.a-stand.col b { font-size: 21px; }
.a-stand.col .on { border-color: var(--glow-line); box-shadow: var(--glow); }
.a-stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* numbered steps on the three kinds of paper */
.kind-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kind .num { font: 700 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--bluetx); }

/* the tools, as a grid that adds up to the Resumen */
.sum { margin-top: 104px; }
.toolgrid { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; align-content: start; justify-items: center; gap: 6px; padding: 22px 16px 18px; text-align: center; }
.tile .ic { width: 22px; height: 22px; margin-bottom: 8px; padding: 9px; box-sizing: content-box; border-radius: 12px; border: 1px solid var(--gline); background: var(--glass2); color: var(--text); }
.tile b { font: 600 15px/1.3 var(--font-body); color: var(--text); }
.tile span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.tile small { margin-top: 4px; font: 400 11px/1.2 var(--font-mono); color: var(--faint); }
.tile.main { border-color: var(--glow-line); box-shadow: var(--glow); }
.sum .hero-cta { margin-top: 30px; }

/* what every plan has */
.checks { margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--body); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .ic { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.2; }
.checks + .bill { margin-top: 22px; }

/* questions in two columns */
.faq.two { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: start; }
.faq-col { display: grid; gap: 10px; min-width: 0; }

@media (max-width: 1100px) {
  .toolgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .a-res.wide { grid-template-columns: minmax(0, 1fr); }
  .a-stand.col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a-stats.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero-c { padding-top: 36px; }
  .hero-form { width: 100%; height: auto; flex-wrap: wrap; gap: 6px; padding: 6px; }
  .hero-form input { flex: 1 1 100%; height: 46px; padding: 0 10px; font-size: 16px; }
  .hero-form .btn { flex: 1 1 100%; height: 48px; font-size: 15px; }
  .hero-c .btn-s.lg { width: 100%; }
  .hero-win { margin-top: 36px; }
  .hero-win .win-body { padding: 14px; }
  .a-res.wide { padding: 14px; }
  .a-res.wide .a-fig b { font-size: 34px; }
  .a-stand.col { grid-template-columns: minmax(0, 1fr); }
  .toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ============================ "lectura automática" ============================ */
.read { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 5fr) 64px minmax(0, 6fr); align-items: center; gap: 0; }
.paper { position: relative; justify-self: center; width: min(320px, 100%); padding: 22px 20px 26px; background: var(--paper); color: var(--paper-ink); border-radius: 6px; font: 400 12px/1.7 var(--font-mono); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transform: rotate(-2deg); overflow: hidden; }
.paper h5 { margin: 0 0 2px; font: 700 13px/1.4 var(--font-mono); text-align: center; }
.paper .c { text-align: center; color: #6A7080; }
.paper hr { border: 0; border-top: 1px dashed var(--paper-line); margin: 9px 0; }
.paper .l { display: flex; justify-content: space-between; gap: 12px; }
.paper .l.b { font-weight: 700; }
.paper .scan { position: absolute; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, .28)); border-bottom: 2px solid #3B82F6; opacity: 0; transform: translateY(-64px); pointer-events: none; }
.read.is-in .paper .scan { animation: scan 1500ms var(--ease-out) 250ms 1 both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-64px); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(330px); } }
.read-arrow { justify-self: center; color: var(--bluetx); }
.read-arrow .ic { width: 28px; height: 28px; }
.read-out .rows > * { grid-template-columns: minmax(0, 1fr) auto; }
.read-out [data-step] { opacity: 0; transform: translateY(9px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(900ms + var(--i, 0) * 130ms); }
.read.is-in .read-out [data-step] { opacity: 1; transform: none; }
.read-kinds { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kind { padding: 22px; }
.kind .ic { width: 24px; height: 24px; color: var(--text); }
.kind h3 { margin-top: 14px; font: 500 19px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.kind p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ============================ herramientas (tabs) ============================ */
.tabs { margin-top: 36px; display: flex; gap: 6px; padding: 5px; border-radius: 14px; border: 1px solid var(--gline); background: var(--glass1); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.has-ind { position: relative; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; font: 500 14px/1 var(--font-body); color: var(--muted); transition: color 120ms, background-color 120ms; }
.tab .ic { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--glass3); border-color: var(--gline); color: var(--text); }
@media (hover: hover) { .tab:hover { color: var(--text); } }
.panel { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.panel[hidden] { display: none; }
.panels { position: relative; }
/* Carousel: --dir is 1 when moving to a tool on the right, -1 to the left (set by site.js).
   The old panel leaves over the new one; the new one arrives text first, mockup just after. */
.panel.enter > * { animation: panelIn 480ms var(--ease-out) backwards; }
.panel.enter > *:nth-child(2) { animation-delay: 80ms; }
.panel.out { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; animation: panelOut 220ms ease-in forwards; }
@keyframes panelIn { from { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 56px), 0, 0); } to { opacity: 1; transform: none; } }
@keyframes panelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -40px), 0, 0); } }
/* the highlight that slides between the options of a switch */
.has-ind { position: relative; }
.has-ind .ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: var(--glass3); border: 1px solid var(--gline); pointer-events: none; transition: transform 320ms var(--ease-out), width 320ms var(--ease-out); }
.has-ind > button { position: relative; z-index: 1; }
.tabs.has-ind .tab[aria-selected="true"], .bill.has-ind button[aria-pressed="true"] { background: none; border-color: transparent; }
.bill.has-ind .ind { border-radius: 9px; }
/* rolling digits (prices) */
/* No clipping box: the digits fade as they slide, so the text baseline never moves. */
.dg { display: inline-block; position: relative; white-space: pre; }
.dg, .dg > span { font: inherit; color: inherit; letter-spacing: inherit; }
/* a price is one word: its digits must never break onto a second line while they roll */
[data-shown] { white-space: nowrap; }
.plan .price b { flex: none; }
.dg > span { display: inline-block; will-change: transform, opacity; }
.dg > .dg-old { position: absolute; left: 0; top: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.panel h3 { margin-top: 16px; font: 500 clamp(26px, 3vw, 34px)/1.12 var(--font-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.panel .txt > p { margin-top: 14px; font-size: 16.5px; color: var(--muted); text-wrap: pretty; }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--body); }
.ticks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--bluetx); stroke-width: 2.2; }
.panel .more { margin-top: 22px; margin-left: -10px; }
.btn .ic { width: 16px; height: 16px; }

/* ============================ todo conectado ============================ */
.flows { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.flow { padding: 24px; }
.flow-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-path .ic { width: 16px; height: 16px; color: var(--faint); }
.flow h3 { margin-top: 18px; font: 500 20px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.flow p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ============================ resumen band ============================ */
.band { margin-top: 104px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; border-color: var(--info-line); background: linear-gradient(135deg, var(--info-bg), transparent 70%), var(--card); }
.band h2 { margin-top: 14px; font: 500 clamp(28px, 3.4vw, 40px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.band p { margin-top: 14px; font-size: 16.5px; color: var(--muted); }
.band .hero-cta { margin-top: 26px; }
.feeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feeds li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--gline); background: var(--glass1); }
.feeds .ic { color: var(--text); margin-top: 1px; }
.feeds b { display: block; font: 600 14px/1.3 var(--font-body); color: var(--text); }
.feeds span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.feeds li.last { grid-column: 1 / -1; border-color: var(--glow-line); box-shadow: var(--glow); }

/* ============================ equipo (staff app) ============================ */
.team { margin-top: 104px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.team h2 { margin-top: 14px; font: 500 clamp(28px, 3.4vw, 40px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.team .txt > p { margin-top: 14px; font-size: 16.5px; color: var(--muted); }

/* ============================ precios ============================ */
.bill { margin: 28px auto 0; display: flex; padding: 4px; border-radius: 12px; border: 1px solid var(--gline); background: var(--glass1); width: fit-content; }
.bill button { height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent; background: none; cursor: pointer; font: 600 13.5px/1 var(--font-body); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color 120ms, background-color 120ms; }
.bill button[aria-pressed="true"] { background: var(--glass3); border-color: var(--gline); color: var(--text); }
.bill .pill { height: 20px; font-size: 10.5px; }
.plans { margin: 32px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--glow-line); box-shadow: var(--glow); }
.plan .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font: 500 24px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.plan .d { margin-top: 10px; font-size: 14.5px; color: var(--muted); min-height: 46px; }
/* bottom-aligned so the label can take two lines (annual) without making the card taller */
.plan .price { margin-top: 20px; display: flex; align-items: flex-end; gap: 8px; }
.plan .price b { font: 500 46px/1 var(--font-display); letter-spacing: -.035em; color: var(--text); font-variant-numeric: tabular-nums; }
/* direct child only: the rolling digits are spans INSIDE the <b> and must keep its type */
.plan .price > span { font: 400 12px/1.3 var(--font-mono); color: var(--faint); padding-bottom: 6px; }
.plan .year { margin-top: 8px; min-height: 18px; font: 400 12px/1.4 var(--font-mono); color: var(--ok); opacity: 0; transform: translateY(4px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.plan .year.on, .pricebox .plan .year { opacity: 1; transform: none; }
.plan .btn { margin-top: 20px; }
.plan .ticks { margin-top: 24px; gap: 10px; }
.plan .ticks li { font-size: 14.5px; }
.plan .ticks b { color: var(--text); font-weight: 600; }
.tiers { margin: 20px auto 0; padding: 26px 30px; }
.tiers h3 { font: 500 19px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.tiers > p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.tiers .rows { margin-top: 16px; }
.tiers .rows > * { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); padding: 11px 0; font-size: 14px; }
.tiers .ex { margin-top: 14px; font: 400 12px/1.5 var(--font-mono); color: var(--faint); }
.refer { margin: 16px auto 0; max-width: 920px; text-align: center; font-size: 14.5px; color: var(--muted); }
.refer a { color: var(--bluetx); font-weight: 600; }

/* ============================ faq ============================ */
.faq { margin: 36px auto 0; max-width: 820px; display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--gline); background: var(--card); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 600 16px/1.35 var(--font-body); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--faint); transition: transform 200ms var(--ease-out); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .a { padding: 0 20px 20px; font-size: 15px; color: var(--muted); }
.faq details[open] .a { animation: rise 300ms var(--ease-out) both; }

/* ============================ demo ============================ */
.demo { margin-top: 104px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; overflow: hidden; padding: 0; }
.demo .pitch { padding: 44px; border-right: 1px solid var(--gline); background: linear-gradient(160deg, var(--info-bg), transparent 75%); }
.demo h2 { margin-top: 14px; font: 500 clamp(28px, 3.2vw, 38px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.demo .pitch p { margin-top: 14px; font-size: 16px; color: var(--muted); }
.contact { margin-top: 28px; display: grid; gap: 10px; }
.contact a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gline); background: var(--glass1); font-size: 14.5px; color: var(--text); transition: background-color 120ms; }
.contact a small { display: block; font: 400 11.5px/1.3 var(--font-mono); color: var(--faint); }
@media (hover: hover) { .contact a:hover { background: var(--glass3); } }
.demo form, .demo .done { padding: 44px; }
.demo form { display: grid; gap: 14px; align-content: start; }
.fld { display: grid; gap: 7px; }
.fld label { font: 500 13px/1 var(--font-body); color: var(--muted); }
.inp { height: 46px; width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--inset); color: var(--text); font: 400 16px/1 var(--font-body); transition: border-color 120ms, box-shadow 120ms; }
.inp::placeholder { color: var(--faint); }
.inp:focus { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.fine { font-size: 12px; color: var(--faint); }
.demo .done { display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.demo .done h3 { font: 500 24px/1.2 var(--font-display); color: var(--text); letter-spacing: -.02em; }
.demo .done p { color: var(--muted); font-size: 15px; }
.demo.sent form { display: none; } .demo.sent .done { display: flex; }

/* ============================ footer ============================ */
.foot { margin-top: 96px; padding: 44px 0 40px; border-top: 1px solid var(--gline); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot p { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 320px; }
.foot h4 { font: 700 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.foot ul { margin-top: 14px; display: grid; gap: 10px; }
.foot ul a { font-size: 14px; color: var(--muted); transition: color 120ms; }
@media (hover: hover) { .foot ul a:hover { color: var(--text); } }
.foot-end { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--gline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font: 400 12px/1.4 var(--font-mono); color: var(--faint); }
.foot-end div { display: flex; gap: 18px; }

/* ============================ tool pages ============================
   cuadre-de-caja.html, propinas.html, horario.html: one tool each, same blocks. */
.pains { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain { padding: 22px; }
.pain b { display: block; font: 500 19px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.pain > span:not(.pill) { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.pain .pill { display: flex; width: fit-content; margin-bottom: 14px; }
.pain .big { font: 500 30px/1.1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.steps { margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { padding: 22px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 700 13px/1 var(--font-mono); color: var(--bluetx); }
.steps h3 { margin-top: 14px; font: 500 18px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.steps p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.duo { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.duo.flip > .txt { order: 2; }
.duo h3 { margin-top: 14px; font: 500 clamp(24px, 2.8vw, 32px)/1.12 var(--font-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.duo .txt > p { margin-top: 12px; font-size: 16.5px; color: var(--muted); text-wrap: pretty; }
.feats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pricebox { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: stretch; }
.pricebox .side { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.pricebox .side h3 { font: 500 22px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.pricebox .side p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.pricebox .side .btn { margin-top: 20px; align-self: flex-start; }
.others { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.other { padding: 22px; display: flex; flex-direction: column; transition: border-color 120ms, transform 120ms; }
.other .ic { width: 24px; height: 24px; color: var(--text); }
.other h3 { margin-top: 14px; font: 500 19px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.other p { margin-top: 8px; font-size: 14.5px; color: var(--muted); flex: 1; }
.other .go { margin-top: 16px; font: 600 14px/1 var(--font-body); color: var(--bluetx); display: inline-flex; align-items: center; gap: 6px; }
.other .go .ic { width: 16px; height: 16px; color: currentColor; }
@media (hover: hover) { a.other:hover { border-color: var(--info-line); } }
a.other:active { transform: translateY(1px); }
.cta-band { margin-top: 104px; padding: 48px 32px; text-align: center; border-color: var(--info-line); background: linear-gradient(160deg, var(--info-bg), transparent 75%), var(--card); }
.cta-band h2 { font: 500 clamp(28px, 3.4vw, 40px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.cta-band p { margin: 14px auto 0; max-width: 560px; font-size: 16.5px; color: var(--muted); }
.cta-band .hero-cta { justify-content: center; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.back .ic { width: 16px; height: 16px; transform: rotate(180deg); }
/* calendar of the month (Cuadre) */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal b { text-align: center; font: 700 9.5px/1.6 var(--font-mono); letter-spacing: .08em; color: var(--faint); }
.cal span { aspect-ratio: 1.25; border-radius: 8px; display: grid; place-items: center; font: 400 12px/1 var(--font-mono); border: 1px solid transparent; }
.cal .ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.cal .bd { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); font-weight: 700; }
.cal .na { border: 1px dashed var(--line2); color: var(--faint); }
.rows > .c4b { grid-template-columns: minmax(0, .9fr) 1fr 1fr 1fr; }
.rows > .c4b > span:nth-child(n+2) { text-align: right; }
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.trail .ic { width: 16px; height: 16px; color: var(--faint); }

/* ============================ dark accents on the light page ============================
   Single elements only (see .inv in the tokens). On the dark page .inv does nothing. */
@media (prefers-color-scheme: light) {
  .card.inv, .feeds li.inv { background: var(--solid-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .demo form.inv, .demo .done.inv { background: var(--solid-bg); }
}

/* ============================ hover: lift, lean, turn solid ============================
   Mouse only (site.js adds .tilt and sets --rx / --ry from the pointer position). The card
   under the pointer rises a little, leans toward the pointer and becomes solid, so its text
   never competes with the lit dots. Big blocks (.big) lean less. Forms and tables do not tilt. */
.tilt { position: relative; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.tilt.is-hover { z-index: 2; transform: perspective(900px) translate3d(0, -6px, 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.015); box-shadow: var(--shadow-pop); background-color: var(--card-hover); border-color: var(--glow-line); }
.tilt.big.is-hover { transform: perspective(1400px) translate3d(0, -5px, 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.006); }
.plan.pro.tilt.is-hover { box-shadow: var(--glow), var(--shadow-pop); }
@media (prefers-reduced-motion: reduce) { .tilt.is-hover, .tilt.big.is-hover { transform: none; } }

/* ============================ reveal ============================
   Things rise 9px and fade in once, when they first come into view. */
.rv { opacity: 0; transform: translateY(9px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.rv.is-in { opacity: 1; transform: none; }
.rv.is-in .meter i { animation: grow 900ms var(--ease-out) 200ms both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* The hero enters on load with CSS alone, so it never waits for the script. */
.rise { animation: rise 550ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 110ms); }
.rise .meter i { animation: grow 900ms var(--ease-out) 500ms both; }
.no-js .rv, .no-js .read-out [data-step] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .read-out [data-step] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rise, .rise .meter i, .panel.enter > *, .panel.out, .faq details[open] .a, .rv.is-in .meter i, .read.is-in .paper .scan, .field .field-blob, .field .field-tw { animation: none !important; }
  .field .field-tw { opacity: .35; }
}

/* ============================ responsive ============================ */
@media (max-width: 1040px) {
  .hero-grid, .panel, .band, .team, .demo, .duo, .pricebox { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .duo.flip > .txt { order: 0; }
  .duo { margin-top: 56px; }
  .pricebox { gap: 16px; }
  .feats, .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 48px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .read { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .read-arrow { transform: rotate(90deg); }
  .read-kinds { grid-template-columns: minmax(0, 1fr); }
  .demo .pitch { border-right: 0; border-bottom: 1px solid var(--gline); }
  .team .phone-wrap { order: 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .sec { padding-top: 76px; }
  .band, .team, .demo { margin-top: 76px; }
  .nav { padding-top: 8px; }
  .nav-in { height: 54px; padding: 0 8px 0 12px; gap: 8px; border-radius: 14px; }
  .brand svg { width: 26px; height: 26px; } .brand span { font-size: 21px; }
  .nav-cta .login { padding: 8px 8px; font-size: 13px; }
  .nav-cta .btn { padding: 0 14px; font-size: 13px; }
  .nav-cta .full { display: none; } .nav-cta .short { display: inline; }
  .hero .lede { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .trust { margin-top: 48px; gap: 10px; }
  .trust li { padding: 12px; gap: 10px; }
  .trust span { display: none; }
  .win-body { padding: 14px; gap: 12px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3.keep { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .box { padding: 11px; } .box .v { font-size: 18px; } .box .v.sm { font-size: 15.5px; }
  .hide-s { display: none !important; }
  /* break-even rows: label and figures on one line, the bar below */
  .rows > .be { grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; }
  .rows > .be .meter { grid-row: 2; grid-column: 1 / -1; }
  .rows > .att .t { white-space: normal; line-height: 1.35; }
  .rows > .c4 { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) 82px; gap: 8px; }
  .rows .r { font-size: 11.5px; }
  .count { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .count div { white-space: nowrap; }
  :root { --nav: rgba(11, 18, 32, .97); }
  .flows, .plans, .feeds, .pains, .feats, .others { grid-template-columns: minmax(0, 1fr); }
  .cta-band { margin-top: 76px; padding: 32px 20px; }
  .pricebox .side { padding: 24px 20px; }
  .rows > .c4b { grid-template-columns: minmax(0, 1.5fr) 1fr 1fr 1fr; gap: 6px; }
  .cal span { font-size: 11px; }
  .feeds li.last { grid-column: auto; }
  .band, .demo .pitch, .demo form, .demo .done { padding: 26px 20px; }
  .plan { padding: 24px 20px; } .plan .d { min-height: 0; } .plan .price b { font-size: 40px; }
  .plan .year { min-height: 34px; } /* two lines on a phone: reserved so the card does not grow on Anual */
  .pricebox .plan .year { min-height: 18px; }
  .tiers { padding: 22px 18px; }
  .tiers .rows > * { font-size: 13px; }
  .tiers .rows .r { font-size: 13px; }
  .tabs { width: auto; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); border-radius: 0; border-left: 0; border-right: 0; scroll-snap-type: x proximity; }
  .tab { scroll-snap-align: center; }
  .sched { grid-template-columns: minmax(62px, 1.2fr) repeat(7, minmax(0, 1fr)); gap: 3px; }
  .sh { height: 24px; font-size: 9.5px; }
  .foot-grid { gap: 26px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) and (prefers-color-scheme: light) { :root { --nav: rgba(245, 247, 251, .97); } }
/* Narrow phones: the three figures of a mockup stack as rows, so full amounts always fit. */
@media (max-width: 480px) {
  .g3.keep { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .g2.stack-s { grid-template-columns: minmax(0, 1fr); }
  .g3.keep .box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 10px 12px; }
  .g3.keep .box .v { margin: 0; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 17px; }
  .g3.keep .box .s { margin-top: 3px; }
}
@media (max-width: 360px) {
  .win-body { padding: 12px 10px; }
  .rows > * { gap: 6px; }
  .rows .r { font-size: 10.5px; }
  .rows > .c3 { grid-template-columns: minmax(0, 1fr) 52px 66px; }
  .rows > .c4 { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 74px; gap: 5px; }
  .rows .t { white-space: normal; line-height: 1.3; }
  .filechip .pill { font-size: 10px; padding: 0 6px; }
  .pill.xs { font-size: 10.5px; padding: 0 7px; }
}
