/* ═══════════════════════════════════════════════════════════
   tutorial.css — Video tutorial pages (tutorial-swhd,
   tutorial-upswhd). Same neobrutalism system as home.css,
   self-contained so these pages don't depend on home.css.
═══════════════════════════════════════════════════════════ */

/* ── Top bar — back link + panduan label ──────────────────── */
.tut-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 20px 0;
}

.tut-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink);
}

.tut-back svg { transition: transform 0.18s var(--ease-spring); }
.tut-back:hover svg { transform: translateX(-3px); }
.tut-back:active svg { transform: translateX(-1px); }

.tut-topbar-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid rgba(10,10,10,0.14);
  box-shadow: 0 4px 12px -6px rgba(10,10,10,0.16);
}

/* ── Hero (title block) ────────────────────────────────────── */
.tut-hero {
  position: relative;
  z-index: 1;
  padding: 24px 20px 8px;
  text-align: center;
}

.tut-hero-content {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.tut-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid rgba(10,10,10,0.14);
  box-shadow: 0 6px 16px -8px rgba(10,10,10,0.18);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tut-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  animation: breathe 2.6s ease-in-out infinite;
}

.tut-wordmark {
  margin-top: 4px;
  font-size: clamp(1.7rem, 8vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}

.tut-wordmark .accent { color: var(--blue); }

.tut-tagline {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.6;
  max-width: 320px;
}

/* ── Video frame ────────────────────────────────────────────
   Portrait 9:16, matches a WA Status video. No native <video
   controls> — a transparent tap-shield sits on top so taps
   toggle play/pause while the video element itself never
   receives pointer/touch events directly. That keeps the
   browser's own long-press "save video" menu from ever being
   triggered off the video element. Combined with
   controlsList="nodownload" + disablePictureInPicture and the
   global right-click/drag blocks in protect.js, this raises
   real friction — it is NOT an absolute guarantee, screen
   recording always remains possible on any web video. ────── */
.video-section {
  position: relative;
  z-index: 1;
  padding: 10px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue), var(--cyan) 85%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  pointer-events: none; /* shield handles all interaction */
}

/* Shown behind/instead of the <video> until a real source is
   wired up — swap in a real <source> and this fades under it. */
.video-placeholder-label {
  position: absolute;
  z-index: 0;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  pointer-events: none;
}

.video-tap-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.video-play-btn {
  position: absolute;
  z-index: 3;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-smooth), transform 0.2s var(--ease-spring);
}

.video-frame.is-playing .video-play-btn {
  opacity: 0;
  transform: scale(0.7);
}

.scroll-cue {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.scroll-cue svg {
  animation: floatSoft 1.6s ease-in-out infinite;
}

/* ── Step blocks ────────────────────────────────────────────
   Alternating accent shadow (blue / cyan) so the sequence
   doesn't read as one stamped-out block, matching the note
   about avoiding a monotone list. ─────────────────────────── */
.steps-section {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 6px auto 4px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tutorial-text-block {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: var(--bg-card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}

.tutorial-text-block.step-block:nth-of-type(odd)  { box-shadow: 4px 4px 0 var(--blue); }
.tutorial-text-block.step-block:nth-of-type(even) { box-shadow: 4px 4px 0 var(--cyan); }

.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step-title { font-weight: 800; font-size: 1rem; color: var(--ink); }
.step-desc  { font-size: 0.86rem; color: var(--gray-2); line-height: 1.6; font-weight: 500; }

.step-desc .cmd {
  display: inline-block;
  background: rgba(10,10,10,0.06);
  padding: 1px 7px;
  border-radius: 5px;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.84rem;
}

/* ── Warning / note block ──────────────────────────────────── */
.note-block {
  background: #FFF7E4;
  border-color: #0A0A0A;
  box-shadow: 4px 4px 0 #E8A400 !important;
}
.note-block .step-num { background: #E8A400; font-size: 1.05rem; }
.note-block .step-title { color: #7A4E00; }
.note-block .step-desc { color: #7A4E00; opacity: 0.85; }

/* ── Cross-link CTA ─────────────────────────────────────────── */
.tut-cta-section {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 10px auto 12px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-blue);
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s var(--ease-spring);
}

.cta-card:hover  { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--blue); }
.cta-card:active { transform: translate(2px, 2px);   box-shadow: 2px 2px 0 var(--blue); }

.cta-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cta-label { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.cta-title { font-size: 1.02rem; font-weight: 800; color: var(--white); }
.cta-arrow { flex-shrink: 0; color: var(--white); transition: transform 0.18s var(--ease-spring); }
.cta-card:hover .cta-arrow { transform: translateX(4px) rotate(-10deg); }

.cta-secondary {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-2);
}
.cta-secondary a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.cta-secondary a:hover { color: var(--blue); }

.cta-ripple { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius); }
.cta-ripple .ripple-circle { background: rgba(255,255,255,0.16); }

/* ── Footer note (duplicated from home.css — these pages don't
   load home.css so they stay self-contained) ────────────────── */
.hero-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10px 20px 48px;
  font-size: 0.72rem;
  color: var(--gray-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 540px) {
  .tut-topbar, .tut-hero-content, .steps-section, .tut-cta-section { max-width: 640px; }
  .video-frame { max-width: 320px; }
  .step-title { font-size: 1.06rem; }
}
