/* Queen's Tracker public homepage — draft. Matches the live app's soft blue / clean white look. */
@font-face {
  font-family: "Queen Nunito";
  src: url("../brand/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #5bb8e8;
  --blue-deep: #0b6a96;
  --ink: #10233a;
  --muted: #33485c;
  --bg: #ffffff;
  --bg-soft: #f3f9fd;
  --card: #ffffff;
  --border: #cfe6f3;
  --shadow: 0 1px 2px rgba(16, 35, 58, 0.06), 0 8px 24px rgba(91, 184, 232, 0.14);
  --radius: 1.25rem;
  --font: "Queen Nunito", Calibri, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --content: 68rem;
  --prose: 42rem;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue-deep);
}

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

html { scroll-behavior: smooth; }

html:focus-within { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    url("../brand/queen-doodles.svg") top / 700px repeat-y,
    linear-gradient(145deg, #eaf6fc, #f7fbfd 58%, #fff);
  background-color: var(--bg);
  min-height: 100dvh;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue-deep);
  text-underline-offset: 0.15em;
}

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.skip:focus { top: 0.75rem; }

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

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

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

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo cta"
    "nav nav";
  align-items: center;
  gap: 0.35rem 0.8rem;
  padding: 0.55rem 0 0.65rem;
}
.logo { grid-area: logo; }
.header-cta { grid-area: cta; }
.header-inner .nav { grid-area: nav; justify-content: flex-start; }
@media (min-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav cta";
    padding: 0.65rem 0;
  }
  .header-inner .nav { justify-content: flex-end; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  flex: 0 1 auto;
}

.logo img {
  width: min(188px, 46vw);
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

.nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.35rem 0.15rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 3px rgba(11, 106, 150, 0.18);
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); color: var(--ink); }

.btn-primary {
  background: var(--blue);
  color: var(--ink);
}

.btn-primary:hover { background: #4aaee2; color: var(--ink); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--blue);
  box-shadow: none;
}

.nav .btn { margin-left: 0.25rem; }

/* Hero */
.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 0 2.25rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    padding: 2.5rem 0 3rem;
  }
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--blue-deep);
  margin: 0 0 0.6rem;
}

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

.lede {
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.price-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-art img {
  width: min(420px, 100%);
}

/* Sections */
section { padding: 2rem 0; }

.section-intro {
  max-width: 40rem;
  margin-bottom: 1.4rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards.features { grid-template-columns: 1fr 1fr; }
  .cards.steps, .cards.guides, .cards.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem 1.3rem;
}

.card h3 { margin-bottom: 0.4rem; }

.card p { margin: 0 0 0.6rem; }
.card p:last-child { margin-bottom: 0; }

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #e8f6fc;
  color: var(--blue-deep);
  font-weight: 900;
  margin-bottom: 0.7rem;
}

/* Pricing */
.pricing {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .pricing { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}

.price-box {
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}

.price-box .amount {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin: 0.2rem 0 0.3rem;
}

.price-box .amount span {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--muted);
}

.price-box ul {
  margin: 1rem 0 1.2rem;
  padding-left: 1.15rem;
}

.price-box li { margin: 0.35rem 0; }

/* FAQ */
.faq { max-width: 46rem; }

details.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin: 0.65rem 0;
  padding: 0.15rem 0.2rem;
  box-shadow: 0 1px 2px rgba(16, 35, 58, 0.04);
}

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

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

details.faq-item summary::after {
  content: "+";
  font-weight: 900;
  color: var(--blue-deep);
  font-size: 1.3rem;
  line-height: 1;
}

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

details.faq-item .answer {
  padding: 0 1rem 1rem;
  color: var(--ink);
}

details.faq-item .answer p { margin: 0 0 0.7rem; }
details.faq-item .answer p:last-child { margin-bottom: 0; }

/* Disclaimer */
.disclaimer {
  background: #fff8e8;
  border-left: 4px solid #e0b33a;
  border-radius: 0 1rem 1rem 0;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.disclaimer h2, .disclaimer h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.disclaimer p { margin: 0.4rem 0 0; }

/* Article */
.article-hero { padding: 1.75rem 0 0.5rem; }
.article-hero p.meta { color: var(--muted); margin: 0 0 0.8rem; font-size: 0.95rem; }

.article {
  padding: 0.5rem 0 2.5rem;
}

.article p { margin: 0 0 1rem; }
.article ul, .article ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.article li { margin: 0.3rem 0; }
.article h2 { margin-top: 1.8rem; }

.cta-banner {
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 640px) {
  .cta-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* About / support */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}

.socials a:hover { border-color: var(--blue); }

/* Footer */
.site-footer {
  background: #10233a;
  color: #e8f3f9;
  padding: 2rem 0 1.5rem;
  margin-top: 1rem;
}

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

.footer-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }

.legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.88rem;
  color: #c5d6e2;
}

.legal p { margin: 0.4rem 0; }

/* Guides index */
.guide-list .card a.title {
  text-decoration: none;
  color: inherit;
}
.guide-list .card a.title:hover h3 { color: var(--blue-deep); }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
