/* Ladrilho — one stylesheet for every page. Tokens come from the apps (Esmero DESIGN.md, Claquete Theme.swift). */
@font-face {
  font-family: "Gabarito";
  src: url("fonts/Gabarito.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #F3F0EA;
  --surface: #FFFFFF;
  --line: #E4DED1;
  --divider: #ECE7DB;
  --ink: #1B2030;
  --on-ink: #FFFFFF;
  --soft: #4F4A42;
  --muted: #6A655C;
  --brand: #7A3E1E;
  --gold: #E0A93F;
  --teal: #1F5C5A;
  --amber: #F5A623;
  --night: #14161D;
  --wrap: 1200px;
  --gutter: 32px;
  --r-card: 22px;
  --r-pill: 999px;
  --head: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171F; --surface: #1C212C; --line: #2C3240; --divider: #262B37;
    --ink: #F3F0EA; --on-ink: #14171F; --soft: #C9C3B6; --muted: #B5AEA1; --brand: #E2A57A; --teal: #4FB3AA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14161D; --surface: #1C1F28; --line: #2C3140; --divider: #262B37;
  --ink: #F1EEE7; --on-ink: #14161D; --soft: #C9C4B9; --muted: #A5A095; --brand: #F5A623; --teal: #4FB3AA;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 18px/1.5 "Gabarito", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.6vw, 80px); }
h2 { font-size: clamp(34px, 4.2vw, 58px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.15; }
.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--soft); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } body { font-size: 17px; } }

/* skip link + focus */
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 800; text-decoration: none; }
.skip:focus { top: calc(var(--head) + 8px); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head); background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; min-height: 44px; }
.brand svg { width: 30px; height: 30px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--soft); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--head) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* buttons: one style family, pill like the apps */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { --b: var(--ink); --f: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: var(--r-pill); background: var(--b); color: var(--f); border: 2px solid var(--b); font: 800 17px/1 "Gabarito", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--b) 35%, transparent); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); --b: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn img { width: 22px; height: 22px; }
@media (max-width: 640px) { .actions .btn { width: 100%; } }
.fineprint { font-size: 15px; color: var(--muted); }

/* text link with drawn underline */
.tlink { font-weight: 800; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); padding-bottom: 2px; }
.tlink:hover { background-size: 100% 2px; }
p a, li a, dd a { text-underline-offset: 3px; }

/* sections: one per screen */
main > section { min-height: calc(100svh - var(--head)); padding-block: clamp(64px, 9vh, 112px); display: flex; flex-direction: column; justify-content: center; }
main > section > .wrap { display: grid; gap: clamp(32px, 4vw, 56px); }
.band { background: var(--surface); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .lead, .band-ink .muted { color: color-mix(in srgb, var(--on-ink) 72%, transparent); }
.sec-head { display: grid; gap: 18px; max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* hero: centered, icon first, phones cut at the fold */
main > section.hero { justify-content: flex-start; padding-block: clamp(20px, 3.5vh, 40px) 0; }
main > section.hero > .wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.hero h1 { font-size: clamp(36px, 4.8vw, 64px); max-width: none; }
.hero .lead { margin-inline: auto; max-width: 32em; }
.hero .actions { justify-content: center; }
.hero-icon { width: clamp(80px, 8vw, 104px); height: auto; border-radius: 23%; box-shadow: 0 12px 28px -14px rgb(0 0 0 / .45); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.facts li { padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 15px; color: var(--soft); }
.stage { text-align: left; flex: none; align-self: stretch; height: clamp(220px, 36vh, 400px); display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 40px); overflow: hidden; margin-top: 10px; }
.stage .phone { --s: .8; }
.stage.panel { align-self: center; width: 100%; max-width: 1000px; padding-top: 36px; background: var(--tint, var(--surface)); border-radius: var(--r-card) var(--r-card) 0 0; }
@media (max-width: 1180px) { .stage.trio .phone:not(.mid) { display: none; } }
@media (max-width: 640px) { .stage .phone { --s: .7; } .stage.panel { padding-top: 24px; } }

/* entrance: the hero enters once */
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-enter] > .wrap .enter { animation: enter .8s var(--ease) both; }
[data-enter] > .wrap .enter:nth-child(2) { animation-delay: .08s; }
[data-enter] > .wrap .enter:nth-child(3) { animation-delay: .16s; }
[data-enter] > .wrap .enter:nth-child(4) { animation-delay: .24s; }
[data-enter] > .wrap .enter:nth-child(5) { animation-delay: .32s; }
[data-enter] .stage { animation: enter 1s .3s var(--ease) both; }

/* phone frame: UI is drawn at 390x844 and scaled */
.phone { --s: .72; flex: none; width: calc(390px * var(--s) + 20px); height: calc(844px * var(--s) + 20px); padding: 10px; border-radius: calc(54px * var(--s) + 10px); background: #0B0C10; box-shadow: 0 0 0 1px #2A2D36 inset; }
.phone .screen { width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; border-radius: 54px; overflow: hidden; position: relative; }
.phone.small { --s: .62; }
@media (max-width: 380px) { .phone { --s: .66; } }

/* bento: big rounded cards, one idea each (tints are the apps' own colours, softened) */
:root { --r-card: 32px; --t-amber: #FBE6BD; --t-terra: #F2DACB; --t-teal: #D4E7E3; --t-gold: #F6ECCF; --t-blue: #DDEBFA; --t-pink: #F8DFEA; --t-lime: #EBF2CB; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --t-amber: #3B3120; --t-terra: #3A2B23; --t-teal: #1E3532; --t-gold: #352E1C; --t-blue: #22303F; --t-pink: #3A2733; --t-lime: #2F3520; }
}
:root[data-theme="dark"] { --t-amber: #3B3120; --t-terra: #3A2B23; --t-teal: #1E3532; --t-gold: #352E1C; --t-blue: #22303F; --t-pink: #3A2733; --t-lime: #2F3520; }
.t-amber { --tint: var(--t-amber); } .t-terra { --tint: var(--t-terra); } .t-teal { --tint: var(--t-teal); } .t-gold { --tint: var(--t-gold); }
.t-blue { --tint: var(--t-blue); } .t-pink { --tint: var(--t-pink); } .t-lime { --tint: var(--t-lime); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.b { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-card); background: var(--tint, var(--surface)); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .25s var(--ease); }
.b.s3 { grid-column: span 3; }
.b.s6 { grid-column: span 6; }
a.b:hover { transform: translateY(-2px); }
.b h3 { font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -0.03em; line-height: 1.05; }
.b p { color: color-mix(in srgb, var(--ink) 72%, transparent); max-width: 30em; text-wrap: pretty; }
.b > p { margin-bottom: 14px; }
.b > .ui-card, .b > .duo, .b > .stack { margin-top: auto; }
.b.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px clamp(24px, 4vw, 56px); }
.b.wide > .ui-card, .b.wide > .stack { margin-top: 0; }
.b .logo { width: 48px; height: 48px; }
.b.t-night { --tint: #14161D; --ink: #F1EEE7; box-shadow: 0 0 0 1px #2C3140 inset; }
.b.t-night .kind { color: #F5A623; }
.b.app { min-height: 380px; }
.b.app .icon { width: 84px; height: 84px; border-radius: 22px; }
.b.app .kind { font-weight: 800; color: var(--brand); margin-top: -6px; }
.b.app .go { margin-top: auto; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.b.app .go span { transition: transform .2s var(--ease); }
.b.app:hover .go span { transform: translateX(4px); }
@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b, .b.s3, .b.s6 { grid-column: auto; }
  .b.wide { grid-template-columns: minmax(0, 1fr); }
  .b.app { min-height: 0; }
}

/* statement moment + columns */
.statement { font-size: clamp(32px, 4.4vw, 64px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.statement .w { color: color-mix(in srgb, currentColor 22%, transparent); transition: color .35s; }
.statement .w.on { color: inherit; }
.statement .w.hl.on { color: var(--hl, var(--gold)); }
@media (prefers-reduced-motion: reduce) { .statement .w { color: inherit; transition: none; } .statement .w.hl { color: var(--hl, var(--gold)); } }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; }
.cols p { color: var(--soft); }
.band-ink .cols p { color: color-mix(in srgb, var(--on-ink) 72%, transparent); }

/* close: one big action, centred */
.close > .wrap { justify-items: center; text-align: center; }
.close .sec-head { justify-items: center; }
.close .actions, .close .links-row { justify-content: center; }
.big-mail { font-size: clamp(30px, 6.4vw, 96px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 4px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.big-mail:hover { background-size: 100% 4px; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.links-row a, .dls a { min-height: 44px; display: inline-flex; align-items: center; }
.dls { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: auto; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-grid h2 { font-size: 15px; letter-spacing: 0; color: var(--ink); margin-bottom: 6px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-grid a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* documents: privacy and support */
.doc { padding-block: clamp(40px, 7vh, 88px) 96px; }
.doc .wrap { max-width: calc(760px + var(--gutter) * 2); }
.doc header { display: grid; gap: 16px; margin-bottom: 40px; }
.doc header h1 { font-size: clamp(38px, 5vw, 60px); }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--soft); text-wrap: pretty; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.doc strong { color: var(--ink); font-weight: 800; }
.crumbs { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 16px; color: var(--muted); }
.crumbs a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.summary { padding: 24px 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.summary p { color: var(--ink); }
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 800; font-size: 19px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 600; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; }
.contact-card { margin-top: 48px; display: grid; gap: 16px; padding: 32px; border-radius: var(--r-card); background: var(--ink); color: var(--on-ink); }
.contact-card p { color: color-mix(in srgb, var(--on-ink) 75%, transparent); }
.contact-card .btn { --b: var(--on-ink); --f: var(--ink); justify-self: start; }

/* ---------- live app UI: follows the page theme ---------- */
.es, .es-card, .widget, .cal {
  --m-bg:#F3F0EA; --m-surface:#FFFFFF; --m-line:#E4DED1; --m-div:#ECE7DB; --m-ink:#1B2030; --m-muted:#6A655C;
  --m-brand:#7A3E1E; --m-chip:#F3F0EA; --m-pill:#F7ECD3; --m-on:#FFFFFF;
  --m-terra:#7A3E1E; --m-teal:#1F5C5A; --m-listink:#1B2030; --m-mustard:#8A6A12;
}
.cq, .cq-card {
  --m-bg:#F3F0EA; --m-panel:#FFFFFF; --m-surface:#FFFFFF; --m-line:#E3DED4; --m-ink:#1B2030; --m-muted:#6A655C;
  --m-chip:#E9E4DA; --m-opt:#FFFFFF; --m-day:#9A5410;
}
@media (prefers-color-scheme: dark) {
  .es, .es-card, .widget, .cal {
    --m-bg:#14171F; --m-surface:#1C212C; --m-line:#2C3240; --m-div:#262B37; --m-ink:#F3F0EA; --m-muted:#B5AEA1;
    --m-brand:#E2A57A; --m-chip:#262B37; --m-pill:#3A3220; --m-on:#0F1218;
    --m-terra:#E2A57A; --m-teal:#4FB3AA; --m-listink:#C9CED9; --m-mustard:#D1A23C;
  }
  .cq, .cq-card {
    --m-bg:#14161D; --m-panel:#1C1F28; --m-surface:#222733; --m-line:#2C3140; --m-ink:#F1EEE7; --m-muted:#A5A095;
    --m-chip:#272C39; --m-opt:#2C3140; --m-day:#F5A623;
  }
}
.ui { font-family: "Gabarito", system-ui, sans-serif; position: absolute; inset: 0; overflow: hidden; }
.ui * { letter-spacing: normal; }

/* Esmero (DESIGN.md tokens) */
.es { background: var(--m-bg); color: var(--m-ink); padding: 64px 24px 0; }
.es .top { display: flex; align-items: center; justify-content: space-between; }
.es .logo { display: flex; align-items: center; gap: 12px; }
.es .logo img { width: 52px; height: 52px; border-radius: 13px; }
.es .logo b { font-size: 44px; font-weight: 900; color: var(--m-brand); letter-spacing: -0.03em; }
.es .plus { width: 48px; height: 48px; border-radius: 50%; background: var(--m-surface); border: 1px solid var(--m-line); display: grid; place-items: center; color: var(--m-brand); font-size: 30px; font-weight: 600; }
.es .date { margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--m-muted); }
.es .head { margin-top: 14px; font-size: 28px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.es .label { margin: 22px 0 9px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); }
.es .card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 22px; overflow: hidden; }
.es .row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; }
.es .row + .row { border-top: 1px solid var(--m-div); }
.es .row .t { flex: 1; min-width: 0; }
.es .row .t b { display: block; font-size: 16px; font-weight: 800; }
.es .row .t small { display: block; font-size: 13px; font-weight: 600; color: var(--m-muted); margin-top: 2px; }
.es .row .t small em { font-style: normal; color: var(--m-brand); font-weight: 800; }
.es .done { padding: 12px 18px; border-radius: 999px; background: var(--m-chip); font-weight: 800; font-size: 14px; }
.es .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.es .pill { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--m-pill); }
.es .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--m-on); flex: none; }
.es .ico svg { width: 22px; height: 22px; }
.es .chev { color: var(--m-muted); font-size: 22px; }
.es .check { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--c, var(--m-teal)); flex: none; }
.es .check.on { background: var(--c, var(--m-teal)); position: relative; }
.es .check.on::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--m-on); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.es .row.struck b { text-decoration: line-through; color: var(--m-muted); }
.es .tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; border-top: 1px solid var(--m-line); background: var(--m-bg); display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 10px; text-align: center; font-size: 11px; font-weight: 800; color: var(--m-muted); }
.es .tabs span:first-child { color: var(--m-brand); }
.es .tabs i { display: block; width: 24px; height: 24px; margin: 0 auto 4px; border: 2.2px solid currentColor; border-radius: 7px; }
.es .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--m-on); border: 2px solid var(--m-surface); margin-left: -7px; }
.es .avs { display: flex; padding-left: 7px; }
.es .title-xl { font-size: 38px; font-weight: 900; letter-spacing: -0.03em; color: var(--c); display: flex; align-items: center; gap: 12px; }
.es .sub { font-size: 14px; font-weight: 700; color: var(--m-muted); margin-top: 6px; }

/* Claquete (Theme.swift tokens) */
.cq { background: var(--m-bg); color: var(--m-ink); padding: 58px 0 0 22px; }
.cq .chips { display: flex; gap: 8px; }
.cq .chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--m-chip); font-size: 14px; font-weight: 800; white-space: nowrap; }
.cq .chip.on { background: var(--m-ink); color: var(--m-bg); }
.cq .mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.cq h4 { margin: 22px 0 14px; font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.cq h5 { margin: 24px 0 12px; font-size: 21px; font-weight: 900; letter-spacing: -0.02em; display: flex; justify-content: space-between; padding-right: 22px; }
.cq h5 small { font-size: 14px; color: var(--m-muted); font-weight: 700; }
.heroc, .hcard { color: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #2A2F3D 10%, #5A3524 75%, #8A4A2A); }
.cq .heroc { margin-right: 22px; height: 210px; }
.heroc b, .hcard b { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.heroc small, .hcard small { font-size: 14px; font-weight: 700; color: #E8E2D6; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; color: #1B2030; background: var(--c); }
.tags { display: flex; gap: 6px; align-items: center; }
.badge { width: 22px; height: 22px; border-radius: 50%; background: #F5A623; color: #1B2030; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.cq .rail { display: flex; gap: 12px; }
.cq .poster { flex: none; width: 130px; }
.cq .poster .art, .timeline .art { color: #F1EEE7; }
.cq .poster .art { height: 186px; border-radius: 16px; background: var(--bgc); padding: 10px; display: flex; flex-direction: column; justify-content: space-between; }
.cq .poster .art b { font-size: 15px; font-weight: 900; }
.cq .poster p { margin-top: 8px; font-size: 13px; font-weight: 800; }
.cq .poster p small { display: block; font-size: 12px; color: var(--m-muted); font-weight: 700; margin-top: 2px; }

/* standalone UI cards (sections) */
.ui-card { border-radius: 26px; padding: 22px; font-family: "Gabarito", system-ui, sans-serif; }
.ui-card.cq-card, .ui-card.es-card { background: var(--m-panel, var(--m-surface)); border: 1px solid var(--m-line); color: var(--m-ink); }
.ui-card .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-card .chip { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; background: var(--m-chip); font-size: 14px; font-weight: 800; }
.ui-card .chip.on { background: var(--m-ink); color: var(--m-panel); }
.feed { display: grid; gap: 4px; }
.feed .it { display: flex; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--m-line); }
.feed .it:last-child { border-bottom: 0; }
.feed .face { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #1B2030; background: var(--c); flex: none; }
.feed .it div { flex: 1; min-width: 0; font-size: 16px; }
.feed .it b { font-weight: 800; }
.feed .it small { display: block; color: var(--m-muted); font-size: 14px; font-weight: 700; margin-top: 2px; }
.feed .ep { width: 46px; height: 64px; border-radius: 10px; background: var(--bgc); flex: none; }
.ask { margin-top: 14px; padding: 18px; border-radius: 20px; background: var(--m-chip); display: grid; gap: 10px; }
.ask p { font-weight: 800; font-size: 16px; }
.ask .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ask .opts span { padding: 10px 14px; border-radius: 999px; background: var(--m-opt); font-weight: 800; font-size: 14px; }
.ask .opts span.on { background: #F5A623; color: #1B2030; }
.timeline { display: flex; gap: 12px; overflow: hidden; }
.timeline .day { flex: none; width: 150px; display: grid; gap: 10px; }
.timeline .day > small { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--m-day); }
.timeline .art { height: 200px; border-radius: 16px; background: var(--bgc); padding: 10px; display: flex; flex-direction: column; justify-content: space-between; }
.timeline .art b { font-size: 16px; font-weight: 900; }
.timeline p { font-size: 14px; font-weight: 800; }
.timeline p small { display: block; color: var(--m-muted); font-weight: 700; margin-top: 2px; }
.ui-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ui-card .top b { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.ui-card .top span { display: flex; gap: 8px; }
.ui-card .top i { width: 38px; height: 38px; border-radius: 50%; background: var(--m-chip); display: block; }
.ui-card .top i:last-child { background: #F5A623; }
.hrail { display: flex; gap: 14px; overflow: hidden; }
.hcard { flex: none; width: 250px; height: 250px; }
.hcard b { font-size: 24px; }
.hcard:nth-child(2) { background: linear-gradient(160deg, #1F3B4D 10%, #3F5A3A 80%); }
.hcard:nth-child(3) { background: linear-gradient(160deg, #2B3A2A 10%, #7A5A22 85%); }

/* statement highlight colour follows the theme */
.statement { --hl: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .statement { --hl: #9A5410; } }

/* the Claquete page: its own night palette in dark mode, amber buttons */
@media (prefers-color-scheme: dark) {
  body.page-claquete { --bg:#14161D; --surface:#1C1F28; --line:#2C3140; --ink:#F1EEE7; --on-ink:#14161D; --soft:#C9C4B9; --muted:#A5A095; --brand:#F5A623; --teal:#4FB3AA; }
}
.page-claquete .btn:not(.ghost) { --b: #F5A623; --f: #1B2030; }

/* widget mock (Esmero) */
.widget { width: 170px; height: 170px; border-radius: 28px; background: var(--m-surface); border: 1px solid var(--m-line); padding: 16px; display: grid; align-content: space-between; color: var(--m-ink); font-family: "Gabarito", system-ui, sans-serif; flex: none; }
.widget small { font-size: 12px; font-weight: 800; color: var(--m-brand); letter-spacing: .06em; text-transform: uppercase; }
.widget b { font-size: 17px; font-weight: 900; line-height: 1.15; }
.widget span { font-size: 13px; font-weight: 700; color: var(--m-muted); }
.cal { flex: 1; min-width: 0; border-radius: 22px; background: var(--m-surface); border: 1px solid var(--m-line); padding: 16px; color: var(--m-ink); font-family: "Gabarito", system-ui, sans-serif; display: grid; gap: 8px; align-content: start; }
.cal > small { font-size: 12px; font-weight: 800; color: var(--m-muted); letter-spacing: .06em; text-transform: uppercase; }
.cal .ev { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, var(--m-surface)); font-weight: 800; font-size: 14px; }
.cal .ev::before { content: ""; width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); }
.cal .ev span { margin-left: auto; color: var(--m-muted); font-weight: 700; font-size: 13px; }
.stack { display: grid; gap: 18px; }
.duo { display: flex; gap: 18px; align-items: stretch; }
@media (max-width: 480px) { .duo { flex-direction: column; } .widget { width: 100%; height: auto; gap: 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
