/* ==========================================================================
   Design system — shared across every page.
   Edit the variables in :root to rebrand the whole site at once.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #f6f8fa;
  --color-ink: #11203a;        /* primary text — deep navy */
  --color-muted: #5a6b85;      /* secondary text */
  --color-accent: #1d6fe0;     /* brand / links / buttons */
  --color-accent-dark: #1357b3;
  --color-line: #e2e8f0;
  --color-success-bg: #e8f5ee;
  --color-success-ink: #14633b;
  --color-warning-bg: #fff7e6;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --maxw: 1080px;
  --maxw-narrow: 720px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17, 32, 58, 0.06), 0 8px 24px rgba(17, 32, 58, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--maxw-narrow);
}

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

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 68px;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand span {
  color: var(--color-accent);
}

.site-header__cta {
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Brand + sub-brand tagline */
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--color-line);
  flex-shrink: 0;
}

.brand-tag {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.15;
  white-space: nowrap;
}

/* Primary nav */
.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 26px;
}

.site-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Hide the text nav on tablets/phones to avoid clutter */
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
}

/* On phones, stack the tagline under the firm name and compact the CTA */
@media (max-width: 600px) {
  .brand-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
  }
  .brand {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .brand-divider {
    display: none;
  }
  .brand-tag {
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .site-header__cta.btn {
    padding: 9px 13px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------- Buttons -- */

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  text-align: center;
}

.btn:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--block {
  display: block;
  width: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn--ghost:hover {
  background: var(--color-accent);
  color: #fff;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  color: #fff;
  background: radial-gradient(
      1200px 600px at 70% -10%,
      rgba(29, 111, 224, 0.55),
      transparent 60%
    ),
    linear-gradient(155deg, #0d2244 0%, #143264 55%, #1a4f9c 110%);
}

/* Decorative soft shapes in the hero background */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.35;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  top: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.6), transparent 70%);
}

.hero::after {
  width: 260px;
  height: 260px;
  bottom: -110px;
  right: -60px;
  background: radial-gradient(circle, rgba(80, 140, 240, 0.5), transparent 70%);
}

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

.hero h1 {
  color: #fff;
}

.hero p.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: rgba(232, 240, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Eyebrow becomes a pill badge when it sits on the dark hero */
.hero .eyebrow {
  color: #cfe0ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* On the dark hero, flip the button colors for contrast */
.hero .btn {
  background: #fff;
  color: var(--color-accent-dark);
}

.hero .btn:hover {
  background: #e9f1fe;
}

.hero .btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Trust strip under the hero buttons */
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  margin: 30px 0 0;
  padding: 0;
  font-size: 0.92rem;
  color: rgba(226, 236, 255, 0.92);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__trust svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #7fd1a6;
}

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

.section {
  padding: clamp(44px, 6vw, 72px) 0;
}

.section--surface {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section__title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__intro {
  text-align: center;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* Card grid of practice areas / segments */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.card:hover {
  text-decoration: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #eaf1fb, #dbe8fb);
  color: var(--color-accent);
  transition: background 0.15s ease, color 0.15s ease;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card:hover .card__icon {
  background: var(--color-accent);
  color: #fff;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.96rem;
  margin: 0;
}

.card__arrow {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.95rem;
}

/* Highlighted callout (e.g. the fee explanation) */

.callout {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #eef4fd 0%, #f7faff 100%);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.callout__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.callout__icon svg {
  width: 28px;
  height: 28px;
}

.callout p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-ink);
  margin: 0;
  line-height: 1.6;
}

/* "How it works" steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
}

.step__num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step__num::before {
  content: counter(step);
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------- Case page hero - */

.case-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 56px);
  margin-bottom: clamp(32px, 5vw, 56px);
  color: #fff;
  background: radial-gradient(
      1000px 500px at 75% -20%,
      rgba(29, 111, 224, 0.5),
      transparent 60%
    ),
    linear-gradient(155deg, #0d2244 0%, #143264 55%, #1a4f9c 110%);
}

.case-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -130px;
  left: -80px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.3;
  pointer-events: none;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.6), transparent 70%);
}

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

.case-hero h1 {
  color: #fff;
}

.case-hero .eyebrow {
  margin-bottom: 0.6rem;
  color: #cfe0ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
}

.case-hero p.lead {
  font-size: 1.15rem;
  color: rgba(232, 240, 255, 0.88);
  max-width: 640px;
}

.case-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 80px);
}

@media (min-width: 860px) {
  .case-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.case-content h2 {
  margin-top: 1.6rem;
}

.case-content ul {
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.case-content li {
  margin-bottom: 0.5rem;
}

/* Compact multi-column list (e.g. apps under investigation) */
.app-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  columns: 2;
  column-gap: 28px;
}

@media (min-width: 520px) {
  .app-list {
    columns: 3;
  }
}

.app-list li {
  break-inside: avoid;
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--color-ink);
  font-size: 0.96rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-line);
}

.app-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.app-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 14px;
  font-style: italic;
}

.app-group-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
  margin: 1.4rem 0 0.1rem;
}

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

.form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: sticky;
  top: 92px;
}

.form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.form-card .form-sub {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field .req {
  color: var(--color-accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.15);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.consent input {
  margin-top: 3px;
  width: auto;
  flex-shrink: 0;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 14px;
  text-align: center;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.form-status--error {
  display: block;
  background: #fdeaea;
  color: #a12121;
}

.form-status--ok {
  display: block;
  background: var(--color-success-bg);
  color: var(--color-success-ink);
}

/* --------------------------------------------------------------- Footer --- */

.site-footer {
  background: var(--color-ink);
  color: #c3cee0;
  font-size: 0.9rem;
  padding: 44px 0 36px;
}

.site-footer a {
  color: #fff;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.site-footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #93a3bd;
}

.site-footer__disclaimer strong {
  color: #c3cee0;
}

/* ----------------------------------------------------------- Thank-you ---- */

.centered-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

/* ----------------------------------------------------- Legal long-form ---- */

.legal {
  padding: clamp(40px, 6vw, 72px) 0;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.legal p,
.legal li {
  color: var(--color-muted);
}

/* ------------------------------------------------ Ad landing pages (lp) --- */

/* Yes/No choice buttons */
.choice-group {
  display: flex;
  gap: 12px;
}

.choice {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice:hover {
  border-color: var(--color-accent);
}

.choice:has(input:checked) {
  border-color: var(--color-accent);
  background: #eef4fd;
}

.choice input {
  width: auto;
  margin: 0;
}

/* Result messages (disqualify / thank-you) */
.lp-result {
  padding: 20px 22px;
  border-radius: 12px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.lp-result--ok {
  background: var(--color-success-bg);
  color: var(--color-success-ink);
}

.lp-result--ok a {
  color: var(--color-success-ink);
  font-weight: 600;
}

.lp-result--stop {
  background: #fdeaea;
  color: #a12121;
}

/* Hidden helper used by the landing-page script */
.is-hidden {
  display: none !important;
}

/* Trust list inside the explanation column */
.lp-why li {
  margin-bottom: 0.55rem;
}
