:root{
  --instruction-text:#111b43;
  --instruction-muted:#687493;
  --instruction-line:#e7e7f3;
  --instruction-violet:#7859ed;
  --instruction-blue:#5878ff;
  --instruction-card:#fff;
  --instruction-shadow:0 20px 55px rgba(70,72,132,.09);
}

.instruction-page{min-height:100vh;overflow:hidden;background:linear-gradient(180deg,#fafaff 0,#fff 42%,#fbfbff 100%)}
.instruction-main{display:block}
.instruction-container{width:min(1280px,calc(100% - 40px));margin:0 auto}

.instruction-hero{position:relative;padding:86px 0 72px;isolation:isolate;overflow:hidden}
.instruction-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#fafaff 0,#fff 88%);z-index:-3}
.instruction-hero-glow{position:absolute;border-radius:999px;filter:blur(4px);pointer-events:none;z-index:-2}
.instruction-hero-glow-one{width:560px;height:560px;left:-220px;top:-170px;background:radial-gradient(circle,rgba(92,123,255,.16),rgba(92,123,255,0) 70%)}
.instruction-hero-glow-two{width:620px;height:620px;right:-180px;top:-200px;background:radial-gradient(circle,rgba(157,69,236,.16),rgba(157,69,236,0) 70%)}
.instruction-hero-grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(520px,1.14fr);gap:72px;align-items:center}
.instruction-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:20px;padding:9px 13px;border:1px solid #e1dcfa;border-radius:999px;background:#f7f4ff;color:#696f91;font-size:13px;font-weight:700;box-shadow:0 7px 20px rgba(85,73,169,.05)}
.instruction-kicker span{color:#715be5}
.instruction-hero-copy h1{max-width:680px;margin:0;color:var(--instruction-text);font-size:clamp(46px,5.1vw,72px);line-height:1.02;letter-spacing:-3.4px}
.instruction-hero-copy h1 span{background:linear-gradient(90deg,#527bff,#9a49eb);-webkit-background-clip:text;background-clip:text;color:transparent}
.instruction-hero-copy>p{max-width:650px;margin:24px 0 0;color:var(--instruction-muted);font-size:18px;line-height:1.72}
.instruction-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:31px}
.instruction-btn{min-height:52px;padding:0 21px;border:1px solid transparent;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;gap:11px;text-decoration:none;font-size:15px;font-weight:800;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.instruction-btn:hover{transform:translateY(-1px)}
.instruction-btn-primary{background:linear-gradient(105deg,#5879ff,#9949ea);color:#fff;box-shadow:0 13px 27px rgba(100,75,215,.21)}
.instruction-btn-primary:hover{box-shadow:0 16px 30px rgba(100,75,215,.28)}
.instruction-btn-secondary{border-color:#deddf0;background:#fff;color:#5f6380;box-shadow:0 8px 22px rgba(70,72,132,.05)}
.instruction-btn-secondary:hover{border-color:#c9c4ee;background:#faf9ff}
.instruction-mini-list{display:flex;flex-wrap:wrap;gap:16px 22px;margin-top:31px;color:#737d9d;font-size:12.5px;font-weight:650}
.instruction-mini-list span{display:flex;align-items:center;gap:7px}
.instruction-mini-list b{color:#8c76e9;font-size:11px;letter-spacing:.5px}

.instruction-video-card{padding:14px;border:1px solid #e4e4f0;border-radius:27px;background:rgba(255,255,255,.88);box-shadow:0 27px 70px rgba(70,72,132,.13);backdrop-filter:blur(16px)}
.instruction-video-head{padding:2px 5px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#1e294d}
.instruction-video-head>div{display:flex;align-items:center;gap:8px;font-size:14px}
.instruction-video-head small{color:#8b94ad;font-size:12px}
.instruction-video-dot{width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#5879ff,#9949ea);box-shadow:0 0 0 5px #f1edff}
.instruction-video-shell{overflow:hidden;border:1px solid #e7e7f0;border-radius:18px;background:#eef0f7;aspect-ratio:1890/944;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.instruction-video-shell video{width:100%;height:100%;display:block;object-fit:cover;background:#eef0f7}
.instruction-video-card>p{margin:12px 6px 3px;color:#78829d;font-size:12.5px;line-height:1.55}

.instruction-steps-section{padding:52px 0 28px}
.instruction-section-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,500px);gap:44px;align-items:end;margin-bottom:30px}
.instruction-eyebrow{display:block;margin-bottom:10px;color:#7766d7;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:1.2px}
.instruction-section-head h2{margin:0;color:var(--instruction-text);font-size:clamp(34px,4vw,50px);line-height:1.1;letter-spacing:-2px}
.instruction-section-head p{margin:0 0 4px;color:var(--instruction-muted);font-size:15px;line-height:1.7}
.instruction-step-nav{position:sticky;top:12px;z-index:60;display:flex;justify-content:center;gap:8px;width:max-content;max-width:100%;margin:0 auto 38px;padding:8px;border:1px solid #e6e5f2;border-radius:999px;background:rgba(255,255,255,.88);box-shadow:0 12px 32px rgba(70,72,132,.09);backdrop-filter:blur(14px)}
.instruction-step-nav a{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;text-decoration:none;color:#697391;font-size:12px;font-weight:850;transition:.18s}
.instruction-step-nav a:hover{background:#f0edff;color:#6e56de}

.instruction-steps{position:relative;display:grid;gap:30px}
.instruction-steps:before{content:"";position:absolute;left:34px;top:42px;bottom:42px;width:1px;background:linear-gradient(180deg,rgba(111,89,226,.3),rgba(111,89,226,.08));z-index:0}
.instruction-step{position:relative;z-index:1;padding:34px;border:1px solid #e7e8f2;border-radius:28px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--instruction-shadow);scroll-margin-top:86px}
.instruction-step-copy{display:grid;grid-template-columns:68px minmax(0,1fr);gap:24px;align-items:start;margin-bottom:24px}
.instruction-step-number{width:68px;height:68px;border:1px solid #ddd8fa;border-radius:21px;display:grid;place-items:center;background:linear-gradient(145deg,#f7f5ff,#efeaff);color:#725ce5;font-size:18px;font-weight:900;letter-spacing:-.5px;box-shadow:0 8px 21px rgba(92,72,190,.09)}
.instruction-step-label{display:block;margin:4px 0 6px;color:#806ee0;font-size:11.5px;font-weight:850;text-transform:uppercase;letter-spacing:1.05px}
.instruction-step h3{margin:0;color:#121d43;font-size:clamp(25px,2.6vw,34px);line-height:1.18;letter-spacing:-1.2px}
.instruction-step-copy p{max-width:860px;margin:12px 0 0;color:#687493;font-size:15.5px;line-height:1.75}
.instruction-step-copy strong{color:#2e3a61}
.instruction-tip{display:flex;align-items:flex-start;gap:10px;max-width:720px;margin-top:14px;padding:11px 13px;border:1px solid #e3def8;border-radius:13px;background:#f8f6ff;color:#626b88;font-size:13px;line-height:1.5}
.instruction-tip b{flex:0 0 auto;color:#6757ce}
.instruction-shot{margin:0 0 0 92px;padding:10px;border:1px solid #e8e8f1;border-radius:20px;background:#f7f8fc;overflow:hidden}
.instruction-shot img{width:100%;height:auto;display:block;border-radius:12px;background:#fff;cursor:zoom-in;transition:transform .18s ease,box-shadow .18s ease}
.instruction-shot img:hover{transform:scale(1.003);box-shadow:0 10px 28px rgba(38,42,84,.10)}
.instruction-shot img:focus-visible{outline:3px solid rgba(120,89,237,.45);outline-offset:3px}
.instruction-shot-compact{max-width:1060px}
.instruction-shot-tall{max-width:920px;margin-left:auto;margin-right:auto;background:linear-gradient(180deg,#f8f7ff,#f3f5fb)}


body.instruction-lightbox-open{overflow:hidden}
.instruction-lightbox[hidden]{display:none!important}
.instruction-lightbox{position:fixed;inset:0;z-index:100000;display:grid;grid-template-rows:1fr;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(9,12,29,.92);backdrop-filter:blur(10px)}
.instruction-lightbox-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px;box-sizing:border-box}
.instruction-lightbox-media{position:relative;display:inline-block;width:fit-content;max-width:100%;max-height:100%;line-height:0;margin:auto}
.instruction-lightbox-stage img{display:block;width:auto;max-width:calc(100vw - 60px);height:auto;max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);margin:0;border-radius:14px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.42);cursor:zoom-out;object-fit:contain}
.instruction-lightbox-close{position:absolute;z-index:2;top:10px;right:10px;width:44px;height:44px;border:1px solid rgba(255,255,255,.32);border-radius:50%;display:grid;place-items:center;background:rgba(17,20,38,.78);color:#fff;font:400 32px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.28);backdrop-filter:blur(10px)}
.instruction-lightbox-close:hover{background:rgba(17,20,38,.94)}

.instruction-finish{padding:54px 0 26px}
.instruction-finish-card{position:relative;overflow:hidden;display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:24px;align-items:center;padding:32px 34px;border:1px solid #dfddf0;border-radius:27px;background:linear-gradient(120deg,#f7f5ff,#fff 52%,#f8f4ff);box-shadow:0 18px 50px rgba(76,70,138,.08)}
.instruction-finish-card:after{content:"";position:absolute;width:250px;height:250px;right:100px;top:-160px;border-radius:50%;background:radial-gradient(circle,rgba(148,71,235,.11),rgba(148,71,235,0) 72%);pointer-events:none}
.instruction-finish-icon{width:70px;height:70px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#5879ff,#9949ea);color:#fff;font-size:31px;font-weight:900;box-shadow:0 12px 28px rgba(100,75,215,.22)}
.instruction-finish-copy span{display:block;margin-bottom:3px;color:#7967d8;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:1.1px}
.instruction-finish-copy h2{margin:0;color:#121d43;font-size:27px;letter-spacing:-.8px}
.instruction-finish-copy p{margin:7px 0 0;color:#6b7591;font-size:14px;line-height:1.6}

@media(max-width:1120px){
  .instruction-hero{padding-top:62px}
  .instruction-hero-grid{grid-template-columns:1fr;gap:42px}
  .instruction-hero-copy{max-width:800px}
  .instruction-video-card{max-width:930px}
  .instruction-section-head{grid-template-columns:1fr;gap:16px}
  .instruction-section-head p{max-width:720px}
}

@media(max-width:760px){
  .instruction-container{width:min(100% - 24px,1280px)}
  .instruction-hero{padding:44px 0 48px}
  .instruction-hero-grid{gap:34px}
  .instruction-hero-copy{text-align:center}
  .instruction-kicker{display:none!important}
  .instruction-hero-copy h1{max-width:620px;margin:0 auto;font-size:clamp(39px,12vw,55px);letter-spacing:-2.4px}
  .instruction-hero-copy>p{max-width:620px;margin:20px auto 0;font-size:16px;line-height:1.65}
  .instruction-hero-actions{display:flex;flex-direction:column;width:min(100%,380px);margin:25px auto 0}
  .instruction-btn{width:100%}
  .instruction-mini-list{display:none!important}
  .instruction-video-card{padding:9px;border-radius:20px}
  .instruction-video-head{padding:3px 4px 10px}
  .instruction-video-head small{display:none}
  .instruction-video-shell{border-radius:14px}

  .instruction-steps-section{padding-top:36px}
  .instruction-section-head{display:block;text-align:center;margin-bottom:26px}
  .instruction-section-head>div{width:100%}
  .instruction-eyebrow{text-align:center}
  .instruction-section-head h2{max-width:620px;margin:0 auto;font-size:35px;letter-spacing:-1.4px}
  .instruction-section-head p{max-width:620px;margin:14px auto 0;font-size:14.5px;line-height:1.65;text-align:center}
  .instruction-step-nav{top:6px;margin-bottom:25px;padding:6px;gap:4px}
  .instruction-step-nav a{width:31px;height:31px}

  .instruction-steps{width:100%;gap:18px;min-width:0}
  .instruction-steps:before{display:none}
  .instruction-step{width:100%;min-width:0;padding:20px 16px 16px;border-radius:21px;scroll-margin-top:78px;overflow:hidden}
  .instruction-step-copy{display:grid;grid-template-columns:1fr;gap:11px;width:100%;min-width:0;margin-bottom:17px}
  .instruction-step-copy>div:last-child{min-width:0;width:100%}
  .instruction-step-number{width:48px;height:48px;border-radius:15px;font-size:14px}
  .instruction-step-label{margin-top:0}
  .instruction-step h3{max-width:100%;font-size:24px;line-height:1.2;letter-spacing:-.8px;overflow-wrap:anywhere}
  .instruction-step-copy p{max-width:none;font-size:14.5px;line-height:1.67;overflow-wrap:anywhere}
  .instruction-tip{display:block;max-width:none;padding:10px 11px;font-size:12.5px}
  .instruction-tip b{display:block;margin-bottom:2px}
  .instruction-shot,.instruction-shot-tall{box-sizing:border-box;width:calc(100% + 32px);max-width:none;margin:0 -16px;padding:4px;border-radius:0 0 16px 16px;overflow:hidden}
  .instruction-shot img,.instruction-shot-tall img{display:block;width:100%;min-width:0!important;max-width:100%;height:auto;border-radius:8px}
  .instruction-shot:after{display:none!important;content:none}

  .instruction-finish{padding-top:37px}
  .instruction-finish-card{grid-template-columns:56px minmax(0,1fr);padding:22px 18px;border-radius:22px;gap:15px}
  .instruction-finish-icon{width:56px;height:56px;border-radius:17px;font-size:24px}
  .instruction-finish-copy h2{font-size:23px}
  .instruction-finish-card .instruction-btn{grid-column:1/-1;margin-top:4px}
  .instruction-lightbox{padding:0}
  .instruction-lightbox-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:auto;box-sizing:border-box}
  .instruction-lightbox-media{position:relative;display:inline-block;width:fit-content;max-width:100%;max-height:100%;margin:auto}
  .instruction-lightbox-stage img{display:block;width:auto;max-width:calc(100vw - 20px);height:auto;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);min-width:0!important;margin:0;object-fit:contain;border-radius:10px}
  .instruction-lightbox-close{position:absolute;top:8px;right:8px;width:40px;height:40px;font-size:29px;background:rgba(17,20,38,.82)}
}

@media(max-width:430px){
  .instruction-container{width:calc(100% - 16px)}
  .instruction-hero{padding-top:34px}
  .instruction-kicker{font-size:11.5px}
  .instruction-hero-copy h1{font-size:36px;line-height:1.04;letter-spacing:-1.9px}
  .instruction-video-card>p{font-size:11.5px}
  .instruction-section-head h2{font-size:30px;line-height:1.12}
  .instruction-section-head p{font-size:14px}
  .instruction-step-nav{width:100%;justify-content:space-between}
  .instruction-step-nav a{width:30px;height:30px}
  .instruction-step{padding:17px 12px 12px}
  .instruction-shot,.instruction-shot-tall{width:calc(100% + 24px);margin-left:-12px;margin-right:-12px}
  .instruction-step-number{width:46px;height:46px;border-radius:14px}
  .instruction-step h3{font-size:21px;letter-spacing:-.6px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .instruction-btn,.instruction-step-nav a{transition:none}
}

/* v7 — gentle mobile zoom, no horizontal scrolling */
@media(max-width:760px){
  /* Keep screenshots inside the phone viewport. The image is only slightly
     enlarged from its centre, so labels are easier to read without side scroll. */
  .instruction-shot,
  .instruction-shot-tall{
    position:relative;
    width:calc(100% + 32px);
    max-width:none;
    margin-left:-16px;
    margin-right:-16px;
    padding:5px;
    overflow:hidden!important;
    border-left:0;
    border-right:0;
    touch-action:manipulation;
  }

  .instruction-shot img,
  .instruction-shot-tall img,
  .instruction-shot-compact img,
  .instruction-step:nth-child(4) .instruction-shot img,
  .instruction-step:nth-child(7) .instruction-shot img,
  .instruction-step:nth-child(8) .instruction-shot img{
    display:block;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    margin:0;
    border-radius:8px;
    transform:scale(1.045);
    transform-origin:center center;
  }

  /* The tall generation screenshot needs a softer crop. */
  .instruction-shot-tall img{transform:scale(1.025)}

  /* Viewer is always centred. No horizontal/vertical scrolling in the overlay. */
  .instruction-lightbox{
    padding:0;
    overflow:hidden;
  }

  .instruction-lightbox-stage{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    box-sizing:border-box;
    padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    overflow:hidden;
    text-align:center;
  }

  .instruction-lightbox-media{
    position:relative;
    display:inline-block;
    width:auto;
    max-width:calc(100vw - 44px);
    max-height:calc(100vh - 78px);
    max-height:calc(100dvh - 78px);
    margin:auto;
    line-height:0;
    overflow:visible;
  }

  .instruction-lightbox-stage img{
    display:block;
    width:auto!important;
    max-width:calc(100vw - 44px)!important;
    min-width:0!important;
    height:auto!important;
    max-height:calc(100vh - 78px)!important;
    max-height:calc(100dvh - 78px)!important;
    margin:0;
    object-fit:contain;
    border-radius:10px;
    cursor:zoom-out;
    transform:scale(1.06);
    transform-origin:center center;
    touch-action:manipulation;
  }

  .instruction-lightbox-close{
    position:absolute;
    top:-6px;
    right:-6px;
    width:28px;
    height:28px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.28);
    display:grid;
    place-items:center;
    padding:0;
    color:#fff;
    font:400 18px/1 Arial,sans-serif;
    background:rgba(17,20,38,.78);
    box-shadow:0 4px 12px rgba(0,0,0,.22);
    backdrop-filter:blur(8px);
  }
}

@media(max-width:430px){
  .instruction-shot,
  .instruction-shot-tall{
    width:calc(100% + 24px);
    margin-left:-12px;
    margin-right:-12px;
  }

  .instruction-shot img,
  .instruction-shot-compact img{transform:scale(1.04)}
  .instruction-shot-tall img{transform:scale(1.02)}
  .instruction-lightbox-stage img{transform:scale(1.055)}
}

/* v8 — desktop quality reset: no CSS scaling on screens wider than mobile */
@media(min-width:761px){
  .instruction-shot img,
  .instruction-shot-tall img,
  .instruction-shot-compact img,
  .instruction-shot img:hover,
  .instruction-lightbox-stage img{
    transform:none!important;
  }

  .instruction-shot img:hover{
    box-shadow:0 10px 28px rgba(38,42,84,.10);
  }
}
