/* The home page. styles.css keeps the header, footer and tokens the document
   pages share; demo.css keeps the sample workout. Everything else is here. */
@font-face{font-family:"Inter";src:url("assets/fonts/inter-latin-opsz-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

.home{--ink-2:#14120f;--ink-3:#1d1a16;--paper-2:#e4ddce;--paper-ink:#1a1712;--paper-muted:#5d574b;--copper-deep:#8a4f27;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;font-optical-sizing:auto;overflow-x:clip}
.home .wrap{width:min(1160px,calc(100% - 64px))}
:where(.home) :is(h1,h2,h3,h4,p,ol,ul,figure){margin:0}
:where(.home main) :is(ol,ul){padding:0;list-style:none}

/* Header */
.home .site-header{height:76px;border-bottom:0}
.h-nav{display:flex;gap:30px;margin-left:auto;margin-right:12px}
.h-nav a{font-size:14px;font-weight:500;color:var(--muted);text-decoration:none;min-height:44px;display:flex;align-items:center}
.h-nav a:hover{color:var(--paper)}
.home .header-download{background:var(--paper);color:var(--ink);padding:0 18px;border-radius:999px;font-size:14px;font-weight:650;min-height:40px}
.home .header-download:hover{background:var(--copper);color:var(--ink)}

/* Shared pieces */
.h-eyebrow{font-size:12px;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;font-weight:650;color:var(--copper)}
.h-button{display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:0 26px;border-radius:999px;background:var(--copper);color:var(--ink);font-size:17px;font-weight:700;text-decoration:none;transition:background .15s,transform .15s}
.h-button:hover{background:var(--paper)}
.h-button:active{transform:scale(.98)}
.h-button svg{width:19px;height:19px;flex:none}
.h-textlink{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:550;text-decoration-thickness:1px;text-underline-offset:5px}
.h-textlink:hover{color:var(--copper)}
.h-sec-head{display:grid;gap:16px;max-width:640px}
.h-sec-head h2,.h-data h2,.h-close h2,.home .engine-intro h2{font-size:clamp(34px,4.6vw,58px);line-height:1.04;letter-spacing:-.03em;word-spacing:.08em;font-weight:740;text-wrap:balance}
.h-sec-head p:not(.h-eyebrow){font-size:18px;line-height:1.6;max-width:54ch}

/* The phone: a real capture inside a drawn frame. --w sets every measure. */
.phone{--w:300px;position:relative;flex:none;width:var(--w);padding:calc(var(--w)*.032);border-radius:calc(var(--w)*.165);background:#1b1916;box-shadow:0 0 0 1px #3d3a33,inset 0 0 0 1.5px #000,0 40px 70px -30px rgba(0,0,0,.75)}
.phone img{display:block;width:100%;height:auto;aspect-ratio:1206/2622;object-fit:cover;object-position:top;border-radius:calc(var(--w)*.135);background:#000}
.phone::before{content:"";position:absolute;z-index:2;top:calc(var(--w)*.058);left:50%;width:calc(var(--w)*.29);height:calc(var(--w)*.083);transform:translateX(-50%);border-radius:999px;background:#000}
.on-paper .phone{box-shadow:0 0 0 1px #3d3a33,inset 0 0 0 1.5px #000,0 34px 60px -28px rgba(40,30,15,.55)}

/* Hero */
.h-hero{position:relative;padding:34px 0 0;overflow:clip}
.h-hero-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:32px;align-items:center}
.h-hero-copy{padding-bottom:70px}
.h-hero h1{font-size:clamp(44px,5.3vw,72px);line-height:.98;letter-spacing:-.042em;font-weight:780;margin-top:22px}
.h-hero h1 span{display:block;color:var(--copper);white-space:nowrap}
.h-lede{font-size:clamp(17px,1.5vw,20px);line-height:1.55;color:var(--muted);max-width:44ch;margin-top:32px}
.h-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 26px;margin-top:34px}
.h-fine{font-size:14px;color:var(--muted);margin-top:18px}
.h-hero-phones{position:relative;display:flex;justify-content:center;align-items:flex-end;height:640px}
.h-stroke{position:absolute;z-index:0;left:50%;bottom:70px;width:150%;max-width:none;transform:translateX(-46%) rotate(-4deg);opacity:.95;pointer-events:none}
.h-hero-phones .phone{position:absolute;bottom:-70px}
.h-hero-phones .phone-front{--w:318px;z-index:2;left:calc(50% - 250px)}
.h-hero-phones .phone-back{--w:272px;z-index:1;left:calc(50% + 30px);bottom:-20px;transform:rotate(5deg)}
.h-hero-phones .phone-back img{filter:brightness(.82)}

/* Annotated workout screen */
.h-anatomy{background:var(--paper);color:var(--paper-ink);padding:104px 0 96px}

.h-anatomy .h-sec-head p:not(.h-eyebrow){color:var(--paper-muted)}
.h-anatomy-grid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:72px;align-items:center;margin-top:56px}
.h-anatomy .phone{--w:340px}
.h-pin{position:absolute;z-index:3;display:grid;place-items:center;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:var(--copper);color:var(--ink);font-size:14px;font-weight:750;font-variant-numeric:tabular-nums;box-shadow:0 0 0 4px rgba(206,133,80,.3),0 6px 14px rgba(0,0,0,.45)}
/* Each pin is a link to its note. The note it points at is marked, and so is the pin. */
.h-pin{text-decoration:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.h-pin::after{content:"";position:absolute;inset:-9px;border-radius:50%}
.h-pin:focus-visible{transform:scale(1.18);outline:3px solid var(--paper);outline-offset:2px;box-shadow:0 0 0 8px var(--ink)}
@media (hover:hover){.h-pin:hover{transform:scale(1.18);box-shadow:0 0 0 6px rgba(206,133,80,.38),0 6px 14px rgba(0,0,0,.45)}}
.h-notes{display:grid;gap:0;counter-reset:note}
.h-notes li{scroll-margin-top:72px}
.h-notes li:target{background:rgba(206,133,80,.26);box-shadow:-14px 0 0 rgba(206,133,80,.26),14px 0 0 rgba(206,133,80,.26)}
.h-notes li:target::before{background:var(--copper);color:var(--ink)}
.h-anatomy-grid:has(#workout-note-1:target) .h-pin[href="#workout-note-1"],.h-anatomy-grid:has(#workout-note-2:target) .h-pin[href="#workout-note-2"],.h-anatomy-grid:has(#workout-note-3:target) .h-pin[href="#workout-note-3"],.h-anatomy-grid:has(#workout-note-4:target) .h-pin[href="#workout-note-4"],.h-anatomy-grid:has(#workout-note-5:target) .h-pin[href="#workout-note-5"]{background:var(--paper);box-shadow:0 0 0 5px var(--copper),0 6px 14px rgba(0,0,0,.45)}
.h-notes li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px 18px;padding:20px 0;border-top:1px solid #cfc7b6}
.h-notes li:last-child{border-bottom:1px solid #cfc7b6}
.h-notes li::before{counter-increment:note;content:counter(note);grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--paper-ink);color:var(--paper);font-size:14px;font-weight:700}
.h-notes h3{font-size:19px;line-height:1.25;letter-spacing:-.015em;font-weight:680;align-self:center}
.h-notes p{grid-column:2;font-size:16px;line-height:1.55;color:var(--paper-muted);max-width:52ch}

/* Tap, rest, finish */
.h-flow{padding:104px 0 40px}
.h-flow .h-sec-head p:not(.h-eyebrow){color:var(--muted)}
.h-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin-top:56px}
.h-steps li{display:grid;gap:26px;justify-items:start;align-content:start}
.h-steps .phone{--w:min(100%,290px);--w:290px;justify-self:center}
.h-step-copy{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:20px;width:100%}
.h-step-copy h3{font-size:22px;line-height:1.2;letter-spacing:-.02em;font-weight:680}
.h-step-copy p{font-size:16px;line-height:1.6;color:var(--muted)}

/* Sample workout: demo.css draws it, this only spaces it. */
.home .engine-demo{padding-top:84px;padding-bottom:20px}

/* Programs */
.h-programs{padding:104px 0 110px}
.h-programs .h-sec-head p:not(.h-eyebrow){color:var(--muted)}
.h-programs-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:72px;align-items:start;margin-top:52px}
.h-programs .phone{--w:310px;position:sticky;top:28px}
.h-group+.h-group{margin-top:40px}
.h-group>h3{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:650;color:var(--copper);padding-bottom:14px}
.h-program{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 24px;align-items:baseline;padding:22px 0;border-top:1px solid var(--line)}
.h-group .h-program:last-child{border-bottom:1px solid var(--line)}
.h-program h4{margin:0;font-size:clamp(24px,2.6vw,32px);line-height:1.1;letter-spacing:-.025em;font-weight:720}
.h-program .h-facts{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.h-program p{grid-column:1/-1;font-size:16px;line-height:1.55;color:var(--muted);max-width:56ch}
.h-program a{color:var(--paper);text-underline-offset:4px;text-decoration-thickness:1px;white-space:nowrap}
.h-program a:hover{color:var(--copper)}
.h-programs-note{font-size:15px;line-height:1.6;color:var(--muted);margin-top:26px;max-width:56ch}

/* Food */
.h-food{background:var(--ink-2);padding:96px 0;border-block:1px solid var(--line)}
.h-food-grid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:72px;align-items:center}
.h-food .phone{--w:290px}
.h-food .h-sec-head p:not(.h-eyebrow){color:var(--muted)}

/* Your data */
.h-data{background:var(--paper);color:var(--paper-ink);padding:104px 0}
.h-data-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;align-items:start}
.h-data-list{display:grid}
.h-data-list li{padding:20px 0;border-top:1px solid #cfc7b6;display:grid;gap:6px}
.h-data-list li:last-child{border-bottom:1px solid #cfc7b6}
.h-data-list h3{font-size:19px;letter-spacing:-.015em;font-weight:680}
.h-data-list p{font-size:16px;line-height:1.55;color:var(--paper-muted)}

/* Closing */
.h-close{background:var(--copper);color:var(--ink);padding:84px 0}
.h-close-grid{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap}
.h-close-app{display:flex;align-items:center;gap:20px}
.h-close-app img{width:84px;height:84px;border-radius:19px;box-shadow:0 12px 26px -10px rgba(0,0,0,.5)}
.h-close p{font-size:17px;margin-top:8px}
.h-close .h-button{background:var(--ink);color:var(--paper)}
.h-close .h-button:hover{background:#2a251d}
.h-close .h-button:focus-visible{outline-color:var(--ink)}
.home .site-footer nav{flex-wrap:wrap}

/* Arrival: a short rise, once. Nothing depends on it. */
@media(prefers-reduced-motion:no-preference){
  .js .rise{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
  .js .rise.is-in{opacity:1;transform:none}
}

@media(max-width:1000px){
  .h-nav{display:none}
  .h-hero-grid{grid-template-columns:1fr;gap:10px}
  .h-hero-copy{padding-bottom:0}
  .h-hero-phones{height:520px;margin-top:20px}
  .h-hero-phones .phone-front{--w:270px;left:calc(50% - 200px)}
  .h-hero-phones .phone-back{--w:230px;left:calc(50% + 10px)}
  .h-anatomy-grid,.h-food-grid,.h-data-grid{grid-template-columns:1fr;gap:44px}
  .h-anatomy .phone,.h-food .phone{justify-self:center}
  .h-food .h-sec-head{order:-1}
  .h-programs-grid{grid-template-columns:1fr}
  .h-programs .phone{display:none}
  .h-steps{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(260px,300px);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:-32px;padding:0 32px 18px;scrollbar-width:none}
  .h-steps::-webkit-scrollbar{display:none}
  .h-steps li{scroll-snap-align:center}
  .h-steps .phone{--w:260px}
}
@media(max-width:700px){
  .home .wrap{width:calc(100% - 40px)}
  .home .site-header{height:64px}
  .h-hero{padding-top:18px}
  .h-hero h1{font-size:clamp(34px,11.6vw,54px);margin-top:16px}
  .h-hero h1 span{white-space:normal}
  .h-lede{margin-top:20px}
  .h-cta{margin-top:26px}
  .h-button{width:100%;justify-content:center}
  .h-hero-phones{height:440px;margin-top:26px}
  .h-hero-phones .phone-front{--w:232px;left:calc(50% - 168px)}
  .h-hero-phones .phone-back{--w:196px;left:calc(50% + 2px);bottom:-30px}
  .h-stroke{width:230%;bottom:60px}
  .h-anatomy,.h-data{padding:72px 0}
  .h-flow,.h-programs{padding-top:72px}
  .h-programs{padding-bottom:76px}
  .h-food{padding:72px 0}
  .h-anatomy-grid,.h-steps,.h-programs-grid{margin-top:40px}
  .h-anatomy .phone{--w:286px}
  .h-steps{margin-inline:-20px;padding-inline:20px;grid-auto-columns:250px}
  .h-steps .phone{--w:236px}
  .h-program{grid-template-columns:1fr}
  .h-program .h-facts{white-space:normal}
  .h-close{padding:64px 0}
  .h-close-grid{flex-direction:column;align-items:flex-start}
}

/* The film: the 50 second ad, right under the hero. It plays muted while it is on screen;
   "Watch with sound" starts it from the top with sound and the native controls. */
.h-film{position:relative;padding:120px 0;background:radial-gradient(60% 70% at 72% 50%,rgba(206,133,80,.2),transparent 70%),var(--ink-2);overflow:clip}
.h-film-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:72px;align-items:center}
.h-film h2{font-size:clamp(38px,5vw,66px);line-height:1;letter-spacing:-.035em;font-weight:780;text-wrap:balance}
.h-film-copy p:not(.h-film-cta){font-size:clamp(17px,1.5vw,20px);line-height:1.6;color:var(--muted);max-width:44ch;margin-top:28px}
.h-film-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:36px}
.h-film-play{border:0;cursor:pointer;font-family:inherit}
.h-film-length{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.h-film-frame{position:relative;width:min(400px,calc((100svh - 140px)*.5625));aspect-ratio:9/16;border-radius:30px;overflow:hidden;background:#0c0b09;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 50px 110px -40px rgba(206,133,80,.55),0 30px 60px -30px rgba(0,0,0,.8)}
.h-film-frame video{display:block;width:100%;height:100%;object-fit:cover}
.h-film-sound{position:absolute;right:14px;bottom:14px;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:rgba(12,11,9,.72);color:var(--paper);font:600 13px/1 "Inter",sans-serif;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.h-film-sound:hover{background:rgba(12,11,9,.9)}
.h-film :is(button):focus-visible{outline:2px solid var(--paper);outline-offset:3px}
@media(max-width:1000px){
  .h-film{padding:88px 0}
  .h-film-grid{grid-template-columns:1fr;gap:44px;justify-items:center;text-align:center}
  .h-film-copy p:not(.h-film-cta){margin-inline:auto}
  .h-film-cta{justify-content:center}
  .h-film-frame{width:min(380px,100%,calc((100svh - 120px)*.5625))}
}
