/* Beefing Up the Philippines — styles */
:root {
  --green-950: #0f2418;
  --green-900: #14301f;
  --green-700: #1f4d32;
  --green-500: #2f7a4a;
  --green-100: #e3efe6;
  --gold: #d9a441;
  --gold-soft: #f4e3b8;
  --rust: #b4532a;
  --cream: #fbf7ef;
  --wheat: #f3e9d4;
  --paper: #ffffff;
  --ink: #1d1f1a;
  --muted: #5d6157;
  --line: #e4ddcd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 20, .06), 0 8px 24px rgba(20, 30, 20, .08);
  --shadow-lg: 0 20px 50px rgba(15, 36, 24, .25);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--green-950); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--wheat); }
.section-dark { background: var(--green-900); color: #e8efe9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 12px;
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .lead { color: #b9c9bd; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--green-950); box-shadow: 0 6px 18px rgba(217, 164, 65, .35); }
.btn-primary:hover { background: #e6b350; }
.btn-dark { background: var(--green-700); color: #fff; }
.btn-dark:hover { background: var(--green-500); }
.btn-outline { border-color: currentColor; color: var(--green-700); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 36, 24, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 164, 65, .35);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand-logo { height: 60px; width: auto; }
.footer-logo { height: 84px; width: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-950); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--green-900);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #e3ece5; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links .btn { padding: 10px 18px; color: var(--green-950); }
.nav-links .btn:hover { color: var(--green-950); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand-logo { height: 52px; }
  .nav-links {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--green-950); border-bottom: 1px solid rgba(217, 164, 65, .35); padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 4px; }
  .nav-links .btn { margin-top: 8px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(217,164,65,.22), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(47,122,74,.45), transparent 60%),
    linear-gradient(160deg, var(--green-950), var(--green-700));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--cream); clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 100px) 0 clamp(90px, 11vw, 140px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { color: #cddbd1; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: #a9bdb0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.hero-books { position: relative; height: 420px; }
.hero-books .cover { position: absolute; width: 210px; box-shadow: var(--shadow-lg); transition: transform .4s ease; }
.hero-books .cover:nth-child(1) { left: 6%;  top: 40px; transform: rotate(-8deg); z-index: 1; }
.hero-books .cover:nth-child(2) { left: 30%; top: 0;    transform: rotate(2deg);  z-index: 3; }
.hero-books .cover:nth-child(3) { left: 54%; top: 50px; transform: rotate(9deg);  z-index: 2; }
.hero-books:hover .cover:nth-child(1) { transform: rotate(-11deg) translateX(-10px); }
.hero-books:hover .cover:nth-child(3) { transform: rotate(12deg) translateX(10px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-books { height: 300px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-books .cover { width: 150px; }
}

/* Generated book cover */
.cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden;
  background: var(--c, var(--green-700)); color: #fff;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.18), var(--shadow);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.cover-mock {
  margin: 10px 0 0; text-align: center; font: 700 .7rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 760px) { .book-card .cover-wrap { width: 180px; margin: 0 auto; } .book-card .cover-wrap .cover { width: 100%; } }
/* Hero with two covers */
.hero-books.two .cover:nth-child(1) { left: 14%; top: 50px; transform: rotate(-7deg); z-index: 1; }
.hero-books.two .cover:nth-child(2) { left: 42%; top: 10px; transform: rotate(3deg); z-index: 2; }
.hero-books.two:hover .cover:nth-child(1) { transform: rotate(-10deg) translateX(-10px); }
.cover-art {
  position: absolute; inset: 0; padding: 12% 11% 10% 14%; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 110%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%);
}
.cover-art .c-series { font-size: .58em; letter-spacing: .2em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.cover-art .c-rule { width: 34%; height: 2px; background: var(--gold); margin: 9% 0; }
.cover-art .c-title { font-family: var(--font-head); font-weight: 700; font-size: 1.35em; line-height: 1.05; }
.cover-art .c-num {
  margin-top: auto; font-family: var(--font-head); font-size: 3.2em; line-height: 1; color: var(--gold); opacity: .95;
}
.cover-art .c-author { font-size: .6em; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: 6%; }
.cover-art svg { position: absolute; right: 8%; bottom: 8%; width: 34%; opacity: .16; }

/* Trust strip */
.strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip-item { padding: 28px 20px; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: 0; }
.strip-item strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--green-700); }
.strip-item span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Books */
.books-grid { display: grid; gap: 28px; }
.book-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 32px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.book-card .cover { font-size: 15px; }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700);
}
.pill.gold { background: var(--gold-soft); color: #7a5410; }
.pill.rust { background: #f6e0d5; color: var(--rust); }
.pill.slate { background: #e3e8ef; color: #2b3f5c; }
.book-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.book-sub { color: var(--rust); font-weight: 600; margin-bottom: 14px; }
.book-card .desc { color: var(--muted); }
.highlights { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.highlights li { padding-left: 26px; position: relative; }
.highlights li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f4d32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.toc { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.toc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; font-weight: 700; color: var(--green-900);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary span::before { content: "▸ "; color: var(--gold); }
.toc[open] summary span::before { content: "▾ "; }
.toc summary small { font-weight: 600; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.toc-body { padding: 4px 16px 16px; display: grid; gap: 14px; max-height: 460px; overflow: auto; border-top: 1px solid var(--line); }
.toc-part h4 { font-family: var(--font-body); font-size: .92rem; margin: 10px 0 6px; color: var(--ink); }
.toc-part h4 span { display: inline-block; margin-right: 8px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.toc-part ol { margin: 0; padding-left: 28px; display: grid; gap: 3px; font-size: .88rem; color: var(--muted); }
.toc-part li::marker { color: var(--green-500); font-weight: 700; }
.draft-note { margin: -8px 0 16px; font-size: .84rem; font-style: italic; color: var(--muted); }
.toc-extras { margin: 0; font-size: .84rem; color: var(--green-700); font-weight: 600; }
.book-audience { font-size: .9rem; font-weight: 600; color: var(--green-700); border-left: 3px solid var(--gold); padding-left: 12px; margin: -4px 0 16px; }
.book-pub { font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin: -6px 0 18px; }
.buy-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.store-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.store-btn {
  display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--line); background: var(--cream); color: var(--ink); transition: .15s;
}
.store-btn strong { font-size: .95rem; }
.store-btn .store-logo { height: 28px; width: auto; max-width: 110px; object-fit: contain; object-position: left center; margin-bottom: 4px; }
.store-btn.disabled .store-logo { filter: grayscale(1); }
.store-card .store-mark { height: 48px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.social-icon { width: 20px; height: 20px; object-fit: contain; }
.follow-row { display: flex; flex-wrap: wrap; gap: 10px; }
.follow-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: transform .15s, background .15s;
}
.follow-icon .social-icon { width: 24px; height: 24px; }
a.follow-icon:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); }
.follow-icon.soon { opacity: .7; cursor: default; }
.follow-msg { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.socials .btn { gap: 8px; }
.store-btn small { font-size: .75rem; color: var(--muted); }
a.store-btn:hover { border-color: var(--green-500); background: var(--green-100); }
.store-btn.disabled { opacity: .5; cursor: not-allowed; }
.store-btn.direct { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.store-btn.direct small { color: #cfe0d4; }
.store-btn.direct:hover { background: var(--green-500); }
.notify-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: var(--gold-soft); color: #5b400c; font-weight: 500;
}
.notify-box .btn { padding: 10px 16px; }
@media (max-width: 760px) {
  .book-card { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .book-card .cover { width: 180px; margin: 0 auto; }
}

/* Where to buy */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.store-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.store-card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  font-weight: 800; color: #fff; font-size: 1rem;
}
.store-card h3 { margin: 0; font-size: 1.15rem; }
.store-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.store-card.featured { background: var(--green-900); border-color: var(--green-900); color: #dfe9e2; }
.store-card.featured h3 { color: #fff; }
.store-card.featured p { color: #b9c9bd; }
.store-card.featured .btn { margin-top: 12px; align-self: flex-start; }

/* Academy / features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.feature .num { font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.feature p { color: #b9c9bd; margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tier.featured { background: var(--green-900); border-color: var(--green-900); color: #e3ece5; transform: translateY(-8px); }
.tier.featured h3 { color: #fff; }
.tier .badge {
  position: absolute; top: -12px; left: 28px; background: var(--gold); color: var(--green-950);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.tier .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 6px 0; color: var(--green-700); }
.tier.featured .price { color: var(--gold); }
.tier .price small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--muted); }
.tier.featured .price small { color: #a9bdb0; }
.tier .blurb { color: var(--muted); }
.tier.featured .blurb { color: #b9c9bd; }
.tier ul { list-style: none; padding: 0; margin: 10px 0 26px; display: grid; gap: 10px; flex: 1; }
.tier li { padding-left: 26px; position: relative; font-size: .95rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green-500); font-weight: 800; }
.tier.featured li::before { color: var(--gold); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier.featured { transform: none; } }

/* Courses */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.course {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.course h3 { font-size: 1.12rem; margin: 0; }
.course .meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .88rem; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.course .lock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.course .lock svg { width: 14px; height: 14px; }

/* Video library */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font: 600 .88rem/1 var(--font-body); padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.chip.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.course[hidden] { display: none; }
.course .thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; margin: -6px -6px 6px; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 80% 0%, rgba(217,164,65,.35), transparent 60%), linear-gradient(150deg, var(--green-900), var(--green-700));
  color: #fff;
}
.course .thumb > svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,.18); }
.course .thumb .pill { position: absolute; top: 10px; left: 10px; z-index: 2; }
.course .thumb.has-img { overflow: hidden; }
.course .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course .thumb.has-img > svg { position: relative; z-index: 1; background: rgba(0,0,0,.45); transition: transform .15s; }
a.thumb:hover > svg { transform: scale(1.1); }

/* Featured free lesson */
.fl-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.fl-player { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16 / 9; }
.fl-player video, .fl-player iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; background: #000; }
.yt-facade { position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 54px; border-radius: 14px;
  background: #ff0000; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s;
}
.yt-play svg { width: 30px; height: 30px; }
.yt-facade:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; }
.yt-link img { width: 26px; height: auto; }
.yt-link:hover { color: #c00; }
.fl-left { display: grid; gap: 14px; align-content: start; }
.fl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .86rem; margin-bottom: -4px; }
.fl-head span { color: var(--muted); font-weight: 600; }
/* Side-scrolling strip so the series can grow to 24+ lessons */
.fl-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.fl-list .fl-item { scroll-snap-align: start; }
.fl-list:empty { display: none; }
.fl-item {
  display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; text-align: left; cursor: pointer;
  padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.fl-item:hover { border-color: var(--green-500); }
.fl-item.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(217,164,65,.35); }
.fl-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; display: grid; place-items: center; }
.fl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-thumb svg { position: relative; width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }
.fl-text small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.fl-text b { display: block; font-size: .88rem; line-height: 1.3; }
.fl-meta h2 { margin: 12px 0 4px; }
.fl-meta .lead { font-size: 1rem; }
.fl-facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); }
.fl-facts strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.fl-meta .by { margin-bottom: 4px; }
.fl-meta .hero-ctas { margin-top: 18px; }
@media (max-width: 900px) { .fl-layout { grid-template-columns: 1fr; gap: 24px; } }
.course .cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.by { display: flex; align-items: center; gap: 10px; }
.by strong { display: block; font-size: .9rem; }
.by small { display: block; font-size: .78rem; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-weight: 700; font-size: .8rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.by.soon .avatar { background: var(--line); color: var(--muted); }
.watch { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--green-700); text-decoration: none; }
.watch svg { width: 14px; height: 14px; }

/* Experts */
.experts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.expert {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.expert-photo {
  width: 120px; height: 150px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--green-700), var(--green-950)); color: var(--gold);
  font-family: var(--font-head); font-size: 2.2rem;
}
.expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.expert h3 { margin: 8px 0 2px; }
.expert-role { color: var(--rust); font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.expert p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .76rem; padding: 4px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-weight: 600; }
.expert-count { margin-top: 10px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.expert.invite { border-style: dashed; background: transparent; box-shadow: none; }
.expert.invite .expert-photo { background: var(--wheat); color: var(--green-700); font-size: 3rem; }
.expert.invite .btn { padding: 10px 16px; font-size: .9rem; }
.expert.invite:hover { border-color: var(--green-500); }
@media (max-width: 520px) {
  .expert { grid-template-columns: 1fr; }
  .expert-photo { width: 110px; height: 130px; }
}

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.product .type { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.product h3 { margin: 6px 0; font-size: 1.15rem; }
.product p { color: var(--muted); font-size: .94rem; flex: 1; }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product .price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--green-700); }
.product .btn { padding: 10px 16px; font-size: .9rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.author-photo {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background:
  linear-gradient(160deg, var(--green-700), var(--green-950)); display: grid; place-items: center; box-shadow: var(--shadow-lg);
  position: relative;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); }
.author-photo .ph { color: rgba(255,255,255,.55); text-align: center; font-size: .9rem; padding: 20px; }
.author-photo .ph svg { width: 80px; margin: 0 auto 10px; opacity: .5; }
.author-role { color: var(--rust); font-weight: 600; margin-bottom: 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .author-photo { max-width: 340px; } }

/* Newsletter */
.newsletter {
  border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--rust), #8f3c1a); color: #fbe9de;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: #f6d6c6; margin: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 200px; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,122,74,.25); border-color: var(--green-500); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.qty-row {
  display: grid; grid-template-columns: 1fr 110px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.qty-row:last-child { border-bottom: 0; }
.qty-row .t { font-weight: 600; }
.qty-row .s { font-size: .85rem; color: var(--muted); }
.qty-row input { text-align: center; }
.qty-row.unavailable { opacity: .55; }
.radio-group { display: grid; gap: 10px; }
.radio-group label {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-weight: 500; cursor: pointer; margin: 0;
}
.radio-group input { width: auto; }
.order-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.order-layout aside { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } .order-layout aside { position: static; } }
.pay-qr { margin: 0 0 16px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.pay-qr img { width: 220px; height: auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; image-rendering: pixelated; }
.pay-qr figcaption { font-size: .88rem; color: var(--muted); }
.pay-qr figcaption strong { display: block; color: var(--green-900); font-size: 1rem; margin-bottom: 2px; }
.pay-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pay-list li { padding: 12px 14px; border-radius: 10px; background: var(--cream); border: 1px solid var(--line); font-size: .94rem; }
.pay-list strong { display: block; color: var(--green-700); }
.success {
  display: none; padding: 18px; border-radius: 12px; background: var(--green-100); color: var(--green-900); margin-top: 18px;
}
.success.show { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(160deg, var(--green-950), var(--green-700)); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #cddbd1; max-width: 640px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--green-500); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Feedlot Project */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.proof h3 { margin-bottom: 14px; }
.highlights.light li { color: #e3ece5; }
.highlights.light { margin: 0; }
.proof-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.proof-list li { padding-left: 16px; border-left: 3px solid var(--gold); }
.proof-list strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--green-700); }
.proof-list span { color: var(--muted); font-size: .94rem; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.partner { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.partner .num { font-family: var(--font-head); font-size: 1.6rem; color: var(--rust); line-height: 1; margin-bottom: 12px; }
.partner h3 { font-size: 1.12rem; }
.partner p { color: var(--muted); font-size: .94rem; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.step > span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--green-950); font-weight: 800; margin-bottom: 14px;
}
.step p { color: #b9c9bd; margin: 0; font-size: .94rem; }
.safety-note {
  margin-top: 32px; padding: 18px 20px; border-radius: 12px; background: rgba(217,164,65,.12);
  border: 1px solid rgba(217,164,65,.45); color: #f1e6cc;
}
.safety-note strong { color: var(--gold); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; border-left: 3px solid var(--gold); }
.timeline li { padding: 0 0 0 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--green-700); border: 3px solid var(--cream); }
.timeline .when { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.timeline h3 { margin: 4px 0; }
.timeline p { color: var(--muted); margin: 0; }
.enquire-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.fine { color: var(--muted); font-size: .94rem; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--muted); }
label.check input { width: auto; margin-top: 4px; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
@media (max-width: 960px) {
  .partner-grid, .partner-grid.grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .two-col, .enquire-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) { .partner-grid, .partner-grid.grid-3, .steps { grid-template-columns: 1fr; } }

/* Hero photo backdrop */
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,36,24,.95) 0%, rgba(15,36,24,.75) 55%, rgba(15,36,24,.35) 100%); }
.hero .container { position: relative; z-index: 1; }
.page-hero.has-photo { position: relative; overflow: hidden; }
.page-hero.has-photo .container { position: relative; z-index: 1; }
.page-hero.has-photo .hero-photo img { object-position: center 40%; opacity: .3; }
.hero::after { z-index: 2; }

/* Launch countdown */
.countdown { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--green-950); color: #e3ece5; max-width: 420px; }
.cd-label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.cd-grid div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 0; }
.cd-grid b { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.cd-grid div:first-child b { color: var(--gold); }
.cd-grid span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #a9bdb0; }
.cd-live { grid-column: 1 / -1; font-weight: 700; color: var(--gold); }

/* Why now */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--green-900); }
.stat span { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); }
.stat small { display: block; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.why-side { display: grid; gap: 18px; }
.gap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.gap-head h3 { font-size: 1.05rem; margin: 0 0 2px; }
.gap-head small { color: var(--muted); font-size: .78rem; }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 72px; align-items: center; gap: 10px; font-size: .86rem; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 22px; border-radius: 6px; background: var(--wheat); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--green-700); }
.bar-row.imp .bar i { background: var(--rust); }
.quote-card { margin: 0; display: grid; grid-template-columns: 2fr 3fr; border-radius: var(--radius); overflow: hidden; background: var(--green-950); box-shadow: var(--shadow); }
.quote-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.quote-card figcaption { padding: 20px; color: #fff; }
.quote-card .eyebrow { color: var(--gold); margin-bottom: 6px; }
.quote-card blockquote { margin: 0; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.35; }
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 64px; }
  .bar-row span { grid-column: 1 / -1; }
  .quote-card { grid-template-columns: 1fr; }
  .quote-card img { height: 170px; }
}

/* Engineer's Creed */
.creed { margin-top: 36px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: var(--green-900); color: #e3ece5; }
.creed h3 { color: #fff; font-size: 1.6rem; }
.creed .eyebrow { color: var(--gold); }
.creed p { color: #b9c9bd; font-style: italic; margin: 0; }
.creed ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.creed li::marker { color: var(--gold); font-weight: 800; }
@media (max-width: 760px) { .creed { grid-template-columns: 1fr; gap: 18px; } }

.tags.creds { margin-top: 18px; }
.tags.creds span { background: var(--wheat); color: var(--green-900); }

/* Ration formulator */
.blueprint { position: relative; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(to right, rgba(217,164,65,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(217,164,65,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.blueprint > .container { position: relative; }
.rt { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rt-panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.rt-panel h3 { margin: 10px 0 4px; }
.rt-sub { color: #a9bdb0; font-size: .9rem; }
.rt-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.rt-inputs.three { grid-template-columns: repeat(3, 1fr); }
.rt-inputs label { font-size: .78rem; font-weight: 600; color: #cddbd1; margin: 0; display: grid; gap: 6px; }
.rt-inputs input { background: var(--green-950); border-color: rgba(255,255,255,.18); color: #fff; padding: 10px 12px; }
.rt-err { background: rgba(180,83,42,.25); border: 1px solid rgba(180,83,42,.6); color: #f6d6c6; border-radius: 10px; padding: 10px 12px; font-size: .85rem; }
.rt-result { background: var(--green-950); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px; display: grid; gap: 10px; transition: opacity .2s; }
.rt-result.dim { opacity: .45; }
.rt-line { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: #cddbd1; }
.rt-line b { color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-line b.g { color: var(--gold); }
.rt-line b.e { color: #7fd1a1; }
.rt-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
.rt-mini div { background: rgba(255,255,255,.05); border-radius: 8px; padding: 8px 4px; }
.rt-mini small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #a9bdb0; }
.rt-mini b { color: #fff; }
.rt-note { font-size: .78rem; color: #a9bdb0; margin: 0; }
.rt-chips .chip { background: var(--green-950); border-color: rgba(255,255,255,.18); color: #e3ece5; }
.rt-chips .chip.on { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.rt-chips { margin: 14px 0 0; }
.rt-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.rt-head b { color: #fff; display: block; }
.rt-head small { color: var(--gold); font-size: .78rem; }
.rt-cost { text-align: right; flex: none; }
.rt-cost small { display: block; color: #a9bdb0; text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; }
.rt-cost b { color: #7fd1a1; font-size: 1.3rem; }
.rt-cost i { font-style: normal; font-size: .8rem; color: #a9bdb0; font-weight: 400; }
.rt-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; font-size: .8rem; color: #a9bdb0; }
.rt-foot b { color: #fff; white-space: nowrap; }
.rt-disclaimer { margin: 24px auto 0; max-width: 820px; text-align: center; font-size: .8rem; color: #a9bdb0; }
.rt-disclaimer a { color: var(--gold); }
@media (max-width: 960px) { .rt { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rt-inputs, .rt-inputs.three { grid-template-columns: 1fr 1fr; } .rt-line { font-size: .84rem; } }

/* Footer disclaimer */
.footer-legal { margin-top: 32px; font-size: .78rem; line-height: 1.55; color: #8fa596; display: grid; gap: 6px; max-width: 900px; }
.footer-legal strong { color: #cddbd1; }

/* Footer */
.site-footer { background: var(--green-950); color: #a9bdb0; padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cddbd1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
