/* ============================================================
   Learn with Liv — stylesheet
   Change the palette in one place: the :root block below.
   ============================================================ */

:root {
  --teal:        #2f6f6b;
  --teal-dark:   #22524f;
  --teal-light:  #e6f1f0;
  --accent:      #e08b56;   /* warm secondary, used sparingly */
  --ink:         #23302f;
  --ink-soft:    #55635f;
  --cream:       #fbf8f3;
  --white:       #ffffff;
  --line:        #e2ddd4;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 2px 4px rgba(35,48,47,.05), 0 12px 28px rgba(35,48,47,.07);
  --shadow-sm:   0 1px 2px rgba(35,48,47,.06), 0 4px 12px rgba(35,48,47,.05);

  --wrap:        1120px;
  --wrap-narrow: 760px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap.narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-alt { background: var(--cream); }
.center { text-align: center; }
.intro { max-width: 620px; margin-inline: auto; color: var(--ink-soft); }
.note  { color: var(--ink-soft); font-size: .93rem; max-width: 640px; margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 .6em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

.nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 600;
}
.nav a:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav .nav-cta {
  background: var(--teal); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; margin-left: .35rem;
}
.nav .nav-cta:hover { background: var(--teal-dark); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: 10px; cursor: pointer; padding: 0;
}
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto;
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .6rem 22px 1rem; gap: .15rem; }
  .nav a { padding: .8rem .6rem; font-size: 1.02rem; }
  .nav .nav-cta { text-align: center; margin: .5rem 0 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: .82rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-light); color: var(--teal-dark); }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 82% -12%, var(--teal-light) 0%, transparent 62%),
    var(--cream);
  /* Tightened from 92px/84px: the portrait now carries the height, and the
     old padding left a dead band under the trust chips on desktop. */
  padding: clamp(40px, 5vw, 64px) 0 clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--ink-soft); max-width: 34em; }
.lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6em 0 1.4em; }
.hero-art img {
  /* Rounded rectangle, not a circle: this is a portrait photo and 300x360
     matches the source aspect (385x465) almost exactly, so nothing is
     cropped off the top of her head. */
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff;
  width: 300px; height: 360px; object-fit: cover; display: block;
}
.trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem .5rem;
}
.trust li {
  font-size: .82rem; font-weight: 600; color: var(--teal-dark);
  background: var(--white); border: 1px solid var(--line);
  padding: .32rem .8rem; border-radius: 999px;
}
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  /* Was 130px square for the logo badge; a portrait needs more room to read
     as a person rather than a thumbnail. */
  .hero-art img { width: 190px; height: 228px; margin-inline: auto; }
}

/* .two-col / .col-media removed: the only user was the About section, which
   became a single column when its portrait moved into the hero. */

/* ---------- results disclosure ---------- */
.results {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); padding: .2rem 1.2rem; margin-top: 1.6rem;
}
.results > summary {
  cursor: pointer; font-weight: 700; padding: .9rem 0; list-style: none;
  display: flex; align-items: center; gap: .5rem; color: var(--teal-dark);
}
.results > summary::-webkit-details-marker { display: none; }
.results > summary::before { content: "＋"; font-weight: 700; }
.results[open] > summary::before { content: "－"; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: .4rem 0 1.2rem; }
.results-grid h3 { margin-bottom: .5em; font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.grades { list-style: none; margin: 0; padding: 0; }
.grades li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .34rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.grades b { color: var(--teal-dark); white-space: nowrap; }
@media (max-width: 560px) { .results-grid { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem; margin: 2.2rem 0;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--teal-dark); }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- pricing ---------- */
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; max-width: 760px; margin: 0 auto 1.6rem;
}
.price {
  background: var(--white); border: 2px solid var(--teal-light); border-radius: var(--radius);
  text-align: center; padding: 1.6rem 1rem;
}
.price-amount { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--teal-dark); line-height: 1.1; }
/* The third card used to drop to 1.6rem, which made it read as a lesser
   option sitting next to the two prices. Same size, same weight, balanced row. */
.price { display: flex; flex-direction: column; justify-content: center; }
.price-unit { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: .3rem; }

/* ---------- checklist ---------- */
.checklist {
  background: var(--cream); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.5rem .6rem; margin-top: 2rem;
}
.checklist ul { padding-left: 1.1em; }
.checklist li { margin-bottom: .3em; }

/* ---------- quote ---------- */
.section-quote { background: var(--teal); color: #fff; }
.section-quote .eyebrow { color: #b9dedb; }
.section-quote h2 { color: #fff; }
.section-quote blockquote { margin: 1.6rem 0 0; }
.section-quote blockquote p {
  font-family: var(--font-display); font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.5; margin-bottom: .8em;
}
.section-quote cite { font-style: normal; font-size: .9rem; color: #cfe6e4; }

/* ---------- quote rotator ----------
   Without JS, .is-ready is absent and the slides simply stack: every quote
   stays readable. JS adds .is-ready, which switches on the overlay layout. */
.quotes { margin-top: 1.6rem; }
.quotes-track { position: relative; }

.quotes.is-ready .quotes-track {
  display: grid;              /* all slides share one cell, so the container  */
  align-items: start;         /* is as tall as the longest quote and does not */
}                             /* jump height as they change                   */
.quotes.is-ready .quote-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.quotes.is-ready .quote-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}

.quote-dots {
  display: flex; justify-content: center; gap: .55rem;
  margin-top: 1.6rem; padding: 0;
}
.quote-dots button {
  width: 10px; height: 10px; padding: 0;
  border-radius: 50%; border: 1px solid #cfe6e4;
  background: transparent; cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.quote-dots button:hover { background: #cfe6e4; }
.quote-dots button[aria-current="true"] { background: #fff; border-color: #fff; transform: scale(1.25); }
.quote-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .quotes.is-ready .quote-slide { transition: opacity .01s linear; transform: none; }
  .quotes.is-ready .quote-slide.is-active { transition: opacity .01s linear; transform: none; }
  .quote-dots button { transition: none; }
}

/* ---------- faq ---------- */
.faq { margin-top: 2rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .7rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; padding: 1.05rem 3rem 1.05rem 1.2rem;
  position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 9px; height: 9px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--teal-light); }
.faq details > div { padding: 0 1.2rem .3rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .contact-cols { grid-template-columns: 1fr; } }

/* Direct-contact variant: no form, everything centred in one column.
   Used while the site has no server-side mail. */
.contact-direct .contact-actions {
  display: flex; flex-wrap: wrap; gap: .8rem;
  justify-content: center; margin: 1.8rem 0 .8rem;
}
.contact-direct .contact-actions .btn { font-size: 1.05rem; padding: .95rem 1.9rem; }
.contact-direct .contact-details { display: inline-block; text-align: left; margin: 2rem auto; }
.contact-direct .social { justify-content: center; }
@media (max-width: 460px) {
  .contact-direct .contact-actions { flex-direction: column; }
  .contact-direct .contact-actions .btn { width: 100%; }
}

.contact-details { list-style: none; padding: 0; margin: 1.6rem 0; }
.contact-details li { display: flex; align-items: center; gap: .8rem; padding: .45rem 0; }
.contact-details .ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
  display: grid; place-items: center; font-size: 1rem;
}
.contact-details a { text-decoration: none; font-weight: 600; }
.contact-details a:hover { text-decoration: underline; }

.social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
}
.social a:hover { background: var(--teal); color: #fff; }

/* ---------- form ---------- */
.form {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .72rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); outline: none;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field .err { display: block; color: #c0392b; font-size: .84rem; margin-top: .25rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }
.form-status { margin: .9rem 0 0; padding: .8rem 1rem; border-radius: 10px; font-size: .94rem; display: none; }
.form-status.show { display: block; }
.form-status.ok   { background: #e4f4ea; color: #1d6b3c; border: 1px solid #b8e0c6; }
.form-status.bad  { background: #fdeceb; color: #a5342a; border: 1px solid #f3c6c1; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c4c1; padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { color: #dfe8e6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-actions, .form, .social { display: none !important; }
  body { font-size: 12pt; }
  .faq details { break-inside: avoid; }
  .faq details > div { display: block !important; }
}
