/* ============================================================
   Screen-Free Learning Lab — rifid.co/screenfreelearning
   Design System & Stylesheet
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --sage:         #5B8A59;
  --sage-light:   #7BAF79;
  --sage-pale:    #EAF2E9;
  --amber:        #D4920A;
  --amber-light:  #F5C84A;
  --amber-pale:   #FEF6E0;
  --cream:        #FDF8F0;
  --sand:         #F5EDD8;
  --sand-dark:    #EDE0C4;
  --text:         #2A2A22;
  --text-muted:   #6B6B5F;
  --text-light:   #9B9B8F;
  --border:       #E4D9C5;
  --white:        #FFFFFF;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width:    1100px;
  --section-gap:  5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-light); }
ul { list-style: none; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 720px; }
.container--mid    { max-width: 880px; }
.text-center { text-align: center; }
.mt-sm  { margin-top: 0.75rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 2.5rem; }
.mb-sm  { margin-bottom: 0.75rem; }
.mb-md  { margin-bottom: 1.5rem; }
.mb-lg  { margin-bottom: 2.5rem; }

/* ── Typography ── */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { color: var(--text-muted); }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
}
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn--primary:hover {
  background: #4A7548;
  border-color: #4A7548;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn--amber:hover {
  background: #B87D08;
  border-color: #B87D08;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--outline {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}
.btn--outline:hover {
  background: var(--sage-pale);
  color: var(--sage);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--sand);
  color: var(--text);
}
.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}
.btn--full { width: 100%; justify-content: center; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__brand {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  flex-shrink: 0;
}
.nav__brand span { color: var(--sage); display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav__link:hover { background: var(--sand); color: var(--text); }
.nav__link--cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.4rem 1.1rem;
}
.nav__link--cta:hover { background: #4A7548; color: var(--white); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber-pale);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.hero__title { margin-bottom: 1.25rem; }
.hero__title em {
  font-style: normal;
  color: var(--sage);
}
.hero__sub {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero__trust span::before { content: "✓ "; color: var(--sage); font-weight: 700; }

/* ── Section ── */
.section { padding: var(--section-gap) 0; }
.section--alt { background: var(--sand); }
.section--sage { background: var(--sage-pale); }
.section--dark { background: var(--text); }
.section__header { margin-bottom: 3rem; }

/* ── Problem / Solution ── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.problem-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.problem-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.problem-card p  { font-size: 0.95rem; }

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: steps;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }

/* ── What's Inside / Feature List ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 0.2rem; font-size: 0.95rem; }
.feature-item p  { font-size: 0.875rem; line-height: 1.5; }

/* ── Free Pack CTA Banner ── */
.free-banner {
  background: var(--sage);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  color: var(--white);
}
.free-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.free-banner p  { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }
.free-banner .btn--amber { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ── Product Card ── */
.product-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.product-card--featured { border-color: var(--sage); }
.product-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--amber);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}
.product-card__price {
  margin: 1rem 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.product-card__price .price-main {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.product-card__price .price-standard {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-card__price .price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.product-card__list { margin: 1.5rem 0; }
.product-card__list li {
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.product-card__list li:last-child { border-bottom: none; }
.product-card__list li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Opt-in Form ── */
.optin-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.optin-form__field {
  margin-bottom: 1rem;
}
.optin-form__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.optin-form__field input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.15s;
  outline: none;
}
.optin-form__field input:focus { border-color: var(--sage); background: var(--white); }
.optin-form__note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
}

/* ── Checklist ── */
.checklist { margin: 1.5rem 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Tag Pills ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  background: var(--sand);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
}

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col--flip .two-col__content { order: 2; }
.two-col--flip .two-col__visual  { order: 1; }

/* ── Visual placeholder ── */
.visual-block {
  background: var(--sand);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}

/* ── Quote / Testimonial ── */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.testimonial__text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.testimonial__author { font-size: 0.875rem; color: var(--text-muted); font-weight: 700; }

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer__brand { font-size: 1.05rem; font-weight: 900; color: var(--white); margin-bottom: 0.75rem; }
.footer__tagline { font-size: 0.875rem; line-height: 1.6; }
.footer h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.footer__links li { margin-bottom: 0.4rem; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--white); }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--sage);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { top: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --section-gap: 3.5rem; }

  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }
  .nav__toggle { display: block; }

  .problem-grid    { grid-template-columns: 1fr; }
  .steps           { grid-template-columns: 1fr; }
  .feature-grid    { grid-template-columns: 1fr; }
  .two-col         { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--flip .two-col__content { order: 1; }
  .two-col--flip .two-col__visual  { order: 2; }
  .footer__inner   { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions   { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .free-banner     { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .product-card { padding: 1.5rem; }
  .optin-form   { padding: 1.5rem; }
}
