@charset "UTF-8";
/* Shared CSS for tutorial demos - images relative to shared/images */
:root{
  --bg:#f7f4ef;
  --text:#222;
  --muted:#888;
  --border:#e6e0d7;
  --accent:#d4412f;
  --segment:#d1d1d1;
  --segment-active:#555;
  --card:#fff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font-base, system-ui), system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 32px;
  border-bottom:1px solid var(--border);
  background:#fff;
}
.brand{display:flex;align-items:center;gap:10px}
.brand__logo{height:28px}
.brand__title{font-weight:600}
[lang="en"] .brand__title,
[lang="en"] .pill,
[lang="en"] .tutorial__title{font-weight:600}

.icon-btn{
  display:grid;place-items:center;
  width:36px;height:36px;border-radius:8px;
  color:#333;border:1px solid var(--border);
  background:#fff;cursor:pointer;text-decoration:none;
}
.icon-btn:hover{background:#fafafa}
.topbar__actions .icon-btn{border:none}
.topbar__actions{display:flex;gap:10px;align-items:center}

.lang-switch{position:relative}
.lang-menu{
  position:absolute;right:0;top:42px;
  background:#fff;border:1px solid var(--border);
  border-radius:8px;list-style:none;margin:0;padding:6px 0;
  min-width:110px;box-shadow:0 8px 24px rgba(0,0,0,.08);
  display:none;
}
.lang-menu[aria-hidden="false"], .lang-menu.open{display:block}
.lang-menu li{padding:8px 12px;cursor:pointer}
.lang-menu li:hover{background:#f5f5f5}

.container{
  margin:0 auto;padding:24px 24px 48px;
}
.page-heading{
  margin:8px 0 16px;font-size:24px;
}

.pill-row{
  display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px;
  margin-left:auto;margin-right:auto;
}
.pill{
  padding:11px 24px;border-radius:999px;border:1px solid var(--border);
  background:#fff;color:#333;cursor:pointer;
  font-size: 14px;
}
.pill[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:#fff;text-shadow: 0 0 1px rgba(0,0,0,1);}

.tutorial-wrapper{
  margin:0 auto;
}

.tutorial{
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  padding:22px;
}
.tutorial__title{
  margin: 14px 0 40px 2px;
  font-size: 24px;
  color: #DB3614;}

.tutorial-desc{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: 0 0 16px 16px;
  border-top: 0;
  padding: 42px 22px;
  line-height: 1.6rem;
}
.tutorial-notes ol {
	margin:0;
	list-style-position: inside;
  	padding: 0;
}

@media (min-width: 1024px) {
  .tutorial-wrapper{
    display:flex;
    align-items:stretch;
  }
  .tutorial{
    flex:0 0 60%;
    max-width:60%;
    border-radius: 16px 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .tutorial-desc{
    flex:0 0 40%;
    max-width:40%;
    margin:0;
    min-width:0;
    border-radius: 0 16px 16px 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

.phone-stage{
  position:relative;margin:0 auto; width:var(--phone-width, 270px); aspect-ratio: var(--phone-aspect, 9/16);
}
.nav-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid #595959;
  background:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:10;
  transition:all 0.2s ease;
  padding:0;
}
.nav-btn:hover{
  background:#fafafa;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
.nav-btn:active{
  transform:translateY(-50%) scale(0.95);
}
.nav-btn img{
  display:block;
  width:6px;
  height:9px;
}
.nav-btn--prev{
  left:22px;
}
.nav-btn--next{
  right:22px;
}
.phone-stage__screen{
  position:absolute;inset:0;
  background:#000;border-radius:16px;overflow:hidden;
  display:grid;place-items:center;
  outline:8px solid #595959;
}
.phone-stage__screen .screen-container{
  width:100%;height:100%;
  position:absolute;left:0;top:0;
  z-index:1;
  will-change: transform;
  backface-visibility:hidden;
}

.phone-stage__screen .screen-container img{
  width:100%;
  height:auto;
  display:block;
}

.phone-stage__screen .screen-container.current{
  transform: translateX(0);
}
.phone-stage__screen .screen-container.next-right{
  transform: translateX(100%);
}
.phone-stage__screen .screen-container.next-left{
  transform: translateX(-100%);
}
.phone-stage__screen .screen-container.slide-out-left{
  transform: translateX(-100%);
}
.phone-stage__screen .screen-container.slide-out-right{
  transform: translateX(100%);
}
.phone-stage__screen .screen-container.slide-in-center{
  transform: translateX(0);
}
.hotspot{position:absolute;width:14px;height:14px;border-radius:50%;background:#1e90ff;box-shadow:0 0 0 0 rgba(30,144,255,.6);pointer-events:none;transform:translate(-50%,-50%);opacity:.9;z-index:2}
.hotspot.is-rippling{animation:ripple 1.2s ease-out infinite}
@keyframes ripple{
  0%{box-shadow:0 0 0 0 rgba(30,144,255,.6)}
  70%{box-shadow:0 0 0 16px rgba(30,144,255,0)}
  100%{box-shadow:0 0 0 0 rgba(30,144,255,0)}
}
.screen-fallback{
  position:absolute;inset:0;display:grid;place-items:center;
  color:#fff;background:#DB3614;font-size:14px;
  z-index:0;
}

.transport{margin:32px auto;}
.transport__buttons{
  display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:8px;
}
.btn{
  display:inline-grid;place-items:center;
  width:36px;height:36px;border-radius:4px;border:1px solid var(--border);
  background:#fff;cursor:pointer
}
.btn:hover{background:#fafafa}
.time{margin-left:12px;color:var(--muted);min-width:54px;text-align:right}
.time{display:none}

.progress{
  display:flex;align-items:center;
  padding:8px 0 2px;
  gap:4px;
  width:100%;
}
.progress__segment{
  flex:1 1 0%;height:4px;border-radius:3px;background:var(--segment);
  position:relative;cursor:pointer;outline:none;
}
.progress__segment::after{
  content:"";position:absolute;left:0;top:0;height:100%;width:0%;
  background:var(--segment-active);border-radius:3px;transition:width .1s linear;
}
.progress__segment.is-complete{background:var(--segment-active)}
.progress__segment.is-complete::after{display:none}
.progress__segment:focus{box-shadow:0 0 0 2px #cde}

.step-list{
  list-style:none;margin:0;padding:0;
}
.step-item{
  display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;
}
.step-number{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:#d1d1d1;
  color:#fff;
  font-size:18px;
  font-weight:600;
  flex-shrink:0;
  border:none;
  outline:none;
  cursor:pointer;
  transition:background-color 0.2s ease;
}
.step-number.is-active{
  background:#DB3614;
}
.step-content{
  flex:1;
  margin-left: 24px;
}
.step-title{
  font-weight:600;margin-bottom:4px;color:#222;
}
.step-details{
  color:#666;font-size:14px;
}
.step-details ul{
  margin:4px 0 0 0;padding-left:16px;
}
.step-details li{
  margin-bottom:2px;
}

/* Fonts: paths relative to shared/css → shared/images */
@font-face{
  font-family:'Hando';
  src: url("../images/Hando-Regular.eot");
  src: url("../images/Hando-Regular.eot?#iefix") format("embedded-opentype"), url("../images/Hando-Regular.woff") format("woff"), url("../images/Hando-Regular.ttf") format("truetype");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Hando';
  src: url("../images/Hando-SemiBold.woff") format("woff");
  font-weight:600;font-style:normal;font-display:swap;
}

[lang="en"] body{ --font-base: 'Hando', 'Noto Sans', sans-serif; }
[lang="tc"] body,[lang="sc"] body{ --font-base: 'Noto Sans', 'PingFang HK', 'PingFang SC', 'Heiti TC', 'Microsoft JhengHei', 'Noto Sans CJK', Hei, sans-serif; }

@media (max-width:1280px){
  .container{padding:18px}
  .phone-stage{width:min(320px,70vw)}
  .transport{max-width:92vw}
  .nav-btn--prev{left:18px}
  .nav-btn--next{right:18px}
}
@media (max-width:1280px) and (orientation:landscape){
  .phone-stage.is-landscape-tutorial{width:min(480px,70vw);}
}
@media (max-width:640px){
  .nav-btn--prev{left:18px}
  .nav-btn--next{right:18px}
}

.hotspot{position:absolute;width:8px;height:8px;border-radius:50%;
  border:1.6px solid #00A6D2;background:transparent;box-shadow:none;pointer-events:none;
  transform:translate(-50%,-50%);opacity:1;z-index:2;
  transition:left .35s ease, top .35s ease}
.hotspot.is-rippling{animation:hotspotCore 1.13s ease-out infinite}
.hotspot::after{content:"";position:absolute;left:50%;top:50%;width:22.4px;height:22.4px;border-radius:50%;
  border:2.4px solid #00A6D2;opacity:0;transform:translate(-50%,-50%)}
.hotspot.is-rippling::after{animation:hotspotRipple 1.13s ease-out infinite}
@keyframes hotspotCore{
  0%{width:8px;height:8px;border-width:1.6px}
  70.8%{width:25.6px;height:25.6px;border-width:4.8px}
  93.81%{width:25.6px;height:25.6px;border-width:4.8px}
  100%{width:8px;height:8px;border-width:1.6px}
}
@keyframes hotspotRipple{
  0%{width:22.4px;height:22.4px;opacity:.4}
  70.8%{width:51.2px;height:51.2px;opacity:0}
  93.81%{width:51.2px;height:51.2px;opacity:0}
  100%{width:22.4px;height:22.4px;opacity:0}
}

.step-list{list-style:none;margin:0;padding:0}
.step-item{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.step-number{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#CCCCCC;color:#fff;font-size:18px;font-weight:600;flex-shrink:0}
.step-content{flex:1}
.step-title{font-weight:400;margin-bottom:4px;color:#222;position:relative;padding-left:14px}
.step-title::before{content:"";position:absolute;left:0;top:.6em;width:6px;height:6px;border-radius:50%;background:#222}
.step-details{color:#666;font-size:14px}
.step-details ul{list-style:none;margin:4px 0 0 0;padding-left:0}
.step-details li{margin-bottom:2px}

.tutorial-notes{
  margin:18px auto 0;
  color:#444;line-height:1.6;font-size:14px
}
.tutorial-notes[hidden]{display:none}

.page-footer{margin-top:24px}
.page-footer__line{width:100%;height:1px;background:#ddd}
.page-footer__content{margin:0 auto;padding:24px 24px 48px}
.page-footer__copyright{margin:0;text-align:right;color:#666;font-size:12px}
