/* SEO page (hero-pane). Plan: docs/superpowers/specs/2026-09-30-seo-page-design.md
   The page behaves like a live search. Pure #000/#fff, sharp panels, Mona Sans 400/500. */

/* Sticky panels need a non-scrolling ancestor; clip keeps the old clipping. */
.overflow-hidden:has(.seo-sticky) { overflow: clip; }

/* Search box (used by #included's results) */
.seo-search-box { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 20px; border: 1px solid #000; background: #fff; color: #000; font-size: 18px; }
.seo-search-icon { position: relative; flex: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.seo-search-icon::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 6px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.seo-caret { width: 1px; height: 22px; background: currentColor; animation: seo-blink 1s steps(1) infinite; }
@keyframes seo-blink { 50% { opacity: 0; } }

/* Example screenshots (Codex makes the files). A missing file shows an honest placeholder. */
.seo-shot { position: relative; margin: 0; border: 1px solid #d9d9d9; background: #fff; }
.seo-shot figcaption { position: absolute; top: 12px; left: 12px; } /* look: .ex-badge rule in the shared CSS */

/* Two-column split used by several sections */
.seo-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }

.seo-sticky { position: sticky; top: 100px; display: grid; gap: 16px; }
.seo-label { font-size: 14px; color: #484848; }

/* SEO parts styled as search results */

/* AI SEO as a chat thread */

/* Honest about search: a search that finds nothing */

@media (max-width: 991px) {
  .seo-split, .seo-split.is-even { grid-template-columns: 1fr; gap: 40px; }
  .seo-sticky { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .seo-caret { animation: none; }
}

/* Readability pass (Evan, 2026-09-30): black text, intro under its heading,
   tighter section rhythm, ~60 character lines. Scoped to body.seo-page. */
.seo-page { color: #000; }
.seo-page .color-neutral-600 { color: #000; }
.seo-page .section { padding-top: 112px; padding-bottom: 112px; }
.seo-page main p, .seo-page section p { max-width: 60ch; }
@media (max-width: 991px) { .seo-page .section { padding-top: 88px; padding-bottom: 88px; } }
@media (max-width: 767px) { .seo-page .section { padding-top: 64px; padding-bottom: 64px; } }

/* Button row on every section: Get a quote / Book a call / Learn more (Evan, 2026-09-30) */
.seo-cta { gap: 12px 16px; align-items: center; }
.seo-more { display: inline-flex; align-items: center; height: 50px; padding: 0 8px; color: #000; font-size: 17px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.seo-more:hover { text-decoration-thickness: 2px; }
.seo-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Clarity pass (Evan, 2026-09-30): plain definitions, search-style quote box,
   outcome headings, "what happens next", phone action bar. */

.seo-bar { display: none; }
@media (max-width: 767px) {
  .seo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); /* glass: shared --glass-* tokens */
    background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-top: var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 -8px 24px rgba(0, 0, 0, .06);
    transition: transform .35s cubic-bezier(.7,0,.3,1); }
  .seo-bar a { flex: 1; }
  .seo-bar.is-off { transform: translateY(110%); }
  .seo-bar[hidden] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .seo-bar { transition: none; } }

/* #where explainer (Evan, 2026-10-01: the hero shows the Google page, so no second mock here) */
.seo-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.seo-two-col { display: grid; gap: 18px; align-content: start; padding-top: 28px; border-top: 1px solid #000; }
.seo-two-col p { margin: 0; font-size: 21px; line-height: 1.55; max-width: 30ch; }
.seo-two-cta { margin-top: 48px; }
@media (max-width: 767px) { .seo-two { grid-template-columns: 1fr; } .seo-two-col p { font-size: 18px; } }

/* Honest about search + Questions (Evan 2026-10-02): same standard as the Google Ads promise and FAQ.
   Black "We do" card with ticks, grey "We don't promise" card with strikes, answer cards beside a pinned head. */
.sh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.sh-head h2 { max-width: 560px; }
.sh-head p { margin: 0; max-width: 440px; font-size: 18px; line-height: 1.5; color: #333; }
.sh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-card { border-radius: 28px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.sh-card h3 { margin: 0 0 24px; font-size: clamp(26px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: inherit; }
.sh-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sh-card li { margin: 0; padding: 0; display: flex; gap: 14px; align-items: flex-start; font-size: 19px; line-height: 1.4; }
.sh-card.is-yes { background: #000; color: #fff; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08), inset 0 -2px 4px rgba(0, 0, 0, .3); }
.sh-card.is-no { background: #f2f2f4; color: #000; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(60, 60, 67, .05), 0 6px 18px -12px rgba(60, 60, 67, .12); }
.sh-tick { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.sh-tick circle { fill: #fff; }
.sh-tick path { fill: none; stroke: #000; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .45s cubic-bezier(.5, 0, .15, 1) calc(.2s + var(--k) * .12s); }
.sh-x { width: 22px; height: 22px; flex: none; margin-top: 3px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(60, 60, 67, .12); }
.sh-x::before { content: ""; width: 10px; height: 1.6px; background: #6e6e73; }
.sh-no { position: relative; color: #48484a; }
.sh-no::after { content: ""; position: absolute; left: 0; right: 0; top: 54%; height: 2px; background: #1c1c1e; transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.5, 0, .15, 1) calc(.5s + var(--k) * .12s); }
.sh-in .sh-tick path { stroke-dashoffset: 0; }
.sh-in .sh-no::after { transform: none; }
.sh-note { margin: auto 0 0; padding-top: 28px; font-size: 15px; color: #48484a; }
.sh-cta { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 30px; background: #fff; color: #000; font-size: 15px; font-weight: 500; text-decoration: none; }
.sh-card.is-yes ul { margin-bottom: 32px; }
.sh-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
/* Not sticky (Evan 2026-10-04): with the section's slide lag, a sticky heading drifted down and vanished under the next section. */
.sh-faq-head { display: grid; gap: 20px; justify-items: start; }
.sh-faq-head p { margin: 0; font-size: 18px; line-height: 1.5; color: #333; }
.sh-faq-head .buttons-flex-container { margin: 0; }
.sh-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-q { border-radius: 24px; padding: 26px; background: #f2f2f4; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(60, 60, 67, .05), 0 6px 18px -12px rgba(60, 60, 67, .12); opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.5, 0, .15, 1), transform .55s cubic-bezier(.5, 0, .15, 1); transition-delay: calc(var(--k) * .08s); }
.sh-q:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sh-q h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: #000; }
.sh-q p { margin: 0; font-size: 16px; line-height: 1.55; color: #333; max-width: none; }
.sh-in .sh-q { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .sh-head { flex-direction: column; align-items: flex-start; }
  .sh-two, .sh-faq { grid-template-columns: 1fr; }
  .sh-faq-head { position: static; }
}
@media (max-width: 600px) { .sh-qs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .sh-tick path { stroke-dashoffset: 0; transition: none; }
  .sh-no::after { transform: none; transition: none; }
  .sh-q { opacity: 1; transform: none; transition: none; }
}
.sh-faq-head .seo-more { margin: 0; padding-left: 0; }

/* SEO section, left side (Evan 2026-10-02, option A): rows light up with the Google animation on the right. */
.sg-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 56px; }
.sg-head h2 { margin: 0; }
.sg-split { align-items: start; }   /* lines start right under the heading */
/* under the four lines, like the AI section: the honest note, then one button */
.sg-note { margin: 32px 0 20px; font-size: 13px; color: #6e6e73; }
.sg-note a { color: inherit; }
/* Four big lines (Evan picked H1, 2026-10-02): the line the Google example is on turns black and its explanation
   opens right under it; the rest wait in light grey. js/seo.js sets .is-on. */
.sg-sync { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
#included .sg-head { margin-top: 48px; }   /* Evan: heading and the lines sit a little lower */
.sg-sync li { margin: 0; padding: 0; }
.sg-t { display: block; font-size: clamp(28px, 2.65vw, 38px); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; color: #757577; transition: color .7s cubic-bezier(.65,0,.35,1); }
.sg-dw { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s cubic-bezier(.65,0,.35,1); }
.sg-d { display: block; overflow: hidden; max-width: 520px; font-size: 22px; line-height: 1.4; color: #222; opacity: 0; transform: translateY(-6px);
  transition: opacity .5s, transform .6s cubic-bezier(.65,0,.35,1), padding-top .7s cubic-bezier(.65,0,.35,1); }
.sg-sync li.is-on .sg-t { color: #000; }
.sg-sync li.is-on .sg-dw { grid-template-rows: 1fr; }
.sg-sync li.is-on .sg-d { opacity: 1; transform: none; padding-top: 12px; transition-delay: .2s; }
@media (max-width: 900px) { .sg-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 767px) { .sg-head { margin-bottom: 40px; } .sg-d { font-size: 19px; } .sg-sync { gap: 24px; } #included .sg-head { margin-top: 24px; } }
@media (prefers-reduced-motion: reduce) { .sg-t, .sg-dw, .sg-d { transition: none; } }
/* "Get found on Google": the example's top lines up with the heading (Evan, 2026-10-03). Desktop only;
   the heading moves into the left column and the example spans both rows. */
@media (min-width: 992px) {
  #included > .w-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); column-gap: 64px; align-items: start; }
  #included .sg-split { display: contents; }
  #included .sg-head { grid-column: 1; grid-row: 1; }
  #included .sg-left { grid-column: 1; grid-row: 2; }
  #included .seo-sticky { grid-column: 2; grid-row: 1 / span 2; margin-top: 64px; }   /* lines the example up with the top of the heading */
}


/* The list sits close under "Get found on Google." (Evan, 2026-10-03). The tall example spans both rows, so the first
   row is kept to the heading's height and the extra space goes below the list; the heading's bottom margin is tighter. */
@media (min-width: 992px) {
  #included > .w-container { grid-template-rows: auto 1fr; }
  #included .sg-head { margin-bottom: 44px; }
}
