/* Page-level layout glue. Semantic tokens only. */
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}.btn:hover,.card:hover,.card:focus-within{transform:none}}
img{max-width:100%;height:auto}
.site-header__logo{display:inline-flex;align-items:center;min-height:48px}
.site-header__logo img{width:auto}
.hero__actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}
.hero__art img{width:70%;height:auto}
.section-lede{color:var(--color-text-muted);max-width:52ch;margin:0 0 var(--space-6)}
.card h3{margin-bottom:var(--space-2)}
.site-footer nav a{display:inline-flex;align-items:center;min-height:48px}
.site-footer__inner{align-items:center}
.notfound{padding:var(--space-8) 0 var(--gap-section);text-align:center}
.notfound__art{width:160px;margin:0 auto var(--space-5);display:block}
.notfound__lede{margin-left:auto;margin-right:auto}
@media (max-width:760px){.site-footer__inner{align-items:flex-start}.hero{padding-top:var(--space-6)}}
body{min-height:100vh;display:flex;flex-direction:column} main{flex:1}
.skip-link:focus{min-height:48px;display:inline-flex;align-items:center}
.site-footer__copy{display:flex;flex-direction:column;gap:var(--space-2);max-width:48ch}
.site-footer__privacy{margin:0;color:var(--color-text-inverse-muted);font-size:var(--text-small);line-height:1.4}
.privacy,.legal{padding:var(--space-8) 0 var(--gap-section)}
.privacy__inner,.legal__inner{max-width:62ch}
.privacy h2,.legal h2{margin-top:var(--space-6)}
.privacy h3,.legal h3{margin-top:var(--space-5)}
.privacy p,.legal p{color:var(--color-text-muted)}
.privacy ul,.legal ul,.privacy ol,.legal ol{color:var(--color-text-muted);padding-left:1.25em;margin:0 0 var(--space-4)}
.privacy li,.legal li{margin:0 0 var(--space-2)}
.legal__meta,.privacy__meta{color:var(--color-text-muted);font-size:var(--text-small);margin:0 0 var(--space-5)}
.legal__meta code,.privacy__meta code{font-size:inherit}
.refund-form label{display:block;font:700 var(--text-small) var(--font-heading);margin:var(--space-4) 0 var(--space-2)}
.refund-form input{width:100%;min-height:48px;margin:0 0 var(--space-2);padding:0 var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg);color:var(--color-text);font:var(--text-body) var(--font-body)}
.refund-form .btn{margin-top:var(--space-4)}
.cta__actions{display:flex;flex-wrap:wrap;gap:var(--space-3);justify-content:center}
#consult.cta{margin-bottom:var(--space-7)}
.x-follow{display:flex;justify-content:center;margin:0 auto var(--space-7)}
.x-follow a{display:inline-flex;align-items:center;gap:var(--space-3);min-height:48px;color:var(--color-text);text-decoration:none;font:700 var(--text-body) var(--font-heading)}
.x-follow img{width:36px;height:36px;flex:none}
.x-follow a:hover,.x-follow a:focus-visible{color:var(--color-primary)}
.site-footer__end{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-3) var(--space-5);margin-left:auto}
.site-footer__x{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;flex:none}
.site-footer__x img{width:24px;height:24px;display:block;filter:brightness(0) invert(1)}
.site-footer__soon{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;color:var(--color-text-inverse-muted);font:inherit;cursor:not-allowed;min-height:48px;display:inline-flex;align-items:center;opacity:.75}

/* /install/add-bot landing (#125 page slice). Semantic tokens only. */
.add-bot{padding:var(--space-8) 0 var(--gap-section)}
.add-bot__inner{display:grid;grid-template-columns:1.2fr 1fr;gap:var(--space-7);align-items:start}
.add-bot__inner .hero__lede{max-width:40ch}
.add-bot__art{background:var(--color-surface-alt);border-radius:var(--radius-section);aspect-ratio:1;display:grid;place-items:center;max-width:320px;margin:0 auto}
.add-bot__art img{width:70%;height:auto}
.add-bot-steps{counter-reset:add-bot;list-style:none;margin:0 0 var(--space-6);padding:0}
.add-bot-steps > li{counter-increment:add-bot;position:relative;padding:0 0 var(--space-5) 3.5rem}
.add-bot-steps > li::before{content:counter(add-bot);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;background:var(--color-primary);color:var(--color-on-primary);font:800 var(--text-body) var(--font-heading);display:grid;place-items:center}
.add-bot-steps h2{font-size:var(--text-h3);margin-bottom:var(--space-2)}
.add-bot-steps p{margin:0;color:var(--color-text-muted)}
.add-bot__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
.add-bot__soon{margin:0;color:var(--color-text-muted);font:700 var(--text-body) var(--font-heading);max-width:36ch}
.add-bot [data-add-bot]:not([href]),
body[data-add-bot-url=""] .add-bot [data-add-bot]{display:none}
body:not([data-add-bot-url=""]) .add-bot [data-add-bot-soon]{display:none}
@media (max-width:760px){.add-bot__inner{grid-template-columns:1fr}.add-bot__art{order:-1;max-width:240px}}

/* PostHog in-app survey host (#166). Appearance also lives on the PostHog
   survey. --ph-survey-* inherits into the survey shadow tree (supported hook). */
[class*="PostHogSurvey"]{
  --ph-survey-font-family:var(--font-body)!important;
  --ph-survey-border-radius:var(--radius-md)!important;
  --ph-survey-background-color:var(--color-surface)!important;
  --ph-survey-border-color:var(--color-border)!important;
  --ph-survey-box-shadow:var(--shadow-card)!important;
  --ph-survey-text-primary-color:var(--color-text)!important;
  --ph-survey-text-subtle-color:var(--color-text-muted)!important;
  --ph-survey-submit-button-color:var(--color-primary)!important;
  --ph-survey-submit-button-text-color:var(--color-on-primary)!important;
  --ph-survey-input-background:var(--color-bg)!important;
  --ph-survey-input-text-color:var(--color-text)!important;
  --ph-survey-outline-color:var(--color-focus)!important;
  --ph-survey-box-padding:var(--space-5)!important;
}
