/*
 * FCMM application route system
 * A shared visual grammar derived from the homepage: dark ink, FCMM red,
 * quiet filigree lines, bright editorial surfaces and the official full wordmark.
 */
:root {
  --fcmm-ink: #08090b;
  --fcmm-ink-2: #121115;
  --fcmm-red: #e6211a;
  --fcmm-red-deep: #8e0b13;
  --fcmm-paper: #f7f6f3;
  --fcmm-rule: rgba(18, 17, 21, .13);
  --fcmm-muted: #67636a;
}

.application.page-app {
  min-height: 100vh;
  background: var(--fcmm-paper);
  color: var(--fcmm-ink);
}

/* Shared page navigation remains deliberately quiet above the editorial content. */
.app-route .universe-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(110deg, #070709, #16070b 68%, #25090e);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.app-route .universe-nav::after {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 220px;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--fcmm-red), transparent);
}
.app-route .universe-links a { color: rgba(255,255,255,.8); }
.app-route .universe-links a::after { background: var(--fcmm-red); }
.app-route .universe-links a:hover,
.app-route .universe-links a[aria-current="page"] { color: #fff; }
.app-route .universe-cta { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.app-route .universe-cta:hover { border-color: var(--fcmm-red); background: var(--fcmm-red); }

/* Rebuilt route Hero: a red atmospheric field, fine linework and an editorial caption. */
.app-route .fcmm-page-hero {
  position: relative;
  isolation: isolate;
  min-height: min(480px, 48vw);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(76px, 10vw, 148px) max(6vw, calc((100vw - 1240px) / 2)) clamp(52px, 7vw, 92px);
  color: #fff;
  background:
    radial-gradient(circle at 79% 28%, rgba(230,33,26,.72), transparent 0 19%, transparent 40%),
    radial-gradient(circle at 63% 100%, rgba(136,8,18,.58), transparent 0 22%, transparent 46%),
    linear-gradient(119deg, #08090b 5%, #120a0d 44%, #28090f 100%);
}
.app-route .fcmm-page-hero::before,
.app-route .fcmm-page-hero::after {
  position: absolute;
  z-index: -1;
  content: '';
  pointer-events: none;
}
.app-route .fcmm-page-hero::before {
  right: -12vw;
  bottom: -29vw;
  width: min(71vw, 960px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(230,33,26,.13), 0 0 0 37px rgba(255,255,255,.045), 0 0 0 55px rgba(230,33,26,.09), 0 0 0 76px rgba(255,255,255,.035);
  transform: rotate(-18deg);
}
.app-route .fcmm-page-hero::after {
  inset: 0;
  opacity: .32;
  background-image: linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.18) 49%, transparent 50%), linear-gradient(28deg, transparent 0 69%, rgba(230,33,26,.55) 70%, transparent 71%);
  background-size: 126px 126px, 192px 192px;
  mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.75) 55%, transparent);
}
.fcmm-page-hero__copy { position: relative; max-width: 900px; z-index: 1; }
.fcmm-page-hero .breadcrumb { margin: 0; color: #ff716b; }
.fcmm-route-number { display: inline-block; margin-right: 10px; color: rgba(255,255,255,.56); letter-spacing: .08em; }
.app-route .fcmm-page-hero h1 {
  max-width: 900px;
  margin: 17px 0 17px;
  color: #fff;
  font-size: clamp(3.1rem, 7.4vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .86;
  text-wrap: balance;
}
.app-route .fcmm-page-hero h1 em { color: #f33a33; font-style: normal; }
.app-route .fcmm-page-hero .lead { max-width: 650px; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.45vw, 1.22rem); }
.fcmm-page-hero__stamp {
  position: absolute;
  right: max(6vw, calc((100vw - 1240px) / 2));
  bottom: clamp(52px, 7vw, 92px);
  display: grid;
  gap: 10px;
  width: 118px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}
.fcmm-page-hero__stamp i { display: block; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #e6211a); }

/* Main flow alternates editorial paper and ink panels without changing route behaviour. */
.app-route main.fcmm-route-main,
.app-route .calculator-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 100px) max(5vw, calc((100vw - 1160px) / 2)) clamp(72px, 9vw, 128px);
}
.app-route main.fcmm-route-main::before,
.app-route .calculator-main::before {
  display: block;
  width: 64px;
  height: 2px;
  margin-bottom: 34px;
  content: '';
  background: var(--fcmm-red);
}
.app-route .section-heading { margin-top: 0; padding-bottom: 28px; border-bottom: 1px solid var(--fcmm-rule); }
.app-route .section-heading h2,
.app-route .split-panel h2,
.app-route .dark-strip h2 { color: var(--fcmm-ink); font-size: clamp(2.25rem, 5vw, 4.7rem); font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.app-route .section-heading .breadcrumb,
.app-route .split-panel .breadcrumb { color: var(--fcmm-red-deep); }
.app-route .lead { color: var(--fcmm-muted); }
.app-route .text-link.dark { color: var(--fcmm-red-deep); }
.app-route .text-link.dark:hover { color: var(--fcmm-red); }

/* Cards use home-page black, red and white contrast with a fine red thread on hover. */
.app-route .card-grid,
.app-route .resource-grid { gap: 17px; }
.app-route .info-card,
.app-route .resource-card,
.app-route .portal-card,
.app-route .product-card,
.app-route .metric {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(12,12,15,.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.app-route .info-card::before,
.app-route .resource-card::before,
.app-route .portal-card::before,
.app-route .metric::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, var(--fcmm-red), transparent 75%);
  transform: scaleX(.35);
  transform-origin: left;
  transition: transform .3s ease;
}
.app-route .info-card:hover::before,
.app-route .resource-card:hover::before,
.app-route .portal-card:hover::before,
.app-route .metric:hover::before { transform: scaleX(1); }
.app-route .info-card h3,
.app-route .resource-card h3,
.app-route .portal-card h3 { color: var(--fcmm-ink); font-size: clamp(1.45rem, 2.1vw, 2rem); letter-spacing: -.045em; }
.app-route .info-card p,
.app-route .resource-card p,
.app-route .portal-card p { color: var(--fcmm-muted); }
.app-route .info-card .icon,
.app-route .portal-card .icon { border-color: rgba(230,33,26,.6); color: var(--fcmm-red); background: rgba(230,33,26,.06); }
.app-route .product-grid { gap: 14px; }
.app-route .product-card {
  min-height: 270px;
  border-color: rgba(255,255,255,.15);
  color: #fff;
  background: linear-gradient(145deg, #171419, #09090c 68%);
}
.app-route .product-card::after {
  position: absolute;
  right: -38%;
  bottom: -48%;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(230,33,26,.64);
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 14px rgba(230,33,26,.08), 0 0 0 28px rgba(255,255,255,.025);
}
.app-route .product-card h3 { color: #fff; font-size: 1.65rem; }
.app-route .product-card p { color: rgba(255,255,255,.66); }
.app-route .product-card .icon { border-color: rgba(255,255,255,.38); color: #ff5550; background: rgba(230,33,26,.13); }
.app-route .product-card .arrow { position: relative; z-index: 1; border-color: rgba(255,255,255,.55); color: #fff; }
.app-route .product-card:hover { border-color: var(--fcmm-red); background: linear-gradient(145deg, #270b10, #09090c 70%); }

.app-route .split-panel { gap: clamp(26px, 5vw, 84px); margin-top: clamp(42px, 6vw, 74px); }
.app-route .split-panel > div > .button { margin-top: 12px; }
.app-route .split-panel .visual-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 70% 28%, rgba(230,33,26,.65), transparent 3%), linear-gradient(135deg, #09090b, #1f0b11 72%, #6f1118) !important;
}
.app-route .split-panel .visual-panel::after {
  position: absolute;
  right: -26%;
  bottom: -45%;
  width: 420px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 16px rgba(230,33,26,.16), 0 0 0 34px rgba(255,255,255,.05);
}
.app-route .split-panel .visual-panel h2 { position: relative; z-index: 1; color: #fff; font-size: clamp(2.5rem, 4.3vw, 4.7rem); }
.app-route .timeline { gap: 0; border-top: 1px solid var(--fcmm-rule); }
.app-route .timeline li { border-bottom-color: var(--fcmm-rule); }
.app-route .timeline b { border-color: var(--fcmm-red); color: var(--fcmm-red); }
.app-route .timeline h3 { color: var(--fcmm-ink); }
.app-route .dark-strip {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(120deg, #09090b, #17090e 62%, #330a11);
}
.app-route .dark-strip::after {
  position: absolute;
  right: -7%;
  bottom: -130%;
  width: 700px;
  aspect-ratio: 1;
  border: 1px solid rgba(230,33,26,.8);
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 18px rgba(230,33,26,.1), 0 0 0 36px rgba(255,255,255,.04);
}
.app-route .dark-strip .content { position: relative; z-index: 1; }
.app-route .dark-strip h2 { color: #fff; }
.app-route .dark-strip .lead { color: rgba(255,255,255,.72); }
.app-route .dark-strip .eyebrow { color: #ff6d68; }

/* Data, form and broker surfaces stay functional while matching the dark editorial language. */
.app-route .portal-shell { padding-top: 0; }
.app-route .portal-top {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 22px 22px 0 0;
  background: linear-gradient(120deg, #09090b, #1b0a0f 70%, #4c0c14);
}
.app-route .portal-top::after { position: absolute; right: -70px; top: -110px; width: 300px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; content: ''; box-shadow: 0 0 0 18px rgba(230,33,26,.14); }
.app-route .portal-top > * { position: relative; z-index: 1; }
.app-route .tabs { gap: 0; padding: 8px; border-color: var(--fcmm-rule); border-radius: 0 0 18px 18px; background: #19161a; }
.app-route .tab { border-radius: 12px; color: rgba(255,255,255,.63); }
.app-route .tab:hover, .app-route .tab.active { color: #fff; background: var(--fcmm-red); }
.app-route .metric { padding: 25px; }
.app-route .metric strong { color: var(--fcmm-red); font-family: var(--sans); font-weight: 700; }
.app-route .table-wrap { border-color: var(--fcmm-rule); border-radius: 16px; box-shadow: none; }
.app-route th { color: #fff; background: #151216; }
.app-route td { color: #332f35; }
.app-route .resource-toolbar,
.app-route .broker-activity { border-color: var(--fcmm-rule); border-radius: 18px; box-shadow: none; }
.app-route .activity-list { background: var(--fcmm-rule); }
.app-route .activity-list button { background: #fff; }
.app-route .activity-list b,
.app-route .activity-list i { color: var(--fcmm-red-deep); }

/* Calculator keeps its financial calculations but adopts the route palette. */
.app-route .fcmm-mortgage { overflow: hidden; border: 1px solid rgba(230,33,26,.4); border-radius: 24px; background: #0d0c0f; box-shadow: none; }
.app-route .fcmm-mortgage .calc-intro,
.app-route .fcmm-mortgage .calc-workspace,
.app-route .fcmm-mortgage .calc-comparison,
.app-route .fcmm-mortgage .calc-strategy,
.app-route .fcmm-mortgage .calc-schedule { border-color: rgba(255,255,255,.13); }
.app-route .fcmm-mortgage .calc-intro { color: #fff; background: linear-gradient(120deg, #09090b, #2d0b12 73%); }
.app-route .fcmm-mortgage h2,
.app-route .fcmm-mortgage h3,
.app-route .fcmm-mortgage h4 { color: #fff; }
.app-route .fcmm-mortgage .breadcrumb { color: #ff6c67; }
.app-route .fcmm-mortgage .lead,
.app-route .fcmm-mortgage p { color: rgba(255,255,255,.7); }
.app-route .fcmm-mortgage .calc-controls,
.app-route .fcmm-mortgage .calc-summary,
.app-route .fcmm-mortgage .compare-card,
.app-route .fcmm-mortgage .calc-strategy-values > div,
.app-route .fcmm-mortgage .calc-schedule { border-color: rgba(255,255,255,.13); background: #151216; }
.app-route .fcmm-mortgage input,
.app-route .fcmm-mortgage select { border-color: rgba(255,255,255,.22); color: #fff; background: #0c0b0d; }
.app-route .fcmm-mortgage .calc-summary { background: linear-gradient(150deg, #2b0b11, #0c0b0d 70%); }
.app-route .fcmm-mortgage .calc-payment strong,
.app-route .fcmm-mortgage [data-calc="strategy-interest"],
.app-route .fcmm-mortgage [data-calc="strategy-term"] { color: #ff514b; }
.app-route .fcmm-mortgage .calc-outline-button { border-color: rgba(255,255,255,.4); color: #fff; }
.app-route .fcmm-mortgage table { background: #151216; }
.app-route .fcmm-mortgage th { background: #221116; color: #ff7974; }
.app-route .fcmm-mortgage td { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.78); }
.app-route .fcmm-mortgage .button.primary,
.app-route .button.primary { border-color: var(--fcmm-red); color: #fff; background: var(--fcmm-red); }
.app-route .button.primary:hover { background: #ff3731; }
.app-route .button.secondary { border-color: rgba(255,255,255,.65); }

/* Contact, modals and notifications are carried through without a second visual vocabulary. */
.app-route .form-grid input,
.app-route .form-grid textarea,
.app-route .auth-form input,
.app-route .modal-form input,
.app-route .modal-form select,
.app-route .chat-input { border-color: rgba(8,9,11,.22); border-radius: 13px; }
.app-route .form-grid input:focus,
.app-route .form-grid textarea:focus,
.app-route .auth-form input:focus,
.app-route .modal-form input:focus,
.app-route .modal-form select:focus { outline: 2px solid rgba(230,33,26,.32); border-color: var(--fcmm-red); }
.app-route .modal-card { border-radius: 22px; border-top: 4px solid var(--fcmm-red); }
.app-route .chat-fab { border-color: var(--fcmm-red); color: #fff; background: var(--fcmm-red); }
.app-route .chat-head,
.app-route .chat-message.user,
.app-route .chat-send { background: #151216; }
.app-route .toast { border-radius: 999px; background: #151216; border: 1px solid var(--fcmm-red); }

/* Auth routes use the homepage's black-red field while keeping every authentication control intact. */
.app-route.auth-route .auth-shell { min-height: calc(100vh - 78px); background: var(--fcmm-paper); }
.app-route.auth-route .auth-intro { background: radial-gradient(circle at 76% 24%, rgba(230,33,26,.62), transparent 16%), radial-gradient(circle at 40% 88%, rgba(135,10,20,.42), transparent 30%), #0a0a0c; }
.app-route.auth-route .auth-intro::after { border-color: rgba(230,33,26,.55); box-shadow: 0 0 0 34px rgba(230,33,26,.09), 0 0 0 68px rgba(255,255,255,.035); }
.app-route.auth-route .auth-intro .eyebrow { color: #ff6a65; }
.app-route.auth-route .auth-panel { position: relative; overflow: hidden; background: #f7f6f3; }
.app-route.auth-route .auth-panel::before { position: absolute; right: -150px; top: -180px; width: 440px; aspect-ratio: 1; border: 1px solid rgba(230,33,26,.28); border-radius: 50%; content: ''; box-shadow: 0 0 0 18px rgba(230,33,26,.06); }
.app-route.auth-route .auth-panel > * { position: relative; z-index: 1; }
.app-route.auth-route .auth-form h2 { color: #171216; }
.app-route.auth-route .auth-divider { color: #7d7377; }
.app-route.auth-route .social-auth button { border-color: rgba(8,9,11,.18); border-radius: 13px; }
.app-route.auth-route .social-auth button:hover { border-color: var(--fcmm-red); color: var(--fcmm-red-deep); background: #fff; }

/* Black footer echoes the homepage footer and holds the supplied full wordmark. */
.app-route .fcmm-app-footer {
  position: relative;
  overflow: hidden;
  grid-template-columns: 1.45fr .9fr .9fr;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(54px, 7vw, 92px) max(6vw, calc((100vw - 1180px) / 2)) 38px;
  background: #08090b;
}
.app-route .fcmm-app-footer::before { position: absolute; top: 0; left: 0; width: 100%; height: 2px; content: ''; background: linear-gradient(90deg, transparent, var(--fcmm-red), transparent); }
.app-route .fcmm-app-footer::after { position: absolute; right: -10%; bottom: -240px; width: 520px; aspect-ratio: 1; border: 1px solid rgba(230,33,26,.65); border-radius: 50%; content: ''; box-shadow: 0 0 0 18px rgba(230,33,26,.1), 0 0 0 36px rgba(255,255,255,.035); }
.app-route .fcmm-app-footer > * { position: relative; z-index: 1; }
.app-route .fcmm-app-footer .official-logo { width: 205px !important; }
.app-route .fcmm-app-footer > div:first-child p:first-of-type { color: #ff6b66; letter-spacing: .14em; text-transform: uppercase; }
.app-route .fcmm-app-footer h3 { color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.app-route .fcmm-app-footer a { color: rgba(255,255,255,.66); }
.app-route .fcmm-app-footer a:hover { color: #fff; }

@media (max-width: 860px) {
  .app-route .fcmm-page-hero { min-height: 390px; padding: 98px 24px 60px; }
  .fcmm-page-hero__stamp { right: 24px; bottom: 25px; width: 92px; font-size: 8px; }
  .app-route .fcmm-page-hero h1 { font-size: clamp(3.2rem, 14vw, 5.6rem); }
  .app-route main.fcmm-route-main,
  .app-route .calculator-main { padding: 54px 22px 82px; }
  .app-route .split-panel { grid-template-columns: 1fr; }
  .app-route .split-panel .visual-panel { min-height: 320px; }
  .app-route .fcmm-app-footer { grid-template-columns: 1fr; padding: 55px 22px 36px; }
  .app-route .fcmm-app-footer .official-logo { width: 190px !important; }
  .app-route.auth-route .auth-shell { grid-template-columns: 1fr; }
  .app-route.auth-route .auth-intro { min-height: 460px; padding: 42px 26px; }
  .app-route.auth-route .auth-intro .eyebrow { margin-top: 48px; }
  .app-route.auth-route .auth-panel { padding: 42px 26px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-route *, .app-route *::before, .app-route *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* The calculator component's original selectors are intentionally overridden for dark readability. */
.app-route .fcmm-mortgage .calc-intro h2,
.app-route .fcmm-mortgage .calc-intro h3 { color: #fff !important; }
.app-route .fcmm-mortgage .calc-intro .lead,
.app-route .fcmm-mortgage .calc-intro-note { color: rgba(255,255,255,.74) !important; }

/* Official contact details are presented as an editorial contact block on every application route. */
.app-route .fcmm-contact-details,
.app-route .fcmm-footer-contact {
  display: grid;
  gap: 8px;
  margin: 30px 0 0;
  font-size: .95rem;
  line-height: 1.45;
}
.app-route .fcmm-contact-details strong { color: var(--fcmm-red-deep); font-size: 1.08rem; }
.app-route .fcmm-contact-details a { color: var(--fcmm-ink); font-weight: 700; }
.app-route .fcmm-contact-details a:hover { color: var(--fcmm-red); }
.app-route .fcmm-footer-contact { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.66); font-size: .78rem; }
.app-route .fcmm-footer-contact strong { color: #fff; font-size: .78rem; }
.app-route .fcmm-footer-contact a { margin: 0; color: #ff7973; }
.app-route .fcmm-footer-contact span { color: rgba(255,255,255,.62); }

/* Shared social icon strip for application footers. */
.app-route .fcmm-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.app-route .fcmm-socials button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; background: transparent; font: 800 .78rem/1 var(--sans); cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.app-route .fcmm-socials button:hover { border-color: var(--fcmm-red); color: #fff; background: var(--fcmm-red); transform: translateY(-2px); }

/* Official Privacy Policy summary, contact channels and legal statement. */
.app-route .policy-intro { max-width: 850px; padding-bottom: 46px; border-bottom: 1px solid var(--fcmm-rule); }
.app-route .policy-intro h2 { margin: 10px 0 19px; color: var(--fcmm-ink); font-size: clamp(2.7rem, 5.8vw, 5.3rem); font-weight: 500; letter-spacing: -.07em; line-height: .88; }
.app-route .policy-intro .button { margin-top: 28px; }
.app-route .policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.app-route .policy-card { position: relative; min-height: 245px; padding: 30px; overflow: hidden; border: 1px solid var(--fcmm-rule); border-radius: 18px; background: #fff; }
.app-route .policy-card:nth-child(2), .app-route .policy-card:nth-child(5) { color: #fff; background: linear-gradient(145deg, #171317, #09090b); }
.app-route .policy-card > span { display: block; color: var(--fcmm-red); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.app-route .policy-card h3 { margin: 18px 0 12px; color: var(--fcmm-ink); font-size: 1.45rem; letter-spacing: -.04em; }
.app-route .policy-card p { margin: 0; color: var(--fcmm-muted); font-size: .9rem; line-height: 1.58; }
.app-route .policy-card:nth-child(2) h3, .app-route .policy-card:nth-child(5) h3 { color: #fff; }
.app-route .policy-card:nth-child(2) p, .app-route .policy-card:nth-child(5) p { color: rgba(255,255,255,.7); }
.app-route .privacy-contact { margin-top: 44px; }
.app-route .privacy-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.app-route .privacy-contact-grid > div { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.23); }
.app-route .privacy-contact-grid small { color: #ff706b; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.app-route .privacy-contact-grid a { color: #fff; font-weight: 700; }
.app-route .privacy-contact-grid span { color: rgba(255,255,255,.7); line-height: 1.5; }
.app-route .fcmm-socials a { display: grid; width: 34px; height: 34px; place-items: center; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; background: transparent; font: 800 .78rem/1 var(--sans); transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.app-route .fcmm-socials a:hover { border-color: var(--fcmm-red); color: #fff; background: var(--fcmm-red); transform: translateY(-2px); }
.app-route .fcmm-legal { margin: 22px 0 0 !important; color: rgba(255,255,255,.45) !important; font-size: .67rem !important; line-height: 1.55; }
@media (max-width: 860px) { .app-route .policy-grid, .app-route .privacy-contact-grid { grid-template-columns: 1fr; } .app-route .policy-card { min-height: auto; } }

/* Keep large editorial auth headlines inside their desktop column rather than clipping long words. */
@media (min-width: 861px) {
  .app-route.auth-route .auth-shell { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .app-route.auth-route .auth-intro { min-width: 0; }
  .app-route.auth-route .auth-intro h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(2.65rem, 3vw, 4rem);
    letter-spacing: -.055em;
    line-height: .95;
  }
}
/* A single retained provider should be deliberate and full-width, not leave an empty grid. */
.auth-route .social-auth--google { grid-template-columns: minmax(0, 1fr); }
.auth-route .social-auth--google button { width: 100%; }

/* Auth is a full-bleed two-panel page, not a constrained content main. */
@media (min-width: 861px) {
  .app-route.auth-route main.auth-shell {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 78px);
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .app-route.auth-route .auth-intro { padding: clamp(58px, 7vw, 128px); }
  .app-route.auth-route .auth-intro h1 {
    max-width: 620px;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(3rem, 4.2vw, 5.2rem);
    line-height: .93;
  }
  .app-route.auth-route .auth-panel { padding: clamp(58px, 7vw, 128px); }
}

/* Google Identity button: approved standard-colour G on white, with balanced text alignment. */
.auth-route .social-auth--google button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 3px 16px;
}
.auth-route .social-auth--google .google-signin-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.auth-route .social-auth--google span { text-align: center; }

/* Compact the auth copy rhythm so navigation, labels and heading read as one deliberate block. */
.app-route.auth-route .auth-back { margin-bottom: 24px; }
.app-route.auth-route .auth-form { gap: 13px; }
.app-route.auth-route .auth-form .breadcrumb { margin: 0; }
.app-route.auth-route .auth-form h2 { margin: 2px 0 10px; line-height: .96; }
.app-route.auth-route .auth-helper { margin-top: 4px; }
.app-route.auth-route .auth-divider { margin-top: 4px; }

/* FCMM is intentionally limited to three public product lines. */
.app-route .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-route .borrower-choice-intro,
.app-route .borrower-product-detail {
  position: relative;
  margin: clamp(42px, 7vw, 88px) 0 28px;
  padding: clamp(30px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid rgba(230, 33, 26, .35);
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at 76% 25%, rgba(230,33,26,.52), transparent 29%), linear-gradient(135deg, #09090b, #1c0a0e 68%, #450a12);
}
.app-route .borrower-choice-intro::after,
.app-route .borrower-product-detail::after {
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 460px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 22px rgba(230,33,26,.09), 0 0 0 44px rgba(255,255,255,.025);
}
.app-route .borrower-choice-intro > *,
.app-route .borrower-product-detail > * { position: relative; z-index: 1; }
.app-route .borrower-choice-intro h2,
.app-route .borrower-product-detail h2 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4.8rem); max-width: 780px; }
.app-route .borrower-choice-intro .lead,
.app-route .borrower-product-detail .lead { max-width: 680px; color: rgba(255,255,255,.77); }
.app-route .borrower-product-number { display: block; margin-bottom: 16px; color: #ff716c; font-weight: 800; font-size: .82rem; letter-spacing: .16em; }
.app-route .borrower-product-grid { margin-bottom: clamp(52px, 8vw, 100px); }
.app-route .borrower-product-card { min-height: 320px; display: flex; flex-direction: column; }
.app-route .borrower-product-card .button { margin-top: auto; align-self: flex-start; }

/* Borrower Login deliberately begins with product choice rather than a broker-style credential form. */
.borrower-select-route .borrower-select-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  min-height: min(760px, calc(100vh - 82px));
  background: #0b0b0d;
}
.borrower-select-route .borrower-select-intro {
  position: relative;
  padding: clamp(64px, 8vw, 130px) clamp(44px, 7vw, 120px);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 72% 28%, rgba(230,33,26,.68), transparent 16%), radial-gradient(circle at 70% 85%, rgba(113,13,25,.58), transparent 26%), #0b0b0d;
}
.borrower-select-route .borrower-select-intro::before {
  position: absolute;
  right: -16%;
  bottom: -26%;
  width: 500px;
  aspect-ratio: 1;
  border: 1px solid rgba(230,33,26,.7);
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 32px rgba(230,33,26,.075), 0 0 0 64px rgba(255,255,255,.025);
}
.borrower-select-route .borrower-select-intro > * { position: relative; z-index: 1; }
.borrower-select-route .borrower-select-intro h1 { margin: 18px 0 25px; color: #fff; font-size: clamp(3rem, 5.1vw, 5.7rem); line-height: .94; letter-spacing: -.065em; }
.borrower-select-route .borrower-select-intro h1 em { color: #f1262d; font-style: normal; }
.borrower-select-route .borrower-select-intro p:not(.eyebrow) { max-width: 470px; color: rgba(255,255,255,.75); font-size: 1.03rem; line-height: 1.7; }
.borrower-select-route .borrower-select-intro ul { display: grid; gap: 13px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.83); }
.borrower-select-route .borrower-select-intro li { display: flex; gap: 12px; align-items: center; }
.borrower-select-route .borrower-select-intro li::before { width: 7px; height: 7px; border-radius: 50%; background: #f1262d; content: ''; box-shadow: 0 0 14px rgba(241,38,45,.75); }
.borrower-select-route .borrower-select-panel { padding: clamp(48px, 6.5vw, 96px) clamp(34px, 6vw, 90px); color: #151518; background: #f7f6f3; }
.borrower-select-route .borrower-select-panel > h2 { margin: 18px 0 8px; color: #101014; font-size: clamp(2.1rem, 4vw, 4.35rem); line-height: .97; letter-spacing: -.065em; }
.borrower-select-route .borrower-select-panel > .lead { margin: 0 0 26px; max-width: 620px; color: #5d5c5d; }
.borrower-select-route .borrower-select-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.borrower-select-route .borrower-select-card { display: flex; min-height: 280px; flex-direction: column; padding: 24px; border: 1px solid rgba(15,15,18,.14); border-radius: 18px; background: #fff; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.borrower-select-route .borrower-select-card:hover { transform: translateY(-4px); border-color: rgba(230,33,26,.65); box-shadow: 0 16px 34px rgba(22,10,13,.11); }
.borrower-select-route .borrower-select-card > span { color: #e6211a; font-size: .73rem; font-weight: 800; letter-spacing: .15em; }
.borrower-select-route .borrower-select-card h2 { margin: 30px 0 12px; color: #111114; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.045em; }
.borrower-select-route .borrower-select-card p { margin: 0; color: #606065; font-size: .89rem; line-height: 1.58; }
.borrower-select-route .borrower-select-card .button { margin-top: auto; align-self: flex-start; font-size: .72rem; }
.borrower-select-route .borrower-select-help { margin: 24px 0 0; color: #66646a; }
.borrower-select-route .borrower-select-help a { color: #bd171e; font-weight: 800; }

@media (max-width: 860px) {
  .app-route .product-grid { grid-template-columns: 1fr; }
  .borrower-select-route .borrower-select-shell { grid-template-columns: 1fr; }
  .borrower-select-route .borrower-select-intro { min-height: auto; padding: 64px 28px 56px; }
  .borrower-select-route .borrower-select-panel { padding: 40px 24px 50px; }
  .borrower-select-route .borrower-select-grid { grid-template-columns: 1fr; }
  .borrower-select-route .borrower-select-card { min-height: 220px; }
}

/* Borrower choice is a full-bleed selection experience; never squeeze product cards into a constrained app column. */
.app-route.borrower-select-route #application.page-app {
  width: 100%;
  max-width: none;
  margin: 0;
}
.borrower-select-route .borrower-select-shell {
  width: 100%;
  max-width: none;
}
.borrower-select-route .borrower-select-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.borrower-select-route .borrower-select-card {
  min-width: 0;
}
@media (min-width: 861px) and (max-width: 1500px) {
  .borrower-select-route .borrower-select-shell { grid-template-columns: minmax(360px, .84fr) minmax(0, 1.16fr); }
  .borrower-select-route .borrower-select-panel { padding: 52px clamp(34px, 4vw, 64px) 64px; }
  .borrower-select-route .borrower-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .borrower-select-route .borrower-select-card { min-height: 246px; }
}

/* Visual-audit refinements: clear active navigation, readable dark surfaces and a short route transition. */
.universe-nav .universe-links a[aria-current="page"] {
  color: #fff !important;
  text-shadow: 0 0 18px rgba(230, 33, 26, .3);
}
.universe-nav .universe-links a[aria-current="page"]::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: #e6211a;
  border-radius: 999px;
  transform: none !important;
}
body.fcmm-route-leaving #application {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.app-route .fcmm-route-label { margin-left: 10px; }
.app-route .policy-card:nth-child(2),
.app-route .policy-card:nth-child(5) {
  color: #fff !important;
}
.app-route .policy-card:nth-child(2) :is(h3, p),
.app-route .policy-card:nth-child(5) :is(h3, p) {
  color: inherit !important;
}
.app-route .fcmm-mortgage .calc-controls :is(h3, h4, p, label, label span, .calc-type-label, small),
.app-route .fcmm-mortgage .calc-controls .calc-advanced-head p {
  color: #f6f2ea !important;
}
.app-route .fcmm-mortgage .calc-controls input,
.app-route .fcmm-mortgage .calc-controls select {
  color: #fff !important;
}
.app-route .fcmm-app-footer .fcmm-legal,
.app-route .fcmm-app-footer .fcmm-footer-contact,
.app-route .fcmm-app-footer .fcmm-footer-contact :is(a, span) {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}
@media (prefers-reduced-motion: reduce) {
  body.fcmm-route-leaving #application { transition: none; transform: none; }
}

/* Medium-width route layouts must reduce density before copy or cards are squeezed. */
@media (max-width: 1080px) {
  .app-route main.fcmm-route-main,
  .app-route .calculator-main {
    width: 100%;
    max-width: none;
    padding-inline: clamp(24px, 5vw, 56px);
  }
  .app-route .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
  }
  .app-route .section-heading h2 {
    max-width: 16ch;
    font-size: clamp(2.65rem, 6.8vw, 4.5rem);
    line-height: .94;
    letter-spacing: -.06em;
  }
  .app-route .product-grid,
  .app-route .card-grid,
  .app-route .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-route .product-card {
    min-width: 0;
    min-height: 252px;
  }
}
@media (max-width: 680px) {
  .app-route main.fcmm-route-main,
  .app-route .calculator-main { padding-inline: 22px; }
  .app-route .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .app-route .section-heading h2 { max-width: none; font-size: clamp(2.4rem, 12vw, 3.7rem); }
  .app-route .product-grid,
  .app-route .card-grid,
  .app-route .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .app-route .product-card { min-height: 228px; }
}

/* Wide screens use the available editorial canvas instead of a fixed 1280px content island. */
@media (min-width: 1081px) {
  .app-route main.fcmm-route-main,
  .app-route .calculator-main {
    width: 100%;
    max-width: none;
    padding-inline: clamp(64px, 10vw, 240px);
  }
  .app-route .section-heading { max-width: none; }
  .app-route .section-heading h2 { max-width: 20ch; }
  .app-route .product-grid,
  .app-route .card-grid,
  .app-route .resource-grid { width: 100%; }
}

/* Digital Customer Care uses a human service presence rather than an abstract bot label. */
.app-route .chat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.app-route .care-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.app-route .chat-avatar,
.app-route .care-message-avatar {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(245,210,138,.55);
  background: radial-gradient(circle at 48% 28%, #7e2028, #161316 68%);
}
.app-route .chat-avatar { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(227,29,37,.18); }
.app-route .care-identity strong { display: block; color: #fff; font-size: 16px; line-height: 1.15; }
.app-route .care-identity small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #f5d28a; font-size: 11px; }
.app-route .care-identity small i { width: 7px; height: 7px; border-radius: 50%; background: #4fd07b; box-shadow: 0 0 0 3px rgba(79,208,123,.12); }
.app-route .care-message { display: flex; align-items: flex-start; gap: 10px; }
.app-route .care-message-avatar { width: 30px; height: 30px; border-radius: 50%; }
.app-route .care-message .chat-message { margin: 0; }
@media (max-width: 520px) {
  .app-route .chat-avatar { width: 44px; height: 44px; }
  .app-route .care-identity strong { font-size: 14px; }
  .app-route .care-identity small { font-size: 10px; }
}

/* Calculator redesign: a composed financial workbench, not a single heavy dark box. */
.app-route .calculator-main {
  padding-top: clamp(54px, 7vw, 104px);
  padding-bottom: clamp(72px, 8vw, 132px);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(207,25,33,.07) calc(50% - .5px), rgba(207,25,33,.07) calc(50% + .5px), transparent calc(50% + .5px));
}
.app-route .fcmm-mortgage {
  gap: clamp(26px, 3vw, 46px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.app-route .fcmm-mortgage .calc-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .65fr);
  gap: clamp(24px, 5vw, 78px);
  align-items: end;
  padding: clamp(30px, 5vw, 70px);
  overflow: hidden;
  border: 1px solid #ded8d1;
  border-radius: 22px 22px 0 0;
  color: #0d0d0f;
  background:
    radial-gradient(circle at 100% 0, rgba(226,29,37,.16), transparent 23%),
    linear-gradient(100deg, #fffdfa, #f5f1ed);
}
.app-route .fcmm-mortgage .calc-intro::before {
  position: absolute;
  top: -58%;
  right: -5%;
  width: min(44vw, 590px);
  aspect-ratio: 1;
  content: '';
  border: 1px solid rgba(224,27,36,.34);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgba(224,27,36,.07), 0 0 0 31px rgba(7,7,9,.04);
}
.app-route .fcmm-mortgage .calc-intro > * { position: relative; z-index: 1; }
.app-route .fcmm-mortgage .calc-intro h2,
.app-route .fcmm-mortgage .calc-intro h3 { max-width: 760px; color: #0b0b0d !important; font-size: clamp(2.8rem, 5.25vw, 5.45rem); line-height: .92; letter-spacing: -.075em; }
.app-route .fcmm-mortgage .calc-intro .breadcrumb { color: #c7121c !important; }
.app-route .fcmm-mortgage .calc-intro .lead { max-width: 640px; color: #4c4641 !important; font-size: 16px; }
.app-route .fcmm-mortgage .calc-intro-note {
  margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 3px solid #df1f28;
  color: #3b3531 !important;
  font-size: 13px;
  line-height: 1.65;
}
.app-route .fcmm-mortgage .calc-workspace {
  display: grid;
  grid-template-columns: minmax(350px, .9fr) minmax(400px, 1.1fr);
  gap: clamp(18px, 2vw, 30px);
  overflow: visible;
  border: 0;
  background: transparent;
}
.app-route .fcmm-mortgage .calc-controls {
  padding: clamp(26px, 3.2vw, 48px);
  border: 1px solid #ded8d1;
  border-radius: 0 0 20px 20px;
  color: #151316;
  background: #fffdfa;
  box-shadow: 0 18px 48px rgba(19,11,13,.06);
}
.app-route .fcmm-mortgage .calc-controls :is(h3, h4, p, label, label span, .calc-type-label, small),
.app-route .fcmm-mortgage .calc-controls .calc-advanced-head p { color: #28221f !important; }
.app-route .fcmm-mortgage .calc-controls h3 { font-size: 30px; letter-spacing: -.055em; }
.app-route .fcmm-mortgage .calc-controls > p:not(.breadcrumb) { max-width: 480px; margin-bottom: 32px; color: #69615b !important; }
.app-route .fcmm-mortgage .calc-field-grid { gap: 15px; }
.app-route .fcmm-mortgage .calc-field > span { color: #625851 !important; font-size: 10px; }
.app-route .fcmm-mortgage .calc-controls input,
.app-route .fcmm-mortgage .calc-controls select {
  min-height: 54px;
  border: 1px solid #d9d1ca;
  border-radius: 12px;
  color: #141114 !important;
  background: #f7f3ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.app-route .fcmm-mortgage .calc-controls input:focus,
.app-route .fcmm-mortgage .calc-controls select:focus { border-color: #dc2029; box-shadow: 0 0 0 4px rgba(220,32,41,.12); }
.app-route .fcmm-mortgage .calc-type-switch { overflow: hidden; border: 1px solid #d7cec6; border-radius: 14px; background: #f4efea; }
.app-route .fcmm-mortgage .calc-type-switch label { padding: 17px 16px; color: #5e554e; }
.app-route .fcmm-mortgage .calc-type-switch label:has(input:checked) { color: #fff; background: #151115; }
.app-route .fcmm-mortgage .calc-type-switch label:has(input:checked)::after { width: 4px; background: #e1222b; }
.app-route .fcmm-mortgage .calc-advanced { margin-top: 34px; padding-top: 28px; border-top-color: #e4ddd6; }
.app-route .fcmm-mortgage .calc-advanced-head h4 { font-size: 18px; }
.app-route .fcmm-mortgage .calc-reset { color: #bd101a; }
.app-route .fcmm-mortgage .calc-summary {
  position: sticky;
  top: 25px;
  gap: 25px;
  min-height: 100%;
  padding: clamp(28px, 3.8vw, 54px);
  border: 1px solid #2b2427;
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 5%, rgba(233,31,40,.64), transparent 0 18%),
    radial-gradient(circle at 7% 96%, rgba(123,10,22,.42), transparent 0 32%),
    linear-gradient(135deg, #1a1115, #070708 73%);
  box-shadow: 0 22px 50px rgba(22,7,11,.2);
}
.app-route .fcmm-mortgage .calc-summary::after {
  position: absolute;
  right: 26px;
  bottom: 25px;
  content: 'LIVE\A ESTIMATE';
  white-space: pre;
  color: rgba(255,255,255,.35);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .24em;
  line-height: 1.9;
  text-align: right;
}
.app-route .fcmm-mortgage .calc-payment { padding-block: 28px; }
.app-route .fcmm-mortgage .calc-payment strong { color: #fff; font-size: clamp(3.7rem, 5.25vw, 5.8rem); }
.app-route .fcmm-mortgage .calc-summary-grid { overflow: hidden; border-radius: 12px; }
.app-route .fcmm-mortgage .calc-summary-grid > div { min-height: 112px; padding: 18px; background: rgba(255,255,255,.055); }
.app-route .fcmm-mortgage .calc-split { border-radius: 14px; background: rgba(255,255,255,.04); }
.app-route .fcmm-mortgage .calc-comparison,
.app-route .fcmm-mortgage .calc-strategy,
.app-route .fcmm-mortgage .calc-schedule {
  overflow: hidden;
  border: 1px solid #ded8d1;
  border-radius: 20px;
  background: #fffdfa;
  box-shadow: 0 16px 42px rgba(17,11,12,.05);
}
.app-route .fcmm-mortgage .calc-comparison > header,
.app-route .fcmm-mortgage .calc-schedule header { padding: clamp(24px, 3vw, 40px); border-bottom-color: #e5ddd7; }
.app-route .fcmm-mortgage .calc-comparison > header h3,
.app-route .fcmm-mortgage .calc-schedule h3 { color: #171216 !important; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -.055em; }
.app-route .fcmm-mortgage .calc-comparison > header p,
.app-route .fcmm-mortgage .calc-schedule header p { color: #6d625c !important; }
.app-route .fcmm-mortgage .compare-card { min-height: 238px; padding: clamp(24px, 3vw, 40px); background: #fffdfa; }
.app-route .fcmm-mortgage .compare-card:nth-of-type(3) { background: #f7f0ed; }
.app-route .fcmm-mortgage .compare-card h4,
.app-route .fcmm-mortgage .compare-card strong { color: #181216 !important; }
.app-route .fcmm-mortgage .compare-card strong { color: #c91520 !important; font-size: clamp(2.35rem, 4vw, 4rem); }
.app-route .fcmm-mortgage .compare-card p { color: #625851 !important; }
.app-route .fcmm-mortgage .calc-strategy { grid-template-columns: minmax(300px,.85fr) minmax(0,1.15fr); }
.app-route .fcmm-mortgage .calc-strategy-header { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); background: linear-gradient(145deg, #171115, #09090a); }
.app-route .fcmm-mortgage .calc-strategy-header::after { position: absolute; right: -25%; bottom: -65%; width: 100%; aspect-ratio: 1; content: ''; border: 1px solid rgba(230,33,38,.6); border-radius: 50%; box-shadow: 0 0 0 15px rgba(230,33,38,.11), 0 0 0 36px rgba(255,255,255,.04); }
.app-route .fcmm-mortgage .calc-strategy-header > * { position: relative; z-index: 1; }
.app-route .fcmm-mortgage .calc-strategy-values > div { padding: clamp(25px, 3.5vw, 48px); background: #fffdfa; }
.app-route .fcmm-mortgage .calc-strategy-values strong { color: #c91520; font-size: clamp(2.4rem, 4vw, 4rem); }
.app-route .fcmm-mortgage .calc-schedule { background: #fffdfa; }
.app-route .fcmm-mortgage .calc-schedule table { background: #fffdfa; }
.app-route .fcmm-mortgage .calc-schedule th { color: #5f554e; background: #f5efea; }
.app-route .fcmm-mortgage .calc-schedule td { border-color: #eee7e0; color: #3d3632; }
.app-route .fcmm-mortgage .calc-schedule tbody tr:hover td { background: #fff5f5; }
.app-route .fcmm-mortgage .calc-outline-button { border-color: #c8141d; border-radius: 999px; color: #c8141d; background: transparent; }
.app-route .fcmm-mortgage .calc-outline-button:hover { color: #fff; background: #c8141d; }
.app-route .fcmm-mortgage .calc-disclaimer { padding: 4px 12px; }
.app-route .fcmm-mortgage .calc-disclaimer p { color: #665d57 !important; }
@media (max-width: 960px) {
  .app-route .fcmm-mortgage .calc-intro,
  .app-route .fcmm-mortgage .calc-workspace,
  .app-route .fcmm-mortgage .calc-strategy { grid-template-columns: 1fr; }
  .app-route .fcmm-mortgage .calc-controls { border-radius: 0 0 20px 20px; }
  .app-route .fcmm-mortgage .calc-summary { position: relative; top: auto; min-height: 0; }
}
@media (max-width: 680px) {
  .app-route .calculator-main { background: #f7f3ef; }
  .app-route .fcmm-mortgage .calc-intro { padding: 32px 22px; border-radius: 18px 18px 0 0; }
  .app-route .fcmm-mortgage .calc-intro h2 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .app-route .fcmm-mortgage .calc-controls,
  .app-route .fcmm-mortgage .calc-summary { padding: 26px 21px; }
  .app-route .fcmm-mortgage .calc-summary { border-radius: 18px; }
  .app-route .fcmm-mortgage .calc-comparison,
  .app-route .fcmm-mortgage .calc-strategy,
  .app-route .fcmm-mortgage .calc-schedule { border-radius: 18px; }
}

/* Calculator polish: selected repayment type must remain unequivocally legible. */
.app-route .fcmm-mortgage .calc-type-switch label:has(input:checked),
.app-route .fcmm-mortgage .calc-type-switch label:has(input:checked) :is(strong, small) {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.app-route .fcmm-mortgage .calc-type-switch label:has(input:checked) {
  background: linear-gradient(135deg, #0b0a0d, #211116) !important;
}
.app-route .fcmm-mortgage .calc-type-switch label:has(input:checked)::after {
  width: 6px;
  background: #e1232b;
}
.app-route .fcmm-mortgage .calc-schedule footer {
  min-height: 96px;
  padding: 18px clamp(22px, 3vw, 40px);
  border-top-color: #e4ddd6;
  background: #fffdfa;
}
.app-route .fcmm-mortgage .calc-schedule footer :is(.calc-outline-button, .button.primary) {
  display: inline-flex;
  min-height: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}
.app-route .fcmm-mortgage .calc-schedule footer .calc-outline-button {
  border-width: 1px;
  background: #fffdfa;
}
.app-route .fcmm-mortgage .calc-schedule footer .button.primary {
  border: 1px solid #df1e27;
  box-shadow: 0 7px 17px rgba(205,18,27,.18);
}
@media (max-width: 680px) {
  .app-route .fcmm-mortgage .calc-schedule footer { min-height: 0; gap: 12px; }
  .app-route .fcmm-mortgage .calc-schedule footer :is(.calc-outline-button, .button.primary) { width: 100%; min-height: 54px; height: 54px; }
}

/* Keep the repayment-detail actions as one deliberate two-button control group on desktop. */
@media (min-width: 681px) {
  .app-route .fcmm-mortgage .calc-schedule footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(248px, 1fr));
    flex: 0 0 548px;
    width: 548px;
    gap: 12px;
    align-items: center;
  }
  .app-route .fcmm-mortgage .calc-schedule footer :is(.calc-outline-button, .button.primary) {
    width: 100%;
    min-width: 0;
    padding-inline: 18px;
  }
  .app-route .fcmm-mortgage .calc-schedule footer > p { flex: 1 1 auto; min-width: 0; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .app-route .fcmm-mortgage .calc-schedule footer { justify-content: flex-end; }
  .app-route .fcmm-mortgage .calc-schedule footer > p { display: none; }
}
