/* comal public site: the shared base (direction A "warm brand, calm app", 2026-10-07).
   Every page links ./base.css and ./switch.js. Page-only styles stay in the page.
   The site is warm (paper, masa, comal iron, steam). The app screens inside it keep the
   locked E look (white, one green #0B6E4E, Hanken numbers). Green is the one colour for
   action and money on the site too; the warm colours live in the ground and the art.
   Markup for the header, footer and phone bar: parts.html (copy it; mark your page with
   aria-current="page", switch.js also does it from the file name). */

@font-face{font-family:"Bricolage Grotesque";src:url(../../../static/fonts/bricolage-grotesque-variable-latin.woff2) format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url(../../../static/fonts/hanken-grotesk-variable-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}

:root{
  /* site: warm */
  --paper:#F7F0E3; --paper-2:#FCF8F0; --masa:#EFDDB8; --masa-2:#E6CC98;
  --iron:#2B2420; --iron-2:#3A322C; --ink:#2A211B; --ink-2:#64564A; --rule:#E2D3B8;
  --achiote:#9A4524; --terra:#C25E36; --mari:#E3A03A;
  /* app: E, locked */
  --grn:#0B6E4E; --grn-deep:#0A5C41; --grn-soft:#E8F2ED; --grn-text:#0A6046;
  --a-ink:#0F1417; --a-ink-2:#59636D; --a-ink-3:#667079; --a-line:#E7EAEB; --a-line-2:#DBDFE0; --a-panel:#F4F6F5;
  --warn:#C0392B; --ambar:#C08A00;
  --voz:"Bricolage Grotesque",ui-sans-serif,system-ui,sans-serif;
  --ui:"Hanken Grotesk",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --wrap:1200px; --gut:20px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--paper);color:var(--ink);font-family:var(--ui);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit}
img,svg{display:block;max-width:100%}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--grn);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:8px;top:-60px;z-index:50;background:var(--ink);color:#fff;padding:10px 14px;border-radius:7px;font-weight:800;text-decoration:none}
.skip:focus{top:8px}

/* type */
h1,h2,h3{font-family:var(--voz);font-weight:800;letter-spacing:-.025em;line-height:1.02;color:var(--ink)}
h1{font-size:clamp(2.6rem,10.5vw,5.4rem);line-height:.98}
h1 em,h2 em{font-style:normal;color:var(--grn)}
h2{font-size:clamp(2rem,7vw,3.5rem)}
h3{font-size:1.3rem;letter-spacing:-.015em;line-height:1.15}
.eye{font-weight:800;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--achiote);margin-bottom:14px}
.lead{font-size:1.15rem;color:var(--ink-2);max-width:34em}
section{position:relative}
.sec{padding:72px 0}
.sec-head{max-width:46rem;margin-bottom:40px}
.sec-head .lead{margin-top:16px}
.band-2{background:var(--paper-2)}
.band-masa{background:var(--masa)}
.band-night{background:var(--iron);color:#F4EADA}
.band-night h2,.band-night h3{color:#FFF7EA}
.band-night h2 em{color:#7FD1AE}
.band-night .eye{color:var(--mari)}
.band-night .lead{color:#D9CCB8}

/* buttons: the app's own buttons */
.btn-go,.btn-line{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 24px;border-radius:7px;font-weight:800;font-size:1.05rem;text-decoration:none;white-space:nowrap;cursor:pointer;border:0;font-family:inherit}
.btn-go{background:var(--grn);color:#fff;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
.btn-go:hover{background:var(--grn-deep)}
.btn-go:active{box-shadow:inset 0 -1px 0 rgba(0,0,0,.2);transform:translateY(1px)}
.btn-line{color:var(--ink);background:transparent;box-shadow:inset 0 0 0 2px var(--ink)}
.btn-line:hover{background:var(--masa)}
.btn-go .arr{font-size:1.2em;line-height:1}
.ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.ctas .btn-go,.ctas .btn-line{flex:1 1 200px}
.fine{margin-top:12px;font-size:.92rem;color:var(--ink-2);display:flex;align-items:center;gap:8px}
.fine svg{flex:0 0 auto}

/* header: row 1 = logo + the language link (+ nav and buttons on a computer); row 2 on a phone = nav */
.top{position:relative;z-index:20;background:var(--paper);border-bottom:1px solid var(--rule)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px}
.top .row{display:contents}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;margin-right:auto;height:60px}
.logo svg{width:30px;height:30px}
.logo b{font-family:var(--voz);font-weight:800;font-size:1.65rem;letter-spacing:-.04em;line-height:1}
/* the language link: quiet, one tap; it names the other language (switch.js) */
.lang-go{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 12px;margin-right:-12px;border-radius:7px;color:var(--ink-2);font-weight:700;font-size:.95rem;text-decoration:none;white-space:nowrap}
.lang-go svg{width:18px;height:18px;flex:0 0 auto}
.lang-go:hover{color:var(--ink);background:var(--masa)}
.nav{order:9;flex:1 0 100%;display:flex;gap:4px;margin:0 -10px;padding-bottom:6px;font-weight:700;font-size:.95rem;overflow-x:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav a{text-decoration:none;color:var(--ink-2);padding:9px 10px;border-radius:7px;white-space:nowrap}
.nav a:hover{color:var(--ink)}
.nav a[aria-current="page"]{color:var(--ink);box-shadow:inset 0 -3px 0 var(--grn);border-radius:0}
.top .btn-go{display:none;min-height:44px;font-size:.95rem;padding:0 18px}
.top .login{display:none;font-weight:700;font-size:.95rem;text-decoration:none;color:var(--ink-2)}
.nav .login-m{margin-left:auto}

/* footer */
footer{background:var(--iron);color:#CDBFA9;padding:44px 0 110px;font-size:.92rem}
footer .wrap{display:grid;gap:18px}
footer .logo{height:auto}
footer .logo b{color:#FFF7EA}
footer nav{display:flex;flex-wrap:wrap;gap:8px 20px}
footer a{color:#F4EADA;text-decoration:none;font-weight:700}
footer a:hover{text-decoration:underline}

/* phone start bar: shows once the page's first buttons leave the screen (switch.js) */
.bar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--paper-2);border-top:1px solid var(--rule);padding:10px var(--gut) calc(10px + env(safe-area-inset-bottom));display:flex;gap:12px;align-items:center;transform:translateY(110%);transition:transform .25s ease}
.bar.on{transform:none}
.bar .btn-go{flex:1;min-height:50px}
.bar small{font-size:.8rem;color:var(--ink-2);line-height:1.25;flex:0 0 7.5em}

/* country and language blocks: class="only-mx" / "only-us" / "only-es" / "only-en",
   or data-only="mx" etc. switch.js sets html[data-pais] and html[data-lang]. */
[data-pais="us"] .only-mx,[data-pais="mx"] .only-us,[data-lang="en"] .only-es,[data-lang="es"] .only-en,
[data-pais="us"] [data-only="mx"],[data-pais="mx"] [data-only="us"],[data-lang="en"] [data-only="es"],[data-lang="es"] [data-only="en"]{display:none !important}

/* art slots: <figure class="art" data-slot="id"> holds a drawn stand-in; switch.js swaps in
   art/<id>.svg once art/listo.json lists the id. ?slots=1 shows each slot's name. */
.art{position:relative;margin:0}
.art svg,.art img{width:100%;height:auto}
.slotname{display:none;position:absolute;left:6px;top:6px;z-index:3;background:#fff;border:1px dashed var(--achiote);color:var(--achiote);font:700 11px/1.2 ui-monospace,monospace;padding:3px 6px;border-radius:4px}
.show-slots .slotname{display:block}
.show-slots .art{outline:1px dashed var(--achiote);outline-offset:2px}

/* small parts */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips span{background:var(--masa);border-radius:999px;padding:6px 14px;font-weight:700;font-size:.9rem}
.card{background:var(--paper-2);border:2px solid var(--ink);border-radius:14px;padding:20px}
.okl{list-style:none;display:grid;gap:10px}
.okl li{display:grid;grid-template-columns:22px 1fr;gap:10px}
.okl li:before{content:"";width:20px;height:20px;margin-top:3px;border-radius:50%;background:var(--grn-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' stroke='%230B6E4E' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat}

/* ============ the app inside: E, locked ============
   .phone > .scr is the device. Size it with --ps (one em of the screen). The app is
   Spanish only today: never give app screen text a data-en. Money in it may follow the
   country (data-mx / data-us). */
.phone{--ps:11px;font-size:var(--ps);width:21em;background:#1C1917;border-radius:2.7em;padding:.62em;box-shadow:0 0 0 1px #000,0 34px 60px -28px rgba(43,36,32,.65),0 12px 22px -12px rgba(43,36,32,.4);flex:0 0 auto}
.scr{background:#fff;border-radius:2.1em;overflow:hidden;height:47.5em;color:var(--a-ink);font-family:var(--ui);line-height:1.35;position:relative;text-align:left}
.sb{display:flex;justify-content:space-between;align-items:center;padding:.85em 1.6em .35em;font-size:.86em;font-weight:700}
.sb i{display:inline-flex;gap:.3em;align-items:flex-end}
.sb i span{width:.42em;border-radius:1px;background:var(--a-ink)}
.ahd{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4em;padding:.75em 1.1em .7em;border-bottom:1px solid var(--a-line)}
.bz{display:flex;align-items:center;gap:.6em;min-width:0}
.mk{width:2em;height:2em;border-radius:.55em;background:var(--grn);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.05em}
.bz .n{font-weight:800;font-size:1.05em;letter-spacing:-.01em;white-space:nowrap}
.whom{text-align:right;line-height:1.2}.whom b{display:block;font-size:.9em}.whom i{font-style:normal;font-size:.78em;color:var(--a-ink-3)}
.guino{width:100%;display:flex;align-items:baseline;justify-content:space-between;margin-top:.55em;padding-top:.55em;border-top:1px solid var(--a-line)}
.guino .k{font-size:.78em;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--a-ink-3)}
.guino .v{font-size:1.5em;font-weight:900;color:var(--grn-text)}
.cats{display:flex;gap:.5em;padding:.8em 1.1em .2em;overflow:hidden}
.cat{flex:0 0 auto;font-size:.95em;font-weight:700;color:var(--a-ink-2);padding:.55em 1em;border:1.5px solid var(--a-line-2);border-radius:.5em}
.cat.on{background:var(--grn);color:#fff;border-color:var(--grn)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:.55em;padding:.8em 1.1em}
.it{padding:.7em .8em;min-height:4.6em;display:flex;flex-direction:column;justify-content:space-between;border:1.5px solid var(--a-line-2);border-radius:.5em}
.it .nm{font-size:.98em;font-weight:600;line-height:1.2}
.it .pr{font-size:1.25em;font-weight:800}
.it.off{background:var(--a-panel);color:#9AA2A9}
.cuenta{padding:.8em 1.1em;background:#FAFBFB;border-top:1px solid var(--a-line)}
.ttl{font-size:.78em;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--a-ink-3);margin-bottom:.4em}
.ln{display:flex;gap:.6em;align-items:baseline;padding:.4em 0;border-bottom:1px dashed var(--a-line-2);font-size:.98em}
.ln .q{color:var(--grn-text);font-weight:800;min-width:1.2em}.ln .nm{flex:1;font-weight:600}.ln .nm small{display:block;color:var(--a-ink-3);font-weight:500;font-size:.82em}.ln .am{font-weight:700}
.ln.tax{color:var(--a-ink-2);border-bottom:0}
.sum{display:flex;justify-content:space-between;align-items:center;padding:.6em 0 0;border-top:2px solid var(--a-ink);margin-top:.3em}
.sum .k{font-weight:700}.sum .v{font-weight:900;font-size:1.65em;color:var(--grn-text)}
.pay{display:flex;gap:.55em;padding:.8em 1.1em 1em}
.pay span{min-height:3.6em;display:flex;align-items:center;justify-content:center;border-radius:.5em;font-weight:800}
.pay .aux{padding:0 1.1em;background:var(--grn-soft);color:var(--grn-text)}
.pay .cob{flex:1;background:var(--grn);color:#fff;font-size:1.1em;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.pad{padding:.9em 1.1em}
.at{font-family:var(--voz);font-weight:800;font-size:1.55em;letter-spacing:-.02em;margin-bottom:.55em}
.cif{border:1px solid var(--a-line);border-radius:.6em;overflow:hidden}
.cif p{display:flex;justify-content:space-between;padding:.6em .85em;border-bottom:1px solid var(--a-line);font-size:.98em}
.cif p span{color:var(--a-ink-2)}
.cif p b{font-weight:800}
.cif .dif{background:var(--grn-soft);border-bottom:0}
.cif .dif span{color:var(--grn-text);font-weight:700}
.cif .dif b{font-size:1.5em;color:var(--grn-text);font-weight:900}
.okline{display:flex;align-items:center;gap:.55em;margin:.75em 0 .9em;font-weight:800;color:var(--grn-text);font-size:1.05em}
.okline svg{width:1.6em;height:1.6em}
.h4{font-size:.78em;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--a-ink-3);margin:.2em 0 .35em}
.res p{display:flex;justify-content:space-between;padding:.32em 0;font-size:.95em}
.res .f{padding-left:1em;color:var(--a-ink-2)}
.res .t{border-top:2px solid var(--a-ink);margin-top:.3em;padding-top:.5em;font-weight:800}
.res .t b{color:var(--grn-text);font-size:1.15em}
.revisa{display:flex;justify-content:space-between;align-items:center;margin-top:.8em;padding:.75em .85em;border:1px solid var(--a-line-2);border-radius:.5em;font-weight:700;font-size:.95em}
.revisa em{font-style:normal;background:var(--a-panel);border-radius:1em;padding:.05em .6em;font-weight:800}
.kds{display:grid;gap:.6em;padding:.9em 1.1em}
.kc{border:1.5px solid var(--a-line-2);border-radius:.6em;padding:.65em .8em}
.kc .kh{display:flex;justify-content:space-between;align-items:center;margin-bottom:.35em}
.kc .kh b{font-size:1.05em;font-weight:800}
.chip{color:#fff;font-weight:800;font-size:.85em;border-radius:.4em;padding:.2em .55em}
.chip.v{background:var(--grn)}.chip.a{background:var(--ambar)}.chip.r{background:var(--warn)}
.kc p{font-size:.98em;font-weight:600;padding:.12em 0}
.kc p small{color:var(--a-ink-3);font-weight:500}
.kc .done{margin-top:.45em;background:var(--grn-soft);color:var(--grn-text);font-weight:800;text-align:center;border-radius:.45em;padding:.5em}
.tot{display:flex;justify-content:space-between;align-items:baseline;padding:.2em 0 .8em;border-bottom:1px solid var(--a-line)}
.tot span{color:var(--a-ink-2);font-weight:600}
.tot b{font-size:1.9em;font-weight:900;color:var(--grn-text)}
.tips{display:flex;gap:.4em;align-items:center;flex-wrap:wrap;margin:.75em 0}
.tips .lbl{font-size:.85em;font-weight:700;color:var(--a-ink-2);width:100%}
.tip{border:1.5px solid var(--a-line-2);border-radius:.45em;padding:.3em .5em;font-weight:800;font-size:.85em;text-align:center;line-height:1.15}
.tip small{display:block;font-weight:600;color:var(--a-ink-3);font-size:.85em}
.tip.on{background:var(--grn-soft);border-color:var(--grn);color:var(--grn-text)}
.fb{display:flex;justify-content:space-between;align-items:center;min-height:3.3em;border-radius:.5em;padding:0 .9em;font-weight:800;margin-bottom:.45em}
.fb.go{background:var(--grn);color:#fff;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.fb.go small{font-weight:600;opacity:.85;margin-left:.3em}
.fb.dim{background:var(--grn-soft);color:var(--grn-text)}
.fnota{font-size:.78em;color:var(--a-ink-3);margin:-.2em 0 .55em .2em}
.bills{display:grid;grid-template-columns:repeat(4,1fr);gap:.4em;margin-top:.3em}
.bills span{border:1.5px solid var(--a-line-2);border-radius:.45em;text-align:center;padding:.65em 0;font-weight:800}
.bills .off{color:#B8BEC3;background:var(--a-panel);border-color:var(--a-panel)}
/* a white app card on its own (no phone frame): the corte, the audit list */
.acard{background:#fff;color:var(--a-ink);border-radius:18px;padding:20px 18px;font-family:var(--ui);line-height:1.35;box-shadow:0 24px 50px -24px rgba(43,36,32,.55),0 0 0 1px rgba(43,36,32,.06)}
/* the 80 mm ticket */
.ticket{background:#fff;color:#111;font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;font-size:12.5px;line-height:1.5;padding:22px 16px 16px;box-shadow:0 18px 30px -18px rgba(42,33,27,.5)}
.ticket .c{text-align:center}
.ticket b{font-weight:800}
.ticket .r{display:flex;justify-content:space-between;gap:8px}
.ticket .r span:last-child{text-align:right}
.ticket .sm{padding-left:2ch;color:#555}
.ticket hr{border:0;border-top:1px dashed #999;margin:8px 0}
.ticket .big{font-size:15px;font-weight:800}
.ticket-edge{height:10px;background:linear-gradient(-45deg,transparent 6px,#fff 0) 0 0/12px 10px,linear-gradient(45deg,transparent 6px,#fff 0) 0 0/12px 10px;background-repeat:repeat-x}

/* ============ wider screens ============ */
@media (min-width:600px){
  :root{--gut:32px}
}
@media (min-width:1024px){
  :root{--gut:40px}
  body{font-size:18px}
  .sec{padding:116px 0}
  .top{position:sticky;top:0;border-bottom-color:transparent;transition:border-color .2s}
  .top.scrolled{border-bottom-color:var(--rule)}
  .top .wrap{flex-wrap:nowrap;column-gap:22px;height:76px}
  .logo{height:auto;margin-right:12px}
  .nav{order:0;flex:0 1 auto;margin:0 auto 0 0;padding:0;gap:6px}
  .nav .login-m{display:none}
  .top .btn-go,.top .login{display:inline-flex}
  .ctas .btn-go,.ctas .btn-line{flex:0 0 auto}
  .bar{display:none}
  footer{padding-bottom:48px}
  footer .wrap{grid-template-columns:auto 1fr auto;align-items:center;gap:40px}
}

/* ============ motion: only when the visitor allows it ============ */
@media (prefers-reduced-motion:no-preference){
  .steam path{animation:steam 5s ease-in-out infinite;transform-box:fill-box}
  @keyframes steam{0%{opacity:0;transform:translateY(14px)}35%{opacity:.75}100%{opacity:0;transform:translateY(-38px)}}
  .steam path:nth-child(2){animation-delay:1.6s}
  .steam path:nth-child(3){animation-delay:3.2s}
  /* the one calm reveal of the app: a check that draws, once */
  .okline path,.draw-ok path{stroke-dasharray:30;stroke-dashoffset:30;animation:draw .7s .9s ease-out forwards}
  @keyframes draw{to{stroke-dashoffset:0}}
}
