/* ============================================================
       RESET & VARIABLES
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      /* ====================================================
         DESIGN TOKENS — Inside Track UI system (styles.css)
         Light mode; warm neutrals · amethyst · teal · gold
      ==================================================== */

      /* Core surfaces */
      --bg:            #FFF9F2;
      --card:          #FFFFFF;
      --border:        #E5E2DD;
      --border-light:  #E7E4DF;

      /* Text */
      --text:          #1E1B1B;
      --text-mid:      #4A4650;
      --text-light:    #706B75;
      --text-xlight:   #A49EAA;
      --heading:       #151316;

      /* Brand — primary accent (amethyst) */
      --accent:        #461E5C;
      --accent-mid:    #72369D;

      /* Semantic aliases for amethyst "dark" elements (formerly --navy) */
      --navy:          var(--accent);
      --navy-mid:      var(--accent-mid);
      --navy-light:    #7A47A8;

      /* Brand — teal */
      --teal:          #28A2B5;
      --teal-soft:     #4EBDBE;
      --teal-bg:       rgba(40, 162, 181, 0.08);
      --teal-border:   rgba(40, 162, 181, 0.28);

      /* Semantic aliases for teal (formerly --blue) */
      --blue:          var(--teal);
      --blue-soft:     var(--teal-bg);
      --blue-border:   var(--teal-border);

      /* Brand — gold (warning / highlight) */
      --gold:          #FFAD03;
      --gold-pressed:  #E79101;
      --gold-bg:       rgba(255, 173, 3, 0.10);
      --gold-border:   rgba(255, 173, 3, 0.38);

      /* Semantic aliases for gold (formerly --amber) */
      --amber:         var(--gold-pressed);
      --amber-bg:      var(--gold-bg);
      --amber-border:  var(--gold-border);

      /* OK / success */
      --ok:            #1B8F5A;
      --ok-bg:         rgba(27, 143, 90, 0.10);
      --ok-border:     rgba(27, 143, 90, 0.28);

      /* Semantic aliases for ok (formerly --green) */
      --green:         var(--ok);
      --green-mid:     var(--ok);
      --green-bg:      var(--ok-bg);
      --green-border:  var(--ok-border);

      /* Danger */
      --danger:        #C43D4B;
      --danger-bg:     rgba(196, 61, 75, 0.10);
      --danger-border: rgba(196, 61, 75, 0.28);

      /* Semantic aliases for danger (formerly --red) */
      --red:           var(--danger);
      --red-bg:        var(--danger-bg);
      --red-border:    var(--danger-border);

      /* Structure */
      --radius:        12px;
      --radius-sm:     8px;
      --shadow:        0 1px 2px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.06);
      --shadow-lg:     0 8px 30px rgba(0,0,0,.12);
    }

    /* ============================================================
       BASE
    ============================================================ */
    html { scroll-behavior: smooth; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                   'Helvetica Neue', Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.55;
      font-size: 14px;
      min-height: 100vh;
    }

    /* ============================================================
       HEADER
    ============================================================ */
    .site-header {
      background: var(--navy);
      padding: 28px 32px 26px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .site-header-inner {
      max-width: 1220px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 24px;
      flex-wrap: wrap;
    }

    .site-header-text {}

    .header-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 20px;
      padding: 3px 12px 3px 8px;
      margin-bottom: 12px;
    }

    .header-eyebrow-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--teal);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.4; }
    }

    .header-eyebrow span {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: rgba(255,255,255,0.75);
    }

    .site-header h1 {
      font-size: 23px;
      font-weight: 750;
      color: #FFFFFF;
      letter-spacing: -0.3px;
      line-height: 1.25;
      margin-bottom: 7px;
    }

    .site-header p {
      font-size: 13.5px;
      color: rgba(255,255,255,0.6);
      max-width: 560px;
      line-height: 1.55;
    }

    .header-meta {
      text-align: right;
      flex-shrink: 0;
    }

    .header-meta-label {
      font-size: 10.5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      color: rgba(255,255,255,0.35);
      margin-bottom: 3px;
    }

    .header-meta-value {
      font-size: 12px;
      color: rgba(255,255,255,0.5);
    }

    /* ============================================================
       MAIN LAYOUT
    ============================================================ */
    .main-wrap {
      max-width: 1220px;
      margin: 0 auto;
      padding: 28px 24px 40px;
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 22px;
      align-items: start;
    }

    @media (max-width: 960px) {
      .main-wrap {
        grid-template-columns: 1fr;
        padding: 20px 16px 32px;
      }
      .results-col {
        position: static !important;
      }
    }

    @media (max-width: 560px) {
      .site-header { padding: 20px 18px; }
      .site-header h1 { font-size: 19px; }
      .header-meta { display: none; }
    }

    /* ============================================================
       CARDS
    ============================================================ */
    .card {
      background: var(--card);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      margin-bottom: 18px;
    }

    .card:last-child { margin-bottom: 0; }

    .card-header {
      padding: 14px 22px;
      border-bottom: 1px solid var(--border-light);
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .card-icon {
      width: 34px;
      height: 34px;
      border-radius: var(--radius-sm);
      background: var(--blue-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .card-header-text h2 {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.1px;
    }

    .card-header-text p {
      font-size: 11.5px;
      color: var(--text-light);
      margin-top: 1px;
    }

    .card-body {
      padding: 20px 22px;
    }

    /* ============================================================
       FORM FIELDS
    ============================================================ */
    .field-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    @media (max-width: 620px) {
      .field-grid { grid-template-columns: 1fr; }
    }

    .field { display: flex; flex-direction: column; }
    .field.full { grid-column: 1 / -1; }

    .field label {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-mid);
      margin-bottom: 4px;
      letter-spacing: 0.1px;
    }

    .field .helper {
      font-size: 11.5px;
      color: var(--text-light);
      line-height: 1.45;
      margin-bottom: 7px;
    }

    .input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-affix {
      position: absolute;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-xlight);
      pointer-events: none;
      z-index: 1;
    }

    .input-affix.prefix { left: 10px; }
    .input-affix.suffix { right: 10px; }

    input[type="number"] {
      width: 100%;
      padding: 9px 12px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      background: var(--card);
      transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
      -moz-appearance: textfield;
      appearance: textfield;
    }

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

    input[type="number"]:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(70,30,92,0.13);
      background: var(--card);
    }

    .has-prefix input { padding-left: 22px; }
    .has-suffix input { padding-right: 26px; }

    .input-note {
      margin-top: 14px;
      padding: 10px 14px;
      background: var(--blue-soft);
      border: 1px solid var(--blue-border);
      border-radius: var(--radius-sm);
      font-size: 11.5px;
      color: var(--text-mid);
      line-height: 1.5;
    }

    .input-note strong { color: var(--navy-mid); }

    /* ============================================================
       RESULTS COLUMN
    ============================================================ */
    .results-col {
      position: sticky;
      top: 24px;
    }

    /* Scenario toggle */
    .scenario-card {
      background: var(--card);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      padding: 16px 18px;
      margin-bottom: 14px;
    }

    .scenario-label {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--text-xlight);
      margin-bottom: 9px;
    }

    .scenario-toggle {
      display: flex;
      background: var(--border);
      border-radius: var(--radius-sm);
      padding: 3px;
      gap: 2px;
    }

    .sc-btn {
      flex: 1;
      padding: 7px 4px;
      border: none;
      background: transparent;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-light);
      cursor: pointer;
      transition: all 0.15s;
      text-align: center;
      line-height: 1.3;
    }

    .sc-btn .sc-label { display: block; }
    .sc-btn .sc-sub {
      display: block;
      font-size: 9.5px;
      font-weight: 500;
      opacity: 0.7;
      margin-top: 1px;
    }

    .sc-btn.active {
      background: var(--navy);
      color: white;
      box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    }

    .sc-btn.active .sc-sub { opacity: 0.6; }

    .scenario-desc {
      font-size: 11px;
      color: var(--text-light);
      margin-top: 8px;
      min-height: 16px;
    }

    /* Hero metrics */
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 14px;
    }

    .hero-tile {
      border-radius: var(--radius);
      padding: 16px 14px;
      border: 1px solid transparent;
    }

    .hero-tile.dark {
      background: var(--navy);
      border-color: var(--navy-mid);
    }

    .hero-tile.light {
      background: var(--green-bg);
      border-color: var(--green-border);
    }

    .hero-tile.warn {
      background: var(--amber-bg);
      border-color: var(--amber-border);
    }

    .hero-tile .ht-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin-bottom: 5px;
    }

    .hero-tile.dark .ht-label { color: rgba(255,255,255,0.45); }
    .hero-tile.light .ht-label { color: var(--green); }
    .hero-tile.warn .ht-label { color: var(--amber); }

    .hero-tile .ht-value {
      font-size: 21px;
      font-weight: 800;
      letter-spacing: -0.5px;
      line-height: 1.1;
    }

    .hero-tile.dark .ht-value { color: #FFFFFF; }
    .hero-tile.light .ht-value { color: var(--green); }
    .hero-tile.warn .ht-value { color: var(--amber); }

    .hero-tile .ht-sub {
      font-size: 10.5px;
      margin-top: 4px;
    }

    .hero-tile.dark .ht-sub { color: rgba(255,255,255,0.4); }
    .hero-tile.light .ht-sub { color: var(--green); opacity: 0.65; }
    .hero-tile.warn .ht-sub { color: var(--amber); opacity: 0.7; }

    /* Payback */
    .payback-wrap {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px 18px;
      margin-bottom: 14px;
      box-shadow: var(--shadow);
    }

    .payback-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 8px;
    }

    .payback-top .label {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-mid);
    }

    .payback-top .value {
      font-size: 14px;
      font-weight: 800;
      color: var(--navy);
    }

    .bar-track {
      height: 7px;
      background: var(--border-light);
      border-radius: 4px;
      overflow: hidden;
    }

    .bar-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.45s cubic-bezier(0.4,0,0.2,1),
                  background 0.3s ease;
    }

    /* Breakdown table */
    .breakdown-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      margin-bottom: 14px;
      overflow: hidden;
    }

    .breakdown-head {
      padding: 10px 18px;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      color: var(--text-xlight);
    }

    .breakdown-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 18px;
      border-bottom: 1px solid var(--border-light);
      gap: 12px;
    }

    .breakdown-row:last-child { border-bottom: none; }

    .breakdown-row.sub-row {
      background: var(--bg);
    }

    .breakdown-row .row-label {
      font-size: 12px;
      color: var(--text-mid);
      line-height: 1.35;
      flex: 1;
    }

    .breakdown-row.sub-row .row-label {
      padding-left: 12px;
      position: relative;
      font-size: 11.5px;
    }

    .breakdown-row.sub-row .row-label::before {
      content: '↳';
      position: absolute;
      left: 0;
      color: var(--text-xlight);
      font-size: 11px;
    }

    .breakdown-row .row-value {
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      text-align: right;
    }

    .row-value.v-neg   { color: var(--red); }
    .row-value.v-pos   { color: var(--green-mid); }
    .row-value.v-navy  { color: var(--navy); }
    .row-value.v-amber { color: var(--amber); }

    .breakdown-row.total-row {
      background: var(--navy);
      border-top: 2px solid var(--navy-mid);
    }

    .breakdown-row.total-row .row-label {
      font-size: 12.5px;
      font-weight: 700;
      color: rgba(255,255,255,0.7);
    }

    .breakdown-row.total-row .row-value {
      font-size: 16px;
      color: #FFFFFF;
    }

    .breakdown-row.net-row {
      background: var(--green-bg);
      border-top: 2px solid var(--green-border);
    }

    .breakdown-row.net-row .row-label {
      font-size: 12.5px;
      font-weight: 700;
      color: var(--green);
    }

    .breakdown-row.net-row .row-value {
      font-size: 16px;
      color: var(--green);
    }

    /* Board summary */
    .board-card {
      background: var(--navy);
      border-radius: var(--radius);
      padding: 18px 20px;
      margin-bottom: 14px;
      box-shadow: var(--shadow-lg);
    }

    .board-eyebrow {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.9px;
      color: rgba(255,255,255,0.35);
      margin-bottom: 9px;
    }

    .board-text {
      font-size: 13px;
      line-height: 1.7;
      color: rgba(255,255,255,0.8);
    }

    .board-text strong {
      color: #FFFFFF;
      font-weight: 700;
    }

    /* Why this matters */
    .why-card {
      background: var(--amber-bg);
      border: 1px solid var(--amber-border);
      border-radius: var(--radius);
      padding: 16px 18px;
      box-shadow: var(--shadow);
    }

    .why-card h3 {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      color: var(--amber);
      margin-bottom: 11px;
    }

    .why-card ul {
      list-style: none;
      padding: 0;
    }

    .why-card li {
      font-size: 12px;
      color: var(--text-mid);
      padding: 6px 0 6px 18px;
      position: relative;
      line-height: 1.5;
      border-bottom: 1px solid rgba(231,145,1,0.15);
    }

    .why-card li:last-child { border-bottom: none; }

    .why-card li::before {
      content: '→';
      position: absolute;
      left: 0;
      font-weight: 700;
      color: var(--amber);
    }

    /* ============================================================
       FOOTER
    ============================================================ */
    .calc-footer {
      max-width: 1220px;
      margin: 0 auto;
      padding: 0 24px 40px;
      font-size: 11px;
      color: var(--text-xlight);
      line-height: 1.6;
    }

    .calc-footer hr {
      border: none;
      border-top: 1px solid var(--border);
      margin-bottom: 12px;
    }

    /* ============================================================
       UTILITY
    ============================================================ */
    .sr-only {
      position: absolute; width: 1px; height: 1px;
      padding: 0; margin: -1px; overflow: hidden;
      clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }

/* ============================================================
   WORDPRESS WIDTH FIX
   Keeps the calculator centred and stops WordPress squeezing it
============================================================ */

/* Let the shortcode area use the available page width */
.wp-block-shortcode:has(.main-wrap),
.entry-content:has(.main-wrap),
.wp-block-post-content:has(.main-wrap),
.wp-site-blocks:has(.main-wrap) {
  max-width: none !important;
  width: 100% !important;
}

/* Prevent accidental horizontal page wobble */
html,
body {
  overflow-x: clip;
}

/* Keep the calculator header full width but do not shift it sideways */
.site-header {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: static !important;
  left: auto !important;
  transform: none !important;
}

/* Keep header content neatly centred */
.site-header-inner {
  max-width: 1220px !important;
  width: min(1220px, calc(100vw - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Main calculator layout */
.main-wrap {
  width: min(1220px, calc(100vw - 48px)) !important;
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 28px 24px 40px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 22px !important;
  align-items: start !important;
  position: static !important;
  left: auto !important;
  transform: none !important;
}

/* Footer alignment */
.calc-footer {
  width: min(1220px, calc(100vw - 48px)) !important;
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 24px 40px !important;
  position: static !important;
  left: auto !important;
  transform: none !important;
}

/* Tablet and mobile */
@media (max-width: 960px) {
  .site-header-inner,
  .main-wrap,
  .calc-footer {
    width: calc(100vw - 32px) !important;
  }

  .main-wrap {
    grid-template-columns: 1fr !important;
    padding: 20px 16px 32px !important;
  }

  .results-col {
    position: static !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 20px 18px !important;
  }

  .site-header-inner,
  .main-wrap,
  .calc-footer {
    width: calc(100vw - 24px) !important;
  }
}
/* Hide the WordPress theme page title on the ROI Calculator page */
.page-id-42 .entry-title,
.page-id-42 .page-title,
.page-id-42 .wp-block-post-title,
.page-id-42 header.entry-header,
.page-id-42 .entry-header,
.page-id-42 .post-title,
.page-id-42 h1.wp-block-post-title {
  display: none !important;
}

/* Reduce the space left behind by the hidden title */
.page-id-42 main,
.page-id-42 .site-main,
.page-id-42 .entry-content,
.page-id-42 .wp-block-post-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.share-banner {
  background: #FBF7F3;
  border: 1px solid #E8DDD2;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.share-banner-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 640px;
  color: #2f2538;
}
}
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.share-btn {
  border: none;
  border-radius: 9999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
}
.share-email {
  background: #482267;
}

.share-btn:hover {
  opacity: 0.9;
}
@media (max-width: 700px) {
  .share-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.share-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.share-form input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid #E8DDD2;
  border-radius: 8px;
  font-size: 0.9rem;
}
.share-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #2f2538;
  text-align: left;
  max-width: 400px;
}
.share-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}
.example-figures-note {
  font-size: 0.8rem;
  color: #6f6476;
  text-align: center;
  margin-bottom: 0.75rem;
  font-style: italic;
}