/* =========================================================
   APEX MMC — Maliyyə & Mühasibatlıq
   Design language: "Canlı Baş Kitab" (Living Ledger)
   Tokens defined once, used everywhere.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  /* --- color tokens --- */
  --ink: #0f2439; /* deep ledger-navy, dark surfaces & headlines */
  --ink-2: #16324d; /* lighter navy for gradients/hover */
  --paper: #eff0e9; /* soft sage-linen page background */
  --paper-2: #e5e7dc; /* slightly deeper linen for alt sections */
  --surface: #ffffff; /* card white */
  --brass: #b8873a; /* brass/seal accent — CTAs, numerals */
  --brass-dark: #8f6423;
  --emerald: #1f5c4e; /* secondary accent — growth, confirmations */
  --emerald-2: #16463a;
  --charcoal: #1b2430; /* primary text */
  --muted: #5d6b70; /* secondary text */
  --rule: #d3cdb8; /* ledger rule lines / borders */
  --rule-dark: rgba(255, 255, 255, 0.14);
  --danger: #a3402f;

  /* --- type --- */
  --f-display: "Fraunces", "Georgia", serif;
  --f-body:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* --- scale --- */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --shadow-card:
    0 1px 2px rgba(15, 36, 57, 0.04), 0 8px 24px -12px rgba(15, 36, 57, 0.18);
  --shadow-lift: 0 20px 45px -20px rgba(15, 36, 57, 0.35);
  --container: 1180px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.12;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- utility ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-dark);
  display: inline-block;
}
.section {
  padding: 96px 0;
}
.section--tight {
  padding: 64px 0;
}
.section--dark {
  background: var(--ink);
  color: #dce3e6;
}
.section--dark h2,
.section--dark h3 {
  color: #f4f1e6;
}
.section--alt {
  background: var(--paper-2);
}
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.lede {
  font-size: 18px;
  color: var(--muted);
}
.section--dark .lede {
  color: #b7c4c9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brass);
  color: #221605;
}
.btn-primary:hover {
  background: var(--brass-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(184, 135, 58, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(15, 36, 57, 0.04);
}
.section--dark .btn-ghost {
  color: #f4f1e6;
  border-color: var(--rule-dark);
}
.section--dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #f4f1e6;
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(239, 240, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand .mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-s);
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a:hover,
.nav a.active {
  background: rgba(15, 36, 57, 0.06);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--f-mono);
}
.lang-btn:hover {
  border-color: var(--ink);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  min-width: 150px;
  padding: 6px;
  display: none;
  z-index: 60;
}
.lang-menu.open {
  display: block;
}
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--charcoal);
  text-align: left;
}
.lang-menu button:hover {
  background: var(--paper);
}
.lang-menu button[aria-current="true"] {
  color: var(--brass-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 9px 10px;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn-primary.btn-sm {
    display: none;
  }
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 28px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 12px 6px;
  border-bottom: 1px dashed var(--rule);
  font-size: 15.5px;
  font-weight: 500;
}
.mobile-nav a:last-child {
  border-bottom: none;
}

/* ---------- hero / ledger signature ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #edebdf;
  padding: 76px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero-copy .eyebrow {
  color: #d9b871;
}
.hero-copy .eyebrow::before {
  background: #d9b871;
}
.hero h1 {
  color: #f7f4e9;
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: #d9b871;
}
.hero p.lede {
  color: #bfc9cc;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: var(--f-mono);
  font-size: 28px;
  color: #f7f4e9;
}
.hero-stat span {
  font-size: 12.5px;
  color: #8fa0a5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* the ledger panel */
.ledger-panel {
  background: linear-gradient(180deg, #152e45, #0e2032);
  border: 1px solid rgba(217, 184, 113, 0.25);
  border-radius: var(--radius-l);
  padding: 26px 24px 18px;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.ledger-panel::before {
  content: "BAŞ KİTAB · GENERAL LEDGER";
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--brass);
  color: #221605;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.ledger-head {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 10px 10px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: #7e9096;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ledger-body {
  height: 210px;
  overflow: hidden;
  position: relative;
}
.ledger-track {
  display: flex;
  flex-direction: column;
  animation: ledgerScroll 14s linear infinite;
}
@keyframes ledgerScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
.ledger-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 11px 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  color: #c7d0d3;
  align-items: center;
}
.ledger-row .acct {
  color: #edebdf;
  font-family: var(--f-body);
  font-size: 13px;
}
.ledger-row .debit {
  color: #7fbfa8;
}
.ledger-row .credit {
  color: #e29c6b;
}
.ledger-row .bal {
  color: #d9b871;
}
.ledger-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 6px;
}
.seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--brass);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transform: rotate(-8deg);
  flex-shrink: 0;
}
.hero-wave {
  margin-top: 64px;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ---------- logo strip ---------- */
.trust-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.trust-marks {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.8;
}
.trust-marks span {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 6px;
}

/* ---------- service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card .num {
  font-family: var(--f-mono);
  color: var(--brass-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}
.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--emerald);
}
.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 0;
}
.card ul {
  margin-top: 14px;
}
.card ul li {
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 0 5px 20px;
  position: relative;
}
.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}
.card-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.card:hover .card-link svg {
  transform: translateX(3px);
}

/* ---------- why-us / stats band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 760px) {
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-cell {
  padding: 30px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-cell:nth-child(4n) {
  border-right: none;
}
.stat-cell b {
  display: block;
  font-family: var(--f-mono);
  font-size: 32px;
  color: var(--ink);
}
.stat-cell span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- process timeline ---------- */
.timeline {
  position: relative;
  padding-left: 8px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding-bottom: 38px;
  position: relative;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 52px;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: #f7f4e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 18px;
  z-index: 2;
}
.timeline-body h4 {
  margin-bottom: 6px;
  font-size: 18px;
}
.timeline-body p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- testimonials ---------- */
.testi-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 44px 44px 34px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.testi-quote {
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.testi-person {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 600;
}
.testi-name {
  font-weight: 600;
  font-size: 14.5px;
}
.testi-role {
  font-size: 12.5px;
  color: var(--muted);
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.testi-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--rule);
  padding: 0;
}
.testi-dots button.active {
  background: var(--brass);
  width: 22px;
  border-radius: 5px;
}
.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-arrow.left {
  left: -56px;
}
.testi-arrow.right {
  right: -56px;
}
@media (max-width: 860px) {
  .testi-arrow {
    display: none;
  }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--emerald);
  color: #eaf3ef;
  border-radius: var(--radius-l);
  padding: 56px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 8px;
}
.cta-banner p {
  color: #bfdad0;
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #aebbc0;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.footer-brand .brand {
  color: #f4f1e6;
}
.footer-brand .brand small {
  color: #7e9096;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  max-width: 280px;
  color: #8fa0a5;
}
.footer-col h4 {
  color: #f4f1e6;
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-col a:hover {
  color: #f4f1e6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: #7e9096;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row {
  display: flex;
  gap: 10px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row svg {
  width: 15px;
  height: 15px;
}

/* ---------- page header (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #edebdf;
  padding: 74px 0 54px;
}
.page-hero h1 {
  color: #f7f4e9;
  font-size: clamp(30px, 4vw, 46px);
}
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: #8fa0a5;
  margin-bottom: 18px;
}
.breadcrumb a:hover {
  color: #d9b871;
}

/* ---------- FAQ accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--rule);
}
.accordion-item:first-child {
  border-top: 1px solid var(--rule);
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}
.accordion-trigger .plus {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
}
.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--brass);
  transition: transform 0.2s;
}
.accordion-trigger .plus::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.accordion-trigger .plus::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.accordion-item.open .plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel-inner {
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 680px;
}

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 14.5px;
  background: var(--surface);
  color: var(--charcoal);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 135, 58, 0.15);
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: rgba(31, 92, 78, 0.1);
  border: 1px solid var(--emerald);
  color: var(--emerald-2);
  padding: 16px 18px;
  border-radius: var(--radius-s);
  font-size: 14px;
  margin-top: 18px;
}
.form-success.show {
  display: block;
}

/* ---------- pricing ---------- */
.plan-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.plan-toggle button {
  border: none;
  background: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.plan-toggle button.active {
  background: var(--ink);
  color: #f4f1e6;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}
.plan-card.featured {
  border-color: var(--brass);
  box-shadow: var(--shadow-lift);
  transform: scale(1.02);
}
.plan-badge {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--brass);
  color: #221605;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.plan-name {
  font-family: var(--f-mono);
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--brass-dark);
  margin-bottom: 10px;
}
.plan-price {
  font-family: var(--f-mono);
  font-size: 38px;
  color: var(--ink);
  margin-bottom: 2px;
}
.plan-price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.plan-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.plan-card ul {
  margin-bottom: 28px;
  flex-grow: 1;
}
.plan-card ul li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--rule);
}
.plan-card ul li:last-child {
  border-bottom: none;
}
.plan-card ul li svg {
  width: 16px;
  height: 16px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- calculator ---------- */
.calc-shell {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.calc-tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
}
.calc-tab {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.calc-tab.active {
  color: var(--ink);
  border-bottom-color: var(--brass);
}
.calc-body {
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) {
  .calc-body {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}
.calc-pane {
  display: none;
}
.calc-pane.active {
  display: contents;
}
.calc-result {
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-m);
  padding: 26px;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}
.calc-result-row:last-child {
  border-bottom: none;
}
.calc-result-row b {
  font-family: var(--f-mono);
  color: var(--ink);
}
.calc-result-row.total {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  border-bottom: none;
}
.calc-result-row.total b {
  font-size: 20px;
  color: var(--emerald-2);
}
.calc-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slider-row output {
  font-family: var(--f-mono);
  color: var(--brass-dark);
  font-weight: 600;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--brass);
}

/* ---------- portal (client login demo) ---------- */
.portal-wrap {
  min-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: radial-gradient(circle at 20% 20%, #16324d, #0f2439 60%);
}
.portal-card {
  background: var(--surface);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-l);
  padding: 40px 36px;
  box-shadow: var(--shadow-lift);
}
.portal-tabs {
  display: flex;
  gap: 6px;
  background: var(--paper);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.portal-tabs button {
  flex: 1;
  border: none;
  background: none;
  padding: 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.portal-tabs button.active {
  background: var(--ink);
  color: #f4f1e6;
}
.demo-note {
  background: rgba(184, 135, 58, 0.12);
  border: 1px solid rgba(184, 135, 58, 0.4);
  color: var(--brass-dark);
  font-size: 12.5px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  margin-bottom: 22px;
}

/* ---------- blog ---------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.post-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumb svg {
  width: 46px;
  height: 46px;
  color: var(--brass);
  opacity: 0.85;
}
.post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
  margin-bottom: 10px;
}
.post-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.post-body p {
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}
.post-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
}
.post-detail {
  display: none;
}
.post-detail.open {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  font-size: 14.5px;
  color: var(--charcoal);
}
.post-detail p {
  margin-bottom: 12px;
}

/* ---------- team ---------- */
.team-card {
  text-align: center;
}
.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 600;
}
.team-card h3 {
  font-size: 16.5px;
  margin-bottom: 2px;
}
.team-role {
  font-size: 13px;
  color: var(--brass-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.team-card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- misc ---------- */
.divider {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}
.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.tag-row span {
  font-family: var(--f-mono);
  font-size: 12px;
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #f4f1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 70;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}
