/* ============================================================
   ParentQA.com — Shared Stylesheet
   Mobile-first. Designed to match the ParentQA brand mockup.

   DESIGN TOKENS are at the top — edit colors, fonts, and
   spacing here to restyle the entire site at once.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --navy:          #1B2C6B;   /* Primary navy — header, hero, info blocks */
  --navy-dark:     #14235A;   /* Slightly darker navy — nav dropdown bg */
  --navy-mid:      #223480;   /* Mid navy — "HOW IT WORKS" banner */
  --gold:          #C9A227;   /* Brand gold — logo, step numbers, bullets */
  --gold-hover:    #B08B18;   /* Gold hover state */
  --green:         #2D6A4F;   /* Privacy page accent */
  --green-bg:      #EAF4EE;   /* Privacy card background tint */

  /* Neutral Colors */
  --white:         #FFFFFF;
  --off-white:     #F7F7F5;
  --border:        #E0E0E8;
  --text:          #1A1A2E;   /* Primary body text */
  --text-mid:      #4A4A6A;   /* Secondary/muted text */
  --text-light:    #7A7A9A;   /* Tertiary text */

  /* Typography */
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --text-xs:       0.8125rem; /* 13px */
  --text-sm:       0.875rem;  /* 14px */
  --text-base:     1rem;      /* 16px */
  --text-lg:       1.125rem;  /* 18px */
  --text-xl:       1.25rem;   /* 20px */
  --text-2xl:      1.5rem;    /* 24px */
  --text-3xl:      1.875rem;  /* 30px */

  /* Spacing */
  --sp-xs:   0.375rem;
  --sp-sm:   0.625rem;
  --sp-md:   1rem;
  --sp-lg:   1.5rem;
  --sp-xl:   2rem;
  --sp-2xl:  3rem;

  /* Layout */
  --max-w:   480px;           /* Max content width (mobile-first) */
  --px:      1.25rem;         /* Horizontal page padding */
  --radius:  6px;
  --radius-sm: 3px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol { list-style: none; }

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

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* Logo */
.nav-logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Dropdown nav (mobile) */
.nav-links {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-links.is-open {
  display: flex;
}

.nav-links li a {
  display: block;
  padding: 0.75rem var(--px);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.015em;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.15s, color 0.15s;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Desktop nav — inline links */
@media (min-width: 620px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    background: none;
    gap: 0.125rem;
    padding: 0;
  }

  .nav-links li a {
    padding: 0.4rem 0.65rem;
    border-top: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
  }

  .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--navy);
  padding: var(--sp-2xl) var(--px);
  text-align: center;
}

.hero p {
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

/* ============================================================
   HOW IT WORKS BANNER
   ============================================================ */
.hiw-banner {
  background: var(--navy-mid);
  padding: 0.875rem var(--px);
  text-align: center;
  cursor: default;
}

.hiw-banner span {
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.steps-section {
  padding: var(--sp-xl) 0;
}

.steps-section .container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.step-text {
  font-size: var(--text-base);
  line-height: 1.55;
  padding-top: 0.6rem;
  color: var(--text);
}

/* ============================================================
   ABOUT BOX
   ============================================================ */
.about-section {
  padding: 0 0 var(--sp-xl);
}

.about-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  background: var(--off-white);
}

.about-box p {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.65;
}

.about-box .operator {
  text-align: right;
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--sp-xs);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-lg);
}

.faq-group {
  margin-bottom: var(--sp-lg);
}

.faq-group-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  margin-bottom: var(--sp-md);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.faq-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Gold square bullet */
.faq-item::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: var(--text);
  border-radius: 50%;
  margin-top: 0.42rem;
}

.faq-item dt {
  display: inline;
  font-weight: 700;
}

.faq-item dd {
  display: inline;
  color: var(--text-mid);
  margin-left: 0.2rem;
}

/* ============================================================
   PRIVACY & SAFETY (homepage compliance blocks)
   ============================================================ */
.compliance-section {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--border);
}

.compliance-section h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: underline;
  margin-bottom: var(--sp-md);
}

/* ============================================================
   INFO BLOCKS (How to Stop / Need Help / Supported Commands)
   ============================================================ */
.info-block {
  padding: var(--sp-xl) var(--px);
}

.info-block.navy {
  background: var(--navy);
  color: var(--white);
}

.info-block.gold {
  background: var(--gold);
  color: var(--white);
}

.info-block-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.info-block h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--sp-md);
}

.info-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-block ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* Colored square bullet */
.info-block ul li::before {
  content: '';
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  margin-top: 0.22rem;
  background: var(--gold);
}

.info-block.gold ul li::before {
  background: rgba(255, 255, 255, 0.75);
}

.info-block a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--sp-lg) var(--px);
  text-align: center;
}

.site-footer p {
  font-size: var(--text-sm);
  color: var(--text-mid);
}

.site-footer a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   PRIVACY PAGE — specific styles
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: var(--sp-xl) var(--px);
}

.page-hero h1 {
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.privacy-tagline {
  background: var(--green);
  padding: var(--sp-md) var(--px);
}

.privacy-tagline p {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 600;
  max-width: var(--max-w);
  margin: 0 auto;
}

.privacy-cards {
  padding: var(--sp-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.privacy-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: var(--sp-lg);
  background: var(--white);
}

.privacy-card h2 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--sp-sm);
}

.privacy-card p {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.65;
}

.privacy-card a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   TERMS PAGE — specific styles
   ============================================================ */
.terms-body {
  padding: var(--sp-xl) 0;
}

.terms-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-xl);
  background: var(--white);
}

.terms-entry {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}

.terms-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.terms-entry h2 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-sm);
}

.terms-entry p {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.65;
}

.terms-entry a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — Wider screens
   Keep mobile feel but let content breathe a little
   ============================================================ */
@media (min-width: 540px) {
  .hero p        { font-size: var(--text-2xl); max-width: 420px; }
  .step-text     { font-size: var(--text-lg); }
  .faq-section h2 { font-size: var(--text-3xl); }
}
