:root {
  --sm-ink: #18213f;
  --sm-muted: #68708a;
  --sm-line: #e2e5ef;
  --sm-paper: #ffffff;
  --sm-soft: #f7f7fb;
  --sm-coral: #ff654f;
  --sm-coral-soft: #fff0ed;
  --sm-blue: #2778ff;
  --sm-blue-soft: #edf4ff;
  --sm-violet: #7654e8;
  --sm-violet-soft: #f2efff;
  --sm-yellow: #f5c84c;
  --sm-yellow-soft: #fff8df;
  --sm-teal: #16827b;
  --sm-shadow: 0 22px 65px rgba(30, 37, 76, .11);
}

.sm-page { max-width: 1180px; margin: 0 auto; padding: 30px 18px 76px; color: var(--sm-ink); }
.sm-page * { box-sizing: border-box; }
.sm-page button, .sm-page input, .sm-page select, .sm-page textarea { font: inherit; }
.sm-page button:focus-visible, .sm-page a:focus-visible, .sm-page input:focus-visible, .sm-page select:focus-visible, .sm-page textarea:focus-visible, .sm-page summary:focus-visible { outline: 3px solid rgba(39, 120, 255, .32); outline-offset: 2px; }

.sm-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #e6e2ef;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 101, 79, .18), transparent 31%),
    radial-gradient(circle at 92% 14%, rgba(39, 120, 255, .18), transparent 30%),
    linear-gradient(135deg, #fffaf8 0%, #f8f6ff 54%, #eef5ff 100%);
  box-shadow: var(--sm-shadow);
}
.sm-hero::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 260px; height: 260px; border: 46px solid rgba(118, 84, 232, .08); border-radius: 50%; }
.sm-hero-copy { position: relative; z-index: 2; align-self: center; padding: 48px 20px 48px 48px; }
.sm-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--sm-ink); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.sm-eyebrow.dark { background: var(--sm-violet-soft); color: #5537be; }
.sm-hero h1 { max-width: 650px; margin: 18px 0 15px; color: var(--sm-ink); font-size: clamp(39px, 5.8vw, 68px); line-height: .96; letter-spacing: -.045em; }
.sm-hero h1 em { color: var(--sm-coral); font-style: normal; }
.sm-hero-copy > p { max-width: 620px; margin: 0; color: #555e7a; font-size: 18px; line-height: 1.55; }
.sm-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sm-trust span { padding: 7px 10px; border: 1px solid rgba(24, 33, 63, .09); border-radius: 999px; background: rgba(255, 255, 255, .72); color: #39415e; font-size: 12px; font-weight: 850; }
.sm-hero-visual { position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; padding: 18px 25px 10px 0; }
.sm-hero-visual img { display: block; width: min(100%, 540px); height: auto; filter: drop-shadow(0 24px 22px rgba(31, 42, 86, .18)); transform: rotate(-2deg); }

.sm-shell { margin-top: 24px; overflow: hidden; border: 1px solid var(--sm-line); border-radius: 26px; background: var(--sm-paper); box-shadow: 0 18px 52px rgba(31, 38, 75, .08); }
.sm-progress { position: relative; height: 9px; background: #eceef5; }
.sm-progress b { display: block; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, var(--sm-coral), var(--sm-yellow), var(--sm-blue), var(--sm-violet)); transition: width .28s ease; }
.sm-step { padding: 32px; }
.sm-step header { max-width: 790px; }
.sm-step header > span { color: var(--sm-violet); font-size: 12px; font-weight: 950; letter-spacing: .05em; text-transform: uppercase; }
.sm-step h2 { margin: 8px 0 7px; color: var(--sm-ink); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; }
.sm-step header p { margin: 0 0 24px; color: var(--sm-muted); line-height: 1.5; }
.sm-step-tip { display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 22px; padding: 13px 15px; border-radius: 14px; background: var(--sm-blue-soft); color: #2c4f84; font-size: 13px; line-height: 1.45; }
.sm-step-tip b { color: var(--sm-blue); white-space: nowrap; }
.sm-prefill { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 22px; padding: 13px 15px; border: 1px solid #d9d0ff; border-radius: 15px; background: var(--sm-violet-soft); color: #4b3c88; }
.sm-prefill strong { display: block; color: #3f2aa0; }
.sm-prefill small { color: #70669b; }
.sm-prefill button { padding: 7px 10px; border: 0; border-radius: 10px; background: #fff; color: #4c31b6; font-weight: 850; cursor: pointer; }

.sm-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sm-option { position: relative; }
.sm-option input { position: absolute; opacity: 0; pointer-events: none; }
.sm-option span { display: flex; align-items: center; min-height: 62px; padding: 13px 15px; border: 1px solid var(--sm-line); border-radius: 15px; background: #fcfcfe; color: #35405e; font-weight: 850; cursor: pointer; transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.sm-option span:hover { transform: translateY(-2px); border-color: #c9cce0; box-shadow: 0 8px 18px rgba(30, 37, 76, .07); }
.sm-option input:checked + span { border-color: var(--sm-coral); background: var(--sm-coral-soft); color: #9b2f22; box-shadow: inset 0 0 0 1px var(--sm-coral); }
.sm-option input:focus-visible + span { outline: 3px solid rgba(39, 120, 255, .32); }

.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.sm-field { display: grid; gap: 7px; color: #313b59; font-weight: 850; }
.sm-field input, .sm-field select, .sm-field textarea { width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid #cfd3e1; border-radius: 13px; background: #fff; color: var(--sm-ink); font-weight: 650; transition: border-color .15s, box-shadow .15s; }
.sm-field input:focus, .sm-field select:focus, .sm-field textarea:focus { border-color: var(--sm-blue); box-shadow: 0 0 0 4px rgba(39, 120, 255, .1); }
.sm-field small { color: #777e93; font-weight: 500; line-height: 1.35; }
.sm-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.sm-button { min-height: 46px; padding: 12px 18px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--sm-coral), #ff7a48); color: #fff; box-shadow: 0 8px 19px rgba(255, 101, 79, .22); font-weight: 900; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.sm-button:hover { transform: translateY(-1px); box-shadow: 0 11px 23px rgba(255, 101, 79, .28); }
.sm-button.secondary { background: #eef0f6; color: #39415e; box-shadow: none; }
.sm-button.blue { background: linear-gradient(135deg, var(--sm-blue), var(--sm-violet)); box-shadow: 0 8px 19px rgba(74, 85, 220, .22); }
.sm-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }

.sm-conversation { margin-top: 17px; padding: 20px; border: 1px solid #d8d1fa; border-radius: 19px; background: linear-gradient(145deg, #faf8ff, #f3f7ff); }
.sm-conversation summary { color: #4939a0; font-weight: 950; cursor: pointer; }
.sm-conversation textarea { width: 100%; min-height: 128px; margin: 14px 0 10px; padding: 15px; border: 1px solid #cfd3e7; border-radius: 14px; background: #fff; color: var(--sm-ink); resize: vertical; line-height: 1.5; }
.sm-examples { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.sm-examples button { padding: 7px 10px; border: 1px solid #ded8f6; border-radius: 999px; background: #fff; color: #5a4b98; font-size: 12px; font-weight: 800; cursor: pointer; }
.sm-parse-state { min-height: 24px; margin: 12px 0 0; color: #615b79; }
.sm-parse-ok { margin-top: 13px; padding: 14px; border: 1px solid #cfe1ff; border-radius: 14px; background: #fff; color: #294b7d; }
.sm-detected { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sm-detected span { padding: 5px 8px; border-radius: 999px; background: var(--sm-blue-soft); color: #285aa4; font-size: 11px; font-weight: 850; }

.sm-suggest { position: relative; }
.sm-suggestions { position: absolute; z-index: 12; top: 100%; right: 0; left: 0; overflow: hidden; border: 1px solid #d5d8e4; border-radius: 13px; background: #fff; box-shadow: 0 16px 36px rgba(26, 32, 67, .14); }
.sm-suggestions button { display: block; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid #eceef4; background: #fff; color: var(--sm-ink); text-align: left; cursor: pointer; }
.sm-suggestions button:hover { background: var(--sm-blue-soft); }
.sm-checks { display: grid; gap: 10px; margin-top: 16px; }
.sm-checks label { display: flex; gap: 9px; align-items: flex-start; color: #4e5670; font-weight: 650; line-height: 1.45; }
.sm-checks input { margin-top: 4px; accent-color: var(--sm-violet); }

.sm-results-head { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin: 28px 0 14px; }
.sm-results-head h2 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.sm-label { color: var(--sm-violet); font-size: 11px; font-weight: 950; letter-spacing: .05em; text-transform: uppercase; }
.sm-notice { padding: 13px 15px; border: 1px solid #d8d1fa; border-radius: 14px; background: var(--sm-violet-soft); color: #51448a; font-weight: 750; }
.sm-transition-banner { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 13px 0 18px; padding: 16px; border-left: 5px solid var(--sm-yellow); border-radius: 15px; background: var(--sm-yellow-soft); color: #665326; }
.sm-transition-banner .sm-transition-icon { grid-row: 1 / 3; font-size: 27px; }
.sm-transition-banner strong { color: #4e3d12; }
.sm-transition-banner span { font-size: 13px; line-height: 1.45; }
.sm-results { display: grid; gap: 16px; }
.sm-card { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr) 96px; gap: 18px; overflow: hidden; padding: 20px; border: 1px solid var(--sm-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 25px rgba(27, 34, 70, .045); }
.sm-card:first-child { border-color: #c9d8ff; box-shadow: 0 18px 42px rgba(39, 120, 255, .13); }
.sm-card:first-child::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--sm-coral), var(--sm-yellow), var(--sm-blue), var(--sm-violet)); }
.sm-card-img { display: grid; align-content: start; gap: 7px; }
.sm-card img { width: 118px; height: 118px; object-fit: contain; border-radius: 15px; background: linear-gradient(145deg, #f8f8fb, #eef2fa); }
.sm-data-badge { padding: 5px 6px; border-radius: 8px; background: #f1f3f8; color: #6a7083; font-size: 10px; font-weight: 800; text-align: center; }
.sm-card h3 { margin: 3px 0 5px; color: var(--sm-ink); font-size: 21px; }
.sm-score { --score-color: var(--sm-blue); display: grid; place-items: center; align-content: center; width: 92px; height: 92px; border: 7px solid #d8e5ff; border-radius: 50%; background: var(--score-color); color: #fff; box-shadow: 0 10px 20px rgba(39, 120, 255, .2); }
.sm-score.mid { --score-color: var(--sm-violet); border-color: #dfd8ff; box-shadow: 0 10px 20px rgba(118, 84, 232, .18); }
.sm-score.low { --score-color: var(--sm-coral); border-color: #ffd9d2; box-shadow: 0 10px 20px rgba(255, 101, 79, .18); }
.sm-score strong { font-size: 29px; line-height: 1; }
.sm-score small { color: rgba(255,255,255,.82); }
.sm-score-caption { margin-top: 6px; color: #73798c; font-size: 10px; font-weight: 750; text-align: center; }
.sm-subscore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.sm-subscore span { padding: 9px 10px; border-radius: 11px; font-size: 11px; font-weight: 800; line-height: 1.3; }
.sm-subscore span:nth-child(1) { background: var(--sm-yellow-soft); color: #6a551b; }
.sm-subscore span:nth-child(2) { background: var(--sm-blue-soft); color: #28599e; }
.sm-subscore span:nth-child(3) { background: var(--sm-coral-soft); color: #993c30; }
.sm-subscore b { display: block; font-size: 17px; }
.sm-why { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 9px; }
.sm-why h4 { margin: 0 0 6px; color: #3f4762; font-size: 12px; }
.sm-why ul { margin: 0; padding-left: 18px; color: #5d657c; font-size: 13px; line-height: 1.45; }
.sm-why li { margin: 5px 0; }
.sm-why .sm-warnings { color: #8b5626; }
.sm-price { margin-top: 10px; color: #333b56; font-weight: 900; }
.sm-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sm-card-actions a, .sm-card-actions button { padding: 9px 11px; border: 0; border-radius: 10px; background: var(--sm-ink); color: #fff; text-decoration: none; font-size: 12px; font-weight: 850; cursor: pointer; }
.sm-card-actions button { background: #eff1f6; color: #424a63; }
.sm-card-actions button:last-child { background: var(--sm-coral-soft); color: #993c30; }
.sm-score-details { margin-top: 13px; border-top: 1px solid #eceef4; }
.sm-score-details summary { padding: 12px 0 3px; color: #4d40a0; font-size: 12px; font-weight: 900; cursor: pointer; }
.sm-component { display: grid; grid-template-columns: 100px 1fr 44px; gap: 8px; align-items: center; margin: 8px 0; color: #5b6278; font-size: 11px; }
.sm-component i { height: 7px; overflow: hidden; border-radius: 99px; background: #eceef4; }
.sm-component i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sm-blue), var(--sm-violet)); }
.sm-component strong { color: #3d455e; text-align: right; }
.sm-component-note { margin: 10px 0 4px; color: #777e91; font-size: 11px; line-height: 1.45; }

.sm-method { margin-top: 28px; padding: 31px; border-radius: 25px; background: var(--sm-ink); color: #e9ebf4; }
.sm-method > div:first-child { max-width: 780px; }
.sm-method h2 { margin: 10px 0 7px; color: #fff; font-size: 31px; }
.sm-method p { color: #c9cede; line-height: 1.55; }
.sm-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 23px 0; }
.sm-method-grid article { padding: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.055); }
.sm-method-grid article:nth-child(1) b { color: var(--sm-coral); }
.sm-method-grid article:nth-child(2) b { color: #6aa4ff; }
.sm-method-grid article:nth-child(3) b { color: var(--sm-yellow); }
.sm-method-grid h3 { margin: 5px 0; color: #fff; }
.sm-method-grid p { margin: 0; font-size: 13px; }
.sm-transition-rule { display: grid; gap: 5px; padding: 18px; border-radius: 16px; background: var(--sm-yellow); color: #3f330f; }
.sm-transition-rule span { line-height: 1.5; }
.sm-independence { margin-bottom: 0; font-size: 13px; }

.sm-off { max-width: 780px; margin: 80px auto; padding: 30px; }
.sm-error { padding: 13px 15px; border: 1px solid #ffc8bf; border-radius: 13px; background: var(--sm-coral-soft); color: #8f3025; font-weight: 800; }
.sm-loader { display: grid; place-items: center; min-height: 280px; padding: 24px; text-align: center; }
.sm-loader i { display: inline-block; width: 48px; height: 48px; border: 5px solid #e5e7ef; border-top-color: var(--sm-coral); border-right-color: var(--sm-blue); border-radius: 50%; animation: smspin .75s linear infinite; }
@keyframes smspin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .sm-hero { grid-template-columns: 1fr; min-height: 0; }
  .sm-hero-copy { padding: 35px 28px 4px; }
  .sm-hero-visual { padding: 0 30px 10px; }
  .sm-hero-visual img { width: min(82%, 500px); }
  .sm-options { grid-template-columns: 1fr 1fr; }
  .sm-card { grid-template-columns: 86px 1fr; }
  .sm-card img { width: 86px; height: 86px; }
  .sm-score-wrap { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
  .sm-score { width: auto; height: auto; padding: 11px 15px; border: 0; border-radius: 13px; display: flex; gap: 5px; }
  .sm-score-caption { margin: 0; text-align: left; }
}

@media (max-width: 620px) {
  .sm-page { padding: 13px 10px 50px; }
  .sm-hero { border-radius: 23px; }
  .sm-hero-copy { padding: 27px 20px 0; }
  .sm-hero h1 { font-size: 43px; }
  .sm-hero-copy > p { font-size: 16px; }
  .sm-hero-visual img { width: 100%; }
  .sm-step { padding: 23px 16px; }
  .sm-options, .sm-grid, .sm-method-grid, .sm-subscore { grid-template-columns: 1fr; }
  .sm-results-head { display: block; }
  .sm-results-head .sm-button { margin-top: 12px; }
  .sm-card { padding: 16px; gap: 12px; }
  .sm-why { grid-template-columns: 1fr; }
  .sm-method { padding: 23px 18px; }
  .sm-prefill { display: block; }
  .sm-prefill button { margin-top: 9px; }
  .sm-component { grid-template-columns: 88px 1fr 40px; }
}

@media (max-width: 390px) {
  .sm-options { grid-template-columns: 1fr; }
  .sm-actions .sm-button { padding: 11px 12px; }
  .sm-hero h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-progress b, .sm-option span, .sm-button { transition: none; }
  .sm-loader i { animation-duration: 1.5s; }
}
