/* ============================================================
   GLB Group — interior pages (Work / Engine / Pricing / Book)
   Extends styles.css. Same tokens, no morph canvas.
   ============================================================ */

/* interior pages have no fixed canvas behind them */
.page body,
body.page { background: var(--bg); }
body.page .section { background: transparent; }
body.page .section-tint { background: var(--surface-2); }

/* ============ PAGE HERO ============ */
.page-hero {
  position: relative;
  padding: 180px 0 72px;
  background:
    radial-gradient(55% 60% at 80% -20%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
  z-index: 2;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 18px 0 18px;
  max-width: 760px;
}
.page-hero .lede {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
  max-width: 580px;
}
.page-hero .hero-actions { margin-top: 30px; }

/* nav active state */
.nav-links a.active { color: var(--ink); font-weight: 600; }

/* ============ WORK — filter chips ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 8px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ============ WORK — case cards ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 150ms var(--ease);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-strong);
}
.case-card.hidden { display: none; }

.case-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0d12;
}
.case-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  pointer-events: none;
  transform-origin: top left;
  /* scale set by JS to fit the card */
}
.case-preview .preview-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11,13,18,0) 55%, rgba(11,13,18,0.55) 100%);
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.case-card:hover .preview-veil { opacity: 1; }
.preview-veil .btn { pointer-events: auto; }
.case-preview .preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-meta { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-meta .case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.case-meta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.case-niche {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.case-meta p { color: var(--ink-2); font-size: 15px; }
.case-meta .case-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.case-meta .case-link:hover { color: var(--accent-deep); }

/* ============ ENGINE — live console ============ */
.console {
  background: #0b0d12;
  border: 1px solid #1d2230;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin-top: 56px;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid #1d2230;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #6d7488;
}
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #232937; }
.console-bar .live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4ade80;
}
.console-bar .live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.console-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.05;
  min-height: 264px;
  color: #aab3c7;
}
.console-body .line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-body .t { color: #4a5265; margin-right: 12px; }
.console-body .agent-tag { color: #8aa4ff; margin-right: 10px; }
.console-body .ok { color: #4ade80; }
.console-body .line.new { animation: lineIn 320ms var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

button.btn { border: 0; cursor: pointer; }

/* ============ ENGINE — staff cards ============ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.staff-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.staff-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.staff-role { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.staff-facts {
  font-family: var(--font-mono);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.staff-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.staff-facts dt { color: var(--ink-3); }
.staff-facts dd { color: var(--ink); font-weight: 500; text-align: right; }
.staff-duties { list-style: none; color: var(--ink-2); font-size: 14px; margin-bottom: 24px; }
.staff-duties li { padding: 5px 0 5px 22px; position: relative; }
.staff-duties li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.staff-card .staff-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.staff-card .staff-price span { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--ink-3); }

/* guarantee band */
.guarantee {
  margin-top: 64px;
  padding: 44px 48px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.guarantee-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.3;
}
.guarantee h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.guarantee p { color: var(--ink-2); font-size: 16px; max-width: 640px; }

/* ============ PRICING ============ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow-card); }
.tier .tier-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
}
.tier .staff-id { margin-bottom: 12px; }
.tier h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.tier .tier-promise { color: var(--ink-2); font-size: 15px; min-height: 68px; }
.tier .tier-price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 20px 0 2px;
}
.tier .tier-price-sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; font-family: var(--font-mono); }
.tier ul { list-style: none; margin-bottom: 28px; }
.tier ul li { padding: 7px 0 7px 24px; position: relative; color: var(--ink-2); font-size: 14.5px; border-top: 1px solid var(--border); }
.tier ul li:first-child { border-top: 0; }
.tier ul li::before {
  content: "";
  position: absolute;
  left: 3px; top: 15px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.tier .btn { margin-top: auto; text-align: center; }

/* variants mini-table */
.variants {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.variants-head, .variants-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 16px;
  padding: 16px 26px;
  align-items: center;
}
.variants-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
.variants-row { border-top: 1px solid var(--border); font-size: 15px; }
.variants-row strong { font-weight: 600; }
.variants-row .price { font-family: var(--font-mono); font-weight: 500; }
.variants-row .trigger { color: var(--ink-2); font-size: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 56px auto 0; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 15.5px; padding: 0 4px 20px; max-width: 680px; }

/* ============ BOOKING ============ */
.book-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.book-points { list-style: none; margin-top: 28px; }
.book-points li {
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 15px;
  position: relative;
}
.book-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 23px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.book-points strong { color: var(--ink); }
.book-alt { margin-top: 30px; font-size: 14px; color: var(--ink-3); }
.book-alt a { color: var(--accent); text-decoration: none; }

.book-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 36px;
  box-shadow: var(--shadow-card);
}
.book-form .field { margin-bottom: 22px; }
.book-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.book-form label .hint { color: var(--ink-3); font-weight: 400; }
.book-form input[type="text"],
.book-form input[type="email"],
.book-form input[type="url"],
.book-form select,
.book-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.book-form textarea { resize: vertical; min-height: 96px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 150ms var(--ease);
}
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.book-form .btn { width: 100%; text-align: center; padding: 15px 24px; font-size: 16px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.form-success {
  display: none;
  padding: 14px 18px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: #e9f9f0;
  border: 1px solid #b9ecd0;
  color: #14743f;
  font-size: 14.5px;
}
.form-success.show { display: block; }

/* ============ CTA BAND (shared) ============ */
.cta-band {
  text-align: center;
  padding: 130px 0;
  background:
    radial-gradient(55% 60% at 50% 120%, var(--accent-soft) 0%, transparent 65%),
    transparent;
  position: relative;
  z-index: 2;
}
.cta-band .eyebrow { justify-content: center; }
.cta-band .section-sub { margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 36px; }

/* ============ HOME ADDITIONS ============ */
/* proof strip marquee */
.proof-strip {
  position: relative;
  z-index: 2;
  padding: 34px 0;
  background: rgba(251, 251, 253, 0.9);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.proof-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.proof-strip:hover .proof-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms var(--ease), transform 250ms var(--ease);
}
.proof-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.proof-pill .name { font-weight: 600; font-size: 14px; color: var(--ink); }
.proof-pill .niche {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.proof-pill .arrow { color: var(--accent); font-size: 13px; }

/* two products split */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}
.product-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.product-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.product-panel .staff-id { margin-bottom: 2px; }
.product-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.product-panel p { color: var(--ink-2); font-size: 16px; max-width: 460px; }
.product-panel .card-link { margin-top: 4px; }
.product-panel .btn { align-self: flex-start; margin-top: 14px; }

/* how it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .page-hero { padding: 150px 0 56px; }
  /* interior pages keep left-aligned eyebrows (index's centered-slide rules don't apply) */
  .case-grid { grid-template-columns: 1fr; }
  .console-body {
    font-size: 11.5px;
    line-height: 1.9;
    padding: 16px 14px;
    min-height: 0;
  }
  .console-body .line { white-space: normal; overflow: visible; text-overflow: clip; }
  .console-body .t { display: none; }
  .staff-grid, .tier-grid, .steps-grid { grid-template-columns: 1fr; }
  .tier .tier-promise { min-height: 0; }
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .products-grid { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; gap: 18px; padding: 32px 28px; }
  .variants-head { display: none; }
  .variants-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 22px; }
  .cta-band { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-track { animation: none; flex-wrap: wrap; width: auto; }
  .console-body .line.new { animation: none; }
}
