/* ================================================================
   Dash product page (/tools/dash)
   Builds on style.css tokens. Namespaced .dashp-*.
   ================================================================ */

.dashp {
  display: block;
}

/* --- Hero --- */
.dashp-hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--page-top) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
}

.dashp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(0, 229, 255, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(123, 97, 255, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

.dashp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.dashp-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  text-shadow: 0 0 16px var(--accent-glow);
}

.dashp-hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 24px;
  text-wrap: balance;
}

.dashp-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-light);
  max-width: 44ch;
  margin-bottom: 32px;
}

.dashp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.dashp-hero-meta,
.dashp-cta-meta {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}

.dashp-hero-shot {
  position: relative;
}

/* --- UI snippet figures --- */
.dashp-shot {
  margin: 0;
}

.dashp-shot-open {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.dashp-shot-open img {
  width: 100%;
  height: auto;
}

.dashp-shot figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-mid);
  text-align: center;
}

.dashp-snippet-note {
  margin-top: clamp(32px, 4vw, 56px);
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-mid);
}

/* --- Model strip --- */
.dashp-model-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  max-width: 880px;
  margin: 0 auto;
}

.dashp-model-head {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.dashp-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Cancel the site-wide decorative cube bullet on these chips */
.dashp-chips li::before {
  content: none;
}

.dashp-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-dark);
  background: var(--card-dark);
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 500;
}

.dashp-chip--local {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--accent);
}

/* --- Pillars --- */
.dashp-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.dashp-pillar {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: var(--card-light);
  border: 1px solid var(--border-light);
}

.dashp-pillar-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-dark);
  color: var(--accent);
  margin-bottom: 20px;
}

.dashp-pillar-icon svg {
  width: 26px;
  height: 26px;
}

.dashp-pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.dashp-pillar-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-mid);
}

/* --- Use cases --- */
.dashp-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(48px, 7vw, 100px);
}

.dashp-case:last-of-type {
  margin-bottom: 0;
}

.dashp-case--flip .dashp-case-copy {
  order: 2;
}

.dashp-case-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.dashp-case-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.dashp-case-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 46ch;
}

/* --- Closer look gallery --- */
.dashp-look-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.dashp-look-grid .dashp-shot:nth-child(4),
.dashp-look-grid .dashp-shot:nth-child(5) {
  grid-column: span 1;
}

@media (max-width: 860px) {
  .dashp-look-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .dashp-look-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

/* --- Accordion (features + releases) --- */
.dashp-accordion {
  max-width: 820px;
  margin: 0 auto;
}

.dashp-accordion-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.dashp-expand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 2px;
}

.dashp-item {
  border-bottom: 1px solid var(--border-dark);
}

.dashp-item:first-of-type {
  border-top: 1px solid var(--border-dark);
}

.dashp-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.dashp-summary::-webkit-details-marker {
  display: none;
}

.dashp-summary-title {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.dashp-plan-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(123, 97, 255, 0.45);
  color: var(--accent-2);
}

.dashp-soon {
  font-weight: 400;
  font-style: italic;
  color: var(--text-mid);
  white-space: nowrap;
}

.dashp-release-date {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.dashp-chevron {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex: none;
  color: var(--text-mid);
  transition: transform 0.35s var(--ease);
}

.dashp-item[open] .dashp-chevron {
  transform: rotate(180deg);
}

/* JS drives the open/close height; this is the resting state. */
.dashp-panel {
  overflow: hidden;
  padding: 0 4px 24px;
}

.dashp-panel-summary {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.dashp-panel-list {
  list-style: none;
}

/* Keep the site-wide wireframe cube bullet (ul li::before); just tune spacing. */
.dashp-panel-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--text-mid);
}

.dashp-panel-list li:last-child {
  margin-bottom: 0;
}

/* Features accordion sits on a dark section */
.dashp-features .dashp-item,
.dashp-features .dashp-item:first-of-type {
  border-color: var(--border-dark);
}

.dashp-features .dashp-summary-title,
.dashp-features .dashp-panel-summary {
  color: var(--text-white);
}

/* Releases accordion sits on a light section */
.dashp-releases .dashp-item,
.dashp-releases .dashp-item:first-of-type {
  border-color: var(--border-light);
}

.dashp-releases .dashp-chevron {
  color: var(--text-mid);
}

.dashp-releases .dashp-panel-list li {
  color: var(--text-dark);
}

/* --- Hardware --- */
.dashp-hw-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.dashp-hw-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: var(--card-light);
  border: 1px solid var(--border-light);
}

.dashp-hw-card--feature {
  background: var(--bg-dark);
  color: var(--text-white);
  border-color: transparent;
}

.dashp-hw-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.dashp-hw-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.dashp-hw-text:last-child {
  margin-bottom: 0;
}

.dashp-hw-card--feature .dashp-hw-text {
  color: var(--text-light);
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
}

.dashp-hw-card--feature code,
.section--dark .dashp-table code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

/* --- Tables (ram + plans) --- */
.dashp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: 16px;
}

.dashp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

.dashp-table-caption,
.dashp-table caption {
  caption-side: top;
  text-align: left;
  padding: 18px 20px 0;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.dashp-table th,
.dashp-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.dashp-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 600;
}

.dashp-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--text-dark);
}

.dashp-table tbody tr:last-child th,
.dashp-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Sticky first column so labels stay visible when scrolling */
.dashp-table th:first-child,
.dashp-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--bg-light);
  z-index: 1;
}

.dashp-table--plans thead th:not(:first-child) {
  text-align: center;
  color: var(--text-dark);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.dashp-table--plans td:not(:first-child) {
  text-align: center;
}

.dashp-row-price td {
  font-weight: 600;
  color: var(--text-dark);
}

.dashp-tick {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin: 0 auto;
}

.dashp-no {
  color: var(--text-light);
}

.dashp-table--ram td code {
  font-size: 0.9em;
}

.dashp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Plans CTA --- */
.dashp-plans-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.dashp-plans-note a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashp-plans-cta,
.dashp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.dashp-cta-actions {
  justify-content: center;
}

.btn--outline-dark {
  border-color: var(--border-light);
  color: var(--text-dark);
}

.btn--outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Closing CTA --- */
.dashp-cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.dashp-cta-meta {
  margin-top: 20px;
}

/* --- Lightbox --- */
.dashp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(6px);
}

.dashp-lightbox[hidden] {
  display: none;
}

.dashp-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
}

.dashp-lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.dashp-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .dashp-hero-inner,
  .dashp-case,
  .dashp-hw-grid {
    grid-template-columns: 1fr;
  }

  .dashp-hero-shot {
    order: -1;
  }

  .dashp-case--flip .dashp-case-copy {
    order: 0;
  }

  .dashp-pillar-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .dashp-model-groups {
    grid-template-columns: 1fr;
  }

  .dashp-table th:first-child,
  .dashp-table td:first-child {
    background: var(--bg-light);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashp-chevron {
    transition: none;
  }
}
