/* Shared styles for newer content pages (security, updates). Visual language follows
   /pages/loanwell-ai.html. Classes are prefixed "lw-" so they never collide with the
   Webflow stylesheet that still styles the nav and footer on these pages. */
:root {
  --lw-brand: #1a73e8;
  --lw-brand-dark: #185abc;
  --lw-navy: #0f172a;
  --lw-heading: #0a1953;
  --lw-body: #3b4766;
  --lw-muted: #5f6368;
  --lw-light-bg: #f8fbff;
  --lw-white: #ffffff;
  --lw-border: #dfe3eb;
  --lw-subtle-border: #e8eaed;
  /* chart: categorical slots 1-8 (validated: CVD/normal-vision pass; slots 3-5 < 3:1, so labels + table view ship) */
  --lw-series-1: #2a78d6;
  --lw-series-2: #eb6834;
  --lw-series-3: #1baf7a;
  --lw-series-4: #eda100;
  --lw-series-5: #e34948;
  --lw-series-6: #6250d6;
  --lw-series-7: #e87ba4;
  --lw-series-8: #008300;
}

.lw-page { color: var(--lw-body); }
.lw-page *, .lw-page *::before, .lw-page *::after { box-sizing: border-box; }
.lw-page a { color: var(--lw-brand); }

.lw-band { background: var(--lw-light-bg); padding: 4.5rem 16.667%; }
.lw-band-white { background: var(--lw-white); border-top: 1px solid var(--lw-subtle-border); padding: 4.5rem 16.667%; }
.lw-hero { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); padding: 4.5rem 16.667%; }
.lw-inner { margin: 0 auto; max-width: 1180px; }
/* the Webflow nav is position:absolute (~115px tall) and overlays the first section */
.lw-page > .lw-hero:first-child { padding-top: calc(115px + 3rem); }
.lw-page li { padding: 0; }

.lw-eyebrow { color: var(--lw-brand); font-size: .78rem; font-weight: 700; letter-spacing: .12em; margin: 0 0 .9rem; text-transform: uppercase; }
.lw-eyebrow a { color: inherit; text-decoration: none; }
.lw-h1 { color: var(--lw-heading); font-size: 3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1rem; max-width: 720px; }
.lw-h2 { color: var(--lw-heading); font-size: 2rem; font-weight: 600; line-height: 1.25; margin: 0 0 .9rem; }
.lw-lead { color: var(--lw-body); font-size: 1.1rem; line-height: 1.7; margin: 0 0 1.75rem; max-width: 680px; }
.lw-sub { color: var(--lw-body); font-size: 1rem; line-height: 1.7; margin: 0; }
.lw-header { margin: 0 auto 2.5rem; max-width: 760px; text-align: center; }
.lw-muted { color: var(--lw-muted); font-size: .95rem; }

.lw-hero-grid { align-items: start; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .95fr); }
.lw-cta-row { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.lw-btn { background: var(--lw-brand); border-radius: 999px; color: #fff !important; display: inline-block; font-size: 1rem; font-weight: 600; padding: .8rem 1.6rem; text-decoration: none; }
.lw-btn:hover { background: var(--lw-brand-dark); }
.lw-btn-light { background: #fff; border-radius: 999px; color: var(--lw-navy) !important; display: inline-block; font-size: .95rem; font-weight: 600; padding: .6rem 1.4rem; text-decoration: none; }

.lw-dots { display: grid; gap: .9rem; max-width: 720px; }
.lw-dot-item { align-items: flex-start; display: flex; gap: .8rem; font-size: .98rem; line-height: 1.6; }
.lw-dot-item::before { background: var(--lw-brand); border-radius: 999px; content: ""; flex-shrink: 0; height: 8px; margin-top: .5rem; width: 8px; }

.lw-panel { background: #fff; border: 1px solid var(--lw-border); border-radius: 24px; box-shadow: 0 16px 48px rgba(15, 23, 42, .08); padding: 1.75rem; }
.lw-panel-eyebrow { color: var(--lw-muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; margin: 0 0 1.25rem; text-transform: uppercase; }
.lw-panel-item { border-top: 1px solid var(--lw-subtle-border); display: grid; gap: .9rem; grid-template-columns: 48px minmax(0, 1fr); padding-top: 1rem; margin-top: 1rem; }
.lw-panel-item:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.lw-step { color: var(--lw-brand); font-weight: 700; margin: 0; }
.lw-item-title { color: var(--lw-heading); font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
.lw-item-text { color: var(--lw-body); font-size: .92rem; line-height: 1.6; margin: 0; }

.lw-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lw-card { background: #fff; border: 1px solid var(--lw-border); border-radius: 20px; padding: 1.6rem; }
.lw-card-soft { background: #f8fafc; border: 1px solid var(--lw-border); border-radius: 20px; padding: 1.5rem; }
.lw-card-label { color: var(--lw-brand); font-size: .76rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 .75rem; text-transform: uppercase; }
.lw-card-title { color: var(--lw-heading); font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin: 0 0 .6rem; }
.lw-card-text { color: var(--lw-body); font-size: .95rem; line-height: 1.65; margin: 0; }
.lw-list { color: var(--lw-body); font-size: .95rem; line-height: 1.6; margin: 0; padding-left: 1.1rem; }
.lw-list li { margin-bottom: .5rem; }

.lw-split { align-items: start; display: grid; gap: 2.5rem; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); }
.lw-quote { background: #eef4ff; border: 1px solid #d7e3fd; border-radius: 24px; padding: 1.75rem; }
.lw-trust-list { display: grid; gap: 1rem; }
.lw-trust-item { border-top: 1px solid var(--lw-subtle-border); padding-top: 1rem; }

.lw-midcta { background: #fff; padding: 2.5rem 16.667%; }
.lw-midcta-card { align-items: center; background: var(--lw-navy); border-radius: 20px; color: #fff; display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; padding: 1.75rem 2rem; text-align: center; }
.lw-midcta-text { color: #fff; font-size: 1.15rem; font-weight: 600; margin: 0; }
.lw-final { padding: 0 16.667% 4.5rem; background: #fff; }
.lw-final-card { background: var(--lw-navy); border-radius: 28px; color: #fff; padding: 2.5rem; text-align: center; }
.lw-final-eyebrow { color: #9ec1ff; font-size: .8rem; font-weight: 700; letter-spacing: .12em; margin: 0 0 .75rem; text-transform: uppercase; }
.lw-final-h { color: #fff; font-size: 2rem; font-weight: 600; margin: 0 0 .75rem; }
.lw-final-text { color: #dbe7ff; font-size: 1rem; line-height: 1.7; margin: 0 auto 1.5rem; max-width: 660px; }

/* Article (updates) */
.lw-article { margin: 0 auto; max-width: 760px; }
.lw-article p, .lw-article li { color: var(--lw-body); font-size: 1.05rem; line-height: 1.75; }
.lw-article h2 { color: var(--lw-heading); font-size: 1.4rem; font-weight: 600; margin: 2.25rem 0 .75rem; }
.lw-article ul { padding-left: 1.2rem; }
.lw-article li { margin-bottom: .6rem; }
.lw-callout { background: #eef4ff; border: 1px solid #d7e3fd; border-radius: 20px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.lw-callout p { margin: 0; }
.lw-sources { border-top: 1px solid var(--lw-subtle-border); margin-top: 2.5rem; padding-top: 1.25rem; }
.lw-sources p, .lw-sources li { font-size: .92rem; color: var(--lw-muted); }
.lw-post-link { color: var(--lw-heading) !important; display: block; text-decoration: none; }
.lw-post-link:hover .lw-card-title { color: var(--lw-brand); }

/* Chart: DIY annual security cost (segmented bar) */
.lw-chart { background: #fff; border: 1px solid var(--lw-border); border-radius: 24px; padding: 1.75rem; margin-bottom: 1.5rem; position: relative; }
.lw-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.lw-chart-title { color: var(--lw-heading); font-size: 1.1rem; font-weight: 600; margin: 0 0 .25rem; }
.lw-hero-num { color: var(--lw-heading); font-size: 3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin: 0; }
.lw-hero-num-label { color: var(--lw-muted); font-size: .9rem; margin: .35rem 0 0; text-align: right; }
.lw-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.lw-legend li { align-items: center; color: var(--lw-body); display: flex; font-size: .9rem; gap: .5rem; }
.lw-swatch { border-radius: 3px; display: inline-block; height: 12px; width: 12px; }
.lw-row { align-items: center; display: grid; gap: 1rem; grid-template-columns: 150px minmax(0, 1fr); margin-bottom: 1rem; }
.lw-row-label { color: var(--lw-heading); font-size: .95rem; font-weight: 600; }
.lw-bar { display: flex; gap: 2px; height: 28px; }
.lw-seg { min-width: 0; overflow: hidden; border-radius: 4px; color: #fff; cursor: default; display: flex; align-items: center; font-size: .78rem; font-weight: 600; padding-left: 6px; white-space: nowrap; outline: none; }
.lw-seg:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lw-heading); }
.lw-seg.dark-ink { color: #0b0b0b; }
.lw-included { align-items: center; background: #e6f4ea; border-radius: 999px; color: #137333; display: inline-flex; font-size: .9rem; font-weight: 600; height: 28px; padding: 0 .9rem; }
.lw-axis { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; }
.lw-ticks { border-top: 1px solid var(--lw-subtle-border); display: flex; justify-content: space-between; padding-top: .35rem; color: var(--lw-muted); font-size: .78rem; }
.lw-chart-note { color: var(--lw-muted); font-size: .85rem; line-height: 1.6; margin: 1rem 0 0; }
.lw-tip { background: var(--lw-navy); border-radius: 8px; color: #fff; font-size: .85rem; line-height: 1.4; padding: .5rem .7rem; pointer-events: none; position: absolute; transform: translate(-50%, -100%); white-space: nowrap; z-index: 5; }
.lw-table-toggle summary { color: var(--lw-brand); cursor: pointer; font-size: .9rem; margin-top: .75rem; }
.lw-table { border-collapse: collapse; font-size: .9rem; margin-top: .75rem; width: 100%; }
.lw-table th, .lw-table td { border-bottom: 1px solid var(--lw-subtle-border); padding: .45rem .5rem; text-align: left; }
.lw-table td.num, .lw-table th.num { text-align: right; }

.lw-cols { --lw-colh: 340px; align-items: flex-end; display: flex; gap: 2.5rem; justify-content: center; margin: .5rem 0 0; padding: 0 1rem; }
.lw-col-wrap { display: flex; flex: 0 1 200px; flex-direction: column; justify-content: flex-end; }
.lw-col { display: flex; flex-direction: column-reverse; gap: 2px; }
.lw-col .lw-seg { flex: none; justify-content: center; padding: 0 4px; text-align: center; white-space: normal; line-height: 1.2; }
.lw-seg-sub { background: var(--lw-navy); color: #fff; font-size: .85rem; padding: 0 10px !important; }
.lw-col-total { color: var(--lw-heading); font-size: .9rem; font-weight: 600; margin: 0 0 .5rem; text-align: center; }
.lw-col-label { border-top: 1px solid #c9d1df; color: var(--lw-heading); font-size: .95rem; font-weight: 600; margin: 0; padding-top: .6rem; text-align: center; }
.lw-cols + .lw-chart-note { margin-top: 2.5rem; }


/* Chart leader-line labels */
.lw-anno { align-self: stretch; flex: 0 1 260px; margin-top: calc(.9rem * 1.45 + .5rem); margin-bottom: calc(.95rem * 1.45 + .6rem + 1px); position: relative; }
.lw-anno-label { align-items: center; color: var(--lw-heading); display: flex; font-size: .84rem; gap: .4rem; left: 40px; line-height: 1.2; position: absolute; transform: translateY(-50%); white-space: nowrap; }
.lw-anno-label b { font-weight: 700; margin-left: .25rem; }

/* FAQ */
.lw-faq { margin: 0 auto; max-width: 860px; }
.lw-faq-item { border-bottom: 1px solid var(--lw-subtle-border); padding: 1rem 0; }
.lw-faq-item summary { color: var(--lw-heading); cursor: pointer; font-size: 1.05rem; font-weight: 600; list-style: none; padding-right: 2rem; position: relative; }
.lw-faq-item summary::-webkit-details-marker { display: none; }
.lw-faq-item summary::after { color: var(--lw-brand); content: "+"; font-size: 1.4rem; line-height: 1; position: absolute; right: 0; top: 0; }
.lw-faq-item[open] summary::after { content: "\2212"; }
.lw-faq-item p { color: var(--lw-body); font-size: .98rem; line-height: 1.7; margin: .75rem 0 0; }
.lw-reviewed { color: var(--lw-muted); font-size: .9rem; }

/* Internal-template helpers (security page) */
/* header: keep internal-page top spacing, trim the template's 12vh bottom pad */
.container.titles.lw-titles { min-height: 0; padding-bottom: 3rem; }
.lw-hero-btn { margin: 1.5rem 0 0; }
.lw-steps { background: #fff; padding: 0 16.667% 4rem; }
.lw-steps-eyebrow { text-align: center; }
.lw-cards.lw-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lw-cards.lw-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lw-cards.lw-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lw-cards.lw-cards-1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.lw-step-card { padding: 1.4rem; }
.lw-step-card .lw-card-title { font-size: 1rem; }
.lw-step-card .lw-card-text { font-size: .9rem; }
.lw-intro { max-width: 720px; margin: 1rem 0 0; }
.lw-block { padding: 4rem 0; }
.lw-block-white { background: #fff; }
.lw-lede { max-width: 760px; margin: 0 0 2rem; }
.lw-more { margin-top: 1.25rem; }
.lw-cards .box-wrapper { display: block; height: auto; }
.lw-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lw-cards .box-wrapper a { color: #1a73e8; }
.lw-cards + .lw-cards, .lw-chart + .lw-cards { margin-top: 1.5rem; }
.lw-callout-band { padding: 3rem 2.5rem; }
.lw-callout-band .heading-large { margin: .5rem 0 1rem; }
.lw-callout-band .main-paragraph { max-width: 640px; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .lw-band, .lw-band-white, .lw-hero, .lw-midcta { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lw-final { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lw-hero-grid, .lw-split { grid-template-columns: 1fr; }
  .lw-h1 { font-size: 2.2rem; }
  .lw-h2 { font-size: 1.6rem; }
  .lw-hero-num { font-size: 2.2rem; }
  .lw-hero-num-label { text-align: left; }
  .lw-steps { padding: 0 1.5rem 3rem; }
  .lw-cards.lw-cards-4, .lw-cards.lw-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw-block { padding: 3rem 1.25rem; }
  .lw-callout-band { padding: 2rem 1.25rem; }
  .lw-cols { --lw-colh: 280px; flex-wrap: wrap; gap: .5rem; row-gap: 2rem; justify-content: flex-start; padding: 0; }
  .lw-cols .lw-col-wrap { flex: 0 0 96px; }
  .lw-cols .lw-col-wrap:last-child { flex: 0 0 100%; max-width: 220px; }
  .lw-anno { flex: 1 1 0; min-width: 0; }
  .lw-anno-label { font-size: .74rem; white-space: normal; width: calc(100% - 40px); }
}
@media (max-width: 600px) {
  .lw-cards.lw-cards-4, .lw-cards.lw-cards-3, .lw-cards.lw-cards-2 { grid-template-columns: 1fr; }
  /* chart: both columns side by side, cost list underneath (no leader lines) */
  .lw-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; row-gap: 1.25rem; align-items: end; --lw-colh: 240px; }
  .lw-cols .lw-col-wrap, .lw-cols .lw-col-wrap:last-child { flex: none; max-width: none; min-width: 0; }
  .lw-cols .lw-col-wrap:first-child { grid-column: 1; grid-row: 1; }
  .lw-cols .lw-col-wrap:last-child { grid-column: 2; grid-row: 1; }
  .lw-anno.lw-anno-list { grid-column: 1 / -1; grid-row: 2; margin: 0; position: static; }
  .lw-anno-row { align-items: center; border-bottom: 1px solid var(--lw-subtle-border); color: var(--lw-heading); display: flex; font-size: .86rem; gap: .5rem; padding: .45rem 0; }
  .lw-anno-row .lw-anno-name { flex: 1; }
  .lw-anno-row b { font-weight: 700; white-space: nowrap; }
  .lw-seg-sub { font-size: .78rem; }
}
