/* Botanical Formulator Academy - public site styles */
:root {
  --green: #2f6b4f;
  --green-dark: #1f4a36;
  --leaf: #8cc152;
  --sage: #eef4ea;
  --cream: #fbf8f1;
  --ink: #212b36;
  --muted: #5f6b76;
  --line: #e3e7e0;
  --white: #fefefe;
  --warn: #9a5b12;
  --bad: #a23a2c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, video, iframe { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
.icon { width: 1em; height: 1em; fill: currentColor; }
.sr { position: absolute; left: -9999px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
  flex: none; width: 48px; height: 48px; border: 3px solid var(--green);
  display: grid; place-items: center; color: var(--green); font-size: 28px;
}
.brand-name { font-family: "Open Sans Condensed", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: lowercase; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav .nav-cta { border: 2px solid var(--green); padding: 6px 16px; color: var(--green); font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--green); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Flash messages */
.flash { padding: 12px 24px; text-align: center; font-weight: 600; }
.flash-ok { background: #e3f1dc; color: var(--green-dark); }
.flash-bad { background: #f8e2de; color: var(--bad); }

/* Hero */
.hero {
  position: relative; min-height: 68vh; display: grid; place-items: center; text-align: center;
  background-color: var(--green);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.14) 0 90px, transparent 91px),
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.10) 0 140px, transparent 141px),
    radial-gradient(circle at 60% 85%, rgba(255,255,255,.12) 0 110px, transparent 111px),
    radial-gradient(circle at 30% 75%, rgba(0,0,0,.08) 0 70px, transparent 71px),
    linear-gradient(135deg, #3f8a5c, #8cc152);
  background-size: cover; background-position: center;
}
.hero-tint { position: absolute; inset: 0; background: rgba(74, 140, 78, .62); mix-blend-mode: multiply; }
.hero-inner {
  position: relative; width: 100%; max-width: 1180px; padding: 56px 24px;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 390px); gap: 56px; align-items: center;
}
.hero-text { color: #fff; text-align: left; }
.login-card { background: #fff; color: var(--ink); text-align: left; padding: 32px 30px 28px; border-top: 6px solid var(--leaf); box-shadow: 0 22px 60px rgba(0, 0, 0, .28); }
.login-card h2 { font-size: 30px; text-transform: lowercase; margin: 0 0 6px; }
.login-card p { margin: 0 0 14px; }
.login-card .btn { width: 100%; text-align: center; margin-top: 10px; }
.login-card .form .btn { margin-top: 22px; }
.login-card .form-note { margin: 16px 0 0; text-align: center; }
.card-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 3px solid var(--green); color: var(--green); font-size: 26px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); text-transform: lowercase; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.typed { font-family: "Open Sans Condensed", sans-serif; font-weight: 700; font-size: clamp(24px, 4vw, 40px); margin: 8px 0 0; min-height: 1.3em; }
.caret { animation: blink 1s steps(1) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }

/* Intro */
.intro { max-width: 760px; margin: 0 auto; padding: 80px 24px 70px; text-align: center; font-size: 17px; }
.intro-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border: 2px solid var(--green); background: var(--green); color: #fff;
  font: 600 15px "Open Sans", sans-serif; text-decoration: none; cursor: pointer; text-transform: lowercase; letter-spacing: .02em;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--green-dark); }
.btn-small { padding: 7px 16px; font-size: 13px; }

/* Tile grid */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 23vw; grid-auto-flow: dense; }
.tile { position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(31, 74, 54, .82); font-size: 9vw; outline-offset: -4px; }
.tile.tall { grid-row: span 2; font-size: 12vw; }
.tile.wide { grid-column: span 2; }
.tile:nth-child(1) { color: rgba(255,255,255,.9); }
.tile .icon { transition: transform .4s ease; }
.tile-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 8%;
  background: rgba(31, 74, 54, .93); color: #fff; opacity: 0; transition: opacity .25s; font-size: 15px; text-align: center;
}
.tile-over h3 { font-size: clamp(18px, 2.1vw, 30px); text-transform: lowercase; }
.tile-over p { margin: 0; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.5; }
.tile:hover .tile-over, .tile:focus .tile-over, .tile:focus-within .tile-over { opacity: 1; }
.tile:hover .icon { transform: scale(1.08) rotate(-4deg); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; max-width: 1140px; margin: 0 auto; padding: 84px 24px; }
.feature h2 { font-size: 26px; text-transform: lowercase; color: var(--green); padding-bottom: 12px; border-bottom: 3px solid var(--leaf); display: inline-block; }
.feature p { margin: 8px 0 0; color: var(--muted); }

/* Courses */
.course-strip { background: var(--sage); padding: 74px 24px 84px; }
.section-title { text-align: center; font-size: 38px; text-transform: lowercase; margin-bottom: 36px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; max-width: 1140px; margin: 0 auto; }
.course-card { background: #fff; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31, 74, 54, .14); }
.course-cover { aspect-ratio: 16 / 10; background-size: cover; background-position: center; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 84px; }
.course-body { padding: 20px 22px 24px; }
.course-body h3 { font-size: 24px; text-transform: lowercase; }
.course-body p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.meta { font-size: 13px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Waitlist */
.waitlist { background: var(--green); color: #fff; text-align: center; padding: 78px 24px; }
.waitlist h2 { font-size: 40px; text-transform: lowercase; }
.waitlist p { margin: 0 auto 26px; max-width: 560px; }
.waitlist-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.waitlist-form input[type=text], .waitlist-form input[type=email] { padding: 12px 14px; border: 2px solid #fff; background: rgba(255,255,255,.96); font: 15px "Open Sans", sans-serif; min-width: 230px; }

/* Inner pages */
.page-head { background: var(--sage); padding: 54px 24px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 5vw, 50px); text-transform: lowercase; margin: 0; }
.page-head p { max-width: 720px; margin: 12px auto 0; color: var(--muted); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 56px 24px 80px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 60px 24px 90px; }
.narrow h1 { font-size: 40px; text-transform: lowercase; }

/* Log in page */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 64px auto 90px; box-shadow: 0 18px 50px rgba(31, 74, 54, .16); }
.auth-side {
  background: linear-gradient(150deg, #2f6b4f, #5fa24f); color: #fff; padding: 56px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { font-size: 44px; text-transform: lowercase; margin: 18px 0 10px; }
.auth-side p { margin: 0; font-size: 17px; opacity: .95; }
.auth-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border: 3px solid #fff; font-size: 36px; }
.auth-form { background: #fff; padding: 48px 44px; }
.auth-form h1 { font-size: 36px; text-transform: lowercase; }

/* Forms */
.form label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.form input[type=text], .form input[type=email], .form input[type=password] {
  width: 100%; padding: 12px 14px; border: 1px solid #b9c2b6; font: 16px "Open Sans", sans-serif; background: #fff;
}
.form input:focus { outline: 2px solid var(--leaf); border-color: var(--green); }
.form .btn { margin-top: 24px; width: 100%; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.error { background: #f8e2de; color: var(--bad); padding: 10px 14px; margin: 14px 0; font-weight: 600; font-size: 14px; }
.notice { background: #fdf1d8; color: var(--warn); padding: 12px 16px; margin: 0 0 22px; font-size: 15px; }

/* Course page */
.course-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.course-about p { margin-top: 0; }
.lesson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-list a, .lesson-list .locked { display: flex; align-items: center; gap: 14px; padding: 15px 6px; text-decoration: none; color: var(--ink); }
.lesson-list a:hover { background: var(--sage); }
.lesson-list .num { flex: none; width: 34px; height: 34px; border: 2px solid var(--green); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.lesson-list .done .num { background: var(--green); color: #fff; }
.lesson-list .name { flex: 1; font-weight: 600; }
.lesson-list .locked { color: var(--muted); }
.lesson-list .locked .num { border-color: #b9c2b6; color: #94a091; }
.lesson-list .current { background: var(--sage); }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; background: var(--leaf); color: #16361f; }
.tag-lock { background: #e6e9e3; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.cta-box { background: var(--sage); padding: 24px; margin-bottom: 26px; }
.cta-box p { margin: 0 0 14px; }

/* Lesson page */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); gap: 40px; align-items: start; }
.player { position: relative; background: #101812; aspect-ratio: 16 / 9; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #cfd8cc; text-align: center; padding: 20px; }
.lesson-main h1 { font-size: 36px; text-transform: lowercase; margin-top: 24px; }
.crumb { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: 16px; }
.crumb a { text-decoration: none; }
.download { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid var(--green); text-decoration: none; font-weight: 600; margin: 8px 0 20px; }
.download:hover { background: var(--sage); }
.lesson-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.lesson-actions form { margin: 0; }
.side h2 { font-size: 22px; text-transform: lowercase; }
.progress-bar { height: 8px; background: #dde5d8; margin: 8px 0 20px; }
.progress-bar span { display: block; height: 100%; background: var(--green); }

/* Footer */
.site-footer { background: #17251d; color: #cdd6ca; padding: 46px 24px 24px; font-size: 14px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-family: "Open Sans Condensed", sans-serif; font-size: 20px; text-transform: lowercase; }
.site-footer p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: #cdd6ca; }
.copyright { max-width: 1140px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid #2c3d33; color: #8d9a8b; font-size: 13px; }

/* Phones and tablets */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 16px; }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; }
  .tile { font-size: 18vw; }
  .tile.tall { font-size: 24vw; }
  .tile.wide { grid-column: span 1; }
  .tile-over h3 { font-size: 19px; }
  .tile-over p { font-size: 12px; }
  .features { grid-template-columns: 1fr; gap: 34px; padding: 60px 24px; }
  .course-layout, .lesson-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 44px 20px; }
  .hero-text { text-align: center; }
  .login-card { max-width: 420px; width: 100%; margin: 0 auto; }
  .auth { grid-template-columns: 1fr; margin: 0 0 40px; box-shadow: none; }
  .auth-side { padding: 36px 24px; }
  .auth-side h2 { font-size: 34px; }
  .auth-form { padding: 32px 24px; }
  .intro { padding: 56px 24px 50px; }
}
@media (max-width: 480px) {
  .site-header { padding: 10px 16px; }
  .brand-mark { width: 40px; height: 40px; font-size: 22px; }
  .brand-name { font-size: 17px; }
  .wrap { padding: 40px 16px 60px; }
  .waitlist-form input[type=text], .waitlist-form input[type=email], .waitlist-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
