/* ============================================================
   Fix My Appointment — Tutorial page (tutorial.css)

   Design plan (see /mnt/skills/public/frontend-design for the process this
   follows): this page teaches three different audiences (Patient, Clinic,
   Doctor) how to use the app, one guided step at a time. The signature
   element is a colored vertical "path rail" running down each track's steps
   — literally the guided path the brief asks for, and functionally useful
   navigation (you can see how far through a track you are), not decoration.
   Each audience gets its own accent so the color itself tells you which
   track you're reading, even mid-scroll:
     Patient = rose   #D9527A     Clinic = teal   #0C6B63 (existing brand)
     Doctor  = saffron #F08A24 (existing brand)
   Base tones extend the app's own palette (teal/saffron/mint already used
   everywhere else) rather than introducing a clashing new one, but lean
   warmer and bolder — this is the one page in the app allowed to feel like
   a flagship moment rather than a workaday dashboard.
   ============================================================ */

:root {
  --tut-ink: #0A2E2B;
  --tut-teal: #0C6B63;
  --tut-teal-deep: #073F3A;
  --tut-saffron: #F08A24;
  --tut-rose: #D9527A;
  --tut-rose-deep: #A83D5C;
  --tut-cream: #FBF8F2;
  --tut-mint: #F6FAF9;
  --tut-paper: #FFFFFF;
  --tut-line: #E7E1D6;
}

.tut-body { background: var(--tut-cream); }

/* ---------- Sticky control bar: language + track switcher ---------- */
.tut-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 242, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tut-line);
  padding: 10px 20px;
}
.tut-bar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.tut-langs { display: flex; gap: 6px; background: #fff; border: 1.5px solid var(--tut-line); border-radius: 999px; padding: 4px; }
.tut-lang-btn {
  border: none; background: transparent; padding: 7px 16px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; color: var(--ink-400, #6E8A87);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tut-lang-btn.active { background: var(--tut-ink); color: #fff; }
.tut-lang-btn:not(.active):hover { background: var(--tut-mint); }

.tut-tracks { display: flex; gap: 6px; }
.tut-track-btn {
  border: 1.5px solid var(--tut-line); background: #fff; padding: 7px 16px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: transform 0.15s, box-shadow 0.15s;
}
.tut-track-btn:hover { transform: translateY(-1px); }
.tut-track-btn[data-track="patient"].active { background: var(--tut-rose); border-color: var(--tut-rose); color: #fff; }
.tut-track-btn[data-track="clinic"].active { background: var(--tut-teal); border-color: var(--tut-teal); color: #fff; }
.tut-track-btn[data-track="doctor"].active { background: var(--tut-saffron); border-color: var(--tut-saffron); color: #fff; }

/* ---------- Hero ---------- */
.tut-hero {
  background: linear-gradient(160deg, var(--tut-ink) 0%, var(--tut-teal-deep) 55%, var(--tut-teal) 100%);
  color: #fff; padding: 64px 20px 56px; position: relative; overflow: hidden;
}
.tut-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(240,138,36,0.35), transparent 65%);
  pointer-events: none;
}
.tut-hero::after {
  content: ""; position: absolute; left: -15%; bottom: -35%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(217,82,122,0.28), transparent 65%);
  pointer-events: none;
}
.tut-hero-inner { max-width: 900px; margin: 0 auto; position: relative; text-align: center; }
.tut-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #BFE6E0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.tut-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.08; margin: 0 0 16px; color: #fff;
}
.tut-hero h1 em { font-style: normal; color: #F6C177; }
.tut-hero p.lead { font-size: 1.15rem; color: #DCEFEC; max-width: 620px; margin: 0 auto; line-height: 1.6; }

/* Three parallel audience picks — NOT numbered, they're parallel choices, not a sequence */
.tut-audience-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 900px; margin: 36px auto 0;
}
.tut-audience-card {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.16); border-radius: 18px;
  padding: 22px 18px; text-align: left; cursor: pointer; transition: transform 0.2s, background 0.2s, border-color 0.2s;
  color: #fff;
}
.tut-audience-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.11); }
.tut-audience-card .emoji { font-size: 1.9rem; display: block; margin-bottom: 8px; }
.tut-audience-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 4px; color: #fff; }
.tut-audience-card p { font-size: 0.88rem; color: #CFE7E3; margin: 0; line-height: 1.45; }
.tut-audience-card[data-pick="patient"] { border-color: rgba(217,82,122,0.55); }
.tut-audience-card[data-pick="clinic"] { border-color: rgba(95,201,190,0.55); }
.tut-audience-card[data-pick="doctor"] { border-color: rgba(240,138,36,0.55); }

/* ---------- Track section ---------- */
.tut-track { padding: 56px 20px 72px; display: none; }
.tut-track.active { display: block; }
.tut-track-inner { max-width: 820px; margin: 0 auto; }
.tut-track-head { text-align: center; margin-bottom: 44px; }
.tut-track-head .emoji { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.tut-track-head h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin: 0 0 8px; color: var(--tut-ink); }
.tut-track-head p { color: #5C7876; max-width: 520px; margin: 0 auto; font-size: 1.02rem; }

/* The path rail: a continuous colored line down the left, with a numbered
   dot per step — this IS a real sequence, so numbering is earned here. */
.tut-path { position: relative; padding-left: 56px; }
.tut-path::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 3px;
  background: var(--rail-color, var(--tut-teal)); opacity: 0.25; border-radius: 3px;
}
.tut-step {
  position: relative; margin-bottom: 40px; opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tut-step.in-view { opacity: 1; transform: translateY(0); }
.tut-step:last-child { margin-bottom: 0; }
.tut-step-num {
  position: absolute; left: -56px; top: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--rail-color, var(--tut-teal)); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25); border: 4px solid var(--tut-cream);
}
.tut-step-card {
  background: var(--tut-paper); border: 1px solid var(--tut-line); border-radius: 16px;
  padding: 22px 24px; box-shadow: 0 2px 10px -6px rgba(10,46,43,0.12);
}
.tut-step-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 8px; color: var(--tut-ink); }
.tut-step-card p { margin: 0; color: #435957; line-height: 1.65; font-size: 0.98rem; }
.tut-step-shot {
  margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--tut-line);
  box-shadow: 0 8px 24px -12px rgba(10,46,43,0.25); background: #fff;
}
.tut-step-shot img { display: block; width: 100%; height: auto; }
/* Browser-chrome frame around each screenshot — signals "this is the real app" */
.tut-shot-chrome {
  background: #EEF3F1; padding: 8px 12px; display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--tut-line);
}
.tut-shot-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #D8DFDD; }

/* ---------- Fixy callout ---------- */
.tut-fixy-cta {
  max-width: 820px; margin: 0 auto 0; padding: 22px 24px; border-radius: 16px;
  background: linear-gradient(120deg, #EAF6F4, #FDEFE1); border: 1.5px dashed var(--tut-teal);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.tut-fixy-cta .emoji { font-size: 2rem; }
.tut-fixy-cta strong { font-family: var(--font-display); color: var(--tut-ink); }
.tut-fixy-cta p { margin: 2px 0 0; color: #435957; font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .tut-audience-grid { grid-template-columns: 1fr; }
  .tut-bar-inner { justify-content: center; }
  .tut-path { padding-left: 46px; }
  .tut-step-num { left: -46px; width: 38px; height: 38px; font-size: 0.95rem; }
  .tut-path::before { left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tut-step { transition: none; opacity: 1; transform: none; }
  .tut-audience-card, .tut-track-btn { transition: none; }
}
