@font-face {
  font-family: Dashboard Persian;
  src: url("persian.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c111a;
  --panel: #131b27;
  --panel-soft: #172231;
  --border: #2a394b;
  --ink: #f0f5fb;
  --muted: #acbacb;
  --teal: #73e4cb;
  --blue: #92b4ff;
  --amber: #ffd08c;
  --radius: 1.125rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 87% 1%, #152f3a 0, transparent 31rem),
    radial-gradient(ellipse at 10% 15%, #1b2033 0, transparent 34rem),
    var(--bg);
  color: var(--ink);
  font: 400 1rem/1.8 "Dashboard Persian", Tahoma, Arial, sans-serif;
}

a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[id] { scroll-margin-top: 1.25rem; }
p, h1, h2, h3, dl, dd { margin: 0; }
bdi, code { font-variant-numeric: tabular-nums; }
code { color: var(--teal); overflow-wrap: anywhere; font-size: .92em; }
.wrap { width: min(100% - 4rem, 83rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  background: var(--panel);
  padding: .5rem 1rem;
}

.site-header { border-bottom: 1px solid #ffffff16; background: #0c111a80; }
.header-inner { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: .7rem;
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: .54rem;
  color: var(--teal);
  background: #74e4cb18;
  border: 1px solid #74e4cb50;
}
.brand-mark i { width: 3px; height: 12px; border-radius: 3px; background: currentColor; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 7px; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
nav a:hover, .footer a:hover { color: var(--teal); }

.hero { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 2.8rem 0 1.65rem; }
h1 { font-size: clamp(2.25rem, 4.65vw, 4.25rem); line-height: 1.2; font-weight: 850; letter-spacing: -.025em; }
.hero p { color: var(--muted); margin-top: .65rem; max-width: 50rem; font-size: clamp(1rem, 1.35vw, 1.17rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  flex: none;
  padding: .4rem 1rem;
  text-decoration: none;
  color: var(--ink);
  background: #162130;
  border: 1px solid var(--border);
  border-radius: .65rem;
  font-size: .88rem;
  font-weight: 720;
}
.button:hover { background: #23364a; }
.button-primary { background: var(--teal); color: #09251f; border-color: transparent; }
.button-primary:hover { background: #9cf1de; }

.probook { --accent: var(--teal); --screen-bg: #103e48; --hardware: #b7d0da; }
.latitude { --accent: var(--blue); --screen-bg: #263864; --hardware: #8098b1; }
.hp250 { --accent: var(--amber); --screen-bg: #473159; --hardware: #c6bacc; }
.thinkpad { --accent: #ff999f; --screen-bg: #562a3b; --hardware: #8b8a9e; }
.elitebook { --accent: #f0aefa; --screen-bg: #4c2d57; --hardware: #c7b5d2; }
.probook640 { --accent: #a7e78f; --screen-bg: #24483c; --hardware: #b5c8bf; }
.surface { --accent: #f6db9c; --screen-bg: #514224; --hardware: #a5a2aa; }
.latitude7410 { --accent: #9cddfb; --screen-bg: #234453; --hardware: #91a9bc; }
.lineup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.device-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(168deg, color-mix(in srgb, var(--accent) 11%, var(--panel)) 0%, var(--panel) 62%);
  box-shadow: 0 12px 35px #00000020;
}
.device-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .62;
}
.device-top { padding: 1.05rem 1.25rem 0; }
.device-role {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--accent) 33%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  padding: .15rem .6rem;
  border-radius: .45rem;
  font-size: .86rem;
  font-weight: 670;
}
.device-visual { height: 8.9rem; display: grid; place-items: center; overflow: hidden; position: relative; isolation: isolate; }
.device-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 24%, transparent), transparent 66%);
  z-index: -1;
}
.machine {
  width: min(60%, 13.5rem);
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: rotate(-5deg) skewX(-8deg);
  filter: drop-shadow(0 12px 10px #0008);
}
.latitude .machine, .latitude7410 .machine, .surface .machine { transform: rotate(4deg) skewX(8deg); }
.hp250 .machine, .thinkpad .machine, .elitebook .machine { width: min(67%, 15.2rem); transform: rotate(-4deg) skewX(-6deg); }
.surface .machine-lid { aspect-ratio: 1.65; }
.machine-lid {
  width: 89%;
  aspect-ratio: 2 / 1;
  padding: 5px;
  border: 1px solid var(--hardware);
  border-radius: 7px 7px 3px 3px;
  background: #09101a;
}
.machine-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  gap: 5px;
  padding: .6rem;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 31% 140%, transparent 43%, color-mix(in srgb, var(--accent) 43%, transparent) 44%, transparent 75%),
    radial-gradient(ellipse at 93% 6%, color-mix(in srgb, var(--accent) 58%, var(--screen-bg)), transparent 62%),
    linear-gradient(140deg, #101927, var(--screen-bg));
}
.screen-line { width: 26%; height: 2px; background: #effffc61; border-radius: 4px; }
.screen-line:nth-child(2) { width: 42%; }
.screen-line:nth-child(3) { width: 34%; }
.machine-base {
  height: 14px;
  width: 100%;
  border-radius: 0 0 45% 45% / 0 0 55% 55%;
  background: linear-gradient(var(--hardware), color-mix(in srgb, var(--hardware) 56%, #111721) 76%, #1b2733 80%);
  clip-path: polygon(5.5% 0, 94.5% 0, 100% 70%, 98% 100%, 2% 100%, 0 70%);
}

.device-copy { display: flex; flex: 1; flex-direction: column; padding: 0 1.25rem 1.1rem; }
.device-copy h2 { font: 750 clamp(1.15rem, 1.75vw, 1.65rem)/1.35 system-ui, sans-serif; letter-spacing: -.035em; }
.device-benchmark { margin: .3rem 0 .75rem; color: var(--muted); font-size: .91rem; }
.device-benchmark bdi { color: var(--accent); font-weight: 740; margin-inline-start: .25rem; }
.device-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
  padding: .47rem 0;
  margin-top: auto;
}
.device-facts div { text-align: center; display: flex; flex-direction: column; }
.device-facts div + div { border-inline-start: 1px solid var(--border); }
.device-facts dd { font-size: 1.29rem; font-weight: 750; line-height: 1.32; }
.device-facts dt { color: var(--muted); font-size: .8rem; order: 1; }
.device-price { padding-top: .52rem; color: var(--accent); font-weight: 760; font-size: 1.15rem; }
.device-price span { color: var(--muted); font-size: .85rem; font-weight: 500; margin-inline-start: .45rem; }
.device-note { color: var(--muted); font-size: .88rem; line-height: 1.65; padding-top: .16rem; }

.analysis-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; margin-top: 1rem; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1rem, 2.2vw, 1.55rem); }
.section { margin-top: 1rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
h2 { font-size: 1.42rem; line-height: 1.4; font-weight: 780; }
.section-heading p { margin-top: .18rem; color: var(--muted); font-size: .9rem; }
.segmented { display: flex; flex-wrap: wrap; gap: .25rem; }
.segmented button {
  min-height: 2.35rem;
  padding: .25rem .65rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: var(--muted);
  background: var(--bg);
  font-size: .86rem;
  line-height: 1.3;
}
.segmented button:hover { background: #203044; color: var(--ink); }
.segmented button[aria-pressed="true"] { color: var(--teal); border-color: #74e4cb66; background: #74e4cb15; }
.chart { display: grid; gap: .6rem; }
.chart-labels { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; font-size: .87rem; }
.chart-labels strong { color: var(--accent); font-size: 1rem; }
.track { height: .51rem; border-radius: 1rem; background: #233145; overflow: hidden; }
.chart-unknown { color: var(--muted); font-size: .82rem; text-align: end; }
.benchmark-context { display: block; color: var(--muted); font-size: .82rem; margin-block-start: .15rem; }
.track-unknown { background: repeating-linear-gradient(135deg, #233145, #233145 4px, #141d2a 4px, #141d2a 8px); }
.bar { width: var(--percent); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 48%, #1b2733)); }
.fine { color: var(--muted); font-size: .87rem; }
.chart-note { margin-top: .7rem; }
.use-options { margin-bottom: .8rem; }
.recommendation {
  padding: .7rem .85rem;
  border-radius: .65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-inline-start: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.recommendation h3 { color: var(--accent); font-size: 1rem; font-weight: 750; }
.recommendation p { margin-top: .21rem; color: var(--muted); font-size: .92rem; }

.model-filter { display: flex; justify-content: space-between; align-items: start; gap: .45rem .75rem; flex-wrap: wrap; margin-bottom: .85rem; }
.model-filter .segmented { gap: .35rem; }
.model-filter .segmented button[aria-pressed="true"] {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
}
.model-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.text-button { border: 0; background: none; color: var(--muted); padding: .4rem .1rem; text-decoration: underline; font-size: .85rem; }
.text-button:hover { color: var(--teal); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: .75rem; }
.table-empty { padding: 1rem; color: var(--muted); }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: calc(9rem + var(--device-count, 1) * 14rem); table-layout: fixed; }
th, td { padding: .66rem .78rem; text-align: start; vertical-align: top; }
thead th { background: #1c293a; color: var(--accent, var(--ink)); font-weight: 740; }
thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; width: 9rem; }
tbody tr > * { border-top: 1px solid var(--border); }
tbody tr:nth-child(even) { background: #ffffff04; }
tbody tr:hover { background: #ffffff09; }
tbody th { position: sticky; inset-inline-start: 0; z-index: 1; font-weight: 680; background: #182433; border-inline-end: 1px solid var(--border); }
td { color: var(--muted); font-size: .92rem; }
td bdi { color: var(--ink); }

.cost-grid, .checks { display: grid; gap: .8rem; }
.cost-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .8rem; }
.cost-card, .checks article { padding: .85rem 1rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--bg); }
.cost-card { display: flex; flex-direction: column; gap: .52rem; }
.budget-status { color: var(--muted); font-size: .84rem; }
.budget-status.within-budget { color: var(--teal); }
.budget-status.over-budget { color: var(--amber); }
.cost-card h3 { color: var(--accent); font-size: 1.02rem; }
.price-field { display: grid; gap: .16rem; color: var(--muted); font-size: .85rem; }
.price-field input {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding: .25rem .65rem;
  border-radius: .47rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
  font-size: 1rem;
}
.price-field input[aria-invalid="true"] { border-color: #ff9396; }
.price-included { color: var(--muted); font-size: .88rem; margin-block: auto; }
.cost-total { margin-top: auto; padding-top: .39rem; border-top: 1px solid var(--border); font-size: .89rem; }
.cost-total bdi { color: var(--accent); font-weight: 750; }
.cost-total span { color: var(--muted); }
.cost-summary { color: var(--ink); font-weight: 680; margin-bottom: .65rem; }
.cost-summary bdi { color: var(--teal); }
.checks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checks h3 { margin-bottom: .25rem; font-size: 1rem; }
.checks p { color: var(--muted); font-size: .91rem; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 2rem; color: var(--muted); font-size: .9rem; }
.footer summary { cursor: pointer; }
.footer ul { padding-inline-start: 1.45rem; }

@media (max-width: 70rem) {
  .lineup, .cost-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analysis-grid { grid-template-columns: 1.1fr 1fr; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 55rem) {
  .lineup, .cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { width: calc(100% - 2rem); }
  .device-top, .device-copy { padding-inline: .9rem; }
  .lineup, .analysis-grid { gap: .7rem; }
  .device-visual { height: 7rem; }
  .analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 42rem) {
  .header-inner { flex-wrap: wrap; align-items: start; padding-block: .65rem; gap: .6rem; }
  nav { gap: .25rem .85rem; }
  nav a { font-size: .85rem; }
  .hero { flex-direction: column; align-items: start; padding: 1.65rem 0 1.15rem; gap: .9rem; }
  .lineup, .cost-grid { grid-template-columns: 1fr; }
  .device-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .device-top { grid-column: 1 / -1; }
  .device-copy { grid-column: 1; grid-row: 2; padding-top: .62rem; }
  .device-visual { grid-column: 2; grid-row: 2; height: 100%; }
  .machine, .hp250 .machine, .thinkpad .machine, .elitebook .machine { width: 84%; }
  .device-price { font-size: 1rem; }
  .checks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
