/* ==========================================================================
   Nook Nexus Dev — Product landing
   Design language: the Thai hospital queue ticket / LED "now serving" board.
   Ink-navy surfaces, amber LED numerals, a signal-green notification accent,
   and a perforated ticket-stub motif carried through hero, pricing and cards.
   ========================================================================== */

/* Fonts are loaded via <link> tags in index.html's <head> (with preconnect)
   instead of @import here, so the font request doesn't wait on this
   stylesheet to finish loading first. */

:root {
  /* Surfaces */
  --ink: #10141b;
  --ink-2: #171c26;
  --ink-3: #1d2432;
  --paper: #f3eee1;
  --paper-2: #e8e0cd;

  /* Text */
  --text: #eaf0fa;
  --muted: #92a0b8;
  --muted-2: #5f6b80;

  /* Accents — drawn from the queue ticket / LED display itself */
  --led: #ff8a3d;
  --led-2: #ff6a1f;
  --led-red: #ff4757;
  --signal: #1fd97a;
  --signal-2: #17b768;

  --line: #263149;
  --line-soft: #1c2434;
  --ring: 0 0 0 3px rgba(255, 138, 61, 0.28);

  --shadow: 0 14px 34px rgba(3, 5, 9, 0.45), 0 2px 8px rgba(3, 5, 9, 0.35);
  --shadow-lg: 0 26px 60px rgba(3, 5, 9, 0.5), 0 6px 16px rgba(3, 5, 9, 0.3);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --maxw: 1200px;

  --font-display: "Space Grotesk", "IBM Plex Sans Thai", ui-sans-serif, system-ui,
    sans-serif;
  --font-body: "IBM Plex Sans Thai", "Space Grotesk", ui-sans-serif, system-ui,
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: var(--led);
  color: #180c02;
}

/* Focus visibility (kept strong regardless of component skin) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--led);
  outline-offset: 3px;
}

/* ==========================================================================
   Motion primitives — scroll reveal + reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  [data-reveal="stagger"] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }
  [data-reveal="stagger"].is-visible > * {
    opacity: 1;
    transform: none;
  }
  [data-reveal="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.02s; }
  [data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
  [data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
  [data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.2s; }
  [data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.26s; }
  [data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.32s; }
  [data-reveal="stagger"].is-visible > *:nth-child(7) { transition-delay: 0.38s; }
  [data-reveal="stagger"].is-visible > *:nth-child(8) { transition-delay: 0.44s; }
  [data-reveal="stagger"].is-visible > *:nth-child(9) { transition-delay: 0.5s; }
  [data-reveal="stagger"].is-visible > *:nth-child(10) { transition-delay: 0.56s; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 30px rgba(3, 5, 9, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--led);
  transition: right 0.25s var(--ease);
}
.nav-links a:not(.btn):hover::after {
  right: 0;
}
.nav-links a:hover {
  color: var(--text);
}
#productSelect {
  background: var(--ink-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-weight: 600;
  font-family: var(--font-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    filter 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--led), var(--led-2));
  color: #1a0d02;
  box-shadow: 0 10px 26px rgba(255, 122, 26, 0.28), var(--shadow);
  border: 1px solid rgba(255, 178, 120, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(255, 122, 26, 0.38), var(--shadow);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: #ffffff0a;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: #ffffff12;
  border-color: #37476a;
  transform: translateY(-2px);
}
.btn-trial {
  background: linear-gradient(135deg, var(--signal), var(--signal-2));
  color: #04150b;
  box-shadow: 0 10px 26px rgba(31, 217, 122, 0.28), var(--shadow);
  border: 1px solid rgba(120, 235, 175, 0.4);
}
.btn-trial:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(31, 217, 122, 0.38), var(--shadow);
}
.btn-trial:active {
  transform: translateY(0);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: clip;
  border-bottom: 1px solid var(--line-soft);
  padding: 120px 0 64px;
}
.hero::before {
  /* faint LED pixel-grid, like the dot-matrix of a queue display board */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      color-mix(in oklab, var(--led) 10%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in oklab, var(--led) 10%, transparent) 1px,
      transparent 1px
    );
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 72%);
  opacity: 0.5;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(720px 420px at 18% 8%, rgba(255, 122, 26, 0.16), transparent 60%),
    radial-gradient(680px 460px at 86% 18%, rgba(31, 217, 122, 0.12), transparent 62%),
    radial-gradient(900px 700px at 50% 100%, rgba(255, 71, 87, 0.08), transparent 65%);
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    animation: heroGlow 16s ease-in-out infinite alternate;
  }
}
@keyframes heroGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Signature element: the ticket badge — a torn "now serving" stub */
.ticket-badge {
  display: inline-flex;
  align-items: stretch;
  margin: 0 auto 28px;
  background: var(--paper);
  color: #1c1206;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}
.ticket-badge .tb-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  text-align: left;
}
.tb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a5a2a;
  font-weight: 700;
}
.tb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led-red);
  box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .tb-dot {
    animation: pulseDot 1.8s ease-out infinite;
  }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}
.tb-sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #55401c;
}
.ticket-badge .tb-perf {
  position: relative;
  width: 0;
  border-left: 2px dashed #cdbf9d;
}
.ticket-badge .tb-perf::before,
.ticket-badge .tb-perf::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}
.ticket-badge .tb-perf::before { top: -8px; }
.ticket-badge .tb-perf::after { bottom: -8px; }
.tb-number {
  display: grid;
  place-items: center;
  padding: 10px 22px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--led-2);
  font-variant-numeric: tabular-nums;
}

.product-logo {
  height: 92px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}
.headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.03;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.subhead {
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 720px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-card {
  margin: 34px auto 0;
  max-width: 620px;
  position: relative;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-left: 3px dashed color-mix(in oklab, var(--signal) 55%, var(--line));
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  box-shadow: var(--shadow);
}
.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  left: -3px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line);
}
.hero-card::before { top: -1px; }
.hero-card::after { bottom: -1px; }
.hero-card svg {
  flex: none;
  margin-top: 2px;
}
.hero-card small {
  color: var(--muted);
}

/* ==========================================================================
   Content helpers
   ========================================================================== */
.cols-2 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.col {
  grid-column: span 6;
}
.card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: #37476a;
}
ul.feature-list {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}
ul.feature-list li {
  margin: 8px 0;
  padding-left: 22px;
  position: relative;
}
ul.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--signal);
  transform: rotate(45deg);
}
@media (max-width: 980px) {
  .col {
    grid-column: span 12;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: 80px 0;
  position: relative;
}
section + section {
  border-top: 1px dashed var(--line-soft);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 8px;
  font-weight: 700;
}
.section-sub {
  margin: 0 0 30px;
  color: var(--muted);
}

/* ==========================================================================
   Features / specs grid
   ========================================================================== */
.specs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.spec-card {
  grid-column: span 4;
  min-height: 168px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.spec-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--led) 45%, var(--line));
  box-shadow: 0 20px 40px rgba(255, 122, 26, 0.12), var(--shadow);
}
.spec-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.spec-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #232b3d, #10141b);
  border: 1px solid var(--line);
  font-size: 18px;
}
.spec-wide {
  grid-column: span 8;
}
.spec-tall {
  min-height: 220px;
}
@media (max-width: 980px) {
  .spec-card,
  .spec-wide {
    grid-column: span 6;
  }
}
@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .spec-card,
  .spec-wide {
    grid-column: 1 / -1;
  }
  section {
    padding: 56px 0;
  }
  .ticket-badge .tb-number {
    font-size: 24px;
    padding: 8px 16px;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-wrap {
  position: relative;
}
.gallery-track {
  display: flex;
  gap: 18px;
  scroll-behavior: smooth;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gal-item {
  flex: 0 0 33.3333%;
  scroll-snap-align: start;
}
.gal-card {
  position: relative;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.gal-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}
.gal-card:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: color-mix(in oklab, var(--led) 40%, var(--line));
  box-shadow: var(--shadow-lg);
}
.gal-overlay {
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(16, 20, 27, 0), rgba(16, 20, 27, 0.4));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.gal-card:hover .gal-overlay {
  opacity: 1;
}
.gal-caption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 3;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.gal-nav:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: color-mix(in oklab, var(--led) 45%, var(--line));
}
.gal-nav.prev {
  left: 6px;
}
.gal-nav.next {
  right: 6px;
}
.gal-nav[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  filter: grayscale(0.2);
}
.gal-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.gal-fade.left {
  left: 0;
  background: linear-gradient(90deg, rgba(16, 20, 27, 0.9), rgba(16, 20, 27, 0));
}
.gal-fade.right {
  right: 0;
  background: linear-gradient(270deg, rgba(16, 20, 27, 0.9), rgba(16, 20, 27, 0));
}
.gallery-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
}
@media (max-width: 980px) {
  .gal-item {
    flex-basis: 50%;
  }
  .gal-card img {
    height: 220px;
  }
}
@media (max-width: 680px) {
  .gal-item {
    flex-basis: 100%;
  }
  .gal-card img {
    height: 240px;
  }
}

/* ==========================================================================
   Pricing — styled as tearable ticket stubs
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.price-card {
  grid-column: span 3;
  position: relative;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price-card::before {
  /* perforation across the top, like a tear-off stub */
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 0;
  border-top: 2px dashed var(--line);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklab, var(--led) 35%, var(--line));
  box-shadow: var(--shadow-lg);
}
.price-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  margin-top: 8px;
}
.price-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--led);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--signal-2), var(--signal));
  color: #04150b;
  font-weight: 900;
}
.price-cta {
  margin-top: 8px;
}
.price-cta .btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 980px) {
  .price-card {
    grid-column: span 6;
  }
}
@media (max-width: 680px) {
  .price-card {
    grid-column: 1 / -1;
  }
}

.price-card.featured {
  border-color: color-mix(in oklab, var(--led) 55%, var(--line));
  background: linear-gradient(180deg, #21170c, #171c26);
  box-shadow: 0 20px 46px rgba(255, 122, 26, 0.2), var(--shadow);
  transform: translateY(-6px);
}
.price-card.featured:hover {
  transform: translateY(-9px);
}
.price-card.featured .price-title {
  color: #ffce9e;
}
.price-card.featured .price-value {
  color: var(--led);
}
.badge-reco {
  position: absolute;
  top: -13px;
  right: 16px;
  background: linear-gradient(135deg, var(--led), var(--led-2));
  color: #1a0d02;
  border: 1px solid rgba(255, 178, 120, 0.5);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Quote form
   ========================================================================== */
.form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
input,
select,
textarea {
  background: var(--ink-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in oklab, var(--led) 55%, var(--line));
  box-shadow: var(--ring);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
.helper {
  font-size: 12px;
  color: var(--muted);
}
.error {
  color: var(--led-red);
  font-size: 12px;
  display: none;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.summary {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-left: 3px dashed var(--signal);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 20px;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--ink-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-left: 3px solid var(--led);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s var(--ease);
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  color: var(--muted);
  padding: 48px 0 40px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
body.no-scroll {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 12, 0.9);
  z-index: 1000;
  padding: 20px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lb-nav.prev {
  left: 20px;
}
.lb-nav.next {
  right: 20px;
}
.lb-nav[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  left: -9999px;
}
