.kbw-page { background: #fff; }
.kbw-page .brand small { display: inline-block; margin-left: 4px; color: var(--green-dark); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kbw-page .main-nav { gap: 20px; }
.kbw-page .main-nav a { font-size: .78rem; }

.kbw-hero { min-height: 100svh; padding-top: 150px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(145deg, #f3fbff 0%, #fff 48%, #f2ffeb 100%); }
.kbw-hero::before, .kbw-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.kbw-hero::before { width: 420px; height: 420px; top: 70px; right: -180px; background: rgba(97,181,245,.16); }
.kbw-hero::after { width: 300px; height: 300px; bottom: -140px; left: -130px; background: rgba(82,196,26,.13); }
.kbw-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,76px); align-items: center; }
.kbw-hero-copy { position: relative; z-index: 2; }
.kbw-hero-copy h1 { max-width: 760px; margin: 12px 0 25px; font-size: clamp(3.4rem,6.25vw,6.7rem); line-height: .91; letter-spacing: -.075em; }
.kbw-lead { max-width: 680px; color: var(--ink-soft); font-size: clamp(1rem,1.4vw,1.2rem); }
.kbw-offer-pill { width: fit-content; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 9px 13px; color: var(--green-dark); background: rgba(255,255,255,.84); border: 1px solid rgba(82,196,26,.24); border-radius: 999px; box-shadow: var(--shadow-soft); font-size: .72rem; font-weight: 760; }
.kbw-offer-pill span { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 6px rgba(82,196,26,.12); }
.kbw-hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.kbw-hero-points span { padding: 8px 11px; color: var(--ink-soft); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; font-weight: 700; }
.kbw-hero-visual { min-width: 0; position: relative; z-index: 2; }
.kbw-design-showcase { padding: 14px; background: rgba(255,255,255,.92); border: 1px solid rgba(38,48,68,.1); border-radius: 32px; box-shadow: 0 42px 100px rgba(34,91,132,.18); backdrop-filter: blur(18px); }
.kbw-showcase-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 12px 12px 20px; }
.kbw-showcase-head > div { display: grid; gap: 5px; }
.kbw-showcase-kicker { color: var(--purple-dark); font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.kbw-showcase-head strong { font-size: clamp(1rem,1.7vw,1.35rem); letter-spacing: -.025em; }
.kbw-showcase-head > a { flex: 0 0 auto; color: var(--ink-soft); font-size: .68rem; font-weight: 800; }
.kbw-design-deck { height: 510px; display: grid; grid-template-columns: 1.22fr .78fr; grid-template-rows: repeat(4,1fr); gap: 8px; }
.kbw-deck-item { min-width: 0; min-height: 0; position: relative; overflow: hidden; border-radius: 18px; isolation: isolate; }
.kbw-deck-featured { grid-row: 1 / -1; }
.kbw-deck-item::after { content: ""; position: absolute; inset: 38% 0 0; z-index: 1; background: linear-gradient(transparent,rgba(18,27,41,.88)); }
.kbw-deck-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.kbw-deck-item:hover img, .kbw-deck-item:focus-visible img { transform: scale(1.035); }
.kbw-deck-item > span { position: absolute; left: 13px; right: 13px; bottom: 11px; z-index: 2; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; color: white; }
.kbw-deck-item b { grid-row: 1 / span 2; color: rgba(255,255,255,.55); font-size: .6rem; }
.kbw-deck-item strong { font-size: .82rem; line-height: 1; }
.kbw-deck-item small { margin-top: 4px; color: rgba(255,255,255,.68); font-size: .56rem; }
.kbw-deck-featured > span { left: 20px; bottom: 18px; }
.kbw-deck-featured strong { font-size: 1.25rem; }
.kbw-deck-featured small { font-size: .64rem; }
.kbw-showcase-foot { display: flex; align-items: center; gap: 9px; margin: 0; padding: 16px 12px 8px; color: var(--ink-soft); font-size: .68rem; }
.kbw-showcase-foot span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; color: var(--purple-dark); background: var(--purple-pale); border-radius: 8px; }

.kbw-opportunity { background: #fff; }
.kbw-opportunity-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 58px; }
.kbw-opportunity-card { min-height: 290px; padding: 30px; background: linear-gradient(180deg,#fff,#f9fdff); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.kbw-opportunity-card > span { width: 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 13px; font-size: .69rem; font-weight: 850; }
.kbw-opportunity-card:nth-child(2) > span { background: var(--blue); }
.kbw-opportunity-card:nth-child(3) > span { background: var(--pink); }
.kbw-opportunity-card:nth-child(4) > span { background: var(--purple); }
.kbw-opportunity-card h3 { margin: 55px 0 10px; font-size: 1.3rem; }
.kbw-opportunity-card p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

.kbw-includes { background: linear-gradient(180deg,#f7fbff,#fff); }
.kbw-centered-heading { max-width: 900px; margin: 0 auto 58px; text-align: center; }
.kbw-centered-heading h2 { margin: 10px 0 18px; }
.kbw-centered-heading > p:last-child { max-width: 700px; margin-inline: auto; color: var(--ink-soft); }
.kbw-includes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kbw-include-feature { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: clamp(25px,4vw,42px); background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.kbw-icon { width: 58px; height: 58px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,var(--blue),var(--green)); border-radius: 18px; font-size: 1.35rem; font-weight: 850; }
.kbw-include-feature:nth-child(2) .kbw-icon { background: linear-gradient(145deg,var(--purple),var(--pink)); }
.kbw-include-feature:nth-child(3) .kbw-icon { background: linear-gradient(145deg,var(--green),var(--sun)); }
.kbw-include-feature:nth-child(4) .kbw-icon { background: linear-gradient(145deg,var(--ink),var(--blue)); }
.kbw-include-feature h3 { margin: 2px 0 9px; font-size: 1.25rem; }
.kbw-include-feature p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.kbw-scope-note { width: fit-content; margin: 22px auto 0; padding: 13px 18px; color: var(--ink-soft); background: var(--sun-pale); border-radius: 14px; font-size: .76rem; text-align: center; }

.kbw-process { color: white; background: linear-gradient(145deg,#263044,#2189cd); }
.kbw-process .eyebrow { color: #9de97b; }
.kbw-process .section-heading > p { color: rgba(255,255,255,.68); }
.kbw-process-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; padding: 0; margin: 58px 0 0; overflow: hidden; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); list-style: none; }
.kbw-process-list li { min-height: 330px; padding: 32px; background: rgba(255,255,255,.05); }
.kbw-process-list li > span { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); background: var(--sun); border-radius: 14px; font-size: .72rem; font-weight: 850; }
.kbw-process-list li:nth-child(2) > span { background: #9de97b; }
.kbw-process-list li:nth-child(3) > span { background: #8fd6ff; }
.kbw-process-list li:nth-child(4) > span { background: #ff9db5; }
.kbw-process-list h3 { margin: 75px 0 12px; color: white; font-size: 1.35rem; }
.kbw-process-list p { margin: 0; color: rgba(255,255,255,.67); font-size: .84rem; }

.kbw-designs { background: #fff; }
.kbw-template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.kbw-template-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.kbw-template-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; }
.kbw-template-preview { aspect-ratio: 16 / 10; position: relative; display: block; overflow: hidden; background: var(--surface-soft); }
.kbw-template-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.kbw-template-preview span { position: absolute; right: 14px; bottom: 14px; padding: 9px 12px; color: var(--ink); background: rgba(255,255,255,.9); border-radius: 999px; box-shadow: var(--shadow-soft); font-size: .68rem; font-weight: 800; opacity: 0; transform: translateY(5px); transition: .25s ease; }
.kbw-template-preview:hover img { transform: scale(1.025); }
.kbw-template-preview:hover span, .kbw-template-preview:focus-visible span { opacity: 1; transform: none; }
.kbw-template-wide .kbw-template-preview { aspect-ratio: auto; min-height: 430px; }
.kbw-template-body { position: relative; padding: 30px; }
.kbw-template-number { position: absolute; right: 28px; top: 24px; color: #dfe6ea; font-size: 3rem; font-weight: 850; line-height: 1; }
.kbw-template-body h3 { position: relative; margin: 0 0 9px; font-size: 2rem; }
.kbw-template-body > p { max-width: 600px; margin: 0 0 24px; color: var(--ink-soft); font-size: .86rem; }
.kbw-template-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.kbw-template-actions .button { padding: 11px 13px 11px 16px; font-size: .75rem; }
.kbw-template-actions .text-link { font-size: .74rem; }
.kbw-custom-note { min-height: 280px; display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 25px; margin-top: 26px; padding: clamp(28px,5vw,55px); background: linear-gradient(135deg,var(--purple-pale),var(--blue-pale),var(--green-pale)); border-radius: var(--radius-xl); overflow: hidden; }
.kbw-custom-note img { width: 220px; height: 220px; object-fit: contain; }
.kbw-custom-note h3 { margin: 7px 0 10px; font-size: clamp(1.8rem,3.5vw,3rem); }
.kbw-custom-note p:last-child { max-width: 800px; margin: 0; color: var(--ink-soft); }

.kbw-pricing { background: #f7fbff; }
.kbw-web-calculator { display: grid; grid-template-columns: .86fr 1.14fr; padding: 10px; background: linear-gradient(145deg,#dff2ff,#efffe8); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.kbw-web-controls { display: flex; flex-direction: column; gap: 28px; padding: clamp(25px,4vw,48px); }
.kbw-price-field label, .kbw-segment-field legend { display: block; margin-bottom: 9px; color: var(--ink); font-size: .72rem; font-weight: 800; }
.kbw-price-field .select-wrap { position: relative; }
.kbw-price-field select { width: 100%; min-height: 52px; padding: 0 44px 0 16px; color: var(--ink); background: white; border: 1px solid rgba(38,48,68,.12); border-radius: 15px; font: inherit; font-size: .84rem; font-weight: 750; appearance: none; }
.kbw-price-field .select-wrap > span { position: absolute; right: 16px; top: 50%; color: var(--ink-soft); transform: translateY(-50%); pointer-events: none; }
.kbw-price-field > small { display: block; min-height: 19px; margin-top: 7px; color: var(--ink-soft); font-size: .66rem; }
.kbw-segment-field { padding: 0; margin: 0; border: 0; }
.kbw-segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: rgba(255,255,255,.58); border: 1px solid rgba(38,48,68,.08); border-radius: 17px; }
.kbw-segmented button { min-height: 48px; padding: 8px 11px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 12px; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.kbw-segmented button span { display: block; color: var(--green-dark); font-size: .54rem; text-transform: uppercase; }
.kbw-segmented button.active { color: var(--ink); background: white; box-shadow: 0 7px 20px rgba(38,48,68,.1); }
.kbw-price-context { display: grid; grid-template-columns: 35px 1fr; gap: 12px; align-items: start; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(38,48,68,.1); }
.kbw-price-context > span { width: 35px; height: 35px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 11px; font-weight: 900; }
.kbw-price-context p { margin: 0; color: var(--ink-soft); font-size: .73rem; }
.kbw-price-context strong { display: block; color: var(--ink); }
.kbw-web-result { min-width: 0; padding: clamp(30px,5vw,62px); color: white; background: linear-gradient(145deg,#263044,#2189cd); border-radius: calc(var(--radius-xl) - 8px); }
.kbw-result-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.kbw-result-top > span { padding: 7px 10px; color: #d9ffc8; background: rgba(157,233,123,.12); border-radius: 999px; font-size: .61rem; font-weight: 850; text-transform: uppercase; }
.kbw-result-top > small { color: rgba(255,255,255,.57); font-size: .62rem; text-align: right; }
.kbw-result-label { margin: 38px 0 7px; color: rgba(255,255,255,.65); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kbw-result-price { display: flex; align-items: baseline; gap: 8px; }
.kbw-result-price > span { font-size: 1.35rem; font-weight: 850; }
.kbw-result-price > strong { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(4.2rem,8vw,7.6rem); line-height: .9; letter-spacing: -.075em; }
.kbw-result-price > small { display: grid; color: white; font-size: .85rem; }
.kbw-result-price em { color: rgba(255,255,255,.58); font-style: normal; }
.kbw-usd-reference { margin: 15px 0 0; color: rgba(255,255,255,.6); font-size: .7rem; }
.kbw-result-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 33px 0; overflow: hidden; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.kbw-result-details > div { min-width: 0; padding: 17px; background: rgba(255,255,255,.045); }
.kbw-result-details span, .kbw-result-details strong { display: block; }
.kbw-result-details span { color: rgba(255,255,255,.55); font-size: .59rem; text-transform: uppercase; }
.kbw-result-details strong { margin-top: 6px; color: white; font-size: .72rem; }
.kbw-web-result .button-light { color: var(--ink); }
.kbw-rate-note { display: block; margin-top: 15px; color: rgba(255,255,255,.54); font-size: .59rem; line-height: 1.5; }
.kbw-rate-note a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 2px; }
.kbw-final { background: linear-gradient(145deg,#2189cd,#52c41a); }

.kbw-page a:focus-visible, .kbw-page button:focus-visible, .kbw-page summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

@media (max-width: 1040px) {
  .kbw-page .main-nav { gap: 13px; }
  .kbw-page .main-nav a { font-size: .72rem; }
  .kbw-hero-grid { grid-template-columns: 1fr; }
  .kbw-hero-copy { max-width: 870px; }
  .kbw-hero-visual { width: min(900px,100%); margin-inline: auto; }
  .kbw-opportunity-grid { grid-template-columns: 1fr 1fr; }
  .kbw-process-list { grid-template-columns: 1fr 1fr; }
  .kbw-process-list li { min-height: 270px; }
}

@media (max-width: 820px) {
  .kbw-page .main-nav { gap: 0; }
  .kbw-page .main-nav a { font-size: .82rem; }
  .kbw-hero { padding-top: 125px; }
  .kbw-hero-copy h1 { font-size: clamp(3.1rem,11vw,5.7rem); }
  .kbw-includes-grid { grid-template-columns: 1fr; }
  .kbw-template-grid { grid-template-columns: 1fr; }
  .kbw-template-wide { grid-column: auto; display: block; }
  .kbw-template-wide .kbw-template-preview { min-height: 0; aspect-ratio: 16/10; }
  .kbw-custom-note { grid-template-columns: 170px 1fr; }
  .kbw-custom-note img { width: 170px; height: 170px; }
  .kbw-web-calculator { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .kbw-page .brand small { display: none; }
  .kbw-hero { min-height: 0; }
  .kbw-hero-copy h1 { font-size: clamp(2.8rem,13vw,4rem); }
  .kbw-offer-pill { align-items: flex-start; border-radius: 16px; }
  .kbw-design-showcase { margin-top: 18px; padding: 9px; border-radius: 24px; }
  .kbw-showcase-head { align-items: start; flex-direction: column; padding: 10px 9px 16px; }
  .kbw-design-deck { height: auto; display: flex; gap: 8px; padding-bottom: 5px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .kbw-deck-item, .kbw-deck-featured { width: min(76vw,310px); flex: 0 0 auto; aspect-ratio: 16 / 10; scroll-snap-align: start; }
  .kbw-deck-featured > span { left: 13px; bottom: 11px; }
  .kbw-deck-featured strong { font-size: .82rem; }
  .kbw-deck-featured small { font-size: .56rem; }
  .kbw-showcase-foot { align-items: flex-start; }
  .kbw-opportunity-grid { grid-template-columns: 1fr; }
  .kbw-opportunity-card { min-height: 0; }
  .kbw-opportunity-card h3 { margin-top: 35px; }
  .kbw-include-feature { grid-template-columns: 46px 1fr; gap: 14px; padding: 24px 18px; }
  .kbw-icon { width: 46px; height: 46px; border-radius: 14px; }
  .kbw-process-list { grid-template-columns: 1fr; }
  .kbw-process-list li { min-height: 0; }
  .kbw-process-list h3 { margin-top: 38px; }
  .kbw-template-body { padding: 24px 20px; }
  .kbw-template-number { right: 20px; font-size: 2.4rem; }
  .kbw-template-actions { align-items: flex-start; flex-direction: column; }
  .kbw-template-actions .button { width: 100%; justify-content: space-between; }
  .kbw-custom-note { display: block; text-align: center; }
  .kbw-custom-note img { width: 140px; height: 140px; }
  .kbw-web-controls, .kbw-web-result { padding: 25px 18px; }
  .kbw-result-top { align-items: flex-start; flex-direction: column; }
  .kbw-result-top > small { text-align: left; }
  .kbw-result-price > strong { font-size: clamp(3.2rem,17vw,5rem); }
  .kbw-result-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .kbw-template-preview img, .kbw-template-preview span { transition: none; }
}
