/* ============================================================================
   Ollie — shared page-level styling for full marketing / content surfaces.
   Depends on ollie.css for the brand tokens (do NOT redefine the palette here).
   Owns: landing (index.html) sections + reusable content-page primitives that
   parent/teacher static pages can borrow (.pg-hero, .pg-section, .pg-eyebrow…).
   ========================================================================== */

/* ---- wide layout: marketing pages breathe wider than app content --------- */
.pg-wide { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* let the landing paint edge-to-edge bands even though .ollie-main is capped */
body.landing .ollie-main { max-width: none; padding: 0; }
body.landing .ollie-footer { max-width: 1180px; }

/* Nav "Get started" gets a little emphasis vs the ghost login */
.pg-nav-cta { padding-inline: 1.15rem; }

/* ---- section scaffolding ------------------------------------------------- */
.pg-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.pg-section--tint { background: rgba(0, 0, 0, 0.16); }
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem;
  font-weight: 800; color: var(--amber); margin: 0 0 0.9rem;
}
.pg-section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 0.7rem; }
.pg-section__lede { color: var(--text-dim); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 60ch; }
.pg-center { text-align: center; }
.pg-center .pg-section__lede { margin-inline: auto; }

/* ============================================================================
   HERO
   ========================================================================== */
.pg-hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.pg-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(720px 420px at 78% 8%, rgba(242, 160, 61, 0.20), transparent 60%),
    radial-gradient(620px 380px at 12% 20%, rgba(200, 155, 106, 0.14), transparent 62%);
  pointer-events: none;
}
.pg-hero__grid {
  position: relative; display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.15fr 0.85fr; align-items: center;
}
.pg-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 900; letter-spacing: -0.01em;
  margin: 0.6rem 0 1rem;
}
.pg-hero h1 .hl { color: var(--amber); }
.pg-hero__sub { color: var(--text-dim); font-size: clamp(1.05rem, 1.9vw, 1.3rem); max-width: 40ch; margin: 0 0 1.6rem; }
.pg-hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.1rem; }
.pg-hero__fine { color: var(--text-dim); font-size: 0.9rem; }
.pg-hero__fine strong { color: var(--ink); }

.pg-hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }

/* the owl + "desk" scene on the right */
.pg-hero__art {
  position: relative; display: grid; place-items: center;
  padding: 1.5rem;
}
.pg-hero__desk {
  position: relative; width: min(100%, 380px);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.6rem 1.6rem 1.3rem;
}
.pg-hero__cam {
  position: absolute; top: -14px; right: 18px;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--navy); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.pg-hero__cam .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(111,191,139,0.6); animation: pg-live 2s ease-out infinite; }
@keyframes pg-live { 0% { box-shadow: 0 0 0 0 rgba(111,191,139,0.55);} 70%,100% { box-shadow: 0 0 0 9px rgba(111,191,139,0);} }
.pg-hero__owlwrap { display: grid; place-items: center; margin-bottom: 0.6rem; }
/* a little worksheet peeking under the owl */
.pg-paper {
  background: #f4f1ea; color: #3a2c17; border-radius: 10px; padding: 0.75rem 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 6px 14px rgba(0,0,0,0.25);
  font-weight: 700; transform: rotate(-1.4deg);
}
.pg-paper__row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.98rem; padding: 0.12rem 0; }
.pg-paper__row .q { color: #6b5836; }
.pg-paper__row .mark { margin-left: auto; font-weight: 900; }
.pg-paper__row .mark--ok { color: #2f8f57; }
.pg-paper__row .mark--wip { color: var(--amber-deep); }
/* speech bubble from the owl */
.pg-bubble {
  margin-top: 0.9rem; background: var(--navy); border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px; padding: 0.7rem 0.9rem;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.pg-bubble .who { display: block; font-size: 0.72rem; font-weight: 800; color: var(--amber); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.15rem; }

/* ============================================================================
   GUARANTEES (the three promises)
   ========================================================================== */
.pg-guarantees { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.pg-guarantee { padding: 1.5rem 1.5rem 1.6rem; }
.pg-guarantee__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(242, 160, 61, 0.15); margin-bottom: 1rem;
}
.pg-guarantee__icon svg { width: 30px; height: 30px; }
.pg-guarantee h3 { font-size: 1.2rem; margin: 0 0 0.45rem; }
.pg-guarantee p { color: var(--text-dim); margin: 0; font-size: 0.98rem; }
.pg-guarantee p .adj { display: block; margin-top: 0.5rem; color: var(--ink-dim); font-size: 0.86rem; font-style: italic; }

/* ============================================================================
   HOW IT WORKS
   ========================================================================== */
.pg-steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.pg-step { position: relative; padding: 1.5rem 1.3rem 1.4rem; }
.pg-step__num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 1.1rem;
  color: #241606; background: var(--amber); margin-bottom: 0.9rem;
}
.pg-step__num::before { content: counter(step); }
.pg-step h3 { font-size: 1.08rem; margin: 0 0 0.4rem; }
.pg-step p { color: var(--text-dim); margin: 0; font-size: 0.94rem; }

/* ============================================================================
   TEACHER EDITION band
   ========================================================================== */
.pg-teacher { background: linear-gradient(180deg, rgba(139,94,52,0.16), rgba(0,0,0,0.14)); }
.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.pg-checklist { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: 0.7rem; }
.pg-checklist li { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 600; }
.pg-checklist li svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: var(--ok); }
.pg-teacher__panel { padding: 1.6rem; }
.pg-metric { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1rem; }
.pg-metric b { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 900; color: var(--amber); line-height: 1; }
.pg-metric span { color: var(--text-dim); font-weight: 600; }
.pg-queue { display: grid; gap: 0.55rem; }
.pg-queue__item {
  display: flex; align-items: center; gap: 0.6rem; background: var(--navy);
  border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem 0.8rem; font-weight: 700;
}
.pg-queue__item .name { flex: 1; }
.pg-queue__item .flag { color: var(--danger); }

/* ============================================================================
   TRUST / PRIVACY
   ========================================================================== */
.pg-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.pg-trust__item h3 { font-size: 1.05rem; margin: 0.2rem 0 0.4rem; }
.pg-trust__item p { color: var(--text-dim); font-size: 0.94rem; margin: 0; }
.pg-trust__item .k { font-size: 1.5rem; }

/* ============================================================================
   PRICING (two products side by side)
   ========================================================================== */
.pg-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: stretch; }
.pg-price { display: flex; flex-direction: column; padding: 1.7rem; position: relative; }
.pg-price__tag { font-weight: 800; letter-spacing: 0.02em; }
.pg-price h3 { font-size: 1.35rem; margin: 0.5rem 0 0.2rem; }
.pg-price__amt { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 900; margin: 0.6rem 0 0.1rem; }
.pg-price__amt small { font-size: 0.95rem; font-weight: 700; color: var(--text-dim); }
.pg-price__note { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 1rem; }
.pg-price ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; }
.pg-price ul li { display: flex; gap: 0.55rem; color: var(--ink-dim); font-size: 0.96rem; }
.pg-price ul li::before { content: "✓"; color: var(--ok); font-weight: 900; }
.pg-price .ollie-btn { margin-top: auto; text-align: center; }

/* ============================================================================
   FINAL CTA
   ========================================================================== */
.pg-final { text-align: center; }
.pg-final__card {
  padding: clamp(2rem, 5vw, 3.2rem); text-align: center;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-panel));
}
.pg-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pg-final .pg-hero__cta { justify-content: center; }

/* shared centered action row */
.pg-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.pg-center .pg-actions { justify-content: center; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 880px) {
  .pg-hero__grid { grid-template-columns: 1fr; }
  .pg-hero__art { order: -1; }
  .pg-guarantees { grid-template-columns: 1fr; }
  .pg-steps { grid-template-columns: 1fr 1fr; }
  .pg-split { grid-template-columns: 1fr; }
  .pg-pricing { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pg-steps { grid-template-columns: 1fr; }
}
