html,body{overflow:hidden}
.app{display:flex;flex-direction:column;height:100vh;height:100dvh;width:100%}
body.full .bar{position:absolute;left:0;right:0;top:0;transition:opacity .2s}
body.full.idle .bar{opacity:0;pointer-events:none}

/* Layout: a scrollable slide column on the left, a sticky live phone on the right */
.layout{flex:1;min-height:0;display:grid;grid-template-columns:1fr minmax(300px,400px)}

.slides{min-height:0;height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}

.slide{min-height:100%;scroll-snap-align:start;box-sizing:border-box;display:flex;flex-direction:column;color:var(--ink);background:var(--page);
  padding:clamp(32px,6vw,72px) clamp(20px,6vw,80px) clamp(28px,5vw,56px);max-width:1200px;margin:0 auto;width:100%}
.slide.dark{background:var(--ink);color:#fff}
.slide.title{justify-content:center}
.slide.dark .eyebrow{color:var(--mint)}
.slide.dark h1{color:#fff}

.eyebrow{font-family:var(--mono);font-weight:500;font-size:clamp(13px,1.4vw,16px);letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.slide h1,.slide h2{font-family:var(--head);font-weight:700;font-size:clamp(28px,4.2vw,44px);line-height:1.15;letter-spacing:-.8px;color:var(--navy);margin:10px 0 0}
.lead{font-size:clamp(17px,2vw,22px);line-height:1.45;color:var(--body);margin:20px 0 0;max-width:1000px}
.src{margin-top:auto;padding-top:24px;font-size:14px;color:var(--muted)}
.slide.dark .src{color:var(--soft)}

.notes{margin-top:28px;display:flex;flex-direction:column;gap:16px;max-width:760px}
.note{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 22px}
.note b{display:block;font-weight:600;font-size:18px;color:var(--green);margin-bottom:4px}
.note span{font-size:18px;line-height:1.4;color:var(--ink)}

.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:30px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px}
.card .big{font-family:var(--head);font-weight:700;font-size:clamp(36px,5vw,64px);line-height:1;color:var(--green)}
.card h3{font-family:var(--head);font-weight:600;font-size:22px;margin:14px 0 10px;color:var(--ink)}
.card p{margin:0;font-size:18px;line-height:1.45;color:var(--body)}
.card .meta{margin-top:18px;font-size:14px;color:var(--muted)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin-top:28px}
.statement{margin-top:28px;font-size:clamp(18px,2.2vw,22px);font-weight:600;color:var(--ink)}
.slide.dark .statement{color:#fff}
.list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.list li{font-size:17px;line-height:1.4;padding-left:22px;position:relative;color:var(--body)}
.list li:before{content:"";position:absolute;left:0;top:7px;width:8px;height:8px;border-radius:4px;background:var(--green)}
.btnrow{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 28px;border-radius:28px;font-weight:600;font-size:19px;text-decoration:none}
.btn.mint{background:var(--mint);color:var(--mint-ink)}
.btn.ghost{border:2px solid var(--soft);color:#fff}
.fine{font-size:16px;color:var(--soft);margin-top:30px}

.tworow{display:flex;gap:40px;flex-wrap:wrap;margin-top:28px}
.tworow .notes{flex:1 1 380px;margin-top:0}

.tryrow{display:flex;gap:48px;flex-wrap:wrap;align-items:flex-start;margin-top:36px}
.darktext{flex:1 1 420px;max-width:640px}
.darktext p{font-size:clamp(17px,2vw,24px);line-height:1.45;color:var(--softer);margin:0}
.qrbox{flex:none;width:260px;max-width:100%;background:#fff;border-radius:20px;padding:24px;text-align:center;color:var(--ink)}
.qrbox #qr svg,.qrbox #qr img{width:100%;height:auto;display:block}
.qrbox p{margin:12px 0 0;font-size:15px;color:var(--muted)}

.titlebig{max-width:900px}
.titlebig h1{font-size:clamp(34px,6vw,64px);letter-spacing:-1.2px}
.titlebig p{font-size:clamp(18px,2.4vw,26px);line-height:1.45;color:var(--softer);margin:24px 0 0}
.titlebig .tap{display:block;font-family:var(--mono);font-size:clamp(16px,1.8vw,22px);color:var(--mint);margin-bottom:16px}

/* The live phone preview, docked to the right for the whole scroll */
.rail{position:relative;min-height:0;background:var(--ink);border-left:1px solid var(--navy-line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:20px}
.railhead{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:12px;color:var(--softer);letter-spacing:.04em;text-align:center}
.railhead .dot{flex:none;width:7px;height:7px;border-radius:4px;background:var(--mint);box-shadow:0 0 0 4px rgba(61,220,151,.18)}
.stagebox{position:relative;flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;perspective:1000px}
.scaler{transform-origin:center center;transition:transform .55s cubic-bezier(.4,0,.2,1)}
.rail .frame{background:#fff;border-radius:44px;box-shadow:0 0 0 10px var(--navy),0 24px 60px rgba(0,0,0,.45);overflow:hidden}
.rail .frame iframe{width:100%;height:100%;border:0;display:block;background:#F4F7FB}

/* Turning the phone: rotate edge-on (where the portrait/landscape swap happens, invisibly), then unfold */
@keyframes turnToLandscape{
  0%{transform:rotateY(0deg);width:390px;height:844px;border-radius:44px}
  49.9%{transform:rotateY(90deg);width:390px;height:844px;border-radius:44px}
  50%{transform:rotateY(90deg);width:844px;height:390px;border-radius:36px}
  100%{transform:rotateY(0deg);width:844px;height:390px;border-radius:36px}
}
@keyframes turnToPortrait{
  0%{transform:rotateY(0deg);width:844px;height:390px;border-radius:36px}
  49.9%{transform:rotateY(90deg);width:844px;height:390px;border-radius:36px}
  50%{transform:rotateY(90deg);width:390px;height:844px;border-radius:44px}
  100%{transform:rotateY(0deg);width:390px;height:844px;border-radius:44px}
}
.rail .frame.turning-to-landscape{animation:turnToLandscape .6s cubic-bezier(.4,0,.2,1) both}
.rail .frame.turning-to-portrait{animation:turnToPortrait .6s cubic-bezier(.4,0,.2,1) both}
.raillink{font-size:13px;color:var(--softer);text-decoration:none;border:1px solid var(--navy-line);border-radius:20px;padding:8px 16px;white-space:nowrap}
.raillink:hover{color:#fff;border-color:var(--mint)}

@media (max-width:980px){
  .layout{grid-template-columns:1fr}
  .rail{display:none}
}
@media (max-width:700px){
  .cards3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
}
