:root {
  color-scheme: light;
  --canvas: #f8f7f3;
  --surface: #fffefa;
  --ink: #25231f;
  --muted: #625e54;
  --line: #e5e1d8;
  --accent: #b63c20;
  --accent-soft: #faeae1;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 96px, 1120px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 72px; align-items: center; }
.brand { font-size: 22px; font-weight: 780; letter-spacing: -.065em; text-decoration: none; }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 62px 52px; }
.kicker { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 650; letter-spacing: .115em; text-transform: uppercase; }
h1 { margin-top: 15px; font-size: clamp(42px, 5.7vw, 79px); font-weight: 770; line-height: .99; letter-spacing: -.065em; word-spacing: .025em; overflow-wrap: anywhere; }
h1 em { color: var(--accent); font-style: normal; }
.intro { max-width: 412px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.viewfinder { position: relative; display: grid; place-items: center; flex: 0 1 340px; height: 211px; margin-right: 28px; isolation: isolate; }
.viewfinder-grid {
  position: absolute;
  inset: 9px;
  background-image: radial-gradient(circle, #b9a894 1px, transparent 1.35px);
  background-size: 14px 14px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 77%);
  z-index: -1;
}
.viewfinder-play { display: grid; place-items: center; width: 73px; height: 73px; background: var(--accent-soft); border: 1px solid #edc9b8; border-radius: 19px; transform: rotate(-9deg); box-shadow: 5px 7px 0 #e9dfd3; }
.viewfinder-play::after { content: ""; margin-left: 5px; border-block: 13px solid transparent; border-left: 21px solid var(--accent); }
.corner { position: absolute; width: 15px; height: 15px; border: solid #ac9886; }
.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 21px 24px 23px; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.comparison-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filter label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 690; }
.filter + .filter { border-left: 1px solid var(--line); padding-left: 24px; }
.select-field { position: relative; display: grid; align-items: center; }
.select-field :is(select, .select-trigger) {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 10px 51px 10px 14px;
  border: 1px solid #d9d3c8;
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 640;
  text-overflow: ellipsis;
}
.select-trigger { text-align: left; white-space: nowrap; overflow: hidden; }
.select-field :is(select, .select-trigger):hover { border-color: #a99b8a; }
.select-field :is(select, .select-trigger):focus-visible { outline-offset: 2px; }
.select-field::before, .select-field::after { content: ""; position: absolute; pointer-events: none; }
.select-field::before { inset-inline-end: 9px; width: 28px; height: 28px; border-radius: 6px; background: var(--accent-soft); }
.select-field::after { inset-inline-end: 19px; width: 8px; height: 8px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }

.select-menu {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 5px) 0 auto;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid #d9d3c8;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 20px #25231f1a;
}
.select-menu.opens-up { inset-block: auto calc(100% + 5px); }
.select-option { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.select-option:hover { background: var(--canvas); }
.select-option[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 690; }
.select-option[data-active] { outline: 1px solid currentColor; outline-offset: -1px; }
.select-check { flex: none; }

@media (forced-colors: active) {
  .select-field select { appearance: auto; padding-inline-end: 10px; }
  .select-field:not(.enhanced-select)::before, .select-field:not(.enhanced-select)::after { display: none; }
}

.results { margin-top: 38px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px 16px; margin-bottom: 15px; }
.results-heading h2 { font-size: clamp(22px, 3.4vw, 29px); font-weight: 740; line-height: 1.12; letter-spacing: -.045em; }
.results-heading h2 + p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.demo-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.demo-note::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: #bd4225; }
.table-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 12px 20px; overflow-wrap: anywhere; }
th { color: var(--muted); background: #f0eee7; font-family: var(--mono); font-size: 10px; font-weight: 670; letter-spacing: .045em; text-transform: uppercase; }
td { height: 57px; border-top: 1px solid var(--line); font-size: 14px; }
.comparison-table tbody tr { position: relative; }
.comparison-table tbody tr:is(:hover, :focus-within) { background: #fcf8f1; }
.provider-cell, .plan-cell { font-weight: 705; }
.provider { display: flex; gap: 10px; align-items: center; }
.mobile-meta, .comparison-meta { display: none; }
.provider-mark { flex: 0 0 32px; height: 32px; display: grid; place-items: center; background: var(--mark-bg, #eae8e0); color: var(--mark-ink, #3d382f); border-radius: 8px; font-size: 13px; font-weight: 750; }
.provider-mark[data-color="1"] { --mark-bg: #e9e3f5; --mark-ink: #503772; }
.provider-mark[data-color="2"] { --mark-bg: #e2ede4; --mark-ink: #31583a; }
.provider-mark[data-color="3"] { --mark-bg: #f4e6d5; --mark-ink: #61411e; }
.provider-mark[data-color="4"] { --mark-bg: #e1ebf1; --mark-ink: #334f60; }
.provider-mark[data-color="5"] { --mark-bg: #f3e3e4; --mark-ink: #713849; }
.resolution-col { color: var(--muted); font-family: var(--mono); font-size: 12px; }
th.resolution-col { font-size: 10px; }
.plan-resolution { display: none; }
.billing-value { display: inline-block; max-width: 100%; padding: 4px 8px; border-radius: 6px; background: #f0eee7; color: var(--muted); font-size: 12px; font-weight: 630; line-height: 1.3; }
.price-cell { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.price-cell { font-weight: 700; }
.price-link { display: inline-block; max-width: 100%; padding: 5px 0; color: var(--accent); text-decoration-color: #c99485; text-underline-offset: 3px; }
.price-link::after { content: ""; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.price-link:hover { text-decoration-color: currentColor; }
.price-link:focus-visible { outline: none; }
.price-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
th.price-cell span { margin-left: 3px; color: var(--accent); }

.site-footer { padding-block: 21px 32px; margin-top: 27px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.status { padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); overflow-wrap: anywhere; }
.detail { padding-top: 35px; }
.detail-hero { margin-top: 42px; }
.detail-hero h1 { font-size: clamp(44px, 6vw, 72px); }
.detail-hero .intro { margin-top: 14px; }
.detail-filters, .detail > .status { margin-top: 32px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 670; text-underline-offset: 3px; }
.back-link span { font-size: 18px; }

@media (max-width: 1040px) {
  .comparison-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-filters .filter:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 890px) {
  .wrap { width: calc(100% - 56px); }
  .viewfinder { margin-right: 0; flex-basis: 255px; height: 175px; }
  .filters { gap: 16px; }
  .filter + .filter { padding-left: 16px; }
  .comparison-table .model-col { display: none; }
  .comparison-table :is(th, td) { padding-inline: 12px; }
  .mobile-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.35; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 59px; }
  .brand { font-size: 20px; }
  .hero { padding-block: 42px 33px; }
  .viewfinder { display: none; }
  .hero h1 { font-size: clamp(39px, 8.3vw, 54px); }
  .intro { margin-top: 14px; font-size: 15px; }
  .filters { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 14px; }
  .filter + .filter { border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; }
  .comparison-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-filters .filter + .filter { border: 0; padding: 0; }
  .results { margin-top: 28px; }
  .results-heading { flex-wrap: wrap; }
  th, td { padding: 11px 10px; }
  td { font-size: 13px; }
  .comparison-table { table-layout: fixed; }
  .comparison-table :is(th, td) { padding-inline: 8px; }
  .comparison-table th:first-child { width: 37%; }
  .comparison-table th.plan-col { width: 36%; }
  .comparison-table :is(.resolution-col, .billing-col, .plan-price-col) { display: none; }
  .comparison-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.35; }
  .provider { gap: 7px; }
  .provider-mark { flex-basis: 25px; height: 25px; border-radius: 6px; }
  .detail { padding-top: 24px; }
  .detail-hero { margin-top: 30px; }
}

@media (max-width: 480px) {
  .comparison-filters { grid-template-columns: minmax(0, 1fr); }
  .comparison-filters .filter + .filter { padding-top: 13px; border-top: 1px solid var(--line); }
  .comparison-table :is(th, td) { padding-inline: 6px; }
  .comparison-table .price-link { font-size: 11px; }
  .tariff-table { table-layout: fixed; }
  .tariff-table th, .tariff-table td { padding-inline: 6px; }
  .tariff-table th { font-size: 9px; letter-spacing: 0; overflow-wrap: normal; }
  .tariff-table th:first-child { width: 25%; }
  .tariff-table th:nth-child(2) { width: 29%; }
  .tariff-table th:nth-child(3) { width: 24%; }
  .tariff-table .resolution-col { display: none; }
  .plan-resolution { display: block; margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 500; }
  .billing-value { padding-inline: 5px; font-size: 11px; }
}

@media (max-width: 319px) {
  .tariff-table th, .tariff-table td { padding-inline: 3px; }
  .tariff-table th { font-size: 8px; }
  .billing-value { padding-inline: 3px; font-size: 10px; }
}
