/* CaseHelp site styles */

:root {
  --violet: #6A5BD0;
  --navy: #1F1A3D;
  --mint: #6FE0D0;
  --lilac: #EEE6FF;
  --lilac-deep: #DCCFFB;
  --white: #FFFFFF;
  --ink: #1F1A3D;
  --ink-soft: #4A4470;
  --line: #D6CBF5;
  --g-mortgage: linear-gradient(135deg, #3FB5BC 0%, #6A5BD0 100%);
  --g-bridging: linear-gradient(135deg, #6FBF5A 0%, #2E8A5E 100%);
  --g-life: linear-gradient(135deg, #9C82DE 0%, #D9587A 100%);
  --g-ci: linear-gradient(135deg, #E8A33A 0%, #D9602E 100%);
  --g-ip: linear-gradient(135deg, #3AA892 0%, #1D5878 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(31, 26, 61, 0.12);
  --font: "Nunito", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--violet);
  font-weight: 700;
}

a:hover,
a:focus {
  color: var(--navy);
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--mint);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-mint {
  background: var(--mint);
  color: var(--navy);
}

.btn-mint:hover,
.btn-mint:focus {
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(111, 224, 208, 0.45);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus {
  color: var(--white);
  background: #2D2658;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline:hover,
.btn-outline:focus {
  color: var(--navy);
  border-color: var(--violet);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand:hover,
.brand:focus {
  color: var(--white);
}

.brand img {
  border-radius: 10px;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.wordmark-help {
  color: var(--mint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-actions .btn {
  padding: 9px 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 20px;
    background: var(--navy);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 1.1rem;
  }

  .nav-actions {
    flex-direction: column;
  }

  .nav-actions .btn {
    padding: 14px 20px;
  }
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--violet);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-white .eyebrow {
  background: var(--lilac);
}

/* Hero */

.hero {
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-note strong {
  color: var(--navy);
}

.page-hero {
  padding: 56px 0 48px;
  text-align: center;
}

.page-hero .hero-lead {
  margin: 0 auto;
}

/* Case cards */

.card-stack {
  display: grid;
  gap: 16px;
}

.case-card {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: var(--shadow);
}

.case-card h3 {
  margin: 12px 0 6px;
  font-size: 1.2rem;
}

.case-card p {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.95;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.88rem;
}

.pill-type {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.pill-count {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.case-time {
  opacity: 0.9;
}

.card-mortgage {
  background: var(--g-mortgage);
}

.card-mortgage .pill-count {
  color: #4E78C6;
}

.card-bridging {
  background: var(--g-bridging);
}

.card-bridging .pill-count {
  color: #2E8A5E;
}

.card-life {
  background: var(--g-life);
}

.card-life .pill-count {
  color: #B6597F;
}

.card-ci {
  background: var(--g-ci);
}

.card-ci h3,
.card-ci p,
.card-ci .case-meta {
  font-weight: 800;
  font-size: 1rem;
}

.card-ci .pill-count {
  color: #C2552A;
}

.card-ip {
  background: var(--g-ip);
}

.card-ip .pill-count {
  color: #1D5878;
}

/* Product types */

.type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.type-card {
  padding: 24px 20px;
  min-height: 170px;
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: var(--shadow);
}

.type-card h3 {
  font-size: 1.15rem;
}

.type-card p {
  margin: 0;
  font-size: 0.95rem;
}

.type-card.card-ci p {
  font-weight: 800;
}

/* Steps and features */

.step-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.panel {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-white .panel {
  background: var(--lilac);
  box-shadow: none;
}

.panel p:last-child {
  margin-bottom: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-mark {
  display: block;
  width: 40px;
  height: 8px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--mint);
}

/* Split blocks */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tick-list {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding: 6px 0 6px 34px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint);
}

.tick-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 5px;
  height: 9px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cross-list li::before {
  background: #F7C9D4;
}

.cross-list li::after {
  left: 5px;
  top: 20px;
  width: 10px;
  height: 0;
  border-width: 2px 0 0 0;
  border-color: #9B2343;
  transform: none;
}

.profile-demo {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--g-mortgage);
  font-weight: 900;
  font-size: 1.2rem;
}

.handle {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mint);
}

.hidden-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.hidden-row span:last-child {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

/* FAQs */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-group-title {
  margin: 40px 0 16px;
  font-size: 1.4rem;
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq {
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(31, 26, 61, 0.06);
}

.section-white .faq {
  background: var(--lilac);
  box-shadow: none;
}

.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--white);
  font-weight: 900;
  line-height: 28px;
  text-align: center;
}

.faq[open] summary::after {
  content: "-";
}

.faq-body {
  padding: 0 22px 18px;
  color: var(--ink-soft);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-more {
  margin-top: 24px;
  text-align: center;
}

/* CTA band */

.cta-band {
  padding: 56px 40px;
  border-radius: 30px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-band p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-band .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* App stores */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  line-height: 1.2;
}

.store-badge small {
  font-size: 0.75rem;
  opacity: 0.75;
}

.store-badge strong {
  font-size: 1.1rem;
}

/* Ad formats */

.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sponsored-demo {
  padding: 22px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.sponsored-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Forms */

.form-card {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-weight: 800;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
}

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

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.97rem;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--violet);
  flex-shrink: 0;
}

.form-error {
  margin: 0;
  color: #9B2343;
  font-weight: 800;
}

.form-small {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

/* Legal pages */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal h2 {
  margin-top: 1.6em;
  font-size: 1.45rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.draft-note {
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #FFF4D6;
  color: #6B4A00;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--lilac);
}

/* Footer */

.site-footer {
  margin-top: 72px;
  padding: 56px 0 28px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 340px;
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--mint);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
  text-decoration: underline;
}

.footer-base {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.88rem;
}

.footer-company {
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  margin: 0;
  font-weight: 700;
}

/* Responsive */

@media (max-width: 1020px) {
  .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .ad-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .type-grid,
  .feature-grid-4,
  .form-grid,
  .check-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .type-card {
    min-height: 0;
  }

  .form-card,
  .legal {
    padding: 24px 20px;
  }

  .cta-band {
    padding: 40px 22px;
  }

  .btn-row .btn {
    width: 100%;
  }
}

.btn-row-center {
  justify-content: center;
}
