:root {
  --ink: #172019;
  --muted: #697269;
  --line: #e2e7df;
  --paper: #f7f8f4;
  --white: #fff;
  --green: #285c42;
  --green-2: #a8d29f;
  --lime: #dff2b6;
  --orange: #e88448;
  --sidebar: 228px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.sidebar {
  width: var(--sidebar); height: 100vh; position: fixed; inset: 0 auto 0 0; z-index: 10;
  background: #f1f3ed; border-right: 1px solid var(--line); padding: 31px 20px 24px;
  display: flex; flex-direction: column;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; letter-spacing: -.5px; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.nav-list { margin-top: 47px; display: grid; gap: 7px; }
.nav-item { height: 42px; padding: 0 12px; border-radius: 9px; display: flex; align-items: center; gap: 12px; color: #697069; font-size: 13px; font-weight: 650; transition: .2s ease; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover, .nav-item.active { color: var(--ink); background: white; box-shadow: 0 1px 3px #1c2d2010; }
.sidebar-spacer { flex: 1; }
.freshness-card { background: #e6eadf; border-radius: 12px; padding: 15px; font-size: 11px; color: #70776e; line-height: 1.45; }
.freshness-card p { margin: 9px 0 11px; }
.freshness-title { color: var(--ink); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4a9862; box-shadow: 0 0 0 4px #4a98621b; }

.main-content { margin-left: var(--sidebar); overflow: hidden; }
.mobile-header { display: none; }
.hero { padding: 78px clamp(34px, 6vw, 90px) 59px; max-width: 1390px; margin: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.2px; font-size: 10px; font-weight: 800; color: var(--green); display: flex; align-items: center; gap: 9px; }
.eyebrow > span { width: 20px; height: 1px; background: currentColor; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 24px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(55px, 6.2vw, 91px); line-height: .93; letter-spacing: -4.7px; margin: 0; }
h1 em, h2 em { color: var(--green); font-weight: 400; }
.hero-copy { max-width: 510px; color: var(--muted); line-height: 1.7; font-size: 14px; margin: 30px 0 0; }
.provider-faces { display: flex; margin-top: 21px; }
.provider-face { width: 30px; height: 30px; margin-left: -7px; border: 2px solid var(--paper); display: grid; place-items: center; border-radius: 50%; overflow: hidden; }
.provider-face:first-child { margin-left: 0; }

.insight-strip { max-width: 1390px; margin: 0 auto; padding: 0 clamp(34px, 6vw, 90px) 69px; display: grid; grid-template-columns: repeat(3, 1fr); }
.insight-strip article { padding: 6px 30px; border-left: 1px solid var(--line); }
.insight-strip article:first-child { padding-left: 0; border-left: 0; }
.insight-label { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 750; }
.insight-sort { display: block; border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; }
.insight-sort strong { display: block; font-family: Georgia, serif; font-size: 27px; font-weight: 400; margin: 9px 0 4px; }
.insight-sort:hover strong { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.insight-sort:focus-visible { border-radius: 3px; outline: 2px solid var(--green); outline-offset: 4px; }
.insight-strip small { color: var(--muted); font-size: 11px; }
.insight-strip .provider-faces { margin-top: 12px; }

.catalog { background: white; border-top: 1px solid var(--line); padding: 62px clamp(34px, 6vw, 90px) 72px; }
.catalog > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: center; }
h2 { font-family: Georgia, serif; font-size: 36px; font-weight: 400; letter-spacing: -1.4px; margin: 0; }
.section-heading p { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.view-toggle { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 3px; display: flex; }
.view-toggle button { width: 31px; height: 28px; border: 0; border-radius: 5px; display: grid; place-items: center; background: transparent; color: #8b938a; }
.view-toggle button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px #1a251b17; }
.view-toggle svg { width: 16px; height: 16px; }

.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) 92px 190px 185px; gap: 10px; margin-top: 32px; }
.search-field { height: 43px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; gap: 9px; }
.search-field:focus-within { border-color: #82a88d; box-shadow: 0 0 0 3px #8abb9820; }
.search-field svg { width: 17px; color: #939a92; }
.search-field input { border: 0; outline: 0; min-width: 0; flex: 1; color: var(--ink); font-size: 12px; }
.search-field input::placeholder { color: #9ca39b; }
kbd { font-family: inherit; color: #90978f; font-size: 9px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; background: var(--paper); }
.free-only-filter { height: 43px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #596159; font-size: 10px; font-weight: 700; }
.free-only-filter span { color: #4a9862; margin-right: 4px; }
.free-only-filter:hover { border-color: #9eb29f; }
.free-only-filter.active { border-color: var(--green); background: var(--green); color: white; }
.free-only-filter.active span { color: var(--lime); }
.select-wrap select { width: 100%; height: 43px; color: #596159; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 0 32px 0 12px; font-size: 11px; outline: 0; }
.provider-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; margin-bottom: 25px; }
.provider-filter { flex: none; border: 1px solid var(--line); border-radius: 50px; background: white; padding: 7px 12px; color: #6b736b; font-size: 10px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.provider-filter:hover { border-color: #b7c1b6; }
.provider-filter.active { background: var(--green); border-color: var(--green); color: white; }
.provider-filter .mini-logo { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.provider-more select { height: 31px; max-width: 155px; border: 1px solid var(--line); border-radius: 50px; background: #f8f9f6; color: #626b62; padding: 0 28px 0 11px; font-size: 10px; font-weight: 650; outline: 0; }
.provider-more select:focus { border-color: #82a88d; box-shadow: 0 0 0 3px #8abb9820; }

.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: #f6f7f3; color: #788077; height: 39px; text-align: left; text-transform: uppercase; letter-spacing: .8px; font-size: 8px; font-weight: 800; padding: 0 17px; }
th span { text-transform: none; letter-spacing: 0; font-weight: 500; }
td { height: 68px; border-top: 1px solid #e9ece7; padding: 0 17px; font-size: 11px; color: #545d54; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fafbf8; }
.model-cell { display: flex; align-items: center; gap: 12px; }
.model-logo { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.model-logo img, .mini-logo img, .provider-face img { width: 58%; height: 58%; object-fit: contain; filter: brightness(0) invert(1); }
.model-logo img.brand-color, .mini-logo img.brand-color, .provider-face img.brand-color { width: 100%; height: 100%; filter: none; }
.avatar-initials { color: white; font-size: 8px; font-weight: 800; letter-spacing: -.2px; }
.provider-face .avatar-initials { font-size: 7px; }
.mini-logo .avatar-initials { font-size: 5px; }
.model-name { display: block; border: 0; padding: 0; background: transparent; color: var(--ink); font-weight: 720; font-size: 12px; text-align: left; }
.model-name:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.model-tags { display: flex; gap: 4px; margin-top: 5px; }
.model-tag { font-size: 7px; text-transform: uppercase; letter-spacing: .4px; background: #edf1e9; color: #738071; border-radius: 3px; padding: 2px 4px; font-weight: 750; }
.provider-name { display: flex; align-items: center; gap: 7px; }
.provider-name .dot { width: 7px; height: 7px; border-radius: 50%; }
.price { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 670; }
.price.cheapest { color: #277544; }
.context { font-variant-numeric: tabular-nums; }
.row-action { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #7d857d; display: grid; place-items: center; font-size: 15px; transition: .15s ease; }
.row-action:hover { color: white; border-color: var(--green); background: var(--green); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state > span { font-size: 33px; color: #98a097; }
.empty-state h3 { margin: 9px 0 4px; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state button { margin-top: 17px; border: 0; background: var(--green); color: white; border-radius: 7px; padding: 9px 14px; font-size: 11px; }
.load-more { display: flex; align-items: center; gap: 8px; margin-top: 20px; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 750; }
.load-more span { font-size: 15px; }
.catalog.compact td { height: 50px; }
.catalog.compact .model-tags { display: none; }
.catalog.compact .model-logo { width: 27px; height: 27px; border-radius: 6px; }

.calculator { background: var(--green); color: white; padding: 75px clamp(34px, 6vw, 90px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.calculator > * { max-width: 570px; }
.eyebrow.light { color: var(--green-2); }
.calculator h2 { color: white; font-size: clamp(39px, 4vw, 56px); line-height: 1; margin-top: 20px; letter-spacing: -2px; }
.calculator h2 em { color: var(--lime); }
.calculator-intro > p { color: #c3d1c6; line-height: 1.7; font-size: 12px; max-width: 390px; margin: 23px 0; }
.formula-note { border-top: 1px solid #ffffff2b; padding-top: 18px; display: flex; gap: 9px; color: #a8baad; font-size: 9px; line-height: 1.45; }
.formula-note svg { width: 16px; height: 16px; flex: none; }
.calculator-card { background: white; color: var(--ink); border-radius: 14px; padding: 27px; box-shadow: 0 23px 60px #0b251554; }
.calculator-card label > span { display: block; text-transform: uppercase; letter-spacing: .8px; font-size: 8px; font-weight: 800; color: #747d74; margin-bottom: 7px; }
.calculator-card select, .calculator-card input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf8; color: var(--ink); padding: 0 11px; outline: 0; font-size: 11px; }
.calculator-card select:focus, .calculator-card input:focus { border-color: #83a58c; box-shadow: 0 0 0 3px #7aaa8720; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.estimate-result { margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; }
.estimate-result span { color: var(--muted); font-size: 9px; }
.estimate-result strong { display: block; font-family: Georgia, serif; font-size: 35px; font-weight: 400; color: var(--green); margin-top: 3px; }
.estimate-split { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.estimate-split b { color: var(--ink); margin-left: 5px; }

footer { background: #15231a; color: #809087; display: flex; justify-content: space-between; align-items: center; padding: 31px clamp(34px, 6vw, 90px); font-size: 9px; }
.footer-brand { color: white; font-size: 14px; }
.footer-brand .brand-mark { width: 23px; height: 23px; border-radius: 6px; background: #dcecbb; color: var(--green); font-size: 14px; }
footer p { max-width: 430px; text-align: center; line-height: 1.5; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.model-dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 28px 90px #0d201657; }
.model-dialog::backdrop { background: #14241b99; backdrop-filter: blur(3px); }
.dialog-card { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: #697269; font-size: 21px; line-height: 1; }
.dialog-close:hover { background: var(--green); border-color: var(--green); color: white; }
.dialog-eyebrow { display: block; color: var(--green); text-transform: uppercase; letter-spacing: 1.7px; font-size: 9px; font-weight: 800; margin-bottom: 13px; }
.model-dialog h2 { padding-right: 40px; font-size: 34px; }
.dialog-meta { margin: 8px 0 0; color: #788078; font-size: 10px; }
.dialog-description { margin: 22px 0 25px; color: #606a61; font-size: 12px; line-height: 1.65; }
.dialog-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-link { min-height: 63px; border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: .15s ease; }
.detail-link:hover { border-color: #9aaf9d; background: #f5f8f2; }
.detail-link strong, .detail-link small { display: block; }
.detail-link strong { color: var(--ink); font-size: 11px; }
.detail-link small { margin-top: 4px; color: #858d84; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.detail-link b { color: var(--green); font-size: 16px; }

@media (max-width: 980px) {
  :root { --sidebar: 190px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .filter-bar { grid-template-columns: 1fr 92px 170px; }
  .filter-bar .select-wrap:last-child { display: none; }
  .calculator { grid-template-columns: 1fr; }
  .calculator > * { max-width: none; }
}

@media (max-width: 720px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: 240px; box-shadow: 8px 0 30px #15251a28; }
  body.menu-open .sidebar { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; height: 67px; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
  .mobile-header .brand { font-size: 16px; }
  .mobile-header .brand-mark { width: 27px; height: 27px; }
  .icon-button { border: 0; background: transparent; font-size: 20px; color: var(--ink); }
  .hero { padding: 52px 22px 46px; }
  .hero-row { display: block; }
  h1 { font-size: clamp(49px, 16vw, 72px); letter-spacing: -3px; }
  .insight-strip { padding: 0 22px 47px; grid-template-columns: 1fr; gap: 18px; }
  .insight-strip article, .insight-strip article:first-child { padding: 0 0 0 15px; border-left: 1px solid var(--line); }
  .catalog { padding: 48px 18px 55px; }
  .filter-bar { display: flex; flex-wrap: wrap; }
  .search-field { width: 100%; }
  .free-only-filter { flex: none; }
  .select-wrap { flex: 1; }
  .filter-bar .select-wrap:last-child { display: block; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 720px; }
  .provider-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .provider-filter { flex: none; }
  .calculator { padding: 56px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .estimate-result { align-items: flex-start; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .dialog-card { padding: 28px 22px; }
  .dialog-links { grid-template-columns: 1fr; }
}
