/* ==========================================================================
   webdevelopmentnepal.com: Design System
   Quiet, sleek, hand finished. Warm paper, ink, one deep green.
   Type: Instrument Sans (single family, no italics)
   ========================================================================== */

/* ----------------------------- Tokens ----------------------------------- */
:root {
  --paper:        #FAF9F5;
  --paper-2:      #F3F1EB;
  --card:         #FFFFFF;
  --ink:          #191814;
  --ink-2:        #403D36;
  --muted:        #6E6A5F;
  --muted-2:      #767163;
  --line:         #E6E2D6;
  --line-2:       #EFECE2;

  --accent:       #1F6B4E;
  --accent-2:     #14513A;
  --accent-soft:  #E7EFE9;
  --accent-tint:  rgba(31, 107, 78, 0.09);

  --dark:         #171512;
  --dark-2:       #211F1B;
  --dark-line:    #2E2B25;
  --dark-text:    #CBC7BC;
  --dark-muted:   #8F8A7E;
  --sage:         #A3C7B2;

  --font-display: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-1: 8px;  --r-2: 12px; --r-3: 16px; --r-4: 24px; --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(25, 24, 20, .05);
  --shadow-2: 0 2px 6px rgba(25, 24, 20, .05), 0 12px 32px rgba(25, 24, 20, .07);
  --shadow-3: 0 6px 18px rgba(25, 24, 20, .08), 0 28px 64px rgba(25, 24, 20, .14);

  --maxw: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ----------------------------- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* ----------------------------- Type ------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hl { color: var(--accent); }
em, i { font-style: normal; }
.h-display { font-size: clamp(2.45rem, 5.2vw, 4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.1; }
.h2 { font-size: clamp(1.62rem, 2.8vw, 2.25rem); line-height: 1.16; }
.h3 { font-size: clamp(1.2rem, 1.9vw, 1.42rem); line-height: 1.22; }
.lead { font-size: clamp(1.04rem, 1.4vw, 1.16rem); color: var(--muted); line-height: 1.66; text-wrap: pretty; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }
.small { font-size: .86rem; color: var(--muted); }
.accent { color: var(--accent); }

/* Section label: small serif italic, editorial */
.label {
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-2);
  display: inline-flex;
  align-items: baseline;
}
.label--light { color: var(--accent-2); }

/* ----------------------------- Layout ----------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.wrap--wide { max-width: 1280px; }
.wrap--narrow { max-width: 780px; }
.section { padding-block: clamp(60px, 8.5vw, 116px); }
.section--tight { padding-block: clamp(40px, 5.5vw, 72px); }
.section--paper2 { background: var(--paper-2); }
.section--ruled { border-top: 1px solid var(--line); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.grid { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head .lead { margin-top: 14px; }
.section-head .label + .h2, .section-head .label + h2 { margin-top: 14px; }
.center { text-align: center; margin-inline: auto; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 550; font-size: .95rem;
  padding: 13px 24px; border: 1px solid var(--bd); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn:hover { background: #2C2A24; border-color: #2C2A24; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn--accent { --bg: var(--accent); --bd: var(--accent); }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); }
.btn--outline-light { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--outline-light:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 1.01rem; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .22s var(--ease); flex: 0 0 auto; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 550; font-size: .93rem; color: var(--ink);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color .16s, border-color .16s;
}
.link-arrow .arrow { transition: transform .22s var(--ease); color: var(--accent); }
.link-arrow:hover { color: var(--accent-2); border-color: var(--accent); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow--light { color: var(--ink); }
.link-arrow--light:hover { color: var(--accent-2); }

/* ----------------------------- Badges ----------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 550; letter-spacing: .01em;
  padding: 6px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.badge--accent { color: var(--accent-2); border-color: var(--accent-soft); background: var(--accent-soft); }
.badge--on-dark { background: var(--card); border-color: var(--line); color: var(--muted); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3FBF7F; flex: 0 0 auto; box-shadow: 0 0 0 0 rgba(63,191,127,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,191,127,.45); } 70% { box-shadow: 0 0 0 7px rgba(63,191,127,0); } 100% { box-shadow: 0 0 0 0 rgba(63,191,127,0); } }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .86rem; font-weight: 500; padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  transition: all .16s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----------------------------- Cards ------------------------------------ */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: var(--s-6);
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--ink); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; color: var(--accent-2); margin-bottom: 20px; flex: 0 0 auto; }
.card__icon svg { stroke-width: 1.5; }
.card__num { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--muted-2); }

.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6); }
.tile h3 { font-size: 1.12rem; }
.tile p { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ----------------------------- Stat ------------------------------------- */
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; line-height: 1; font-variant-numeric: lining-nums; }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* ----------------------------- Forms ------------------------------------ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .86rem; font-weight: 550; color: var(--ink-2); }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-1);
  padding: 12px 15px; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.textarea { resize: vertical; min-height: 120px; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.field-hint { font-size: .78rem; color: var(--muted); }
.field-error { font-size: .8rem; color: #B3372A; display: none; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #B3372A; }
.field.invalid .field-error { display: block; }
select.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236E6A5F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.optgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt {
  border: 1px solid var(--line); border-radius: var(--r-1); padding: 12px 14px; cursor: pointer;
  font-size: .9rem; font-weight: 500; transition: all .15s var(--ease); background: var(--card);
  display: flex; align-items: center; gap: 9px;
}
.opt:hover { border-color: var(--ink); }
.opt input { accent-color: var(--accent); }
.opt.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }

/* ----------------------------- Lists ------------------------------------ */
.ticklist { display: grid; gap: 14px; }
.ticklist li { display: flex; gap: 12px; align-items: flex-start; }
.ticklist .tick { flex: 0 0 auto; color: var(--accent); display: inline-flex; margin-top: 4px; }
.eyrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); flex: 0 0 auto; }

/* ----------------------------- Reveal ----------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
.reveal[data-d="4"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================ HEADER / NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: 200; height: var(--nav-h);
  background: rgba(250, 249, 245, .86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }

.brand__name { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); }
.brand__np { color: var(--accent); }
.brand__sub { display: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
  padding: 9px 13px; border-radius: var(--r-pill);
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--paper-2); }
.nav__link.is-active { color: var(--accent-2); }
.nav__spacer { flex: 1; }
.nav__intl { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .15s; white-space: nowrap; }
.nav__intl:hover { color: var(--ink); }
.nav__cta { flex: 0 0 auto; }
.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); align-items: center; justify-content: center; flex-direction: column; gap: 4.5px; }
.nav__burger span { width: 17px; height: 1.6px; background: var(--ink); transition: .2s; }

/* dropdown */
.nav__item { position: relative; }
.nav__item::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: -24px; width: 720px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
  box-shadow: var(--shadow-3); padding: 20px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s var(--ease), visibility .16s, transform .16s var(--ease); z-index: 50;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.menu__head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 10px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 10px; }
.menu__head-t { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.menu__head-link { font-size: .9rem; font-weight: 550; color: var(--accent-2); }
.menu__head-link:hover { text-decoration: underline; }
.menu__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
.menu__item { display: flex; gap: 14px; padding: 12px; border-radius: 12px; transition: background .14s; align-items: flex-start; }
.menu__item:hover { background: var(--paper-2); }
.menu__ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.menu__txt { display: block; min-width: 0; flex: 1; }
.menu__t { display: block; font-weight: 600; font-size: .97rem; line-height: 1.35; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu__d { display: block; margin-top: 3px; font-size: .82rem; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line-2); margin-top: 12px; padding: 14px 6px 4px; }
.menu__foot-note { font-size: .92rem; color: var(--muted); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(23, 21, 18, .42); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 380px);
  background: var(--paper); box-shadow: var(--shadow-3);
  transform: translateX(100%); transition: transform .3s var(--ease);
  padding: var(--s-5); overflow-y: auto;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__link { display: block; padding: 14px 4px; font-size: 1.06rem; font-weight: 500; font-family: var(--font-display); border-bottom: 1px solid var(--line-2); }
.drawer__link.sub { padding-left: 16px; font-size: .95rem; color: var(--muted); font-family: var(--font-body); }
.drawer__meta { font-size: .82rem; color: var(--muted); margin-top: 18px; }

@media (max-width: 1080px) {
  .nav__links, .nav__intl { display: none; }
  .nav__burger { display: flex; }
  .nav__cta .btn-text { display: none; }
}
@media (max-width: 640px) {
  .brand__name { display: none; }
  .nav__inner { gap: 14px; }
}

/* ============================ FOOTER =================================== */
.footer { border-top: 1px solid var(--line); padding-top: var(--s-8); background: var(--paper); }
.footer h4 { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin-bottom: 16px; font-family: var(--font-body); text-transform: none; }
.footer a { color: var(--muted); font-size: .9rem; display: inline-block; padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--ink); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: var(--s-6); padding-bottom: var(--s-8); }
.footer__brand .brand__name { font-size: 1.15rem; }
.footer__brand .lead { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 300px; line-height: 1.6; }
.footer__fullname { font-size: .78rem; color: var(--muted-2); margin-top: 6px; }
.footer__pay { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pay-logo { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); background: var(--card); border-radius: var(--r-pill); padding: 5px 10px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0 30px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.footer__bottom a { font-size: .8rem; padding: 0; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; padding: 0; color: var(--muted); }
.footer__social a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============================ FLOATING WIDGETS ========================= */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 250; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-2);
  transition: transform .18s var(--ease); position: relative;
}
.fab:hover { transform: scale(1.06); }
.fab--chat { background: var(--accent); }
.fab__tip {
  position: absolute; right: 64px; white-space: nowrap; background: var(--ink); color: #fff;
  font-size: .78rem; padding: 8px 12px; border-radius: 10px;
  opacity: 0; pointer-events: none; transform: translateX(6px); transition: .18s; box-shadow: var(--shadow-2);
}
.fab:hover .fab__tip { opacity: 1; transform: none; }

.quotebar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 240;
  background: var(--ink); color: #fff; border-radius: var(--r-pill); box-shadow: var(--shadow-3);
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 22px; transition: transform .4s var(--ease);
  max-width: calc(100vw - 36px);
}
.quotebar.show { transform: translate(-50%, 0); }
.quotebar__txt { font-size: .9rem; font-weight: 500; }
.quotebar__txt b { color: var(--sage); font-weight: 600; }
.quotebar__close { color: var(--dark-muted); font-size: 1.1rem; padding: 0 8px; }
@media (max-width: 620px) { .quotebar__txt span { display: none; } .fab-stack { bottom: 84px; } }

/* ============================ MISC PAGE BITS =========================== */
.pagehero { padding-block: clamp(52px, 8vw, 96px) clamp(56px, 8vw, 104px); }
.breadcrumb { font-size: .82rem; color: var(--muted-2); display: flex; gap: 10px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb .sep { opacity: .55; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; padding: 22px 0; display: flex; justify-content: space-between;
  gap: 16px; align-items: center; font-weight: 550; font-size: 1.04rem; color: var(--ink);
  font-family: var(--font-body); line-height: 1.5;
}
.faq__q .ico { flex: 0 0 auto; color: var(--accent); transition: transform .25s var(--ease); }
.faq__item.open .faq__q .ico { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a-inner { padding-bottom: 24px; color: var(--muted); max-width: 66ch; }

.cta-band { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-4); padding: clamp(36px, 5.5vw, 64px); position: relative; }
.cta-band h2 { color: var(--ink); }
.cta-band .lead { color: var(--muted); }
.cta-band__inner { position: relative; z-index: 1; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-3); z-index: 400; transition: transform .35s var(--ease);
  display: flex; gap: 10px; align-items: center; font-size: .9rem;
}
.toast.show { transform: translate(-50%, 0); }
.toast .ok { color: var(--sage); display: inline-flex; }

/* ============================ SHARED CARDS ============================ */
/* case card (dark) */
.case-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 28px;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--hue, var(--accent)); box-shadow: var(--shadow-2); }
.case-card p { color: var(--muted); }
.case-card__top { display: flex; justify-content: space-between; align-items: center; }
.case-card__metric { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--hue, var(--sage)); }
.case-card__viz { margin-top: 18px; height: 116px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.case-card__viz svg { width: 100%; height: 100%; }
.case-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.case-card .arrow { transition: transform .2s var(--ease); color: var(--muted-2); }
.case-card:hover .arrow { transform: translateX(4px); }

/* process rail cell */
.prc { padding: 28px 28px 28px 0; border-left: 1px solid var(--line); padding-left: 28px; position: relative; }
.prc:first-child { border-left: 0; padding-left: 0; }
.prc__top { display: flex; align-items: center; justify-content: space-between; }
.prc__n { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--muted-2); }
.prc__ico { color: var(--accent-2); display: grid; place-items: center; }
.prc h3 { margin-top: 16px; }
.prc p { color: var(--muted); font-size: .88rem; margin-top: 8px; }
@media (max-width: 620px) {
  .prc { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
  .prc:first-child { border-top: 0; margin-top: 0; }
}

/* price mini row */
.price-mini__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--card);
  transition: border-color .16s, transform .16s;
}
.price-mini__row:hover { border-color: var(--ink); transform: translateX(3px); }
.price-mini__row.is-pop { border-color: var(--accent-soft); background: var(--accent-soft); }

/* blog card */
.blog-card { display: flex; flex-direction: column; transition: transform .2s var(--ease); }
.blog-card > div:last-child { flex: 1; display: flex; flex-direction: column; }
.blog-card .post-meta { margin-top: auto; padding-top: 12px; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card__viz { height: 168px; border-radius: var(--r-2); overflow: hidden; }
.blog-card:hover .blog-card__viz .cover { border-color: var(--ink); }
.blog-card__viz .cover { width: 100%; height: 100%; }

/* editorial cover block for posts and cases */
.cover {
  position: relative; display: flex; align-items: flex-end;
  border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden;
  background: var(--paper-2); padding: 18px; transition: border-color .2s;
}
.cover__glyph { position: absolute; right: -14px; top: -20px; font-family: var(--font-display); font-weight: 600; font-size: 130px; line-height: 1; color: var(--accent-soft); pointer-events: none; user-select: none; }
.cover__label { position: relative; font-size: .82rem; font-weight: 550; color: var(--ink-2); background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; backdrop-filter: blur(4px); }

/* testimonial card */
.t-card {
  flex: 0 0 min(440px, 86vw); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: var(--s-6); display: flex; flex-direction: column;
}
.t-card__q { color: var(--accent); opacity: .3; margin-bottom: 12px; }
.t-card blockquote { font-family: var(--font-display); font-weight: 450; font-size: 1.18rem; line-height: 1.5; color: var(--ink); flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.t-av { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .82rem; flex: 0 0 auto; }
.t-metric { margin-left: auto; font-size: .76rem; color: var(--accent-2); background: var(--accent-soft); padding: 5px 11px; border-radius: var(--r-pill); font-weight: 550; }

/* ============================ PROSE (articles) ============================ */
.prose { font-size: 1.05rem; line-height: 1.78; color: var(--ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.9em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.5em; }
.prose p { color: var(--ink-2); }
.prose .lead { color: var(--ink); font-size: 1.18rem; line-height: 1.65; }
.prose a { color: var(--accent-2); font-weight: 550; border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-color: var(--accent-2); }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 5px; top: 12px; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose blockquote {
  border-left: 2px solid var(--accent); padding: 6px 0 6px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.5; color: var(--ink);
}
.prose code { font-size: .86em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--accent-2); }
.callout { background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: var(--r-2); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; }
.callout svg { color: var(--accent-2); flex: 0 0 auto; margin-top: 3px; }
.callout p { margin: 0; font-size: .96rem; color: var(--ink-2); }

/* ============================ PAGE PATTERNS ============================ */
/* Inner page heroes share one rhythm. */
.pagehero h1 { margin-top: 20px; }
.pagehero .lead { margin-top: 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.pagehero .seg { margin-top: 28px; }

/* Card titles share one size. */
.card h3, .tile h3, .pcard h3, .case-card h3, .team-card h3, .svc-card h3 {
  font-size: 1.15rem;
  line-height: 1.32;
}
.card .link-arrow, .tile .link-arrow { margin-top: auto; padding-top: 18px; }
.label + .h2, .label + h2 { margin-top: 14px; }
.label + .h3, .label + h3 { margin-top: 10px; }
.prc h3 { font-size: 1.1rem; }
.blog-card h3 { font-size: 1.1rem; margin-top: 10px; }

/* Stats share one baseline. */
.stat { padding: 8px 0; }
.stat__num { font-weight: 600; }

/* Sidebar cards match the standard card padding. */
.svc-card { padding: var(--s-6); }

/* Filters sit 48px below the preceding block, grids 32px below filters. */
.filters { margin-top: 48px; }
.filters + .grid, .filters + div { margin-top: 32px; }

/* ============================ SERVICE DETAIL ============================ */
.svc-hero { max-width: 720px; }
.svc-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.svc-body > * + * { margin-top: 64px; }
.svc-process { display: grid; gap: 2px; }
.svc-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-step:last-child { border-bottom: 0; }
.svc-step__n { color: var(--accent-2); font-weight: 600; font-size: 1.05rem; flex: 0 0 34px; }
.svc-step__t { font-weight: 600; font-family: var(--font-display); font-size: 1.02rem; }
.svc-step__d { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.svc-aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6); }
.svc-card__h { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.svc-price { margin-top: 18px; padding: 14px 0; border-block: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.svc-price__num { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.svc-price__unit { font-size: .82rem; font-weight: 550; color: var(--muted); }
.svc-price__note { font-size: .8rem; color: var(--muted); }
.svc-quick { display: flex; gap: 8px; margin-top: 14px; }
.svc-quick a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; font-weight: 550; padding: 9px; border: 1px solid var(--line); border-radius: var(--r-1); color: var(--ink); transition: border-color .15s; }
.svc-quick a:hover { border-color: var(--ink); }
.svc-rel { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--r-1); font-size: .9rem; font-weight: 500; transition: background .15s; }
.svc-rel:hover { background: var(--paper-2); }
.svc-rel__ico { color: var(--muted); display: inline-flex; flex: 0 0 auto; }
.svc-rel .arrow { transition: transform .2s var(--ease); }
.svc-rel:hover .arrow { transform: translateX(3px); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } .svc-aside { position: static; } }

/* ============================ CASE STUDY ============================ */
.cs-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.cs-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cs-tech { font-size: .76rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r-pill); padding: 6px 13px; }
.cs-headline { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); padding: 28px; text-align: center; }
.cs-headline__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; margin: 10px 0; }
.case-viz { height: 220px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-2); overflow: hidden; }
.case-viz svg { width: 100%; height: 100%; display: block; }
.cs-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.cs-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.cs-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); padding: 28px; text-align: center; }
.cs-result__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.cs-quote { margin-top: 48px; background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: var(--r-3); padding: clamp(28px, 4vw, 48px); text-align: center; }
.cs-quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.45; color: var(--ink); max-width: 46ch; margin-inline: auto; letter-spacing: -0.01em; }
.cs-quote figcaption { color: var(--accent-2); margin-top: 18px; font-size: .88rem; }
@media (max-width: 860px) { .cs-hero, .cs-body, .cs-results { grid-template-columns: 1fr; } }

/* ============================ ARTICLE ============================ */
.art-meta { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.art-av { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: 0 0 auto; }
.art-author { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); }
.art-cta { background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: var(--r-3); padding: clamp(24px, 3vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.art-cta h3 { color: var(--ink); }

/* ----------------------------- Price card ----------------------------- */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6); position: relative; transition: transform .2s var(--ease), box-shadow .25s, border-color .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--ink); }
.pcard.is-pop { border-color: var(--ink); }
.pcard__tag { position: absolute; top: -13px; left: 26px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 550; padding: 6px 14px; border-radius: var(--r-pill); }
.pcard__price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__unit { font-size: .8rem; color: var(--muted); font-weight: 550; }
.price__amt { font-family: var(--font-display); font-weight: 600; font-size: 1.95rem; letter-spacing: -0.01em; }
.pcard__feats { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pcard__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); list-style: none; }
.pcard__feats span:first-child { color: var(--accent); font-weight: 600; flex: 0 0 auto; }
