/* ==========================================================================
   Xfund Invoice Factoring — site-wide stylesheet
   Brand: orange #f26722 (primary) + black (from the Xfund logo)
   Design direction: clean modern fintech, B2B-professional, lots of air
   ========================================================================== */

:root {
  /* brand */
  --orange:       #f26722;
  --orange-dark:  #d6540f;
  --orange-deep:  #b1440a;
  --orange-soft:  #fde5d7;
  --orange-mist:  #fdf4ee;
  --black-deep:   #16181d;   /* dark sections / bands */
  --black-ink:    #0b0c0f;   /* footer, deepest black */

  /* neutrals */
  --ink:        #15171c;
  --ink-soft:   #494d55;
  --ink-faint:  #7b8088;
  --line:       #e6e4e0;
  --line-soft:  #f0efec;
  --bg:         #ffffff;
  --white:      #ffffff;
  --cream:      #f7f5f2;   /* warm light panel */

  /* type */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* shape + depth */
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 22px 55px rgba(15, 23, 41, 0.16);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.14; letter-spacing: -0.018em; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 40px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 103, 34, 0.32); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(242, 103, 34, 0.4); }
.btn-green { background: var(--black-deep); color: #fff; }
.btn-green:hover { background: var(--black-ink); }
.btn-dark { background: var(--black-deep); color: #fff; }
.btn-dark:hover { background: var(--black-ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--black-deep); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: var(--line-soft); }
.btn-lg { font-size: 17.5px; padding: 17px 36px; }
.btn-sm { font-size: 14px; padding: 10px 20px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- header ---------- */
.topbar {
  background: var(--black-deep); color: #d6d4d0; font-size: 13.5px;
  padding: 7px 0; text-align: center;
}
.topbar strong { color: #fff; }
.topbar a { color: #ff9b63; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row { display: flex; align-items: center; gap: 14px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand .brand-logo { height: 44px; width: auto; max-width: none; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  padding: 9px 10px; border-radius: 10px; background: none; border: none;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--ink); background: var(--line-soft); }
.nav-links .caret { transition: transform 0.2s; }
.nav-links li.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 340px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px; display: none; z-index: 110;
}
li.open > .dropdown { display: block; }
.dropdown a {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px;
}
.dropdown a:hover { background: var(--orange-mist); }
.dropdown .dd-ic {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark);
}
.dropdown a:nth-child(even) .dd-ic { background: var(--black-deep); color: #fff; }
.dropdown .dd-t { display: block; font-weight: 700; font-size: 15px; font-family: var(--font-head); margin-bottom: 3px; }
.dropdown .dd-d { display: block; font-size: 13px; color: var(--ink-faint); line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--orange-dark); white-space: nowrap; }

.nav-burger {
  display: none; background: none; border: none; width: 44px; height: 44px;
  border-radius: 12px; place-items: center;
}
.nav-burger:hover { background: var(--line-soft); }
.nav-burger svg { width: 26px; height: 26px; }

@media (max-width: 1360px) { .nav-phone { display: none; } }
@media (max-width: 1080px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: grid; }
  .mobile-menu {
    display: none; position: fixed; inset: 74px 0 0 0; background: var(--bg);
    z-index: 99; overflow-y: auto; padding: 24px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block; padding: 16px 8px; font-family: var(--font-head);
    font-weight: 700; font-size: 19px; border-bottom: 1px solid var(--line-soft);
  }
  .mobile-menu .mm-group { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 700; margin: 22px 8px 4px; }
  .mobile-menu .btn { margin-top: 22px; }
}
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* ---------- hero ---------- */
.hero { padding: 76px 0 88px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -160px; right: -140px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(242,103,34,0.10), transparent 62%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 18px 0 20px; }
.hero h1 .hl { color: var(--orange); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 12px; }
.hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 54ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--ink-soft); flex-wrap: wrap; }
.hero-proof .stars { color: #f5a623; letter-spacing: 2px; font-size: 16px; }
.hero-proof strong { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-dark); background: var(--orange-soft);
  padding: 7px 16px; border-radius: 999px;
}
.eyebrow.green { color: #fff; background: var(--black-deep); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

@media (max-width: 980px) {
  .hero { padding: 44px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- calculator card ---------- */
.calc-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px; position: relative;
}
.calc-card::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 90px; height: 90px;
  background: radial-gradient(circle at 30% 30%, var(--orange-soft), transparent 70%);
  z-index: -1; border-radius: 50%;
}
.calc-amount { text-align: center; margin-bottom: 6px; }
.calc-amount .val { font-family: var(--font-head); font-weight: 800; font-size: 46px; letter-spacing: -0.02em; }
.calc-amount .lbl { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(to right, var(--orange) 0%, var(--orange) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: none; margin: 18px 0 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--orange);
  box-shadow: var(--shadow-md); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--orange);
  box-shadow: var(--shadow-md); cursor: grab;
}
.range-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-faint); font-weight: 600; margin-bottom: 18px; }

/* ---------- arched slider ---------- */
.arc-slider { position: relative; margin: 20px 0 10px; touch-action: none; }
.arc-slider .arc-svg { width: 100%; height: auto; display: block; overflow: visible; cursor: pointer; }
.arc-slider .arc-track { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.arc-slider .arc-progress { fill: none; stroke: var(--orange); stroke-width: 4.5; stroke-linecap: round; }
.arc-slider .arc-thumb {
  fill: var(--orange); stroke: var(--white); stroke-width: 4; cursor: grab;
  filter: drop-shadow(0 5px 10px rgba(242, 103, 34, 0.45));
  transition: r 0.12s ease;
}
.arc-slider.dragging .arc-thumb { cursor: grabbing; r: 17; }
.arc-slider:focus-within .arc-thumb { stroke: var(--orange-soft); stroke-width: 6; }
.arc-slider input[type="range"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none;
}
.arc-end {
  position: absolute; top: -8px; z-index: 1;
  font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink);
  line-height: 1.15; pointer-events: none;
}
.arc-end small { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.05em; text-transform: uppercase; }
.arc-min { left: 0; }
.arc-max { right: 0; text-align: right; }

.calc-rows { border-top: 1px dashed var(--line); padding-top: 16px; margin-bottom: 20px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 15px; color: var(--ink-soft); }
.calc-row strong { font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.calc-row.hero-line strong { color: var(--orange-dark); }
.calc-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; }
.calc-row.total strong { font-size: 24px; color: var(--orange-dark); }
.calc-note { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin-top: 14px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.tint { background: var(--cream); }
.section.navy { background: var(--black-deep); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 16px 0 14px; }
.section-head p { font-size: 17.5px; color: var(--ink-soft); }
@media (max-width: 640px) { .section { padding: 62px 0; } }

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

.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.product-card .pc-ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-dark);
}
.product-card.green .pc-ic { background: var(--black-deep); color: #fff; }
.product-card h3 { font-size: 20px; }
.product-card .pc-amount { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--orange-dark); }
.product-card p { font-size: 15px; color: var(--ink-soft); flex-grow: 1; }
.product-card .pc-link { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--orange-dark); display: inline-flex; align-items: center; gap: 7px; }
.product-card .pc-link .arr { transition: transform 0.2s; }
.product-card:hover .pc-link .arr { transform: translateX(4px); }
.pc-tag {
  position: absolute; top: 20px; right: 20px; font-size: 11.5px; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--orange); color: #fff; padding: 4px 12px; border-radius: 999px;
}

/* ---------- process steps (connected) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }
.steps-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid.four { grid-template-columns: 1fr; } }
.step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 28px; position: relative;
}
.step-card .num {
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--black-deep); color: #fff; margin-bottom: 18px;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 16px; }
.split p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.check-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; }
.check-list .ck {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center;
}
.check-list strong { font-family: var(--font-head); }

/* ---------- dark band ---------- */
.dark-band { background: var(--black-deep); color: #d8d7d4; border-radius: var(--radius-xl); padding: 64px; position: relative; overflow: hidden; }
.dark-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(242,103,34,0.32), transparent 65%); border-radius: 50%;
}
.dark-band::before {
  content: ""; position: absolute; left: -100px; bottom: -140px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(242,103,34,0.14), transparent 66%); border-radius: 50%;
}
.dark-band .eyebrow { background: rgba(255,255,255,0.12); color: #ffab77; }
.dark-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.dark-band p { color: #b6b5b1; max-width: 60ch; font-size: 17px; }
.dark-band > * { position: relative; z-index: 1; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; position: relative; z-index: 1; }
.stat-strip .stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); color: #fff; }
.stat-strip .stat .n em { font-style: normal; color: var(--orange); }
.stat-strip .stat .l { font-size: 14px; color: #a5a4a0; font-weight: 600; }
@media (max-width: 860px) {
  .dark-band { padding: 44px 28px; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.quote-card .stars { color: #f5a623; letter-spacing: 3px; margin-bottom: 14px; }
.quote-card blockquote { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; flex-grow: 1; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--orange); font-size: 15px;
}
.quote-card .who .nm { font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.quote-card .who .mt { font-size: 13px; color: var(--ink-faint); }

.quote-grid { transition: opacity 0.22s ease; }
.quote-grid.fading { opacity: 0; }
.reviews-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.rev-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--white); font-size: 18px; color: var(--ink-soft); display: grid; place-items: center;
  transition: all 0.15s;
}
.rev-arrow:hover { border-color: var(--orange); color: var(--orange-dark); transform: translateY(-1px); }
.rev-dots { display: flex; gap: 8px; }
.rev-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: var(--line); transition: all 0.15s; padding: 0; cursor: pointer;
}
.rev-dots button.on { background: var(--orange); transform: scale(1.25); }

/* ---------- logos / trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.trust-strip .tl {
  font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: 9px; opacity: 0.85;
}
.trust-strip .tl svg { color: var(--ink-faint); }

/* ---------- accordion ---------- */
.accordion { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.acc-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .pm {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark);
  font-weight: 800; transition: transform 0.2s;
}
.acc-item[open] summary .pm { transform: rotate(45deg); background: var(--black-deep); color: #fff; }
.acc-item .acc-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15.5px; }
.acc-item .acc-body a { color: var(--orange-dark); font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--orange) 0%, #f57a35 55%, #f89055 100%);
  color: #fff; border-radius: var(--radius-xl); padding: 62px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12);
}
.cta-banner::before { width: 260px; height: 260px; left: -80px; bottom: -120px; }
.cta-banner::after { width: 200px; height: 200px; right: -60px; top: -80px; }
.cta-banner h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-banner p { font-size: 17.5px; opacity: 0.94; max-width: 56ch; margin: 0 auto 30px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }
.cta-banner .btn-white { background: #fff; color: var(--orange-dark); }
.cta-banner .btn-white:hover { background: var(--orange-mist); }
.cta-banner .btn + .btn { margin-left: 10px; }
@media (max-width: 640px) { .cta-banner { padding: 44px 24px; } .cta-banner .btn + .btn { margin-left: 0; margin-top: 12px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 66px 0 58px; background: linear-gradient(180deg, var(--orange-mist), var(--bg)); border-bottom: 1px solid var(--line-soft); }
.page-hero .ph-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 18px 0 16px; }
.page-hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 56ch; margin-bottom: 28px; }
.page-hero.green { background: linear-gradient(180deg, var(--orange-mist), var(--bg)); }
@media (max-width: 940px) { .page-hero .ph-grid { grid-template-columns: 1fr; gap: 36px; } }

.fact-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.fact-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 18px; font-size: 14px; box-shadow: var(--shadow-sm);
}
.fact-chip strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--orange-dark); }

/* ---------- rate / info tables ---------- */
.info-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
table.info { width: 100%; border-collapse: collapse; min-width: 520px; }
table.info th, table.info td { padding: 15px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
table.info thead th { background: var(--black-deep); color: #fff; font-family: var(--font-head); font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; }
table.info tbody tr:last-child td { border-bottom: none; }
table.info td strong { font-family: var(--font-head); }

/* ---------- forms (application) ---------- */
.apply-shell { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding: 48px 0 90px; }
@media (max-width: 940px) { .apply-shell { grid-template-columns: 1fr; gap: 24px; } }

.apply-side { position: sticky; top: 100px; }
.apply-side .as-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.apply-side h2 { font-size: 19px; margin-bottom: 4px; }
.apply-side .as-product { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 20px; }
.apply-steps { list-style: none; display: grid; gap: 4px; }
.apply-steps li {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px;
  border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-faint);
}
.apply-steps li .sn {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 12.5px;
  background: var(--line-soft); color: var(--ink-faint);
}
.apply-steps li.active { color: var(--ink); background: var(--orange-mist); }
.apply-steps li.active .sn { background: var(--orange); color: #fff; }
.apply-steps li.done { color: var(--ink); }
.apply-steps li.done .sn { background: var(--black-deep); color: #fff; }
.as-help { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); line-height: 1.55; }
.as-help a { color: var(--orange-dark); font-weight: 700; }

.apply-main {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); padding: 40px;
}
@media (max-width: 640px) { .apply-main { padding: 26px 20px; } }
.progress-track { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; margin-bottom: 30px; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), #ff9d5c); transition: width 0.35s ease; }

.form-step h2 { font-size: 26px; margin-bottom: 6px; }
.form-step .fs-sub { color: var(--ink-faint); font-size: 15px; margin-bottom: 28px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.f-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .f-grid { grid-template-columns: 1fr; } }

.f-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
.f-field label .req { color: var(--orange-dark); }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; font-size: 16px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 13px; background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.f-field textarea { min-height: 92px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--orange); background: var(--white);
  box-shadow: 0 0 0 4px rgba(242, 103, 34, 0.14);
}
.f-field.invalid input, .f-field.invalid select { border-color: #d64541; box-shadow: 0 0 0 4px rgba(214, 69, 65, 0.10); }
.f-field .f-err { display: none; color: #c0392b; font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.f-field.invalid .f-err { display: block; }
.f-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; }

.consent-box {
  background: var(--orange-mist); border: 1px solid #f4d3bc; border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px;
}
.consent-box input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.consent-box span { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.consent-box a { color: var(--orange-dark); font-weight: 700; text-decoration: underline; }

.form-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line-soft); }

.review-block { background: var(--cream); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.review-block h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-dark); margin-bottom: 10px; }
.review-block .rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.review-block .rv-item .k { font-size: 12px; color: var(--ink-faint); }
.review-block .rv-item .v { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .review-block .rv-grid { grid-template-columns: 1fr; } }

.success-panel { text-align: center; padding: 40px 10px; }
.success-panel .big-check {
  width: 88px; height: 88px; border-radius: 50%; background: var(--orange-soft);
  color: var(--orange-dark); display: grid; place-items: center; margin: 0 auto 26px;
}
.success-panel h2 { font-size: 30px; margin-bottom: 12px; }
.success-panel p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 10px; }
.success-panel .ref-chip {
  display: inline-block; margin: 16px 0 26px; background: var(--cream);
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
  padding: 12px 26px; border-radius: 14px; letter-spacing: 0.04em;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
.contact-info { display: grid; gap: 16px; }
.ci-item { display: flex; gap: 15px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.ci-item .ci-ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; }
.ci-item h3 { font-size: 16px; margin-bottom: 3px; }
.ci-item p, .ci-item a { font-size: 15px; color: var(--ink-soft); }
.ci-item a { color: var(--orange-dark); font-weight: 600; }

/* ---------- fine print / legal ---------- */
.fine-print { font-size: 13px; color: var(--ink-faint); line-height: 1.65; }
.fine-print a { text-decoration: underline; }
.legal-page h1 { font-size: clamp(30px, 4vw, 44px); margin: 20px 0 10px; }
.legal-page h2 { font-size: 22px; margin: 34px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }
.legal-page .updated { color: var(--ink-faint); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--black-ink); color: #b0afac; margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 66px 0 44px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer .f-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.site-footer .f-brand img.f-logo { height: 56px; width: auto; max-width: none; }
.site-footer p { font-size: 14px; line-height: 1.65; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.f-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--orange); }
.f-contact a { color: inherit; }
.f-contact a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding: 26px 0 34px; font-size: 12.5px; color: #8b8a87; line-height: 1.7; }
.footer-legal p { font-size: 12.5px; margin-bottom: 8px; }
.footer-legal strong { color: #b0afac; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: #d6d4d0; transition: background 0.15s;
}
.footer-social a:hover { background: var(--orange); color: #fff; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink-soft); display: grid; place-items: center;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--line-soft); color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: block; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), #ff9d5c);
  z-index: 200; transition: width 0.1s linear;
}

/* ==========================================================================
   Dark mode
   ========================================================================== */
:root[data-theme="dark"] {
  --orange:      #ff7a33;
  --orange-dark: #ff9257;
  --orange-deep: #ffa76f;
  --orange-soft: #3a2213;
  --orange-mist: #1f150d;
  --black-deep:  #1b1d23;   /* elevated dark panels */
  --black-ink:   #0e0f12;

  --ink:       #ecedef;
  --ink-soft:  #b3b6bc;
  --ink-faint: #83878f;
  --line:      #2a2d34;
  --line-soft: #1f2228;
  --bg:        #0f1115;
  --white:     #16181d;
  --cream:     #131519;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .site-header { background: rgba(15, 17, 21, 0.92); }
:root[data-theme="dark"] .brand .brand-name { color: var(--ink); }
:root[data-theme="dark"] input[type="range"] {
  background: linear-gradient(to right, var(--orange) 0%, var(--orange) var(--fill, 50%), var(--line) var(--fill, 50%));
}
:root[data-theme="dark"] .dark-band,
:root[data-theme="dark"] .section.navy { border: 1px solid var(--line); }
:root[data-theme="dark"] .fact-chip,
:root[data-theme="dark"] .calc-card,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .step-card,
:root[data-theme="dark"] .quote-card,
:root[data-theme="dark"] .ci-item,
:root[data-theme="dark"] .acc-item { border-color: var(--line); }
/* keep the black accent chips visible on dark surfaces */
:root[data-theme="dark"] .btn-green { background: #2c2f37; }
:root[data-theme="dark"] .btn-green:hover { background: #3a3e48; }
:root[data-theme="dark"] .eyebrow.green,
:root[data-theme="dark"] .product-card.green .pc-ic,
:root[data-theme="dark"] .dropdown a:nth-child(even) .dd-ic,
:root[data-theme="dark"] .acc-item[open] summary .pm,
:root[data-theme="dark"] .apply-steps li.done .sn,
:root[data-theme="dark"] .step-card .num { background: #2c2f37; color: #fff; }

/* ==========================================================================
   Client portal
   ========================================================================== */
.portal-body { background: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
.portal-body .site-header { flex-shrink: 0; }
.portal-tag {
  font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange-dark); background: var(--orange-soft);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---- auth ---- */
.portal-auth { flex: 1; display: flex; align-items: flex-start; padding: 104px 0 96px; }
@media (max-width: 640px) { .portal-auth { padding: 64px 0 72px; } }
.auth-wrap { display: flex; justify-content: center; width: min(1180px, 100% - 48px); margin-inline: auto; }
.auth-card {
  width: min(460px, 100%); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px 34px 30px;
}
.auth-tabs { display: flex; gap: 6px; background: var(--line-soft); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; font-family: var(--font-head); font-weight: 700;
  font-size: 14.5px; color: var(--ink-soft); padding: 9px 0; border-radius: 999px; transition: all 0.15s;
}
.auth-tabs button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-pane h1 { font-size: 26px; margin-bottom: 6px; }
.auth-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }
.auth-error { color: #d43325; font-size: 13.5px; font-weight: 600; margin: -6px 0 12px; }
.auth-ok { color: var(--orange-dark); font-size: 13.5px; font-weight: 700; margin: -6px 0 12px; }
.auth-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; text-align: center; line-height: 1.55; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.opt { font-weight: 500; color: var(--ink-faint); font-size: 0.85em; }

/* ---- dashboard ---- */
.portal-dash { flex: 1; padding: 40px 0 70px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.dash-company { color: var(--ink-soft); font-weight: 600; margin-top: 3px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 980px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.stat-card .sc-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.stat-card .sc-val { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.stat-card .sc-sub { font-size: 12.5px; color: var(--ink-faint); }
.stat-card.accent { background: var(--black-deep); border-color: var(--black-deep); }
.stat-card.accent .sc-label { color: #a5a4a0; }
.stat-card.accent .sc-val { color: var(--orange); }
.stat-card.accent .sc-sub { color: #a5a4a0; }

.dash-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 22px;
}
.dc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dc-head h2 { font-size: 20px; }
.dc-close { background: var(--line-soft); border: none; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; color: var(--ink-soft); }
.dc-close:hover { background: var(--line); color: var(--ink); }
.iv-preview {
  background: var(--orange-mist); border: 1px solid var(--orange-soft); border-radius: var(--radius);
  padding: 13px 16px; font-size: 14px; margin-bottom: 16px; line-height: 1.5;
}
.iv-preview strong { color: var(--orange-dark); }

.table-scroll { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.inv-table th {
  text-align: left; font-family: var(--font-head); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-faint); font-weight: 700;
  padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.inv-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); }
.inv-table tr:last-child td { border-bottom: none; }
.inv-table .inv-id { font-weight: 700; font-family: var(--font-head); }
.inv-table .inv-adv { font-weight: 700; color: var(--orange-dark); }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.st-review { background: var(--line-soft); color: var(--ink-soft); }
.st-advanced { background: var(--orange-soft); color: var(--orange-deep); }
.st-paid { background: var(--black-deep); color: #fff; }
.inv-empty { color: var(--ink-faint); font-size: 14.5px; padding: 18px 4px 4px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.acct-list div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.acct-list div:last-child { border-bottom: none; }
.acct-list dt { font-weight: 600; color: var(--ink-faint); font-size: 14px; }
.acct-list dd { font-weight: 700; font-size: 14.5px; text-align: right; }
.pw-details { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 14px; }
.pw-details summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--ink-faint);
}
.pw-details summary::-webkit-details-marker { display: none; }
.pw-details summary::before { content: "›"; font-weight: 800; transition: transform 0.15s; }
.pw-details[open] summary::before { transform: rotate(90deg); }
.pw-details summary:hover { color: var(--ink); }
.pw-details form { margin-top: 16px; }
.support-lede { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.support-hours { color: var(--ink-faint); font-size: 13px; margin-top: 14px; }
.help-box { background: var(--orange-mist); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: 14px; }
.help-box strong { font-family: var(--font-head); display: block; margin-bottom: 4px; }
.help-box a { color: var(--orange-dark); font-weight: 700; }

.portal-foot { background: transparent; border-top: 1px solid var(--line); padding: 20px 0 26px; font-size: 13px; color: var(--ink-faint); text-align: center; }
.portal-foot a { color: var(--orange-dark); font-weight: 600; }

:root[data-theme="dark"] .auth-tabs button.on { background: var(--black-deep); }
:root[data-theme="dark"] .stat-card.accent { border-color: var(--line); }
:root[data-theme="dark"] .price-card.dark { border-color: var(--line); }

/* ==========================================================================
   Pricing page
   ========================================================================== */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin-inline: auto; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 40px 38px 34px; display: flex; flex-direction: column; box-shadow: var(--shadow-md);
}
.price-card .pr-label { font-weight: 700; font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.price-card .pr-rate {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 5vw, 54px);
  letter-spacing: -0.03em; color: var(--orange); line-height: 1; margin-bottom: 22px;
}
.price-card .pr-per { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-faint); margin-top: 8px; font-family: var(--font-body); }
.price-card .pr-points { list-style: none; margin: 0 0 28px; flex: 1; }
.price-card .pr-points li {
  position: relative; padding: 7px 0 7px 30px; font-size: 15px; color: var(--ink-soft); font-weight: 500;
}
.price-card .pr-points li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-dark); font-size: 12px; font-weight: 800;
}
.price-card.dark { background: var(--black-deep); border-color: var(--black-deep); }
.price-card.dark .pr-label { color: #b6b5b1; }
.price-card.dark .pr-rate { color: #fff; }
.price-card.dark .pr-per { color: #a5a4a0; }
.price-card.dark .pr-points li { color: #d8d7d4; }
.price-card.dark .pr-points li::before { background: rgba(242,103,34,0.22); color: var(--orange); }
.pr-foot { text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 22px; max-width: 70ch; margin-inline: auto; }

/* comparison tables */
.vs-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; max-width: 860px; margin-inline: auto; }
.vs-table th {
  font-family: var(--font-head); font-weight: 800; font-size: 16px; text-align: center;
  padding: 14px 18px; color: var(--ink);
}
.vs-table th.vs-us { color: var(--orange); }
.vs-table td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.vs-table td:first-child { font-weight: 600; color: var(--ink); }
.vs-table td:not(:first-child) { text-align: center; }
.vs-table td.vs-us { background: var(--orange-mist); font-weight: 700; color: var(--ink); }
.vs-table thead th.vs-us { background: var(--orange-mist); border-radius: 14px 14px 0 0; }
.vs-table tbody tr:last-child td.vs-us { border-radius: 0 0 14px 14px; }
.ck-yes {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 800;
}
.ck-yes.dim { background: var(--line); color: var(--ink-soft); }
.ck-no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--line-soft); color: var(--ink-faint); font-size: 12px; font-weight: 700;
}

/* dark-band variant */
.vs-table.on-dark th { color: #fff; }
.vs-table.on-dark th.vs-us { color: var(--orange); background: rgba(242,103,34,0.12); }
.vs-table.on-dark td { border-top-color: rgba(255,255,255,0.12); color: #b6b5b1; }
.vs-table.on-dark td:first-child { color: #fff; }
.vs-table.on-dark td.vs-us { background: rgba(242,103,34,0.12); color: #fff; }
.vs-table.on-dark .ck-no { background: rgba(255,255,255,0.1); color: #8b8a87; }

/* ==========================================================================
   Resources / blog
   ========================================================================== */
.res-cat {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-deep);
}
.res-cat.dark { background: var(--black-deep); color: #fff; }
.res-featured {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; overflow: hidden;
  background: var(--black-deep); border-radius: var(--radius-xl); color: #fff;
}
@media (max-width: 860px) { .res-featured { grid-template-columns: 1fr; } }
.res-featured .rf-body { padding: 52px 54px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.res-featured h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; }
.res-featured p { color: #b6b5b1; font-size: 16.5px; }
.res-featured .rf-art {
  background: linear-gradient(135deg, var(--orange) 0%, #f89055 100%);
  display: grid; place-items: center; min-height: 280px; position: relative; overflow: hidden;
}
.res-featured .rf-art svg { width: 46%; height: auto; opacity: 0.95; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .res-grid { grid-template-columns: 1fr; } }
.res-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.res-card .rc-art { height: 150px; display: grid; place-items: center; background: var(--orange-mist); }
.res-card:nth-child(even) .rc-art { background: var(--cream); }
.res-card .rc-art svg { width: 64px; height: 64px; color: var(--orange); }
.res-card:nth-child(even) .rc-art svg { color: var(--black-deep); }
.res-card .rc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.res-card h3 { font-size: 18.5px; line-height: 1.3; }
.res-card p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.res-card .rc-meta { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.res-card .pc-link { margin-top: 2px; }

/* article pages */
.article-hero { padding: 64px 0 34px; }
.article-hero .wrap { max-width: 780px; }
.article-hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 16px 0 14px; }
.article-hero .a-meta { color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.article-body { padding: 10px 0 40px; }
.article-body .wrap { max-width: 780px; }
.article-body h2 { font-size: 25px; margin: 40px 0 14px; }
.article-body h3 { font-size: 19px; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--orange-dark); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.takeaways {
  background: var(--orange-mist); border: 1px solid var(--orange-soft);
  border-radius: var(--radius-lg); padding: 26px 30px; margin: 30px 0;
}
.takeaways h2, .takeaways h3 { margin: 0 0 12px !important; font-size: 18px; }
.takeaways ul { margin-bottom: 0; }
.a-cta {
  background: var(--black-deep); color: #fff; border-radius: var(--radius-lg);
  padding: 30px 34px; margin: 36px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.a-cta strong { font-family: var(--font-head); font-size: 19px; display: block; margin-bottom: 4px; }
.a-cta p { margin: 0 !important; color: #b6b5b1 !important; font-size: 14.5px !important; }
