/* SayNine SEO Consultant widget. Self-contained, mobile-first, responsive.
   In WordPress the theme font (League Spartan) is inherited; the harness sets a
   fallback stack on body. Palette follows the SayNine dark/blue system. */

:root {
  --sc-bg: #0a2540;
  --sc-bg2: #0d2c4d;
  --sc-surface: #11365d;
  --sc-surface2: #0f2f52;
  --sc-line: rgba(198, 225, 255, 0.16);
  --sc-text: #eaf2fb;
  --sc-muted: #9db4cc;
  --sc-primary: #2f8fff;
  --sc-primary-2: #1e7bef;
  --sc-cyan: #74d8fa;
  --sc-light: #c6e1ff;
  --sc-radius: 16px;
  --sc-radius-sm: 11px;
}

.sc-page {
  min-height: 100vh;
  font-family: "League Spartan", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 143, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(116, 216, 250, 0.12), transparent 60%),
    var(--sc-bg);
  color: var(--sc-text);
}

.sc-widget {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px);
  font-family: inherit;
}
.sc-widget *, .sc-widget *::before, .sc-widget *::after { box-sizing: border-box; }

.sc-intro { text-align: center; margin: 0 auto clamp(20px, 3vw, 34px); max-width: 60ch; }
.sc-title { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
.sc-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--sc-muted); margin: 0; }

.sc-card-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--sc-surface), var(--sc-surface2));
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}

/* The form stays a comfortable width; the result uses the full (wider) shell so
   the recommendation cards sit in one row. */
.sc-dots, #sc-form { max-width: 680px; margin-left: auto; margin-right: auto; }

/* progress dots */
.sc-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: clamp(18px, 3vw, 30px); }
.sc-dot { width: 30px; height: 5px; border-radius: 999px; background: rgba(198, 225, 255, 0.18); transition: background .25s; }
.sc-dot--active { background: var(--sc-primary); }
.sc-dot--done { background: var(--sc-cyan); }

/* steps */
.sc-step { display: none; animation: sc-fade .25s ease both; }
.sc-step--active { display: block; }
@keyframes sc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sc-label { display: block; font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; margin-bottom: 16px; }
.sc-label-hint { font-size: 14px; font-weight: 550; color: var(--sc-cyan); }
.sc-hint { color: var(--sc-muted); font-size: 14px; margin: 10px 2px 0; }
.sc-other { margin-top: 12px; }

.sc-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  color: var(--sc-text);
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.sc-input::placeholder { color: #6f89a3; }
.sc-input:focus { outline: none; border-color: var(--sc-primary); box-shadow: 0 0 0 3px rgba(47, 143, 255, 0.22); }
.sc-textarea { min-height: 108px; resize: vertical; }

/* option cards */
.sc-options { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 6px; }
@media (min-width: 560px) { .sc-options { grid-template-columns: 1fr 1fr; } }
.sc-options--row { grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .sc-options--row { grid-template-columns: repeat(4, 1fr); } }

.sc-opt {
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  color: var(--sc-text);
  font: inherit;
  padding: 16px;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .06s;
}
.sc-opt b { font-weight: 650; font-size: 16px; }
.sc-opt:hover { border-color: rgba(47, 143, 255, 0.6); background: rgba(47, 143, 255, 0.08); }
.sc-opt:active { transform: scale(.99); }
.sc-opt.is-active { border-color: var(--sc-primary); background: rgba(47, 143, 255, 0.16); box-shadow: 0 0 0 2px rgba(47, 143, 255, 0.3) inset; }

/* actions */
.sc-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.sc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  padding: 12px 26px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter .16s, background .16s, border-color .16s, transform .06s;
}
.sc-btn--primary { background: linear-gradient(180deg, var(--sc-primary), var(--sc-primary-2)); color: #fff; }
.sc-btn--primary:hover { filter: brightness(1.07); }
.sc-btn--primary:active { transform: translateY(1px); }
.sc-btn--ghost { background: transparent; border-color: var(--sc-line); color: var(--sc-text); }
.sc-btn--ghost:hover { border-color: var(--sc-cyan); color: #fff; }

.sc-error { color: #ffb4a8; font-size: 14px; margin: 16px 2px 0; }

/* Honeypot (hidden from real users; bots that fill it are rejected). */
.sc-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sc-turnstile { margin-top: 14px; }

/* result */
.sc-building { text-align: center; padding: clamp(28px, 6vw, 60px) 10px; }
.sc-spinner {
  width: 46px; height: 46px; margin: 0 auto 20px;
  border: 4px solid rgba(198, 225, 255, 0.18);
  border-top-color: var(--sc-cyan);
  border-radius: 50%;
  animation: sc-spin 0.9s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-building__text { color: var(--sc-muted); font-size: 16px; margin: 0; }

.sc-plan__headline { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin: 0 0 8px; }
.sc-plan__summary { color: var(--sc-muted); font-size: 16px; margin: 0 0 clamp(18px, 3vw, 28px); max-width: 70ch; }

.sc-plan__cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .sc-plan__cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

.sc-rec {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  padding: 20px;
}
.sc-rec__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.sc-rec__title h3 { margin: 0 0 4px; font-size: 20px; font-weight: 750; }
.sc-rec__config { color: var(--sc-cyan); font-size: 13px; }
.sc-price { font-size: 20px; font-weight: 800; color: #fff; white-space: nowrap; }
.sc-price--soft { font-size: 15px; font-weight: 650; color: var(--sc-light); }
.sc-rec__why { font-size: 15px; line-height: 1.5; margin: 4px 0 12px; }

/* price tiers: one per chosen budget range, equal-size blocks */
.sc-tiers { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 14px; align-items: stretch; }
.sc-tier {
  flex: 1 1 0; min-width: 130px;
  display: flex; flex-direction: column;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.sc-tier.is-rec {
  border-color: var(--sc-primary);
  background: rgba(47, 143, 255, 0.10);
  box-shadow: 0 0 0 1px rgba(47, 143, 255, 0.35) inset;
}
.sc-tier__tag {
  align-self: flex-start;
  background: rgba(47, 143, 255, 0.18); color: var(--sc-light);
  font-size: 11px; font-weight: 700; letter-spacing: 0.01em;
  padding: 2px 9px; border-radius: 999px; margin-bottom: 8px;
}
.sc-tier__tag--rec { background: var(--sc-primary); color: #fff; }
.sc-tier__price { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.sc-tier__cfg { display: block; font-size: 12px; color: var(--sc-muted); margin-top: 3px; line-height: 1.35; }
.sc-rec__includes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.sc-rec__includes li { position: relative; padding-left: 24px; font-size: 14px; color: var(--sc-light); }
.sc-rec__includes li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px;
  background: var(--sc-cyan);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sc-rec__outcome { font-size: 13.5px; color: var(--sc-muted); margin: 0 0 16px; }
.sc-rec__outcome span { color: var(--sc-cyan); font-weight: 650; }
.sc-rec__cta { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.sc-rec__cta .sc-btn { flex: 1 1 auto; padding: 11px 18px; font-size: 14px; }

.sc-restart { margin-top: clamp(20px, 3vw, 30px); }
.sc-failed { text-align: center; padding: 30px 10px; }
.sc-failed__msg { color: var(--sc-muted); margin: 0 0 20px; }
