/* CrackLog — crack-log.com */

:root {
  --navy: #1b3b6f;
  --navy-dark: #0f2447;
  --teal: #219ebc;
  --teal-light: #8ecae6;
  --mint: #b4ebaf;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1a1c1e;
  --text-muted: #44474e;
  --border: #e1e2ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(27, 59, 111, 0.08);
  --shadow-lg: 0 12px 48px rgba(27, 59, 111, 0.12);
  --max-width: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ── Layout ── */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  background: var(--navy);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--navy-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0 1rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.625rem 0;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Hero ── */

.hero {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 45%, #1a5a7a 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(33, 158, 188, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(180, 235, 175, 0.1), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(100%, 300px);
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.phone-mockup-header img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.phone-mockup-header span {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}

.mock-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  flex: 1;
}

.mock-card-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.mock-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.mock-card-sub {
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}

.mock-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  border-radius: 3px;
}

/* ── Sections ── */

section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Plans ── */

.plans-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.plan-card.featured {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.plan-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.plan-card .plan-price {
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  text-align: left;
}

.plan-card li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.plan-card.featured li::before {
  color: var(--mint);
}

/* ── CTA ── */

.cta-section {
  text-align: center;
  padding: 4rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1a5a7a 100%);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  color: #fff;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.cta-box p {
  opacity: 0.85;
  margin: 0 0 1.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* ── Legal pages ── */

.legal-hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0;
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.legal-hero .effective-date {
  opacity: 0.75;
  font-size: 0.9375rem;
}

.legal-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin: -2rem auto 4rem;
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

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

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.legal-content a {
  word-break: break-all;
}

.legal-toc {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.legal-toc h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem !important;
  color: var(--text-muted) !important;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.legal-toc a {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Footer ── */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 22rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

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

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

  .plan-card.featured {
    transform: none;
  }

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

  .legal-toc ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .legal-content {
    padding: 1.5rem;
    margin-top: -1.5rem;
  }

  section {
    padding: 3.5rem 0;
  }
}
