/* The guide to comparing AI visibility tools (/compare-ai-visibility-tools; server/guide-page.js).
   Builds on the Visibility page (app.css, visibility.css, product-ui.css): its hero, tiles, panels,
   change diagram and closing. Each check is a tile with its picture below its words. */

.guide-hero .resource-updated { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* The checklist over the Overview. */
.guide-float { width: clamp(250px, 29%, 320px); bottom: -10%; }
.guide-list { padding: 18px 18px 14px; border-radius: 18px; background: #fff; box-shadow: var(--pop); }
.guide-list p, .guide-list ol { margin: 0; padding: 0; list-style: none; }
.guide-list-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.guide-list-head b { font-weight: 650; }
.guide-list ol { display: grid; gap: 2px; margin-top: 10px; }
.guide-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #f0eef4; color: #36333c; font-size: 13px; line-height: 1.35; }
.guide-list li > span { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.guide-list li svg { width: 12px; height: 12px; stroke-width: 2.6; }

/* What to compare: eight tiles in three columns, the change diagram across the whole row. */
.guide-compare { margin-top: clamp(56px, 8vw, 96px); }
.guide-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.guide-tile { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: var(--card); }
.guide-tile-copy { padding: 24px 26px 0; }
.guide-number { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.guide-number span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--lavender-soft); color: var(--accent); }
.guide-number svg { width: 19px; height: 19px; }
.guide-tile h3 { margin-top: 16px; font: 580 21px/1.3 var(--heading); letter-spacing: -.015em; }
.guide-tile-copy > p:last-child { margin-top: 8px; color: #5b5560; font-size: 14px; line-height: 1.7; }
.guide-art { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: center; min-height: 250px; margin-top: 22px; padding: 0 24px; overflow: hidden; background: linear-gradient(#0000 0, var(--lavender-soft) 64px); }
.guide-tile--5, .guide-tile--8 { grid-column: span 2; }
.guide-tile--4 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(26px, 4vw, 48px); background: radial-gradient(90% 70% at 100% 0%, #3d2f78 0%, #232029 52%, #19191b 100%); color: #fff; }
.guide-tile--4 .guide-tile-copy { padding: 0; }
.guide-tile--4 h3 { font-size: clamp(24px, 2.6vw, 30px); }
.guide-tile--4 .guide-tile-copy > p:last-child { color: #ffffffc7; font-size: 15px; }
.guide-tile--4 .guide-number { color: #d9cffb; }
.guide-tile--4 .guide-number span { background: #ffffff14; color: #d9cffb; }
.guide-tile--4 .guide-art { display: block; min-height: 0; margin: 0; padding: 0; overflow: visible; background: none; }

/* Screens in the tiles: a soft frame cut by the tile's bottom edge. */
.guide-shot { width: 100%; height: 250px; margin: 0; border-radius: 14px 14px 0 0; }
.guide-shot--engines .kui { width: 116%; }
.guide-shot--answer { height: 340px; }
.guide-shot--answer .kui { width: 108%; }
.guide-shot--board .kui { width: 128%; }

/* 2: how often each pace collects in two weeks. */
.guide-art-head { width: 100%; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guide-cadence { display: grid; width: 100%; max-width: 360px; gap: 14px; align-self: center; padding: 20px; border-radius: 18px; background: #fff; box-shadow: var(--card); }
.guide-cadence p { margin: 0; }
.guide-cadence-row p { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; }
.guide-cadence-row b { color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.guide-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin-top: 7px; }
.guide-days i { height: 14px; border-radius: 4px; background: #efedf3; }
.guide-days i.is-on { background: var(--accent); }

/* 3: one question, answered from the API and from the app. */
.guide-sources { display: grid; width: 100%; gap: 10px; align-self: center; }
.guide-sources p, .guide-sources ol { margin: 0; }
.guide-q { justify-self: end; max-width: 92%; padding: 9px 12px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.45; }
[dir='rtl'] .guide-q { border-radius: 16px 16px 16px 4px; }
.guide-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.guide-src { min-width: 0; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--card); }
.guide-src-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; }
.guide-src-head img { width: 14px; height: 14px; }
.guide-src-head span { width: 100%; color: var(--accent-dark); font-size: 11px; font-weight: 650; }
.guide-src ol { display: grid; gap: 3px; margin-top: 8px; padding-inline-start: 18px; font-size: 12px; line-height: 1.4; }
.guide-src li.is-you { color: var(--accent-dark); font-weight: 650; }
.guide-src small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }

/* 7: the assistant, and the ways out. */
.guide-tools { display: grid; width: 100%; justify-items: center; gap: 14px; align-self: center; }
.guide-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.guide-chips span { padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--accent-dark); font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: var(--card); }

/* 8: the published prices and the trial. */
.guide-plans { display: grid; width: 100%; gap: 12px; align-self: center; }
.guide-plan-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide-plan { margin: 0; padding: 16px 14px; border-radius: 16px; background: #fff; box-shadow: var(--card); }
.guide-plan span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.guide-plan strong { display: block; margin-top: 6px; font: 600 clamp(22px, 2.4vw, 30px)/1 var(--heading); letter-spacing: -.03em; }
.guide-plan small { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.guide-free { display: inline-flex; justify-self: center; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 99px; background: #fff; color: var(--accent-dark); font-size: 13px; font-weight: 650; box-shadow: var(--card); }
.guide-free svg { width: 14px; height: 14px; stroke-width: 2.4; }

/* A fair trial: the steps beside the questions and the two weeks. */
.guide-trial { margin-top: clamp(28px, 4vw, 48px); }
.guide-trial h2 { text-wrap: balance; }
.guide-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.guide-steps { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.guide-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fffdf6; box-shadow: var(--card); }
.guide-steps span { display: inline-grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.guide-steps p { margin: 3px 0 0; color: #36333c; font-size: 14.5px; line-height: 1.6; }
.guide-sheet { padding: 20px; border-radius: 22px; background: #fff; box-shadow: var(--pop); }
.guide-sheet p, .guide-sheet ul { margin: 0; padding: 0; list-style: none; }
.guide-sheet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.guide-sheet-head b { font-weight: 650; }
.guide-sheet-head span { padding: 4px 10px; border-radius: 99px; background: var(--lavender-soft); color: var(--accent-dark); font-size: 12px; font-weight: 650; }
.guide-sheet ul { margin-top: 12px; }
.guide-sheet li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #f0eef4; font-size: 13px; line-height: 1.4; }
.guide-sheet em { flex: none; padding: 3px 8px; border-radius: 6px; background: #eaf5ef; color: #2f6b52; font-size: 11px; font-style: normal; font-weight: 650; }
.guide-sheet em.is-branded { background: #f0f1f4; color: #55545e; }
.guide-fortnight { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0eef4; }
.guide-days--big i { height: 22px; border-radius: 6px; }
.guide-fortnight p { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }

/* KNWN on each point: the same icons, two columns. */
.guide-knwn { margin-top: clamp(16px, 2.4vw, 28px); }
.guide-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.guide-answers li { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--card); }
.guide-answer-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; background: var(--lavender-soft); color: var(--accent); }
.guide-answer-icon svg { width: 19px; height: 19px; }
.guide-answers h3 { font: 600 15.5px/1.35 var(--heading); letter-spacing: -.01em; }
.guide-answers p { margin-top: 5px; color: #5b5560; font-size: 14px; line-height: 1.6; }

/* Side by side: the comparison pages. */
.guide-side { margin-top: clamp(48px, 7vw, 88px); }
.guide-side-lead { max-width: 720px; margin-top: 12px; color: #48454e; font-size: 16px; line-height: 1.75; }
.guide-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.guide-vs-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--card); transition: box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out); }
.guide-vs-card:hover { box-shadow: var(--pop); transform: translateY(-2px); }
.guide-vs-text { flex: 1; min-width: 0; }
.guide-vs-text strong { display: block; font: 580 20px/1.3 var(--heading); letter-spacing: -.015em; }
.guide-vs-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.guide-vs-knwn { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; }
.guide-vs-knwn .vis-mark { width: 24px; height: 24px; color: #fff; }

@media (max-width: 1020px) {
  .guide-float { position: relative; bottom: auto; inset-inline-end: auto; width: min(340px, 86%); margin: -64px 0 0 auto; }
  [dir='rtl'] .guide-float { margin: -64px auto 0 0; }
  .guide-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-tile--5, .guide-tile--8 { grid-column: span 1; }
  .guide-tile--4 { grid-template-columns: minmax(0, 1fr); }
  .guide-split { grid-template-columns: minmax(0, 1fr); }
  .guide-answers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .guide-float, [dir='rtl'] .guide-float { width: 88%; margin-top: -24px; }
  .guide-bento, .guide-vs { grid-template-columns: minmax(0, 1fr); }
  .guide-tile-copy { padding: 22px 20px 0; }
  .guide-art { min-height: 220px; padding: 0 18px; }
  .guide-shot { height: 220px; }
  .guide-shot--engines .kui { width: 130%; }
  .guide-shot--answer .kui { width: 160%; }
  .guide-shot--board .kui { width: 150%; }
  .guide-plan { padding: 12px 10px; }
  .guide-vs-card { padding: 18px; }
}
