/* ── v2 layout additions ─────────────────────────────────────────
   New components for the six-section page. template.css stays the base;
   this file only adds what the rebuilt sections need. */

/* Hero: two lead lines, single button, micro line under it */
.hero-copy > *:nth-child(5) { animation-delay: .75s; }
.hero-copy > *:nth-child(6) { animation-delay: .90s; }
.hero p.lead.hero-lead2 { margin-top: .55em; color: var(--ink); font-weight: 600; }
.hero-micro {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
  letter-spacing: .01em;
}

/* Header: wordmark only (no badge line) */
.brand-name { line-height: 1.1; }

/* ── 2 · Where Dee helps ──────────────────────────────────── */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(8px, 1.6vw, 20px);
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
}
.help-card h3 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -.02em;
  color: var(--ink);
}
.help-card .help-text {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}
.help-ex {
  margin-top: auto;
  padding: 14px 16px 16px;
  border-radius: var(--radius-sm);
  background: rgba(232, 240, 248, .55);
  border-left: 3px solid var(--accent);
}
.help-ex p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
}
.help-tag {
  display: inline-block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.help-close {
  margin: clamp(22px, 3vw, 36px) auto 0;
  max-width: 60ch;
  text-align: center;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ── 3 · How we work (letter) ─────────────────────────────── */
.how-letter {
  max-width: 62ch;
  margin-inline: auto;
}
.how-letter .s-title { margin-bottom: clamp(18px, 2.4vw, 28px); }
.how-letter p:not(.s-eyebrow) {
  margin: 0 0 1.1em;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}
.how-letter p:not(.s-eyebrow):last-of-type { color: var(--ink-soft); }
.how-link {
  display: inline-block;
  margin-top: 6px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 2px solid rgba(213, 58, 67, .35);
  transition: border-color .2s var(--ease);
}
.how-link:hover { border-color: var(--accent); }

/* ── 4 · What Dee is ──────────────────────────────────────── */
.dee-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-bottom: clamp(30px, 4vw, 52px);
}
.dee-col {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
}
.dee-col-agent {
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 240, 241, .7));
  border-color: rgba(213, 58, 67, .22);
}
.dee-col h3 {
  margin: 0 0 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -.02em;
  color: var(--ink);
}
.dee-col p { margin: 0 0 .8em; color: var(--ink); line-height: 1.6; }
.dee-col p:last-child { margin-bottom: 0; }
.dee-decide { text-align: center; margin-bottom: clamp(16px, 2vw, 24px); }
.dee-decide-title {
  margin: 0 0 6px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -.03em;
  color: var(--ink);
}
.dee-decide-sub { margin: 0; color: var(--ink-soft); }
.dee-change {
  max-width: 60ch;
  margin: clamp(18px, 2.4vw, 28px) auto 0;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.6;
}
.dee-tech {
  max-width: 68ch;
  margin: clamp(28px, 3.6vw, 48px) auto 0;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(23, 54, 95, .22);
  background: rgba(255, 255, 255, .4);
}
.dee-tech h3 {
  margin: 0 0 8px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dee-tech p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: .98rem; }

/* ── 5 · Demo ─────────────────────────────────────────────── */
.demo-note {
  margin: 10px auto 0;
  color: var(--ink-muted);
  font-size: .9rem;
  font-style: italic;
}

/* ── 6 · Data + contact + FAQ ─────────────────────────────── */
.data-block {
  max-width: 62ch;
  margin: 0 auto clamp(36px, 5vw, 64px);
}
.data-block .s-title { margin-bottom: clamp(14px, 2vw, 22px); }
.data-block p:not(.s-eyebrow) {
  margin: 0 0 1em;
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
}
.cta-head {
  text-align: center;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px) 0;
}
.cta-head .s-eyebrow::before { display: none; }
.cta-head .s-title { margin-inline: auto; }
.cta-sub {
  margin: 10px 0 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--ink-soft);
}
.cta-choice-section { padding-top: clamp(20px, 3vw, 32px); }
.choice-card { min-height: auto; gap: 12px; }
.choice-card p { margin: 0 0 6px; color: var(--ink-soft); line-height: 1.55; }
.choice-button { margin-top: 8px; }
.cta-box .faq { margin: clamp(26px, 3.6vw, 44px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 48px); }

@media (max-width: 860px) {
  .help-grid, .dee-two { grid-template-columns: 1fr; }
}

@media (min-width: 621px) and (max-width: 1120px) {
  #hero h1 { max-width: 24ch; }
}
@media (max-width: 720px) {
  .cta-head { padding-inline: 16px; }
  .cta-box .faq { margin-inline: 12px; }
}

/* ── Premium polish ─────────────────────────────────────────
   Micro-interactions and finishing touches layered over the v2
   components. Everything here is transform/opacity/clip based so it
   composites, and everything is gated by the .reduce-motion rules in
   index.html like the rest of the page. */

::selection {
  background: rgba(213, 58, 67, .16);
  color: var(--ink);
}

/* Section title accent: the underline draws in once the heading has
   arrived. background-size, not a pseudo-element, so a highlighted phrase
   that wraps onto two lines is underlined on both. */
.s-title em {
  background-image: linear-gradient(90deg, rgba(213, 58, 67, .26), rgba(213, 58, 67, .26));
  background-repeat: no-repeat;
  background-size: 0% .12em;
  background-position: 0 94%;
  transition: background-size 1.1s var(--ease-out-expo) .5s;
}
.reveal.visible .s-title em,
.reveal-scale.visible .s-title em,
.s-head.reveal.visible .s-title em { background-size: 100% .12em; }

/* Cards lift on hover. The transition is scoped to `.settled` so the
   scroll entrance keeps its own slower timing; only afterwards does the
   card pick up the snappy hover curve. */
.help-card,
.dee-col,
.dee-tech {
  position: relative;
}
.reveal-child.visible > .help-card.settled,
.reveal-child.visible > .dee-col.settled {
  transition:
    transform .32s var(--ease-out-quart),
    box-shadow .32s var(--ease-out-quart),
    border-color .32s var(--ease);
  /* The entrance stagger delay must not leak into the hover. */
  transition-delay: 0s;
}
.help-card:hover,
.dee-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(141, 197, 242, .55);
}
.dee-col-agent:hover { border-color: rgba(213, 58, 67, .38); }

/* A hairline in brand colours draws across the top of a help card on
   hover, echoing the accent bar of its example block. */
.help-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 2.6vw, 32px);
  right: clamp(22px, 2.6vw, 32px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease-out-expo);
  pointer-events: none;
}
.help-card:hover::after { transform: scaleX(1); }

/* The example block inside a help card brightens slightly with it. */
.help-ex { transition: background .32s var(--ease); }
.help-card:hover .help-ex { background: rgba(232, 240, 248, .8); }

/* Letter link: an arrow that nudges forward. Drawn in CSS so the i18n
   text swap cannot drop it. */
.how-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: .45em;
  transition: transform .3s var(--ease-out-quart);
}
.how-link:hover::after { transform: translateX(5px); }

/* FAQ: the answer slides open instead of snapping, in browsers that can
   interpolate to `auto` height. Others keep the instant toggle. */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size .48s var(--ease-out-quart),
      content-visibility .48s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}
.faq-item summary { transition: color .2s var(--ease); }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-item:hover { border-color: rgba(213, 58, 67, .2); }

/* The demo phone hovers gently, like it is being held. */
.pd-phone {
  animation: phone-float 7.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Contact choice cards and the CTA button pick up the same lift curve. */
.choice-card {
  transition:
    transform .32s var(--ease-out-quart),
    box-shadow .32s var(--ease-out-quart),
    border-color .32s var(--ease),
    background .32s var(--ease);
}

/* Scroll cue: a slow breathing halo makes it read as an invitation. */
.scroll-cue::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(213, 58, 67, .28);
  opacity: 0;
  animation: cue-halo 2.8s var(--ease-out-quart) infinite;
  pointer-events: none;
}
@keyframes cue-halo {
  0% { opacity: .6; transform: scale(.94); }
  70%, 100% { opacity: 0; transform: scale(1.08); }
}

/* The contact title already paints its accent as gradient text
   (`.cta h2 em` in template.css); keep the underline off there so the
   two background treatments never fight. */
.cta .s-title em {
  background-size: auto;
  transition: none;
}

/* The hero's moving field stays behind a quiet reading area. */
@media (min-width: 861px) {
  #hero .veil {
    width: 70%;
    background: linear-gradient(90deg,
      rgba(235, 242, 249, .96) 0%, rgba(235, 242, 249, .9) 38%,
      rgba(235, 242, 249, .66) 57%, rgba(235, 242, 249, 0) 100%);
  }
}

.hero-motion {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 4vw, 64px);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(25, 54, 89, .1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(245, 249, 253, .8);
  font: inherit;
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease-out-quart), color .2s var(--ease-out-quart);
}
.hero-motion:hover { background: rgba(250, 252, 255, .98); color: var(--accent-deep); }
.hero-motion:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }
.hero-motion[hidden],
.motion-play-icon, .motion-play-label,
.hero-paused .motion-pause-icon, .hero-paused .motion-pause-label { display: none; }
.hero-paused .motion-play-icon, .hero-paused .motion-play-label { display: inline; }
.hero-paused #hero .scene-glow i,
.hero-static #hero .scene-glow i,
.hero-paused #hero .scroll-cue-icon,
.hero-paused #hero .scroll-cue::before,
.hero-out-of-view .scene-glow i { animation-play-state: paused; }

@media (max-width: 860px) {
  #hero .hero-copy { max-width: none; }
  .hero-motion { right: 14px; bottom: 14px; }
  #hero .scroll-cue { left: 18px; transform: none; }
  body.scrolled #hero .scroll-cue { transform: translateY(12px); }
}
