/*
  computers.css — Turing Mini shop page
  Builds on turing.css tokens. Product shots are transparent cutouts, so the
  machines sit directly on the black with their own light behind them.
*/

/* ── Hero ──────────────────────────────────────────────── */

.tc-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
}

.tc-hero::before {
  content: "";
  position: absolute;
  top: 34%;
  left: 50%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 45% 45%, rgba(76, 141, 255, 0.2), transparent 48%),
    radial-gradient(circle at 60% 58%, rgba(160, 108, 255, 0.14), transparent 52%),
    radial-gradient(circle at 38% 62%, rgba(47, 216, 192, 0.1), transparent 50%);
  filter: blur(46px);
  pointer-events: none;
}

.tc-hero > * { position: relative; }

.tc-hero-media {
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  max-width: 560px;
}

.tc-hero-media img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75));
  animation: tc-float 9s ease-in-out infinite;
}

@keyframes tc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .tc-hero-media img { animation: none; }
}

.tc-price-from {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--t-dim);
  margin-bottom: 1.75rem;
}

.tc-price-from b {
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--t-text);
}

/* ── Model cards ───────────────────────────────────────── */

.tc-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}

.tc-model {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tc-model:hover { border-color: var(--t-line-strong); transform: translateY(-4px); }

.tc-model-featured {
  border-color: rgba(76, 141, 255, 0.4);
  box-shadow: var(--t-glow);
}

.tc-model-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--t-blue);
  color: #fff;
}

.tc-model-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.75rem;
}

.tc-model-stage::before {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 70%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(76, 141, 255, 0.18), transparent 70%);
  filter: blur(24px);
}

.tc-model-shot {
  position: relative;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.7));
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-model:hover .tc-model-shot { transform: scale(1.04); }

.tc-model-body {
  padding: 0 1.75rem 1.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tc-model-body h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.tc-model-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--t-text);
  margin: 0 0 0.9rem;
}

.tc-model-body > p {
  color: var(--t-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}

.tc-spec-mini {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--t-muted);
}

.tc-spec-mini li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--t-line);
}

.tc-spec-mini li:last-child { border-bottom: 0; padding-bottom: 0; }
.tc-spec-mini span { color: var(--t-dim); }
.tc-spec-mini b { color: var(--t-text); font-weight: 550; text-align: right; }

.tc-buy-form { margin-top: auto; }

/* Finish picker */
.tc-finish {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  flex-wrap: wrap;
}

.tc-finish-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--t-line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--t-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tc-finish-option:hover { border-color: var(--t-line-strong); color: var(--t-text); }

/* Screen-reader-only rather than opacity:0, which would drop the radio out of
   the accessibility tree. The pill is the visual control. */
.tc-finish-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tc-finish-option:focus-within {
  border-color: var(--t-blue);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.25);
}

.tc-finish-option:has(input:checked) {
  border-color: var(--t-blue);
  background: rgba(76, 141, 255, 0.12);
  color: var(--t-text);
}

.tc-swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--t-line-strong);
  flex: none;
}

.tc-swatch-black { background: linear-gradient(135deg, #2a2d33, #101216); }
.tc-swatch-silver { background: linear-gradient(135deg, #f0f2f5, #a9aeb8); }
.tc-swatch-titanium { background: linear-gradient(135deg, #d8d1c4, #8d8880); }

.tc-finish-single {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--t-muted);
  margin-bottom: 1.1rem;
}

/* ── Angle gallery ─────────────────────────────────────── */

.tc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tc-combo {
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius-lg);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  transition: border-color 0.25s ease;
}

.tc-combo:hover { border-color: var(--t-line-strong); }

.tc-combo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.tc-combo-head h3 { font-size: 1.15rem; font-weight: 650; margin: 0; }
.tc-combo-head p { margin: 0; font-size: 0.8rem; color: var(--t-dim); }

.tc-rotate {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  margin: 0.75rem 0 1rem;
  cursor: grab;
  touch-action: pan-y;
}

.tc-rotate::before {
  content: "";
  position: absolute;
  bottom: 16%;
  left: 50%;
  width: 66%;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(76, 141, 255, 0.15), transparent 70%);
  filter: blur(22px);
}

.tc-rotate:active { cursor: grabbing; }

.tc-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.28s ease;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.7));
}

.tc-frame.is-active { opacity: 1; }

.tc-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.tc-dot {
  width: 26px;
  height: 3px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.25s ease;
}

.tc-dot.is-active { background: var(--t-arc); }

/* ── Desk photography ──────────────────────────────────── */

.tc-scene-wide {
  position: relative;
  margin: 0;
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  border: 1px solid var(--t-line);
  background: var(--t-ink);
}

.tc-scene-wide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* Bias downward so the crop lands on the desk and the machine, not the wall. */
  object-position: center 62%;
  display: block;
}

.tc-scene-wide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(to top, rgba(4, 5, 9, 0.95) 25%, transparent);
}

.tc-scene-wide figcaption strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 650;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.015em;
}

/* ── Spec comparison ───────────────────────────────────── */

.tc-compare {
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius-lg);
  overflow: hidden;
}

.tc-compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.1rem 1.6rem;
  align-items: baseline;
  font-size: 0.95rem;
}

.tc-compare-row + .tc-compare-row { border-top: 1px solid var(--t-line); }

.tc-compare-head {
  background: rgba(255, 255, 255, 0.035);
  font-weight: 650;
}

.tc-compare-head span { font-size: 1.05rem; color: var(--t-text); }

.tc-compare-row dt,
.tc-compare-row > span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-dim);
}

.tc-compare-row b { font-weight: 550; color: var(--t-text); }

/* ── Turing AI OS strip ────────────────────────────────── */

.tc-os {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--t-line);
}

.tc-os::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 75% at 20% 50%, rgba(76, 141, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 60% at 78% 50%, rgba(160, 108, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.tc-os-inner {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.tc-os-inner img {
  width: 100%;
  filter: drop-shadow(0 0 50px rgba(76, 141, 255, 0.35));
}

/* ── Order strip ───────────────────────────────────────── */

.tc-order {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--t-line);
}

.tc-order::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(76, 141, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.tc-order > * { position: relative; }

.tc-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}

.tc-order-card {
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius-lg);
  background: rgba(255, 255, 255, 0.025);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.tc-order-card h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.3rem; }
.tc-order-card > p { font-size: 0.88rem; color: var(--t-dim); margin: 0 0 1.25rem; }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 860px) {
  .tc-os-inner { grid-template-columns: 1fr; text-align: center; }
  .tc-os-inner img { max-width: 150px; margin: 0 auto; }
  .tc-compare-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .tc-compare-head { display: none; }
  .tc-compare-row b::before { content: attr(data-model) " · "; color: var(--t-dim); font-weight: 400; }
}
