/* ============================================================================
   home-outline.css: optional Outline view for the landing page features,
   layered on top of home.css and home-v2.css.

   html.hm-outline turns every feature into a collapsible row (number, title,
   chevron) that opens in place. Without the class the page is the regular
   Full tour. Driven by js/landingOutline.js.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   VIEW SWITCH BAR (above Category 01)
   ---------------------------------------------------------------------------- */
.hm-view-bar {
  padding: clamp(26px, 3.2vw, 38px) 0;
  border-top: 1px solid var(--hm-line-soft);
  background: var(--hm-bg);
  scroll-margin-top: 124px;
}
.hm-view-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.hm-view-bar-text {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--hm-ink-soft);
}
.hm-view-bar-text strong {
  font-weight: 700;
  color: var(--hm-ink);
}
.hm-view-bar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hm-view-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: var(--hm-surface);
  box-shadow: var(--hm-shadow-sm);
}
.hm-view-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hm-ink-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.hm-view-option svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.hm-view-option:hover { color: var(--hm-ink); }
.hm-view-option[aria-pressed="true"] {
  color: #ffffff;
  background: var(--hm-ink);
}
.hm-view-expand {
  padding: 6px 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hm-brand-dark);
  cursor: pointer;
}
.hm-view-expand:hover { text-decoration: underline; }
.hm-view-expand[hidden] { display: none; }

/* The title button stays visually inert in the Full tour. */
.hm-outline-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  color: inherit;
  cursor: default;
}

/* ----------------------------------------------------------------------------
   OUTLINE: compact category headers
   ---------------------------------------------------------------------------- */
.hm-outline .hm-cat:not(#pricing) { padding-bottom: clamp(28px, 4vw, 52px); }
.hm-outline .hm-cat:not(#pricing) .hm-cat-band {
  padding-block: clamp(28px, 3.4vw, 42px);
  margin-bottom: clamp(6px, 1vw, 12px);
}
.hm-outline .hm-cat:not(#pricing) .hm-cat-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.hm-outline .hm-cat:not(#pricing) .hm-cat-lead { display: none; }
.hm-outline .hm-cat:not(#pricing) .hm-cat-media { margin-top: clamp(18px, 2.6vw, 32px); }

/* ----------------------------------------------------------------------------
   OUTLINE: every feature (main and supporting) becomes one row
   ---------------------------------------------------------------------------- */
.hm-outline .hm-feats,
.hm-outline .hm-feats--bento {
  display: block;
  margin-top: 0;
}
.hm-outline .hm-feat .hm-feat-head { display: contents; }
.hm-outline .hm-feat,
.hm-outline .hm-feats--bento > .hm-feat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "index title"
    ".     media"
    ".     caption";
  column-gap: 16px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--hm-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.hm-outline .hm-feat .hm-feat-index {
  grid-area: index;
  display: inline-flex;
  min-width: 38px;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 8px;
  box-shadow: none;
  vertical-align: baseline;
  transform: none;
  cursor: pointer;
}
.hm-outline .hm-feat .hm-feat-title {
  grid-area: title;
  display: block;
  margin: 0;
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  transition: color 0.18s ease;
}
.hm-outline .hm-outline-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  cursor: pointer;
}
.hm-outline .hm-outline-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2344516a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E")
    center / 14px no-repeat,
    var(--hm-bg-alt);
  transition: transform 0.2s ease, background-color 0.18s ease;
}
.hm-outline .hm-outline-trigger:focus-visible {
  outline: 2px solid var(--hm-brand);
  outline-offset: 4px;
  border-radius: 6px;
}
.hm-outline .hm-feat:hover .hm-feat-title,
.hm-outline .hm-feat.is-open .hm-feat-title { color: var(--hm-brand-dark); }
.hm-outline .hm-feat.is-open .hm-outline-trigger::after {
  background-color: var(--hm-brand-wash);
  transform: rotate(180deg);
}

/* Expanded body: media, then caption. */
.hm-outline .hm-feat > .hm-feat-media {
  grid-area: media;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
}
.hm-outline .hm-feat > .hm-feat-caption {
  grid-area: caption;
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.55;
  text-align: left;
}
/* Every visual fills the full media column; anything taller than 70% of the
   window is scaled down and centered on a neutral backdrop. */
.hm-outline .hm-feat .hm-feat-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: var(--hm-radius-md);
  background: var(--hm-bg-alt);
  box-shadow: var(--hm-shadow-md);
}
.hm-outline .hm-feat .hm-feat-frame img,
.hm-outline .hm-feat .hm-feat-frame video,
.hm-outline .hm-feat .hm-feat-frame svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: 70vh;
  object-fit: contain;
  object-position: center;
}

/* Collapsed bodies keep a box under hidden="until-found", so drop spacing. */
.hm-outline .hm-feat:not(.is-open) > .hm-feat-media,
.hm-outline .hm-feat:not(.is-open) > .hm-feat-caption {
  margin: 0;
  padding: 0;
}
/* Before the script runs, collapse bodies so phones never flash the long page. */
html.hm-outline:not(.hm-outline-ready) .hm-feat > .hm-feat-media,
html.hm-outline:not(.hm-outline-ready) .hm-feat > .hm-feat-caption { display: none; }

/* Wider screens: open features show a large visual beside a narrower
   caption column, identical for every feature. */
@media (min-width: 900px) {
  .hm-outline .hm-feat.is-open,
  .hm-outline .hm-feats--bento > .hm-feat.is-open {
    grid-template-columns: auto minmax(0, 2.2fr) minmax(240px, 1fr);
    grid-template-areas:
      "index title title"
      ".     media caption";
  }
  .hm-outline .hm-feat.is-open > .hm-feat-media { margin-bottom: 26px; }
  .hm-outline .hm-feat.is-open > .hm-feat-caption {
    align-self: center;
    margin: 0 0 26px;
    padding-left: clamp(8px, 1.6vw, 24px);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  }
}

@media (max-width: 640px) {
  .hm-view-bar-inner { justify-content: center; text-align: center; }
  .hm-view-bar-controls { flex-wrap: wrap; justify-content: center; }
  .hm-outline .hm-feat,
  .hm-outline .hm-feats--bento > .hm-feat {
    grid-template-areas:
      "index   title"
      "media   media"
      "caption caption";
    column-gap: 12px;
  }
  .hm-outline .hm-feat .hm-feat-index { min-width: 34px; height: 26px; font-size: 0.78rem; }
  .hm-outline .hm-feat .hm-feat-title { font-size: 1.02rem; }
  .hm-outline .hm-outline-trigger { padding: 15px 0; gap: 12px; }
  .hm-outline .hm-outline-trigger::after { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-outline .hm-outline-trigger::after { transition: none; }
}
