/* Toolpagina's onder /gratis-seo-tools/{slug}/: kop met voorbeeld, stepper, vergelijking, inhoudsopgave, vragen en meer tools.
   Geladen vanuit findori_seo_tool_assets() in inc/tools.php. Klassen beginnen met fs-tp-. */

/* 1. Kop in twee kolommen */
.fs-tp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fs-tp-hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.fs-tp-hero-text { min-width: 0; }
.fs-tp-label a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; text-decoration: none; }
.fs-tp-label a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fs-tp-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 4px 0 18px; border-radius: 50%; background: #fff; border: 1px solid rgba(215,168,58,.55); color: var(--fs-navy); box-shadow: 0 0 0 6px rgba(215,168,58,.12), 0 10px 24px rgba(8,21,43,.08); }
.fs-tp-icon svg { width: 24px; height: 24px; }
.fs-tp-h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.fs-tp-hero-grid--solo .fs-tp-h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.fs-tp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.fs-tp-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--fs-line); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--fs-navy); font-size: .875rem; font-weight: 700; line-height: 1.3; }
.fs-tp-badges li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--fs-gold); box-shadow: 0 0 0 3px rgba(215,168,58,.22); }

.fs-tp-hero-visual { position: relative; min-width: 0; padding-bottom: 78px; }
.fs-tp-preview { margin: 0; overflow: hidden; border: 1px solid rgba(12,27,54,.15); border-radius: var(--fs-radius-md); background: #fff; box-shadow: var(--fs-shadow); transform: rotate(1.2deg); transition: transform 300ms ease; }
.fs-tp-preview:hover { transform: rotate(0deg) translateY(-3px); }
.fs-tp-preview-label { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 0; padding: 8px 18px; border-bottom: 1px solid var(--fs-line); background: var(--fs-paper); color: var(--fs-gold-readable); font-size: .8125rem; font-weight: 850; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.fs-tp-preview-label::before { content: ""; width: 38px; height: 10px; flex: 0 0 38px; background: radial-gradient(circle at 5px 5px, #d9d4ca 4px, transparent 4.5px) 0 0 / 14px 10px repeat-x; }
.fs-tp-preview-body { min-width: 0; }
.fs-tp-preview { width: 100%; max-width: 480px; margin-inline: auto; }
/* Het voorbeeld (fs-pv) is zelf een kaart; binnen deze lijst laten we alleen de inhoud staan. */
.fs-tp-preview-body > .fs-pv { width: 100%; max-width: none; min-height: 0; padding: clamp(16px, 2.4vw, 22px); border: 0; border-radius: 0; box-shadow: none; }
.fs-tp-note { left: 10%; right: auto; bottom: 2px; align-items: flex-start; gap: 6px; z-index: 2; }
.fs-tp-note span { padding-top: 8px; }
.fs-tp-note .fs-arrow.fs-tp-arrow { order: 1; width: 40px; height: 56px; transform: none; }

/* 2. Stepper boven de tool */
.fs-tp-steps { --dot: 40px; --gap: 16px; max-width: 880px; margin: 0 auto clamp(24px, 3vw, 36px); }
.fs-tp-steps-title { margin: 0 0 18px; color: var(--fs-gold-readable); font-size: .8125rem; font-weight: 850; letter-spacing: .16em; line-height: 1.4; text-align: center; text-transform: uppercase; }
.fs-tp-steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.fs-tp-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; text-align: center; }
.fs-tp-step:not(:last-child)::before, .fs-tp-step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px); left: calc(50% + var(--dot) / 2 + 8px); width: calc(100% + var(--gap) - var(--dot) - 16px); height: 2px; border-radius: 2px; }
.fs-tp-step::before { background: var(--fs-line); }
.fs-tp-step::after { background: var(--fs-gold); transform-origin: left center; transition: transform 500ms ease calc(var(--i) * 420ms + 150ms); }
.fs-tp-step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: var(--dot); height: var(--dot); flex: 0 0 var(--dot); border: 2px solid var(--fs-gold); border-radius: 50%; background: var(--fs-gold); color: var(--fs-navy-dark); font-size: .95rem; font-weight: 800; transition: background-color 300ms ease calc(var(--i) * 420ms), box-shadow 300ms ease calc(var(--i) * 420ms); box-shadow: 0 0 0 5px rgba(215,168,58,.16); }
.fs-tp-step-text { display: grid; gap: 2px; min-width: 0; }
.fs-tp-step-text strong { color: var(--fs-navy); font-size: 1rem; line-height: 1.3; }
.fs-tp-step-text span { color: var(--fs-muted); font-size: .9rem; line-height: 1.45; }
.js .fs-tp-steps:not(.is-in) .fs-tp-step::after { transform: scaleX(0); }
.js .fs-tp-steps:not(.is-in) .fs-tp-step-dot { background: #fff; box-shadow: none; }

/* 3. Vergelijking gratis tool en Findori SEO */
.fs-tp-compare { margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--fs-cream-deep); border-radius: var(--fs-radius-lg); background: var(--fs-cream); }
.fs-tp-compare-head { margin-bottom: 20px; }
.fs-tp-compare-head .fs-label { margin-bottom: 8px; }
.fs-tp-compare-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.fs-tp-col { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--fs-radius-md); }
.fs-tp-col--free { align-self: start; border: 1px solid var(--fs-line); background: rgba(255,255,255,.55); }
.fs-tp-col--paid { border: 2px solid var(--fs-gold); background: #fff; box-shadow: var(--fs-shadow); }
.fs-tp-col-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; color: var(--fs-navy); font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.fs-tp-col--free .fs-tp-col-name { color: var(--fs-muted); }
.fs-tp-col-tag { padding: 3px 10px; border-radius: 999px; background: #fbf2dc; color: var(--fs-gold-readable); font-size: .8125rem; font-weight: 800; }
.fs-tp-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fs-tp-list li { position: relative; line-height: 1.5; }
.fs-tp-list--plain li { padding-left: 26px; color: var(--fs-muted); }
.fs-tp-list--plain li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 12px; height: 2px; border-radius: 2px; background: #a9a398; }
.fs-tp-list--check li { padding-left: 32px; color: var(--fs-text); }
.fs-tp-list--check li::before { content: ""; position: absolute; left: 0; top: .18em; width: 21px; height: 21px; border-radius: 50%; background: var(--fs-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.fs-tp-list--check li:first-child { color: var(--fs-navy); font-weight: 650; }
.fs-tp-col-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 24px; }
.fs-tp-col-actions .fs-button { line-height: 1.25; text-align: center; }

/* 4. Uitleg met inhoudsopgave en leesvoortgang */
.fs-tp-read-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 760px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fs-tp-read-grid--solo { grid-template-columns: minmax(0, 760px); }
.fs-tp-body.fs-article-body { width: auto; margin: 0; }
.fs-tp-body h2 { scroll-margin-top: 28px; }
.fs-tp-body > h2:first-child { margin-top: 0; }
.fs-tp-toc { position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow: auto; min-width: 0; }
.fs-tp-toc-box summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; color: var(--fs-gold-readable); font-size: .8125rem; font-weight: 850; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; list-style: none; cursor: default; }
.fs-tp-toc-box summary::-webkit-details-marker { display: none; }
.fs-tp-toc-box ol { margin: 12px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--fs-line); }
.fs-tp-toc-box a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--fs-muted); font-size: .9rem; line-height: 1.4; text-decoration: none; transition: color 200ms ease, border-color 200ms ease; }
.fs-tp-toc-box a:hover { color: var(--fs-navy); }
.fs-tp-toc-box a.is-active { color: var(--fs-navy); border-left-color: var(--fs-gold); font-weight: 700; }
.fs-tp-progress { display: none; }
.js .fs-tp-progress { display: block; position: fixed; inset: 0 0 auto; z-index: 120; height: 3px; pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
.js .fs-tp-progress.is-visible { opacity: 1; }
.fs-tp-progress span { display: block; height: 100%; background: var(--fs-gold); transform-origin: left center; transform: scaleX(var(--p, 0)); }

/* 5. Veelgestelde vragen als accordion */
.fs-tp-faq { width: min(860px, var(--fs-wrap)); }
.fs-tp-faq .fs-h2 { margin-bottom: 24px; }
.fs-tp-faq-list { display: grid; gap: 12px; }
.fs-tp-faq-item { border: 1px solid var(--fs-line); border-radius: var(--fs-radius-md); background: #fff; transition: border-color 200ms ease, box-shadow 200ms ease; }
.fs-tp-faq-item:hover { border-color: #cfc6b3; }
.fs-tp-faq-item[open]:not(.is-closing) { border-color: rgba(215,168,58,.7); box-shadow: 0 12px 32px rgba(8,21,43,.07); }
.fs-tp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 20px 18px 22px; border-radius: var(--fs-radius-md); color: var(--fs-navy); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.fs-tp-faq-item summary::-webkit-details-marker { display: none; }
.fs-tp-faq-item summary:focus-visible { outline-offset: -3px; }
.fs-tp-faq-q { min-width: 0; }
.fs-tp-plus { position: relative; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--fs-cream); transition: transform 300ms ease, background-color 300ms ease; }
.fs-tp-plus::before, .fs-tp-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--fs-navy); transition: transform 300ms ease; }
.fs-tp-plus::after { transform: rotate(90deg); }
.fs-tp-faq-item[open]:not(.is-closing) .fs-tp-plus { transform: rotate(180deg); background: var(--fs-gold); }
.fs-tp-faq-item[open]:not(.is-closing) .fs-tp-plus::after { transform: rotate(180deg); }
.fs-tp-faq-inner { padding: 0 22px 20px; color: var(--fs-text); }
.fs-tp-faq-inner p { margin: 0 0 .9em; }
.fs-tp-faq-inner > :last-child { margin-bottom: 0; }
.fs-tp-faq-inner a { color: var(--fs-navy); font-weight: 650; text-underline-offset: 4px; }

/* 6. Meer gratis SEO-tools met spotlight */
.fs-tp-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 20px; }
.fs-tp-more-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 20px; border: 1px solid var(--fs-line); border-radius: var(--fs-radius-md); background: #fff; color: var(--fs-text); text-decoration: none; transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
.fs-tp-more-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(280px circle at var(--x, 50%) var(--y, 0%), rgba(215,168,58,.22), transparent 70%); opacity: 0; transition: opacity 250ms ease; }
.fs-tp-more-card:hover, .fs-tp-more-card:focus-visible { border-color: var(--fs-gold); transform: translateY(-2px); box-shadow: var(--fs-shadow); }
.js .fs-tp-more-card:hover::before, .js .fs-tp-more-card:focus-visible::before { opacity: 1; }
.fs-tp-more-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--fs-cream); color: var(--fs-navy); transition: background-color 200ms ease; }
.fs-tp-more-icon svg { width: 21px; height: 21px; }
.fs-tp-more-card:hover .fs-tp-more-icon { background: #fbf2dc; }
.fs-tp-more-card strong { color: var(--fs-navy); font-size: 1.02rem; line-height: 1.3; }
.fs-tp-more-text { color: var(--fs-muted); font-size: .9rem; line-height: 1.5; }

/* Tablet en kleiner */
@media (max-width: 980px) {
  .fs-tp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fs-tp-hero-visual { padding-bottom: 0; }
  .fs-tp-preview { transform: rotate(.6deg); }
  .fs-tp-note.fs-note-hand { position: static; width: fit-content; margin: 14px 0 0 8px; font-size: 1.35rem; transform: rotate(-2deg); }
  .fs-tp-read-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fs-tp-toc { position: static; max-height: none; overflow: visible; }
  .fs-tp-toc-box { border: 1px solid var(--fs-line); border-radius: var(--fs-radius-md); background: #fff; }
  .fs-tp-toc-box summary { min-height: 52px; padding: 8px 18px; cursor: pointer; }
  .fs-tp-toc-box summary::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid var(--fs-navy); border-bottom: 2px solid var(--fs-navy); transform: rotate(45deg); transition: transform 200ms ease; }
  .fs-tp-toc-box[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
  .fs-tp-toc-box ol { margin: 0 18px 16px; }
}
@media (max-width: 760px) {
  .fs-tp-compare-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fs-tp-steps { --gap: 14px; }
  .fs-tp-steps-title { text-align: left; }
  .fs-tp-steps-list { grid-template-columns: minmax(0, 1fr); }
  .fs-tp-step { flex-direction: row; align-items: flex-start; gap: 14px; text-align: left; }
  .fs-tp-step-text { padding-top: 7px; }
  .fs-tp-step:not(:last-child)::before, .fs-tp-step:not(:last-child)::after { top: calc(var(--dot) + 6px); bottom: calc(-1 * var(--gap) + 6px); left: calc(var(--dot) / 2 - 1px); width: 2px; height: auto; }
  .fs-tp-step::after { transform-origin: center top; }
  .js .fs-tp-steps:not(.is-in) .fs-tp-step::after { transform: scaleY(0); }
  .fs-tp-col-actions .fs-button { width: 100%; }
  .fs-tp-faq-item summary { padding: 16px 16px 16px 18px; font-size: 1rem; }
  .fs-tp-faq-inner { padding: 0 18px 18px; }
  .fs-tp-more { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
  .fs-tp-more-card { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-tp-preview, .fs-tp-step::after, .fs-tp-step-dot, .fs-tp-plus, .fs-tp-plus::before, .fs-tp-plus::after, .fs-tp-more-card, .fs-tp-more-card::before, .fs-tp-toc-box a, .js .fs-tp-progress { transition: none; }
  .fs-tp-preview:hover, .fs-tp-more-card:hover, .fs-tp-more-card:focus-visible { transform: none; }
  .fs-tp-preview:hover { transform: rotate(1.2deg); }
  .js .fs-tp-steps:not(.is-in) .fs-tp-step::after { transform: none; }
  .js .fs-tp-steps:not(.is-in) .fs-tp-step-dot { background: var(--fs-gold); box-shadow: 0 0 0 5px rgba(215,168,58,.16); }
  .fs-tp-more { scroll-behavior: auto; }
}

/* De kaart heeft al het label "Zo ziet de uitkomst eruit"; het label "Voorbeeld" in het voorbeeld zelf is dan dubbel. */
.fs-tp-preview-body .fs-pv-top .fs-pv-badge { display: none; }

/* Op een telefoon gaat de bezoeker direct naar de tool; het voorbeeld in de kop zou die anderhalf scherm omlaag duwen. */
@media (max-width: 640px) {
  .fs-tp-hero .fs-tp-hero-visual { display: none; }
}
