/* =========================================================================
   Vector Capital Services — design system
   Palette taken verbatim from the Vector Interactive Group brand sheet.
   Indigo/navy lead, violet/lavender support, orange carries every CTA.
   Magenta and coral are deliberately held back to accents only.
   ========================================================================= */

:root {
  /* Brand */
  --indigo:        #4B4BA8;
  --indigo-deep:   #2E2E6B;   /* navy — darkened indigo, for type and footers */
  --indigo-ink:    #1C1C42;
  --violet:        #8A7CC7;
  --lavender:      #B8B2E6;
  --lavender-pale: #EEECF9;
  --violet-ink:    #6A56B0;   /* AA text step of --violet: 5.88:1 on white, 4.72:1 on tint */
  --orange:        #FF8A3D;
  --orange-deep:   #BE4F0B;   /* AA-contrast orange: 4.87:1 on white, and 4.87:1 for white text on it */
  --coral:         #FF5A3D;
  --coral-ink:     #BE3317;   /* AA text step of --coral: 5.71:1 on white, 4.90:1 on tint */
  --magenta:       #D946C7;

  /* Neutrals */
  --white:   #FFFFFF;
  --n-50:    #FAFAFD;
  --n-100:   #F3F3F8;
  --n-200:   #E5E5EF;
  --n-300:   #CDCDDD;
  --n-500:   #6E6E8A;
  --n-700:   #434360;
  --n-900:   #1C1C33;

  /* Semantic */
  --bg:        var(--white);
  --bg-alt:    var(--n-50);
  --text:      var(--n-900);
  --text-mute: var(--n-700);
  --border:    var(--n-200);
  --link:      var(--indigo);

  /* Type */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --h2: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem);
  --h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);

  /* Space & shape */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --gutter: 1.25rem;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(28, 28, 66, .06), 0 8px 24px rgba(28, 28, 66, .07);
  --shadow-sm: 0 1px 3px rgba(28, 28, 66, .08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--indigo-ink); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p, ul, ol { margin: 0 0 1.1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--indigo-deep); }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3rem, 1.8rem + 4vw, 5.5rem); }
/* ---------- Section gradients ----------
   Low-chroma washes drawn from the brand ramp. They break the page into bands
   without the flat-grey look, and every stop is validated for text contrast:
   body text clears 13:1 on the lightest, white clears 8.7:1 on the deepest. */
.section--alt {
  background: linear-gradient(165deg, #F7F6FD 0%, #FFFFFF 52%, #F2F0FB 100%);
}
.section--tint {
  background: linear-gradient(140deg, #EFEDFA 0%, #F7F5FD 48%, #E8E4F7 100%);
}

/* Deep band: indigo to violet, light type. The lightest stop is capped at
   #46408F so white stays at 8.79:1. */
.section--deep {
  background: linear-gradient(135deg, var(--indigo-ink) 0%, var(--indigo-deep) 48%, #46408F 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--deep h2, .section--deep h3, .section--deep strong { color: #fff; }
.section--deep p, .section--deep li { color: #D9D7F0; }
.section--deep .lede { color: #D9D7F0; }
/* Lightened from --lavender: that step reaches only 4.41:1 on the gradient's
   lightest stop (#46408F). These clear AA across the whole band. */
.section--deep .eyebrow { color: #C2BDEC; }
.section--deep a:not(.btn) { color: #fff; text-decoration-color: var(--orange); }
.section--deep .checks li { color: #D9D7F0; }
.section--deep .card {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18);
  box-shadow: none;
}
.section--deep .card h3 { color: #fff; }
.section--deep .card p { color: #D0CDEA; }
.section--deep .card__link { color: #fff; }
/* The spec list inside a card uses dark type by default, which disappears on
   a deep band. #D5D1F5 clears AA on the card's composited colour. */
.section--deep .mini-specs li { border-bottom-color: rgba(255,255,255,.2); }
.section--deep .mini-specs span { color: #D5D1F5; }
.section--deep .mini-specs strong { color: #fff; }
.section--deep .hex { background: rgba(255,255,255,.12); color: #fff; }
/* Outline buttons invert on a dark band; the orange primary already clears
   contrast with its dark label. */
.section--deep .btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.section--deep .btn--ghost:hover { background: #fff; color: var(--indigo-deep); border-color: #fff; }
.section--deep .btn--secondary { background: #fff; border-color: #fff; color: var(--indigo-deep); }
.section--deep .btn--secondary:hover { background: var(--lavender); border-color: var(--lavender); color: var(--indigo-ink); }
.section--deep .contact-strip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.section--deep .contact-strip__intro { color: #fff; }
.section--deep .contact-strip__links a { color: #fff; }
.section--deep .contact-strip__links svg { color: var(--orange); }

/* Hexagon motif from the logo, held at low opacity so it reads as texture
   rather than decoration competing with the copy. */
.section--deep::before,
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2 L60 2 L75 28 L60 54 L30 54 L15 28 Z M90 50 L120 50 L135 76 L120 102 L90 102 L75 76 Z M-30 50 L0 50 L15 76 L0 102 L-30 102 L-45 76 Z' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 104px;
}
.section--deep > .wrap, .cta-band > .wrap { position: relative; z-index: 1; }

/* A hairline of brand colour to separate adjoining bands. */
.section--rule { border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--magenta), var(--orange), var(--violet), var(--indigo)) 1; }
.stack > * + * { margin-top: 1.1em; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
.lede { font-size: 1.15rem; color: var(--text-mute); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--violet-ink); margin: 0 0 .7rem;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--indigo-deep); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
  min-height: 48px;
}
.btn--primary { background: var(--orange); border-color: var(--orange); color: #3A1A00; }
.btn--primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.btn--secondary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn--secondary:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--indigo); color: var(--indigo); }
.btn--ghost:hover { background: var(--indigo); color: #fff; }
.btn--on-dark { background: var(--orange); border-color: var(--orange); color: #3A1A00; }
.btn--on-dark:hover { background: #fff; border-color: #fff; color: var(--indigo-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 198px; height: auto; } /* original logo proportions preserved */
@media (max-width: 420px) { .brand img { width: 160px; } }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none;
  border: 2px solid var(--border); border-radius: 999px; padding: .5rem .9rem;
  font: inherit; font-weight: 600; color: var(--indigo-deep); cursor: pointer; min-height: 44px;
}
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; text-decoration: none; color: var(--indigo-deep); font-weight: 600;
  padding: .7rem .2rem; border-radius: 8px;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--indigo); }
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }

/* mobile panel */
@media (max-width: 1023px) {
  .nav[data-open="true"] { display: block; position: absolute; inset: 76px 0 auto; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: .5rem var(--gutter) 1.5rem; }
  .nav__list > li { border-bottom: 1px solid var(--n-100); }
  .nav__sublist { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; }
  .nav__sublist a { display: block; padding: .5rem 0; color: var(--text-mute); text-decoration: none; font-weight: 500; }
  .nav__sublist a:hover { color: var(--indigo); }
  .nav .btn { width: 100%; margin-top: 1rem; }
}
/* desktop bar */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { display: block; }
  .nav__list { display: flex; align-items: center; gap: .35rem; }
  .nav__list > li > .nav__link, .nav .btn { white-space: nowrap; }
  .nav__item { position: relative; }
  .nav__link { padding: .6rem .6rem; font-size: .97rem; }
  .nav__sublist {
    position: absolute; top: calc(100% + .35rem); left: 0; min-width: 270px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); list-style: none; margin: 0; padding: .4rem;
    opacity: 0; visibility: hidden;
    /* Hiding is delayed so the menu survives a diagonal move toward an item;
       showing is immediate. */
    transition: opacity .14s ease .22s, visibility 0s linear .36s;
  }
  /* Invisible bridge across the gap between the link and the panel. Without it
     the cursor leaves both elements mid-gap and the menu closes. */
  .nav__sublist::before {
    content: ""; position: absolute; left: 0; right: 0;
    top: -.5rem; height: .5rem;
  }
  .nav__item:hover .nav__sublist,
  .nav__item:focus-within .nav__sublist {
    opacity: 1; visibility: visible;
    transition: opacity .14s ease 0s, visibility 0s linear 0s;
  }
  .nav__sublist a { display: block; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--indigo-deep); font-weight: 500; }
  .nav__sublist a:hover { background: var(--lavender-pale); color: var(--indigo); }
  .nav .btn { margin-left: .5rem; padding: .7rem 1.05rem; min-height: 44px; font-size: .95rem; }
}

/* ---------- Hexagon motif ---------- */
.hex {
  width: 56px; height: 56px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--lavender-pale);
  clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%);
  color: var(--indigo);
}
.hex svg { width: 28px; height: 28px; }
.hex--orange { background: #FFE9DA; color: var(--orange-deep); }
.hex--violet { background: #EDE9FA; color: var(--violet); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(158deg, #E9E5F8 0%, #F4F2FC 38%, #FFFFFF 72%, #FBF7F4 100%);
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.hero__inner { padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem); display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.02fr .98fr; gap: 3.5rem; } }
.hero h1 { margin-bottom: .5em; }
.hero__media { position: relative; }
/* Photos are shown at their natural proportions. Several carry a caption
   burned into the image ("COMMERCIAL REAL ESTATE" and so on) along the bottom
   edge, so object-fit: cover is never used on them — it clipped the caption. */
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.hero__media::before {
  content: ""; position: absolute; width: 120px; height: 134px; top: -26px; left: -26px; z-index: -1;
  background: linear-gradient(135deg, var(--magenta), var(--orange));
  opacity: .22;
  clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%);
}
.hero__full { grid-column: 1 / -1; }
.hero__full .contact-strip { margin-top: .5rem; }
.hero--page { background: linear-gradient(145deg, #E9E5F8 0%, #F2F0FB 55%, #EDE9F9 100%); }
.hero--page .hero__inner { padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .35rem;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--lavender); box-shadow: var(--shadow); }
.card h3 { margin: .6rem 0 .3rem; font-size: 1.22rem; }
.card p { color: var(--text-mute); margin-bottom: 1rem; }
.card__link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--indigo); display: inline-flex; gap: .4rem; }
.card__link::after { content: "\2192"; transition: transform .15s; }
.card:hover .card__link::after { transform: translateX(3px); }
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; height: auto; } /* no crop: see note above */
.card--media .card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--indigo); color: #fff; font-weight: 700; border-radius: 50%;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.steps p { color: var(--text-mute); margin: 0; }
.steps--3 li { padding-left: 0; padding-top: 3.4rem; }
@media (max-width: 759px) { .steps--3 li { padding-left: 3.4rem; padding-top: 0; } }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { border-left: 4px solid var(--lavender); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--text-mute); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.prose th { background: var(--n-50); }

/* ---------- Consideration list ---------- */
.notes { display: grid; gap: 1.1rem; }
.notes > div { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--violet); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.4rem; }
.notes h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.notes p { margin: 0; color: var(--text-mute); }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2.1rem; color: var(--text-mute); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem;
  background: var(--orange);
  clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; color: var(--indigo-ink);
  position: relative; list-style: none; font-size: 1.07rem; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--orange-deep); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--indigo); }
.faq__a { padding: 0 2.5rem 1.4rem 0; color: var(--text-mute); max-width: 72ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--indigo-ink) 0%, var(--indigo-deep) 45%, #46408F 100%);
  color: #fff; position: relative; overflow: hidden;
}
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: #D9D7F0; }
.cta-band .lede { color: #D9D7F0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--indigo-ink); }
.field .hint { font-size: .9rem; color: var(--n-500); }
.field .req { color: var(--coral-ink); }
.consent .req { color: var(--coral-ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); padding: .75rem .9rem; min-height: 48px;
  border: 1px solid var(--n-300); border-radius: var(--radius); background: #fff; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(75,75,168,.25); outline-offset: 0; }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: var(--coral); }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 0; background: #fff; }
.fieldset > legend { font-weight: 700; color: var(--indigo-ink); padding: 0 .5rem; font-size: 1.1rem; }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: .75rem; align-items: flex-start; }
.consent input { width: 1.25rem; height: 1.25rem; min-height: 0; flex: 0 0 auto; margin-top: .25rem; }
.consent label { font-weight: 400; font-size: .95rem; color: var(--text-mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Callout ---------- */
.callout { background: var(--lavender-pale); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; }
.callout--warn { background: #FFF4EC; border: 1px solid #FFD9BF; }
.callout h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-ink); color: #C9C7E4; padding-block: 3.5rem 2rem; font-size: .95rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer a { color: #C9C7E4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 190px; }
/* The logo keeps its original colors on the dark footer — it has a transparent
   background and reads correctly on indigo. No knockout filter is applied,
   because that would discard the brand colors. */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; }
.disclosure { color: #9E9CC2; font-size: .85rem; max-width: 75ch; margin-top: 1rem; line-height: 1.6; }

/* ---------- Misc ---------- */
.badge { display: inline-block; background: var(--lavender-pale); color: var(--indigo); border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; font-weight: 600; }
.post-meta { color: var(--n-500); font-size: .92rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.breadcrumbs { font-size: .9rem; color: var(--text-mute); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--n-300); }

/* ---------- Contact strip ---------- */
.contact-strip {
  background: var(--lavender-pale);
  border: 1px solid var(--lavender);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 0;
}
.contact-strip__intro {
  margin: 0 0 .65rem;
  font-weight: 700;
  color: var(--indigo-ink);
}
.contact-strip__links {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0;
}
.contact-strip__links a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 650; color: var(--indigo); text-decoration: none;
  min-height: 44px; font-size: 1.08rem; word-break: break-word;
}
.contact-strip__links a:hover { color: var(--indigo-deep); text-decoration: underline; }
.contact-strip__links svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--orange-deep); }
.cta-band .contact-strip {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25);
  max-width: 620px; margin-inline: auto; text-align: left;
}
.cta-band .contact-strip__intro { color: #fff; }
.cta-band .contact-strip__links a { color: #fff; }
.cta-band .contact-strip__links svg { color: var(--orange); }

/* ---------- Stat row ---------- */
.stat-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stat-row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.stat-row li {
  background: var(--lavender-pale); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.stat-row__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--violet-ink); }
.stat-row__value { font-size: 1.22rem; font-weight: 700; color: var(--indigo-ink); }

/* ---------- Rate tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.rate-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .97rem; min-width: 620px; }
.rate-table caption { text-align: left; padding: .5rem 0; color: var(--text-mute); }
.rate-table th, .rate-table td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
.rate-table thead th {
  background: var(--indigo); color: #fff; font-weight: 650; white-space: nowrap;
  font-size: .86rem; text-transform: uppercase; letter-spacing: .04em;
}
.rate-table tbody th { font-weight: 700; color: var(--indigo-ink); white-space: nowrap; }
.rate-table tbody tr:nth-child(even) { background: var(--n-50); }
.rate-table tbody tr:hover { background: var(--lavender-pale); }
.rate-table a { font-weight: 600; }

/* ---------- Mini specs on cards ---------- */
.mini-specs { list-style: none; padding: 0; margin: .5rem 0 1.2rem; display: grid; gap: .4rem; }
.mini-specs li { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; border-bottom: 1px dotted var(--border); padding-bottom: .4rem; }
.mini-specs span { color: var(--n-500); }
.mini-specs strong { color: var(--indigo-ink); text-align: right; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 880px) { .calc { grid-template-columns: minmax(290px, 350px) 1fr; gap: 2.25rem; } }
.calc__form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; display: grid; gap: 1.15rem; box-shadow: var(--shadow-sm);
}
@media (min-width: 880px) { .calc__form { position: sticky; top: 96px; } }
.calc__heading { font-size: 1.2rem; margin: 0; }
.calc__output { display: grid; gap: 1.75rem; }

.calc-results__title { color: #fff; margin: 0 0 .2rem; font-size: 1.3rem; }
.calc-results__sub { color: var(--lavender); margin: 0 0 1.4rem; font-weight: 600; }
.calc-empty { color: #D9D7F0; margin: 0; }
.calc-figures { margin: 0; display: grid; gap: 0; }
.calc-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.calc-row dt { color: #C9C7E4; margin: 0; }
.calc-row dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc-row--total dd { font-size: 1.35rem; color: var(--orange); }
.calc-hint { font-weight: 400; font-size: .85rem; color: #C9C7E4; display: block; }
.calc-binding { margin: 1.2rem 0 0; color: #D9D7F0; }
.calc-binding strong { color: #fff; }
.calc-warn {
  margin: 1rem 0 0; background: rgba(255,90,61,.18); border-left: 4px solid var(--coral);
  padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; color: #FFE4DC;
}
/* Default .calc-note is for the LIGHT page surface. The dark results panel
   overrides it below — scope by .calc__panel, which is the panel's class.
   (An earlier rule still named the old .calc-results class, which left these
   notes dark-on-dark and effectively invisible.) */
.calc-note { margin: 1rem 0 0; font-size: .92rem; color: var(--text-mute); }
.calc__panel .calc-note { color: #CFCBF0; }
.calc__panel .calc-note strong { color: #fff; }

.calc__lead {
  background: var(--lavender-pale); border: 1px solid var(--lavender);
  border-radius: var(--radius-lg); padding: 1.75rem; display: grid; gap: 1.15rem;
}
.calc__lead h3 { margin: 0; font-size: 1.2rem; }
.calc-lead-intro { margin: 0; color: var(--text-mute); }

/* ---------- Calculator: bounded result panel ---------- */
.calc__output {
  border: 3px solid var(--indigo);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 34px rgba(28,28,66,.12);
}
.calc__panel { background: var(--indigo-deep); color: #fff; padding: 1.6rem 1.75rem; }
.calc__panel .calc-results__sub { color: var(--lavender); margin: 0 0 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }

/* Stat tiles */
.tiles { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tile__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #C9C7E4; }
.tile__value { font-size: clamp(1.05rem, .85rem + .6vw, 1.25rem); font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile--hero { background: rgba(255,138,61,.2); grid-column: span 2; }
.tile--hero .tile__value { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.85rem); color: var(--orange); }
.tile--cash .tile__value { color: #FFD9BF; }
@media (min-width: 620px) { .tile--hero { grid-column: span 1; } }

/* Charts sit on a light surface — the palette is validated against it. */
.calc__charts { background: #FCFCFB; padding: 1.75rem; display: grid; gap: 2rem; }
.chart { margin: 0; }
.chart__title { font-weight: 700; color: var(--indigo-ink); font-size: 1.05rem; margin-bottom: .2rem; }
.chart__sub { color: var(--n-500); font-size: .9rem; margin: 0 0 .9rem; }

/* Stacked bar: 2px surface gaps, 4px rounded data-ends */
.bar { display: flex; gap: 2px; height: 46px; width: 100%; }
.bar__seg { display: flex; align-items: center; justify-content: center; min-width: 3px;
  border-radius: 2px; position: relative; }
.bar__seg:first-child { border-radius: 4px 2px 2px 4px; }
.bar__seg:last-child  { border-radius: 2px 4px 4px 2px; }
.bar__seg--s1 { background: #4B4BA8; }
.bar__seg--s2 { background: #8A7CC7; }
.bar__seg--s3 { background: #DD6B14; }


.legend { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
@media (min-width: 680px) { .legend { grid-template-columns: repeat(3, 1fr); gap: .55rem 1.5rem; } }
.legend li { display: grid; grid-template-columns: 12px 1fr; gap: .2rem .55rem;
  align-items: start; font-size: .92rem; min-width: 0; }
.key { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.key--s1 { background: #4B4BA8; } .key--s2 { background: #8A7CC7; } .key--s3 { background: #DD6B14; }
.key__label { color: var(--text-mute); line-height: 1.35; }
.key__val { grid-column: 2; color: var(--indigo-ink); font-variant-numeric: tabular-nums; font-size: 1rem; }
.key__pct { color: var(--n-500); font-weight: 500; font-size: .85rem; }

/* Constraint bars */
.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.cap { display: grid; grid-template-columns: 1fr; gap: .3rem; }
@media (min-width: 620px) { .cap { grid-template-columns: 13rem 1fr auto; align-items: center; gap: .9rem; } }
.cap__label { font-size: .92rem; color: var(--text-mute); }
.cap__tag { display: inline-block; background: #FFE9DA; color: #8A3D05; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .1rem .45rem;
  border-radius: 999px; margin-left: .3rem; }
.cap__track { background: var(--n-100); border-radius: 4px; height: 22px; overflow: hidden; }
.cap__fill { display: block; height: 100%; background: #B8B2E6; border-radius: 4px; }
.cap--binds .cap__fill { background: #DD6B14; }
.cap--binds .cap__label { color: var(--indigo-ink); font-weight: 650; }
.cap__val { font-weight: 700; color: var(--indigo-ink); font-variant-numeric: tabular-nums; font-size: .95rem; }

/* Table view */
.calc__tablewrap { padding: 0 1.75rem 1.75rem; background: #FCFCFB; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc-table caption { text-align: left; font-weight: 700; color: var(--indigo-ink); padding: .5rem 0 .75rem; }
.calc-table th, .calc-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); text-align: left; }
.calc-table th { font-weight: 500; color: var(--text-mute); }
.calc-table td { font-weight: 700; color: var(--indigo-ink); text-align: right; font-variant-numeric: tabular-nums; }
.table-toggle { background: none; border: 0; color: var(--indigo); font: inherit; font-weight: 600;
  cursor: pointer; padding: .9rem 1.75rem; text-decoration: underline; text-underline-offset: 3px;
  background: #FCFCFB; width: 100%; text-align: left; min-height: 48px; }
.table-toggle:hover { color: var(--indigo-deep); }

/* ---------- Calculator actions row ---------- */
.calc__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; background: #FCFCFB; padding: .5rem 1.75rem 1.1rem;
  border-top: 1px solid var(--border);
}
.calc__actions .table-toggle { width: auto; padding: .6rem 0; background: none; }
.btn--sm { padding: .55rem 1rem; min-height: 44px; font-size: .95rem; }

/* Print-only blocks are hidden on screen. */
.print-only { display: none; }

/* ---------- Print / Save as PDF ---------- */
@media print {
  @page { margin: 14mm; }

  /* Keep the brand colours in the printed sheet. */
  *, *::before, *::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body { background: #fff; font-size: 11pt; }

  /* Whitelist, not blacklist: print the calculator section and nothing else.
     Blacklisting individual sections let the "next step" band and the contact
     strip spill onto a third page. */
  .site-header, .site-footer, .skip-link { display: none !important; }
  main > section { display: none !important; }
  main > section.calc-section { display: block !important; }

  /* Inside the calculator section, the interactive parts do not print. */
  .calc__form, .calc__lead, .calc__actions, .callout,
  .calc-note--screen, noscript { display: none !important; }

  .section { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .calc { display: block; }

  .print-only { display: block; }

  .print-head { display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; border-bottom: 2px solid #4B4BA8; padding-bottom: 8pt; margin-bottom: 10pt; }
  .print-logo { width: 150px; height: auto; }
  .print-meta { text-align: right; font-size: 9.5pt; color: #434360; line-height: 1.4; }
  .print-title { font-size: 17pt; margin: 0 0 10pt; color: #1C1C42; }

  /* The results panel prints as light stock, not a navy ink block. */
  /* No border: it draws a stray rule down the page when the sheet breaks. */
  .calc__output { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .calc__panel { background: #F3F3F8 !important; color: #1C1C42 !important; padding: 9pt 12pt; }
  .calc__panel .calc-results__sub { color: #4B4BA8 !important; }
  .calc__panel .calc-note, .calc__panel .calc-binding { color: #434360 !important; }
  .calc__panel .calc-binding strong, .calc__panel .calc-note strong { color: #1C1C42 !important; }
  .tiles { grid-template-columns: repeat(4, 1fr) !important; gap: 6pt; }
  .tile { background: #fff !important; border: 1px solid #CDCDDD; padding: 6pt 8pt; }
  .tile__label { color: #434360 !important; font-size: 7.5pt; }
  .tile__value { font-size: 12pt !important; color: #1C1C42; }
  .tile--hero { background: #FFF4EC !important; }
  .tile--hero .tile__value { color: #BE4F0B !important; font-size: 14pt !important; }
  .tile--cash .tile__value { color: #1C1C42 !important; }
  .calc-warn { background: #FFF4EC !important; color: #8A3D05 !important; border-left-color: #DD6B14; }

  .calc__charts { background: #fff; padding: 12pt; gap: 14pt; }
  .chart { break-inside: avoid; page-break-inside: avoid; }
  .bar { height: 26px; }
  .cap__track { background: #E5E5EF !important; }

  /* Tightened so the sheet lands on two pages rather than stranding the
     disclaimer alone on a third. */
  .calc__tablewrap { display: block !important; background: #fff; padding: 0 12pt 4pt; }
  #calc-table[hidden] { display: block !important; }
  .calc-table { break-inside: avoid; page-break-inside: avoid; }
  .calc-table caption { padding: 4pt 0 3pt; }
  .calc-table th, .calc-table td { padding: 3pt 6pt; }
  .calc__charts { gap: 10pt; }

  .print-footer { margin-top: 8pt; padding-top: 6pt; border-top: 1px solid #CDCDDD;
    font-size: 8pt; color: #434360; line-height: 1.4;
    break-inside: avoid; page-break-inside: avoid; }
  .print-footer p { margin: 0 0 5pt; }

  a[href]::after { content: ""; }
}
