/* ───────────────────────────────────────────
   Praetor Marketing — Design System
   Flat, clean, minimal — matches app UI
   ─────────────────────────────────────────── */

@font-face {
  font-family: "PT Root UI";
  src: url("fonts/pt-root-ui-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Root UI";
  src: url("fonts/pt-root-ui-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Root UI";
  src: url("fonts/pt-root-ui-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Root UI";
  src: url("fonts/pt-root-ui-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #111111;
  --foreground-secondary: #555555;
  --foreground-muted: #999999;
  --border: #e5e5e5;
  --muted: #fafafa;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PT Root UI", ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

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

/* ── Section Label (reused across sections) ── */

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground-muted);
}

/* ── Buttons ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--foreground);
  color: var(--background);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 150ms, opacity 150ms;
}
.btn-primary:hover {
  background: #333333;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 150ms;
}
.btn-secondary:hover {
  background: var(--muted);
}

/* ── Navigation ── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--background);
  z-index: 100;
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.nav-logo .esq {
  font-weight: 300;
  color: var(--foreground-muted);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  color: var(--foreground-secondary);
  letter-spacing: 0.02em;
  transition: color 150ms;
}
.nav-links a:hover {
  color: var(--foreground);
}

.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-portal {
  font-size: 11px;
  color: var(--foreground-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: border-color 150ms;
  position: relative;
}
.nav-portal:hover {
  border-color: var(--foreground-muted);
}

.nav-cta {
  font-size: 12px;
  font-weight: 400;
  padding: 8px 20px;
  background: var(--foreground);
  color: var(--background);
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 150ms;
}
.nav-cta:hover {
  background: #333333;
}

/* Firm login popover */
.firm-login-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  z-index: 200;
  width: 260px;
}
.firm-login-popover.open {
  display: block;
}
.firm-login-popover label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-muted);
  margin-bottom: 8px;
}
.firm-login-input-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.firm-login-input-row input {
  flex: 1;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 300;
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  color: var(--foreground);
  min-width: 0;
}
.firm-login-input-row input:focus {
  border-color: var(--foreground);
}
.firm-login-input-row .domain-suffix {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--foreground-muted);
  background: var(--muted);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}

/* ── Hero ── */

.hero {
  padding: 120px 48px 100px;
  max-width: 900px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero h1 .muted {
  color: var(--foreground-muted);
}

.hero-subtext {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--foreground-secondary);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
}

/* ── Value Statement ── */

.value-statement {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}
.value-statement .inner {
  max-width: 900px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
.value-statement .text {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.value-statement .text .muted {
  color: var(--foreground-muted);
}

/* ── Capabilities Grid ── */

.capabilities {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.cap {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cap:nth-child(3n) {
  border-right: none;
}
.cap:nth-child(n + 7) {
  border-bottom: none;
}

.cap-num {
  font-size: 11px;
  color: var(--foreground-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.cap h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.cap p {
  font-size: 13px;
  color: var(--foreground-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.capabilities-also {
  margin-top: 24px;
  font-size: 13px;
  color: var(--foreground-muted);
  line-height: 1.7;
}

/* ── How It Works ── */

.how-it-works {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}
.how-it-works .inner {
  max-width: 900px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
}
.step-num {
  font-size: 32px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
}
.step h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: var(--foreground-secondary);
  line-height: 1.7;
}

/* ── Closing CTA ── */

.closing-cta {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-cta h2 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.closing-cta p {
  font-size: 14px;
  color: var(--foreground-secondary);
  margin-bottom: 32px;
}

/* ── Footer ── */

.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-size: 11px;
  color: var(--foreground-muted);
}
.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  font-size: 11px;
  color: var(--foreground-muted);
  transition: color 150ms;
}
.footer-right a:hover {
  color: var(--foreground);
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .cap:nth-child(2n) {
    border-right: none;
  }
  .cap:nth-child(n + 7) {
    border-bottom: 1px solid var(--border);
  }
  .cap:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 80px 24px 60px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-subtext {
    font-size: 15px;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas a {
    text-align: center;
  }

  .value-statement {
    padding: 48px 24px;
  }
  .value-statement .inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .value-statement .text {
    font-size: 22px;
  }

  .capabilities {
    padding: 48px 24px;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .cap {
    border-right: none !important;
  }
  .cap:last-child {
    border-bottom: none;
  }

  .how-it-works {
    padding: 48px 24px;
  }
  .how-it-works .inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .closing-cta {
    padding: 64px 24px;
  }
  .closing-cta h2 {
    font-size: 28px;
  }

  .footer {
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Hide hamburger on desktop (shown via media query on mobile) */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger svg {
  width: 20px;
  height: 20px;
  color: var(--foreground);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 150;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: 18px;
  font-weight: 300;
  color: var(--foreground);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--foreground-muted);
}
