:root {
  --ink: #102033;
  --muted: #667085;
  --line: #d9e2ea;
  --paper: #ffffff;
  --wash: #f5f8f8;
  --navy: #0a2342;
  --blue: #19537a;
  --teal: #1f8a8a;
  --gold: #d4af37;
  --gold-soft: #f6e8b8;
  --green: #3f7d58;
  --shadow: 0 18px 48px rgba(16, 32, 51, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  min-height: 80px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 42px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 6px;
}

.brand-mark img {
  position: absolute;
  top: 1px;
  left: -22px;
  width: 90px;
  max-width: none;
}

.brand-name {
  color: var(--navy);
  font-size: 25px;
  font-weight: 820;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  flex: 1;
  min-width: min(100%, 520px);
  overflow: visible;
  scrollbar-width: none;
  white-space: normal;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: #24394f;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    gap: 10px 24px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 10px 16px;
    flex-basis: 100%;
  }

  .main-nav a {
    padding: 6px 0;
  }
}

.main-nav a:hover {
  border-color: var(--gold);
}

.section,
.page-intro,
.hero {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 64px);
}

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: clamp(46px, 5vw, 76px);
  padding-bottom: clamp(44px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 58%, rgba(245, 248, 248, 0.76) 100%),
    url("/legalwins-hero.png") center center / cover no-repeat;
}

.product-hero {
  min-height: 0;
  padding-top: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(16px, 2vw, 28px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 38%, rgba(255, 255, 255, 0.68) 66%, rgba(245, 248, 248, 0.72) 100%),
    url("/legalwins-hero.png") center center / cover no-repeat;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero + .section {
  padding-top: clamp(16px, 2vw, 28px);
}

.narrow {
  width: min(820px, 100%);
}

.hero-grid,
.split,
.contact-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 86px;
  line-height: 0.96;
  letter-spacing: 0;
}

.page-intro h1 {
  font-size: 64px;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-copy p {
  max-width: 590px;
  color: #455a70;
  font-size: 20px;
}

.button-row,
.center-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button-row.centered,
.center-row {
  justify-content: center;
}

.button,
.store-buttons button,
.store-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1;
}

.button.primary {
  color: #112033;
  background: linear-gradient(180deg, #f6dc75, var(--gold));
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.24);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-visual {
  display: none;
}

.hero-product,
.stacked-preview {
  display: grid;
  gap: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 22px;
}

.trust-row span,
.pill-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: #1d354b;
  background: #ffffff;
  border: 1px solid #d7e5e5;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
}

.trust-row span {
  margin: 0;
}

.soft {
  background: var(--wash);
}

.dark {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(10, 35, 66, 0.96), rgba(31, 138, 138, 0.86)),
    #0a2342;
}

.dark p,
.dark .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  min-height: 250px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.07);
}

.info-card.compact {
  min-height: 0;
}

.info-card h2 {
  font-size: 24px;
  line-height: 1.18;
}

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.info-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  color: var(--muted);
  line-height: 1.55;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.note-item {
  padding: 20px;
  color: #21364c;
  background: #fffdf5;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.45;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit-strip article {
  padding: 22px;
  background: var(--paper);
  border-left: 4px solid var(--teal);
  box-shadow: 0 10px 32px rgba(16, 32, 51, 0.08);
}

.device-scene {
  position: relative;
  min-height: 420px;
}

.laptop-preview,
.phone-preview,
.download-panel,
.contact-form,
.video-placeholder {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.laptop-preview {
  width: min(540px, 100%);
  padding: 18px;
}

.preview-bar {
  display: flex;
  gap: 6px;
  padding-bottom: 14px;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d3dc;
}

.preview-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  min-height: 144px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(31, 138, 138, 0.14), rgba(212, 175, 55, 0.12)),
    #f8fbfb;
  border-radius: var(--radius);
}

.preview-map span,
.country-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d7e5e5;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.preview-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: #f7f9fa;
  border-radius: var(--radius);
}

.preview-list span {
  color: var(--muted);
}

.phone-preview {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 206px;
  min-height: 350px;
  padding: 26px 16px 18px;
  background: #102033;
  border: 8px solid #ffffff;
}

.phone-notch {
  width: 62px;
  height: 6px;
  margin: 0 auto 22px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.phone-title {
  color: #ffffff;
  font-weight: 800;
}

.phone-field,
.phone-button {
  min-height: 44px;
  margin-top: 12px;
  padding: 13px;
  border-radius: var(--radius);
}

.phone-field {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
}

.phone-button {
  color: var(--ink);
  background: var(--gold);
  text-align: center;
  font-weight: 800;
}

.video-placeholder {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(10, 35, 66, 0.08), rgba(31, 138, 138, 0.12)),
    #ffffff;
}

.video-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.download-panel {
  padding: 30px;
}

.store-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 24px 0 16px;
}

.store-buttons.linked {
  display: flex;
}

.store-buttons button {
  color: var(--muted);
  background: #f7f9fa;
  border-color: var(--line);
  cursor: not-allowed;
}

.store-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  line-height: 0;
  overflow: visible;
}

.store-buttons a img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.store-buttons a[data-store="apple"] {
  width: 120px;
  height: 40px;
}

.store-buttons a[data-store="apple"] img {
  width: 120px;
  height: 40px;
}

.store-buttons a[data-store="google"] {
  width: 134px;
  height: 40px;
}

.store-buttons a[data-store="google"] img {
  width: 134px;
  height: 40px;
}

.stacked-button {
  margin-top: 10px;
}

.fine-print {
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-step span {
  color: var(--gold);
  font-size: 20px;
  font-weight: 850;
}

.timeline-step strong {
  color: var(--ink);
}

.connect-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.connect-panel {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.connect-panel p {
  margin-bottom: 12px;
}

.dark-panel {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-panel h3 {
  color: #ffffff;
}

.country-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
}

.faq-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.faq-preview .section-heading {
  margin: 0;
}

.faq-preview .button {
  margin-top: 8px;
}

.faq-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.faq-column {
  padding: clamp(22px, 3vw, 34px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(16, 32, 51, 0.07);
}

details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.05);
}

summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.35;
}

summary::marker {
  content: "";
}

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

summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--green);
  background: #eef6f2;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

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

details p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.58;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step span {
  color: var(--gold);
  font-size: 24px;
  font-weight: 850;
}

.step h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.contact-grid {
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.contact-form h2 {
  margin-bottom: 4px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #34495e;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccd8e2;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
}

.checkbox-label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-weight: 500;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.site-footer {
  padding: 44px clamp(18px, 5vw, 64px) 24px;
  color: #dce7ef;
  background: #0f2336;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1.2fr;
  gap: 32px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p {
  color: #b9c9d6;
  font-size: 15px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-size: 14px;
}

.legal-links {
  display: grid;
  gap: 9px;
}

.legal-links a {
  color: #b9c9d6;
  font-size: 14px;
  line-height: 1.35;
}

.legal-links a:hover {
  color: #ffffff;
}

.copyright {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #91a5b7;
  font-size: 14px;
}

@media (max-width: 1020px) {
  .hero {
    align-items: flex-start;
    padding-top: 46px;
    padding-bottom: 56px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 58%, rgba(245, 248, 248, 0.8) 100%),
      url("/legalwins-hero.png") center center / cover no-repeat;
  }

  .product-hero {
    min-height: auto;
    padding-bottom: 22px;
    background-position: 58% center;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .two-column,
  .faq-preview,
  .faq-page-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .faq-list-grid,
  .note-list,
  .benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 64px;
  }

  .page-intro h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
    padding: 10px 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 36px;
  }

  .brand-mark img {
    left: -19px;
    width: 78px;
  }

  .brand-name {
    font-size: 22px;
  }

  .main-nav {
    gap: 14px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 44px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(245, 248, 248, 0.86) 100%),
      url("/legalwins-hero.png") 58% center / cover no-repeat;
  }

  .product-hero {
    padding-bottom: 20px;
  }

  h1 {
    font-size: 48px;
  }

  .page-intro h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .card-grid.three,
  .faq-list-grid,
  .note-list,
  .benefit-strip,
  .store-buttons.linked {
    grid-template-columns: 1fr;
  }

  .device-scene {
    min-height: 560px;
  }

  .phone-preview {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .video-placeholder {
    grid-template-columns: 1fr;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

}
