/* mybasu.com/learn: step-by-step guides. Each guide is a phone that plays
   real screenshots of the app, with a finger showing where to tap. */

main.wide { max-width: 1000px; }

.learn-hero { text-align: center; padding: 28px 0 8px; }
.learn-hero h1 { font-size: 40px; margin: 20px 0 8px; }
.learn-hero p { font-size: 19px; max-width: 34em; margin: 0 auto; }
.learn-hero .note { font-size: 15px; margin-top: 14px; }

/* Topic picker */
.topics { margin: 36px 0 8px; }
.topics h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 24px 0 10px; }
.topic-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.topic {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 16px; padding: 12px 14px;
  color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3;
  border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.topic:hover, .topic:focus-visible { border-color: var(--lime); color: var(--text); background: #113541; }
.topic .ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: var(--raised); color: var(--lime);
}
.topic .ico svg { width: 20px; height: 20px; }
.topic small { display: block; color: var(--dim); font-weight: 400; font-size: 14px; }

/* One guide */
.tut { padding-top: 56px; scroll-margin-top: 8px; }
.tut-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.tut-num {
  flex: none; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--lime); color: #0b1a0d; font-weight: 800; font-size: 18px;
}
.tut-head h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.tut-head p { margin: 4px 0 0; }
.group-title { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin: 72px 0 -32px; }

.player {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 44px; align-items: start;
  background: linear-gradient(180deg, rgba(14,44,55,.55), rgba(14,44,55,.15));
  border: 1px solid rgba(37,134,164,.18); border-radius: 28px; padding: 28px;
}
.device { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* The phone */
.phone {
  width: 280px; padding: 9px; border-radius: 50px;
  background: linear-gradient(145deg, #2a3a40, #0b1316 40%, #1c2a2f);
  box-shadow: 0 0 0 1.5px #3a4c53, 0 30px 60px -20px rgba(0,0,0,.7), 0 0 80px -30px rgba(175,202,48,.25);
}
.screen {
  position: relative; overflow: hidden; border-radius: 41px;
  aspect-ratio: 1206 / 2622; background: #07181e;
  isolation: isolate; /* keeps the spotlight inside the rounded screen in Safari */
}
.screen::after { /* Dynamic Island, the same on every picture */
  content: ""; position: absolute; z-index: 6;
  left: 34.6%; width: 30.8%; top: 1.6%; height: 4.1%;
  background: #000; border-radius: 999px;
}
.frame { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.frame.on { opacity: 1; }
.frame img { display: block; width: 100%; height: 100%; }

/* Spotlight on part of the screen */
.mark {
  position: absolute; z-index: 3; pointer-events: none; opacity: 0;
  border: 2.5px solid var(--lime); border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(2, 9, 12, .55), 0 0 20px 2px rgba(175, 202, 48, .55);
  transition: opacity .3s ease, left .45s ease, top .45s ease, width .45s ease, height .45s ease;
}
.mark.on { opacity: 1; }

/* The finger */
.finger {
  position: absolute; z-index: 4; pointer-events: none; opacity: 0;
  width: 15%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.55) 0 38%, rgba(255,255,255,.28) 60%, rgba(255,255,255,.12));
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 3px 14px rgba(0,0,0,.45);
}
.finger .ripple {
  position: absolute; inset: -2px; border-radius: 50%;
  border: 3px solid var(--lime); opacity: 0;
}
.finger svg { position: absolute; inset: -18%; width: 136%; height: 136%; transform: rotate(-90deg); opacity: 0; }
.finger svg circle { fill: none; stroke: var(--lime); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.finger .label {
  position: absolute; left: 50%; top: 118%; transform: translateX(-50%);
  background: var(--lime); color: #0b1a0d; font-weight: 800; font-size: 11px; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; opacity: 0;
}

/* "Type ..." bubble */
.typing {
  position: absolute; z-index: 4; left: 50%; top: 55%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; max-width: 88%;
  background: #fff; color: #07181e; border-radius: 14px; padding: 8px 12px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; pointer-events: none;
}
.typing svg { width: 18px; height: 18px; flex: none; color: #1488c4; }
.typing .typed::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #1488c4; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Controls under the phone */
.ctrl { display: flex; align-items: center; gap: 8px; }
.ctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--raised); color: var(--text);
}
.ctrl button:hover { background: #1f5263; }
.ctrl button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.ctrl button.play { width: 52px; height: 52px; background: #1488c4; }
.ctrl button.play:hover { background: #1a97d6; }
.ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; max-width: 280px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--raised); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 22px; background: var(--lime); }
.caption { display: none; }

/* Step list */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 6px; align-self: center; }
.steps li {
  counter-increment: step; position: relative; cursor: pointer;
  padding: 12px 14px 12px 56px; border-radius: 14px; color: var(--dim); font-size: 17px; line-height: 1.45;
  transition: background .2s, color .2s;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 11px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--raised); color: var(--text); font-weight: 700; font-size: 14px;
  transition: background .2s, color .2s;
}
.steps li:hover { background: rgba(23,65,79,.5); }
.steps li:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.steps li.on { background: var(--card); color: var(--text); }
.steps li.on::before { background: var(--lime); color: #0b1a0d; }
.steps b { color: var(--text); }
.tip {
  grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 14px;
  background: rgba(175,202,48,.08); border: 1px solid rgba(175,202,48,.25); font-size: 15px;
}
.tip strong { color: var(--lime); }

/* Symbols guide */
.legend { margin-top: 18px; }
.legend-card { position: relative; max-width: 570px; margin: 0 auto 8px; }
.legend-card img { display: block; width: 100%; height: auto; border-radius: 20px; }
.pin-no {
  position: absolute; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: #0b1a0d; font-size: 13px; font-weight: 800;
  box-shadow: 0 0 0 2px #07181e;
}
.legend-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.legend-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.45; }
.legend-list .pin-no { position: static; transform: none; flex: none; margin-top: 1px; }
.legend-list .sym { flex: none; min-width: 24px; display: grid; place-items: center; margin-top: 2px; }
.bars { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 4px; }
.bars i { width: 11px; height: 6px; border-radius: 3px; background: #2a4a55; }
.bars.seats i:nth-child(1) { background: #34c759; }
.bars.standing i:nth-child(-n+2) { background: #ffb020; }
.bars.limited i { background: #ff453a; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.tile { display: inline-block; background: var(--lime); color: #0b1a0d; font-weight: 800; border-radius: 8px; padding: 0 8px; font-size: 15px; line-height: 1.6; }
.badge { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 800; border-radius: 8px; padding: 0 7px; font-size: 14px; line-height: 1.7; }

.back-top { text-align: center; margin: 56px 0 0; }

@media (max-width: 760px) {
  .player { grid-template-columns: 1fr; padding: 20px 14px; border-radius: 24px; }
  .phone { width: min(270px, 74vw); border-radius: 46px; }
  .screen { border-radius: 38px; }
  .caption {
    display: block; margin: 0; min-height: 3em; max-width: 320px; text-align: center;
    color: var(--text); font-size: 17px; line-height: 1.45;
  }
  .caption b { color: var(--lime); }
  .tut-head h2 { font-size: 24px; }
  .learn-hero h1 { font-size: 32px; }
  .steps li { font-size: 16px; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic { padding: 10px; gap: 10px; font-size: 15px; }
  .topic .ico { width: 32px; height: 32px; border-radius: 10px; }
  .topic .ico svg { width: 17px; height: 17px; }
  .topic small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .frame, .mark, .dots button { transition: none; }
}
