/* The Bell Method website. Colors come from the Bell Method logo (images/logo.png):
   cream background, bronze bell, olive laurels, charcoal lettering. */
:root {
  --bg: #faf5ee;        /* logo cream */
  --ink: #2e2a22;       /* logo lettering */
  --mute: #5e5547;
  --line: #e4dccd;
  --panel: #fffdf9;
  --acc: #8a5a2f;       /* bronze bell */
  --acc-dark: #6e4522;
  --olive: #5f5939;     /* laurels and ring */
  --tint: #f1e4d3;
  --warm: #efe6d6;
  --night: #2c2a1c;     /* deep olive for dark sections */
  --night-ink: #f3ecdf;
  --glow: #e0b27a;      /* light bronze on dark */
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; max-width: 14ch; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

a { color: var(--acc-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.hero a:focus-visible, .book a:focus-visible, .freebie-facts a:focus-visible { outline-color: var(--glow); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(250, 245, 238, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .01em; }
.logo img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.logo, .btn-small { white-space: nowrap; }
@media (max-width: 420px) { .logo img { width: 34px; height: 34px; } .logo { font-size: .95rem; gap: 8px; } }
nav { display: flex; align-items: center; gap: 22px; }
nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; opacity: .85; }
nav a:not(.btn):hover { opacity: 1; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background .15s;
}
.btn:hover { background: var(--acc-dark); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-light { background: var(--glow); color: var(--night); }
.btn-light:hover { background: var(--night-ink); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--night-ink); }
.link-arrow::after { content: " \2192"; }

/* Hero */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(224, 178, 122, .18), transparent 60%),
    var(--night);
  color: var(--night-ink);
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--glow); }
.lede { font-size: 1.25rem; max-width: 34ch; color: #cfc4ad; }
.hero-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hero-logo { width: 100%; height: auto; aspect-ratio: 1; max-width: 340px; justify-self: center; border-radius: 50%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
@media (max-width: 820px) { .hero-row { grid-template-columns: 1fr; } .hero-logo { max-width: 220px; order: -1; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.alt { background: var(--panel); border-block: 1px solid var(--line); }

.cards { display: grid; gap: 20px; margin-top: 28px; }
.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child, .point p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--acc-dark); background: var(--tint); padding: 4px 10px; border-radius: 999px; }
.point { border-top: 3px solid var(--acc); padding-top: 16px; }

/* Plans */
.section-lede { max-width: 60ch; color: var(--mute); }
.plans { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan { background: var(--panel); }
.plan ul { margin: 16px 0 0; padding-left: 20px; }
.plan li { margin-bottom: 8px; }
.plan li:last-child { margin-bottom: 0; }
.plans-cta { margin-top: 32px; }
.tip { background: var(--bg); border-top: 3px solid var(--acc); }
.tip h3 { font-size: 1.1rem; }
.tip p { color: var(--mute); }
.point p { color: var(--mute); }

.offers { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.offers li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; background: var(--bg); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--night); color: var(--glow); font-weight: 800;
}
.steps p { color: var(--mute); }

.where { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.where p { color: var(--mute); margin: 0; }

.fine { font-size: .9rem; color: var(--mute); }

.freebie { background: var(--warm); }
.freebie-row { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr; align-items: center; }
.freebie h2 { max-width: 20ch; }
.freebie p:not(.tag) { max-width: 52ch; }
.freebie .tag { background: var(--panel); }
.freebie-facts { list-style: none; margin: 0; padding: 28px; background: var(--night); color: var(--night-ink); border-radius: var(--radius); display: grid; gap: 18px; }
.freebie-facts b { color: var(--glow); font-size: 1.8rem; margin-right: 6px; }
.signup { margin-top: 8px; }
.signup-cta { margin: 20px 0 0; }
.signup label { display: block; font-weight: 700; margin-bottom: 6px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 240px; font: inherit; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink);
}
.signup input:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.signup button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.signup .fine { margin: 10px 0 0; }
@media (max-width: 720px) { .freebie-row { grid-template-columns: 1fr; } }

/* Thank-you page */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; }

.book { background: var(--night); color: var(--night-ink); text-align: center; }
.book p { color: #cfc4ad; }
.book .btn { margin-top: 12px; }
.book .alt-contact { margin: 20px 0 0; font-size: .9rem; }
.book .alt-contact a { color: var(--glow); }

/* Footer */
.foot { background: var(--night); color: #a89f88; border-top: 1px solid #3e3b2a; font-size: .9rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 50%; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 24px 0 88px; }
.foot p { margin: 0; }

/* Phones: keep only the booking button in the header */
@media (max-width: 720px) {
  nav a:not(.btn) { display: none; }
  body { font-size: 17px; }
}

.creds { margin: 16px 0 0; padding-left: 20px; color: var(--mute); }
.creds li { margin-bottom: 6px; }

/* Hero note, FAQ, footer links */
.hero-note { margin: 18px 0 0; font-size: .9rem; color: #cfc4ad; }
#faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
#faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
#faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; color: var(--acc); font-weight: 800; }
#faq details[open] summary::after { content: "\2212"; }
#faq summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 4px; }
#faq details p { margin: 10px 0 0; color: var(--mute); }
.foot a { color: var(--glow); }

/* Chat helper (chat.js) */
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  border: 0; border-radius: 999px; padding: 14px 20px;
  background: var(--acc); color: #fff; font: 700 .95rem var(--font);
  box-shadow: 0 8px 24px rgba(44, 42, 28, .25); cursor: pointer;
}
.chat-launch:hover { background: var(--acc-dark); }
.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: min(380px, calc(100vw - 24px)); max-height: min(600px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(44, 42, 28, .25); overflow: hidden;
}
.chat-panel[hidden], .chat-launch[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--night); color: var(--night-ink); }
.chat-title { margin: 0; font-weight: 800; }
.chat-close { border: 0; background: none; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; }
.chat-msg p { margin: 0; }
.from-bot { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; }
.from-visitor { background: var(--acc); color: #fff; align-self: flex-end; }
.chat-link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--acc-dark); }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; }
.chat-chip { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--font); color: var(--ink); cursor: pointer; }
.chat-chip:hover { border-color: var(--acc); }
.chat-form { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 1rem var(--font); }
.chat-send { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--acc); color: #fff; font: 700 .95rem var(--font); cursor: pointer; }
.chat-foot { margin: 0; padding: 0 16px 12px; font-size: .8rem; color: var(--mute); }
.chat-foot a { color: var(--acc-dark); }
.chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat-launch:focus-visible, .chat-chip:focus-visible, .chat-send:focus-visible, .chat-close:focus-visible, .chat-form input:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
