/* ==========================================================================
   PiPO HRIS — LAYER 03 · UI PRIMITIVES (component library)
   Every component works on light (cloud / mist / white) and dark (midnight /
   surface) grounds. Nothing here hardcodes a colour that is not a token.
   ========================================================================== */

/* ── 1. BADGES & LABELS ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono);
  font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: .42em .7em; border-radius: var(--r-xs);
  background: var(--mist); color: var(--ink-3);
  border: 1px solid transparent;
}
.badge--new   { background: var(--emerald-tint); color: var(--emerald-700); }
.badge--pop   { background: var(--st-info-bg);   color: var(--st-info); }
.badge--ent   { background: var(--gold-tint); color: var(--ink); border: 1px solid var(--gold-line); }
.badge--soon  { background: transparent; color: var(--muted); border-color: var(--line); }
.badge--int   { background: var(--teal-tint);    color: var(--teal); }
.on-dark .badge, .bg-ink .badge { background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); }
.on-dark .badge--new { background: rgba(19,185,129,.16); color: var(--emerald-300); }
.on-dark .badge--ent { background: var(--gold-glow); color: var(--gold); }

/* ── 2. BREADCRUMBS ─────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); transition: color var(--t-fast) var(--e-out); }
.crumbs a:hover { color: var(--emerald); }
.crumbs li { display: flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: '/'; color: var(--muted-2); opacity: .6; }
.crumbs [aria-current] { color: var(--ink-2); }
.on-dark .crumbs, .on-dark .crumbs a { color: rgba(255,255,255,.58); }
.on-dark .crumbs [aria-current] { color: rgba(255,255,255,.85); }

/* ── 3. FORMS ───────────────────────────────────────────────────────────── */
.field { display: grid; gap: .45rem; }
.field > label, .lbl {
  font-size: .86rem; font-weight: 600; color: var(--ink-2); letter-spacing: -.005em;
}
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 54px;
  padding: .85rem 1rem;
  font-size: .97rem;
  color: var(--ink-2);
  background: #FFFFFF;
  border: var(--b-light);
  border-radius: var(--r);
  transition: border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out);
  appearance: none;
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366706C' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.6rem; cursor: pointer;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: #C9D5CF; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(8,127,91,.14);
}
.field.is-filled .input { background: var(--paper); }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--st-error); box-shadow: 0 0 0 3px rgba(184,68,60,.12); }
.field.is-success .input { border-color: var(--st-success); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--paper-2); color: var(--muted-2); cursor: not-allowed; }
.msg { display: flex; align-items: flex-start; gap: .4rem; font-size: .82rem; }
.msg--error   { color: var(--st-error); }
.msg--success { color: var(--st-success); }
.msg svg { width: 14px; height: 14px; flex: none; margin-top: .22em; }

/* choice controls */
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: var(--b-light); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out); min-height: 44px; }
.choice:hover { border-color: #C9D5CF; }
.choice input { accent-color: var(--emerald); width: 18px; height: 18px; margin-top: .1rem; flex: none; }
.choice input:checked ~ .choice-t { color: var(--ink); }
.choice:has(input:checked) { border-color: var(--emerald); background: var(--emerald-tint); }
.choice-t { font-size: .92rem; color: var(--ink-3); }
.choice-t b { display: block; font-weight: 600; color: var(--ink); }

.chipset { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .55em 1.05em; border-radius: 100px;
  border: var(--b-light); background: #fff;
  font-size: .89rem; color: var(--ink-3);
  transition: all var(--t-fast) var(--e-out);
}
.chip-opt input:checked + span { border-color: var(--emerald); background: var(--emerald); color: #fff; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 3px; }

.switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 100px; background: #CBD6D1; position: relative; transition: background var(--t-fast) var(--e-out); flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform var(--t-std) var(--e-out); }
.switch input:checked + .track { background: var(--emerald); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* dark-ground forms */
.on-dark .input, .on-dark .select, .on-dark .textarea,
.on-dark .choice, .on-dark .chip-opt span {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.58); color: #fff;
}
.on-dark .field > label, .on-dark .lbl { color: rgba(255,255,255,.88); }
.on-dark .input::placeholder { color: rgba(255,255,255,.58); }
.on-dark .input:focus, .on-dark .select:focus, .on-dark .textarea:focus {
  border-color: var(--emerald-400); box-shadow: 0 0 0 3px rgba(19,185,129,.2);
}

/* ── 4. CARD FAMILIES ───────────────────────────────────────────────────── */
.c { border-radius: var(--r-lg); border: var(--b-light); background: #FFFFFF; transition: transform var(--t-std) var(--e-out), box-shadow var(--t-std) var(--e-out), border-color var(--t-std) var(--e-out); }
.on-dark .c, .bg-ink .c { background: var(--ink-soft); border-color: rgba(255,255,255,.58); }
.c-lift:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.on-dark .c-lift:hover { transform: translateY(-3px); box-shadow: none; border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.055); }

/* product card */
.c-product { padding: var(--s-5); display: flex; flex-direction: column; gap: .6rem; }
.c-product .ci { width: 34px; height: 34px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--emerald-tint); color: var(--emerald-700); margin-bottom: .4rem; }
.c-product .ci svg { width: 17px; height: 17px; }
.c-product h4 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; }
.c-product p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.c-product .link-arrow { margin-top: auto; padding-top: .9rem; }
.c-product[data-cat="payroll"]     .ci { background: var(--st-info-bg); color: var(--cat-payroll); }
.c-product[data-cat="performance"] .ci { background: #FBECF5; color: var(--cat-performance); }
.c-product[data-cat="attendance"]  .ci { background: var(--teal-tint); color: var(--cat-attendance); }

/* industry card */
.c-industry { padding: var(--s-5); position: relative; overflow: hidden; }
.c-industry .k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); }
.c-industry h4 { font-size: 1.14rem; margin: .7rem 0 .45rem; }
.c-industry ul { display: grid; gap: .3rem; margin-top: .9rem; }
.c-industry li { font-size: .85rem; color: var(--muted); padding-left: 1.05rem; position: relative; }
.c-industry li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 1.5px; background: var(--emerald); }

/* resource card */
.c-resource { overflow: hidden; display: flex; flex-direction: column; }
.c-resource .thumb { aspect-ratio: 16/9; background: linear-gradient(140deg, var(--ink-soft), var(--ink)); position: relative; }
.c-resource .thumb .g { position: absolute; inset: 0; }
.c-resource .body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.c-resource h4 { font-size: 1.04rem; line-height: 1.3; }
.c-resource p { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.c-resource .meta { margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

/* metric card */
.c-metric { padding: var(--s-5); }
.c-metric .k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); }
.c-metric .v { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -.045em; color: var(--ink); line-height: 1; margin-top: .6rem; font-variant-numeric: tabular-nums; }
.c-metric .v.gold { color: var(--gold); }
.c-metric .d { font-size: .84rem; color: var(--muted); margin-top: .5rem; }
.on-dark .c-metric .v { color: #fff; }
.on-dark .c-metric .v.gold { color: var(--gold); }

/* testimonial card — real quotes only */
.c-quote { padding: var(--s-5); display: flex; flex-direction: column; gap: 1.1rem; }
.c-quote blockquote { font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); letter-spacing: -.008em; }
.c-quote .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.c-quote .av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--mist); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--ink-3); }
.c-quote .who b { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
.c-quote .who span { display: block; font-size: .82rem; color: var(--muted); }
.on-dark .c-quote blockquote { color: rgba(255,255,255,.88); }
.on-dark .c-quote .who b { color: #fff; }

/* integration card */
.c-integration { padding: var(--s-4) var(--s-5); display: flex; align-items: center; gap: .9rem; }
.c-integration .mark { width: 36px; height: 36px; border-radius: var(--r-xs); flex: none; display: grid; place-items: center; background: var(--paper-2); color: var(--emerald-700); }
.c-integration b { display: block; font-size: .94rem; font-weight: 600; color: var(--ink); }
.c-integration span { display: block; font-size: .8rem; color: var(--muted); }

/* ── 5. TRUST LOGO WALL ─────────────────────────────────────────────────── */
.logowall { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-5) var(--s-6); align-items: center; }
.logowall img { max-height: 34px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: .55; transition: filter var(--t-std) var(--e-out), opacity var(--t-std) var(--e-out); }
.logowall img:hover { filter: none; opacity: 1; }
.logowall .placeholder { height: 34px; border: 1px dashed var(--line); border-radius: var(--r-xs); display: grid; place-items: center; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* ── 6. ACCORDION / FAQ ─────────────────────────────────────────────────── */
.acc { border-top: var(--b-light); }
.acc details { border-bottom: var(--b-light); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-size: 1.04rem; font-weight: 600; color: var(--ink); letter-spacing: -.015em;
  min-height: 44px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ind { width: 22px; height: 22px; flex: none; border-radius: 50%; border: var(--b-light); display: grid; place-items: center; transition: transform var(--t-std) var(--e-out), background var(--t-std) var(--e-out), border-color var(--t-std) var(--e-out); }
.acc summary .ind::before, .acc summary .ind::after { content: ''; position: absolute; background: var(--ink-3); border-radius: 2px; }
.acc summary .ind::before { width: 9px; height: 1.5px; }
.acc summary .ind::after  { width: 1.5px; height: 9px; transition: opacity var(--t-fast) var(--e-out); }
.acc details[open] summary .ind { background: var(--emerald); border-color: var(--emerald); }
.acc details[open] summary .ind::before { background: #fff; }
.acc details[open] summary .ind::after { opacity: 0; }
.acc .acc-body { padding-bottom: 1.4rem; font-size: .97rem; line-height: 1.65; color: var(--ink-3); max-width: 68ch; }
.on-dark .acc, .on-dark .acc details { border-color: rgba(255,255,255,.58); }
.on-dark .acc summary { color: #fff; }
.on-dark .acc .acc-body { color: rgba(255,255,255,.7); }

/* ── 7. STICKY SUB-NAVIGATION ───────────────────────────────────────────── */
.subnav { position: sticky; top: 72px; z-index: 60; background: rgba(246,247,244,.92); backdrop-filter: blur(14px); border-bottom: var(--b-light); }
.subnav ul { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .9rem; font-size: .9rem; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out); }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--emerald); }

/* ── 8. TABLES ──────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border: var(--b-light); border-radius: var(--r-lg); background: #fff; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
.tbl th, .tbl td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tbl thead th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper); border-bottom: var(--b-light); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--paper); }
.tbl .num-cell { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.tbl .yes { color: var(--emerald); font-weight: 600; }
.tbl .no  { color: var(--muted-2); }
.tbl caption { caption-side: bottom; padding-top: .9rem; font-size: .8rem; color: var(--muted-2); text-align: left; }

/* ── 9. PRICING ─────────────────────────────────────────────────────────── */
.price-card { padding: var(--s-6); display: flex; flex-direction: column; height: 100%; }
.price-card .pc-top { padding-bottom: var(--s-5); border-bottom: var(--b-light); }
.price-card .amt { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.045em; color: var(--ink); line-height: 1; margin-top: .9rem; }
.price-card .unit { display: block; font-size: .88rem; font-weight: 400; color: var(--muted); margin-top: .6rem; letter-spacing: 0; }
.price-card ul { display: grid; gap: .6rem; margin-top: var(--s-5); }
.price-card li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ink-3); }
.price-card li svg { width: 15px; height: 15px; flex: none; margin-top: .26rem; color: var(--emerald); }
.price-card .pc-cta { margin-top: auto; padding-top: var(--s-5); }
.price-card--dark { background: var(--ink); border-color: transparent; }
.price-card--dark .amt, .price-card--dark h3 { color: #fff; }
.price-card--dark li { color: rgba(255,255,255,.8); }
.price-card--dark li svg { color: var(--emerald-300); }
.price-card--dark .pc-top { border-bottom-color: rgba(255,255,255,.58); }
.price-card--dark .unit { color: rgba(255,255,255,.58); }
.price-note { font-size: .84rem; color: var(--muted); margin-top: var(--s-4); }

/* ── 10. CALLOUTS ───────────────────────────────────────────────────────── */
.callout { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; padding: var(--s-4) var(--s-5); border-radius: var(--r); border-left: 3px solid var(--emerald); background: var(--emerald-tint); }
.callout .ci svg { width: 18px; height: 18px; color: var(--emerald-700); }
.callout b { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.callout p { font-size: .92rem; line-height: 1.6; color: var(--ink-3); }
.callout--tip     { border-left-color: var(--violet);  background: var(--st-info-bg); }
.callout--tip .ci svg { color: var(--st-info); }
.callout--note    { border-left-color: var(--muted-2); background: var(--paper); }
.callout--compliance { border-left-color: var(--gold); background: var(--gold-tint); }
.callout--compliance .ci svg { color: var(--st-warning-ink); }
.callout--takeaway { border-left-color: var(--magenta); background: #FBECF5; }
.callout--takeaway .ci svg { color: var(--magenta); }
.pullquote { border-left: 3px solid var(--emerald); padding-left: var(--s-5); font-size: 1.22rem; line-height: 1.5; letter-spacing: -.015em; color: var(--ink); font-weight: 500; }

/* ── 11. ALERTS / TOASTS ────────────────────────────────────────────────── */
.toast { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border-radius: var(--r); background: #fff; border: var(--b-light); box-shadow: var(--sh-md); font-size: .92rem; color: var(--ink-2); }
.toast .ti { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.toast .ti svg { width: 12px; height: 12px; color: #fff; }
.toast--success .ti { background: var(--st-success); }
.toast--error   .ti { background: var(--st-error); }
.toast--warning .ti { background: var(--st-warning); }
.toast--info    .ti { background: var(--st-info); }

/* ── 12. MODAL ──────────────────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,26,22,.55); backdrop-filter: blur(3px); z-index: 200; display: grid; place-items: center; padding: var(--s-4); }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: var(--s-5) var(--s-5) 0; }
.modal-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.modal-x { width: 36px; height: 36px; border-radius: var(--r-xs); border: var(--b-light); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-3); flex: none; }
@media (max-width: 640px) { .modal { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: auto; max-height: 92vh; } .modal-backdrop { align-items: end; padding: 0; } }

/* ── 13. EMPTY & LOADING STATES ─────────────────────────────────────────── */
.empty { text-align: center; padding: var(--s-9) var(--s-5); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty .ei { width: 44px; height: 44px; border-radius: var(--r); background: var(--paper-2); display: grid; place-items: center; margin: 0 auto var(--s-4); color: var(--emerald-700); }
.empty h4 { font-size: 1.05rem; }
.empty p { font-size: .92rem; color: var(--muted); margin-top: .45rem; max-width: 42ch; margin-inline: auto; }
.skel { background: linear-gradient(90deg, var(--paper-2) 25%, #F4F8F6 37%, var(--paper-2) 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: var(--r-xs); }
@keyframes skel { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.skel-line { height: 12px; }
.bar { height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--emerald); }

/* ── 14. DATA VISUALISATION ─────────────────────────────────────────────── */
.dv-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .82rem; color: var(--muted); }
.dv-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.dv-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.dv-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.dv-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--dv-1); opacity: .85; display: block; transition: opacity var(--t-fast) var(--e-out); }
.dv-bars i:hover { opacity: 1; }
.dv-x { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; color: var(--muted-2); margin-top: .6rem; }
.dv-spark { display: block; width: 100%; height: 34px; }
.dv-donut { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.dv-donut::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: #fff; }
.dv-donut b { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.04em; }
.on-dark .dv-donut::after { background: var(--ink-soft); }
.status-dot { display: inline-flex; align-items: center; gap: .45em; font-size: .84rem; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-dot--ok   { color: var(--st-success); }
.status-dot--warn { color: var(--st-warning); }
.status-dot--err  { color: var(--st-error); }
.status-dot--info { color: var(--st-info); }

/* ── 15. ARTICLE ────────────────────────────────────────────────────────── */
.article { max-width: var(--c-read); }
.article > * + * { margin-top: 1.35rem; }
.article h2 { font-size: 1.62rem; margin-top: 2.6rem; }
.article h3 { font-size: 1.24rem; margin-top: 2rem; }
.article p  { font-size: 1.06rem; line-height: 1.75; color: var(--ink-3); }
.article ul, .article ol { display: grid; gap: .6rem; padding-left: 1.3rem; }
.article ul { list-style: disc; } .article ol { list-style: decimal; }
.article li { font-size: 1.04rem; line-height: 1.7; color: var(--ink-3); }
.article img { border-radius: var(--r-lg); border: var(--b-light); }
.article a { color: var(--emerald-700); border-bottom: 1px solid rgba(8,127,91,.3); }
.article a:hover { border-bottom-color: var(--emerald); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem; font-size: .86rem; color: var(--muted); }
.byline .av { width: 34px; height: 34px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.toc { border: var(--b-light); border-radius: var(--r); padding: var(--s-4) var(--s-5); background: var(--paper); }
.toc h5 { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.toc ol { display: grid; gap: .45rem; margin-top: .8rem; counter-reset: toc; }
.toc a { font-size: .9rem; color: var(--ink-3); }
.toc a:hover { color: var(--emerald-700); }

/* ── 16. CALCULATOR SHELL ───────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { padding: var(--s-6); border-radius: var(--r-lg); border: var(--b-light); background: #fff; display: grid; gap: var(--s-4); }
.calc-result { padding: var(--s-6); border-radius: var(--r-lg); background: var(--ink); color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.calc-result .rk { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.calc-result .rv { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 700; letter-spacing: -.045em; color: #fff; line-height: 1; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.calc-lines { display: grid; gap: 1px; background: rgba(255,255,255,.1); border: var(--b-dark); border-radius: var(--r); overflow: hidden; margin-top: var(--s-5); }
.calc-line { background: rgba(255,255,255,.03); padding: .8rem 1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.calc-line b { font-family: var(--font-mono); color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-line--total { background: rgba(19,185,129,.12); }
.calc-assump { font-size: .82rem; color: var(--muted); margin-top: var(--s-4); }

/* ── 17. PRODUCT SCREENSHOT TREATMENTS ──────────────────────────────────── */
.shot { border-radius: var(--r-shot); overflow: hidden; background: #fff; border: var(--b-light); box-shadow: var(--sh-lg); }
.on-dark .shot, .bg-ink .shot { border-color: rgba(255,255,255,.58); box-shadow: var(--shadow-plum); }
.shot-chrome { display: flex; align-items: center; gap: .5rem; padding: 9px 13px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.shot-chrome .dots { display: flex; gap: 5px; }
.shot-chrome .dots i { width: 8px; height: 8px; border-radius: 50%; background: #D3DBD7; display: block; }
.shot-chrome .url { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); margin-inline: auto; }
.shot-float { position: absolute; border-radius: var(--r); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--sh-md); padding: .7rem .85rem; }
.shot-stack { position: relative; }
.shot-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
@media (max-width: 860px) { .shot-split { grid-template-columns: 1fr; } }

/* ── 18. DIVIDERS ───────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); border: 0; }
.divider--soft { background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider--em { height: 2px; width: 44px; background: var(--emerald); border-radius: 2px; }
.divider--gold { height: 1px; width: 36px; background: var(--gold); border: 0; }
.on-dark .divider { background: rgba(255,255,255,.1); }

/* ── 19. CTA BLOCKS ─────────────────────────────────────────────────────── */
.cta-light { padding: var(--s-8); border-radius: var(--r-xl); border: var(--b-light); background: var(--paper-2); display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between; }
.cta-dark { padding: clamp(36px, 4.4vw, 68px); border-radius: var(--r-xl); position: relative; isolation: isolate; overflow: hidden; color: rgba(255,255,255,.78); }
.cta-dark::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(680px 340px at 10% 0%, rgba(19,185,129,.28), transparent 62%),
              radial-gradient(600px 320px at 94% 100%, rgba(63,50,141,.26), transparent 60%),
              linear-gradient(150deg, var(--ink-soft), var(--ink)); }
.cta-product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,3.4vw,56px); align-items: center; }
@media (max-width: 900px) { .cta-product { grid-template-columns: 1fr; } }

/* ── Text-arrow link ────────────────────────────────────────────────────────
   Shared primitive: used by the homepage sections and by every template
   page, so it lives with the components rather than inside one section. */
/* deep-exploration links — text arrows, never buttons at this tier */
.tlink {
  font-size: .9rem; font-weight: 600; color: var(--emerald-700); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  border-bottom: 1px solid rgba(6,100,74,.26); padding-bottom: 2px;
  transition: border-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.tlink:hover { color: var(--emerald); border-bottom-color: var(--emerald); }
.tlink svg { width: 13px; height: 13px; }
.on-dark .tlink { color: var(--emerald-300); border-bottom-color: rgba(95,214,172,.3); }
.on-dark .tlink:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
