/* ==========================================================================
   LeadsServe — SMS consent site (consent.leadsserve.com)
   Theme mirrors leadsserve.com design tokens:
     primary-container  #ff5f15   brand-orange-hover #e64e07
     brand-orange-subtle #fff4ed  primary            #a93800
     secondary          #0051d5   cobalt-deep        #1550ca
     cobalt-tint        #eef4ff   periwinkle         #b6cdfe
     on-surface         #131b2e   slate-body         #334155
     slate-muted        #64748b   border-subtle      #e2e8f0
     canvas-neutral     #fafafa   surface-container  #eaedff
     status-green       #10b981
   Type: Plus Jakarta Sans (200–800); radius 8/12/16/24; section rhythm 5rem/3rem.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --brand: #ff5f15;
  --brand-hover: #e64e07;
  --brand-deep: #a93800;
  --brand-subtle: #fff4ed;
  --cobalt: #0051d5;
  --cobalt-deep: #1550ca;
  --cobalt-tint: #eef4ff;
  --ink: #131b2e;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #fafafa;
  --surface: #ffffff;
  --container: #eaedff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 16px 36px -6px rgba(15, 23, 42, 0.12),
    0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 8px 24px -4px rgba(15, 23, 42, 0.08),
    0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-header: 0 1px 8px rgba(15, 23, 42, 0.06);
  --shadow-cta: 0 10px 24px -8px rgba(255, 95, 21, 0.5);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a {
  color: var(--cobalt);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--cobalt-deep); text-decoration: underline; }

:focus-visible {
  outline: 3px solid rgba(0, 81, 213, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(255, 95, 21, 0.2); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.875rem;
  font-weight: 600;
}
.site-nav a { color: var(--body); }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

.nav-cta {
  background: var(--cobalt-tint);
  color: var(--cobalt) !important;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover { background: #e0eaff; color: var(--cobalt-deep) !important; }

@media (max-width: 720px) {
  .site-nav { gap: 14px; font-size: 0.8rem; }
  .site-nav .hide-sm { display: none; }
}

@media (max-width: 560px) {
  .bar {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 10px;
    min-height: 0;
  }
  .brand-tag { display: none; }
  .brand-logo { height: 26px; }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
  }
  .nav-cta { padding: 6px 11px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  background: linear-gradient(to bottom, #ffffff, #f2f3ff, #fafafa);
}

.hero::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -6rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(31, 105, 255, 0.1);
  filter: blur(64px);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-subtle);
  border: 1px solid rgba(255, 95, 21, 0.24);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--brand), var(--brand-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--body);
  max-width: 56ch;
  margin: 0 0 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
  background: var(--canvas);
}

@media (max-width: 960px) {
  .layout { display: flex; flex-direction: column; }
  .form-card { order: 1; }
  .info { order: 2; }
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card-pad { padding: clamp(20px, 3vw, 30px); }

.card-head { margin-bottom: 20px; }
.card-head h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ink);
}
.card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Info column ---------- */

.info h2 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.info h2 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 95, 21, 0.14);
  flex: none;
}

.info-block { margin-bottom: 28px; }

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tick-list li {
  position: relative;
  padding-left: 28px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.tick-list li strong { color: var(--ink); font-weight: 700; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-subtle);
  border: 1px solid rgba(255, 95, 21, 0.3);
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0.42em;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.sample {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.sample p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--cobalt-tint);
  border: 1px solid rgba(0, 81, 213, 0.12);
}
.sample p b { color: var(--cobalt); font-weight: 700; }

.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 95, 21, 0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--brand-subtle);
  font-size: 0.875rem;
  color: var(--body);
}
.note strong { color: var(--ink); font-weight: 700; }
.note svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.note p { margin: 0; }
.note a { font-weight: 600; }

/* ---------- Form ---------- */

.form-card { position: static; }
@media (min-width: 961px) and (min-height: 940px) {
  .form-card { position: sticky; top: 96px; }
}

.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .req { color: var(--brand); }
.field .opt { color: var(--muted); font-weight: 500; }

.input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: #94a3b8; }
.input:hover { border-color: #94a3b8; }
.input:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0, 81, 213, 0.15);
}

.hint { margin: 6px 0 0; font-size: 0.76rem; color: var(--muted); }

.error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
  font-weight: 600;
}
.field.invalid .input { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.field.invalid .error { display: block; }

/* Consent checkbox */

.consent-box {
  border: 1px solid rgba(255, 95, 21, 0.28);
  background: var(--brand-subtle);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 4px 0 6px;
}
.consent-box.invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.check {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0 0;
  border: 1.5px solid #94a3b8;
  border-radius: 6px;
  background: var(--surface) center / 14px 14px no-repeat;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.check:hover { border-color: var(--brand); }
.check:checked {
  background-color: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E");
}

.consent-box label {
  font-size: 0.84375rem;
  line-height: 1.6;
  color: var(--body);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.consent-box label a { font-weight: 600; }

.field-optional-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
}
.field-optional-check label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.btn {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: var(--radius);
  padding: 15px 18px;
  cursor: pointer;
  margin-top: 18px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  box-shadow: var(--shadow-cta);
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.form-foot {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.form-foot strong { color: var(--body); }

.alert {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.5;
}
.alert.show { display: block; }
.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.alert-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.alert-warn code {
  background: rgba(15, 23, 42, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.success { display: none; text-align: center; padding: 12px 4px 6px; }
.success.show { display: block; }
.success .badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.success .badge svg { width: 26px; height: 26px; color: #065f46; }
.success h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.success p { margin: 0 auto 10px; color: var(--body); font-size: 0.9rem; max-width: 34ch; }
.success .small { font-size: 0.78rem; color: var(--muted); }
.success a { font-weight: 600; }

/* ---------- Sections ---------- */

.section {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.section:nth-of-type(even) { background: var(--canvas); }

.section-title {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 700;
}
.section-sub { margin: 0 0 26px; color: var(--muted); max-width: 62ch; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.legal-grid .card {
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.legal-grid h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 8px;
  font-weight: 800;
}
.legal-grid p { margin: 0; font-size: 0.875rem; color: var(--body); line-height: 1.55; }

/* FAQ */

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq details[open] { border-color: #cbd5e1; box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--brand);
  font-weight: 500;
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  margin: 0 0 16px;
  color: var(--body);
  font-size: 0.9rem;
  max-width: 68ch;
}

/* ---------- Footer (dark band, as on leadsserve.com) ---------- */

.site-footer {
  background: linear-gradient(to right, #131b2e, #283044, #131b2e);
  color: #cbd5e1;
  padding: 40px 0 48px;
  font-size: 0.875rem;
  --ink-soft: #e2e8f0;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }

.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.foot-links a { font-weight: 600; }
.foot-note { max-width: 54ch; margin: 0; line-height: 1.6; color: #cbd5e1; }
.foot-note strong { color: #fff; }
.foot-legal {
  margin: 24px 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 90ch;
  color: #94a3b8;
}

/* ---------- Long-form policy page ---------- */

.policy {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) 0 70px;
}
.policy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.policy h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 38px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.policy h3 { font-size: 1rem; margin: 22px 0 8px; color: var(--ink); }
.policy p, .policy li { color: var(--body); font-size: 0.9375rem; line-height: 1.65; }
.policy ul { padding-left: 20px; }
.policy li { margin-bottom: 7px; }
.policy .updated { color: var(--muted); font-size: 0.8125rem; margin-top: 0; }
.policy .callout {
  border: 1px solid rgba(255, 95, 21, 0.2);
  border-left: 3px solid var(--brand);
  background: var(--brand-subtle);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0;
}
.policy .callout p { margin: 0; color: var(--body); }

/* ---------- Alert type picker ---------- */

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.linkish {
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cobalt);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish:hover { color: var(--cobalt-deep); }

.opt-group { display: grid; gap: 8px; margin-top: 10px; }

/* label.opt-card (not .opt-card) so it outranks the generic .field label rule */
label.opt-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
label.opt-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
label.opt-card:has(.check:checked) {
  border-color: var(--brand);
  background: var(--brand-subtle);
  box-shadow: 0 0 0 1px var(--brand);
}
label.opt-card .check { margin-top: 1px; }

.opt-body { display: block; }
.opt-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.opt-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.field.invalid label.opt-card { border-color: #fca5a5; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
