/* ============================================================
   On The Outskirt Marketing Co.
   Shared styles for the lead-magnet landing pages
   (/website-growth-score and /strategy-session-thank-you)
   Inherits brand tokens + buttons from ../styles.css
   ============================================================ */

body.lp {
  background: #fff; color: var(--ink);
  /* Darker secondary text on the assessment/thank-you pages for readability. */
  --ink-soft: #2b3a4b;
}

/* ---------- Slim header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.lp-header__logo img { height: 34px; width: auto; display: block; }
.lp-header__back { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.lp-header__back:hover { color: var(--accent); }

/* ---------- Page shell ---------- */
.lp-main { padding: 48px 0 80px; }
.lp-narrow { max-width: 760px; margin-inline: auto; padding-inline: 24px; width: 100%; }

.lp-intro { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.lp-intro h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.lp-intro .accent { color: var(--accent); }
.lp-intro p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 16px; }
.lp-intro .meta { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--slate); }
.lp-intro__list {
  list-style: none; display: inline-grid; gap: 12px; text-align: left;
  margin: 24px auto 0;
}
.lp-intro__list li {
  position: relative; padding-left: 30px; color: var(--ink);
  font-weight: 600; line-height: 1.5;
}
.lp-intro__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent-lt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fb0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ============================================================
   Quiz card
   ============================================================ */
.quiz {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 36px 30px;
}

/* Progress */
.progress { margin-bottom: 28px; }
.progress__meta {
  display: flex; justify-content: flex-end; align-items: baseline;
  margin-bottom: 10px; font-size: .82rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--slate);
}
.progress__bar { height: 8px; background: #edf1f6; border-radius: 99px; overflow: hidden; }
.progress__fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--slate), var(--accent));
  transition: width .45s cubic-bezier(.16, 1, .3, 1);
}

/* Step */
.step { animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step__eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.step__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.step--q .step__title { margin-bottom: 22px; }
.step__hint { color: var(--ink); font-size: .98rem; margin-bottom: 24px; }

/* Questions */
.q { margin-bottom: 26px; }
.q:last-of-type { margin-bottom: 0; }
.q__title { font-size: 1.06rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--ink); }
.q__num { color: var(--slate); font-weight: 800; margin-right: 6px; }
.q__note { font-size: .9rem; color: var(--ink-soft); margin: -4px 0 14px; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  background: #fff;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__dot {
  flex: 0 0 20px; height: 20px; border-radius: 50%;
  border: 2px solid #c4cedb; display: grid; place-items: center; transition: border-color .18s ease;
}
.option__dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); transform: scale(0); transition: transform .18s ease;
}
.option__label { font-size: .98rem; font-weight: 500; color: var(--ink); }
.option.selected { border-color: var(--accent); background: var(--accent-lt); box-shadow: 0 0 0 3px rgba(47, 111, 176, .12); }
.option.selected .option__dot { border-color: var(--accent); }
.option.selected .option__dot::after { transform: scale(1); }

/* Contact form */
.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; width: 100%; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 176, .14);
}
.field input.invalid, .field select.invalid { border-color: var(--low); box-shadow: 0 0 0 3px rgba(224, 101, 58, .12); }
.field__error { font-size: .82rem; color: var(--low); font-weight: 600; display: none; }
.field__error.show { display: block; }
.fields__note { font-size: .86rem; color: var(--ink-soft); }
.check {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  font-size: .84rem; color: var(--ink-soft); line-height: 1.4; font-weight: 500;
}
.check input {
  width: 14px; height: 14px; margin-top: 2px; flex: none;
  accent-color: var(--slate); cursor: pointer;
}

/* Step actions */
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; }
.step-error { color: var(--low); font-weight: 600; font-size: .9rem; margin-top: 16px; display: none; }
.step-error.show { display: block; }
.btn--text { background: none; border: none; color: var(--ink-soft); font-weight: 700; cursor: pointer; padding: 10px 4px; }
.btn--text:hover { color: var(--accent); }
.btn--text[hidden] { visibility: hidden; }
.btn[hidden] { display: none; }

/* ============================================================
   Results
   ============================================================ */
.result { animation: stepIn .4s ease; }
.result__head { text-align: center; margin-bottom: 30px; }
.result__head .eyebrow { color: var(--slate); }
.result__head h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; }
.result__for { color: var(--ink-soft); margin-top: 8px; }

.scorebox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px; margin-bottom: 26px;
}
.scorebox__top {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.scoredial {
  --p: 0; --c: var(--accent);
  flex: 0 0 160px; width: 160px; height: 160px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 80%, transparent 81% 100%),
              conic-gradient(var(--c) calc(var(--p) * 1%), #edf1f6 0);
}
.scoredial__inner { text-align: center; padding: 0 8px; }
.scoredial__num { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--ink); }
.scoredial__num small { font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.scoredial__of { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-top: 6px; }
.scorebox__verdict { flex: 1; min-width: 240px; }
.score-label {
  display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 12px;
}
.score-label--low { background: #fcebe3; color: var(--low); }
.score-label--mid { background: #fbf2e1; color: #b97e16; }
.score-label--good { background: var(--accent-lt); color: var(--accent); }
.score-label--strong { background: #e4f4ec; color: var(--high); }
.scorebox__summary { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }

/* Score comparison (above the scorebox) */
.compare {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 28px; margin-bottom: 22px;
  display: grid; gap: 16px;
}
.compare__row { display: grid; grid-template-columns: 180px 1fr 64px; align-items: center; gap: 16px; }
.compare__label { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.compare__bar { height: 12px; background: #edf1f6; border-radius: 99px; overflow: hidden; }
.compare__fill { height: 100%; width: 0; border-radius: 99px; background: #c4cedb; transition: width 1.1s cubic-bezier(.16, 1, .3, 1); }
.compare__fill--avg { background: #aeb9c7; }
.compare__num { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-align: right; white-space: nowrap; }
.compare__num small { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.compare__row--you .compare__label { color: var(--ink); font-weight: 800; }
.compare__row--you .compare__fill { background: linear-gradient(90deg, var(--slate), var(--accent)); }
.compare__row--you .compare__num { color: var(--accent); }

/* Category bars */
.cats { display: grid; gap: 18px; }
.cat__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cat__name { font-weight: 700; font-size: 1rem; }
.cat__val { font-weight: 800; color: var(--slate); font-size: .95rem; }
.cat__bar { height: 9px; background: #edf1f6; border-radius: 99px; overflow: hidden; }
.cat__fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--slate), var(--accent));
  transition: width 1s cubic-bezier(.16, 1, .3, 1);
}
.cat__fill--low { background: linear-gradient(90deg, #e3884f, var(--low)); }
.cat__fill--strong { background: linear-gradient(90deg, #4bba86, var(--high)); }

/* Recommendations */
.recs { margin-top: 34px; }
.recs__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.recs__sub { color: var(--ink-soft); margin-bottom: 22px; }
.rec {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; margin-bottom: 14px;
}
.rec__badge {
  flex: 0 0 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-lt); color: var(--accent); font-weight: 800; font-size: .95rem;
}
.rec h4 { font-size: 1.08rem; margin-bottom: 6px; }
.rec p { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; margin-bottom: 10px; }
.rec__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rec__list li {
  position: relative; padding-left: 26px;
  color: var(--ink-soft); font-size: .96rem; line-height: 1.5;
}
.rec__list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 14px; height: 14px;
  background: var(--accent);
  -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") no-repeat center / contain;
  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") no-repeat center / contain;
}

/* CTA blocks */
.cta-block {
  margin-top: 34px; padding: 38px; border-radius: var(--radius); text-align: center;
}
.cta-block--qualify {
  background: linear-gradient(160deg, #eaf2fb, #f7fafd);
  border: 1px solid #cfe0f1;
}
.cta-block--plain { background: var(--bg-tint); border: 1px solid var(--line); }
.cta-block h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.cta-block p { color: var(--ink-soft); font-size: 1.04rem; max-width: 520px; margin: 0 auto 24px; }
.cta-block__note { font-size: .86rem !important; color: var(--slate) !important; margin-top: 16px !important; }

/* ============================================================
   Inline Calendly section (results page)
   ============================================================ */
.cal-section {
  margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line);
}
.cal-section__title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; text-align: center; letter-spacing: -.01em; }
.cal-section__sub { text-align: center; color: var(--ink-soft); margin: 8px auto 20px; max-width: 540px; }
/* Calendly sets inline styles on the widget, so we need !important to keep it
   from collapsing. A min-height floor prevents a tiny widget while still
   letting Calendly auto-resize taller (so there's no internal scrollbar). */
.cal-embed { width: 100%; }
.cal-embed .calendly-inline-widget { min-width: 320px !important; width: 100% !important; min-height: 1080px !important; }
.cal-embed iframe { min-height: 1080px !important; }

/* ============================================================
   Thank-you page
   ============================================================ */
.ty-hero { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.ty-hero h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.ty-hero p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 16px; }

.vsl {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(700px 400px at 50% 40%, rgba(47, 111, 176, .18), transparent 70%),
              linear-gradient(150deg, #1a2d47, #14233a);
  box-shadow: var(--shadow-sm); margin-bottom: 40px;
}
.vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: transform .2s ease;
}
.vsl__play svg { width: 26px; height: 26px; fill: var(--accent); margin-left: 3px; }
.vsl:hover .vsl__play { transform: translate(-50%, -50%) scale(1.08); }
.vsl__tag { position: absolute; left: 18px; bottom: 16px; font-size: .9rem; font-weight: 600; color: #dbe7f5; }

.ty-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.ty-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.ty-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 18px; }
.ty-list { list-style: none; display: grid; gap: 12px; }
.ty-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.ty-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent-lt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fb0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.ty-actions { text-align: center; }

.ty-hero__confirm { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; color: var(--ink); margin-top: 10px; }
.ty-h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; margin: 8px 0 20px; }
.ty-card--solo { margin-bottom: 22px; }
.ty-card--bare { background: none; border: 0; box-shadow: none; padding: 0; }
.ty-card__intro { color: var(--ink-soft); margin-bottom: 16px; }
.ty-card__note { color: var(--ink-soft); margin-top: 16px; font-size: .96rem; line-height: 1.55; }
.ty-bullets { list-style: disc; padding-left: 22px; }
.ty-bullets li { color: var(--ink); line-height: 1.5; margin-bottom: 10px; }
.ty-bullets li:last-child { margin-bottom: 0; }
.ty-card--accent { text-align: center; }
.ty-card--accent .ty-card__intro { max-width: 520px; margin-left: auto; margin-right: auto; }
.ty-card--accent .btn { margin-top: 6px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .quiz { padding: 26px 22px 24px; }
  .scorebox { padding: 26px 22px; }
  .scorebox__top { gap: 20px; }
  .scoredial { flex-basis: 140px; width: 140px; height: 140px; }
  .ty-cols { grid-template-columns: 1fr; }
  .cta-block { padding: 28px 22px; }
  .rec { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .step, .result { animation: none; }
  .progress__fill, .cat__fill, .scoredial { transition: none; }
}
