/* Peppy : mise en page et composants. Les couleurs et polices sont dans brand.css. */

/* ---------------------------------------------------------------- type : light weights, large sizes */
.display { font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; font-size: clamp(3rem, 1rem + 7vw, 7rem); }
.h2 { font-weight: 500; letter-spacing: -0.04em; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); }
main h1 { font-weight: 500 !important; letter-spacing: -0.04em; }
html[lang="ar"] .display, html[lang="ar"] .h2, html[lang="ar"] main h1 { font-family: var(--b-font-arabic); letter-spacing: 0; line-height: 1.3; font-weight: 500; }
.link { color: var(--b-primary); text-decoration-color: currentColor; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------- controls : flat, square, black */
.btn { border-radius: 0.2rem; font-weight: 500; }
.btn-primary { background: var(--b-ink); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--b-primary); }
.btn-quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--b-ink); }
.btn-quiet:hover { background: var(--b-ink); color: #fff; box-shadow: inset 0 0 0 1px var(--b-ink); }
.btn-ink:hover { background: var(--b-primary); }
.btn-light { border-radius: 0.2rem; }
.input { border-radius: 0.2rem; box-shadow: inset 0 0 0 1px var(--b-second); }
.input:hover { box-shadow: inset 0 0 0 1px var(--b-muted); }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--b-primary); }
.icon-btn, .nav-link, .lang-option, .row-action { border-radius: 0.2rem; }
.menu, .lang-menu { border-radius: 0.25rem; box-shadow: 0 0 0 1px var(--b-ink), 0 12px 24px -16px rgb(0 0 0 / 0.4); }
.lang-option[aria-current="true"] { background: var(--b-second-soft); }
.segmented { border-radius: 0.25rem; box-shadow: 0 0 0 1px var(--b-ink); }
.segmented span { border-radius: 0.15rem; }
.segmented input:checked + span { background: var(--b-ink); }
.filter { border-radius: 0.2rem; }
.filter[aria-pressed="true"] { background: var(--b-ink); color: #fff; }
.pill { border-radius: 0.15rem; font-weight: 500; }
.pill-pending { background: color-mix(in srgb, var(--b-primary) 10%, transparent); color: var(--b-primary); }
.avatar { border-radius: 0.2rem; background: var(--b-ink); }
.panel, .rounded-2xl, .rounded-xl { border-radius: 0.25rem !important; }
.alert { border-radius: 0.25rem; }
.alert-preview { background: var(--b-accent-soft); box-shadow: inset 3px 0 0 var(--b-accent); }

/* ------------------------------------------------- navigation : hairline, text only */
.nav-glass {
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--b-ink);
}
.nav-glass > div { height: 3.5rem; }
.nav-link { color: var(--b-muted); font-weight: 450; padding-inline: 0.6rem; }
.nav-link:hover { background: transparent; color: var(--b-ink); text-decoration: underline; text-underline-offset: 6px; }
.nav-link[aria-current="page"] { color: var(--b-ink); background: transparent; box-shadow: inset 0 -2px 0 var(--b-primary); border-radius: 0; }
.demo-banner { background: var(--b-accent); border-color: var(--b-ink); }
.sub-banner { background: var(--b-second-soft); }

/* -------------------------------------------------------------- landing : white, huge type, the preview below */
.site-body .hero .mesh { background: #fff; }
.hero > div { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; padding-top: 5rem; }
.hero > div > :first-child { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 4rem; }
@media (min-width: 64rem) {
  .hero > div > :first-child { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
  .hero .display { grid-column: 1 / -1; }
  .hero > div > :first-child > p:first-of-type { grid-column: 2; margin-top: 2.5rem; }
  .hero > div > :first-child > div { grid-column: 1; grid-row: 2; margin-top: 2.5rem; align-self: end; }
  .hero > div > :first-child > p:last-of-type { grid-column: 2; }
}
.glass {
  background: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 1px var(--b-ink);
}
.mesh-soft { display: none; }
.page-index section { border-top: 1px solid var(--b-ink) !important; background: #fff !important; }
.page-index section:last-of-type { background: var(--b-accent) !important; }
.site-body .mesh:not(.hero .mesh) { background: var(--b-background); }
.site-body footer { border-top: 1px solid var(--b-ink); }

/* -------------------------------------------------------- application : white, narrow and quiet */
.app-body { background: #fff; }
.ledger { background: #fff; color: var(--b-ink); border-bottom: 1px solid var(--b-ink); }
.ledger .text-white\/70, .ledger .text-white\/80, .ledger .text-white\/60 { color: var(--b-muted); }
.ledger .metric, .ledger .metrics, .ledger dt, .ledger dd { color: inherit; border-color: var(--b-border); }
.ledger .metric-hint { color: var(--b-muted); }
.ledger-select { background: #fff; color: var(--b-ink); box-shadow: inset 0 0 0 1px var(--b-ink); border-radius: 0.2rem; }
.metric-value { font-weight: 400; letter-spacing: -0.04em; }

/* ------------------------------------------------------ the invoice sheet : a plain sheet, a black rule */
.sheet-stack::before, .sheet-stack::after { display: none; }
.sheet { border-radius: 0.2rem; box-shadow: 0 0 0 1px var(--b-border), 0 1px 0 var(--b-border); border-top: 3px solid var(--sheet-accent, var(--b-sheet)); }
.sheet-title { font-weight: 400; font-size: 2rem; letter-spacing: -0.04em; }
html[lang="ar"] .sheet-title { letter-spacing: 0; }
.sheet-items th { border-bottom: 1px solid var(--b-ink); font-weight: 500; color: var(--b-ink); }
.sheet-items td { border-bottom: 1px solid var(--b-border); }
