/* ==========================================================================
   Jamboree — learnjamboree.com
   Rebuilt static site. Mobile-first, WCAG 2.2 AA, SEO/AIO ready.
   Palette preserves the original warm bagel/jam identity.
   ========================================================================== */

:root {
  /* Brand palette — warm, food-forward, "jam on a bagel" */
  --jam:        #B41C3E;   /* raspberry — primary brand accent */
  --jam-dark:   #8E1531;   /* hover/pressed */
  --jam-tint:   #FCEEF1;   /* pale wash for section backgrounds */
  --crust:      #3A2A21;   /* warm near-black for text */
  --cream:      #FBF7F0;   /* page background */
  --cream-2:    #F4ECDE;   /* alt section background */
  --sesame:     #E8DCC5;   /* borders / dividers */
  --butter:     #F6C453;   /* secondary warm accent */
  --ink:        #2B2019;   /* headings */
  --muted:      #6B5D52;   /* secondary text */
  --white:      #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(58,42,33,.08), 0 1px 2px rgba(58,42,33,.06);
  --shadow-md: 0 8px 24px rgba(58,42,33,.10);
  --shadow-lg: 0 18px 48px rgba(58,42,33,.16);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.83rem, .78rem + .2vw, .92rem);
  --step-0:  clamp(1rem, .95rem + .3vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.2rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Belt-and-braces: never allow sideways scroll on phones. */
html, body { overflow-x: clip; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--crust);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  /* Keep display-serif letterforms clean at heading sizes (no ff/fi/fl fusing). */
  font-variant-ligatures: no-common-ligatures;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1rem; }

a { color: var(--jam); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jam-dark); }

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

/* --- Accessibility helpers --- */
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--jam); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 999; transition: top .2s;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; color:#fff; outline: 3px solid var(--butter); }

:focus-visible {
  outline: 3px solid var(--jam);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tint { background: var(--jam-tint); }
.section--cream2 { background: var(--cream-2); }

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sesame);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.nav__brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nav__brand img { height: 40px; width: auto; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--sesame); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-weight: 600; color: var(--crust);
  cursor: pointer;
}
.nav__toggle-bars { display: inline-block; width: 20px; height: 2px; background: var(--crust); position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--crust);
}
.nav__toggle-bars::before { top: -6px; } .nav__toggle-bars::after { top: 6px; }
.nav__list {
  list-style: none; display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0;
}
.nav__list a {
  display: inline-block; padding: 10px 14px; border-radius: 10px;
  color: var(--crust); text-decoration: none; font-weight: 500;
}
.nav__list a:hover, .nav__list a[aria-current="page"] { background: var(--jam-tint); color: var(--jam-dark); }
.nav__list a[aria-current="page"] { font-weight: 600; }
.nav__cta a {
  background: var(--jam); color: #fff !important; font-weight: 600;
}
.nav__cta a:hover { background: var(--jam-dark); }
/* Group Log in + Request a demo on the right, set off from the content links */
.nav__divider { align-self: center; width: 1px; height: 26px; background: var(--sesame); margin-inline: 8px; }
.nav__login a { color: var(--crust); }

@media (max-width: 860px) {
  /* flex-wrap is what lets the opened menu drop to its own row below the
     brand + toggle; without it the list is crushed onto the same line. */
  .nav { flex-wrap: wrap; }
  .nav__toggle { order: 3; min-height: 44px; }
  /* Keep brand + toggle on one row even on narrow phones. */
  .nav__brand { min-width: 0; }
  .nav__brand img { height: auto; width: auto; max-width: clamp(150px, 48vw, 240px); }
  .nav__list {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 8px 0 14px; display: none;
  }
  .nav__list a { display: block; padding: 12px 14px; }
  .nav[data-open="true"] .nav__list { display: flex; }
  /* Mobile: divider becomes a full-width rule; CTA becomes a full-width button */
  .nav__divider { width: auto; height: 1px; margin: 10px 14px 6px; }
  .nav__cta { margin-top: 2px; }
  .nav__cta a { display: block; text-align: center; }
}
@media (min-width: 861px) { .nav__toggle { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
  min-height: 48px; /* touch target */
}
.btn--primary { background: var(--jam); color: #fff; }
.btn--primary:hover { background: var(--jam-dark); color:#fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--jam); border-color: var(--jam); }
.btn--ghost:hover { background: var(--jam); color: #fff; }
.btn--butter { background: var(--butter); color: var(--crust); }
.btn--butter:hover { background: #e9b23f; color: var(--crust); transform: translateY(-1px); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
}
.hero__eyebrow {
  display: inline-block; font-weight: 600; color: var(--jam);
  letter-spacing: .08em; text-transform: uppercase; font-size: var(--step--1);
  margin-bottom: 12px;
}
.hero__lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
@media (min-width: 861px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* --- Feature grid --- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--sesame);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); height: 100%;
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card__icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--jam-tint); display: inline-grid; place-items: center;
  color: var(--jam); font-weight: 700;
}
.card--media { padding: 0; overflow: hidden; }
.card--media img { aspect-ratio: 3/2; object-fit: cover; width:100%; }
.card--media .card__body { padding: 24px 28px 28px; }

/* --- Split feature rows --- */
.feature-row { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.feature-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature-row--reverse .feature-row__media { order: 2; }
}

/* --- Testimonials --- */
.quote {
  background: var(--white); border-left: 5px solid var(--jam);
  border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0 0 14px; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); font-variant-ligatures: no-common-ligatures; }
.quote figcaption { color: var(--muted); font-size: var(--step--1); }
.quote figcaption strong { color: var(--crust); }

/* --- Pricing --- */
.price-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  background: var(--white); border: 1px solid var(--sesame); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price--featured { border: 2px solid var(--jam); box-shadow: var(--shadow-md); position: relative; }
.price--featured::after {
  content: "Most popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--jam); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em;
}
.price__amount { font-family: var(--font-display); font-size: var(--step-3); color: var(--jam); line-height: 1; }
.price__period { color: var(--muted); font-size: var(--step--1); }
.price__name { font-size: var(--step-1); margin: 6px 0 4px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price li { padding: 8px 0 8px 28px; position: relative; }
.price li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px;
  background: var(--jam); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5-5L12.5 5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5-5L12.5 5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Accordion (FAQ / user guide) --- */
.accordion { border: 1px solid var(--sesame); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion + .accordion { margin-top: 14px; }
.accordion__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: var(--step-1); color: var(--ink);
  padding: 20px 56px 20px 24px; position: relative; display: block;
  font-variant-ligatures: no-common-ligatures;
}
.accordion__btn::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--jam); font-family: var(--font-body); line-height: 1;
}
.accordion__btn[aria-expanded="true"]::after { content: "\2013"; }
.accordion__panel { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; }
.accordion__panel[data-open="true"] { padding: 0 24px 22px; max-height: 2000px; }
.accordion__panel ol, .accordion__panel ul { margin: 0 0 8px; padding-left: 1.2em; }
.accordion__panel li { margin-bottom: 8px; }

/* --- Steps (user guide) --- */
.guide-nav { position: sticky; top: 80px; }
.guide-nav ul { list-style: none; margin: 0; padding: 0; }
.guide-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--crust); text-decoration: none; }
.guide-nav a:hover { background: var(--jam-tint); }

/* --- Newsletter / contact form --- */
.form { display: grid; gap: 14px; max-width: 520px; }
.form label { font-weight: 600; }
.form input, .form textarea {
  font: inherit; padding: 13px 15px; border: 1px solid var(--sesame);
  border-radius: 10px; background: var(--white); color: var(--crust); width: 100%;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--jam); outline-offset: 1px; border-color: var(--jam); }
.form__row { display: grid; gap: 14px; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__status { font-weight: 600; color: var(--jam-dark); min-height: 1.4em; }

/* --- App badges --- */
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #fff; padding: 9px 15px; border-radius: 12px; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.app-badge:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color: #fff; transform: translateY(-1px); }
.app-badge svg { width: 22px; height: 22px; flex: 0 0 auto; }
.app-badge span { display: inline-flex; flex-direction: column; line-height: 1.12; }
.app-badge small { font-weight: 400; font-size: .64rem; letter-spacing: .02em; opacity: .8; }
.app-badge b { font-weight: 600; font-size: .95rem; }

/* --- Breadcrumbs --- */
.breadcrumb { font-size: var(--step--1); color: var(--muted); padding-top: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--sesame); }
.breadcrumb a { display: inline-block; padding: 6px 0; color: var(--muted); }

/* --- Prev/next --- */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; }
.pager a { text-decoration: none; font-weight: 600; }

/* --- Footer --- */
.site-footer { background: var(--crust); color: #C9BAA9; margin-top: 8px; }
.site-footer::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--jam) 0%, var(--butter) 100%); }
.footer__inner { padding-block: clamp(48px, 6vw, 80px) 26px; }

/* CTA band */
.footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 40px; padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__cta h2 { color: #fff; margin: 6px 0 0; max-width: 20ch; font-size: var(--step-2); }
.footer__cta .eyebrow { color: var(--butter); }

/* Link columns */
.footer__grid { display: grid; gap: 40px 32px; grid-template-columns: 1fr; padding-block: clamp(40px, 5vw, 56px); }
@media (min-width: 560px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; } }

.footer__brand img { height: 34px; width: auto; max-width: 210px; filter: brightness(0) invert(1); opacity: .96; }
.footer__tagline { color: #BBAB9A; max-width: 36ch; margin: 16px 0 0; font-size: var(--step--1); line-height: 1.6; }

.footer__col h4 {
  color: #EDE3D6; font-family: var(--font-body); font-weight: 600;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 5px; }
.footer__col a { display: inline-block; padding: 5px 0; color: #C9BAA9; text-decoration: none; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }

/* Bottom bar */
.footer__bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  font-size: var(--step--1); color: #B0A392;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 62ch; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.lead { font-size: var(--step-1); color: var(--muted); }
.eyebrow { color: var(--jam); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: var(--step--1); }
