.device-catalog-hero,
.device-profile-hero {
  padding: 90px 0 76px;
}

.device-catalog-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.device-profile-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.catalog-flow {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--lake-edge);
}

.catalog-flow li {
  position: relative;
  padding: 18px 12px 0 0;
  color: var(--muted);
  font: 500 0.62rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-flow li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oxblood);
}

.catalog-flow li span {
  margin-right: 7px;
  color: var(--oxblood);
}

.section-lead {
  max-width: 68ch;
  color: var(--ink);
  font-size: 1.2rem;
}

.device-card-grid {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.device-card {
  min-height: 370px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.35fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.device-card-figure {
  min-height: 330px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--cream);
  background-size: 28px 28px;
}

.device-silhouette {
  position: relative;
  border: 2px solid var(--shell);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--sage);
}

.device-silhouette-v4 {
  width: 170px;
  height: 120px;
  border-radius: 13px;
}

.device-silhouette-t114 {
  width: 126px;
  height: 218px;
  border-radius: 18px 18px 24px 24px;
}

.device-screen {
  position: absolute;
  top: 21px;
  left: 22px;
  width: 91px;
  height: 46px;
  border: 2px solid var(--lake);
  background: var(--sage);
}

.device-silhouette-t114 .device-screen {
  top: 28px;
  left: 17px;
  width: 88px;
  height: 94px;
}

.device-control {
  position: absolute;
  right: 19px;
  bottom: 20px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--oxblood);
  border-radius: 50%;
  background: var(--paper);
}

.device-silhouette-t114 .device-control {
  right: 50%;
  bottom: 28px;
  transform: translateX(50%);
}

.device-antenna {
  position: absolute;
  top: -58px;
  right: 23px;
  width: 5px;
  height: 58px;
  border-radius: 4px 4px 0 0;
  background: var(--shell);
}

.device-card-copy {
  padding: 46px 48px;
  align-self: center;
}

.device-card-copy h2 {
  margin-top: 8px;
  color: var(--oxblood);
  font: 400 clamp(2rem, 4vw, 3.1rem)/1.05 var(--font-wordmark);
}

.device-role {
  margin-top: 10px;
  color: var(--lake);
  font-size: 1.22rem;
}

.device-card-copy > p:not(.card-kicker, .device-role) {
  max-width: 56ch;
  margin-top: 14px;
}

.device-card-facts {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.device-card-facts li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font: 0.58rem/1.2 var(--font-mono);
}

.device-profile-role {
  max-width: 42ch;
  margin-top: 15px;
  color: var(--lake);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font: 500 0.65rem/1.3 var(--font-mono);
}

.device-status-notice {
  max-width: 660px;
  margin-top: 28px;
  padding: 15px 18px;
  border-left: 4px solid var(--ember);
  background: var(--cream);
  line-height: 1.5;
}

.device-profile-section {
  padding-top: 4px;
}

.device-profile-section > h3 {
  margin-top: 34px;
  color: var(--oxblood);
  font: 400 1.5rem/1.2 var(--font-wordmark);
}

.device-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.device-spec {
  min-height: 112px;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line-soft);
}

.device-spec:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.device-spec:last-child,
.device-spec:nth-child(odd):nth-last-child(2) {
  border-bottom: 0;
}

.authorization-grid {
  grid-template-columns: 1fr;
}

.authorization-grid .device-spec {
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
}

.authorization-grid .device-spec:last-child {
  border-bottom: 0;
}

.device-spec dt,
.evidence-state {
  color: var(--oxblood);
  font: 500 0.62rem/1.35 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.device-spec dd {
  margin-top: 9px;
  line-height: 1.48;
}

.radio-bench {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.radio-bench-heading {
  padding: 30px 34px 27px;
  border-bottom: 1px solid var(--line-soft);
}

.radio-bench-heading h3 {
  margin-top: 7px;
  color: var(--oxblood);
  font: 400 clamp(1.8rem, 4vw, 2.45rem)/1.08 var(--font-wordmark);
}

.radio-bench-heading > p:last-child {
  max-width: 69ch;
  margin-top: 10px;
  color: var(--muted);
}

.radio-bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

.radio-hardware {
  position: relative;
  min-width: 0;
  padding: 70px 42px 42px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--cream);
  background-size: 28px 28px;
}

.radio-hardware-antenna {
  position: absolute;
  top: 23px;
  right: 16%;
  width: 7px;
  height: 67px;
  border-radius: 6px 6px 0 0;
  background: var(--shell);
}

.radio-hardware-shell {
  position: relative;
  width: min(100%, 680px);
  padding: clamp(20px, 4vw, 34px);
  border: 2px solid var(--shell);
  border-radius: 18px;
  background: #ece8dc;
  box-shadow: 11px 11px 0 #cfd9bf;
}

.radio-oled {
  aspect-ratio: 2 / 1;
  min-height: 0;
  padding: clamp(10px, 2vw, 18px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 5px solid #3b382f;
  border-radius: 7px;
  background: #03070b;
  color: #eaf2ff;
  box-shadow:
    inset 0 0 24px rgb(111 168 219 / 12%),
    0 0 0 1px #faf8ef;
  font: 500 clamp(0.62rem, 1.3vw, 0.92rem)/1.08 var(--font-mono);
  letter-spacing: 0.035em;
  text-shadow: 0 0 8px rgb(190 221 255 / 38%);
}

.radio-oled-header,
.radio-oled-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radio-oled-header {
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
}

.radio-oled-header span {
  opacity: 0.72;
}

.radio-oled-body {
  min-height: 0;
  padding: clamp(5px, 1vw, 9px) 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.radio-oled-row {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.radio-oled-row.is-selected {
  background: #eaf2ff;
  color: #03070b;
  text-shadow: none;
}

.radio-oled-ticker {
  padding-top: 5px;
  border-top: 1px solid rgb(234 242 255 / 45%);
  opacity: 0.78;
  font-size: 0.78em;
  white-space: nowrap;
}

.radio-oled[data-screen-mode="fault"] .radio-oled-row:first-child {
  padding: 2px 4px;
  background: #eaf2ff;
  color: #03070b;
  text-shadow: none;
}

.radio-oled[data-screen-mode="off"] {
  color: #68727c;
  text-shadow: none;
}

.radio-oled[data-screen-mode="off"] .radio-oled-header,
.radio-oled[data-screen-mode="off"] .radio-oled-ticker {
  border-color: transparent;
}

.radio-hardware-status {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font: 500 0.59rem/1.3 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.radio-led {
  width: 11px;
  height: 11px;
  flex: none;
  border: 1px solid #934d1d;
  border-radius: 50%;
  background: #4c2d1e;
}

.radio-led[data-led-state="activity"] {
  animation: radio-led-double 0.65s steps(1) 1;
}

.radio-led[data-led-state="operation"] {
  animation: radio-led-slow 1.3s steps(1) infinite;
}

.radio-led[data-led-state="fault"] {
  animation: radio-led-fault 1.2s steps(1) infinite;
}

@keyframes radio-led-double {
  0%, 20%, 40%, 100% { background: #4c2d1e; box-shadow: none; }
  10%, 30% { background: #f0a24a; box-shadow: 0 0 9px #f0a24a; }
}

@keyframes radio-led-slow {
  0%, 45%, 100% { background: #4c2d1e; box-shadow: none; }
  50%, 90% { background: #f0a24a; box-shadow: 0 0 9px #f0a24a; }
}

@keyframes radio-led-fault {
  0%, 12%, 24%, 36%, 100% { background: #4c2d1e; box-shadow: none; }
  6%, 18%, 30% { background: #f0a24a; box-shadow: 0 0 9px #f0a24a; }
}

.radio-bench-controls {
  min-width: 0;
  padding: 31px 28px;
  background: var(--paper);
}

.radio-control-field {
  display: block;
}

.radio-control-field + .radio-control-field {
  margin-top: 16px;
}

.radio-control-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--oxblood);
  font: 500 0.59rem/1.35 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.radio-control-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 34px 8px 10px;
  border: 1px solid var(--lake-edge);
  border-radius: 3px;
  background: var(--cream);
  color: var(--shell);
  font: 500 0.72rem/1.3 var(--font-mono);
}

.radio-control-help,
.radio-truth-boundary,
.radio-input-note,
.radio-bench-fallback {
  color: var(--muted);
  font: 0.68rem/1.55 var(--font-mono);
}

.radio-control-help {
  min-height: 3.2em;
  margin-top: 18px;
}

.radio-control-pad {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.radio-control-button {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--oxblood);
  border-radius: 4px;
  background: var(--cream);
  color: var(--oxblood);
  cursor: pointer;
  font: 600 0.66rem/1.2 var(--font-mono);
}

.radio-control-button:hover:not(:disabled) {
  background: var(--oxblood);
  color: var(--paper);
}

.radio-control-button:disabled {
  border-color: var(--line);
  color: #aaa498;
  cursor: not-allowed;
}

.radio-control-button[hidden] {
  display: none;
}

.radio-truth-boundary {
  margin-top: 19px;
  padding: 13px 14px;
  border-left: 3px solid var(--ember);
  background: var(--cream);
}

.radio-input-note {
  margin-top: 14px;
  font-size: 0.59rem;
}

.radio-bench-fallback {
  padding: 14px 34px;
  border-top: 1px solid var(--line-soft);
}

.requirement-list,
.evidence-ledger,
.catalog-choice-grid {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.requirement-item,
.evidence-item,
.catalog-choice {
  min-height: 170px;
  padding: 27px 29px;
  border-bottom: 1px solid var(--line-soft);
}

.requirement-item:nth-child(odd),
.evidence-item:nth-child(odd),
.catalog-choice:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.requirement-item:last-child,
.requirement-item:nth-child(odd):nth-last-child(2),
.evidence-item:last-child,
.evidence-item:nth-child(odd):nth-last-child(2),
.catalog-choice:last-child,
.catalog-choice:nth-child(odd):nth-last-child(2) {
  border-bottom: 0;
}

.requirement-item h4,
.evidence-item h3,
.catalog-choice h3 {
  margin: 0;
  color: var(--oxblood);
  font: 400 1.4rem/1.2 var(--font-wordmark);
}

.evidence-item h3,
.catalog-choice h3 {
  margin-top: 9px;
}

.requirement-item p,
.evidence-item > p:last-child,
.catalog-choice > p:last-child {
  margin-top: 10px;
  color: var(--muted);
}

.device-purchase-section {
  padding-bottom: 120px;
}

.purchase-unavailable {
  margin-top: 25px;
  padding: 30px 34px;
  border: 1px dashed var(--lake-edge);
  border-radius: 8px;
  background: var(--cream);
}

.purchase-unavailable strong {
  color: var(--oxblood);
  font: 400 1.45rem/1.2 var(--font-wordmark);
}

.purchase-unavailable p {
  max-width: 64ch;
  margin-top: 9px;
  color: var(--muted);
}

.purchase-link {
  margin-top: 25px;
}

@media (max-width: 760px) {
  .device-catalog-hero,
  .device-profile-hero {
    padding: 70px 0 58px;
  }

  .catalog-flow {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--lake-edge);
  }

  .catalog-flow li {
    padding: 0 0 20px 22px;
  }

  .catalog-flow li::before {
    top: 3px;
    left: -5px;
  }

  .device-card {
    grid-template-columns: 1fr;
  }

  .device-card-figure {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .radio-bench-grid {
    grid-template-columns: 1fr;
  }

  .radio-hardware {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 440px) {
  .device-card-copy {
    padding: 34px 22px;
  }

  .device-spec-grid,
  .requirement-list,
  .evidence-ledger,
  .catalog-choice-grid {
    grid-template-columns: 1fr;
  }

  .device-spec,
  .device-spec:nth-child(odd),
  .requirement-item,
  .requirement-item:nth-child(odd),
  .evidence-item,
  .evidence-item:nth-child(odd),
  .catalog-choice,
  .catalog-choice:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .device-spec:last-child,
  .requirement-item:last-child,
  .evidence-item:last-child,
  .catalog-choice:last-child {
    border-bottom: 0;
  }

  .purchase-unavailable {
    padding: 24px 22px;
  }

  .radio-bench-heading,
  .radio-bench-controls {
    padding-right: 20px;
    padding-left: 20px;
  }

  .radio-hardware {
    padding: 54px 13px 28px;
  }

  .radio-hardware-antenna {
    top: 12px;
    height: 55px;
  }

  .radio-hardware-shell {
    padding: 13px;
    border-radius: 12px;
    box-shadow: 7px 7px 0 #cfd9bf;
  }

  .radio-oled {
    padding: 9px;
    border-width: 4px;
    font-size: clamp(0.52rem, 2.55vw, 0.68rem);
  }

  .radio-control-pad {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radio-led[data-led-state] {
    animation: none;
  }

  .radio-led[data-led-state="activity"],
  .radio-led[data-led-state="operation"],
  .radio-led[data-led-state="fault"] {
    background: #f0a24a;
  }
}
