/*
 * Cloud panel layout (design spec §4.2, §8). Shared tokens/components come from
 * /static/design-system (synced from design-system/ — do not edit those copies).
 */
html, body { margin: 0; background: var(--sm-bg); }
[x-cloak] { display: none !important; }

.sm-skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; background: var(--sm-primary); color: #fff; padding: 8px 14px; border-radius: var(--sm-radius-md); text-decoration: none; }
.sm-skip-link:focus { top: 12px; color: #fff; }

.sm-mt-2 { margin-top: var(--sm-space-2); } .sm-mt-3 { margin-top: var(--sm-space-3); }
.sm-mt-4 { margin-top: var(--sm-space-4); } .sm-mt-5 { margin-top: var(--sm-space-5); }
.sm-mb-2 { margin-bottom: var(--sm-space-2); } .sm-py-2 { padding-top: var(--sm-space-2); padding-bottom: var(--sm-space-2); }
.sm-section { margin-top: var(--sm-grid-gap); }

/* ---------- Shell: top bar + horizontal navigation ---------- */
.sm-shell { min-height: 100vh; display: flex; flex-direction: column; }
.sm-topbar { position: sticky; top: 0; z-index: 30; background: var(--sm-bg); padding: var(--sm-space-3) var(--sm-content-padding) var(--sm-space-3); }
.sm-topbar__row { max-width: var(--sm-content-max); margin: 0 auto; display: flex; align-items: center; gap: var(--sm-space-3); }
.sm-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sm-text); margin-right: var(--sm-space-4); }
.sm-brand:hover { color: var(--sm-text); }
.sm-brand__mark { width: 36px; height: 36px; border-radius: var(--sm-radius-md); background: var(--sm-primary); color: #fff; display: grid; place-items: center; font-family: var(--sm-font-heading); font-weight: 700; font-size: 13px; letter-spacing: .02em; flex: none; }
.sm-brand__name { font-family: var(--sm-font-heading); font-weight: 700; font-size: 18px; }
.sm-header__context { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; padding-left: var(--sm-space-4); border-left: 1px solid var(--sm-border); }
.sm-header__context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sm-topnav { max-width: var(--sm-content-max); margin: var(--sm-space-3) auto 0; }

.sm-account { position: relative; }
.sm-account__button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 5px; border: 1px solid var(--sm-border); border-radius: var(--sm-radius-pill); background: var(--sm-surface); cursor: pointer; font: inherit; color: var(--sm-text); }
.sm-account__button:hover { background: var(--sm-surface-muted); }
.sm-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sm-ai-soft); color: var(--sm-accent-strong); display: grid; place-items: center; font-weight: 600; }
.sm-account__name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sm-account__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--sm-surface); border: 1px solid var(--sm-border); border-radius: var(--sm-radius-lg); box-shadow: var(--sm-shadow-popover); padding: var(--sm-space-3); z-index: 50; }
.sm-account__menu .sm-meta { margin: 0 0 var(--sm-space-2); padding: 0 var(--sm-space-3); }
.sm-account__links { list-style: none; margin: 0 0 var(--sm-space-2); padding: 0 0 var(--sm-space-2); border-bottom: 1px solid var(--sm-border); }
.sm-account__link { display: flex; align-items: center; gap: 10px; padding: 8px var(--sm-space-3); border-radius: var(--sm-radius-md); color: var(--sm-text); text-decoration: none; }
.sm-account__link:hover, .sm-account__link[aria-current="page"] { background: var(--sm-surface-muted); color: var(--sm-primary); }

.sm-content { width: 100%; max-width: var(--sm-content-max); padding: var(--sm-content-padding); margin: 0 auto; }
.sm-content:focus { outline: none; }
.sm-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sm-space-4); flex-wrap: wrap; margin-bottom: var(--sm-space-6); }
.sm-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sm-text-secondary); margin-bottom: var(--sm-space-3); }
.sm-breadcrumb a { color: var(--sm-text-secondary); text-decoration: none; }
.sm-breadcrumb a:hover { color: var(--sm-primary); text-decoration: underline; }
.sm-card__body--list { padding-top: 0; padding-bottom: 0; }
.sm-steps { margin: 0 0 var(--sm-space-4); padding-left: 20px; color: var(--sm-text-secondary); }
.sm-steps li { margin-bottom: var(--sm-space-2); }
.sm-input--code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.sm-confirm { max-width: 720px; }
.sm-confirm__url { font-size: 16px; word-break: break-all; }
.sm-danger-zone { border-color: #F3CFCF; }
.sm-btn--block { width: 100%; }

/* ---------- Auth ---------- */
.sm-auth { min-height: 100vh; display: grid; place-items: center; padding: var(--sm-space-6); }
.sm-auth__panel { width: min(440px, 100%); }
.sm-auth__brand { margin-bottom: var(--sm-space-6); }
.sm-auth__card { padding: var(--sm-space-8); }
.sm-auth__form { margin-top: var(--sm-space-6); }
.sm-auth__form .sm-field { max-width: none; }
.sm-auth__alt { margin: var(--sm-space-5) 0 0; text-align: center; }
.sm-auth__foot { text-align: center; margin-top: var(--sm-space-5); }

/* ---------- Responsive (design spec §8) ---------- */
@media (max-width: 1023px) {
  .sm-header__context { display: none; }
}
@media (max-width: 767px) {
  .sm-topbar { padding: var(--sm-space-3) var(--sm-space-4); }
  .sm-brand__name, .sm-account__name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sm-content { padding: var(--sm-space-4); }
}
.sm-app .sm-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Soft theme: cloud-only parts (top bar, account menu, sign-in) ---------- */
html:has(.sm-cloud) { background: #E9EDF3; }
.sm-cloud .sm-topbar { background: rgba(233, 237, 243, .92); backdrop-filter: blur(8px); }
.sm-cloud .sm-brand__mark { border-radius: 12px; background: linear-gradient(135deg, var(--sm-pink), var(--sm-purple) 55%, var(--sm-blue)); box-shadow: var(--sm-shadow-raised); }
.sm-cloud .sm-brand__name { color: var(--sm-text); }
.sm-cloud .sm-header__context { border-left-color: var(--sm-border); }
.sm-cloud .sm-account__button { border: 0; background: var(--sm-surface); box-shadow: var(--sm-shadow-raised); }
.sm-cloud .sm-account__button:hover { background: var(--sm-surface); box-shadow: var(--sm-shadow-card); }
.sm-cloud .sm-avatar { background: linear-gradient(135deg, var(--sm-orange), var(--sm-pink)); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(80, 20, 40, .45); }
.sm-cloud .sm-account__menu { border: 0; }
.sm-cloud .sm-account__link { color: var(--sm-text); }
.sm-cloud .sm-account__link[aria-current="page"], .sm-cloud .sm-account__link:hover { color: var(--sm-primary); }
.sm-cloud .sm-auth { background:
  radial-gradient(600px 400px at 12% 10%, rgba(232, 87, 138, .10), transparent 70%),
  radial-gradient(600px 400px at 88% 90%, rgba(62, 155, 226, .12), transparent 70%),
  var(--sm-bg); }
.sm-cloud .sm-auth__card { border-radius: 26px; }


/* ======================================================================= Public pages: sales, checkout */
.sm-public__row { max-width: 1200px; margin: 0 auto; padding: 0 var(--sm-content-padding); display: flex; align-items: center; gap: var(--sm-space-4); }
.sm-public__bar { position: sticky; top: 0; z-index: 30; padding: 14px 0; background: rgba(233, 237, 243, .9); backdrop-filter: blur(8px); }
.sm-public__nav { display: flex; gap: var(--sm-space-5); margin-left: var(--sm-space-6); }
.sm-public__nav a { color: var(--sm-text); text-decoration: none; font-weight: 500; }
.sm-public__nav a:hover { color: var(--sm-primary); text-decoration: underline; }
.sm-app .sm-btn--lg { height: 50px; padding: 0 24px; font-size: 15px; }
.sm-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--sm-purple-text); margin: 0 0 var(--sm-space-4); }
.sm-eyebrow--light { color: #E7E2FF; }
.sm-dots { width: 40px; height: 8px; flex: none; background:
  radial-gradient(circle at 4px 4px, var(--sm-pink) 3.5px, transparent 4px),
  radial-gradient(circle at 18px 4px, var(--sm-orange) 3.5px, transparent 4px),
  radial-gradient(circle at 32px 4px, var(--sm-teal) 3.5px, transparent 4px); }

.sm-hero { padding: 64px 0 72px; background:
  radial-gradient(700px 420px at 8% 0%, rgba(232, 87, 138, .13), transparent 70%),
  radial-gradient(700px 480px at 100% 40%, rgba(128, 100, 242, .14), transparent 70%); }
.sm-hero__grid { align-items: center; gap: 48px; }
.sm-hero__copy { flex: 1 1 480px; min-width: 0; }
.sm-hero__title { font-family: var(--sm-font-heading); font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.02em; font-weight: 500; margin: 0 0 var(--sm-space-5); color: var(--sm-text); }
.sm-hero__title strong { font-weight: 800; background: linear-gradient(135deg, #B8325C, #5B41C9 60%, #1F6AAE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sm-hero__lead { font-size: 19px; line-height: 1.6; color: var(--sm-text-secondary); margin: 0 0 var(--sm-space-6); max-width: 600px; }
.sm-hero__lead strong { color: var(--sm-text); }
.sm-hero__cta { display: flex; gap: var(--sm-space-3); flex-wrap: wrap; }
.sm-hero__cta--center { justify-content: center; }
.sm-hero__trust { list-style: none; padding: 0; margin: var(--sm-space-6) 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--sm-text); font-size: 14px; font-weight: 500; }
.sm-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.sm-hero__trust .sm-icon { color: var(--sm-teal-text); }
.sm-hero__shot { flex: 1 1 520px; margin: 0; min-width: 0; }
.sm-hero__shot img, .sm-feature-row__shot img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--sm-shadow-card); border: 6px solid var(--sm-surface); }

.sm-band { padding: 64px 0; background: var(--sm-surface); box-shadow: var(--sm-shadow-inset); }
.sm-band .sm-public__row { flex-direction: column; align-items: stretch; }
.sm-band__title, .sm-section-head__title, .sm-control h2, .sm-final h2 { font-family: var(--sm-font-heading); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.01em; font-weight: 500; margin: 0; color: var(--sm-text); text-align: center; }
.sm-section-head__title strong, .sm-band__title strong, .sm-final h2 strong { font-weight: 800; }
.sm-pain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sm-grid-gap); margin: var(--sm-space-8) 0; }
.sm-pain__item { background: var(--sm-bg); border-radius: 20px; padding: 24px; box-shadow: var(--sm-shadow-raised); }
.sm-pain__item p { margin: var(--sm-space-4) 0 0; color: var(--sm-text-secondary); line-height: 1.55; }
.sm-pain__item strong { color: var(--sm-text); display: block; margin-bottom: 4px; }
.sm-pain__icon, .sm-feature__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sm-surface); color: var(--tone-text); box-shadow: var(--sm-shadow-raised), inset 0 0 0 3px var(--tone); }
.sm-band__answer { text-align: center; font-size: 20px; font-weight: 600; color: var(--sm-text); margin: 0; }

.sm-section-public { padding: 80px 0; }
.sm-section-public > .sm-public__row { flex-direction: column; align-items: stretch; }
.sm-section-head { text-align: center; margin-bottom: 48px; display: flex; flex-direction: column; align-items: center; }
.sm-section-head__lead { color: var(--sm-text-secondary); font-size: 17px; margin: var(--sm-space-4) 0 0; max-width: 640px; }

.sm-feature-row { display: flex; gap: 56px; align-items: center; margin-bottom: 72px; }
.sm-feature-row--flip { flex-direction: row-reverse; }
.sm-feature-row__text { flex: 1 1 420px; min-width: 0; }
.sm-feature-row__shot { flex: 1 1 560px; margin: 0; min-width: 0; }
.sm-feature-row h3 { font-family: var(--sm-font-heading); font-size: 28px; line-height: 1.2; margin: var(--sm-space-4) 0; color: var(--sm-text); }
.sm-feature-row p { color: var(--sm-text-secondary); font-size: 16px; line-height: 1.65; }
.sm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sm-surface); box-shadow: var(--sm-shadow-raised); color: var(--tone-text); font-weight: 600; font-size: 13px; }
.sm-ticks { list-style: none; padding: 0; margin: var(--sm-space-4) 0; display: flex; flex-direction: column; gap: 10px; }
.sm-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--sm-text); line-height: 1.45; }
.sm-ticks .sm-icon { flex: none; margin-top: 2px; color: var(--sm-teal-text); }
.sm-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sm-grid-gap); }
.sm-feature { background: var(--sm-surface); border-radius: 20px; padding: 26px; box-shadow: var(--sm-shadow-card); }
.sm-feature h3 { font-family: var(--sm-font-heading); font-size: 19px; margin: var(--sm-space-4) 0 var(--sm-space-2); color: var(--sm-text); }
.sm-feature p { margin: 0; color: var(--sm-text-secondary); line-height: 1.6; }

.sm-control { padding: 80px 0; background: linear-gradient(135deg, #243B80, #4A36B8 60%, #6B3FA8); color: #fff; }
.sm-control__grid { align-items: flex-start; gap: 56px; }
.sm-control__grid > div { flex: 1 1 380px; }
.sm-control h2 { color: #fff; text-align: left; }
.sm-control p { color: #E9E6FF; font-size: 17px; line-height: 1.6; }
.sm-control__list { flex: 1 1 520px; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sm-control__list li { display: flex; gap: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; padding: 20px; }
.sm-control__list .sm-icon { flex: none; color: #FFD6E4; }
.sm-control__list strong { display: block; color: #fff; margin-bottom: 4px; }
.sm-control__list span { color: #E9E6FF; font-size: 14px; line-height: 1.5; }

.sm-steps-public { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sm-grid-gap); }
.sm-steps-public li { background: var(--sm-surface); border-radius: 20px; padding: 28px; box-shadow: var(--sm-shadow-card); }
.sm-steps-public__n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sm-font-heading); font-weight: 800; font-size: 20px; color: var(--tone-text); background: var(--sm-surface); box-shadow: var(--sm-shadow-raised), inset 0 0 0 3px var(--tone); }
.sm-steps-public h3 { font-family: var(--sm-font-heading); margin: var(--sm-space-4) 0 var(--sm-space-2); font-size: 20px; color: var(--sm-text); }
.sm-steps-public p { margin: 0; color: var(--sm-text-secondary); line-height: 1.6; }

.sm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sm-grid-gap); align-items: stretch; }
.sm-plan { position: relative; background: var(--sm-surface); border-radius: 24px; padding: 32px 28px; box-shadow: var(--sm-shadow-card); display: flex; flex-direction: column; border-top: 5px solid var(--tone); }
.sm-plan--featured { transform: translateY(-10px); box-shadow: 14px 14px 34px rgba(91, 65, 201, .25), -8px -8px 20px var(--sm-neu-light); }
.sm-plan__badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 16px; border-radius: 999px; background: linear-gradient(135deg, #B8325C, #5B41C9); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.sm-plan__name { font-family: var(--sm-font-heading); font-size: 20px; margin: 0; color: var(--sm-text); }
.sm-plan__price { margin: var(--sm-space-4) 0 var(--sm-space-1); color: var(--sm-text-secondary); font-weight: 500; }
.sm-plan__price span { font-family: var(--sm-font-heading); font-size: 46px; font-weight: 800; color: var(--tone-text); letter-spacing: -.02em; }
.sm-plan__sub { margin: 0 0 var(--sm-space-2); color: var(--sm-text-secondary); }
.sm-plan .sm-ticks { flex: 1; }
.sm-stepper { display: flex; align-items: center; gap: 12px; margin: var(--sm-space-3) 0; }
.sm-stepper__value { min-width: 40px; text-align: center; font-family: var(--sm-font-heading); font-size: 24px; font-weight: 800; color: var(--sm-text); }
.sm-stepper__label { color: var(--sm-text-secondary); }
.sm-pricing__note { text-align: center; margin-top: var(--sm-space-8); }

.sm-faq { max-width: 860px !important; }
.sm-faq details { background: var(--sm-surface); border-radius: 16px; box-shadow: var(--sm-shadow-raised); margin-bottom: 14px; padding: 4px 22px; }
.sm-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; color: var(--sm-text); }
.sm-faq details p { margin: 0 0 18px; color: var(--sm-text-secondary); line-height: 1.65; }

.sm-final { padding: 80px 0; text-align: center; background:
  radial-gradient(600px 300px at 20% 100%, rgba(43, 191, 164, .14), transparent 70%),
  radial-gradient(600px 300px at 80% 0%, rgba(244, 167, 59, .16), transparent 70%); }
.sm-final .sm-public__row { flex-direction: column; }
.sm-final p { font-size: 18px; color: var(--sm-text-secondary); margin: var(--sm-space-4) 0 var(--sm-space-6); }

.sm-checkout { align-items: flex-start !important; flex-direction: row !important; gap: 40px; }
.sm-checkout--narrow { max-width: 640px !important; }
.sm-checkout__card { flex: 1 1 520px; padding: 36px; border-radius: 26px; }
.sm-checkout__aside { flex: 0 1 320px; padding-top: 24px; }
.sm-summary { background: var(--sm-bg); border-radius: 16px; box-shadow: var(--sm-shadow-inset); padding: 16px 20px; margin: 0 0 var(--sm-space-5); }
.sm-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sm-summary span { color: var(--sm-text-secondary); }
.sm-summary__total strong { font-family: var(--sm-font-heading); font-size: 24px; }
.sm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1023px) {
  .sm-public__nav { display: none; }
  .sm-pain, .sm-feature-grid, .sm-plans, .sm-steps-public { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-feature-row, .sm-feature-row--flip, .sm-hero__grid, .sm-control__grid, .sm-checkout { flex-direction: column !important; }
  .sm-plan--featured { transform: none; }
}
@media (max-width: 767px) {
  .sm-public__row { padding: 0 var(--sm-space-4); }
  .sm-public__bar .sm-btn--soft { display: none; }
  .sm-pain, .sm-feature-grid, .sm-plans, .sm-steps-public, .sm-control__list { grid-template-columns: minmax(0, 1fr); }
  .sm-hero { padding-top: 32px; }
}

/* Billing: download card changelog */
.sm-cloud .sm-changelog { margin-top: var(--sm-space-3); }
.sm-cloud .sm-changelog summary { cursor: pointer; font-weight: 500; color: var(--sm-primary); }
.sm-cloud .sm-changelog ul { margin: var(--sm-space-2) 0 0; padding-left: 1.25rem; }
.sm-cloud .sm-changelog li { margin: var(--sm-space-1) 0; }

/* =====================================================================
   Sales page — motion, the animated flow, proof band, footer.
   Resting styles are the FINAL state; animations only run when the
   visitor has not asked for reduced motion (and, for scroll reveal and
   the flow player, when sales.js has enabled them). CSP: no inline styles.
   ===================================================================== */

/* ---------- Hero: blobs, rise-in, floating shot, live toasts ---------- */
.sm-hero { position: relative; overflow: hidden; isolation: isolate; }
.sm-hero__blob { position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.sm-hero__blob--a { top: -140px; left: -80px; background: rgba(232, 87, 138, .35); }
.sm-hero__blob--b { top: 120px; right: -120px; background: rgba(128, 100, 242, .38); }
.sm-hero__blob--c { bottom: -200px; left: 38%; background: rgba(43, 191, 164, .28); }
.sm-hero__shot { position: relative; }
.sm-hero__float { position: relative; }
.sm-hints { position: absolute; inset: 0; pointer-events: none; }
.sm-hint { position: absolute; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px 10px 10px; max-width: 270px;
  background: rgba(255, 255, 255, .96); border-radius: 16px; box-shadow: 10px 12px 30px rgba(60, 72, 120, .22), -4px -4px 12px rgba(255, 255, 255, .8);
  font-size: 12.5px; line-height: 1.35; color: var(--sm-text-secondary); opacity: 0; }
.sm-hint strong { display: block; color: var(--sm-text); font-size: 13.5px; }
.sm-hint__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--tone-text); background: var(--sm-surface); box-shadow: inset 0 0 0 2.5px var(--tone); }
.sm-hint--1 { top: 6%; left: -7%; }
.sm-hint--2 { top: 34%; right: -6%; }
.sm-hint--3 { bottom: 16%; left: -5%; }
.sm-hint--4 { bottom: -5%; right: 6%; }
/* Static (reduced motion): two toasts shown, no movement. */
.sm-hint--1, .sm-hint--2 { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .sm-hero__blob--a { animation: sm-drift-a 18s ease-in-out infinite alternate; }
  .sm-hero__blob--b { animation: sm-drift-b 22s ease-in-out infinite alternate; }
  .sm-hero__blob--c { animation: sm-drift-a 26s ease-in-out infinite alternate-reverse; }
  .sm-rise { animation: sm-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .sm-rise--2 { animation-delay: .08s; } .sm-rise--3 { animation-delay: .18s; } .sm-rise--4 { animation-delay: .28s; } .sm-rise--5 { animation-delay: .38s; }
  .sm-hero__float { animation: sm-float 7s ease-in-out 1s infinite; }
  .sm-hint { opacity: 0; animation: sm-hint 12s ease-in-out infinite both; }
  .sm-hint--1 { animation-delay: 1.2s; } .sm-hint--2 { animation-delay: 4.2s; } .sm-hint--3 { animation-delay: 7.2s; } .sm-hint--4 { animation-delay: 10.2s; }
  .sm-hero__title strong { background-size: 220% 100%; animation: sm-sheen 8s ease-in-out infinite alternate; }
  .sm-btn--shine { position: relative; overflow: hidden; }
  .sm-btn--shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sm-shine 4.5s ease-in-out 2s infinite; }
}
@keyframes sm-drift-a { to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes sm-drift-b { to { transform: translate(-90px, 70px) scale(.9); } }
@keyframes sm-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes sm-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-.4deg); } }
@keyframes sm-hint { 0% { opacity: 0; transform: translateY(14px) scale(.94); } 4%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes sm-sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes sm-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

/* ---------- "Works with" ticker ---------- */
.sm-ticker { overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(150, 165, 190, .25); background: rgba(255, 255, 255, .4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sm-ticker__track { display: flex; width: max-content; }
.sm-ticker__list { list-style: none; margin: 0; padding: 0 20px 0 0; display: flex; gap: 40px; }
.sm-ticker__list li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; color: var(--sm-text-secondary); }
.sm-ticker__list .sm-icon { color: var(--sm-purple-text); }
@media (prefers-reduced-motion: no-preference) {
  .sm-ticker__track { animation: sm-marquee 45s linear infinite; }
  .sm-ticker:hover .sm-ticker__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-ticker { -webkit-mask-image: none; mask-image: none; }
  .sm-ticker__track { width: auto; justify-content: center; }
  .sm-ticker__list { flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 0 16px; }
  .sm-ticker__list[aria-hidden="true"] { display: none; }
}
@keyframes sm-marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll reveal (enabled by sales.js: html.sm-motion) ---------- */
.sm-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.sm-motion [data-reveal="tilt"] { transform: perspective(1200px) rotateY(-14deg) translateX(40px); }
.sm-motion [data-reveal="tilt-flip"] { transform: perspective(1200px) rotateY(14deg) translateX(-40px); }
.sm-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Gentle hover lift on cards */
.sm-feature, .sm-pain__item, .sm-steps-public li, .sm-plan, .sm-control__list li { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.sm-feature-row__shot img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sm-feature:hover, .sm-pain__item:hover, .sm-steps-public li:hover, .sm-plan:not(.sm-plan--featured):hover, .sm-control__list li:hover { transform: translateY(-6px); }
  .sm-feature-row__shot img:hover { transform: scale(1.02); }
}

/* ---------- The complete flow ---------- */
.sm-flow-section { background: linear-gradient(180deg, transparent, rgba(128, 100, 242, .06) 30%, rgba(232, 87, 138, .05) 80%, transparent); }
.sm-flow { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.sm-flow__rail { display: flex; flex-direction: column; gap: 14px; }
.sm-flow__steps { display: flex; flex-direction: column; gap: 10px; }
.sm-flow__step { position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px 18px; border: 0; border-radius: 18px;
  background: transparent; color: var(--sm-text); font: inherit; cursor: pointer; overflow: hidden; transition: background .3s ease, box-shadow .3s ease, transform .3s ease; }
.sm-flow__step:hover { background: rgba(255, 255, 255, .55); }
.sm-flow__step:focus-visible { outline: none; box-shadow: var(--sm-focus-ring); }
.sm-flow__step[aria-selected="true"] { background: var(--sm-surface); box-shadow: var(--sm-shadow-card); }
.sm-flow__num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--tone-text); background: var(--sm-surface);
  box-shadow: var(--sm-shadow-raised), inset 0 0 0 2.5px var(--tone); transition: transform .3s ease; }
.sm-flow__step[aria-selected="true"] .sm-flow__num { transform: scale(1.08); background: var(--tone); color: #fff; box-shadow: 0 6px 16px rgba(60, 72, 120, .25); }
.sm-flow__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-flow__label strong { font-family: var(--sm-font-heading); font-size: 16px; }
.sm-flow__who { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sm-flow__who--you { color: var(--sm-pink-text); }
.sm-flow__who--ai { color: var(--sm-purple-text); }
.sm-flow__who--sm { color: var(--sm-teal-text); }
.sm-flow__text { font-size: 13.5px; line-height: 1.45; color: var(--sm-text-secondary); }
.sm-flow__bar { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(150, 165, 190, .25); overflow: hidden; display: none; }
.sm-flow__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--tone), var(--sm-purple)); transform-origin: left; transform: scaleX(0); }
.sm-flow--js .sm-flow__step[aria-selected="true"] .sm-flow__bar { display: block; }
.sm-flow__toggle { align-self: flex-start; display: none !important; }
.sm-flow--js .sm-flow__toggle { display: inline-flex !important; }
.sm-flow__toggle-play { display: none; }
.sm-flow.is-paused .sm-flow__toggle-play { display: inline-flex; align-items: center; gap: 6px; }
.sm-flow.is-paused .sm-flow__toggle-pause { display: none; }
.sm-flow__toggle-pause { display: inline-flex; align-items: center; gap: 6px; }

.sm-flow__window { border-radius: 22px; background: var(--sm-surface); box-shadow: 18px 22px 50px rgba(60, 72, 120, .22), -10px -10px 26px rgba(255, 255, 255, .9); overflow: hidden; }
.sm-flow__chrome { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--sm-bg); border-bottom: 1px solid rgba(150, 165, 190, .25); }
.sm-flow__lights { display: inline-flex; gap: 6px; }
.sm-flow__lights i { width: 11px; height: 11px; border-radius: 50%; background: #F27B8E; }
.sm-flow__lights i + i { background: #F4B862; } .sm-flow__lights i + i + i { background: #4CC6A6; }
.sm-flow__url { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--sm-surface); box-shadow: var(--sm-shadow-inset); font-size: 12px; color: var(--sm-text-secondary); }
.sm-flow__stage { position: relative; }

/* Without JS: every scene stacked, in its final state. With JS: one at a time. */
.sm-scene { padding: 26px 28px 30px; }
.sm-scene + .sm-scene { border-top: 1px solid var(--sm-border); }
.sm-flow--js .sm-flow__stage { height: 460px; }
.sm-flow--js .sm-scene { position: absolute; inset: 0; border: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.sm-flow--js .sm-scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.sm-scene__title { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-family: var(--sm-font-heading); font-weight: 700; font-size: 17px; color: var(--sm-text); }
.sm-scene__title span { font-family: var(--sm-font-body); font-weight: 400; font-size: 13px; color: var(--sm-text-secondary); }
.sm-scene__title .sm-icon { color: var(--sm-purple-text); }
.sm-scene__note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13px; color: var(--sm-text-secondary); }
.sm-scene__note .sm-icon { color: var(--sm-teal-text); flex: none; }

/* Mock UI parts */
.sm-mock-field { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 12px; }
.sm-mock-label { font-size: 13px; font-weight: 600; color: var(--sm-text-secondary); }
.sm-mock-input { min-height: 42px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--sm-bg); box-shadow: var(--sm-shadow-inset); font-size: 14px; color: var(--sm-text); }
.sm-caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; background: var(--sm-purple); opacity: 0; }
.sm-mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-mock-chip { padding: 6px 12px; border-radius: 999px; background: var(--sm-ai-soft); color: var(--sm-purple-text); font-size: 12.5px; font-weight: 600; }
.sm-mock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.sm-mock-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14px; background: var(--sm-surface); color: var(--sm-text); box-shadow: var(--sm-shadow-raised); }
.sm-mock-btn--ai { background: linear-gradient(135deg, #5A48D6, #8064F2); color: #fff; }
.sm-mock-btn--primary { background: linear-gradient(135deg, #2E5BBA, #5A48D6); color: #fff; }
.sm-mock-btn--ghost { box-shadow: none; background: transparent; color: var(--sm-text-secondary); }
.sm-mock-progress { flex: 1 1 140px; height: 8px; border-radius: 8px; background: var(--sm-bg); box-shadow: var(--sm-shadow-inset); overflow: hidden; }
.sm-mock-progress span { display: block; height: 100%; width: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--sm-purple), var(--sm-pink)); transform-origin: left; }
.sm-mock-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sm-text-secondary); }
.sm-mock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sm-surface-muted); color: var(--sm-text-secondary); white-space: nowrap; }
.sm-mock-badge--ai { background: var(--sm-ai-soft); color: var(--sm-purple-text); }
.sm-mock-badge--pending { background: #FBF0DC; color: #8A5A12; }
.sm-mock-badge--ok { background: #E3F4EE; color: #0B6B5F; }
.sm-mock-badge--sched { background: #E4EEFA; color: #1F5FA6; }
.sm-mock-badge--live { background: linear-gradient(135deg, #2E5BBA, #5A48D6); color: #fff; }
.sm-mock-badge--q { background: #E4EEFA; color: #1F5FA6; }

.sm-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
.sm-doc { position: relative; padding: 18px; border-radius: 16px; background: var(--sm-bg); box-shadow: var(--sm-shadow-inset); }
.sm-doc__h { margin: 0 0 12px; padding-right: 110px; font-family: var(--sm-font-heading); font-weight: 800; font-size: 17px; color: var(--sm-text); }
.sm-doc__h2 { margin: 14px 0 10px; font-weight: 700; font-size: 14px; color: var(--sm-text); }
.sm-doc__line { display: block; height: 9px; margin-bottom: 9px; border-radius: 6px; background: rgba(150, 165, 190, .35); transform-origin: left; }
.sm-doc__line--short { width: 55%; } .sm-doc__line--mid { width: 78%; }
.sm-doc .sm-mock-badge { position: absolute; top: 14px; right: 14px; }
.sm-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sm-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sm-surface); box-shadow: var(--sm-shadow-raised); font-size: 13.5px; color: var(--sm-text); }
.sm-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E3F4EE; color: #0B6B5F; }
.sm-tick .sm-icon { width: 14px; height: 14px; }
.sm-checks__warn .sm-tick { background: #FBF0DC; color: #8A5A12; }

.sm-approval { position: relative; padding: 20px 22px; border-radius: 18px; background: var(--sm-surface); box-shadow: var(--sm-shadow-card); }
.sm-approval__badges { position: relative; height: 28px; }
.sm-approval__badges .sm-mock-badge { position: absolute; left: 0; top: 0; }
.sm-swap-out { opacity: 0; }
.sm-approval__title { margin: 10px 0 14px; font-family: var(--sm-font-heading); font-weight: 800; font-size: 19px; color: var(--sm-primary); text-decoration: underline; text-underline-offset: 3px; }
.sm-approval__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.sm-approval__meta dt { font-size: 12px; color: var(--sm-text-secondary); }
.sm-approval__meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--sm-text); }
.sm-approval__actions { display: flex; justify-content: flex-end; gap: 10px; }
.sm-pointer { position: absolute; right: 52px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(232, 87, 138, .35); box-shadow: 0 0 0 3px rgba(232, 87, 138, .6); opacity: 0; pointer-events: none; }

.sm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sm-week__day { min-height: 150px; padding: 10px 8px; border-radius: 14px; background: var(--sm-bg); box-shadow: var(--sm-shadow-inset); display: flex; flex-direction: column; gap: 8px; }
.sm-week__day--target { background: #EEF1FF; }
.sm-week__d { font-size: 12px; color: var(--sm-text-secondary); font-weight: 600; }
.sm-week__d b { display: block; font-family: var(--sm-font-heading); font-size: 18px; color: var(--sm-text); }
.sm-week__chip { padding: 6px 7px; border-radius: 8px; border-left: 3px solid #4C8DDB; background: #E4EEFA; font-size: 11px; line-height: 1.3; color: #1F5FA6; font-weight: 600; }
.sm-week__chip--done { border-color: #2BB59B; background: #E3F4EE; color: #0B6B5F; }
.sm-week__chip--new { border-color: #8064F2; background: #fff; color: var(--sm-purple-text); box-shadow: 0 6px 16px rgba(91, 65, 201, .25); }
.sm-pubrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.sm-arrow { display: inline-grid; color: var(--sm-text-secondary); }

.sm-chat { display: flex; flex-direction: column; gap: 12px; }
.sm-bubble { max-width: 78%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5; color: var(--sm-text); }
.sm-bubble__who { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--sm-text-secondary); }
.sm-bubble--in { align-self: flex-start; background: var(--sm-bg); box-shadow: var(--sm-shadow-inset); border-bottom-left-radius: 6px; }
.sm-bubble--out { align-self: flex-end; background: #EEF1FF; border: 1.5px dashed #8064F2; border-bottom-right-radius: 6px; }
.sm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-chat__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; }

.sm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sm-kpi { padding: 14px; border-radius: 16px; background: var(--sm-surface); box-shadow: var(--sm-shadow-raised); border-top: 4px solid var(--tone); }
.sm-kpi b { display: block; font-family: var(--sm-font-heading); font-size: 28px; font-weight: 800; color: var(--tone-text); font-variant-numeric: tabular-nums; }
.sm-kpi span { font-size: 12.5px; color: var(--sm-text-secondary); }
.sm-kpi em { font-style: normal; font-weight: 700; color: var(--sm-teal-text); }
.sm-bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; margin-top: 20px; padding: 14px 16px 0; border-radius: 16px; background: var(--sm-bg); box-shadow: var(--sm-shadow-inset); }
.sm-bar { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #8064F2, #5A8BE0); transform-origin: bottom; }
.sm-bar--1 { height: 42%; } .sm-bar--2 { height: 58%; } .sm-bar--3 { height: 50%; } .sm-bar--4 { height: 71%; } .sm-bar--5 { height: 64%; } .sm-bar--6 { height: 86%; }
.sm-bar--7 { height: 95%; background: linear-gradient(180deg, #E8578A, #8064F2); }

/* Scene choreography — only for the active scene, only with motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .sm-flow--anim .is-active .sm-anim { animation: sm-pop .55s cubic-bezier(.2, .8, .2, 1.2) both; }
  .sm-flow--anim .is-active .sm-anim--1 { animation-delay: .15s; } .sm-flow--anim .is-active .sm-anim--2 { animation-delay: .7s; }
  .sm-flow--anim .is-active .sm-anim--3 { animation-delay: 1.25s; } .sm-flow--anim .is-active .sm-anim--4 { animation-delay: 1.8s; }
  .sm-flow--anim .is-active .sm-anim--5 { animation-delay: 2.5s; } .sm-flow--anim .is-active .sm-anim--6 { animation-delay: 3.2s; }
  .sm-flow--anim .is-active .sm-caret { animation: sm-blink .8s steps(1) 6; }
  .sm-flow--anim .is-active .sm-press { animation: sm-press .5s ease 2.6s both; }
  .sm-flow--anim .is-active .sm-press--late { animation-delay: 3.1s; }
  .sm-flow--anim .is-active .sm-mock-progress span { animation: sm-fill 2.2s cubic-bezier(.4, 0, .2, 1) 3s both; }
  .sm-flow--anim .is-active .sm-grow { animation: sm-grow .7s ease both; }
  .sm-flow--anim .is-active .sm-grow--1 { animation-delay: .4s; } .sm-flow--anim .is-active .sm-grow--2 { animation-delay: .6s; }
  .sm-flow--anim .is-active .sm-grow--3 { animation-delay: .8s; } .sm-flow--anim .is-active .sm-grow--4 { animation-delay: 1.5s; }
  .sm-flow--anim .is-active .sm-grow--5 { animation-delay: 1.7s; }
  .sm-flow--anim .is-active .sm-swap-out { animation: sm-out .35s ease 3.4s both; }
  .sm-flow--anim .is-active .sm-swap-in { animation: sm-in .4s cubic-bezier(.2, .8, .2, 1.3) 3.5s both; }
  .sm-flow--anim .is-active .sm-pointer { animation: sm-pointer 2.4s cubic-bezier(.5, 0, .2, 1) 1s both; }
  .sm-flow--anim .is-active .sm-drop { animation: sm-drop .9s cubic-bezier(.3, 1.4, .5, 1) .6s both; }
  .sm-flow--anim .is-active .sm-bar { animation: sm-bar .8s cubic-bezier(.2, .8, .2, 1) both; }
  .sm-flow--anim .is-active .sm-bar--1 { animation-delay: 1.2s; } .sm-flow--anim .is-active .sm-bar--2 { animation-delay: 1.3s; }
  .sm-flow--anim .is-active .sm-bar--3 { animation-delay: 1.4s; } .sm-flow--anim .is-active .sm-bar--4 { animation-delay: 1.5s; }
  .sm-flow--anim .is-active .sm-bar--5 { animation-delay: 1.6s; } .sm-flow--anim .is-active .sm-bar--6 { animation-delay: 1.7s; }
  .sm-flow--anim .is-active .sm-bar--7 { animation-delay: 1.8s; }
  .sm-flow.is-paused .sm-scene *, .sm-flow.is-paused .sm-scene { animation-play-state: paused !important; }
}
.sm-flow:not(.sm-flow--anim) .sm-pointer { display: none; }
.sm-flow--anim .sm-swap-out { opacity: 1; }
@keyframes sm-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes sm-blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes sm-press { 0%, 100% { transform: none; } 40% { transform: scale(.92); box-shadow: 0 0 0 8px rgba(128, 100, 242, .25); } }
@keyframes sm-fill { from { transform: scaleX(0); } }
@keyframes sm-grow { from { transform: scaleX(0); } }
@keyframes sm-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes sm-in { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@keyframes sm-pointer { 0% { opacity: 0; transform: translate(-260px, 90px); } 15% { opacity: 1; } 85% { opacity: 1; transform: none; } 92% { transform: scale(.7); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes sm-drop { from { opacity: 0; transform: translateY(-120px) rotate(-6deg); } }
@keyframes sm-bar { from { transform: scaleY(0); } }

/* ---------- Proof numbers ---------- */
.sm-proof { padding: 56px 0; }
.sm-proof__grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sm-grid-gap); }
.sm-proof__item { padding: 24px; border-radius: 20px; background: var(--sm-surface); box-shadow: var(--sm-shadow-card); text-align: center; }
.sm-proof__item b { display: block; font-family: var(--sm-font-heading); font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px;
  background: linear-gradient(135deg, #B8325C, #5B41C9 60%, #1F6AAE); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.sm-proof__item > span { color: var(--sm-text-secondary); line-height: 1.5; font-size: 14.5px; }

/* ---------- Footer ---------- */
.sm-foot { margin-top: 0; background: #111A2E; color: #C5CDE0; }
.sm-foot__cta { padding: 36px 0; background: linear-gradient(120deg, #243B80, #4A36B8 55%, #8A3F9E); }
.sm-foot__cta .sm-public__row { flex-wrap: wrap; }
.sm-foot__cta-title { margin: 0; font-family: var(--sm-font-heading); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: #fff; }
.sm-foot__cta-text { margin: 6px 0 0; color: #E4E0FF; }
.sm-theme-soft .sm-foot__cta .sm-btn--primary { background: #fff; color: #2B2F7A; box-shadow: 0 8px 22px rgba(10, 14, 40, .3); }
.sm-theme-soft .sm-foot__cta .sm-btn--primary:hover { background: #F1EEFF; }
.sm-app .sm-btn--foot { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; }
.sm-app .sm-btn--foot:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sm-foot__grid { display: grid !important; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 36px; align-items: start !important; padding-top: 56px !important; padding-bottom: 44px !important; }
.sm-foot__brand p { margin: 16px 0 18px; line-height: 1.65; font-size: 14px; }
.sm-foot__logo .sm-brand__name { color: #fff; }
.sm-foot__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-foot__badges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 600; color: #E6EBF7; }
.sm-foot__badges .sm-icon { color: #9FE3D2; width: 15px; height: 15px; }
.sm-foot__col h2 { margin: 4px 0 16px; font-family: var(--sm-font-heading); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sm-foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sm-foot__col a { color: #DCE3F5; text-decoration: none; font-size: 14px; }
.sm-foot__col a:hover, .sm-foot__col a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sm-foot__plain li { font-size: 14px; line-height: 1.45; }
.sm-foot__promises li { display: flex; gap: 8px; align-items: flex-start; }
.sm-foot__promises .sm-icon { flex: none; margin-top: 2px; color: #9FE3D2; width: 15px; height: 15px; }
.sm-foot__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; }
.sm-foot__bottom .sm-public__row { flex-wrap: wrap; gap: 8px 20px; }
.sm-foot__bottom p { margin: 0; }
.sm-foot .sm-foot__top { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.sm-foot .sm-foot__top:hover { color: #fff; text-decoration: underline; }
.sm-foot__up { transform: rotate(180deg); width: 15px; height: 15px; }
.sm-foot a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .sm-flow { grid-template-columns: minmax(0, 1fr); }
  .sm-flow__steps { flex-direction: row; overflow-x: auto; gap: 8px; padding: 4px 4px 10px; scroll-snap-type: x mandatory; }
  .sm-flow__step { flex: 0 0 210px; scroll-snap-align: start; }
  .sm-flow__text { display: none; }
  .sm-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-foot__brand { grid-column: 1 / -1; }
  .sm-hint { display: none; }
}
@media (max-width: 767px) {
  .sm-flow--js .sm-flow__stage { height: 520px; }
  .sm-scene { padding: 20px 16px 22px; }
  .sm-split, .sm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-split { grid-template-columns: minmax(0, 1fr); }
  .sm-split .sm-checks li:nth-child(n+4) { display: none; }
  .sm-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm-week__day:nth-child(n+5) { display: none; }
  .sm-week__day { min-height: 110px; }
  .sm-approval__meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sm-approval__meta div:last-child { display: none; }
  .sm-mock-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sm-bars { height: 80px; }
  .sm-bubble { max-width: 92%; }
  .sm-flow__url { display: none; }
  .sm-proof__item b { font-size: 40px; }
  .sm-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sm-foot__cta .sm-spacer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-flow--js .sm-scene, .sm-flow--js .sm-scene.is-active { transition: none; transform: none; }
  .sm-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Flow polish: only the active step shows its description (keeps the rail as tall as the window). */
.sm-flow--js .sm-flow__step:not([aria-selected="true"]) .sm-flow__text { display: none; }
.sm-flow--js .sm-flow__step { padding-top: 12px; padding-bottom: 16px; }
.sm-outline { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--sm-bg); box-shadow: var(--sm-shadow-inset); }
.sm-outline ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--sm-text); }
.sm-scene__note + .sm-scene__note { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .sm-flow--anim .is-active .sm-anim--7 { animation-delay: 5.1s; }
}
@media (max-width: 767px) { .sm-outline ol li:nth-child(3) { display: none; } }
.sm-public { overflow-x: clip; }
@media (max-width: 1023px) {
  .sm-motion [data-reveal="tilt"], .sm-motion [data-reveal="tilt-flip"] { transform: translateY(28px); }
}
.sm-flow__toggle[hidden] { display: none !important; }

/* ---------- Legal pages (/terms, /privacy, /refund-policy) ---------- */
.sm-legal-hero { padding: 56px 0 36px; background:
  radial-gradient(600px 300px at 10% 0%, rgba(232, 87, 138, .10), transparent 70%),
  radial-gradient(600px 320px at 90% 20%, rgba(128, 100, 242, .12), transparent 70%); }
.sm-legal-hero__title { font-family: var(--sm-font-heading); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 0 0 10px; color: var(--sm-text); }
.sm-legal-hero__meta { margin: 0 0 24px; color: var(--sm-text-secondary); }
.sm-legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-app .sm-legal-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--sm-surface); box-shadow: var(--sm-shadow-raised);
  color: var(--sm-text); font-weight: 600; font-size: 14px; text-decoration: none; }
.sm-app .sm-legal-tabs a:hover { color: var(--sm-primary); }
.sm-app .sm-legal-tabs a[aria-current="page"] { background: linear-gradient(135deg, #2E5BBA, #5A48D6); color: #fff; }

.sm-legal { padding: 24px 0 80px; }
.sm-legal__grid { display: grid !important; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start !important; }
.sm-legal__toc { position: sticky; top: 96px; padding: 20px; border-radius: 18px; background: var(--sm-surface); box-shadow: var(--sm-shadow-card); }
.sm-legal__toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sm-text-secondary); }
.sm-legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 13.5px; color: var(--sm-text-secondary); }
.sm-app .sm-legal__toc a { color: var(--sm-text); text-decoration: none; }
.sm-app .sm-legal__toc a:hover { color: var(--sm-primary); text-decoration: underline; }

.sm-legal__body { max-width: 780px; font-size: 16px; line-height: 1.7; color: var(--sm-text); }
.sm-legal__body h2 { font-family: var(--sm-font-heading); font-size: 23px; line-height: 1.3; margin: 40px 0 12px; color: var(--sm-text); scroll-margin-top: 96px; }
.sm-legal__body p { margin: 0 0 14px; }
.sm-legal__body ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.sm-legal__body a { text-underline-offset: 3px; }
.sm-legal__summary { padding: 22px 24px; border-radius: 20px; background: var(--sm-surface); box-shadow: var(--sm-shadow-card); border-left: 5px solid var(--sm-purple); }
.sm-legal__summary-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font-family: var(--sm-font-heading); font-weight: 800; font-size: 17px; }
.sm-legal__summary-title .sm-icon { color: var(--sm-purple-text); }
.sm-legal__summary ul { margin-bottom: 8px; }
.sm-legal__summary-note { margin: 0 !important; font-size: 13px; color: var(--sm-text-secondary); }
.sm-legal__table { overflow-x: auto; margin: 0 0 16px; border-radius: 16px; background: var(--sm-surface); box-shadow: var(--sm-shadow-card); }
.sm-legal__table:focus-visible { outline: none; box-shadow: var(--sm-focus-ring); }
.sm-legal__table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.sm-legal__table th, .sm-legal__table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sm-border); }
.sm-legal__table thead th { background: var(--sm-surface-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sm-text-secondary); }
.sm-legal__table tbody th { width: 34%; font-weight: 600; }
.sm-legal__table tr:last-child > * { border-bottom: 0; }
.sm-legal__contact { margin-top: 44px; padding: 24px; border-radius: 20px; background: var(--sm-surface); box-shadow: var(--sm-shadow-card); }
.sm-legal__contact h2 { margin-top: 0; }
.sm-legal__contact dl { margin: 0; display: grid; gap: 10px; }
.sm-legal__contact dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; }
.sm-legal__contact dt { color: var(--sm-text-secondary); font-size: 14px; }
.sm-legal__contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.sm-foot__legal { display: flex; gap: 16px; }
.sm-foot .sm-foot__legal a { color: #DCE3F5; text-decoration: none; }
.sm-foot .sm-foot__legal a:hover, .sm-foot .sm-foot__legal a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sm-consent { margin: 12px 0 0; text-align: center; line-height: 1.5; }
.sm-pricing__note .sm-icon { vertical-align: -3px; color: var(--sm-teal-text); }

@media (max-width: 1023px) {
  .sm-legal__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sm-legal__toc { position: static; }
  .sm-legal__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 767px) {
  .sm-legal__toc ol { grid-template-columns: minmax(0, 1fr); }
  .sm-legal__contact dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sm-legal__table tbody th { width: auto; }
}
