/* =========================================================
   Captovia — screenshot detail page styles
   Builds on assets/captovia.css. Same tokens, tone, rhythm.
   ========================================================= */

/* ---------- Section rhythm ---------- */
.section {
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
}
.section.divider { border-top: 1px solid rgba(255, 255, 255, .07); }

.sec-h2 {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.4px;
  color: var(--text);
  text-wrap: balance;
}
.sec-h2 .accent { color: var(--mint); }
.sec-lead {
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  max-width: 40em;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.95;
  color: var(--text-dim);
}
.sec-lead .strong { color: var(--text); font-weight: 500; }
.sec-lead .accent { color: var(--mint); font-weight: 500; }

/* SEO lead — quiet intro paragraph between hero and first section */
.lead-intro {
  padding-top: clamp(4px, 1vw, 14px);
  padding-bottom: clamp(52px, 8vw, 96px);
}
.intro-lead {
  margin: 0;
  max-width: 46em;
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  font-weight: 300;
  line-height: 2;
  color: var(--text-dim);
}

/* =========================================================
   1 · HERO (detail) — copy left, framed screen right
   ========================================================= */
.dhero {
  position: relative;
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(64px, 9vw, 116px);
}
.dhero .container {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;   /* screen a touch larger — it's the subject */
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}
.dhero-copy { max-width: 600px; }

.eyebrow {
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: var(--text-faint);
  text-transform: uppercase;
}
/* breadcrumb-style eyebrow with a back link to the LP */
.eyebrow .back {
  color: var(--text-faint);
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.eyebrow .back:hover { color: var(--mint); border-bottom-color: rgba(66,232,180,.5); }
.eyebrow .sep { margin: 0 10px; opacity: .5; }

.dhero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: var(--text);
}
.dhero-title .accent {
  color: var(--mint);
  text-shadow:
    0 -1px 0   rgba(232, 255, 247, .45),
    0 -0.5px 1px rgba(190, 255, 235, .35),
    0  1px 1.5px rgba(0, 0, 0, .28);
}
.dhero-sub {
  margin: 26px 0 0;
  max-width: 30em;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dim);
}
.dhero-cta { margin-top: 38px; }

/* =========================================================
   2 · PROBLEM — old hassle (gray) → arrow → Captovia (mint)
   ========================================================= */
.problem-inner { max-width: 980px; }
.problem-q {
  margin: 0;
  max-width: 18em;
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.3px;
  color: var(--text);
}
.problem-body {
  margin: clamp(22px, 3vw, 32px) 0 0;
  max-width: 38em;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-dim);
}
.problem-body .strong { color: var(--text); font-weight: 500; }

/* the visual contrast row */
.compare {
  margin-top: clamp(44px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 52px);
}
/* old way: a cluster of small gray icons */
.compare-old {
  display: flex;
  align-items: center;
  gap: 16px;
}
.compare-old .ico {
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  opacity: .55;
}
.compare-old .ico svg { display: block; }
.compare-caption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--text-faint);
}
.compare-group { display: flex; flex-direction: column; align-items: flex-start; }
.compare-group.center { align-items: center; text-align: center; }

/* the mint connecting arrow */
.compare-arrow { flex: none; line-height: 0; color: var(--mint); }
.compare-arrow svg { display: block; width: clamp(40px, 5vw, 64px); height: auto; }

/* new way: a single confident mint button-glyph */
.compare-new .ico {
  width: clamp(56px, 7vw, 78px);
  height: clamp(56px, 7vw, 78px);
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 55%),
    rgba(66, 232, 180, .18);
  border: 1px solid rgba(66, 232, 180, .5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 10px 28px -12px rgba(66, 232, 180, .45);
}
.compare-new .ico svg { display: block; }
.compare-new .compare-caption { color: var(--mint); font-weight: 600; }

/* =========================================================
   3 · WAYS — reuse .feature-steps; centered intro
   ========================================================= */
.ways-inner { max-width: 720px; }
.ways .feature-steps { margin-top: clamp(34px, 4.5vw, 52px); }

/* =========================================================
   4 · WRITE-UP — before / after framed screens
   ========================================================= */
.shots-head { max-width: 760px; }
.shots-grid {
  margin-top: clamp(40px, 5.5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 3.5vw, 44px);
}
.shot { display: flex; flex-direction: column; gap: 14px; }
.shot-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-faint);
}
.shot.after .shot-label { color: var(--mint); }
.shots-arrow { line-height: 0; color: var(--mint); flex: none; }
.shots-arrow svg { display: block; width: clamp(34px, 4vw, 52px); height: auto; }

/* =========================================================
   5 · PRIVACY — mint line-art, image stays in the device
   ========================================================= */
.privacy .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.privacy-art {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 44px);
}
.privacy-art svg { display: block; width: 100%; max-width: 420px; height: auto; }

/* =========================================================
   6 · FAQ — accordion, no images
   ========================================================= */
.faq-inner { max-width: 820px; }
.faq-list {
  margin-top: clamp(34px, 4.5vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  padding: clamp(20px, 2.6vw, 26px) 0;
  transition: color .15s ease;
}
.faq-q:hover { color: #fff; }
.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--mint);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { top: 10px; left: 2px; width: 18px; height: 2px; }      /* horizontal */
.faq-icon::after  { left: 10px; top: 2px; width: 2px; height: 18px; }       /* vertical */
.faq-item.open .faq-icon::after { transform: scaleY(0); opacity: 0; }       /* − when open */

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.faq-a-inner {
  padding: 0 0 clamp(22px, 2.8vw, 28px);
  max-width: 60ch;
  font-size: clamp(14.5px, 1.4vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dim);
}
.faq-a-inner .accent { color: var(--mint); font-weight: 500; }

/* =========================================================
   7 · FINAL CTA — closing echo + two buttons
   ========================================================= */
.final {
  padding-top: clamp(88px, 12vw, 150px);
  padding-bottom: clamp(96px, 13vw, 168px);
  border-top: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
}
.final-inner { max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.final-line {
  margin: 0;
  font-size: clamp(27px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: var(--text);
}
.final-line .accent { color: var(--mint); }
/* JA only: force the closing line to break into two tidy lines */
.final-line .jl { display: block; }
.final-cta {
  margin-top: clamp(34px, 4.5vw, 46px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.final-cta .btn {
  padding: clamp(17px, 1.9vw, 21px) clamp(34px, 4.2vw, 52px);
  font-size: clamp(16px, 1.6vw, 19px);
  min-width: clamp(190px, 22vw, 248px);
}
.final-note {
  margin: clamp(22px, 3vw, 30px) 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* =========================================================
   English: relax JA-tuned nowrap line breaks
   ========================================================= */
html[lang="en"] .dhero-copy { min-width: 0; }
html[lang="en"] .dhero-title { font-size: clamp(30px, 4vw, 52px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .dhero .container,
  .privacy .container {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .dhero-copy { max-width: none; }
  .privacy-art { order: -1; }   /* art above copy when stacked */

  .shots-grid { grid-template-columns: 1fr; gap: 28px; }
  .shots-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 560px) {
  .compare { flex-direction: column; align-items: flex-start; gap: 26px; }
  .compare-arrow { transform: rotate(90deg); }
  .compare-group.center { align-items: flex-start; text-align: left; }
}

@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .logo .wordmark { font-size: 19px; }
  .header-actions { gap: 12px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 5px 9px; font-size: 12.5px; }
  .dhero-cta .btn-lg { width: 100%; }
  .browser-bar .url { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .compare > * { --reveal-delay: 0s; }
  .compare-old.reveal  { --reveal-delay: 0s; }
  .compare-arrow.reveal { --reveal-delay: .16s; }
  .compare-new.reveal  { --reveal-delay: .3s; }
}
