/* premealconnect.com home page, s110 redesign. Loaded after styles.css by index.html only.
   Same Moonstone tokens and the same three faces as the rest of the site; nothing new is introduced.
   Parts: the hero with the app + portal stage, the feature rows that rise in on scroll, the portal showcase. */

/* ---------- rise-in on scroll (home-stage.js adds .js-reveal to <html>, then .in as things enter) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(36px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero2 { padding: 34px 0 26px; text-align: center; }
.hero2 .eyebrow { color: var(--tint); margin-bottom: 12px; }
.hero2 h1 { font-size: clamp(34px, 5.2vw, 56px); margin-bottom: 14px; }
.hero2 .lead { font-size: 18.5px; color: var(--text-2); max-width: 720px; margin: 0 auto; }
.hero2 .lead b { color: var(--text); font-weight: 600; }
.hero2 .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 10px rgba(65,188,241,0.7); }
.hero-facts li.gold-dot::before { background: #F5B942; box-shadow: 0 0 10px rgba(245,185,66,0.7); }

/* the stage: a browser window with the PreMeal Portal, a phone with the app, three scenes in step */
.stage-wrap { margin-top: 38px; }
.stage-title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.2; max-width: 760px; margin: 0 auto 18px; }
.stage-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(10,20,34,0.55); border: 1px solid var(--border); margin-bottom: 18px; }
.stage-tab { position: relative; overflow: hidden; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.stage-tab:hover { color: var(--text); }
.stage-tab.on { color: var(--ink-on-tint); background: var(--tint); }
.stage-tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(10,20,34,0.45); }
.stage-tab.on.run i { width: 100%; transition: width var(--scene-ms, 5200ms) linear; }
.stage-tab:focus-visible, .stage-pause:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
.stage-pause { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.07); color: var(--text-2); cursor: pointer; display: grid; place-items: center; padding: 0; margin-left: 2px; }
.stage-pause:hover { color: var(--text); background: rgba(255,255,255,0.14); }

.stage { position: relative; text-align: left; padding: 0 0 6% 0; }
.stage::before { content: ""; position: absolute; inset: 8% 10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(65,188,241,0.26), transparent 70%); filter: blur(30px); z-index: -1; }

/* browser window. Everything inside is sized in em off one font-size that follows the window's width. */
.pm { width: 88%; container-type: inline-size; border-radius: 16px; background: #131B28; border: 1px solid var(--border-strong); box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03); overflow: hidden; }
.pm-in { font-size: 1.16cqw; line-height: 1.45; }
.pm-bar { display: flex; align-items: center; gap: .6em; padding: .9em 1.2em; background: #0E1520; border-bottom: 1px solid var(--border); }
.pm-bar span { width: 1em; height: 1em; border-radius: 50%; background: #3B4F66; }
.pm-url { flex: 1; max-width: 34em; margin: 0 auto; text-align: center; font-family: var(--mono); font-size: 1.05em; color: var(--text-3); background: rgba(255,255,255,0.05); border-radius: .6em; padding: .35em 1em; }
.pm-url b { color: var(--text-2); font-weight: 500; }
.pm-body { display: grid; grid-template-columns: 18.5em minmax(0, 1fr); aspect-ratio: 16 / 9.4; background: var(--bg); }
.pm-side { border-right: 1px solid var(--border); background: rgba(16,23,34,0.6); padding: 1.3em 1em; display: flex; flex-direction: column; gap: .25em; overflow: hidden; }
.pm-org { display: flex; align-items: center; gap: .8em; padding: 0 .4em 1.1em; border-bottom: 1px solid var(--border); margin-bottom: .7em; }
.pm-logo { width: 3em; height: 3em; border-radius: .9em; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.05em; color: #E9F6FD; background: linear-gradient(140deg,#24405E,#15273B); border: 1px solid rgba(65,188,241,0.35); }
.pm-org b { display: block; font-family: var(--display); font-size: 1.25em; line-height: 1.15; }
.pm-org small { display: block; color: var(--text-3); font-size: .92em; }
.pm-nv { display: flex; align-items: center; gap: .75em; padding: .52em .7em; border-radius: .75em; font-size: 1.08em; color: var(--text-2); white-space: nowrap; transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.pm-nv .e { width: 1.5em; text-align: center; }
.pm-nv.on { background: rgba(65,188,241,0.12); color: var(--text); box-shadow: inset 0 0 0 1px rgba(65,188,241,0.3); }
.pm-nv .n { margin-left: auto; font-family: var(--mono); font-size: .8em; background: #F5B942; color: #2A1F05; border-radius: 999px; padding: .05em .55em; }
.pm-main { min-width: 0; display: flex; flex-direction: column; }
.pm-strip { display: flex; align-items: center; gap: 1em; padding: .8em 1.6em; border-bottom: 1px solid var(--border); background: rgba(20,28,40,0.5); }
.pm-jolt { flex: 1; max-width: 34em; display: flex; align-items: center; gap: .8em; padding: .45em .9em .45em .5em; border-radius: 1em; background: rgba(10,20,34,0.6); border: 1px solid rgba(65,188,241,0.4); color: var(--text-3); font-size: 1.02em; white-space: nowrap; overflow: hidden; }
.pm-jolt .bolt { width: 2.1em; height: 2.1em; border-radius: .7em; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--tint), var(--tint-deep)); color: var(--ink-on-tint); }
.pm-sync { margin-left: auto; font-family: var(--mono); font-size: .8em; letter-spacing: .1em; text-transform: uppercase; color: #3DDC97; display: inline-flex; align-items: center; gap: .6em; white-space: nowrap; }
.pm-sync::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 .3em rgba(61,220,151,0.18); }
.pm-avatar { width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; font-size: .95em; font-weight: 700; color: var(--ink-on-tint); background: linear-gradient(135deg,#7fd3f7,#41BCF1); flex: none; }
.pm-view { position: relative; flex: 1; min-height: 0; }
.pm-scene { position: absolute; inset: 0; padding: 1.7em 1.9em; opacity: 0; transform: translateY(1.2em); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; overflow: hidden; }
.pm-scene.on { opacity: 1; transform: none; }
.pm-h { font-family: var(--display); font-weight: 700; font-size: 2.1em; letter-spacing: -0.02em; line-height: 1.15; }
.pm-sub { color: var(--text-2); font-size: 1.05em; margin-top: .2em; }
.pm-mono { font-family: var(--mono); font-size: .8em; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.pm-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.3em; margin-top: 1.3em; }
.pm-card { padding: 1.15em; border-radius: 1.3em; background: var(--card); border: 1px solid var(--border); }
.pm-card + .pm-card { margin-top: .9em; }
.pm-need { display: flex; align-items: center; gap: .9em; padding: .9em; border-radius: 1.15em; background: var(--card); border: 1px solid var(--border); margin-top: .75em; }
.pm-need .ni { width: 2.9em; height: 2.9em; border-radius: .85em; display: grid; place-items: center; font-size: 1.1em; flex: none; background: rgba(245,185,66,0.13); border: 1px solid rgba(245,185,66,0.35); }
.pm-need .ni.b { background: rgba(65,188,241,0.12); border-color: rgba(65,188,241,0.3); }
.pm-need b { display: block; font-size: 1.05em; } .pm-need small { color: var(--text-2); font-size: .92em; display: block; }
.pm-btn { margin-left: auto; font-size: .95em; font-weight: 600; padding: .45em 1em; border-radius: 999px; background: var(--highlight); border: 1px solid var(--border-strong); white-space: nowrap; }
.pm-btn.primary { background: linear-gradient(135deg, var(--tint), var(--tint-deep)); border-color: transparent; color: var(--ink-on-tint); }
.pm-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; margin-top: .8em; }
.pm-cells div { text-align: center; padding: .6em .2em; border-radius: .85em; background: rgba(255,255,255,0.035); border: 1px solid var(--border); }
.pm-cells b { display: block; font-family: var(--display); font-size: 1.6em; line-height: 1.1; }
.pm-cells small { font-size: .78em; color: var(--text-3); }
.pm-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45em; margin-top: .8em; }
.pm-days div { border-radius: .85em; padding: .6em .2em; text-align: center; background: rgba(255,255,255,0.035); border: 1px solid var(--border); }
.pm-days div.today { background: rgba(65,188,241,0.1); border-color: rgba(65,188,241,0.4); }
.pm-days small { display: block; font-family: var(--mono); font-size: .72em; color: var(--text-3); }
.pm-days b { display: block; font-family: var(--display); font-size: 1.45em; }
.pm-row { display: flex; align-items: center; gap: 1em; }
.pm-chip { font-size: .95em; padding: .35em .95em; border-radius: 999px; color: var(--text-2); background: rgba(255,255,255,0.04); border: 1px solid var(--border); white-space: nowrap; }
.pm-chip.on { color: var(--ink-on-tint); background: var(--tint); border-color: transparent; font-weight: 600; }
.pm-table { margin-top: 1em; border-radius: 1.2em; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.pm-tr { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) 8em 6.5em; align-items: center; gap: 1em; padding: .7em 1.1em; border-top: 1px solid var(--border); }
.pm-tr:first-child { border-top: 0; }
.pm-tr.hd { font-family: var(--mono); font-size: .76em; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding-top: .9em; padding-bottom: .9em; }
.pm-tr.edit { background: rgba(65,188,241,0.07); }
.pm-th { width: 3.4em; height: 3.4em; border-radius: .8em; border: 1px solid var(--border); }
.pm-tr b { display: block; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-tr small { display: block; color: var(--text-2); font-size: .88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-price { font-family: var(--display); font-weight: 700; font-size: 1.15em; color: var(--tint); }
.pm-field { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15em; padding: .25em .7em; border-radius: .6em; border: 1px solid var(--tint); background: rgba(10,20,34,0.55); box-shadow: 0 0 0 .22em rgba(65,188,241,0.2); }
.pm-field::after { content: ""; width: 1px; height: 1.1em; margin-left: 2px; background: var(--tint); animation: pm-caret 1s steps(1) infinite; }
@keyframes pm-caret { 50% { opacity: 0; } }
.pm-tag { justify-self: start; font-family: var(--mono); font-size: .72em; letter-spacing: .08em; text-transform: uppercase; padding: .2em .7em; border-radius: 999px; color: var(--tint); background: rgba(65,188,241,0.14); border: 1px solid rgba(65,188,241,0.3); white-space: nowrap; }
.pm-grid { margin-top: 1em; border-radius: 1.2em; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.pm-gr { display: grid; grid-template-columns: 11em repeat(7, minmax(0, 1fr)); align-items: center; gap: .4em; padding: .55em .8em; border-top: 1px solid var(--border); }
.pm-gr:first-child { border-top: 0; }
.pm-gr.hd { font-family: var(--mono); font-size: .74em; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); text-align: center; }
.pm-gr.hd span:first-child { text-align: left; }
.pm-gr .who b { display: block; font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-gr .who small { color: var(--text-3); font-size: .84em; }
.pm-shift { text-align: center; font-size: .86em; font-weight: 600; padding: .5em 0; border-radius: .6em; background: rgba(65,188,241,0.13); border: 1px solid rgba(65,188,241,0.3); color: #BFE9FB; white-space: nowrap; }
.pm-shift.bar { background: rgba(245,185,66,0.12); border-color: rgba(245,185,66,0.35); color: #F8D58A; }
.pm-shift.off { background: transparent; border: 1px dashed var(--border); color: var(--text-3); font-weight: 400; }
.pm-shift.new { background: rgba(61,220,151,0.14); border-color: rgba(61,220,151,0.45); color: #9BEFC9; box-shadow: 0 0 0 .2em rgba(61,220,151,0.14); }
.pm-toast { position: absolute; left: 50%; bottom: 1.3em; transform: translate(-50%, 1.6em); opacity: 0; display: flex; align-items: center; gap: .7em; font-size: 1.05em; font-weight: 600; padding: .65em 1.2em; border-radius: 999px; background: #0E1520; border: 1px solid rgba(61,220,151,0.45); color: #9BEFC9; box-shadow: 0 1em 2.4em rgba(0,0,0,0.45); white-space: nowrap; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.pm-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the phone */
.phone { position: relative; margin: 0; aspect-ratio: 560 / 1216; border-radius: 14% / 6.45%; background: #05080D; box-shadow: 0 0 0 1px #2A3648, 0 0 0 3px #0B1018, 0 30px 70px rgba(0,0,0,0.6); }
.phone img { position: absolute; left: 2.8%; top: 1.3%; width: 94.4%; height: 97.4%; object-fit: cover; border-radius: 12.5% / 5.75%; background: var(--bg-2); }
/* the phone stands over the window's right edge: the scenes keep clear of it */
.stage .pm-scene { padding-right: 16.5%; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 21.5%; z-index: 2; }
.stage .phone img { opacity: 0; transition: opacity .5s ease; }
.stage .phone img.on { opacity: 1; }
.stage .phone::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid rgba(61,220,151,0.75); opacity: 0; pointer-events: none; }
.stage .phone.ping::after { animation: phone-ping 1.1s ease-out; }
@keyframes phone-ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.07); } }
@media (max-width: 720px) {
  .hero2 { padding-top: 18px; }
  .hero2 .lead { font-size: 17px; }
  .pm { width: 100%; border-radius: 12px; }
  .pm-in { font-size: 1.5cqw; }
  .pm-body { grid-template-columns: minmax(0, 1fr); aspect-ratio: 16 / 12.5; }
  .pm-side { display: none; }
  .pm-jolt { display: none; }
  .stage { padding-bottom: 26%; }
  .stage .phone { width: 31%; right: 3%; }
  .pm-cols { grid-template-columns: minmax(0, 1fr); }
  .pm-cols > div + div { display: none; }
  .stage .pm-scene { padding-right: 1.9em; }
}
@media (prefers-reduced-motion: reduce) { .pm-scene, .stage .phone img, .pm-toast { transition: none; } .pm-field::after, .stage .phone.ping::after { animation: none; } .stage-tab.on.run i { transition: none; width: 0; } }

/* ---------- feature rows ---------- */
.features-head { max-width: 760px; margin: 0 auto 10px; text-align: center; }
.features-head p { color: var(--text-2); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 54px 0; }
.frow + .frow { border-top: 1px solid var(--border); }
.frow.flip .f-copy { order: 2; }
.f-copy .mono { color: var(--tint); margin-bottom: 12px; }
.f-copy h3 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 12px; }
.f-copy > p { color: var(--text-2); font-size: 17px; max-width: 470px; }
.f-list { list-style: none; margin: 18px 0 0; padding: 0; max-width: 470px; }
.f-list li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 15.5px; }
.f-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--tint); border-bottom: 2px solid var(--tint); transform: rotate(-45deg); }
.f-list b { color: var(--text); font-weight: 600; }
.shots { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 6px 0 46px; }
.shots::before { content: ""; position: absolute; inset: 12% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(65,188,241,0.22), transparent 72%); filter: blur(26px); }
.shots .phone { width: min(46%, 236px); }
.shots .phone + .phone { margin: 46px 0 0 -7%; }
.shots.one .phone { width: min(54%, 262px); }
.shots .phone { cursor: zoom-in; transition: transform .25s ease; }
.shots .phone:hover { transform: translateY(-4px); }
.shots .phone:focus-visible { outline: 2px solid var(--tint); outline-offset: 4px; }
.js-reveal .shots .phone.reveal:hover { transform: translateY(-4px); }
@media (max-width: 820px) {
  .frow { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 40px 0; }
  .frow.flip .f-copy { order: 0; }
  .f-copy > p, .f-list { max-width: none; }
  .shots .phone { width: min(46%, 220px); }
}

/* four screens: three fanned behind, one in front */
.shots.fan { display: block; width: 100%; aspect-ratio: 1 / 1.02; max-width: 520px; margin: 0 auto; padding: 0; justify-self: center; }
.shots.fan .phone { position: absolute; width: 37%; margin: 0; }
.shots.fan .phone:nth-child(1) { left: 2%; top: 9%; rotate: -8deg; }
.shots.fan .phone:nth-child(2) { left: 31.5%; top: 0; }
.shots.fan .phone:nth-child(3) { right: 2%; top: 9%; rotate: 8deg; }
.shots.fan .phone:nth-child(4) { left: 29%; top: 17%; width: 42%; z-index: 2; }
.shots.fan .phone + .phone { margin: 0; }
/* the privacy row: the same Welcome screen, blurred behind a lock */
.shots.locked .phone { cursor: default; overflow: hidden; }
.shots.locked .phone:hover { transform: none; }
.shots.locked .phone img { filter: blur(9px) saturate(.8); transform: scale(1.06); }
.shots.locked .lock { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; color: var(--ink-on-tint); background: linear-gradient(135deg, var(--tint), var(--tint-deep)); box-shadow: 0 0 0 8px rgba(65,188,241,0.16), 0 18px 44px rgba(0,0,0,0.5); }
@media (max-width: 820px) { .shots.fan { max-width: 420px; } }

/* the Jolt row keeps the existing demo, set beside its copy */
.frow.jolt-row { align-items: start; }
.frow.jolt-row .jolt-demo { margin: 0; max-width: none; }


/* ---------- portal showcase ---------- */
.portal-show { text-align: center; }
.portal-show .eyebrow { color: var(--tint); }
.portal-show h2 { margin: 8px 0 12px; }
.portal-show .ps-lead { color: var(--text-2); max-width: 700px; margin: 0 auto; }
.portal-show .pp-pills { justify-content: center; }
.portal-show .pp-cta { justify-content: center; }
.portal-show .pm { width: 100%; margin-top: 30px; text-align: left; }
.portal-show .pm-in { font-size: 1.04cqw; }
.ps-areas { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ps-areas li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(10,20,34,0.35); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
@media (max-width: 720px) { .portal-show .pm-in { font-size: 1.5cqw; } }

/* ---------- the "Now live" card, now the page's close ---------- */
#notify .notify-copy p + p { margin-top: 10px; }
