/* ──────────────────────────────────────────────────────────
   pages.css — components added for SEO / conversion pass:
   breadcrumbs, FAQ, sticky mobile CTA, response promise,
   team block, sample-content notes, sub-page + case study
   layouts (404, thank-you, privacy policy, case studies).
   ────────────────────────────────────────────────────────── */

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding-top: 120px;
  padding-bottom: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  list-style: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--s1);
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li[aria-current='page'] {
  color: var(--accent);
}

.breadcrumbs__sep {
  color: var(--border-hover);
}

/* ── Response time promise ── */
.response-promise {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  border: 1px solid var(--border-hover);
  border-left: 2px solid var(--accent);
  background: var(--bg-secondary);
  padding: 10px var(--s3) 10px var(--s2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}

.response-promise strong {
  color: var(--text-primary);
  font-weight: 500;
}

.response-promise__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.15);
  animation: promisePulse 2.4s ease-in-out infinite;
}

@keyframes promisePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.15); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 106, 26, 0.04); }
}

.hero__promise {
  margin-top: var(--s4);
}

#cta .response-promise {
  margin-top: var(--s4);
}

@media (prefers-reduced-motion: reduce) {
  .response-promise__dot { animation: none; }
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: 860px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  background: var(--bg-surface);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3);
  cursor: pointer;
  list-style: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-primary);
}

/* Hide the native disclosure marker */
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ''; }

.faq-item__q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  border: 1px solid var(--border-hover);
  transition: border-color 0.3s, transform 0.3s;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s;
}

.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after  { width: 1.5px; height: 10px; }

.faq-item[open] .faq-item__icon { border-color: var(--accent); }
.faq-item[open] .faq-item__icon::after { opacity: 0; }

.faq-item__a {
  padding: 0 var(--s3) var(--s3);
  max-width: 68ch;
}

.faq-item__a p {
  font-size: 0.95rem;
}

.faq-item__a p + p {
  margin-top: var(--s2);
}

.faq-item__a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Sticky mobile CTA ── */
.sticky-cta {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 10px var(--s2);
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-hover);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sticky-cta__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.sticky-cta__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta .btn-primary {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .sticky-cta { display: flex; }

  /* Keep the scroll-nav clear of the sticky bar */
  .scroll-nav { bottom: 84px; }

  /* Stop the bar covering the end of the page */
  body { padding-bottom: 72px; }
}

/* ── Team ── */
.team-block {
  margin-top: var(--s6);
}

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-surface), #0d1525, var(--bg-surface));
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  text-align: center;
  padding: var(--s3);
}

.team-photo__placeholder span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-muted);
  opacity: 0.25;
  line-height: 1;
}

.team-photo__placeholder small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-caption {
  margin-top: var(--s2);
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 68ch;
}

.footer__bottom p a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__bottom p a:hover { color: var(--accent); }

/* Inline prose links (reset.css strips link styling globally) */
.text-link,
.team-caption a,
.case-body p a,
.case-body li a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.text-link:hover,
.team-caption a:hover,
.case-body p a:hover,
.case-body li a:hover {
  opacity: 0.75;
}

/* ── "Sample content" note ── */
.sample-note {
  display: block;
  max-width: 72ch;
  border: 1px dashed var(--border-hover);
  border-left: 2px solid var(--accent);
  background: rgba(255, 106, 26, 0.05);
  padding: var(--s2) var(--s3);
  margin-top: var(--s4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.sample-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sample-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sample-note a:hover { color: var(--accent); }

/* ── Sub-page shell (404, thank-you, legal, case study) ── */
.page-hero {
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}

.page-hero__label {
  display: block;
  color: var(--accent);
  margin-bottom: var(--s2);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}

.page-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.page-hero__actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: var(--s5);
}

/* Big status number for 404 / thank-you */
.status-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(7rem, 26vw, 20rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
  margin-bottom: var(--s3);
  user-select: none;
}

.status-code span { color: var(--accent); -webkit-text-stroke: 0; }

/* Helpful-links grid used on 404 / thank-you */
.link-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  margin-top: var(--s6);
}

@media (min-width: 768px) {
  .link-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

.link-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: var(--s3);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.link-card:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.link-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.link-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.link-card__arrow {
  display: inline-block;
  margin-top: var(--s2);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Case study layout ── */
.case-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: start;
}

@media (min-width: 900px) {
  .case-layout { grid-template-columns: 1fr 300px; gap: var(--s7); }
}

.case-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: var(--s2);
}

.case-body h2:not(:first-child) {
  margin-top: var(--s6);
}

.case-body p {
  max-width: 68ch;
}

.case-body p + p { margin-top: var(--s2); }

.case-body ul {
  margin-top: var(--s2);
  padding-left: 0;
  list-style: none;
  max-width: 68ch;
}

.case-body li {
  position: relative;
  padding-left: var(--s3);
  margin-bottom: var(--s1);
  font-size: 0.95rem;
  line-height: 1.7;
}

.case-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.case-hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #0d1525 50%, var(--bg-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s6);
  overflow: hidden;
}

.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.case-hero-media span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--text-muted);
  opacity: 0.25;
}

.case-aside {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

@media (min-width: 900px) {
  .case-aside { position: sticky; top: 120px; }
}

.case-aside__row h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.case-aside__row p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.case-aside .btn-primary {
  text-align: center;
  width: 100%;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
  border-top: 1px solid var(--border);
  padding-top: var(--s4);
}

@media (min-width: 768px) {
  .case-results { grid-template-columns: repeat(4, 1fr); }
}

.case-result__number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
}

.case-result__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  line-height: 1.5;
}

/* Next / previous case study strip */
.case-more {
  border-top: 1px solid var(--border);
  padding-top: var(--s5);
  margin-top: var(--s7);
}

.case-more h3 {
  margin-bottom: var(--s3);
}

.case-more__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}

@media (min-width: 768px) {
  .case-more__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Legal / long-form text pages ── */
.legal-body {
  max-width: 72ch;
}

.legal-body h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: var(--s5) 0 var(--s2);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-size: 1rem;
  margin: var(--s3) 0 var(--s1);
}

.legal-body p,
.legal-body li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-body p + p { margin-top: var(--s2); }

.legal-body ul {
  margin: var(--s2) 0;
  padding-left: var(--s3);
  list-style: disc;          /* reset.css clears list markers globally */
}

.legal-body li::marker { color: var(--accent); }

.legal-body li { margin-bottom: var(--s1); }

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body__updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s5);
}
