/* SEO Map (/seo-map/). Design system tokens from assets/ds/ds.css. Screenshots live in assets/root-static/seo-map. */
.pg-seomap { background: #fff; }
.sm { color: var(--gray-900, #101828); font-family: var(--font, "Lexend", system-ui, sans-serif); overflow-x: clip; }
.sm *, .sm *::before, .sm *::after { box-sizing: border-box; }
:where(.sm) :where(h1, h2, h3, p, dl, dd, ul, ol, figure) { margin: 0; padding: 0; }
:where(.sm) :where(ul, ol) { list-style: none; }
.sm-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sm-sec { padding: 88px 0; scroll-margin-top: 110px; }
.sm-final, .sm-video { scroll-margin-top: 110px; }
.sm-kicker { color: var(--brand-500, #465fff); font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.sm h2 { margin-top: 14px; max-width: 760px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.14; letter-spacing: -.02em; }
.sm h2 em { color: var(--brand-500, #465fff); font-style: normal; }
.sm-sub { margin-top: 14px; max-width: 660px; color: var(--gray-600, #475467); line-height: 1.65; }

.sm-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px; background: var(--brand-500, #465fff); color: #fff; font: 600 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .18s; }
.sm-btn:hover { background: var(--brand-600, #3641f5); color: #fff; }
.sm-btn-ghost { background: #fff; border-color: var(--gray-300, #d0d5dd); color: var(--gray-800, #1d2939); }
.sm-btn-ghost:hover { background: var(--gray-50, #f9fafb); color: var(--gray-900, #101828); }
.sm-btn-light { background: #fff; color: var(--brand-700, #2a31d8); }
.sm-btn-light:hover { background: var(--brand-50, #ecf3ff); color: var(--brand-700, #2a31d8); }
.sm-btn-line { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.sm-btn-line:hover { background: rgba(255, 255, 255, .1); }
.sm button:focus-visible, .sm a:focus-visible, .sm summary:focus-visible { outline: 3px solid var(--brand-300, #9cb9ff); outline-offset: 2px; }
.sm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Hero: copy on top, the app screens fan out underneath. */
.sm-hero { padding: 76px 0 72px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 520px, #fff 900px), url(../root-static/seo-map/hero-bg.webp) center top / max(100%, 1440px) auto no-repeat, #fff; text-align: center; }
.sm-hero-copy { max-width: 860px; }
.sm-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.sm-hero h1 span { color: var(--brand-500, #465fff); }
.sm-lede { max-width: 660px; margin: 20px auto 0; color: var(--gray-600, #475467); font-size: 1.08rem; line-height: 1.65; }

.sm-fan-wrap { margin-top: 40px; overflow: hidden; padding: 18px 0 8px; }
.sm-fan { position: relative; height: clamp(240px, 32vw, 450px); max-width: 1240px; margin: 0 auto 64px; }
.sm-card { --x: -50%; --y: 0px; --r: 0deg; position: absolute; left: 50%; bottom: 0; width: clamp(250px, 37vw, 540px); aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 1px solid var(--gray-200, #e4e7ec); border-radius: 14px; background: #fff; box-shadow: 0 22px 54px rgba(16, 24, 40, .16); cursor: zoom-in; transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)); transform-origin: 50% 100%; transition: transform .75s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.sm-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sm-fan.is-open .sm-card:nth-child(1) { --x: -118%; --y: 46px; --r: -11deg; z-index: 1; }
.sm-fan.is-open .sm-card:nth-child(2) { --x: -86%; --y: 12px; --r: -5.5deg; z-index: 2; }
.sm-fan.is-open .sm-card:nth-child(3) { --x: -50%; --y: 0px; --r: 0deg; z-index: 3; }
.sm-fan.is-open .sm-card:nth-child(4) { --x: -14%; --y: 12px; --r: 5.5deg; z-index: 2; }
.sm-fan.is-open .sm-card:nth-child(5) { --x: 18%; --y: 46px; --r: 11deg; z-index: 1; }
.sm-fan.is-open .sm-card:hover, .sm-fan.is-open .sm-card:focus-visible { --y: -14px; z-index: 5; box-shadow: 0 30px 70px rgba(16, 24, 40, .24); }
.sm-note { margin-top: 18px; color: var(--gray-500, #667085); font-size: 13px; }

.sm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.sm-stats > div { padding: 22px 24px; border: 1px solid var(--gray-200, #e4e7ec); border-radius: 16px; background: #fff; }
.sm-stats dt { color: var(--brand-500, #465fff); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.sm-stats dd { margin-top: 10px; color: var(--gray-600, #475467); font-size: 14px; line-height: 1.5; }

.sm-video { padding: 84px 0; background: var(--gray-900, #101828); color: #fff; text-align: center; }
.sm-video .sm-kicker { color: var(--brand-300, #9cb9ff); }
.sm-video h2 { margin-inline: auto; }
.sm-video h2 em { color: var(--brand-300, #9cb9ff); }
.sm-video .sm-sub { margin-inline: auto; color: var(--gray-400, #98a2b3); }
.sm-player { position: relative; display: block; width: 100%; max-width: 920px; aspect-ratio: 16 / 9; margin: 34px auto 0; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: #000; cursor: pointer; }
.sm-player img, .sm-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.sm-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--brand-500, #465fff); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); transition: transform .2s; }
.sm-player:hover .sm-play { transform: scale(1.07); }
.sm-play svg { width: 34px; height: 34px; fill: #fff; }

.sm-pain { background: var(--gray-50, #f9fafb); }
.sm-pain-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.sm-art { display: block; width: 100%; max-width: 460px; height: auto; margin-top: 26px; border-radius: 16px; mix-blend-mode: multiply; }
.sm-art-sm { max-width: 300px; }
.sm-pain-list { display: grid; gap: 12px; }
.sm-pain-list li { padding: 20px 22px; border: 1px solid var(--gray-200, #e4e7ec); border-radius: 14px; background: #fff; color: var(--gray-600, #475467); line-height: 1.6; }
.sm-pain-list b { display: block; margin-bottom: 4px; color: var(--gray-900, #101828); font-weight: 600; }

.sm-row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; margin-top: 72px; }
.sm-row-flip .sm-row-copy { order: 2; }
.sm-row h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.sm-row p { margin-top: 12px; color: var(--gray-600, #475467); line-height: 1.68; }
.sm-shot { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--gray-200, #e4e7ec); border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(16, 24, 40, .1); cursor: zoom-in; transition: transform .25s; }
.sm-shot:hover { transform: translateY(-3px); }
.sm-shot img { display: block; width: 100%; height: auto; }
.sm-stack { position: relative; padding-bottom: 72px; }
.sm-stack > .sm-shot:first-child { width: 86%; }
.sm-shot-over { position: absolute; right: 0; bottom: 0; width: 62%; box-shadow: 0 22px 52px rgba(16, 24, 40, .2); }
.sm-shot-tall { width: 34%; }

.sm-steps { background: var(--gray-50, #f9fafb); }
.sm-step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; counter-reset: s; }
.sm-step-list li { padding: 24px 22px; border: 1px solid var(--gray-200, #e4e7ec); border-radius: 16px; background: #fff; counter-increment: s; }
.sm-step-list li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; background: var(--brand-500, #465fff); color: #fff; font-size: 14px; font-weight: 600; }
.sm-step-list b { display: block; font-weight: 600; }
.sm-step-list span { display: block; margin-top: 8px; color: var(--gray-600, #475467); font-size: 14px; line-height: 1.6; }

.sm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.sm-col { padding: 28px; border: 1px solid var(--gray-200, #e4e7ec); border-radius: 18px; }
.sm-col h3 { font-size: 1.2rem; font-weight: 600; }
.sm-col ul { display: grid; gap: 14px; margin-top: 20px; }
.sm-col li { position: relative; padding-left: 28px; color: var(--gray-600, #475467); line-height: 1.5; }
.sm-col li::before { content: "×"; position: absolute; left: 0; top: -1px; color: var(--gray-400, #98a2b3); font-size: 19px; font-weight: 600; }
.sm-col-on { border-color: var(--brand-500, #465fff); background: var(--brand-50, #ecf3ff); }
.sm-col-on li { color: var(--gray-800, #1d2939); }
.sm-col-on li::before { content: "✓"; color: var(--brand-500, #465fff); font-size: 16px; }

.sm-faq { background: var(--gray-50, #f9fafb); }
.sm-faq-in { max-width: 820px; }
.sm-faq details { margin-top: 12px; padding: 0 22px; border: 1px solid var(--gray-200, #e4e7ec); border-radius: 12px;; background: #fff; }
.sm-faq h2 + details { margin-top: 30px; }
.sm-faq summary { padding: 18px 0; font-weight: 600; cursor: pointer; }
.sm-faq details p { padding-bottom: 18px; color: var(--gray-600, #475467); line-height: 1.65; }

.sm-final { padding: 84px 0; background: var(--brand-500, #465fff); color: #fff; text-align: center; }
.sm-final h2 { margin: 0 auto; }
.sm-final p { margin-top: 12px; color: rgba(255, 255, 255, .84); }
.sm-foot { padding: 26px 0; background: var(--gray-900, #101828); color: var(--gray-400, #98a2b3); font-size: 14px; }
.sm-foot .sm-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.sm-foot strong { color: #fff; font-weight: 600; }
.sm-foot a { color: inherit; }

.sm-box { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 28px; background: rgba(16, 24, 40, .84); }
.sm-box[hidden] { display: none; }
.sm-box img { max-width: min(1280px, 100%); max-height: 88vh; border-radius: 12px; background: #fff; }
.sm-box-x { position: absolute; right: 20px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--gray-900, #101828); font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 960px) {
  .sm-pain-grid, .sm-row { grid-template-columns: 1fr; gap: 28px; }
  .sm-row-flip .sm-row-copy { order: 0; }
  .sm-step-list { grid-template-columns: 1fr 1fr; }
  .sm-art-sm { display: none; }
}
@media (max-width: 680px) {
  .sm-sec, .sm-video, .sm-final { padding: 60px 0; }
  .sm-hero { padding: 48px 0 52px; background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 360px, #fff 640px), url(../root-static/seo-map/hero-bg.webp); background-size: auto, auto 680px; }
  .sm-fan-wrap { margin-top: 36px; }
  .sm-fan { height: 54vw; margin-bottom: 40px; }
  .sm-card { width: 62vw; }
  .sm-fan.is-open .sm-card:nth-child(1) { --x: -100%; --y: 30px; }
  .sm-fan.is-open .sm-card:nth-child(2) { --x: -78%; --y: 8px; }
  .sm-fan.is-open .sm-card:nth-child(4) { --x: -22%; --y: 8px; }
  .sm-fan.is-open .sm-card:nth-child(5) { --x: 0%; --y: 30px; }
  .sm-stats, .sm-compare, .sm-step-list { grid-template-columns: 1fr; }
  .sm-row { margin-top: 52px; }
  .sm-stack { padding-bottom: 44px; }
  .sm-actions .sm-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-card, .sm-shot, .sm-play { transition: none; }
}
