/* ---------------------------------------------------------------
   Feature tutorial pages (marketing-site/features/*.html) — shared layout:
   breadcrumb hero, numbered step-by-step tutorial with real app
   screenshots in a phone frame, tips list, related-feature links.
   --------------------------------------------------------------- */

.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumb a:hover { color: var(--brand-dark); }

.fhero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
.fhero-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.fhero-top h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--ink); }
.fhero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  margin-left: 10px;
  vertical-align: middle;
}
.fhero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.fhero-badge-premium { background: linear-gradient(135deg, #FDECD9, #FBDCB0); color: #8A4300; }
.fhero-sub { max-width: 680px; font-size: 17px; color: var(--muted); margin-bottom: 8px; }

/* Plan-status card — makes Free-vs-Premium unmissable on a tutorial page,
   not just a small badge next to the title. Premium's variant links
   straight to the pricing section since that reader has a next action;
   Free's is a plain reassurance with nowhere it needs to send anyone. */
.fhero-plan-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 680px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  background: var(--surface-tint);
}
.fhero-plan-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.fhero-plan-note p { font-size: 14.5px; color: var(--ink); line-height: 1.6; margin: 0; }
.fhero-plan-note a { color: var(--brand-dark); font-weight: 700; }
.fhero-plan-note-premium { border-left-color: #C97A1F; background: #FFF8EF; }
.fhero-plan-note-premium svg { color: #C97A1F; }

/* Sub-feature card grid — for a step that opens onto its own hub of
   several screens (e.g. Accounting's Balance Sheet/Cash Flow/Tax
   Summary/Year-end Close). Distinct from .tip-card: each one names and
   explains a whole screen, not a one-line usage tip, so it earns icon +
   title + description instead of a bullet. */
.subfeature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 28px 0 0;
}
.subfeature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.subfeature-card .ficon { flex-shrink: 0; }
.subfeature-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.subfeature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
@media (max-width: 640px) {
  .subfeature-grid { grid-template-columns: 1fr; }
}

/* ---------- tutorial steps ---------- */
.tutorial { max-width: 1180px; margin: 64px auto 0; padding: 0 24px; }
.tutorial-head { margin-bottom: 40px; }
.tutorial-head h2 { font-size: 26px; font-weight: 800; }
.tstep {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.tstep:first-of-type { border-top: none; padding-top: 0; }
.tstep.reverse { grid-template-columns: 1.05fr 0.95fr; }
.tstep.reverse .tstep-media { order: 2; }
.tstep.reverse .tstep-text { order: 1; }
.tstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.tstep-text h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.tstep-text p { font-size: 15.5px; color: var(--muted); max-width: 460px; }
.tstep-text ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.tstep-text li { margin-bottom: 6px; }

.tstep-media { display: flex; justify-content: center; }
.phone-shot {
  position: relative;
  width: 240px;
  aspect-ratio: 402 / 874;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface-tint);
  border: 8px solid var(--ink);
  box-shadow: var(--shadow);
}
.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-shot::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 50%; height: 18px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-shot.img-missing img { display: none; }
.phone-shot.img-missing::after {
  content: 'Screenshot ထည့်ရန် စောင့်နေသည်';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--surface-tint), var(--surface-tint) 10px, var(--surface) 10px, var(--surface) 20px);
}
.tstep-media-wide .phone-shot { width: 300px; }

/* ---------- tips ---------- */
.tips-section { max-width: 1180px; margin: 80px auto 0; padding: 0 24px; }
.tips-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tip-card {
  display: flex;
  gap: 14px;
  background: var(--surface-tint);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.tip-card .tip-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 8px;
}
.tip-card p { font-size: 14.5px; color: var(--ink); line-height: 1.6; }
.tip-card strong { color: var(--brand-dark); }

/* ---------- related + cta ---------- */
.related-section { max-width: 1180px; margin: 80px auto 0; padding: 0 24px; }
.related-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: var(--muted); }
.related-links { display: flex; gap: 12px; flex-wrap: wrap; }
.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--surface);
}
.related-links a:hover { border-color: var(--brand); background: var(--brand-tint); }

.fcta {
  max-width: 1180px;
  margin: 96px auto 0;
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  text-align: center;
}
.fcta h2 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.fcta p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }

@media (max-width: 900px) {
  .tstep, .tstep.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tstep.reverse .tstep-media, .tstep.reverse .tstep-text { order: initial; }
  .tips-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fhero-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fcta { padding: 40px 24px; margin-top: 64px; }
}
