/* =========================================================
   Lexaris — Landing page styles
   Palette mirrors the app theme (src/styles/themeColors.js)
   ========================================================= */

:root {
  /* Brand */
  --navy: #141f40;
  --navy-2: #1b2a4a;
  --blue: #3d5fc7;
  --blue-tint: #9faee0;
  --gold: #b88c5a;
  --gold-light: #f0e1c6;

  /* Neutrals */
  --bg: #f8f8f8;
  --surface: #ffffff;
  --line: #e6e7eb;
  --muted: #7d7d7d;
  --ink: #141f40;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 31, 64, 0.06),
    0 8px 24px rgba(20, 31, 64, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 31, 64, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.9rem;
}

.eyebrow-gold {
  color: var(--gold);
}

.accent {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 3px solid var(--blue-tint);
  outline-offset: 2px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
}
.btn-primary:hover {
  --btn-bg: #0d1530;
}

.btn-gold {
  --btn-bg: var(--gold);
  --btn-fg: #2a2010;
}
.btn-gold:hover {
  --btn-bg: #a87c4a;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  --btn-bg: #fff;
  border-color: var(--navy);
}

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 248, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand-logo {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
/* Respect the [hidden] attribute toggled by JS (overrides display:flex) */
.mobile-nav:not([hidden]) {
  display: flex;
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn {
  border-bottom: 0;
  margin-top: 10px;
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

/* Concentric rings motif (echoes the marketing artwork) */
.hero-rings {
  position: absolute;
  top: -260px;
  right: -260px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 0 32%,
    rgba(61, 95, 199, 0.06) 32% 33%,
    transparent 33% 48%,
    rgba(184, 140, 90, 0.08) 48% 49%,
    transparent 49% 66%,
    rgba(20, 31, 64, 0.05) 66% 67%,
    transparent 67%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 0.5em;
}
.lead {
  font-size: 1.18rem;
  color: #41496a;
  max-width: 38ch;
  margin-bottom: 1.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.1rem;
}
.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  position: relative;
  width: min(100%, 480px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-light) 100%);
  padding-top: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: #fff;
}
.hero-card img {
  position: relative;
  margin: 0 auto;
  width: 92%;
  height: auto;
}

/* ----------------------------- Trust strip ----------------------------- */
.trust-strip {
  background: var(--navy);
  color: #fff;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 24px;
}
.trust-word {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trust-dot {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

/* ----------------------------- Section heads ----------------------------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.section-head-left {
  text-align: left;
  margin-left: 0;
}
.section-sub {
  font-size: 1.1rem;
  color: #41496a;
  margin: 0;
}

/* ----------------------------- Features ----------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-light);
  color: var(--navy);
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
}
.feature-card h3 {
  margin-bottom: 0.5em;
}
.feature-card p {
  color: #41496a;
  margin: 0;
  font-size: 0.98rem;
}

/* ----------------------------- How it works ----------------------------- */
.how {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.step h3 {
  margin-bottom: 0.4em;
}
.step p {
  color: #41496a;
  margin: 0;
  font-size: 0.98rem;
}

/* ----------------------------- Audience ----------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.audience-card {
  border-radius: var(--radius);
  padding: 38px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.audience-card-alt {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.audience-card-alt h3 {
  color: #fff;
}
.audience-tag {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}
.audience-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.check-list {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23141F40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.audience-card-alt .check-list li::before {
  background-color: var(--gold);
}

/* ----------------------------- FAQ ----------------------------- */
.faq {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.faq-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 4px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 28px 16px 0;
  position: relative;
  color: var(--navy);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  margin: 0 0 16px;
  color: #41496a;
}
.faq details a {
  color: var(--blue);
  text-decoration: underline;
}

/* ----------------------------- Final CTA ----------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
}
.cta-rings {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 15% 120%,
      transparent 0 28%,
      rgba(159, 174, 224, 0.16) 28% 28.4%,
      transparent 28.4% 44%,
      rgba(184, 140, 90, 0.18) 44% 44.4%,
      transparent 44.4% 62%,
      rgba(159, 174, 224, 0.1) 62% 62.4%,
      transparent 62.4%
    );
  pointer-events: none;
}
.cta-inner {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 24px;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 0.4em;
}
.cta-band p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin: 0 auto 2rem;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 24px 40px;
}
.footer-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.footer-brand p {
  margin: 10px 0 0;
  max-width: 32ch;
  font-size: 0.95rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.96rem;
  transition: color 0.2s ease;
  width: fit-content;
}
.footer-col a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-up:hover {
  color: var(--gold-light);
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-card {
    width: min(100%, 380px);
  }
  .faq-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .feature-grid,
  .steps,
  .audience-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
