:root {
  --teal: #1D5C4D;
  --teal-dark: #154538;
  --sun: #F6A33B;
  --coral: #E9635A;
  --coral-text: #C94A40;
  --blue: #2F6FA8;
  --ink: #1F2A33;
  --muted: #55636E;
  --ground: #FBFAF7;
  --sky: #EAF4F1;
  --line: #DCE7E3;
  --gold: #C9A227;
  --learn: #1D5C4D;
  --grow: #3E8E6E;
  --connect: #2F6FA8;
  --thrive: #B7791F;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Nunito Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ground); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.kicker { font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-text); }
.kicker.teal { color: var(--teal-dark); }
.kicker.sun { color: var(--sun); }
.h2 { font-size: clamp(30px, 4.4vw, 46px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; margin-bottom: 40px; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } section { padding: 100px 0; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav { display: none; gap: 28px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; }
@media (min-width: 900px) { .nav { display: flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--teal-dark); }
.btn.ghost:hover { background: var(--sky); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.sun:hover { background: #E8942A; border-color: #E8942A; color: var(--ink); }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* hero */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.05; }
.hero .lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; font-size: 14px; color: var(--muted); }
.trust span::before { content: "\2713  "; color: var(--teal); }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } .hero { padding: 72px 0 88px; } }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 21px; }
.bg-white { background: #fff; }
.bg-sky { background: var(--sky); }
.bg-teal { background: var(--teal); color: #fff; }
.bg-teal .h2, .bg-teal h3 { color: #fff; }
.num { width: 52px; height: 52px; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 24px; }
.week { flex-direction: row; align-items: center; gap: 14px; }
.week img { width: 64px; height: 64px; flex-shrink: 0; }
.week .label { font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--teal-dark); }
@media (min-width: 1000px) { .week { flex-direction: column; align-items: flex-start; } }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
@media (min-width: 720px) { .crew { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .crew { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.crew figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.crew .ring { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.crew .ring img { width: 84px; height: 84px; }
.crew figcaption b { font-family: var(--display); font-weight: 600; font-size: 17px; display: block; }
.crew figcaption span { font-size: 14px; color: #CFE6DE; }
.thumb { height: 220px; background: var(--ground); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.thumb img { max-width: 88%; max-height: 88%; object-fit: contain; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5C4D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain; }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 420px 1fr; gap: 72px; } }

/* testimonials */
.quote { margin: 0; }
.quote .tag { align-self: flex-start; padding: 5px 12px; background: var(--sky); border-radius: 999px; font-weight: 800; font-size: 12.5px; color: var(--teal-dark); }
.quote blockquote { margin: 0; font-size: 17px; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--display); font-size: 48px; line-height: .6; color: var(--sun); margin: 10px 0 8px; }
.quote figcaption b { font-family: var(--display); font-weight: 600; font-size: 18px; display: block; }

/* pricing */
.pricing { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 1000px) { .pricing { grid-template-columns: 1fr 1.3fr 1fr; } .pricing .featured { order: 2; } .pricing .free { order: 1; } .pricing .group { order: 3; } }
.featured { border: 3px solid var(--teal); }
.badge { align-self: flex-start; padding: 6px 14px; background: var(--sun); border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price .now { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1; color: var(--teal-dark); }
.price .was { font-family: var(--display); font-size: 24px; color: #6B7780; text-decoration: line-through; }
.price .pill { padding: 5px 12px; background: #FDE3DF; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .06em; color: #9E3624; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 800; font-size: 15px; }
.field label small { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input { min-height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.field input:focus { outline: 3px solid rgba(29,92,77,.25); border-color: var(--teal); }
.hint { font-size: 13.5px; color: var(--muted); }
.agree { display: flex; gap: 12px; align-items: flex-start; }
.agree input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 700; font-size: 15px; }
.form-msg.error { color: #9E3624; }

/* checkout */
.checkout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1000px) { .checkout { grid-template-columns: 500px 1fr; gap: 28px; } }
.summary { flex-direction: row; align-items: center; gap: 16px; border: 2px solid var(--teal); }
.summary .grow { flex-grow: 1; }
.summary .now { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; color: var(--teal-dark); text-align: right; }
.summary .was { font-size: 14px; color: #6B7780; text-decoration: line-through; text-align: right; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num { width: 38px; height: 38px; font-size: 18px; flex-shrink: 0; }
.step b { font-family: var(--display); font-weight: 600; font-size: 18px; display: block; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; background: var(--ground); border-radius: 20px; text-align: center; }
.qr-box img { width: 240px; height: 240px; border-radius: 12px; background: #fff; }
.trust-row { display: grid; gap: 18px; padding: 24px; background: var(--sky); border-radius: 22px; margin-top: 24px; }
@media (min-width: 1000px) { .trust-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* cta + footer */
.cta-band { text-align: center; }
.cta-band .crew-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cta-band .crew-row img { width: 52px; height: 52px; }
.site-footer { background: var(--teal-dark); color: #CFE6DE; padding: 36px 0; font-size: 15px; }
.site-footer b { font-family: var(--display); font-weight: 600; font-size: 18px; color: #fff; }
.site-footer a { color: #fff; }
.page-top { padding: 40px 0 72px; }
.btn.small { white-space: nowrap; }
@media (max-width: 480px) { .brand img { height: 32px; } }

/* ThriveTogether additions */
.tagline { font-family: var(--display); font-style: normal; font-weight: 400; color: var(--teal); }
.library { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .library { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .library { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lib { border-radius: 22px; padding: 24px; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.lib img { width: 34px; height: 34px; }
.lib h3 { font-size: 22px; color: #fff; }
.lib p { color: rgba(255,255,255,.92); font-size: 15px; }
.lib .weeks { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: .9; }
.lib.learn { background: var(--learn); } .lib.grow { background: var(--grow); } .lib.connect { background: var(--connect); } .lib.thrive { background: var(--thrive); }
.cat { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.cat.learn { background: var(--learn); } .cat.grow { background: var(--grow); } .cat.connect { background: var(--connect); } .cat.thrive { background: var(--thrive); }
.community { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .community { grid-template-columns: 1.1fr 1fr; } }
.site-footer .foot-logo { height: 40px; width: auto; margin-bottom: 6px; }
.site-footer .tagline { color: #fff; font-size: 17px; }

.field input[type="file"] { min-height: 0; padding: 11px 13px; line-height: 1.4; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 800; font-size: 14px; margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; cursor: pointer; }
.receipt-preview { max-width: 140px; border-radius: 12px; border: 2px solid var(--line); }
.receipt-preview[hidden] { display: none; }

/* ============================================================
   Motion and interaction
   All of it is opt-in: the ".js" class is only on <html> when
   scripting is on, so nothing hides if JavaScript fails.
   ============================================================ */

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.7,.3,1) var(--d, 0ms), transform .7s cubic-bezier(.22,.7,.3,1) var(--d, 0ms); }
.js .reveal.pop { transform: translateY(14px) scale(.96); }
.js .reveal.pop.in { transform: none; }

/* hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-.6deg); } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(18px, -22px) scale(1.06); } 66% { transform: translate(-14px, 12px) scale(.96); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(246,163,59,.55); } 70% { box-shadow: 0 0 0 16px rgba(246,163,59,0); } 100% { box-shadow: 0 0 0 0 rgba(246,163,59,0); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(320%) skewX(-18deg); } }

.js .hero .stack > * { animation: rise .8s cubic-bezier(.22,.7,.3,1) backwards; }
.js .hero .stack > *:nth-child(1) { animation-delay: .05s; }
.js .hero .stack > *:nth-child(2) { animation-delay: .15s; }
.js .hero .stack > *:nth-child(3) { animation-delay: .25s; }
.js .hero .stack > *:nth-child(4) { animation-delay: .35s; }
.js .hero .stack > *:nth-child(5) { animation-delay: .45s; }
.js .hero > .wrap > img { animation: rise 1s cubic-bezier(.22,.7,.3,1) .3s backwards, floaty 7s ease-in-out 1.3s infinite; }

/* soft moving colour behind the hero */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 0; }
.hero::before { width: 420px; height: 420px; top: -140px; right: -80px; background: radial-gradient(circle, rgba(246,163,59,.5), transparent 68%); animation: blob 18s ease-in-out infinite; }
.hero::after { width: 360px; height: 360px; bottom: -160px; left: -110px; background: radial-gradient(circle, rgba(47,111,168,.34), transparent 68%); animation: blob 22s ease-in-out -7s infinite reverse; }
.hero .wrap { position: relative; z-index: 1; }

/* buttons */
.btn { position: relative; overflow: hidden; transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(21,69,56,.55); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-120%) skewX(-18deg); pointer-events: none; }
.btn:hover::after { animation: sheen .75s ease-out; }
.btn.sun:hover { box-shadow: 0 10px 22px -10px rgba(232,148,42,.8); }
.js .hero .ctas .btn:first-child { animation: pulse-ring 2.8s ease-out 1.8s 3; }

/* cards lift */
.card { transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease, border-color .25s ease; }
.grid .card:hover, .pricing .card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -22px rgba(21,69,56,.55); border-color: #BFD8D0; }
.card.week:hover img { animation: wiggle .55s ease-in-out; }
.thumb { overflow: hidden; }
.thumb img { transition: transform .4s cubic-bezier(.2,.8,.3,1); }
.card:hover .thumb img { transform: scale(1.07); }
.featured { position: relative; }
.pricing .featured:hover { transform: translateY(-8px); }

/* library tiles + crew */
.lib { transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease; }
.lib:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 20px 34px -20px rgba(0,0,0,.4); }
.lib img { transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.lib:hover img { transform: scale(1.14) rotate(-6deg); }
.crew figure { transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.crew figure:hover { transform: translateY(-6px); }
.crew .ring { transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease; }
.crew figure:hover .ring { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(246,163,59,.35); }
.crew figure:hover .ring img { animation: wiggle .6s ease-in-out; }
.cta-band .crew-row img { transition: transform .3s cubic-bezier(.2,.8,.3,1); }
.cta-band .crew-row img:hover { transform: translateY(-8px) scale(1.12); }

/* header */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(21,69,56,.6); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.nav a { position: relative; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2,.8,.3,1); }
.nav a:hover, .nav a.active { color: var(--teal-dark); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--sun), var(--coral)); z-index: 30; pointer-events: none; }

/* mobile menu */
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 44px; padding: 0 11px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-nav { display: grid; grid-template-rows: 0fr; overflow: hidden; background: #fff; border-bottom: 1px solid transparent; transition: grid-template-rows .32s cubic-bezier(.2,.8,.3,1), border-color .32s ease; }
.mobile-nav.open { grid-template-rows: 1fr; border-bottom-color: var(--line); }
.mobile-nav > div { min-height: 0; }
.mobile-nav a { display: block; padding: 15px 22px; font-weight: 700; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.mobile-nav a:first-child { border-top: 0; }
.mobile-nav a:active { background: var(--sky); }
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* FAQ accordion */
.faq { padding: 0; cursor: pointer; }
.faq summary { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 13px; height: 13px; margin-top: 7px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg); transition: transform .3s cubic-bezier(.2,.8,.3,1); }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq[open] summary { padding-bottom: 8px; }
.faq .answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2,.8,.3,1); }
.faq[open] .answer { grid-template-rows: 1fr; }
.faq .answer > div { min-height: 0; overflow: hidden; }
.faq .answer p { padding: 0 24px 22px; }
.faq:hover { border-color: #BFD8D0; }

/* back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.3,1), visibility .3s; box-shadow: 0 10px 24px -12px rgba(21,69,56,.9); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-dark); transform: translateY(-3px); }

/* links and inputs */
.field input, .field input[type="file"] { transition: border-color .2s ease, box-shadow .2s ease; }
.site-footer a { transition: opacity .2s ease; }
.site-footer a:hover { opacity: .75; }

/* respect the system setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* on phones the hamburger carries the nav, so the header CTA steps aside */
@media (max-width: 899px) { .site-header .wrap > .btn { display: none; } }
