:root {
  --navy: #0b2f44;
  --navy-soft: #17485c;
  --sage: #71835d;
  --sage-dark: #5d6f4b;
  --sage-pale: #edf0e8;
  --cream: #fbfaf6;
  --text: #22313a;
  --muted: #66747b;
  --line: #dfe4e2;
  --white: #ffffff;
  --section: min(1160px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); font-family: "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section { width: var(--section); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; color: white; background: var(--navy); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { width: var(--section); min-height: 78px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 148px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 30px; color: var(--navy); font-size: 14px; font-weight: 500; }
.primary-nav > a:not(.button):hover { color: var(--sage-dark); }
.menu-button { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 25px; color: white; background: var(--sage); border: 1px solid var(--sage); border-radius: 5px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { background: var(--sage-dark); border-color: var(--sage-dark); transform: translateY(-1px); }
.button-small { min-height: 43px; padding: 0 19px; }
.button-secondary { color: var(--navy); background: white; border-color: var(--navy); }
.button-secondary:hover { color: white; background: var(--navy); border-color: var(--navy); }
.text-link { display: inline-block; margin-top: 24px; color: var(--navy); border-bottom: 2px solid var(--sage); font-weight: 600; }

h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 650px; font-size: clamp(54px, 5.2vw, 72px); }
h2 { font-size: clamp(38px, 4.4vw, 58px); }
h3 { font-size: 26px; }
p { color: var(--muted); line-height: 1.72; }

.hero { position: relative; z-index: 1; min-height: 730px; overflow: visible; background: #fff url("assets/brand/login-botanical-background.webp") center bottom / cover no-repeat; }
.hero-inner { width: var(--section); min-height: 650px; margin-inline: auto; display: grid; grid-template-columns: .78fr 1.22fr; gap: 52px; align-items: center; }
.hero-copy { position: relative; z-index: 4; padding: 70px 0 120px; }
.hero-copy p { max-width: 560px; margin: 25px 0 30px; color: #53666f; font-size: 20px; }
.hero-actions { display: flex; gap: 12px; }
.hero-art { position: relative; height: 600px; align-self: end; }
.hero-screen { position: absolute; z-index: 1; width: 920px; left: -20px; top: 55px; overflow: hidden; background: white; border: 1px solid #ccd5d4; border-radius: 4px; box-shadow: 0 22px 55px rgba(11,47,68,.16); }
.hero-screen img { width: 100%; height: auto; object-fit: contain; }
.hero-screen { max-width: calc(100% + 40px); }
.hero-characters { position: absolute; z-index: 3; right: -20px; top: 457px; width: 225px; height: auto; filter: drop-shadow(0 16px 16px rgba(11,47,68,.1)); }

.intro { position: relative; padding: 125px 0 130px; }
.intro-characters { position: absolute; z-index: 2; width: 155px; right: -10px; top: 62px; filter: drop-shadow(0 12px 18px rgba(11,47,68,.12)); }
.section-heading { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-heading p { max-width: 650px; margin: 20px auto 0; font-size: 18px; }
.main-screen { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 22px 55px rgba(11,47,68,.12); }
.main-screen img { width: 100%; height: auto; object-fit: contain; }
.quick-features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-features div { padding: 24px 30px; }
.quick-features div + div { border-left: 1px solid var(--line); }
.quick-features strong, .quick-features span { display: block; }
.quick-features strong { margin-bottom: 5px; color: var(--navy); font-size: 18px; }
.quick-features span { color: var(--muted); font-size: 14px; }

.feature-sections { background: var(--cream); }
.feature { position: relative; min-height: 650px; padding: 105px 0; display: grid; grid-template-columns: .76fr 1.24fr; gap: 75px; align-items: center; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-copy p { max-width: 470px; margin: 22px 0 0; font-size: 17px; }
.feature-screen { position: relative; z-index: 2; min-width: 0; overflow: hidden; border: 1px solid #ccd5d4; border-radius: 3px; box-shadow: 0 18px 45px rgba(11,47,68,.11); }
.feature-screen img { width: 100%; height: auto; object-fit: contain; }
.feature-screen-tall img { width: 100%; height: auto; object-fit: contain; }
.calendar-screen { overflow: visible; }
.calendar-demo-events { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.calendar-demo-event { position: absolute; width: 11.2%; min-height: 13.5%; padding: 5px 5px 4px 7px; display: block; overflow: hidden; color: var(--navy); background: #eef3e9; border-left: 3px solid var(--sage); border-radius: 3px; box-shadow: 0 3px 9px rgba(11,47,68,.12); font-size: 7px; line-height: 1.18; }
.calendar-demo-event strong, .calendar-demo-event small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-demo-event small { margin-top: 3px; font-size: 5.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; opacity: .72; }
.event-one { left: 31.5%; top: 39%; }
.event-two { left: 43.3%; top: 58%; }
.event-three { left: 55.1%; top: 34%; }
.event-four { left: 66.9%; top: 58%; }
.event-five { left: 43.3%; top: 35%; }
.event-six { left: 55.1%; top: 57%; }
.event-seven { left: 66.9%; top: 34%; }
.event-eight { left: 78.7%; top: 45%; }
.status-attended, .status-completed { background: #e7f4e9; border-left-color: #32a852; }
.status-no-show { background: #fff3d8; border-left-color: #e1a72f; }
.status-sickness { background: #fff0df; border-left-color: #ed9f38; }
.status-cancelled { background: #f8e9e9; border-left-color: #c94c4c; opacity: .82; }
.calendar-options { position: absolute; z-index: 3; right: -48px; bottom: -52px; width: 270px; padding: 18px; color: var(--text); background: rgba(255,255,255,.98); border: 1px solid #d7dfdc; border-radius: 5px; box-shadow: 0 20px 42px rgba(11,47,68,.24); backdrop-filter: blur(8px); }
.calendar-options > strong { display: block; margin-bottom: 12px; color: var(--navy); font-size: 15px; letter-spacing: -.01em; }
.calendar-option-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.calendar-view-options, .calendar-nav-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #f2f4f1; border-radius: 4px; font-size: 10px; text-align: center; }
.calendar-view-options span, .calendar-view-options b, .calendar-nav-options span, .calendar-nav-options b { padding: 6px 4px; border-radius: 3px; font-weight: 600; }
.calendar-view-options b { color: white; background: var(--sage); }
.calendar-primary-options { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6px; margin: 10px 0; padding-bottom: 10px; border-bottom: 1px solid #e9edeb; font-size: 10px; text-align: center; }
.calendar-primary-options b, .calendar-primary-options span { padding: 8px 6px; border: 1px solid var(--sage); border-radius: 3px; font-weight: 600; }
.calendar-primary-options b { color: white; background: var(--sage); }
.calendar-primary-options span { color: var(--navy); background: white; }
.calendar-nav-options { padding: 0; background: transparent; color: var(--muted); }
.calendar-nav-options b { color: var(--navy); background: var(--sage-pale); }
.student-screen { overflow: hidden; }
.student-shot-stage { position: relative; width: 100%; }
.student-shot-stage > img { position: relative; z-index: 1; }
.student-school-details { position: absolute; z-index: 2; left: 17.1%; top: 79.2%; width: 17.2%; margin: 0; padding: 0; color: #25343c; font-size: clamp(4px, .48vw, 7px); line-height: 1.35; }
.student-school-details div { display: grid; grid-template-columns: 31% 69%; gap: 3px; margin-bottom: 3px; }
.student-school-details dt { color: #758188; }
.student-school-details dd { margin: 0; font-weight: 500; }
.student-map-panel { position: absolute; z-index: 2; left: 36.1%; top: 73.35%; width: 18.35%; height: 20.3%; border: 1px solid #d9e0dd; background: #e8eee5; }
.lesson-timer-card { position: absolute; z-index: 3; top: 2.1%; right: 1.9%; width: 29.5%; padding: 1.25%; color: #22313a; background: rgba(255,255,255,.98); border: 1px solid #dce3e7; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.lesson-timer-heading { display: flex; gap: 4%; align-items: center; }
.lesson-timer-avatar { width: 14%; aspect-ratio: 1; flex: 0 0 14%; display: grid; place-items: center; overflow: hidden; color: var(--navy); background: #f4f6f7; border: 2px solid #9ed8df; border-radius: 50%; font-size: clamp(5px, .58vw, 8px); font-weight: 600; }
.lesson-timer-title { min-width: 0; flex: 1; }
.lesson-timer-title strong, .lesson-timer-title small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lesson-timer-title strong { color: #22313a; font-size: clamp(6px, .72vw, 10px); font-weight: 600; }
.lesson-timer-title small, .lesson-timer-remaining { color: #66747b; font-size: clamp(4px, .48vw, 7px); }
.lesson-timer-toggle { width: 12%; flex: 0 0 12%; color: var(--sage); font-size: clamp(9px, 1.15vw, 16px); text-align: center; }
.lesson-timer-progress { height: 4px; margin-top: 7%; overflow: hidden; background: #e9eeea; border-radius: 3px; }
.lesson-timer-progress span { display: block; width: 68%; height: 100%; background: var(--sage); border-radius: inherit; }
.lesson-timer-remaining { display: block; margin-top: 3%; }
.feature-reverse { grid-template-columns: 1.24fr .76fr; }
.calendar-feature { display: block; }
.calendar-feature .feature-copy { max-width: 660px; margin-bottom: 36px; }
.calendar-feature .feature-copy p { max-width: 620px; }
.calendar-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .36fr); gap: 24px; align-items: start; }
.calendar-showcase .calendar-screen { overflow: hidden; margin: 0; }
.calendar-showcase img { width: 100%; max-width: 100%; height: auto; }
.calendar-editor { margin: 0; min-width: 0; }
.calendar-editor img { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(11,47,68,.1); }
.calendar-editor figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.ai-section { padding-block: 90px; }
.ai-section .section-heading { max-width: 740px; }
.ai-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.ai-feature { border: 1px solid var(--line); border-radius: 8px; padding: 30px; background: #edf3ed; }
.ai-feature-planned { background: #eef3f7; }
.ai-feature h3 { margin: 16px 0; color: var(--navy); font-size: 23px; line-height: 1.4; }
.ai-availability { font-size: 13px; font-weight: 600; color: var(--sage-dark); }
.ai-feature-planned .ai-availability { color: var(--navy-soft); }
.ai-review { font-size: 14px; color: var(--muted); }
@media (max-width: 780px) {
  .calendar-showcase, .ai-features { grid-template-columns: minmax(0,1fr); }
  .calendar-showcase .calendar-screen img { width: 100%; max-width: 100%; }
  .calendar-editor { width: min(380px,100%); margin-inline: auto; }
  .ai-feature { padding: 24px; }
}
.feature-reverse .feature-copy { grid-column: 2; grid-row: 1; }
.feature-reverse .feature-screen { grid-column: 1; grid-row: 1; }

.business-section { overflow: hidden; background: var(--navy); }
.business-inner { min-height: 680px; padding: 105px 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: 65px; align-items: center; }
.business-copy h2, .business-copy p, .business-copy .text-link { color: white; }
.business-copy p { max-width: 440px; color: rgba(255,255,255,.7); font-size: 17px; }
.business-copy .text-link { border-color: var(--sage); }
.business-screens { position: relative; height: 460px; }
.business-screens img { position: absolute; width: 680px; max-width: none; height: auto; object-fit: contain; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.business-products { left: 0; top: 0; }
.business-invoices { left: 95px; top: 145px; }

.pricing { padding: 125px 0 135px; }
.pricing-heading { margin-bottom: 48px; }
.pricing-grid { max-width: 900px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.price-card { padding: 40px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.price-card-featured { background: var(--sage-pale); border-color: #c9d0c1; }
.price { margin: 24px 0 8px; }
.price strong { color: var(--navy); font-size: 42px; letter-spacing: -.04em; }
.price-card > p:not(.price) { min-height: 58px; }
.price-card .button { width: 100%; margin-top: 24px; }

.final-cta { overflow: hidden; background: #fff url("assets/brand/login-botanical-background.webp") center bottom / cover no-repeat; border-top: 1px solid var(--line); }
.final-inner { min-height: 560px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 55px; }
.final-copy { position: relative; z-index: 2; }
.final-copy p { margin: 20px 0 28px; font-size: 18px; }
.final-inner > img { align-self: end; width: 700px; max-width: none; height: auto; object-fit: contain; margin: 0 0 -60px -60px; }

.site-footer { color: white; background: var(--navy); }
.footer-inner { min-height: 170px; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer-inner > img { width: 128px; filter: brightness(0) invert(1); }
.footer-links { display: flex; justify-content: center; gap: 32px; color: rgba(255,255,255,.75); font-size: 14px; }
.footer-inner p { color: rgba(255,255,255,.55); font-size: 13px; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { min-height: 1050px; }
  .hero-copy { max-width: 800px; padding: 75px 0 20px; }
  .hero-art { width: 100%; height: 640px; }
  .hero-screen { width: min(920px, 88vw); left: 0; top: 85px; }
  .hero-characters { width: 220px; right: -15px; top: 518px; }
  .intro-characters { display: none; }
  .business-screens { transform: scale(.88); transform-origin: left center; }
}

@media (min-width: 1101px) {
  .hero-inner { width: min(1440px, calc(100% - 64px)); grid-template-columns: minmax(340px, .65fr) minmax(0, 1.35fr); gap: 40px; }
  .hero-screen { width: 100%; max-width: none; left: 0; top: 55px; }
}

@media (max-width: 780px) {
  :root { --section: min(100% - 32px, 1160px); }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 125px; }
  .menu-button { position: relative; z-index: 3; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; padding: 0; background: var(--navy); border: 0; border-radius: 4px; }
  .menu-button > span:not(.sr-only) { width: 18px; height: 2px; background: white; transition: transform .2s, opacity .2s; }
  .menu-button[aria-expanded="true"] > span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 22px 24px 28px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11,47,68,.1); visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav > a { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .primary-nav .button { margin-top: 24px; border-bottom: 0; }
  h1 { font-size: clamp(44px, 13vw, 64px); }
  h2 { font-size: clamp(36px, 10vw, 50px); }
  .hero { min-height: 1020px; background-position: center bottom; }
  .hero-inner { min-height: auto; display: block; }
  .hero-copy { padding: 68px 0 40px; }
  .hero-copy p { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-art { height: 570px; margin-inline: -16px; overflow: visible; }
  .hero-screen { width: 700px; left: -110px; top: 70px; }
  .hero-characters { width: 180px; right: -4px; top: 404px; bottom: auto; }
  .intro, .pricing { padding: 85px 0 95px; }
  .section-heading { text-align: left; }
  .section-heading p { margin-left: 0; }
  .main-screen { margin-inline: -16px; border-radius: 0; }
  .main-screen img { width: 830px; max-width: none; }
  .quick-features { grid-template-columns: 1fr; }
  .quick-features div { padding: 18px 4px; }
  .quick-features div + div { border-left: 0; border-top: 1px solid var(--line); }
  .feature, .feature-reverse { min-height: 0; padding: 85px 0; grid-template-columns: 1fr; gap: 38px; }
  .feature-reverse .feature-copy, .feature-reverse .feature-screen { grid-column: 1; }
  .feature-reverse .feature-copy { grid-row: 1; }
  .feature-reverse .feature-screen { grid-row: 2; }
  .feature-screen { margin-inline: -16px; border-radius: 0; }
  .feature-screen img, .feature-screen-tall img { width: 820px; max-width: none; height: auto; }
  .calendar-demo-events { width: 820px; }
  .calendar-screen { margin-bottom: 58px; }
  .calendar-options { right: -10px; bottom: -48px; width: 235px; padding: 14px; }
  .student-screen { margin-bottom: 0; }
  .student-shot-stage { width: 820px; }
  .student-school-details { font-size: 5px; }
  .lesson-timer-title strong { font-size: 7px; }
  .lesson-timer-title small, .lesson-timer-remaining { font-size: 5px; }
  .business-inner { min-height: 800px; padding: 85px 0; grid-template-columns: 1fr; align-items: start; }
  .business-screens { height: 430px; transform: none; }
  .business-screens img { width: 620px; }
  .business-products { left: -25px; }
  .business-invoices { left: 25px; top: 140px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { padding: 30px 25px; }
  .final-inner { min-height: 680px; grid-template-columns: 1fr; gap: 5px; padding-top: 85px; }
  .final-inner > img { width: 610px; margin: 0 0 -40px -160px; }
  .footer-inner { padding: 45px 0; grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-wrap: wrap; justify-content: flex-start; gap: 16px 24px; }
}

/* Product screenshots share one scale; guide cards sit above the image. */
.dashboard-showcase, .calendar-showcase, .feature > .feature-screen, .business-screens {
  width: min(960px, 100%);
  margin-inline: auto;
}
.dashboard-showcase { position: relative; margin-bottom: 32px; }
.dashboard-showcase .main-screen { margin: 0; border-radius: 4px; }
.dashboard-showcase .main-screen img { width: 100%; max-width: 100%; }
.dashboard-showcase .quick-features { position: absolute; inset: 0; display: block; margin: 0; border: 0; pointer-events: none; }
.dashboard-showcase .quick-features div { position: absolute; width: 220px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 32px rgba(11,47,68,.18); }
.dashboard-showcase .quick-features div:nth-child(1) { right: -40px; top: 8%; border-top: 3px solid #a8c49d; }
.dashboard-showcase .quick-features div:nth-child(2) { left: -40px; top: 47%; border-top: 3px solid #a9c7d8; }
.dashboard-showcase .quick-features div:nth-child(3) { right: 12%; bottom: -32px; border-top: 3px solid #d5b8c8; }
.feature, .business-inner { display: block; min-height: 0; }
.feature .feature-copy, .business-copy { max-width: 740px; margin: 0 auto 40px; }
.feature .feature-copy p, .business-copy p { max-width: 650px; }
.feature > .feature-screen { border-radius: 4px; }
.feature > .feature-screen img, .feature .student-shot-stage { width: 100%; max-width: 100%; }
.calendar-showcase { position: relative; display: block; margin-bottom: 32px; }
.calendar-showcase .calendar-screen { width: 100%; }
.calendar-showcase .calendar-editor { position: absolute; z-index: 3; width: 34%; max-width: 330px; right: -24px; bottom: -32px; margin: 0; }
.calendar-editor img { background: white; box-shadow: 0 18px 38px rgba(11,47,68,.24); }
.business-screens { display: grid; gap: 36px; height: auto; transform: none; }
.business-screens img { position: static; width: 100%; max-width: 100%; }
@media (max-width: 1100px) {
  .dashboard-showcase .quick-features div:nth-child(1) { right: 12px; }
  .dashboard-showcase .quick-features div:nth-child(2) { left: 12px; }
  .calendar-showcase .calendar-editor { right: 12px; }
}
@media (max-width: 780px) {
  .dashboard-showcase { margin-bottom: 0; }
  .dashboard-showcase .quick-features { position: static; display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .dashboard-showcase .quick-features div { position: static; width: 100%; padding: 16px 20px; }
  .calendar-showcase .calendar-editor { width: 44%; right: 8px; bottom: -20px; }
  .calendar-showcase { margin-bottom: 20px; }
  .feature .feature-copy, .business-copy { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }
