/* ==================== GUIDE STYLESHEET ====================
   Styles specific to the Guide section (/guide/...), linked via
   templates/layout.js's `extraCss: ["/guide.css"]` on guide pages only.
   Loaded after site.css, so every var(--color-*)/var(--radius-*)/
   var(--text-*)/var(--space-*) reference below resolves through the PWA
   token bridge at the bottom of site.css.

   Ported from parqwish-planner's guide components (GuideSidebar,
   AnnotatedScreen, WorkflowPage/WorkflowStep, TipBox, AppBadge,
   ScreenshotSlot) plus the hand-authored guide/page.tsx, features/sync,
   and features/gps pages — see templates/guide-*.js and
   content/guide/*.html for the markup these rules style.
*/

/* ── PAGE-LEVEL EYEBROW HEADING (reused across every guide page) ── */
.guide-eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: var(--font-bold);
  color: var(--color-gold);
  margin: 0 0 16px;
  border-left: 3px solid var(--color-gold);
  padding-left: 8px;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  flex-wrap: wrap;
}
.guide-breadcrumb a { color: var(--color-text-dim); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--color-gold); }
.guide-breadcrumb-current { color: var(--color-text-muted); }

.scroll-anchor { scroll-margin-top: 24px; }

/* ==================== SIDEBAR LAYOUT ====================
   Two columns within page-wrap (1200px cap, 2rem side padding from
   site.css) — 220px sidebar + flexible content column, same proportions
   as the original SidebarLayout(sidebarWidth=220)/860px content wrapper,
   which fits comfortably inside page-wrap's available width. Below 860px
   viewport the sidebar drops above the content and becomes a horizontally
   scrollable strip — the original's collapsible/hamburger sidebar needed
   client-side React state; this is the closest pure-CSS equivalent, judged
   good enough since the guide's own content stacks single-column anyway.
*/
.guide-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 8px 0 64px;
}

.guide-sidebar {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-bottom: 16px;
}

.guide-nav-section-title {
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: var(--font-bold);
  color: var(--color-text-dim);
  padding: 0 10px;
  margin-bottom: 4px;
}

.guide-nav-list { display: flex; flex-direction: column; gap: 2px; }
.guide-nav-entry { display: flex; flex-direction: column; }

.guide-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.guide-nav-item:hover { color: var(--color-gold); }
.guide-nav-item.is-active {
  font-weight: var(--font-semibold);
  color: var(--color-gold);
  background: color-mix(in srgb, var(--color-gold) 12%, transparent);
}
.guide-nav-icon { font-size: 13px; flex-shrink: 0; width: 16px; text-align: center; }
.guide-nav-label { flex: 1; }

.guide-nav-sublist {
  margin-left: 20px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.guide-nav-subitem {
  display: block;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.guide-nav-subitem:hover { color: var(--color-gold); }
.guide-nav-subitem.is-active {
  font-weight: var(--font-semibold);
  color: var(--color-gold);
  background: color-mix(in srgb, var(--color-gold) 12%, transparent);
}

.guide-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 860px;
}

.guide-page { padding-bottom: 48px; }

@media (max-width: 860px) {
  .guide-layout { flex-direction: column; gap: 16px; }
  .guide-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .guide-nav-section { flex: 0 0 auto; white-space: nowrap; }
  .guide-nav-sublist { display: none; }
  .guide-content { max-width: 100%; }
}

/* ==================== GUIDE LANDING PAGE ==================== */

.guide-hero { margin-bottom: 40px; }
.guide-hero-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.guide-hero-icon { font-size: 36px; }
.guide-hero-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-heading);
  font-family: var(--font-display);
}
.guide-hero-desc {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 560px;
}

.guide-section { margin-bottom: 48px; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.workflow-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  text-decoration: none;
  height: 100%;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.workflow-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-gold) 15%, transparent);
}
.workflow-card-icon { font-size: 28px; }
.workflow-card-title { margin: 0; font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--color-heading); }
.workflow-card-desc { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); flex: 1; }
.workflow-card-steps { font-size: var(--text-xs); font-weight: var(--font-semibold); color: var(--color-gold); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.feature-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  text-decoration: none;
  height: 100%;
  box-sizing: border-box;
  transition: border-color var(--motion-fast);
}
.feature-card:hover { border-color: var(--color-gold); }
.feature-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feature-card-icon { font-size: 20px; }
.feature-card-title { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-heading); }
.feature-card-arrow { font-size: var(--text-2xs); color: var(--color-gold); margin-left: auto; white-space: nowrap; }
.feature-card-desc { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); line-height: var(--leading-normal); }

.guide-callout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  flex-wrap: wrap;
  gap: 12px;
}
.guide-callout-title { font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--color-heading); margin-bottom: 4px; }
.guide-callout-desc { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.guide-callout-cta {
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-gold) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent);
  color: var(--color-gold);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}
.guide-callout-cta:hover { opacity: 0.85; }

/* ==================== WORKFLOW PAGE ==================== */

.workflow-page { max-width: 780px; margin: 0 auto; padding: 0 0 48px; }

.workflow-header { margin-bottom: 32px; }
.workflow-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.workflow-icon { font-size: 32px; }
.workflow-title { margin: 0; font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-heading); font-family: var(--font-display); }
.workflow-tagline { margin: 0 0 16px; font-size: var(--text-base); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }
.workflow-who {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-sunken);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.workflow-who strong { font-weight: var(--font-semibold); color: var(--color-text-primary); }

.workflow-section { margin-bottom: 32px; }

.workflow-needs {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.workflow-needs li { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-normal); }

.workflow-steps { display: flex; flex-direction: column; gap: 16px; }

.workflow-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
}
.workflow-step-header { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.workflow-step-number {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-gold) 20%, transparent);
  border: 2px solid var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: var(--font-bold);
  color: var(--color-gold);
  flex-shrink: 0;
}
.workflow-step-meta { flex: 1; min-width: 0; }
.workflow-step-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.workflow-step-screen { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text-muted); }
.workflow-step-action { margin: 0; font-size: var(--text-base); font-weight: var(--font-medium); color: var(--color-text-primary); line-height: var(--leading-snug); }

.workflow-step-body { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.workflow-step-screenshot { flex-shrink: 0; display: flex; justify-content: center; width: 100%; }
.workflow-step--mobile .workflow-step-screenshot { justify-content: flex-start; width: auto; }
.workflow-step-detail-col { flex: 1; min-width: 200px; }
.workflow-step-detail { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

.workflow-outcome {
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--color-gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent);
  margin-bottom: 40px;
}
.workflow-outcome-label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 1px;
  font-weight: var(--font-bold); color: var(--color-gold); margin-bottom: 6px;
}
.workflow-outcome-text { margin: 0; font-size: var(--text-sm); color: var(--color-text-primary); line-height: var(--leading-relaxed); }

.workflow-pager { display: flex; justify-content: space-between; gap: 12px; }
.workflow-pager-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: border-color var(--motion-fast);
}
.workflow-pager-link:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ==================== APP BADGE ==================== */

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  border: 1px solid transparent;
}
.app-badge--mobile { background: color-mix(in srgb, #E65100 15%, transparent); color: #BF4F00; border-color: color-mix(in srgb, #E65100 40%, transparent); }
.app-badge--pwa    { background: color-mix(in srgb, #1976D2 15%, transparent); color: #1565C0; border-color: color-mix(in srgb, #1976D2 40%, transparent); }
.app-badge--both   { background: color-mix(in srgb, #388E3C 15%, transparent); color: #2E7D32; border-color: color-mix(in srgb, #388E3C 40%, transparent); }

/* ==================== TIP BOX (native <details>) ==================== */

.tip-box {
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent);
  overflow: hidden;
}
.tip-box-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--color-gold) 10%, transparent);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-gold);
  list-style: none;
}
.tip-box-summary::-webkit-details-marker { display: none; }
.tip-box-summary::after {
  content: "▼";
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.15s;
}
.tip-box[open] .tip-box-summary::after { transform: rotate(180deg); }
.tip-box-icon { flex-shrink: 0; }
.tip-box-body {
  padding: 10px 12px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  background: var(--color-surface-sunken);
}

/* ==================== SCREENSHOT SLOT ==================== */

.screenshot-slot { margin: 16px 0; width: 100%; flex-shrink: 0; }
.screenshot-slot--mobile { max-width: 260px; }
.screenshot-slot--desktop { max-width: 520px; }
.screenshot-slot-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-sunken);
}
.screenshot-slot--mobile .screenshot-slot-frame { aspect-ratio: 9 / 19.5; }
.screenshot-slot--desktop .screenshot-slot-frame { aspect-ratio: 16 / 9; }
.screenshot-slot-media { width: 100%; height: 100%; object-fit: contain; display: block; }
.screenshot-slot-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center;
}
.screenshot-slot-placeholder-icon { font-size: 28px; opacity: 0.35; }
.screenshot-slot-placeholder-label { font-size: var(--text-xs); color: var(--color-text-dim); font-weight: var(--font-medium); line-height: var(--leading-snug); }
.screenshot-slot-placeholder-note { font-size: var(--text-2xs); color: var(--color-text-dim); opacity: 0.6; }
.screenshot-slot-caption { margin-top: 6px; font-size: var(--text-2xs); color: var(--color-text-dim); text-align: center; }

/* ==================== ANNOTATED SCREEN (pin + legend) ====================
   Markup/interaction convention required by site.js's delegated click
   listener: a `.annotated-screen` ancestor contains one or more
   `[data-callout="<id>"]` elements (a pin button on the screenshot, and its
   matching legend entry); clicking either toggles `.is-active` on all of
   them and sets `data-active="<id>"` on the ancestor. This stylesheet only
   needs to style the two states (active/inactive) — see site.js for the
   toggle logic itself.
*/

.annotated-screen { display: flex; flex-direction: column; gap: 32px; }
.annotated-screen--stacked { flex-direction: column; }
.annotated-screen--side-by-side { flex-direction: row; align-items: flex-start; gap: 32px; }

.annotated-screenshot {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.annotated-screen--stacked .annotated-screenshot { max-width: 960px; }
.annotated-screen--side-by-side .annotated-screenshot { flex: 0 0 340px; max-width: 340px; }
.annotated-media { width: 100%; height: auto; display: block; }

.annotated-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-bg-deep);
  font-size: 10px;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
}
.annotated-pin.is-active {
  background: var(--color-accent-plan);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.annotated-legend { display: flex; flex-direction: column; gap: 2px; }
.annotated-screen--stacked .annotated-legend { max-width: 960px; }
.annotated-screen--side-by-side .annotated-legend { flex: 1 1 auto; min-width: 0; gap: 4px; }

.annotated-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  transition: all 0.15s ease;
}
.annotated-legend-item.is-active {
  background: color-mix(in srgb, var(--color-gold) 8%, transparent);
  border-color: color-mix(in srgb, var(--color-gold) 25%, transparent);
}
.annotated-legend-badge {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: all 0.15s ease;
}
.annotated-legend-item.is-active .annotated-legend-badge { background: var(--color-gold); color: var(--color-bg-deep); }
.annotated-legend-text { display: flex; flex-direction: column; }
.annotated-legend-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  transition: color 0.15s ease;
}
.annotated-legend-item.is-active .annotated-legend-title { color: var(--color-gold); margin-bottom: 4px; }
.annotated-legend-desc {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-top: 4px;
}
.annotated-legend-item.is-active .annotated-legend-desc { display: block; }

/* Side-by-side ("expanded") legend items always show the description,
   and use slightly smaller type/badge to match the original
   LegendItemExpanded — no click-to-reveal step since there's already
   room beside a narrower portrait screenshot. */
.annotated-legend-item--expanded { gap: 10px; padding: 8px 10px; }
.annotated-legend-item--expanded .annotated-legend-badge { width: 20px; height: 20px; font-size: 9px; margin-top: 2px; }
.annotated-legend-item--expanded .annotated-legend-title { font-size: var(--text-xs); margin-bottom: 2px; }
.annotated-legend-item--expanded .annotated-legend-desc {
  display: block !important;
  font-size: var(--text-xs);
  margin-top: 0;
}

@media (max-width: 700px) {
  .annotated-screen--side-by-side { flex-direction: column; }
  .annotated-screen--side-by-side .annotated-screenshot { max-width: 300px; margin: 0 auto; }
}

/* ==================== [screen] PAGES ==================== */

.screen-page { padding-bottom: 48px; }
.screen-header { margin-bottom: 24px; }
.screen-title { margin: 0 0 8px; font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-heading); font-family: var(--font-display); }
.screen-subtitle { margin: 0; font-size: var(--text-base); color: var(--color-text-secondary); line-height: var(--leading-relaxed); max-width: 640px; }
.screen-hint { margin: 0 0 20px; font-size: var(--text-xs); color: var(--color-text-dim); font-style: italic; }

.screen-edit-section { margin-top: 48px; }

.screen-pager {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--color-border-subtle);
  gap: 12px; flex-wrap: wrap;
}
.screen-pager-link, .screen-pager-all {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}
.screen-pager-link:hover { border-color: var(--color-gold); color: var(--color-gold); }
.screen-pager-all { border: none; padding: 0; font-size: var(--text-xs); color: var(--color-text-dim); font-weight: var(--font-normal); }
.screen-pager-all:hover { color: var(--color-gold); }

/* ==================== FAQ PAGE ==================== */

.faq-page { max-width: 720px; }
.faq-header { margin-bottom: 32px; }
.faq-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.faq-header-icon { font-size: 32px; }
.faq-title { margin: 0; font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-heading); font-family: var(--font-display); }
.faq-subtitle { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

.faq-sections { display: flex; flex-direction: column; gap: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 4px; }

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-caret { font-size: 10px; color: var(--color-text-dim); flex-shrink: 0; transition: transform var(--motion-fast); }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-answer {
  padding: 0 16px 16px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 12px;
}

/* ==================== FEATURE PAGES (sync / gps) ==================== */

.feature-page { padding-bottom: 48px; }
.feature-title { margin: 0 0 12px; font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-heading); font-family: var(--font-display); }
.feature-intro { margin: 0 0 28px; font-size: var(--text-base); color: var(--color-text-secondary); line-height: var(--leading-relaxed); max-width: 640px; }
.feature-intro strong { color: var(--color-text-primary); }

.feature-callout {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-gold) 35%, transparent);
  background: color-mix(in srgb, var(--color-gold) 8%, transparent);
  margin-bottom: 8px;
}
.feature-callout--play {
  margin-top: 12px;
  border-color: color-mix(in srgb, var(--color-accent-play) 35%, transparent);
  background: color-mix(in srgb, var(--color-accent-play) 8%, transparent);
}
/* Icon variant (the GPS page's VIP callout): icon + body sit side by side
   instead of the default title-above-body stack. */
.feature-callout--icon {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-callout--vip { margin-bottom: 32px; }
.feature-callout-icon { font-size: 20px; flex-shrink: 0; }
.feature-callout-title { margin: 0 0 10px; font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-gold); }
.feature-callout-title--play { color: var(--color-accent-play); }
.feature-callout-body { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }
.feature-callout-body strong { color: var(--color-text-primary); }
.feature-callout-strong-gold { color: var(--color-gold); }
.feature-callout-link { color: var(--color-accent-play); text-decoration: underline; }

.feature-stat-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.feature-stat-card {
  flex: 1 1 160px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  text-align: center;
}
.feature-stat-icon { font-size: 28px; margin-bottom: 8px; }
.feature-stat-label { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text-primary); margin-bottom: 4px; }
.feature-stat-detail { font-size: var(--text-xs); color: var(--color-text-secondary); }

.feature-section-header { margin: 36px 0 16px; }
.feature-section-header--tight { margin: 36px 0 16px; }
.feature-section-header h2 {
  margin: 0 0 6px;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-section-header p { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }

.feature-steps { display: flex; flex-direction: column; gap: 12px; }
.feature-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
}
.feature-step-header { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.feature-step-number {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-gold) 20%, transparent);
  border: 2px solid var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: var(--font-bold);
  color: var(--color-gold);
  flex-shrink: 0;
}
.feature-step-meta { flex: 1; min-width: 0; }
.feature-step-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.feature-step-screen { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text-muted); }
.feature-step-action { margin: 0; font-size: var(--text-base); font-weight: var(--font-medium); color: var(--color-text-primary); line-height: var(--leading-snug); }
.feature-step-detail-wrap { padding-left: 48px; }
.feature-step-detail { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }
.feature-step-detail a { color: var(--color-gold); }

.troubleshoot-list { display: flex; flex-direction: column; gap: 10px; }
.troubleshoot-item {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-sunken);
}
.troubleshoot-q { margin: 0 0 6px; font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text-primary); }
.troubleshoot-a { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

.feature-tips-box {
  margin: 36px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-sunken);
}
.feature-tips-title { margin: 0 0 14px; font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--color-text-primary); }
.feature-tips-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.feature-tips-list li { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 600px) {
  .workflow-step-body { flex-direction: column; }
  .feature-step-detail-wrap { padding-left: 0; }
  .annotated-screen--side-by-side { gap: 20px; }
}
