/* =====================================================
   aitoolnotes.com — Global styles (clean, light, no framework)
   ===================================================== */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-light: #eef2ff;
  --accent: #16a34a;
  --accent-dark: #15803d;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-badge {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-buy { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(22,163,74,0.3); }
.btn-buy:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, #ede9fe, transparent),
    linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero h1 .hl { color: var(--brand); }
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 26px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.price-tag {
  display: flex; align-items: baseline; gap: 10px; margin-top: 20px;
}
.price-now { font-size: 2rem; font-weight: 800; color: var(--ink); }
.price-old { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.price-off {
  background: #fef3c7; color: #92400e; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; font-size: 0.8rem;
}

.hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}
.hero-media iframe { width: 100%; height: 100%; border: 0; }

.trust-row {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px;
}
.trust-row .ti { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.trust-row .ti b { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-head h2 { font-size: 2rem; margin: 0 0 12px; letter-spacing: -0.4px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem;
  color: var(--brand); font-weight: 800; margin-bottom: 8px;
}

/* ---------- Earning / proof strip ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.proof-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.proof-video {
  aspect-ratio: 9 / 16;
  max-height: 520px;
  background: #000;
  width: 100%;
}
.proof-video video { width: 100%; height: 100%; object-fit: cover; }
.proof-body { padding: 20px 22px; }
.proof-body h3 { margin: 0 0 8px; font-size: 1.25rem; }
.proof-body p { margin: 0; color: var(--muted); }
.badge-earn {
  display: inline-block; background: #dcfce7; color: var(--accent-dark);
  font-weight: 700; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.badge-rpm {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-weight: 700; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- Course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.course-video { aspect-ratio: 16 / 9; background: #000; }
.course-video iframe { width: 100%; height: 100%; border: 0; }
.course-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-tag {
  align-self: flex-start;
  background: var(--brand-light); color: var(--brand-dark);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.course-body h3 { margin: 0; font-size: 1.18rem; line-height: 1.35; }
.course-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.course-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.lock-note { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Testimonials ---------- */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tst-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tst-video { aspect-ratio: 9 / 16; background: #000; position: relative; }
.tst-video video { width: 100%; height: 100%; object-fit: cover; }
.tst-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(17,24,39,0.78); color: #fff;
  font-weight: 700; font-size: 0.78rem; padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.tst-body { padding: 14px 18px; }
.tst-body .stars { color: #f59e0b; font-size: 0.95rem; margin-bottom: 4px; }
.tst-body h4 { margin: 0 0 2px; font-size: 1rem; }
.tst-body span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Features / why ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.feat-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px;
}
.feat-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feat-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pricing block ---------- */
.pricing {
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 2px solid var(--brand);
  border-radius: 18px; padding: 36px 32px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.pricing .ptop { color: var(--muted); font-weight: 600; }
.pricing .pbig { font-size: 3rem; font-weight: 800; margin: 8px 0; }
.pricing .pbig small { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.pricing ul { list-style: none; padding: 0; margin: 20px 0 26px; text-align: left; }
.pricing ul li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; }
.pricing ul li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brand); }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; margin-top: 20px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.foot-brand { font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.foot-bottom {
  border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: #94a3b8;
}

/* ---------- Toast / banner ---------- */
.flash {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  padding: 12px 18px; border-radius: 10px; margin: 16px 0; font-weight: 600;
}

/* ---------- Legal / page content ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-hero h1 { margin: 0; font-size: 2.1rem; }
.page-hero p { color: var(--muted); margin: 8px 0 0; }
.legal { max-width: 820px; margin: 0 auto; padding: 44px 20px; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.legal p, .legal li { color: #374151; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Auth (login) ---------- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 32px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.auth-card p.sub { color: var(--muted); margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.auth-switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.92rem; }
.auth-msg { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 600; display: none; }
.auth-msg.err { background: #fef2f2; color: #b91c1c; display: block; }
.auth-msg.ok { background: #ecfdf5; color: #065f46; display: block; }
.muted-link { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 0.88rem; padding: 0; }

/* ---------- Course page locked state ---------- */
.locked-screen {
  min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 50px 20px;
}
.locked-box { max-width: 460px; }
.locked-box .lk-ico { font-size: 3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .tst-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tst-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 44px 0; }
}

/* ---------- Mobile nav (hamburger) ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  /* nav links become a dropdown panel under the header */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border-bottom: 1px solid var(--bg-soft);
  }

  /* keep header a single row; let the buttons group sit next to the toggle */
  .nav { position: relative; }
}
