/* Remediate — /demo page. Builds on landing.css. */

.demo-hero {
  position: relative;
  padding: clamp(56px, 7vw, 100px) 0 clamp(48px, 6vw, 78px);
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.demo-hero-glow {
  position: absolute;
  inset: -200px 0 auto 0;
  height: 760px;
  background:
    radial-gradient(660px 380px at 22% 18%, rgba(31, 73, 192, 0.13), transparent 66%),
    radial-gradient(560px 340px at 80% 8%, rgba(211, 43, 69, 0.09), transparent 64%);
  pointer-events: none;
}
.demo-hero-inner { position: relative; }

.demo-title {
  max-width: 18ch;
  margin: 24px auto 0;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  letter-spacing: -0.048em;
  line-height: 1.0;
}
.demo-title .serif-accent { display: block; margin-top: 0.05em; font-size: 1.06em; }

.demo-lead {
  max-width: 64ch;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.68;
}
.demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.demo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 500;
}
.demo-meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(211, 43, 69, 0.12);
}

/* --------------------------------------------------------------- sections -- */

.demo-section {
  padding-block: clamp(56px, 6.6vw, 94px);
  border-bottom: 1px solid var(--line);
}
.demo-section--tint { background: linear-gradient(180deg, #f8fafd, #f4f7fc); }
.demo-section--ink {
  position: relative;
  background: var(--ink);
  color: #c3d0e1;
  border-bottom: 0;
  overflow: hidden;
}
.demo-section--ink::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 400px at 10% 0%, rgba(31, 73, 192, 0.32), transparent 62%),
    radial-gradient(620px 380px at 92% 20%, rgba(211, 43, 69, 0.18), transparent 62%);
}
.demo-section--ink .shell { position: relative; }
.demo-section--ink h2 { color: #fff; }
.demo-section--ink .section-lead { color: #b7c5d9; }
.demo-section--ink .serif-accent { color: #ffbcc6; }

.demo-shot { max-width: 1080px; margin: clamp(36px, 4.5vw, 54px) auto 0; }
.demo-shot figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--faint);
  font-size: 0.78rem;
}
.demo-shot figcaption a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.demo-shot figcaption a:hover { color: var(--blue); }
.demo-shot figcaption .icon { width: 13px; height: 13px; }

/* -------------------------------------------------------------- doc cards -- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 4.5vw, 52px);
}
.doc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
}
.doc-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }
.doc-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--paper-3); overflow: hidden; }
.doc-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 500ms var(--ease); }
.doc-card:hover .doc-card-media img { transform: scale(1.015); }
.doc-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 26, 47, 0.88);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.doc-badge--deferred { background: rgba(173, 30, 52, 0.92); }

.doc-card-body { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 22px 24px 24px; }
.doc-meta { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }
.doc-card h3 { font-size: 1.12rem; letter-spacing: -0.025em; }
.doc-card-body p { font-size: 0.87rem; line-height: 1.62; color: var(--muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.doc-actions .btn { min-height: 38px; font-size: 0.8rem; padding-inline: 0.85rem; }

/* --------------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(34px, 4vw, 48px);
}
.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
}
.gallery-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }
.gallery-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.gallery-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.gallery-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--red); }
.gallery-title { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.gallery-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 0.76rem; font-weight: 600; color: var(--blue); }
.gallery-cta .icon { width: 13px; height: 13px; transition: transform 200ms var(--ease); }
.gallery-card:hover .gallery-cta .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ tour -- */

.tour {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  margin-top: clamp(36px, 4.5vw, 52px);
  border-top: 1px solid var(--line-strong);
}
.tour-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.tour-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--red);
}
.tour-body h3 { font-size: 1.02rem; letter-spacing: -0.02em; }
.tour-body p { margin-top: 6px; font-size: 0.88rem; line-height: 1.64; color: var(--muted); }
.tour-body .text-link { margin-top: 8px; }

/* ------------------------------------------------------------- checklist -- */

.demo-two {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}
.demo-two h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); letter-spacing: -0.04em; }
.check-list--light { margin-top: 26px; gap: 12px; }
.check-list--light li { color: #c3d0e1; font-size: 0.88rem; }
.check-list--light .icon { color: #9fc0ff; width: 17px; height: 17px; margin-top: 0; }
.code-note { padding: 0 24px 20px; color: #7f92ac; font-size: 0.7rem; }

/* ------------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .doc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .tour { grid-template-columns: 1fr; gap: 0; }
  .demo-two { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 620px) {
  .demo-hero-actions { flex-direction: column; align-items: stretch; }
  .demo-hero-actions .btn { width: 100%; }
  .doc-card-body { padding: 18px 18px 20px; }
  .doc-actions { flex-direction: column; align-items: stretch; }
  .doc-actions .btn { width: 100%; }
  .demo-meta { font-size: 0.7rem; gap: 8px 16px; }
  .tour-item { grid-template-columns: 34px 1fr; gap: 12px; }
}
