/* ==========================================================================
   Local AI Hardware Checker — styles.css
   Design direction: a calm, technical "diagnostic readout" feel — closer to
   a well-made spec sheet or energy-rating label than a generic AI landing
   page. Minimal motion, one accent color, a tier scale (red→green) that
   does real communicative work instead of decorating.
   ========================================================================== */
.latu-hardware-checker{
  /* --- Color tokens --- */
  --bg: #F2F4F3;
  --surface: #FFFFFF;
  --surface-sunken: #E9ECEA;
  --ink: #171A1D;
  --ink-muted: #5B6570;
  --ink-faint: #68727B;
  --border: #DCE1DF;
  --border-strong: #C3CAC7;
  --accent: #2F6FED;
  --accent-ink: #FFFFFF;
  --accent-soft: #E8EFFE;
  --danger: #C4482E;
  --ok: #2E6B4F;

  /* --- Type tokens --- */
  --font-display: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* --- Layout tokens --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 760px;
  --max-width-narrow: 560px;
  --shadow-card: 0 1px 2px rgba(23, 26, 29, 0.04), 0 4px 16px rgba(23, 26, 29, 0.06);
}

/* --- Reset --- */
.latu-hardware-checker *, .latu-hardware-checker *::before, .latu-hardware-checker *::after{ box-sizing: border-box; }
.latu-hardware-checker{ -webkit-text-size-adjust: 100%; }
.latu-hardware-checker{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.latu-hardware-checker h1, .latu-hardware-checker h2, .latu-hardware-checker h3, .latu-hardware-checker p, .latu-hardware-checker ul, .latu-hardware-checker ol, .latu-hardware-checker figure{ margin: 0; }
.latu-hardware-checker ul{ list-style: none; padding: 0; }
.latu-hardware-checker button{ font: inherit; }
.latu-hardware-checker img{ max-width: 100%; display: block; }

.latu-hardware-checker .sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce){
  .latu-hardware-checker *, .latu-hardware-checker *::before, .latu-hardware-checker *::after{
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.latu-hardware-checker :focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Layout helpers --- */
.latu-hardware-checker .wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.latu-hardware-checker .wrap--narrow{ max-width: var(--max-width-narrow); }

/* --- Header --- */
.latu-hardware-checker .site-header{
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.latu-hardware-checker .site-header__inner{ display: flex; align-items: center; }
.latu-hardware-checker .wordmark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.latu-hardware-checker .wordmark__mark{ color: var(--accent); font-size: 14px; }

/* --- Footer --- */
.latu-hardware-checker .site-footer{
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  margin-top: 40px;
}
.latu-hardware-checker .privacy-note{
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.6;
}
.latu-hardware-checker .privacy-note strong{ color: var(--ink-muted); }

/* --- Screens --- */
.latu-hardware-checker .screen{ display: none; padding: 40px 0 24px; }
.latu-hardware-checker .screen.is-active{ display: block; }

/* ==========================================================================
   Landing screen
   ========================================================================== */
.latu-hardware-checker .display-xl{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 28px;
}

.latu-hardware-checker .subhead{
  font-size: 18px;
  color: var(--ink);
  margin-top: 14px;
  max-width: 34ch;
}

.latu-hardware-checker .supporting-text{
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 10px;
  max-width: 40ch;
}

.latu-hardware-checker .trust-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
}
.latu-hardware-checker .trust-row li{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  position: relative;
  padding-left: 14px;
}
.latu-hardware-checker .trust-row li::before{
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

/* --- Signature element: the tier gauge --- */
.latu-hardware-checker .gauge-hero__track{
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.latu-hardware-checker .gauge-hero__seg{
  flex: 1;
  background: var(--seg-color);
  opacity: 0.28;
}
.latu-hardware-checker .gauge-hero__labels{
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.latu-hardware-checker .gauge-hero__labels span{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  flex: 1;
  text-align: center;
}
.latu-hardware-checker .gauge-hero__labels span:first-child{ text-align: left; }
.latu-hardware-checker .gauge-hero__labels span:last-child{ text-align: right; }

/* Result variant: filled up to the achieved tier, with a marker */
.latu-hardware-checker .gauge-hero--result{ position: relative; }
.latu-hardware-checker .gauge-hero--result .gauge-hero__seg{ opacity: 0.22; }
.latu-hardware-checker .gauge-hero--result .gauge-hero__seg.is-filled{ opacity: 1; }
.latu-hardware-checker .gauge-hero--result .gauge-hero__labels span.is-active{
  color: var(--ink);
  font-weight: 700;
}
.latu-hardware-checker .gauge-hero__marker{
  position: absolute;
  top: -6px;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--ink);
  transform: translateX(-50%);
  transition: left 0.4s ease;
}

/* --- Buttons --- */
.latu-hardware-checker .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.latu-hardware-checker .btn--primary{
  background: var(--ink);
  color: #fff;
}
.latu-hardware-checker .btn--primary:hover{ background: #000; }
.latu-hardware-checker .btn--lg{ padding: 15px 28px; font-size: 16px; margin-top: 28px; }
.latu-hardware-checker .btn--ghost{
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--border-strong);
}
.latu-hardware-checker .btn--ghost:hover{ border-color: var(--ink-muted); color: var(--ink); }
.latu-hardware-checker .btn--ghost:disabled{ opacity: 0.4; cursor: not-allowed; }
.latu-hardware-checker .btn--full{ width: 100%; }
.latu-hardware-checker .btn--secondary{
  background: var(--accent-soft);
  color: var(--accent);
}
.latu-hardware-checker .btn--secondary:hover{ background: #DCE7FD; }

/* ==========================================================================
   Quiz screen
   ========================================================================== */
.latu-hardware-checker .progress{
  margin-top: 4px;
  margin-bottom: 28px;
}
.latu-hardware-checker .progress__bar{
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  width: 20%;
  transition: width 0.3s ease;
}
.latu-hardware-checker .progress::before{
  content: "";
  display: block;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: -4px;
}
.latu-hardware-checker .progress__label{
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.latu-hardware-checker .q-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 4px;
}
.latu-hardware-checker .q-hint{
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.latu-hardware-checker .option-list{
  display: grid;
  gap: 10px;
}
.latu-hardware-checker .use-case-options{
  display: grid;
  visibility: visible;
  opacity: 1;
}
.latu-hardware-checker .use-case-options .option-card{
  display: flex;
  min-height: 48px;
  color: var(--ink);
}
.latu-hardware-checker .option-card{
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.latu-hardware-checker .option-card:hover{ border-color: var(--border-strong); }
.latu-hardware-checker .option-card input{ position: absolute; opacity: 0; pointer-events: none; }
.latu-hardware-checker .option-card:has(input:focus-visible){
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.latu-hardware-checker .option-card__indicator{
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.latu-hardware-checker .option-card input[type="checkbox"] + .option-card__indicator{ border-radius: 5px; }
.latu-hardware-checker .option-card input:checked + .option-card__indicator{
  border-color: var(--accent);
  background: var(--accent);
}
.latu-hardware-checker .option-card input:checked + .option-card__indicator::after{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.latu-hardware-checker .option-card input[type="checkbox"]:checked + .option-card__indicator::after{
  width: 8px; height: 6px;
  background: transparent;
  border-radius: 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}
.latu-hardware-checker .option-card.is-checked{
  border-color: var(--accent);
  background: var(--accent-soft);
}
.latu-hardware-checker .option-card__label{ font-size: 15px; font-weight: 500; }
.latu-hardware-checker .option-card__sub{ font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

.latu-hardware-checker .text-input{
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  margin-top: 14px;
}
.latu-hardware-checker .text-input:focus{ border-color: var(--accent); }
.latu-hardware-checker .field-label{
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}
.latu-hardware-checker .gpu-model-field{ margin-top: 16px; min-width: 0; }
.latu-hardware-checker .gpu-model-field .text-input{ max-width: 100%; }
.latu-hardware-checker .gpu-model-combobox{ position:relative; min-width:0; }
.latu-hardware-checker .gpu-model-suggestions{
  position:absolute;
  z-index:30;
  top:calc(100% + 5px);
  right:0;
  left:0;
  max-height:280px;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:var(--surface);
  border:1px solid var(--border-strong);
  border-radius:var(--radius-md);
  box-shadow:0 12px 28px rgba(23,26,29,.16);
}
.latu-hardware-checker .gpu-model-suggestion{
  display:block;
  width:100%;
  min-width:0;
  padding:11px 14px;
  border-bottom:1px solid var(--border);
  color:var(--ink);
  cursor:pointer;
  font-size:14px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.latu-hardware-checker .gpu-model-suggestion:last-child{ border-bottom:0; }
.latu-hardware-checker .gpu-model-suggestion:hover,.latu-hardware-checker .gpu-model-suggestion.is-active{ background:var(--accent-soft); color:var(--accent); }
.latu-hardware-checker .field-help{
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 12.5px;
  line-height: 1.55;
}

.latu-hardware-checker .help-disclosure{
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.latu-hardware-checker .help-disclosure summary{
  cursor: pointer;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  list-style: none;
}
.latu-hardware-checker .help-disclosure summary::-webkit-details-marker{ display: none; }
.latu-hardware-checker .help-disclosure__body{
  padding: 0 16px 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.latu-hardware-checker .help-disclosure__body code{
  font-family: var(--font-mono);
  background: var(--surface-sunken);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

.latu-hardware-checker .quiz-nav{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.latu-hardware-checker .quiz-nav .btn{ flex: 1; }

/* Compact question-flow spacing for the dedicated checker page. */
@media (min-width: 922px){
  .latu-hardware-checker .screen{ padding: 12px 0 16px; }
  .latu-hardware-checker .progress{ margin-bottom: 14px; }
  .latu-hardware-checker .q-hint{ margin-bottom: 12px; }
  .latu-hardware-checker .option-list{ gap: 8px; }
  .latu-hardware-checker .option-card{ min-height: 48px; padding: 10px 14px; }
  .latu-hardware-checker .quiz-nav{ margin-top: 16px; }
  .latu-hardware-checker .privacy-note{ margin-top: 0; }
}

/* ==========================================================================
   Results screen
   ========================================================================== */
.latu-hardware-checker .result-spec{
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-top: 20px;
}
.latu-hardware-checker .result-spec__eyebrow{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.latu-hardware-checker .result-spec__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.latu-hardware-checker .result-spec__grid dt{
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.latu-hardware-checker .result-spec__grid dd{
  margin: 2px 0 0;
  font-weight: 700;
}

.latu-hardware-checker .score-card{
  margin-top: 22px;
  padding: 22px 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.latu-hardware-checker .score-card__headline{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 5px;
}
.latu-hardware-checker .score-card__headline h3{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
}
.latu-hardware-checker .score-card__headline p{ white-space: nowrap; }
.latu-hardware-checker .score-card__headline strong{
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}
.latu-hardware-checker .score-card__headline span{ color: var(--ink-muted); font-size: 15px; }
.latu-hardware-checker .score-card__label{
  margin-top: 6px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.latu-hardware-checker .score-card__summary{
  max-width: 58ch;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}
.latu-hardware-checker .score-bar{
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.latu-hardware-checker .score-bar span{
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.latu-hardware-checker .score-breakdown{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}
.latu-hardware-checker .score-breakdown--apple{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.latu-hardware-checker .score-breakdown div{
  min-width: 0;
  padding: 11px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.latu-hardware-checker .score-breakdown dt{ color: var(--ink-muted); font-size: 11px; }
.latu-hardware-checker .score-breakdown dd{
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.latu-hardware-checker .score-card__estimate{
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 12.5px;
}
.latu-hardware-checker .score-method{
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.latu-hardware-checker .score-method summary{
  padding-top: 14px;
  color: var(--accent);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
}
.latu-hardware-checker .score-method div{ padding-top: 9px; color: var(--ink-muted); font-size: 13px; }
.latu-hardware-checker .score-method p + p{ margin-top: 7px; }

.latu-hardware-checker .rating-block{
  margin-top: 22px;
  text-align: center;
}
.latu-hardware-checker .rating-block__gauge{ margin-bottom: 14px; }
.latu-hardware-checker .rating-word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.02em;
}
.latu-hardware-checker .rating-summary{
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 6px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.latu-hardware-checker .result-section{ margin-top: 32px; }
.latu-hardware-checker .result-section__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

/* --- Trending model matches --- */
.latu-hardware-checker .trending-models__intro{
  margin-top: -5px;
  color: var(--ink-muted);
  font-size: 14px;
}
.latu-hardware-checker .trending-models__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.latu-hardware-checker .trending-model-card{
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.latu-hardware-checker .trending-model-card__topline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.latu-hardware-checker .trending-model-card__rank{
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.latu-hardware-checker .trending-model-card__trend{
  flex: 0 0 auto;
  padding: 3px 8px;
  color: var(--ink-muted);
  background: var(--bg);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.latu-hardware-checker .trending-model-card__name{
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.latu-hardware-checker .trending-model-card__status{
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}
.latu-hardware-checker .trending-model-card__status--excellent,
.latu-hardware-checker .trending-model-card__status--good{ color: var(--ok); }
.latu-hardware-checker .trending-model-card__status--possible{ color: #8A6C12; }
.latu-hardware-checker .trending-model-card__status--difficult,
.latu-hardware-checker .trending-model-card__status--not-recommended{ color: var(--danger); }
.latu-hardware-checker .trending-model-card__specs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
}
.latu-hardware-checker .trending-model-card__specs div{
  min-width: 0;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.latu-hardware-checker .trending-model-card__specs dt,
.latu-hardware-checker .trending-model-card__label{
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.latu-hardware-checker .trending-model-card__specs dd{
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.latu-hardware-checker .trending-model-card__label{ margin-top: 14px; }
.latu-hardware-checker .trending-model-card__uses{
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latu-hardware-checker .trending-model-card__reason{
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
}
.latu-hardware-checker .trending-upgrade{
  margin-top: 12px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
}
.latu-hardware-checker .trending-upgrade__title{
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
}
.latu-hardware-checker .trending-upgrade__body{
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13.5px;
}
.latu-hardware-checker .trending-models__note{
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 11.5px;
  line-height: 1.5;
}
@media (min-width: 600px){
  .latu-hardware-checker .trending-models__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.latu-hardware-checker .capability-list{ display: grid; gap: 8px; }
.latu-hardware-checker .capability-row{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14.5px;
}
.latu-hardware-checker .capability-row__icon{
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.latu-hardware-checker .capability-row--yes .capability-row__icon{ color: var(--ok); }
.latu-hardware-checker .capability-row--maybe .capability-row__icon{ color: #B99A2E; }
.latu-hardware-checker .capability-row--no .capability-row__icon{ color: var(--ink-faint); }
.latu-hardware-checker .capability-row--no{ color: var(--ink-faint); }

.latu-hardware-checker .info-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.latu-hardware-checker .info-card + .info-card{ margin-top: 12px; }
.latu-hardware-checker .info-card__label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.latu-hardware-checker .info-card__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-top: 4px;
}
.latu-hardware-checker .info-card__body{
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.65;
}

.latu-hardware-checker .upgrade-card{
  border-color: var(--accent);
  background: var(--accent-soft);
}
.latu-hardware-checker .upgrade-card .info-card__label{ color: var(--accent); }

.latu-hardware-checker .share-row{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* --- Local AI Score share preview --- */
.latu-hardware-checker .score-share{
  width: min(680px, calc(100vw - 32px));
  max-width: 680px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(11, 29, 58, 0.28);
}
.latu-hardware-checker .score-share::backdrop{ background: rgba(11, 29, 58, 0.66); }
.latu-hardware-checker .score-share__panel{ padding: 22px; }
.latu-hardware-checker .score-share__heading{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.latu-hardware-checker .score-share__heading h3{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
}
.latu-hardware-checker .score-share__heading p{
  max-width: 54ch;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 13.5px;
}
.latu-hardware-checker .score-share__close{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.latu-hardware-checker .score-share__close:hover{ color: var(--ink); border-color: var(--border-strong); }
.latu-hardware-checker .score-share__preview{
  margin-top: 18px;
  overflow: hidden;
  background: #F5F8FC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.latu-hardware-checker .score-share__preview canvas{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}
.latu-hardware-checker .score-share__privacy{
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 12.5px;
}
.latu-hardware-checker .score-share__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.latu-hardware-checker .score-share__actions .btn{ padding: 10px 15px; font-size: 14px; }
.latu-hardware-checker .score-share__actions .btn:disabled{ opacity: 0.5; cursor: wait; }
.latu-hardware-checker .score-share__status{
  min-height: 21px;
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 13px;
}

.latu-hardware-checker .handbook-cta{
  margin-top: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
}
.latu-hardware-checker .handbook-cta__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}
.latu-hardware-checker .handbook-cta__body{
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.latu-hardware-checker .handbook-cta .btn{
  margin-top: 16px;
  background: #fff;
  color: var(--ink);
}
.latu-hardware-checker .handbook-cta .btn:hover{ background: var(--accent-soft); }

.latu-hardware-checker .restart-row{
  text-align: center;
  margin-top: 24px;
}
.latu-hardware-checker .restart-link{
  font-size: 13.5px;
  color: var(--ink-faint);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.latu-hardware-checker .restart-link:hover{ color: var(--ink-muted); }

.latu-hardware-checker .copy-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.latu-hardware-checker .copy-toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Small screens polish --- */
@media (max-width: 400px){
  .latu-hardware-checker .result-spec__grid{ grid-template-columns: 1fr 1fr; font-size: 13px; }
  .latu-hardware-checker .rating-word{ font-size: 28px; }
  .latu-hardware-checker .score-card__headline{ align-items: flex-start; flex-direction: column; gap: 7px; }
  .latu-hardware-checker .score-breakdown,.latu-hardware-checker .score-breakdown--apple{ grid-template-columns: 1fr 1fr; }
  .latu-hardware-checker .share-row .btn,
  .latu-hardware-checker .score-share__actions .btn{ width: 100%; }
  .latu-hardware-checker .score-share{ width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .latu-hardware-checker .score-share__panel{ padding: 16px; }
  .latu-hardware-checker .score-share__heading p{ font-size: 12.5px; }
  .latu-hardware-checker .gpu-model-suggestions{ max-height:min(42vh,260px); }
}
