/* ============================================================
   LEX Word Practice — shared styles
   ============================================================ */

:root {
  /* Brand */
  --navy-deep:   #0a2a63;
  --navy:        #0d3f96;
  --navy-bright: #14509e;
  --brand:       #1a5fd4;   /* headings + links on light pages */
  --brand-dark:  #124aad;
  --accent-sky:  #8fc3f7;   /* "Made Easy" + hero accents */

  /* Ink */
  --ink:         #1c1f24;
  --ink-soft:    #3b4048;
  --muted:       #8a9099;
  --hairline:    #e6e8ec;

  /* Surfaces */
  --white:       #ffffff;
  --paper:       #ffffff;

  /* Pink (in-app review pill) */
  --pink-a:      #ff2d78;
  --pink-b:      #d6249f;

  --maxw:        1200px;
  --pad:         clamp(20px, 5vw, 64px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --radius:      14px;
  --radius-lg:   22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img {
  height: clamp(28px, 3.2vw, 34px);
  width: auto;
  display: block;
}
.logo--light img { filter: brightness(0) invert(1); } /* white on navy */
.site-footer .logo img { height: 30px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 5;
}
.site-header .wrap {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.nav {
  display: flex;
  gap: clamp(20px, 3.2vw, 52px);
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}
.nav a { color: inherit; }
.site-header--onNavy .nav a { color: #eaf1ff; }
.site-header--onNavy .nav a:hover { color: #fff; }
.site-header--light .nav a { color: var(--brand); }

.nav-toggle { display: none; }

/* ============================================================
   HOME — hero
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(120% 130% at 62% 12%, #1a5cb8 0%, var(--navy) 45%, var(--navy-deep) 100%);
  overflow: hidden;
}
.hero .site-header .wrap { padding-top: 26px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding-top: clamp(12px, 2.4vw, 28px);
  min-height: 560px;
}

.hero-copy { max-width: 560px; padding-bottom: clamp(28px, 5vw, 60px); }

.hero h1 {
  font-size: clamp(44px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.hero h1 .accent { color: #8FDEFF; display: block; font-weight: 600; }

.hero-divider {
  width: 340px;
  max-width: 60%;
  height: 2px;
  background: rgba(255,255,255,0.28);
  margin: clamp(34px, 5vw, 52px) 0;
  border: 0;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
}
.hero-points li {
  position: relative;
  padding-left: 26px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8FDEFF;
}

/* App Store badge (official SVG) */
.appstore {
  display: inline-block;
  transition: transform .15s ease, box-shadow .15s ease;
  border-radius: 9px;
}
.appstore img { height: 54px; width: auto; display: block; }
.appstore:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* Phone mockup (real device render) */
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: stretch;
  position: relative;
}
.phone-shot {
  width: min(400px, 92%);
  height: auto;
  margin-bottom: -150px;        /* bleed off the bottom of the hero */
  filter: drop-shadow(0 40px 80px rgba(3, 16, 45, 0.55));
}

/* ============================================================
   HOME — pitch section
   ============================================================ */
.pitch { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 80px); }
.pitch-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.pitch h2 {
  color: var(--brand);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 24ch;
}
.pitch h2 em { font-style: italic; font-weight: 700; }
.pitch p {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 20px;
}
/* App icon */
.tile-wrap { display: flex; justify-content: center; padding-top: 8px; }
.app-icon {
  width: clamp(120px, 16vw, 168px);
  height: auto;
  border-radius: 30px;
  filter: drop-shadow(0 22px 44px rgba(13,63,150,.35));
}

.section-rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

.center-cta { text-align: center; padding: clamp(48px, 7vw, 80px) 0 clamp(60px, 8vw, 100px); }
.center-cta .appstore img { width: 230px; height: auto; }

/* ============================================================
   CONTENT PAGES (support / privacy / terms)
   ============================================================ */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 90px); }
.doc-inner { max-width: 860px; margin-inline: auto; }
.doc h1 {
  color: var(--brand);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.doc .dates { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.doc-rule { border: 0; border-top: 1px solid var(--hairline); margin: 26px 0 34px; }

.doc h2 {
  color: var(--brand);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 40px 0 14px;
}
.doc h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  margin: 34px 0 12px;
}
.doc p { color: var(--ink-soft); margin: 0 0 16px; font-size: 16px; }
.doc ul { color: var(--ink-soft); margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc a { font-weight: 600; }
.legal { font-variant-ligatures: none; }
.contact-line { margin-top: 8px; }
.contact-line b { color: var(--ink); }
.contact-line .divider { color: var(--hairline); margin: 0 10px; }

/* FAQ accordion */
.faq { margin-top: 8px; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left;
  font-family: inherit;
  font-size: 18px; font-weight: 700; color: var(--ink);
  padding: 20px 2px;
}
.faq-q .sign {
  flex: none; color: var(--brand); font-size: 22px; line-height: 1;
  width: 22px; text-align: center;
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p { margin: 0 2px 22px; color: var(--ink-soft); font-size: 16px; }
.faq-item.open .faq-a { max-height: 420px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  max-width: none;
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(24px, 4vw, 48px); flex-wrap: wrap;
  padding-top: 40px; padding-bottom: 48px;
}
.footer-nav { display: flex; gap: clamp(20px, 3vw, 44px); font-weight: 600; font-size: 15px; }
.footer-nav a { color: var(--brand); }
.footer-legal { color: var(--ink-soft); font-size: 14px; text-align: right; line-height: 1.5; margin-left: auto; }
.footer-legal .fine { color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; padding-bottom: 0; }
  .hero-copy { padding-bottom: clamp(20px, 5vw, 36px); width: fit-content; max-width: 100%; margin-inline: auto; }
  .phone-stage { margin-top: 6px; }
  .phone-shot { width: min(330px, 78%); margin-bottom: -130px; }
  .pitch-inner { grid-template-columns: 1fr; }
  .tile-wrap { justify-content: center; padding-top: 8px; }
}

@media (max-width: 620px) {
  .nav { gap: 18px; font-size: 14px; }
  .site-header .wrap { flex-wrap: wrap; }
  .footer-legal { text-align: center; margin-left: 0; }
  .site-footer .wrap { flex-direction: column; align-items: center; text-align: center; }
  .hero-divider { max-width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .faq-a { transition: none; }
  .appstore { transition: none; }
}

:focus-visible {
  outline: 3px solid var(--accent-sky);
  outline-offset: 2px;
  border-radius: 4px;
}
