/* =========================================================================
   /incidentapp — light, daylight product page (2026-09-30).
   Loads after appalanche.css and re-points its tokens for a light theme
   (body.ia), so the shared nav, drawer, FAQ and footer follow along.
   Motion: native CSS scroll-driven animation only, inside
   @supports (animation-timeline: view()) and prefers-reduced-motion:
   no-preference. Without support, everything renders static and visible.
   ========================================================================= */

body.ia {
  --bg:      #f4f7fa;
  --bg-1:    #ffffff;
  --bg-2:    #eaf0f5;
  --bg-3:    #dfe7ef;
  --line:    rgba(11, 18, 32, 0.08);
  --line-2:  rgba(11, 18, 32, 0.14);
  --line-hi: rgba(14, 116, 144, 0.35);
  --ink:     #0b1220;
  --ink-2:   #1c2638;
  --ink-3:   #465264;
  --ink-4:   #56627a;
  --ink-5:   #8390a3;
  --cyan:      #0e7490;
  --cyan-deep: #155e75;
  --shadow-tint: 15, 40, 70;
  --r-card: 22px;
  background: var(--bg);
  color: var(--ink-3);
}
body.ia::after { display: none; }                 /* no grain on the light page */

/* ---- shared chrome, light ------------------------------------------------ */
.ia .nav { background: rgba(255, 255, 255, 0.72); border-color: var(--line); }
.ia .nav.scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: 0 12px 32px rgba(var(--shadow-tint), 0.10); }
.ia .nav-brand img, .ia .footer-brand-row img { filter: none; }
@media (hover: hover) and (pointer: fine) {
  .ia .nav-links a:hover { background: rgba(11, 18, 32, 0.05); }
  .ia .btn:hover { box-shadow: 0 8px 24px rgba(14, 116, 144, 0.25); }
}
.ia .btn { --fg-c: #ffffff; }
.ia .drawer { background: rgba(244, 247, 250, 0.97); }
.ia .drawer .drawer-cta { color: #ffffff; }
.ia .footer { background: var(--bg-1); }
.ia .sr-only:focus, .ia .sr-only:focus-visible { color: #ffffff; }
.ia .footer-col h3 { font: 600 13px/1.2 var(--font-sans); letter-spacing: 0.01em; color: var(--ink); margin-bottom: 14px; }
.ia .page-progress { background: rgba(11, 18, 32, 0.06); }
.ia .page-progress::after { background: var(--cyan); box-shadow: none; }
.ia .nav-links a:focus-visible, .ia .drawer a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ia .page-progress::after { transition: none; } }

/* ---- type ---------------------------------------------------------------- */
.ia h1, .ia h2, .ia h3 { color: var(--ink); text-wrap: balance; }
.ia h2 { font: 700 clamp(30px, 3.6vw, 46px)/1.08 var(--font-sans); letter-spacing: -0.03em; }
.ia h3 { font: 700 19px/1.25 var(--font-sans); letter-spacing: -0.015em; }
.ia p { text-wrap: pretty; }
.ia .em { font-style: italic; color: var(--cyan); }
.ia-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ia-sec { padding: clamp(72px, 9vw, 128px) 0; }
.ia-lede { font-size: 18px; line-height: 1.6; color: var(--ink-3); max-width: 60ch; margin-top: 14px; }
.ia-kicker { display: inline-block; font: 600 13px/1 var(--font-sans); letter-spacing: 0.04em; color: var(--cyan); margin-bottom: 14px; }

/* ---- store badges -------------------------------------------------------- */
.ia-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ia-badge { display: inline-flex; border-radius: 10px; transition: transform var(--d-press) var(--ease-out); }
.ia-badge img { height: 48px; width: auto; display: block; }
.ia-badge:active { transform: scale(0.97); }
.ia-badge:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* ---- phone --------------------------------------------------------------- */
.ia-phone {
  width: clamp(260px, 26vw, 350px);
  padding: 10px;
  border-radius: 48px;
  background: #0f1726;
  box-shadow:
    0 40px 80px -30px rgba(var(--shadow-tint), 0.45),
    0 0 0 1px rgba(11, 18, 32, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;
}
.ia-phone { position: relative; }
.ia-screen img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }

/* ---- hero ---------------------------------------------------------------- */
.ia-hero { position: relative; min-height: min(100dvh, 900px); display: flex; align-items: center; overflow: clip; padding: calc(96px + var(--sat)) 0 64px; }
.ia-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ia-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 70% 55%; }
.ia-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244, 247, 250, 0.97) 0%, rgba(244, 247, 250, 0.90) 34%, rgba(244, 247, 250, 0.35) 62%, rgba(244, 247, 250, 0.05) 100%);
}
.ia-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; width: 100%; }
.ia-hero h1 { font: 800 clamp(40px, 5.4vw, 70px)/1.04 var(--font-sans); letter-spacing: -0.04em; max-width: 13ch; padding-bottom: 4px; }
.ia-hero .ia-sub { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin: 22px 0 30px; }
.ia-hero-phone { justify-self: center; }

/* ---- plain answer -------------------------------------------------------- */
.ia-answer { padding: clamp(56px, 7vw, 96px) 0; background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ia-answer .ia-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.ia-answer h2 { font-size: clamp(24px, 2.4vw, 30px); }
.ia-answer p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }

/* ---- story (scene panels) ------------------------------------------------ */
.ia-story-head { margin-bottom: clamp(36px, 5vw, 56px); }
.ia-scenes { display: grid; gap: clamp(28px, 4vw, 44px); }
.ia-scene { position: relative; border-radius: 30px; overflow: clip; min-height: clamp(560px, 58vw, 780px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: clamp(28px, 4vw, 56px); isolation: isolate; }
.ia-scene.flip { grid-template-columns: auto 1fr; }
.ia-scene.flip .ia-scene-copy { order: 2; justify-self: end; }
.ia-scene-img { position: absolute; inset: 0; z-index: -2; overflow: clip; }
.ia-scene-img img { width: 100%; height: 100%; object-fit: cover; }
.ia-scene::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(244, 247, 250, 0.92) 0%, rgba(244, 247, 250, 0.55) 45%, rgba(244, 247, 250, 0) 75%); }
.ia-scene.flip::before { background: linear-gradient(270deg, rgba(244, 247, 250, 0.92) 0%, rgba(244, 247, 250, 0.55) 45%, rgba(244, 247, 250, 0) 75%); }
.ia-scene-copy { max-width: 34ch; }
.ia-scene-copy .ia-step { font: 600 13px/1 var(--font-sans); color: var(--cyan); letter-spacing: 0.02em; display: block; margin-bottom: 12px; }
.ia-scene-copy h3 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -0.03em; }
.ia-scene-copy p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ia-scene .ia-phone { width: clamp(240px, 23vw, 300px); }

/* ---- bento --------------------------------------------------------------- */
.ia-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px);
  grid-template-areas: "dash report report" "dash witness witness" "integ integ integ"; }
.ia-cell { position: relative; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 26px 0; overflow: clip; display: flex; flex-direction: column; }
.ia-cell p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-3); max-width: 40ch; }
/* bento shots are close-ups of the part that matters, edge to edge at the foot of the cell */
.ia-cell .ia-cell-shot { margin: auto -26px 0; padding-top: 22px; }
.ia-cell .ia-cell-shot img { display: block; width: 100%; height: auto; }
.ia-cell.dash { grid-area: dash; background: #000; border-color: #000; }
.ia-cell.dash h3 { color: #fff; }
.ia-cell.dash p { color: rgba(255, 255, 255, 0.74); }
.ia-cell.report { grid-area: report; }
.ia-cell.report, .ia-cell.witness { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); column-gap: 28px; }
.ia-cell.report > h3, .ia-cell.report > p, .ia-cell.witness > h3, .ia-cell.witness > p { grid-column: 1; }
.ia-cell.report > p, .ia-cell.witness > p { margin-bottom: 26px; }
.ia-cell.report .ia-cell-shot, .ia-cell.witness .ia-cell-shot { grid-column: 2; grid-row: 1 / span 3; margin: 0 -26px 0 0; padding-top: 0; align-self: end; }
.ia-cell.report .ia-cell-shot img, .ia-cell.witness .ia-cell-shot img { border-top-left-radius: 16px; }
.ia-cell.witness { grid-area: witness; }
.ia-cell.integ { grid-area: integ; padding: 0; border: 0; justify-content: flex-end; min-height: 360px; }
.ia-cell.integ .ia-cell-text { max-width: 520px; }
.ia-cell.integ .ia-cell-bg { position: absolute; inset: 0; }
.ia-cell.integ .ia-cell-bg img { width: 100%; height: 100%; object-fit: cover; }
.ia-cell.integ .ia-cell-text { position: relative; margin: 16px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
@media (prefers-reduced-transparency: reduce) { .ia-cell.integ .ia-cell-text { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ---- guides -------------------------------------------------------------- */
.ia-guides-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ia-more { font: 600 15px/1 var(--font-sans); color: var(--cyan); padding: 10px 0; }
.ia-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.ia-guides { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * 18px) / 3.4)); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 0 18px; scrollbar-width: thin; }
.ia-guide { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; color: var(--ink); border-radius: 18px; transition: transform 220ms var(--ease-out); }
.ia-guide img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(var(--shadow-tint), 0.5); }
.ia-guide h3 { font-size: 17px; line-height: 1.35; }
.ia-guide span { font: 600 14px/1 var(--font-sans); color: var(--cyan); }
@media (hover: hover) and (pointer: fine) { .ia-guide:hover { transform: translateY(-3px); } }
.ia-guide:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }

/* ---- privacy ------------------------------------------------------------- */
.ia-privacy { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ia-privacy dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 36px; }
.ia-privacy dt { font: 700 18px/1.3 var(--font-sans); color: var(--ink); letter-spacing: -0.015em; }
.ia-privacy dd { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.ia-privacy a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---- FAQ ----------------------------------------------------------------- */
.ia .faq { max-width: 820px; margin: 36px 0 0; }
.ia .faq details { border-bottom: 1px solid var(--line); }
.ia .faq summary { font: 600 18px/1.4 var(--font-sans); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 20px 0; cursor: pointer; letter-spacing: -0.015em; }
.ia .faq summary::-webkit-details-marker { display: none; }
.ia .faq summary::after { content: '+'; font: 400 26px/1 var(--font-sans); color: var(--cyan); transition: transform 220ms var(--ease-out); }
.ia .faq details[open] summary::after { transform: rotate(45deg); }
.ia .faq details > p { margin: -6px 0 22px; font-size: 16px; color: var(--ink-3); line-height: 1.7; max-width: 68ch; }
.ia .faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

/* ---- final download ------------------------------------------------------ */
.ia-final { position: relative; overflow: clip; padding: clamp(96px, 12vw, 160px) 0; isolation: isolate; }
.ia-final-bg { position: absolute; inset: 0; z-index: -2; }
.ia-final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ia-final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(244, 247, 250, 0.95) 0%, rgba(244, 247, 250, 0.72) 55%, rgba(244, 247, 250, 0.4) 100%); }
.ia-final h2 { max-width: 16ch; }
.ia-final p { font-size: 18px; color: var(--ink-2); margin: 14px 0 28px; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .ia-hero { min-height: auto; padding-top: calc(104px + var(--sat)); }
  .ia-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ia-hero-bg::after { background: linear-gradient(180deg, rgba(244, 247, 250, 0.96) 0%, rgba(244, 247, 250, 0.88) 45%, rgba(244, 247, 250, 0.5) 100%); }
  .ia-answer .ia-wrap { grid-template-columns: 1fr; gap: 14px; }
  .ia-scene, .ia-scene.flip { grid-template-columns: 1fr; min-height: 0; padding: 0; border-radius: 24px; background: var(--bg-1); border: 1px solid var(--line); }
  .ia-scene::before, .ia-scene.flip::before { display: none; }
  .ia-scene-img { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .ia-scene.flip .ia-scene-copy { order: 0; }
  .ia-scene-copy { padding: 24px 22px 8px; max-width: none; }
  .ia-scene .ia-phone { justify-self: center; width: min(76vw, 300px); margin: 8px 0 28px; }
  .ia-bento { grid-template-columns: 1fr; grid-template-areas: "dash" "report" "witness" "integ"; }
  .ia-cell.report, .ia-cell.witness { display: flex; }
  .ia-cell.report .ia-cell-shot, .ia-cell.witness .ia-cell-shot { margin: auto -26px 0; padding-top: 22px; align-self: auto; }
  .ia-cell.report .ia-cell-shot img, .ia-cell.witness .ia-cell-shot img { border-radius: 0; }
  .ia-cell.integ { min-height: 440px; }
  .ia-privacy dl { grid-template-columns: 1fr; }
  .ia-guides { grid-auto-columns: 78%; }
}
@media (max-width: 560px) {
  .ia-badge img { height: 44px; }
}

/* ---- motion: scroll-driven, motivated, optional -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .ia-hero-bg img { animation: ia-settle 1600ms var(--ease-out) both; }
  @keyframes ia-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

  @supports (animation-timeline: view()) {
    /* Hero: the street slowly zooms in as you scroll past it. */
    .ia-hero-bg { animation: ia-hero-zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes ia-hero-zoom { to { transform: scale(1.10); } }

    /* Story scenes: zoom out as the scene arrives, then slightly back in as it leaves. */
    .ia-scene-img img { animation: ia-scene-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes ia-scene-zoom { 0% { transform: scale(1.16); } 50% { transform: scale(1); } 100% { transform: scale(1.07); } }

    /* Copy and phones rise in as they enter. */
    .ia-rise { animation: ia-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    @keyframes ia-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

    .ia-final-bg img { animation: ia-final-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes ia-final-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
  }
}
.ia-guides { list-style: none; margin: 0; }
.ia-guides > li { display: flex; }
.ia-guides > li > .ia-guide { flex: 1; }

/* ---- close-ups (Leo 09-30, style scan option A) ---------------------------
   The part of the screen that matters, lifted out of the phone at readable
   size. It zooms out of the screen as the phone arrives. */
.ia-screen { display: block; overflow: clip; border-radius: 38px; }
.ia-callout { position: absolute; z-index: 2; width: 128%; height: auto; bottom: -3%; left: -80%; border-radius: 18px; background: #111a2b;
  box-shadow: 0 34px 70px -24px rgba(var(--shadow-tint), 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); transform-origin: 80% 50%; }
.ia-scene.flip .ia-callout { left: auto; right: -80%; transform-origin: 20% 50%; }
.ia-hero-phone .ia-callout { width: 116%; left: -60%; bottom: -4%; }
.ia-more { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 960px) {
  .ia-callout, .ia-scene.flip .ia-callout, .ia-hero-phone .ia-callout { width: 112%; left: -6%; right: auto; bottom: -7%; transform-origin: 50% 60%; }
  .ia-scene .ia-phone { margin-bottom: 72px; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes ia-pop { from { opacity: 0; transform: scale(0.5) translateY(8%); } to { opacity: 1; transform: none; } }
  .ia-hero-phone .ia-callout { animation: ia-pop 900ms var(--ease-out) 700ms both; }
  @supports (animation-timeline: view()) {
    .ia-scene .ia-phone { view-timeline-name: --ia-phone; }
    .ia-scene .ia-callout { animation: ia-pop linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @media (min-width: 961px) { .ia-scene .ia-callout { animation-timeline: --ia-phone; animation-range: entry 35% cover 40%; } }
  }
}

/* ---- follow row under the final CTA (TASK-120, 2026-09-30) --------------- */
.ia-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.ia-follow span { font-size: 14px; color: var(--ink-3); margin-right: 6px; }
.ia-follow a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); color: var(--ink-3); transition: color var(--d-popover) ease-out, border-color var(--d-popover) ease-out; }
.ia-follow a svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .ia-follow a:hover { color: var(--cyan); border-color: var(--line-hi); } }
.ia-follow a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 480px) { .ia-follow span { flex-basis: 100%; margin: 0; } }
