/* Landing page for Data Skills for Online Stores. Loaded after course.css on the home page only. */
@font-face{font-family:"Instrument Serif";src:url(/assets/landing/fonts/InstrumentSerif.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(/assets/landing/fonts/InstrumentSerif-Italic.ttf) format("truetype");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Karla";src:url(/assets/landing/fonts/Karla.ttf) format("truetype");font-weight:200 800;font-display:swap}

:root{
  --lp-wall:#fcf3e3;--lp-coral-soft:#fbe8e1;--lp-course:#f6f4f0;--lp-ink:#2b2a28;--lp-teal:#165b64;--lp-teal-ink:#2f6b62;--lp-muted:#78644f;
  --lp-serif:"Instrument Serif",Georgia,serif;--lp-sans:"Karla",-apple-system,system-ui,sans-serif;
}
body.lp{background:var(--lp-wall);font-family:var(--lp-sans)}
/* no single word left alone on a paragraph's last line; headings break into even lines */
body.lp p,body.lp li{text-wrap:pretty}
body.lp h1,body.lp h2,body.lp h3{text-wrap:balance}

/* No header bar: the hero starts at the top, with a small Log in button floating top right */
.lp-top{position:absolute;top:0;right:0;z-index:6;padding:16px 20px}
.lp-login{display:inline-block;font:700 15px/1 var(--lp-sans);color:var(--lp-teal-ink);text-decoration:none;background:var(--lp-wall);border:2px solid var(--lp-teal-ink);border-radius:8px;padding:10px 16px}
.lp-login:hover{background:#fff}
.lp-login:focus-visible{outline:3px solid var(--lp-teal);outline-offset:2px}

/* Buttons: rectangles with rounded corners, never pills */
.lp-btn{display:inline-flex;align-items:center;justify-content:center;font:700 16px/1 var(--lp-sans);text-decoration:none;border-radius:8px;padding:15px 24px;border:2px solid transparent;white-space:nowrap}
.lp-btn.dark{background:var(--lp-ink);color:#fff}
.lp-btn.dark:hover{background:#000}
.lp-btn.light{background:var(--lp-wall);color:var(--lp-teal-ink);border-color:var(--lp-teal-ink)}
.lp-btn.light:hover{background:#fff}
.lp-btn:focus-visible{outline:3px solid var(--lp-teal);outline-offset:2px}

/* ---------- Hero ----------
   Widescreen: a stage with the picture's own proportions (2458 x 904). The plate and the
   Sam + Barkly layer fill it; the text sits on the wall between them. On narrower screens
   the stage keeps a minimum height and its sides are cropped, like background-size:cover. */
.lp-hero,.lp-qs,.lp-tl,.lp-sample,.lp-click,.lp-more,.lp-beta{margin:0}
/* clip sideways only, so the shadow sits below the hero instead of over the floor */
.lp-hero{position:relative;overflow-x:clip;overflow-y:visible;background:var(--lp-wall);z-index:1}
.lp-hero::after{content:"";width:100%;height:12px;position:absolute;left:0;top:100%;z-index:4;filter:blur(1.5px);pointer-events:none;
  background:radial-gradient(ellipse 50% 100% at 50% 0%,rgba(0,0,0,.28) 0%,rgba(0,0,0,.12) 50%,transparent 100%)}
.lp-stage{position:relative;width:max(100%,calc(420px * 2458 / 904));aspect-ratio:2458/904;left:50%;transform:translateX(-50%);container-type:inline-size}
.lp-scene{position:absolute;inset:0;will-change:transform}
.lp-scene img{position:absolute;inset:0;width:100%;height:100%;display:block}
.lp-phone-sam{display:none}
.lp-copy{position:absolute;z-index:2;left:16.8%;top:0;height:80.4%;width:46%;display:flex;flex-direction:column;justify-content:center}
.lp-eyebrow{margin:0 0 1.4cqw;font:700 max(11px,.81cqw)/1 var(--lp-sans);letter-spacing:.2em;text-transform:uppercase;color:var(--lp-muted)}
.lp-copy h1{margin:0;font:400 4.4cqw/1.02 var(--lp-serif);color:var(--lp-ink);letter-spacing:-.005em}
.lp-sub{margin:2.2cqw 0 0;font:400 clamp(16px,1.14cqw,24px)/1.5 var(--lp-sans);color:var(--lp-ink);max-width:31em}
.lp-cta{display:flex;gap:12px;margin-top:2cqw}
.lp-cta .lp-btn{font-size:clamp(15px,1.02cqw,21px);padding:1.0em 1.5em}

/* Phone: centred column, Sam from the hips up, buttons side by side over her hips */
@media (max-width:899px){
  .lp-top{padding:12px 12px}
  .lp-login{font-size:14px;padding:8px 12px}
  .lp-stage{width:auto;aspect-ratio:auto;left:0;transform:none;container-type:normal;padding:64px 16px 0;display:flex;flex-direction:column;align-items:center}
  .lp-scene img.lp-plate{object-fit:cover;object-position:50% 100%}
  .lp-scene img.lp-figures{display:none}
  /* static, so the buttons below anchor to the stage (over Sam's hips), not to the text */
  .lp-copy{position:static;height:auto;width:auto;max-width:340px;text-align:center;align-items:center}
  .lp-copy > p,.lp-copy > h1{position:relative;z-index:1}
  .lp-eyebrow{font-size:11px;margin-bottom:16px}
  .lp-copy h1{font-size:clamp(36px,10.4vw,46px);max-width:9.2em;text-wrap:balance}
  .lp-sub{font-size:16px;margin-top:16px}
  .lp-phone-sam{display:block;position:relative;z-index:1;width:min(84%,400px);height:auto;margin-top:26px}
  .lp-cta{position:absolute;z-index:3;left:0;right:0;bottom:16px;justify-content:center;gap:10px;margin:0;padding:0 16px}
  .lp-cta .lp-btn{flex:1;max-width:170px;font-size:16px;padding:15px 10px}
}

/* ---------- Questions block ----------
   A regular-height teal band. Each question types itself into a search box, pauses, then
   clears for the next. Without JavaScript, or with reduced motion, the three are listed. */
.lp-qs{position:relative;background:var(--lp-teal);color:var(--lp-wall);padding:64px 16px 72px;text-align:center}
.lp-qs-lead{margin:0 0 26px;font:700 13px/1 var(--lp-sans);letter-spacing:.2em;text-transform:uppercase;color:rgba(252,243,227,.75)}
.lp-search{display:none;align-items:center;gap:12px;max-width:600px;margin:0 auto;padding:14px 20px;background:var(--lp-wall);color:var(--lp-ink);border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.14);text-align:left}
.lp-search-icon{flex:none;color:var(--lp-teal)}
.lp-search-text{font:400 clamp(17px,1.6vw,22px)/1.3 "Courier New",Courier,monospace;white-space:nowrap;overflow:hidden;min-height:1.25em}
.lp-caret{flex:none;width:2px;height:1.3em;background:var(--lp-teal);animation:lp-blink 1s steps(1) infinite;margin-left:-10px}
@keyframes lp-blink{50%{opacity:0}}
.lp-qs-list{list-style:none;margin:0;padding:0;display:grid;gap:20px}
.lp-qs-list li{font:400 clamp(30px,4vw,56px)/1.1 var(--lp-serif);max-width:15em;margin:0 auto}
.lp-qs.live .lp-search{display:flex}
.lp-qs.live .lp-qs-list{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}  /* kept for screen readers */
@media (max-width:899px){
  .lp-qs{padding:56px 16px 64px}
  .lp-qs-lead{font-size:11px;margin-bottom:18px}
  .lp-search{padding:16px 18px;gap:10px}
  .lp-search-text{font-size:16px;white-space:normal;min-height:2.4em;display:flex;align-items:center}
  .lp-caret{margin-left:-6px}
}

/* Laptop screen contents (shared): a video frame, then the spreadsheet */
.lp-screen{position:absolute;left:29.6%;top:6.26%;width:61.35%;height:71.69%;overflow:hidden;background:#fff;container-type:inline-size}
.lp-screen-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lp-play{position:absolute;left:50%;top:50%;width:13cqw;height:9cqw;transform:translate(-50%,-50%);background:var(--lp-teal);border-radius:2.2cqw;opacity:.92;transition:opacity .3s}
.lp-play::after{content:"";position:absolute;left:52%;top:50%;transform:translate(-40%,-50%);border-left:3.4cqw solid var(--lp-wall);border-top:2.1cqw solid transparent;border-bottom:2.1cqw solid transparent}
.lp-sheet{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;opacity:0;transition:opacity .5s}
.sheet .lp-sheet{opacity:1}
.sheet .lp-play{opacity:0}

/* ---------- Sam section: a timeline ----------
   A spine runs down the middle and fills as you scroll. When the fill reaches a step's node,
   the node grows and the step rises into place. Every figure stands in the same blob, at the
   same scale (see design-source/landing/export_timeline_web.py). Widescreen: figure on one
   side of the spine, text on the other, alternating. Phone: spine on the left, figure then text. */
.lp-tl{--fig:min(30vw,400px);background:var(--lp-coral-soft);border-bottom:3px solid #fffaf4;padding:90px 5vw 120px}
.lp-tl-head{text-align:center;margin:0 auto 40px}
.lp-tl-head h2{margin:0 auto;max-width:13em;font:400 clamp(38px,4.4vw,64px)/1.05 var(--lp-serif);color:var(--lp-ink)}
.lp-tl-track{position:relative;max-width:1180px;margin:0 auto}
.lp-tl-spine{position:absolute;left:50%;top:0;bottom:0;width:4px;margin-left:-2px;border-radius:2px;background:rgba(22,91,100,.15);overflow:hidden}
.lp-tl-spine i{display:block;width:100%;height:100%;background:var(--lp-teal);transform-origin:50% 0;transform:scaleY(0)}
.lp-tl-step{position:relative;display:grid;grid-template-columns:1fr 120px 1fr;align-items:center;padding:30px 0}
.lp-tl-node{position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--lp-coral-soft);border:4px solid rgba(22,91,100,.3);transition:transform .45s cubic-bezier(.3,1.6,.5,1),background .3s,border-color .3s;z-index:1}
.lp-tl-step.on .lp-tl-node{transform:scale(1.7);background:var(--lp-teal);border-color:var(--lp-teal)}
.lp-tl-fig{grid-column:1;justify-self:end;position:relative;width:var(--fig);height:calc(var(--fig) * .95);display:flex;align-items:flex-end;justify-content:center}
.lp-tl-step:nth-child(odd) .lp-tl-fig{grid-column:3;justify-self:start}
.lp-tl-text{grid-column:3;grid-row:1;max-width:26em}
.lp-tl-step:nth-child(odd) .lp-tl-text{grid-column:1;justify-self:end;text-align:right}
.lp-tl-blob{position:absolute;left:0;bottom:0;width:100%;height:68%;overflow:visible}
.lp-tl-fig.kraft .lp-tl-blob{fill:#fdf6ea}
.lp-tl-fig.teal .lp-tl-blob{fill:#dcebe8}
/* every figure shares one scale: --px is the image's height at that scale, 700 fills the box */
.lp-tl-fig > img{position:relative;height:calc(var(--px) / 700 * 100%);width:auto;max-width:none;display:block}
.lp-tl-lap{position:relative;width:88%;margin-bottom:12%}
.lp-tl-lap > img{display:block;width:100%;height:auto}
.lp-tl-text h3{margin:0 0 10px;font:400 clamp(30px,2.8vw,44px)/1.1 var(--lp-serif);color:var(--lp-ink)}
.lp-tl-text p.lp-tl-more{margin-top:12px}
.lp-tl-text p{margin:0;font:400 clamp(17px,1.25vw,20px)/1.6 var(--lp-sans);color:var(--lp-ink)}


/* rising into place (only when the script is running and motion is allowed) */
.lp-tl.live .lp-tl-fig,.lp-tl.live .lp-tl-text{opacity:0;transform:translateY(36px) scale(.97);transition:opacity .6s ease,transform .6s ease}
.lp-tl.live .lp-tl-step.on .lp-tl-fig,.lp-tl.live .lp-tl-step.on .lp-tl-text{opacity:1;transform:none}
.lp-tl.live .lp-tl-step.on .lp-tl-text{transition-delay:.12s}

@media (max-width:899px){
  .lp-tl{--fig:min(78vw,340px);padding:64px 16px 80px}
  .lp-tl-head{text-align:left;padding-left:44px;margin-bottom:24px}
  .lp-tl-head h2{font-size:34px;margin:0}
  .lp-tl-spine{left:14px}
  .lp-tl-step{display:block;padding:26px 0 26px 44px}
  .lp-tl-node{left:14px;top:40px}
  .lp-tl-step .lp-tl-fig,.lp-tl-step:nth-child(odd) .lp-tl-fig{margin:0 auto 0 0}
  .lp-tl-step .lp-tl-text,.lp-tl-step:nth-child(odd) .lp-tl-text{text-align:left;margin-top:18px}
  /* Sam's thought bubbles rise above her blob: give them room so they clear the text above */
  .lp-tl-fig.tall{margin-top:calc(var(--fig) * .95 * .21 + 16px) !important}
  .lp-tl-text h3{font-size:30px}
  .lp-tl-text p{font-size:17px}
}

/* ---------- Sample lesson ----------
   The real lesson parts (message card, video, key terms, step-through, task cards, hints,
   checking) use course.css as the lessons do; this only sets the column and the heading. */
.lp-sample{background:var(--lp-course);padding:80px 16px 100px;position:relative}
.lp-sample::before{content:"";width:100%;height:12px;position:absolute;left:0;top:0;filter:blur(1.5px);pointer-events:none;
  background:radial-gradient(ellipse 50% 100% at 50% 0%,rgba(40,30,20,.16) 0%,rgba(40,30,20,.07) 50%,transparent 100%)}
.lp-sample-head{text-align:center;max-width:720px;margin:0 auto 40px}
.lp-sample-head .lp-eyebrow{font-size:13px;margin-bottom:16px}
.lp-sample-head h2{margin:0;font:400 clamp(38px,4.4vw,64px)/1.05 var(--lp-serif);color:var(--lp-ink)}
.lp-sample-lede{margin:16px auto 0;font:400 clamp(17px,1.25vw,20px)/1.6 var(--lp-sans);max-width:34em}
.lp-lesson{max-width:760px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
.lp-lesson > h3{margin:36px 0 12px;font:600 22px/1.25 Georgia,serif;color:var(--lp-ink)}
.lp-lesson .card{margin-bottom:16px}
/* Part 1's live sheet: the lesson's Excel mock, with two cells you can type into */
.lp-live{margin:6px 0 4px}
.lp-live-step{background:var(--accent-soft,#e3efec);border-radius:10px;padding:12px 16px;font-size:15px;margin-bottom:14px}
.lp-live-xl{margin-bottom:14px}
.lp-live-xl td{height:36px}
.lp-live-xl td:nth-child(3){text-align:left}
.lp-live-xl td.lp-cell{padding:0;background:#fff;box-shadow:inset 0 0 0 2px var(--accent);position:relative}
.lp-live-xl td.lp-cell.sel{box-shadow:inset 0 0 0 2px var(--accent-ink);background:#fbfffe}
.lp-live-xl td.lp-cell.ok{background:var(--good-soft);box-shadow:inset 0 0 0 2px var(--good)}
.lp-live-xl td.lp-cell input{display:block;width:100%;height:100%;min-height:36px;border:0;background:transparent;padding:6px 10px;font:inherit;font-size:16px;text-align:right;color:var(--ink);outline:none;min-width:96px}
.lp-live-xl tr.head td.lp-cell input{text-align:right;font-weight:600;color:#5d5a55}
.lp-live-xl td.lp-cell input::placeholder{color:#b9b3aa}
.lp-live-ctrl{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:899px){
  .lp-live-xl th,.lp-live-xl td{padding:5px 6px;font-size:13px}
  .lp-live-xl td.rn{width:24px}
  .lp-live-xl td.lp-cell input{min-width:0;padding:5px 6px;font-size:16px}
}
.lp-sx-end{text-align:left}
.lp-sx-end .lp-btn{margin-top:8px}
@media (max-width:899px){.lp-sample{padding:56px 16px 72px}.lp-sample-head h2{font-size:34px}.lp-lesson .xl{overflow-x:auto}}

/* ---------- After the sample: the whole course ---------- */
/* its own band: the question after the sample */
.lp-click{background:#4e6d72;border-bottom:3px solid #fffaf4;padding:84px 16px;text-align:center;position:relative}
.lp-click::before{content:"";width:100%;height:12px;position:absolute;left:0;top:0;filter:blur(1.5px);pointer-events:none;
  background:radial-gradient(ellipse 50% 100% at 50% 0%,rgba(40,30,20,.16) 0%,rgba(40,30,20,.07) 50%,transparent 100%)}
.lp-click h2{margin:0 auto;max-width:15em;font:400 clamp(36px,4.2vw,60px)/1.08 var(--lp-serif);color:#fffaf4}
.lp-click h2 em{font-style:italic;display:block;margin-top:.35em}
/* the whole course: the line and the modules as one left-aligned group */
.lp-more{background:var(--lp-wall);padding:80px 16px 90px;position:relative}
.lp-more::before{content:"";width:100%;height:12px;position:absolute;left:0;top:0;filter:blur(1.5px);pointer-events:none;
  background:radial-gradient(ellipse 50% 100% at 50% 0%,rgba(40,30,20,.16) 0%,rgba(40,30,20,.07) 50%,transparent 100%)}
.lp-more-group{max-width:980px;margin:0 auto}
.lp-more-big{margin:0 0 28px;font:400 clamp(30px,3.2vw,46px)/1.15 var(--lp-serif);color:var(--lp-teal);text-align:left}
.lp-modules{list-style:none;margin:0 auto;padding:0;max-width:980px;columns:2;column-gap:48px}
.lp-modules li{break-inside:avoid;display:grid;grid-template-columns:48px 1fr;gap:14px;padding:18px 0;border-top:1px solid rgba(43,42,40,.12)}
.lp-modules .n{font:400 34px/1 var(--lp-serif);color:var(--lp-teal)}
/* each module in its workbook colour */
.lp-modules li[style]{border-top:3px solid var(--mc)}
.lp-modules li[style] .n{color:var(--mc-ink)}
.lp-modules b{display:block;font:400 28px/1.1 var(--lp-serif);color:var(--lp-ink)}
.lp-modules div span{display:block;margin-top:6px;font:400 16px/1.5 var(--lp-sans);color:#5d5248}
.lp-more-facts{text-align:left;margin:30px 0 0;font:600 16px/1.5 var(--lp-sans);color:var(--lp-muted)}

/* ---------- Beta sign-up (becomes the Buy box later: same place, same size) ---------- */
.lp-beta{background:var(--lp-teal);color:var(--lp-wall);padding:90px 16px 100px}
.lp-beta-inner{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:center}
.lp-beta .lp-eyebrow{color:rgba(252,243,227,.7);font-size:13px;margin:0 0 18px}
.lp-beta h2{margin:0;font:400 clamp(32px,3.4vw,50px)/1.1 var(--lp-serif);color:var(--lp-wall)}
.lp-beta-aside{margin:18px 0 0;font:400 clamp(24px,2.2vw,32px)/1.2 var(--lp-serif);color:#f9c9b8}
.lp-beta-pitch > p:last-child{margin:18px 0 0;font:400 18px/1.6 var(--lp-sans)}
.lp-beta-card{position:relative;background:var(--lp-wall);color:var(--lp-ink);border-radius:14px;padding:30px 28px 24px}
.lp-beta-card::after{content:"";width:86%;height:16px;position:absolute;left:50%;bottom:-9px;z-index:-1;transform:translateX(-50%);filter:blur(2px);pointer-events:none;
  background:radial-gradient(ellipse 64% 100% at 50% 0%,rgba(0,0,0,.28) 0%,rgba(0,0,0,.14) 40%,transparent 100%)}
.lp-beta-card .joinform{display:grid;gap:14px}
.lp-beta-card label{display:grid;gap:6px;font:700 15px var(--lp-sans)}
.lp-beta-card input{font:400 16px var(--lp-sans);border:1px solid #d9cdb8;border-radius:8px;padding:13px 14px;background:#fff;color:var(--lp-ink);width:100%;min-width:0}
.lp-beta-card input:focus{outline:2px solid var(--lp-teal);outline-offset:1px}
.lp-beta-card .lp-btn{justify-self:start;margin-top:4px;border:0;cursor:pointer}
.lp-beta-card .privacy{margin:16px 0 0;font:400 13.5px/1.5 var(--lp-sans);color:#6b5f52}
.lp-beta-card .privacy a{color:var(--lp-teal-ink)}
.lp-beta-card .tip,.lp-beta-card .formerr{font-family:var(--lp-sans)}
.lp-foot{background:var(--lp-teal);border-top:1px solid rgba(252,243,227,.15);display:flex;gap:24px;justify-content:center;padding:22px 16px 30px}
.lp-foot a{color:rgba(252,243,227,.8);font:600 14px var(--lp-sans);text-decoration:none}
.lp-foot a:hover{text-decoration:underline}
@media (max-width:899px){
  .lp-click{padding:56px 16px}
  .lp-click h2{font-size:clamp(40px,11.5vw,48px);max-width:9em}
  .lp-more{padding:56px 16px 64px}
  .lp-more-big{font-size:28px;margin-bottom:18px}
  .lp-modules{columns:1}
  .lp-modules li{grid-template-columns:40px 1fr}
  .lp-modules b{font-size:26px}
  .lp-modules div span{font-size:15.5px}
  .lp-beta{padding:64px 16px 72px}
  .lp-beta-inner{grid-template-columns:1fr;gap:32px}
  .lp-beta h2{font-size:30px}
}

/* Temporary sections while the page is built top-down */
.lp-todo{max-width:760px;margin:0 auto;padding:60px 24px;color:var(--lp-muted);text-align:center;font:400 15px var(--lp-sans)}
.lp-rest{max-width:760px;margin:0 auto;padding:20px 16px 60px}
