/* AI Scribe feature page (/features/ai-scribe) only. Everything is scoped to .fp-page.k7; shared pieces live in feature-pages.css. */
html[data-look="hearth"] .fp-page.k7 {
  /* ---- intro: the call with the draft over its corner */
  & .sc-hero { position: relative; padding: 0 0 23% 0; }
  & .sc-hero-call { width: 88%; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--mat); }
  & .sc-hero-draft { position: absolute; right: 0; bottom: 0; width: 45%; border-radius: 14px; overflow: hidden; background: #fffaf0;
    box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -24px rgba(60, 40, 10, .5); }
  & .page-hero .fp-ticks { margin-top: 26px; max-width: 30em; text-align: left; }
  & .fp-intro-art::before { display: none; }

  /* ---- how it works: three cards */
  & .sc-how { padding-bottom: 96px; }
  & .sc-center { display: flex; justify-content: center; margin: 0 0 14px; }
  & .sc-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  & .sc-step { position: relative; padding: 12px 12px 28px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  & .sc-step-shot { display: flex; align-items: flex-start; aspect-ratio: 4 / 3; padding: 20px 22px 0; border-radius: 15px; overflow: hidden;
    background: color-mix(in srgb, var(--clay) 9%, #f4ede1); }
  & .sc-step-shot.is-bottom { align-items: flex-end; padding: 0 22px 20px; }
  & .sc-step-shot img { display: block; width: 100%; height: auto; border-radius: 9px 9px 0 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 12px 26px -12px rgba(50, 35, 10, .45); }
  & .sc-step-shot.is-bottom img { border-radius: 0 0 9px 9px; }
  & .sc-step-n { display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 14px; position: relative; border-radius: 50%;
    background: var(--pine); color: #fbf7ef; font: 700 17px/1 var(--sans); box-shadow: 0 0 0 4px var(--card); }
  & .sc-step h3 { margin: 14px 14px 0; font: 500 27px/1.15 var(--display); letter-spacing: -.015em; color: var(--text); }
  & .sc-step > p:not(.sc-step-n) { margin: 8px 14px 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
  & .sc-step + .sc-step::before { content: ""; position: absolute; left: -17px; top: 50%; width: 9px; height: 9px; border: solid color-mix(in srgb, var(--clay) 60%, transparent);
    border-width: 2px 2px 0 0; transform: rotate(45deg); }

  /* ---- feature rows */
  & .fp-stack.is-style { padding-bottom: 150px; padding-right: 9%; }
  & .fp-stack.is-style > .fp-stack-top { width: 40%; max-width: 290px; }
  & .fp-overlap.is-scribe { padding-right: 9%; padding-bottom: 150px; }
  & .fp-overlap.is-scribe > .fp-shot.is-phone { width: 27%; max-width: 200px; }
  & .fp-overlap.is-scribe > .fp-shot.is-phone .fp-shot-frame { padding: 6px; border-radius: 28px; }
  & .fp-overlap.is-scribe > .fp-shot.is-phone .fp-shot-frame img { border-radius: 22px; }
  & .fp-stack.is-beyond { padding-bottom: 110px; padding-right: 8%; }
  & .fp-stack.is-beyond > .fp-stack-top { width: 46%; max-width: 330px; }
  & .sc-safety a { font-weight: 700; text-underline-offset: 3px; }

  /* ---- private by design: what happens to a session (on pine) */
  & .sc-flow { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; display: grid; gap: 12px; counter-reset: sc; }
  & .sc-flow li { position: relative; counter-increment: sc; display: grid; gap: 5px; padding: 18px 22px 19px 68px; border-radius: 18px;
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(246, 241, 232, .16); }
  & .sc-flow li::before { content: counter(sc); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: #f0c3a8; color: #1b382f; font: 700 15px/1 var(--sans); }
  & .sc-flow li + li::after { content: ""; position: absolute; left: 35px; top: -12px; height: 12px; border-left: 2px dashed rgba(240, 195, 168, .6); }
  & .sc-flow b { font: 500 21px/1.2 var(--display); letter-spacing: -.01em; color: #fbf7ef; }
  & .sc-flow span { font-size: 15.5px; line-height: 1.5; color: rgba(246, 241, 232, .84); }
  & .sc-swaps { display: grid; grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; gap: 6px 10px; margin-top: 8px; }
  & .sc-swaps { grid-template-columns: max-content max-content; }
  & .sc-swaps i { font-style: normal; font-weight: 600; color: rgba(246, 241, 232, .7); text-decoration: line-through; text-decoration-color: rgba(240, 195, 168, .8); }
  & .sc-swaps em { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-style: normal; padding: 5px 8px; border-radius: 7px; background: rgba(0, 0, 0, .22); color: #f6d9c8; }

  /* ---- tile mock-ups */
  & .sc-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
  & .sc-wave i { flex: 1; max-width: 6px; border-radius: 3px; background: var(--clay); opacity: .8; }
  & .sc-wave .h1 { height: 20%; } & .sc-wave .h2 { height: 40%; } & .sc-wave .h3 { height: 60%; } & .sc-wave .h4 { height: 80%; } & .sc-wave .h5 { height: 100%; }
  & .sc-chiprow { display: flex; flex-wrap: wrap; gap: 5px; }
  & .fp-mini-bubble > span { font-weight: 600; color: var(--text); }

  /* ---- questions */
  & .sc-faq { padding: 96px 0; }
  & .sc-qs { max-width: 800px; margin: 40px auto 0; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 30px; }
  & .sc-q + .sc-q { border-top: 1px solid var(--line); }
  & .sc-q summary { position: relative; display: block; padding: 22px 44px 22px 0; cursor: pointer; list-style: none; font: 500 21px/1.3 var(--display); letter-spacing: -.008em; color: var(--text); }
  & .sc-q summary::-webkit-details-marker { display: none; }
  & .sc-q summary::after { content: "+"; position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
    background: var(--sage); color: var(--pine); font: 500 20px/1 var(--sans); }
  & .sc-q[open] summary::after { content: "−"; }
  & .sc-q p { margin: -4px 0 0; padding: 0 44px 24px 0; font-size: 16.5px; line-height: 1.65; color: var(--text-2); }

  @media (max-width: 1000px) {
    & .sc-steps { gap: 14px; }
    & .sc-step + .sc-step::before { display: none; }
    & .sc-step h3 { font-size: 24px; }
    & .sc-flow { margin: 0 auto; }
  }
  @media (max-width: 760px) {
    & .sc-how { padding-bottom: 72px; }
    & .sc-steps { grid-template-columns: 1fr; max-width: 460px; margin: 36px auto 0; gap: 16px; }
    & .sc-step-shot { aspect-ratio: 16 / 10; }
    & .fp-stack.is-style { padding: 0; }
    & .fp-stack.is-style > .fp-stack-top { position: relative; width: 58%; margin: -70px 0 0 auto; }
    & .fp-overlap.is-scribe { padding: 0; }
    & .fp-overlap.is-scribe > .fp-shot.is-phone { width: 40%; max-width: 170px; margin: -56px 0 0 auto; }
    & .fp-stack.is-beyond { padding: 0; }
    & .fp-stack.is-beyond > .fp-stack-top { position: relative; width: 70%; margin: -30px 0 0 auto; }
    & .sc-faq { padding: 72px 0; }
    & .sc-qs { padding: 2px 20px; border-radius: 20px; }
    & .sc-q summary { font-size: 19px; padding: 18px 40px 18px 0; }
    & .sc-q p { padding-right: 0; font-size: 16px; }
    & .sc-flow li { padding: 16px 18px 17px 60px; }
    & .sc-flow li::before { left: 16px; top: 16px; }
    & .sc-flow li + li::after { left: 31px; }
  }
  @media (max-width: 640px) {
    & .page-hero .fp-ticks { margin-top: 20px; }
    & .sc-hero { padding-bottom: 26%; }
  }
}

/* colour (round 7): the three steps and the privacy flow take accents from the shared palette (feature-pages.css) */
html[data-look="hearth"] .fp-page.k7 {
  & .sc-center .eyebrow { color: var(--k-ink); }
  & .sc-step:nth-child(1) { --a: var(--fp-sky); --ai: var(--fp-sky-ink); }
  & .sc-step:nth-child(2) { --a: var(--fp-ochre); --ai: var(--fp-ochre-ink); }
  & .sc-step:nth-child(3) { --a: var(--fp-sage); --ai: var(--fp-sage-ink); }
  & .sc-step .sc-step-shot { background: var(--a); }
  & .sc-step .sc-step-n { background: var(--ai); }
  & .sc-step + .sc-step::before { border-color: color-mix(in srgb, var(--ai) 70%, transparent); }
  & .sc-flow li:nth-child(4n + 2)::before { background: var(--fp-ochre); }
  & .sc-flow li:nth-child(4n + 3)::before { background: var(--fp-sky); }
  & .sc-flow li:nth-child(4n)::before { background: var(--fp-sage); }
  & .sc-flow li:nth-child(4n + 2) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fp-ochre) 30%, transparent); }
  & .sc-flow li:nth-child(4n + 3) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fp-sky) 30%, transparent); }
  & .sc-flow li:nth-child(4n) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fp-sage) 30%, transparent); }
  & .fp-feat-art:has(> .sc-flow)::before { display: none; }
  & .fp-tile .sc-wave i { background: var(--dot); }
  & .sc-q summary::after { background: var(--fp-sky); color: var(--fp-sky-ink); }
}
