/* Search guide pages (docs/features/SEO.md): /life360-problems/, /life360-alternative/ and the rest.
   Loaded after site.css, only on those pages. */

.guide-hero { position: relative; background: linear-gradient(180deg, #86a4c6 0%, #d9c3b4 58%, #f4cf9f 100%); padding: 28px 24px 0; }
.guide-intro { display: flex; flex-direction: column; gap: 16px; max-width: 820px; padding: 40px 0 92px; }
.guide-hero h1 { margin: 0; font-weight: 800; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -0.02em; }
.guide-hero .lead { max-width: 36em; }
.guide-meta { margin: 0; font-size: 15px; color: var(--muted); }
/* Early access in the hero (parents' guides), or "Send this to a parent" (teens' guides) */
.guide-intro .signup { padding-top: 4px; }
.share-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.share-cta.center { justify-content: center; }
.share-btn { background: var(--teal); }
.share-btn:hover { background: var(--teal-dark); }
.share-alt { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.share-note { margin: 0; min-height: 1.4em; font-size: 16px; color: var(--body); }
.guide-dune { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; fill: var(--sand); }

.guide { max-width: 820px; margin: 0 auto; padding: 8px 24px 24px; }
.guide h2 { margin: 56px 0 14px; font-weight: 800; font-size: clamp(27px, 3vw, 36px); line-height: 1.15; scroll-margin-top: 16px; }
.guide h3 { margin: 0 0 8px; font-weight: 700; font-size: 21px; line-height: 1.25; }
.guide p, .guide li { font-size: 19px; line-height: 1.6; color: var(--body); }
.guide p { margin: 0 0 16px; max-width: 40em; }
.guide ul { margin: 0 0 16px; padding-left: 24px; }
.guide li + li { margin-top: 6px; }
.guide sup a { text-decoration: none; font-weight: 700; padding: 0 2px; }

/* "This isn't X's page" note at the top of a page about another company's app */
.guide .note { margin: 8px 0 20px; padding: 16px 20px; max-width: none; background: var(--card); border: 1.5px solid var(--line); border-left: 6px solid var(--rust); border-radius: 14px; font-size: 18px; }
.guide ol { margin: 0 0 16px; padding-left: 26px; }

/* "Jump to" chips for long pages */
.toc { margin: 8px 0 0; padding: 22px; background: var(--card); border-radius: 18px; }
.toc b { display: block; font: 700 17px var(--heading); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.toc li { font-size: 17px; line-height: 1.4; break-inside: avoid; padding: 6px 0; }
.toc li + li { margin-top: 0; }

/* One complaint: what people report, then what Outft does */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0 0 8px; }
.pair > div { padding: 22px; border-radius: 18px; }
.pair p:last-child, .pair ul:last-child { margin-bottom: 0; }
.pair p, .pair li { font-size: 18px; }
.said { background: var(--card); border: 1.5px solid var(--line); }
.ours { background: #dbe9e4; }
.ours h3 { color: var(--teal-dark); }
.label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); }
.ours .label { color: var(--teal); }

/* Short facts in a row */
.facts { list-style: none; margin: 8px 0 24px; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facts li { margin: 0 !important; padding: 18px 20px; background: var(--card); border-radius: 16px; font-size: 17px; line-height: 1.45; }
.facts b { display: block; font: 700 20px var(--heading); color: var(--ink); margin-bottom: 4px; }

/* Plain tables (Life360's listed prices) */
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); }
.guide table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.guide th, .guide td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide th { font: 700 16px var(--heading); color: var(--ink); background: #f3e5cf; }
.guide tr:last-child td { border-bottom: 0; }
.guide caption { caption-side: bottom; padding: 10px 16px; font-size: 15px; color: var(--muted); text-align: left; }

/* Other guides */
.more-guides { max-width: 1000px; margin: 0 auto; padding: 64px 24px 0; }
.more-guides h2 { margin: 0 0 18px; font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); }
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.guide-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-cards a:hover { border-color: var(--teal); color: var(--ink); }
.guide-cards b { font: 700 19px var(--heading); }
.guide-cards span { font-size: 16px; line-height: 1.45; color: var(--body); }

/* Sources and the trademark line */
.sources { max-width: 820px; margin: 0 auto; padding: 56px 24px 0; }
.sources h2 { margin: 0 0 12px; font-weight: 700; font-size: 20px; }
.sources ol { margin: 0; padding-left: 22px; }
.sources li { font-size: 15px; line-height: 1.5; color: var(--muted); scroll-margin-top: 16px; }
.sources li + li { margin-top: 6px; }
.sources li:target { background: var(--card); border-radius: 6px; }
.sources a { color: var(--muted); overflow-wrap: anywhere; }
.sources .tm { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

@media (max-width: 600px) {
  .guide-hero { padding: 20px 16px 0; }
  .guide-intro { padding: 28px 0 76px; }
  .guide { padding: 8px 16px 16px; }
  .guide h2 { margin-top: 44px; }
  .guide p, .guide li { font-size: 18px; }
  .pair > div { padding: 18px; }
  .facts { grid-template-columns: 1fr; }
  /* Tables become one card per row */
  .guide table, .guide tbody, .guide tr, .guide th, .guide td { display: block; }
  .guide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide tr { border-bottom: 1px solid var(--line); }
  .guide tbody th { border-bottom: 0; padding-bottom: 4px; font-size: 19px; background: transparent; }
  .guide td { border-bottom: 0; padding-top: 4px; }
  .guide td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); }
  .guide caption { display: block; }
  .more-guides, .sources { padding-left: 16px; padding-right: 16px; }
}
