/* Nine27Life. Shares tokens + base pieces with Nine27Fit (pt-site): dark hero, rounded cards, curved band tops.
   All color comes from tokens.css so every palette works. */

body.site { overflow-x: hidden; }

/* ---------------- nav ---------------- */
.site-nav { position: fixed; top: 10px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 8px; pointer-events: none; }
.site-nav nav {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 5px; width: 100%; max-width: 560px;
  border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .12);
  background: var(--chrome, rgba(14, 15, 17, .66));
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.site-nav a {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 13px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #D9D5CC;
  font-stretch: 110%; font-variation-settings: "wdth" 110; transition: color .2s, background .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .nav-mark { padding: 0 12px 0 6px; }
.site-nav .nav-mark svg { width: 35px; height: 35px; color: var(--accent); }
.site-nav .nav-mark .wordmark { font-size: 11px; color: #F4F1EA; }
.site-nav .go { background: var(--btn-dark-bg); color: var(--btn-dark-fg); margin-left: 4px; }
.site-nav .go:hover { background: #fff; color: var(--btn-dark-fg); }
.site-nav .hide-sm { display: none; }
@media (min-width: 700px) { .site-nav { top: 22px; } .site-nav nav { width: auto; } .site-nav a { padding: 0 17px; } .site-nav .go { margin-left: 64px; } }

/* ---------------- hero (always dark) ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  padding: 118px 20px 88px; background: var(--hero-bg);
}
/* training-floor grid, fading out toward the edges */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
/* gold light from the upper right */
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -20%; top: -30%; width: 80%; height: 130%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
  filter: blur(10px); pointer-events: none;
}

.rise { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* banner: one centered verse, no buttons */
.hero h1 {
  max-width: 1180px; margin: 0 auto; text-align: center; font-size: clamp(27px, 8.5vw, 64px); line-height: 1.02; font-weight: 800; color: #F6F3EC;
  text-transform: uppercase; letter-spacing: .005em; font-stretch: 115%; font-variation-settings: "wdth" 115; text-wrap: balance; animation-delay: .2s;
}
@media (min-width: 900px) { .hero { padding: 172px 32px 136px; } .hero h1 { font-size: clamp(45px, 4.3vw, 61px); } }
.hero h1 em { font-style: normal; color: var(--accent); }


/* photo placeholder: drop an <img> inside, it fills the frame */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent) 0 14px, transparent 14px 28px);
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center; color: var(--faint);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph-in { display: grid; gap: 8px; justify-items: center; padding: 20px; font-size: 13px; }
.photo .ph-in svg { width: 34px; height: 34px; color: var(--line-strong); }
.photo .ph-in b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------------- sections ---------------- */
.band { position: relative; padding: 100px 20px; background: var(--bg); }
.band.alt { background: var(--bg-2); }
.band.dark { background: var(--dark); color: var(--on-dark); }
.band.curve { border-radius: 48px 48px 0 0; margin-top: -48px; }
@media (max-width: 640px) { .band { padding: 80px 18px; } .band.curve { border-radius: 32px 32px 0 0; margin-top: -32px; } }
@media (min-width: 900px) {
  .band { padding: 152px 32px 168px; }
  .band.curve { border-radius: 64px 64px 0 0; margin-top: -64px; }
  .band-head { margin-bottom: 64px; }
  .card { padding: 36px 32px; }
  .week, .about { gap: 24px; }
  .signup { padding: 44px 44px 40px; }
}
.wrap { max-width: 1080px; margin: 0 auto; }
.band-head { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.band-head h2 {
  margin: 0 0 12px; font-size: clamp(30px, 5vw, 48px); line-height: 1.02; font-weight: 800; color: var(--text-strong);
  text-transform: uppercase; letter-spacing: .01em; font-stretch: 112%; font-variation-settings: "wdth" 112;
}
.band-head p { margin: 0; color: var(--muted); font-size: 17px; }
.band.dark .band-head h2 { color: var(--on-dark); }
.band.dark .band-head p { color: var(--on-dark-muted); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft); padding: 28px 24px;
}
.ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep); flex: none; }
.ico svg { width: 24px; height: 24px; }
.card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-strong); font-stretch: 110%; font-variation-settings: "wdth" 110; }
.card p { margin: 0; color: var(--text); font-size: 15.5px; }


/* tags + tick lists */
.step-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--bg-2); color: var(--muted); }
.step-tag.now { background: var(--accent-wash); color: var(--accent-deep); }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-wash); }
.ticks li::after {
  content: ""; position: absolute; left: 3px; top: 5px; width: 12px; height: 12px; background: var(--accent-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------- form ---------------- */
.row { display: grid; gap: 12px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 1fr 1fr 1fr; } }
.fld { display: grid; gap: 7px; }
.fld > span, fieldset legend { font-size: 13px; font-weight: 700; color: var(--text-strong); letter-spacing: .02em; }
fieldset legend { padding: 0; margin-bottom: 9px; }
fieldset legend em, .fld > span em { font-style: normal; font-weight: 500; color: var(--faint); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fld input, .fld select, .fld textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px;
  background-color: var(--field); font-size: 16px; color: var(--text-strong); transition: border-color .2s, box-shadow .2s;
}
.fld textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8934A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-position: right 14px center; background-size: 18px; background-repeat: no-repeat; padding-right: 40px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.submit-row { display: grid; gap: 12px; }
.submit-row .fine { margin: 0; text-align: center; font-size: 12.5px; color: var(--faint); }
.err { margin: 0; color: #D0694F; font-size: 14px; min-height: 1.2em; text-align: center; }

/* ---------------- footer ---------------- */
.site-foot { padding: 44px 20px calc(110px + env(safe-area-inset-bottom)); background: var(--hero-bg); color: #8F8B82; border-top: 1px solid rgba(255,255,255,.06); }
@media (min-width: 900px) { .site-foot { padding-bottom: 44px; } }
.site-foot .wrap { display: grid; gap: 22px; font-size: 13.5px; }
@media (min-width: 820px) { .site-foot .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-foot .brandline { display: flex; align-items: center; gap: 10px; color: #F4F1EA; }
.site-foot .brandline svg { width: 40px; height: 40px; color: var(--accent); }
.site-foot .brandline .wordmark { font-size: 12px; }
.site-foot h4 { margin: 0 0 8px; color: var(--accent); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.site-foot p { margin: 0; }
.site-foot .ph { background: rgba(207, 169, 94, .16); color: #E6E1D6; }
.site-foot .legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; color: #6F6B63; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* footer tagline + 6061 Labs credit */
.foot-tag { margin-top: 12px !important; font-family: var(--font-serif); font-size: 16px; color: #CFCAC0; }
.labs-credit { grid-column: 1 / -1; justify-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 26px; text-decoration: none; opacity: .85; transition: opacity .2s; }
.labs-credit:hover { opacity: 1; }
.labs-credit .lc-top { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8F8B82; }
.labs-credit .lc-mark { display: inline-flex; align-items: center; gap: 8px; }
.labs-credit .lc-mark span { font-weight: 700; font-size: 16px; letter-spacing: -.02em; color: #F2EEE4; }
.site-foot .legal { text-align: center; }

/* ---------------- this week ---------------- */
.week { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .week { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.week-side { display: grid; gap: 16px; }
@media (min-width: 900px) { .week-side { gap: 24px; } }

.scripture .verse { margin: 20px 0 0; font-family: var(--font-serif); font-size: clamp(21px, 2.3vw, 25px); line-height: 1.4; color: var(--text-strong); }
.verse-ref { margin: 16px 0 0 !important; font-size: 12.5px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep) !important; }
.verse-ref small { font-size: inherit; color: var(--faint); margin-left: 6px; }
.commentary { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.commentary p { font-size: 16.5px; line-height: 1.6; }

.practice { background: var(--dark); border-color: var(--dark-line); box-shadow: var(--shadow-lift); }
.practice .step-tag { background: var(--accent); color: #111214; }
.practice h3 { color: var(--on-dark); font-size: 22px; }
.practice p { color: var(--on-dark-muted); font-size: 16px; }

.diet-days { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.diet-days li { display: grid; gap: 6px; justify-items: center; padding: 12px 2px 10px; border-radius: 14px; background: var(--bg-2); text-align: center; }
.diet-days b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.diet-days span { font-size: 12px; font-weight: 700; line-height: 1.15; color: var(--text-strong); }
.diet-days .dd-vegan { background: var(--accent-wash); }
.diet-days .dd-vegan b { color: var(--accent-deep); }
.diet-days .dd-fast { background: var(--dark); }
.diet-days .dd-fast b { color: var(--accent); }
.diet-days .dd-fast span { color: var(--on-dark); }
.diet-note { margin-top: 16px !important; font-size: 14px !important; color: var(--muted) !important; }

/* ---------------- why nine27 ---------------- */
.why { max-width: 760px; margin: 0 auto; }
.why-ref { margin-bottom: 14px !important; font-size: 12.5px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep) !important; }
.why p { font-size: 17px; line-height: 1.6; }

/* ---------------- about ---------------- */
.about { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; max-width: 960px; margin: 0 auto; }
@media (min-width: 820px) { .about { grid-template-columns: .85fr 1fr; gap: 56px; } }
.about .photo { aspect-ratio: 4 / 5; border-radius: 36px; width: 100%; }
.about-txt { display: grid; gap: 16px; }
.about-txt p { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--text); }

/* ---------------- train with me ---------------- */
.fit { display: grid; gap: 28px; align-items: center; padding: 34px 28px; background: var(--dark); border-color: var(--dark-line); box-shadow: var(--shadow-lift); overflow: hidden; }
@media (min-width: 860px) { .fit { grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 52px 56px; } }
.fit-brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); }
.fit-brand svg { width: 40px; height: 40px; color: var(--accent); }
.fit-brand .wordmark { font-size: 12px; }
.fit h2 { margin: 22px 0 12px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.02; font-weight: 800; color: var(--on-dark); text-transform: uppercase; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.fit p { color: var(--on-dark-muted); font-size: 16.5px; max-width: 46ch; }
.fit-side { display: grid; gap: 24px; justify-items: start; }
.fit .ticks { margin: 0; color: var(--on-dark); }
.fit .ticks li::before { background: rgba(207, 169, 94, .18); }
.fit .ticks li::after { background: var(--accent); }
.fit .btn { min-height: 54px; padding: 0 28px; }

/* ---------------- stay connected ---------------- */
.signup { max-width: 680px; margin: 0 auto; border-radius: 36px; }
.signup form { display: grid; gap: 18px; }
.signup .btn-main { min-height: 56px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 12px 6px; }
.done .ok { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #111214; }
.done .ok svg { width: 26px; height: 26px; }
.done h3 { margin: 0 0 6px; }
.done p { color: var(--muted); }

.site-foot a { color: #E6E1D6; }
.site-foot .labs-credit { color: inherit; }
@media (max-width: 420px) { .diet-days span { font-size: 10.5px; } .diet-days b { font-size: 10px; letter-spacing: .06em; } }

/* this week's video: YouTube thumbnail that links out */
.video { display: block; text-decoration: none; padding: 14px 14px 24px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.video:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.video .step-tag, .video h3, .video .watch { margin-left: 10px; margin-right: 10px; }
.video .step-tag { margin-top: 20px; }
.video h3 { margin-bottom: 0; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--dark); display: grid; place-items: center; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb.empty { background-color: var(--bg-2); background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent) 0 14px, transparent 14px 28px); }
.video-thumb .play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(10, 20, 38, .82); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.video-thumb .play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid var(--accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-thumb .len { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; }
.video .watch { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }

/* diet: full width under the scripture + side stack; text left, day strip right on desktop */
.week > .diet { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .week > .diet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
  .week > .diet .diet-days { margin-top: 0; gap: 8px; }
  .week > .diet .diet-days li { padding: 18px 4px 16px; }
  .week > .diet .diet-days span { font-size: 13px; }
}

/* about: sticky photo beside the longer story */
.about-side { display: grid; gap: 28px; max-width: 420px; width: 100%; justify-self: center; }
@media (min-width: 820px) { .about-side { position: sticky; top: 110px; } }
.about-pull { margin: 0; }
.about-txt strong { color: var(--text-strong); font-weight: 700; }
.pull { margin: 6px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.3; color: var(--text-strong); }
.pull cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.why p + p { margin-top: 16px; }

/* footer: full 9:27 under the reference */
.foot-verse { margin-top: 8px !important; max-width: 36ch; font-family: var(--font-serif); font-style: italic; font-size: 14.5px; line-height: 1.45; color: #A7A39A; }
.foot-verse span { font-family: var(--font-body); font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: #6F6B63; }

/* commentary: lead paragraph, small headings, pull quotes (formatting typed in ops) */
.commentary .step-tag { justify-self: start; margin-bottom: 4px; }
.commentary p.lead { font-family: var(--font-serif); font-size: clamp(19px, 2vw, 21px); line-height: 1.45; color: var(--text-strong); }
.commentary h4 { margin: 10px 0 -4px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); font-stretch: 110%; font-variation-settings: "wdth" 110; }
.commentary strong { color: var(--text-strong); font-weight: 700; }
.commentary .pull { margin: 8px 0; font-size: clamp(20px, 2.1vw, 23px); }

/* "What is a vegan fast?" link + modal */
.text-link { justify-self: end; margin-top: 14px; padding: 4px 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.text-link:hover { color: var(--text-strong); }
.diet { display: grid; }
@media (min-width: 900px) { .week > .diet .text-link { grid-column: 1 / -1; margin-top: -8px; } }
.modal { width: min(560px, calc(100% - 32px)); padding: 34px 30px 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: 0 40px 90px -30px rgba(10, 20, 38, .55); }
.modal::backdrop { background: rgba(10, 20, 38, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: rise .35s var(--ease) both; }
.modal h3 { margin: 16px 0 12px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--text-strong); font-stretch: 110%; font-variation-settings: "wdth" 110; }
.modal p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.modal p:last-child { margin-bottom: 0; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--text-strong); font-size: 22px; line-height: 1; cursor: pointer; }

/* ops preview banner */
.preview-bar { position: sticky; top: 0; z-index: 70; padding: 10px 16px; text-align: center; background: var(--accent); color: #111214; font-size: 13px; font-weight: 700; }
.preview-bar a { margin-left: 10px; color: #111214; }
.preview-bar ~ .site-nav { top: 52px; }

/* multi-paragraph plain fields (practice, diet text, small print) */
.prose p + p { margin-top: 12px; }
.prose:empty { display: none; }
.prose strong { color: inherit; font-weight: 700; }
.practice .prose strong { color: var(--on-dark); }
.prose .diet-note { margin-top: 0 !important; }
.prose:has(.diet-note) { margin-top: 16px; }
.prose .diet-note + .diet-note { margin-top: 10px !important; }
