/* ==========================================================================
   detail.css — About / FAQ / Contact unified page
   ========================================================================== */

:root {
  --d-ink         : var(--color-text);
  --d-ink-soft    : #33456a;
  --d-muted       : var(--color-text-muted);
  --d-line        : rgba(21, 23, 26, 0.10);
  --d-line-strong : rgba(21, 23, 26, 0.16);
  --d-blue        : var(--color-blue);
  --d-blue-soft   : rgba(36, 82, 224, 0.10);
  --d-gold        : #c98c00;
  --d-gold-soft   : rgba(201, 140, 0, 0.13);
  --d-bg          : #f9f8f6;
  --d-paper       : #ffffff;
  --d-paper-glass : rgba(255, 255, 255, 0.70);
  --d-radius-lg   : 22px;
  --d-radius-md   : 14px;
  --d-radius-sm   : 10px;
  --d-ease        : cubic-bezier(0.22, 1, 0.36, 1);
  --d-font-display: 'Space Grotesk', 'Inter', sans-serif;
}

body.detail-page { background: var(--d-bg); }

/* ---- STICKY HEADER ---- */
body.detail-page header.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.detail-page main.marketing-main {
  min-height: unset;
  justify-content: flex-start;
  background: var(--d-bg);
}

/* ---- SECTION WRAPPER ---- */
.detail-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 36px;
  scroll-margin-top: 72px;
}

/* ---- REVEAL ---- */
.d-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--d-ease), transform 0.65s var(--d-ease);
}
.d-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HERO
   ========================================================================== */
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 36px 80px;
  margin: 0 -36px 8px;
  text-align: center;
  border-bottom: 1px solid var(--d-line);
}

.dh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.50;
  z-index: 0;
  animation: dh-drift 18s ease-in-out infinite;
  pointer-events: none;
}
.dh-blob-1 { width: 270px; height: 270px; top: -100px; left: 3%;      background: #d9c6f2; animation-delay: 0s;   }
.dh-blob-2 { width: 310px; height: 310px; top: -70px;  left: 30%;     background: #bcd4f7; animation-delay: -5s;  }
.dh-blob-3 { width: 250px; height: 250px; top: -50px;  right: 8%;     background: #fbe7b8; animation-delay: -9s;  }
.dh-blob-4 { width: 230px; height: 230px; bottom:-110px; left: 44%;   background: #c9ead0; animation-delay: -13s; }

@keyframes dh-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(14px,10px) scale(1.06); }
}

.dh-icon { position: absolute; z-index: 1; color: var(--d-ink-soft); opacity: 0.025; pointer-events: none; }
.dh-icon svg { display: block; }
.dh-icon-tl { top: 18px;    left: 7%;   width: 46px; height: 46px; transform: rotate(-8deg);  }
.dh-icon-tr { top: 64px;    right: 22%; width: 18px; height: 18px; opacity: 0.02; transform: rotate(12deg); }
.dh-icon-bl { bottom: 36px; left: 16%;  width: 28px; height: 28px; opacity: 0.022; transform: rotate(-5deg); }
.dh-icon-br { bottom: 10px; right: 5%;  width: 54px; height: 54px; color: var(--d-gold); opacity: 0.04; transform: rotate(9deg); }
@media (max-width: 640px) { .dh-icon { display: none; } }

.detail-hero-content { position: relative; z-index: 2; max-width: 580px; margin: 0 auto; }

.detail-hero-title {
  font-family: var(--d-font-display);
  font-size: clamp(36px, 6.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--d-ink);
  margin: 0;
}
.detail-hero-title-accent { color: var(--d-blue); }

.detail-hero-subtitle { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--d-ink-soft); }

/* ==========================================================================
   ABOUT content
   ========================================================================== */
.d-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--d-blue);
  margin: 0 0 10px;
}

.d-panel {
  background: var(--d-paper-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--d-line);
  border-radius: var(--d-radius-lg);
  box-shadow: 0 20px 44px -32px rgba(21, 23, 26, 0.22);
}

.d-why-panel {
  margin: 44px 0 8px;
  padding: 32px 36px;
  display: flex;
  gap: 36px;
  align-items: center;
}
.d-why-text { flex: 1.4; }
.d-why-title { font-family: var(--d-font-display); font-size: 20px; font-weight: 700; color: var(--d-ink); margin: 0 0 12px; }
.d-why-copy { font-size: 14.5px; line-height: 1.75; color: var(--d-ink-soft); }

/* Why-we-built-it photo */
.d-why-visual {
  flex: 1;
  border-radius: var(--d-radius-md);
  overflow: hidden;
  min-height: 210px;
  box-shadow: 0 8px 32px -12px rgba(21, 23, 26, 0.18);
}
.d-why-visual img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--d-ease);
}
.d-why-visual:hover img { transform: scale(1.03); }

@media (max-width: 720px) {
  .d-why-panel  { flex-direction: column; padding: 24px; }
  .d-why-visual { width: 100%; }
}

.d-section-head { margin: 56px 0 24px; }

/* steps */
.d-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  margin-bottom: 12px;
}
@media (max-width: 760px) { .d-steps { grid-template-columns: 1fr; } }

.d-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--d-line);
  transition: transform 0.3s var(--d-ease);
}
.d-step:hover { transform: translateX(4px); }
.d-step:nth-last-child(-n+2) { border-bottom: 1px solid var(--d-line); }
@media (max-width: 760px) {
  .d-step:nth-last-child(-n+2) { border-bottom: none; }
  .d-step:last-child            { border-bottom: 1px solid var(--d-line); }
}

.d-step-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--d-radius-sm);
  border: 1.6px solid var(--d-ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--d-ink);
  transition: border-color 0.3s var(--d-ease), color 0.3s var(--d-ease), transform 0.3s var(--d-ease);
}
.d-step:hover .d-step-icon { border-color: var(--d-blue); color: var(--d-blue); transform: scale(1.05); }
.d-step-body h3 { font-family: var(--d-font-display); font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--d-ink); }
.d-step-body p  { font-size: 14px; line-height: 1.65; color: var(--d-muted); margin: 0; }

/* audience */
.d-audience { display: flex; flex-direction: column; gap: 28px; margin-bottom: 72px; }
.d-audience-row { display: flex; gap: 28px; align-items: center; }
@media (max-width: 640px) { .d-audience-row { flex-direction: column; align-items: stretch; } }

/* Audience photo cards */
.d-audience-visual {
  width: 240px;
  height: 170px;
  flex-shrink: 0;
  border-radius: var(--d-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 28px -10px rgba(21, 23, 26, 0.16);
}
.d-audience-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--d-ease);
}
.d-audience-visual:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .d-audience-visual { width: 100%; height: 180px; } }

.d-audience-text h3 { font-family: var(--d-font-display); font-size: 17px; font-weight: 600; color: var(--d-ink); margin: 0 0 8px; }
.d-audience-text p  { font-size: 14px; line-height: 1.65; color: var(--d-muted); margin: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.detail-section-faq { padding-top: 72px; padding-bottom: 72px; }

.d-section-title-block { text-align: center; max-width: 640px; margin: 0 auto 40px; }

.d-section-title {
  font-family: var(--d-font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--d-ink);
  margin: 0;
}
.d-section-title-accent { color: var(--d-blue); }
.d-section-subtitle { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--d-muted); }

.d-accordion { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.d-accordion-item {
  border: 1px solid var(--d-line);
  border-radius: var(--d-radius-md);
  background: var(--d-paper);
  overflow: hidden;
  transition: border-color 0.3s var(--d-ease), box-shadow 0.3s var(--d-ease);
}
.d-accordion-item:has(.d-accordion-trigger[aria-expanded="true"]) {
  border-color: var(--d-blue-soft);
  box-shadow: 0 14px 30px -22px rgba(36, 82, 224, 0.28);
}

.d-accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans);
  font-size: 14.5px; font-weight: 600; color: var(--d-ink);
}

.d-accordion-chevron {
  flex-shrink: 0; display: flex; color: var(--d-muted);
  transition: transform 0.35s var(--d-ease), color 0.35s var(--d-ease);
}
.d-accordion-trigger[aria-expanded="true"] .d-accordion-chevron { transform: rotate(180deg); color: var(--d-blue); }

.d-accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--d-ease); }
.d-accordion-trigger[aria-expanded="true"] + .d-accordion-panel { grid-template-rows: 1fr; }

.d-accordion-panel-inner { overflow: hidden; padding: 0 22px; }
.d-accordion-trigger[aria-expanded="true"] + .d-accordion-panel .d-accordion-panel-inner { padding: 0 22px 18px; }
.d-accordion-panel-inner p { font-size: 14px; line-height: 1.72; color: var(--d-muted); margin: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.detail-section-contact { padding-top: 72px; padding-bottom: 88px; }

.d-contact-panel { max-width: 680px; margin: 0 auto; padding: 36px 36px 14px; }
.d-contact-row { display: flex; gap: 18px; padding-bottom: 26px; }
.d-contact-divider { height: 1px; background: var(--d-line); margin-bottom: 26px; }

.d-contact-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--d-blue-soft); color: var(--d-blue);
  display: flex; align-items: center; justify-content: center;
}

.d-contact-text h3 { font-family: var(--d-font-display); font-size: 16px; font-weight: 600; color: var(--d-ink); margin: 0 0 6px; }
.d-contact-text p  { font-size: 13.8px; line-height: 1.62; color: var(--d-muted); margin: 0 0 9px; }

.d-contact-link {
  font-size: 13.8px; font-weight: 600; color: var(--d-blue);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--d-ease);
}
.d-contact-link:hover { border-color: var(--d-blue); }
.d-contact-link-faq span { display: inline-block; transition: transform 0.25s var(--d-ease); }
.d-contact-link-faq:hover span { transform: translateX(3px); }

@media (max-width: 480px) {
  .d-contact-panel { padding: 24px 20px 8px; }
  .d-contact-row   { gap: 12px; }
}

/* footer */
body.detail-page footer.site-footer {
  background: var(--d-bg);
  border-top-color: var(--d-line);
}
