/* FrontDoor AI — marketing site */

:root {
  --navy: #0B1F3A;
  --navy-deep: #071628;
  --navy-soft: #143052;
  --amber: #E8A838;
  --amber-hover: #d4962a;
  --amber-soft: #f5d9a0;
  --white: #ffffff;
  --off-white: #F7F5F0;
  --muted: #5a6a7a;
  --border: rgba(11, 31, 58, 0.1);
  --shadow: 0 8px 30px rgba(11, 31, 58, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

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

.container.narrow {
  width: min(100% - 2rem, 720px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-lockup:hover {
  color: var(--navy);
  text-decoration: none;
}

.logo-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-text em {
  font-style: normal;
  color: var(--amber);
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-soft);
}

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

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a:not(.btn) {
  text-decoration: none;
  padding: 0.75rem 0.5rem;
  font-weight: 500;
  border-radius: 8px;
}

.mobile-nav a:not(.btn):hover {
  background: var(--off-white);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

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

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--off-white);
}

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

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

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 168, 56, 0.12), transparent 55%),
    linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  padding: 3.5rem 0 4rem;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-hover);
}

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

.tagline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: var(--navy-soft);
}

.subcopy {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36em;
}

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

/* Problem strip */
.problem {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.problem-grid {
  display: grid;
  gap: 2rem;
}

.problem-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--amber);
}

.problem-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.975rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Offer cards */
.offer {
  background: var(--white);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.card-featured {
  background: var(--white);
  border-color: rgba(232, 168, 56, 0.45);
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.1);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--navy);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.card-step {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

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

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

.card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* Who */
.who {
  background: var(--off-white);
}

.who-grid {
  display: grid;
  gap: 1.25rem;
}

.who-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}

.who-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(232, 168, 56, 0.15);
  color: var(--navy);
}

.who-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

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

.who-note {
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  font-style: italic;
}

/* How */
.how {
  background: var(--white);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
  counter-reset: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--off-white);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}

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

/* FAQ */
.faq {
  background: var(--off-white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--amber);
  flex-shrink: 0;
}

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

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.faq-item a {
  color: var(--navy);
  font-weight: 500;
}

/* Final CTA */
.final-cta {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.final-cta p {
  margin: 0 auto 1.75rem;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.footer-logo:hover {
  color: var(--white);
}

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

.footer-brand {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-brand em {
  font-style: normal;
  color: var(--amber);
}

.footer-tag {
  margin: 0;
  font-size: 0.9375rem;
}

.footer-contact {
  margin: 0;
}

.footer-contact a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
  color: var(--amber-soft);
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Desktop */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero {
    padding: 5rem 0 5.5rem;
  }

  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .card-featured {
    transform: translateY(-4px);
  }

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

  .steps {
    gap: 1.25rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .footer-tag {
    flex: 1 1 200px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 5.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .menu-toggle span {
    transition: none;
  }
}
