/* ============================================================
   ScanTicket — Design System 2026
   Pure CSS, no Bootstrap. Drop-in replacement.
   ============================================================ */

/* Brand tokens (oklch) */
:root {
  --st-brand-h: 25;
  --st-brand-c: 0.18;
  --st-brand-l: 0.55;

  --st-brand:        oklch(var(--st-brand-l) var(--st-brand-c) var(--st-brand-h));
  --st-brand-hover:  oklch(calc(var(--st-brand-l) - 0.05) var(--st-brand-c) var(--st-brand-h));
  --st-brand-soft:   oklch(0.97 0.02 var(--st-brand-h));

  --st-ink:          oklch(0.18 0.01 270);
  --st-ink-2:        oklch(0.38 0.01 270);
  --st-ink-3:        oklch(0.55 0.01 270);
  --st-line:         oklch(0.92 0.005 270);
  --st-line-2:       oklch(0.96 0.005 270);
  --st-bg:           oklch(0.99 0.003 90);
  --st-bg-2:         oklch(0.97 0.005 90);
  --st-card:         #ffffff;

  --st-radius:       14px;
  --st-radius-sm:    8px;
  --st-radius-lg:    22px;

  --st-shadow-sm:    0 1px 2px rgba(20,18,16,.04), 0 1px 1px rgba(20,18,16,.03);
  --st-shadow:       0 8px 24px -8px rgba(20,18,16,.10), 0 2px 6px rgba(20,18,16,.05);
  --st-shadow-lg:    0 28px 60px -20px rgba(20,18,16,.18), 0 8px 20px rgba(20,18,16,.06);

  --st-sans:         "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --st-mono:         "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--st-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--st-ink);
  background: var(--st-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a.no_underline { text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--st-sans); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p  { margin: 0 0 1em; }

.mono { font-family: var(--st-mono); font-feature-settings: "tnum" 1; }

/* Container */
.st-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.st-narrow    { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ==============================
   NAV
   ============================== */
.st-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--st-line);
}
.st-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.st-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--st-ink);
}
.st-brand-logo .dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--st-brand);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 14px;
  box-shadow: var(--st-shadow-sm);
}
.st-brand-logo .st-brand-icon {
  width: 28px; height: 28px;
  border-radius: 22%;
  display: block;
  box-shadow: var(--st-shadow-sm);
  overflow: hidden;
}
.st-nav-links { display: flex; gap: 28px; align-items: center; }
.st-nav-links a {
  font-size: 14px;
  color: var(--st-ink-2);
  font-weight: 500;
  transition: color .15s;
  position: relative;
}
.st-nav-links a:hover { color: var(--st-ink); }
.st-nav-links a.active { color: var(--st-brand); }
.st-nav-right { display: flex; gap: 12px; align-items: center; }
.st-lang {
  display: inline-flex; gap: 4px;
  font-family: var(--st-mono); font-size: 12px;
  color: var(--st-ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.st-lang a { padding: 4px 6px; border-radius: 4px; }
.st-lang a:hover { background: var(--st-line-2); color: var(--st-ink); }
.st-lang a.active { background: var(--st-ink); color: white; }

/* ==============================
   BUTTONS
   ============================== */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
  white-space: nowrap;
}
.st-btn:active { transform: translateY(1px); }
.st-btn-primary {
  background: var(--st-brand);
  color: white;
}
.st-btn-primary:hover { background: var(--st-brand-hover); }
.st-btn-ghost {
  background: transparent;
  color: var(--st-ink);
  border-color: var(--st-line);
}
.st-btn-ghost:hover { background: var(--st-bg-2); }
.st-btn-dark {
  background: var(--st-ink);
  color: white;
}
.st-btn-lg { padding: 16px 28px; font-size: 16px; }
.st-btn-sm { padding: 8px 14px; font-size: 13px; }

/* App store badges */
.st-stores { display: inline-flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.st-stores img { height: 50px; width: auto; }

/* ==============================
   HERO
   ============================== */
.st-hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.st-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 900px) {
  .st-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--st-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-brand);
  background: var(--st-brand-soft);
  border-radius: 999px;
  margin-bottom: 24px;
}
.st-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--st-brand);
  border-radius: 50%;
}
.st-hero h1 { margin-bottom: 20px; }
.st-hero h1 em { color: var(--st-brand); font-style: normal; }
.st-hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--st-ink-2);
  max-width: 520px;
  margin-bottom: 36px;
}
.st-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Phone mockup */
.st-phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.st-phone {
  width: 290px;
  aspect-ratio: 9/19;
  background: #111;
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--st-shadow-lg);
  position: relative;
}
.st-phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000; border-radius: 14px;
  z-index: 2;
}
.st-phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--st-bg);
  position: relative;
}
.st-phone-screen video,
.st-phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Floating receipt card */
.st-receipt-float {
  position: absolute;
  background: white;
  border-radius: var(--st-radius);
  padding: 14px 16px;
  box-shadow: var(--st-shadow);
  font-family: var(--st-mono);
  font-size: 12px;
  border: 1px solid var(--st-line);
}
.st-receipt-float.f1 { top: 12%; right: -10%; animation: float1 6s ease-in-out infinite; }
.st-receipt-float.f2 { bottom: 16%; left: -14%; animation: float2 7s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(10px) rotate(-4deg); } }
.st-receipt-float .label { color: var(--st-ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.st-receipt-float .amount { color: var(--st-ink); font-size: 18px; font-weight: 600; font-family: var(--st-sans); letter-spacing: -0.02em; }
.st-receipt-float .amount em { color: var(--st-brand); font-style: normal; }

/* ==============================
   STATS / NUMBERS
   ============================== */
.st-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--st-line);
  border-bottom: 1px solid var(--st-line);
  margin-top: 60px;
}
@media (max-width: 720px) { .st-stats { grid-template-columns: repeat(2, 1fr); } }
.st-stat {
  padding: 32px 24px;
  border-right: 1px solid var(--st-line);
}
.st-stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .st-stat:nth-child(2) { border-right: none; }
  .st-stat:nth-child(-n+2) { border-bottom: 1px solid var(--st-line); }
}
.st-stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--st-sans);
  color: var(--st-ink);
}
.st-stat-label {
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-ink-3);
  margin-top: 4px;
}

/* ==============================
   SECTIONS
   ============================== */
.st-section { padding: 100px 0; }
.st-section-tight { padding: 60px 0; }
.st-section-dark {
  background: var(--st-ink);
  color: white;
}
.st-section-dark .st-section-kicker { color: oklch(0.7 0.01 270); }
.st-section-dark h2 { color: white; }
.st-section-dark p { color: oklch(0.85 0.005 270); }

.st-section-head { max-width: 700px; margin-bottom: 48px; }
.st-section-kicker {
  font-family: var(--st-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-brand);
  margin-bottom: 14px;
}
.st-section-head h2 { margin-bottom: 16px; }
.st-section-head p { color: var(--st-ink-2); font-size: 18px; }

/* ==============================
   FEATURES GRID
   ============================== */
.st-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .st-features { grid-template-columns: 1fr; } }
.st-feature-card {
  background: var(--st-card);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 28px;
  transition: border-color .15s, transform .15s;
}
.st-feature-card:hover {
  border-color: oklch(0.85 0.005 270);
  transform: translateY(-2px);
}
.st-feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--st-brand-soft);
  color: var(--st-brand);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.st-feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.st-feature-card p { color: var(--st-ink-2); font-size: 15px; margin: 0; }

/* Long features list */
.st-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (max-width: 720px) { .st-feature-list { grid-template-columns: 1fr; } }
.st-feature-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--st-line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}
.st-feature-list li::before {
  content: "→";
  color: var(--st-brand);
  font-weight: 600;
  flex-shrink: 0;
}

/* ==============================
   TESTIMONIALS
   ============================== */
.st-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .st-testimonials { grid-template-columns: 1fr; } }
.st-quote {
  background: var(--st-card);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 28px;
}
.st-quote-stars {
  color: var(--st-brand);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.st-quote-title { font-weight: 600; margin-bottom: 10px; font-size: 16px; }
.st-quote-text { color: var(--st-ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.st-quote-author { font-family: var(--st-mono); font-size: 12px; color: var(--st-ink-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==============================
   SCREENSHOTS GALLERY
   ============================== */
.st-screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}
@media (max-width: 900px) { .st-screens { grid-template-columns: repeat(2, 1fr); } }
.st-screens img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--st-line);
  box-shadow: var(--st-shadow);
}

/* ==============================
   CTA BANNER
   ============================== */
.st-cta-banner {
  background: var(--st-ink);
  color: white;
  border-radius: var(--st-radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.st-cta-banner h2 { color: white; margin-bottom: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.st-cta-banner p { color: oklch(0.78 0.005 270); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ==============================
   ACCOUNT TABLE
   ============================== */
.st-account-page { padding: 60px 0 100px; }
.st-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.st-account-head h1 { font-size: 36px; }

.st-table-wrap {
  background: white;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  overflow: hidden;
}
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.st-table thead {
  background: var(--st-bg-2);
  border-bottom: 1px solid var(--st-line);
}
.st-table th {
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-ink-3);
  font-weight: 500;
  text-align: left;
  padding: 14px 18px;
}
.st-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--st-line);
  color: var(--st-ink);
  vertical-align: middle;
}
.st-table tr:last-child td { border-bottom: none; }
.st-table tr:hover td { background: var(--st-bg-2); }
.st-table .price { font-family: var(--st-mono); font-weight: 600; color: var(--st-ink); text-align: right; }

.st-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--st-brand-soft);
  color: var(--st-brand);
}
.st-tag-grey { background: var(--st-bg-2); color: var(--st-ink-2); }

.st-sync-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.7 0.15 145);
  margin-right: 6px;
  vertical-align: middle;
}
.st-sync-dot.off { background: oklch(0.85 0.005 270); }

/* Empty state */
.st-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--st-ink-3);
}
.st-empty h3 { color: var(--st-ink); margin-bottom: 8px; }

/* ==============================
   TICKET VIEW
   ============================== */
.st-ticket-page { padding: 60px 0 100px; }
.st-ticket-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  overflow: hidden;
  box-shadow: var(--st-shadow);
}
.st-ticket-card img { width: 100%; display: block; }
.st-ticket-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--st-ink-2);
  font-size: 14px;
}
.st-ticket-back:hover { color: var(--st-brand); }

/* ==============================
   FOOTER
   ============================== */
.st-footer {
  background: var(--st-ink);
  color: oklch(0.85 0.005 270);
  padding: 64px 0 32px;
}
.st-footer a { color: oklch(0.85 0.005 270); }
.st-footer a:hover { color: white; }
.st-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 800px) { .st-footer-grid { grid-template-columns: 1fr 1fr; } }
.st-footer h4 {
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.65 0.005 270);
  margin-bottom: 14px;
  font-weight: 500;
}
.st-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.st-footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px;
  border-top: 1px solid oklch(0.28 0.01 270);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: oklch(0.6 0.005 270);
}
.st-footer-apps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.st-footer-apps a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid oklch(0.28 0.01 270);
  border-radius: 8px;
}
.st-footer-apps a img { width: 16px; height: 16px; border-radius: 4px; }

/* ==============================
   ALERTS
   ============================== */
.st-alert {
  padding: 14px 18px;
  border-radius: var(--st-radius-sm);
  font-size: 14px;
  margin: 16px 0;
  border-left: 3px solid;
}
.st-alert-error { background: oklch(0.97 0.02 25); color: oklch(0.4 0.15 25); border-color: oklch(0.6 0.18 25); }
.st-alert-success { background: oklch(0.97 0.04 145); color: oklch(0.35 0.12 145); border-color: oklch(0.6 0.15 145); }

/* ==============================
   FORM
   ============================== */
.st-form { max-width: 420px; margin: 0 auto; }
.st-form-row { margin-bottom: 18px; }
.st-form label {
  display: block;
  font-family: var(--st-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-ink-3);
  margin-bottom: 6px;
}
.st-form input[type="text"],
.st-form input[type="email"],
.st-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-sm);
  font: inherit;
  background: white;
  transition: border-color .15s;
}
.st-form input:focus {
  outline: none;
  border-color: var(--st-brand);
  box-shadow: 0 0 0 3px var(--st-brand-soft);
}

/* ==============================
   UTILITIES
   ============================== */
.st-text-center { text-align: center; }
.st-mt-0 { margin-top: 0; }
.st-mb-0 { margin-bottom: 0; }
.st-mb-2 { margin-bottom: 8px; }
.st-mb-4 { margin-bottom: 16px; }
.st-mb-6 { margin-bottom: 24px; }
.st-mb-8 { margin-bottom: 32px; }

/* ==============================
   LEGACY ARTICLE / BLOG LIST
   Used by article.blade.php, articles_list.blade.php, blog.blade.php
   ============================== */
.article-wrapper,
.inner.cover {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
  font-family: var(--st-sans);
  color: var(--st-ink);
  line-height: 1.7;
}
.article-wrapper article { all: unset; display: block; }
.article-wrapper img,
.article-wrapper article img,
.inner.cover img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--st-radius);
  margin: 24px auto;
}
.article-wrapper h1,
.inner.cover h1 {
  font-family: var(--st-sans);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--st-ink);
  margin: 0 0 24px;
  font-weight: 700;
}
.article-wrapper h2 {
  font-size: 30px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--st-ink);
}
.article-wrapper h3 {
  font-size: 22px;
  margin: 28px 0 8px;
  font-weight: 600;
  color: var(--st-ink);
}
.article-wrapper p,
.inner.cover p {
  font-size: 17px;
  margin: 16px 0;
  color: var(--st-ink);
}
.article-wrapper a {
  color: var(--st-brand);
  text-decoration: underline;
}
.article-wrapper a:hover { color: var(--st-brand-hover); }
.article-wrapper ul,
.article-wrapper ol {
  padding-left: 24px;
  margin: 16px 0;
}
.article-wrapper li { margin: 10px 0; }
.article-wrapper blockquote {
  border-left: 3px solid var(--st-brand);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--st-ink-2);
  font-style: italic;
}
.article-wrapper hr {
  border: 0;
  border-top: 1px solid var(--st-line);
  margin: 32px 0;
}
.article-wrapper code {
  background: var(--st-bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--st-mono);
  font-size: 0.9em;
}
.article-wrapper .badge {
  display: inline-block;
  background: var(--st-bg-2);
  color: var(--st-ink-2);
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 6px;
  font-weight: 500;
}

/* ==============================
   LEGACY TUTORIAL PAGES
   Two patterns:
   1. Pages with <div class="container"> wrapper (Bootstrap legacy)
   2. Pages with direct <h1>/<p>/<img> inside <main> (no wrapper at all)
   Redesigned pages use .st-container / .st-section / .st-hero so they are NOT affected.
   ============================== */

/* Pattern 1: Bootstrap .container wrapper */
main > .container {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
  font-family: var(--st-sans);
  color: var(--st-ink);
  line-height: 1.7;
}
main > .container h1,
main > .container h2,
main > .container h3 {
  font-family: var(--st-sans);
  color: var(--st-ink);
  letter-spacing: -0.01em;
}
main > .container h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px; font-weight: 700; }
main > .container h2 { font-size: 30px; margin: 40px 0 12px; font-weight: 700; }
main > .container h3 { font-size: 22px; margin: 28px 0 8px; font-weight: 600; }
main > .container p { font-size: 17px; margin: 16px 0; }
main > .container p.lead { font-size: 19px; color: var(--st-ink-2); margin-bottom: 24px; }
main > .container a { color: var(--st-brand); text-decoration: underline; }
main > .container a:hover { color: var(--st-brand-hover); }
main > .container ul,
main > .container ol { padding-left: 24px; margin: 16px 0; }
main > .container li { margin: 10px 0; }
main > .container hr { border: 0; border-top: 1px solid var(--st-line); margin: 32px 0; }
main > .container img { max-width: 100%; height: auto; display: block; border-radius: var(--st-radius); margin: 24px auto; }
main > .container blockquote {
  border-left: 3px solid var(--st-brand);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--st-ink-2);
  font-style: italic;
}

/* Pattern 2: direct content inside <main> (no wrapper) */
main > h1,
main > h2,
main > h3,
main > p,
main > ul,
main > ol,
main > blockquote,
main > pre,
main > hr,
main > img {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  font-family: var(--st-sans);
  color: var(--st-ink);
}
main > h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 60px auto 24px; font-weight: 700; }
main > h2 { font-size: 30px; margin: 40px auto 12px; font-weight: 700; letter-spacing: -0.01em; }
main > h3 { font-size: 22px; margin: 28px auto 8px; font-weight: 600; }
main > p { font-size: 17px; line-height: 1.7; margin: 16px auto; }
main > ul,
main > ol { padding-left: 48px; padding-right: 24px; margin: 16px auto; line-height: 1.7; }
main > li { margin: 10px 0; }
main > hr { border: 0; border-top: 1px solid var(--st-line); margin: 32px auto; }
main > img { width: auto; height: auto; max-width: 760px; display: block; border-radius: var(--st-radius); margin: 24px auto; padding: 0 24px; }
main > a { color: var(--st-brand); text-decoration: underline; }

/* Collapse legacy <br><br><br> stacks at the top */
main > br + br + br + br,
main > br + br + br + br + br,
main > br + br + br + br + br + br { display: none; }

/* Common Bootstrap utility classes still in use */
main .lead { font-size: 19px; color: var(--st-ink-2); line-height: 1.6; }
main .text-center { text-align: center; }
main .my-4 { margin-top: 24px; margin-bottom: 24px; }
main .img-fluid { max-width: 100%; height: auto; display: block; }
main .img-responsive { max-width: 100%; height: auto; }
main .rounded { border-radius: var(--st-radius); }
main .shadow { box-shadow: var(--st-shadow); }

/* ==============================
   TUTORIAL PAGES (.tutorial-*)
   Used by 9 step-by-step tutorials with .tutorial-page > .container > .tutorial-container.
   Original inline <style> blocks were dark-mode; replaced by these light-mode rules.
   ============================== */
.tutorial-page {
  padding: 60px 0 80px;
  background: var(--st-bg);
  font-family: var(--st-sans);
  color: var(--st-ink);
}
.tutorial-page > .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.tutorial-container { max-width: 800px; margin: 0 auto; }
.tutorial-header { text-align: center; margin-bottom: 48px; }
.tutorial-header h1 {
  font-family: var(--st-sans);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--st-ink);
  margin: 0 0 20px;
}
.tutorial-header .lead {
  font-size: 1.2rem;
  color: var(--st-ink-2);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.tutorial-content {
  background: var(--st-card);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-lg);
  padding: 40px 36px;
  margin-bottom: 24px;
  box-shadow: var(--st-shadow-sm);
}
.tutorial-content h2 {
  font-family: var(--st-sans);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--st-ink);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--st-line);
}
.tutorial-content h3 {
  font-family: var(--st-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--st-brand);
  margin: 32px 0 14px;
}
.tutorial-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--st-ink);
  margin: 14px 0;
}
.tutorial-content strong { color: var(--st-ink); font-weight: 600; }
.tutorial-content ul,
.tutorial-content ol {
  padding-left: 24px;
  margin: 16px 0;
  line-height: 1.7;
}
.tutorial-content li { margin: 10px 0; color: var(--st-ink); }
.tutorial-content a { color: var(--st-brand); text-decoration: underline; }
.tutorial-content a:hover { color: var(--st-brand-hover); }

.tutorial-image {
  text-align: center;
  margin: 28px 0;
}
.tutorial-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  display: inline-block;
}

.tutorial-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.tutorial-nav .btn-back,
.tutorial-nav .btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--st-sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--st-line);
}
.tutorial-nav .btn-back {
  background: transparent;
  color: var(--st-ink-2);
}
.tutorial-nav .btn-back:hover {
  background: var(--st-bg-2);
  color: var(--st-ink);
  text-decoration: none;
}
.tutorial-nav .btn-home {
  background: var(--st-ink);
  color: #fff;
  border-color: var(--st-ink);
}
.tutorial-nav .btn-home:hover {
  background: var(--st-brand);
  border-color: var(--st-brand);
  color: #fff;
  text-decoration: none;
}
.tutorial-nav svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .tutorial-page { padding: 40px 0 60px; }
  .tutorial-header h1 { font-size: 1.9rem; }
  .tutorial-header .lead { font-size: 1.05rem; }
  .tutorial-content { padding: 28px 22px; }
  .tutorial-content h2 { font-size: 1.4rem; }
  .tutorial-content h3 { font-size: 1.1rem; }
  .tutorial-nav { flex-direction: column; align-items: stretch; }
  .tutorial-nav .btn-back,
  .tutorial-nav .btn-home { justify-content: center; }
}
