/* Five app tabs, shown in full. No carousel or hidden tour panels. */
.how-page {
  --how-surface: #0b0b0c;
  --how-edge: var(--luxury-light);
  --how-text: #f3f5f8;
  --how-muted: #a2a3ab;
  background: #050505;
  color: var(--how-text);
}
.how-experience {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(48px, 6vw, 80px);
  background: radial-gradient(ellipse at 72% 0, #dbeaff06, transparent 24%), #050505;
}
.how-hero { padding-block: clamp(52px, 6.5vw, 94px) 38px; }
.how-hero h1 {
  max-width: 1100px;
  margin-bottom: 22px;
  padding-right: .12em;
  font-size: calc(var(--design-hero-heading-size) * var(--design-heading-scale, 1));
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.how-introduction { margin: 0; color: var(--how-muted); font-size: 1.05rem; line-height: 1.75; }
.how-tour-nav { margin-top: 30px; }
.how-tour-nav ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.how-tour-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #e5f0ff25;
  border-radius: calc(9px * var(--design-corner-scale, 1));
  background: #ffffff03;
  color: #c6ccd5;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.4;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.how-tour-nav a:is(:hover, :focus-visible) {
  border-color: var(--luxury-edge);
  color: var(--luxury-light);
  box-shadow: 0 0 22px var(--luxury-halo), 0 0 12px var(--luxury-halo) inset;
}
.how-tour-nav a:focus-visible { outline: 2px solid var(--how-edge); outline-offset: 4px; }
.how-example-note { margin: 22px 0 0; color: #878e99; font-size: .7rem; line-height: 1.6; }
.how-tour { display: grid; gap: 26px; }
.how-tour-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  min-width: 0;
  padding: 44px clamp(32px, 6vw, 82px);
  scroll-margin-top: 110px;
  border: 1px solid #e5f0ff1c;
  border-radius: calc(20px * var(--design-corner-scale, 1));
  background: linear-gradient(135deg, #ffffff03, transparent 60%), var(--how-surface);
  box-shadow: 0 1px 0 #ffffff05 inset, 0 12px 36px #0003;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.how-tour-row::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 16% 0, var(--luxury-halo), transparent 68%);
  opacity: 0;
  pointer-events: none;
  content: "";
  transition: opacity 220ms ease;
}
.how-tour-row:is(:hover, :focus-visible, :focus-within) {
  border-color: var(--luxury-edge);
  box-shadow: 0 0 0 1px #e5efff10, 0 22px 56px #0008, 0 0 48px var(--luxury-halo), 0 1px 0 #ffffff20 inset;
}
.how-tour-row:is(:hover, :focus-visible, :focus-within)::before { opacity: 1; }
.how-tour-row:focus-visible { outline: 2px solid var(--how-edge); outline-offset: 5px; }
.how-tour-copy { min-width: 0; }
.how-tour-row:nth-child(even) .how-tour-copy { order: 2; }
.how-tour-number {
  display: block;
  margin-bottom: 24px;
  color: #8994a3;
  font-family: var(--design-number-font, "DirtLore Numbers", monospace);
  font-weight: 400;
  font-style: normal;
  font-kerning: normal;
  font-synthesis: none;
  letter-spacing: var(--tracking-dirtlore-display);
  font-size: .85rem;
}
.how-tour-copy h2 { margin-bottom: 20px; color: var(--how-text); font-size: calc(clamp(2.7rem, 4.4vw, 4rem) * var(--design-heading-scale, 1)); line-height: 1.12; }
.how-tour-copy p { max-width: 30ch; margin: 0; color: var(--how-muted); font-size: 1.02rem; line-height: 1.85; }
.how-tour-screen { position: relative; width: min(100%, 300px); min-width: 0; margin: 0; justify-self: center; }
.how-tour-screen .design-image-frame { margin-inline: auto; border-radius: calc(16px * var(--design-corner-scale, 1)); box-shadow: 0 0 0 1px #e5efff20, 0 20px 50px #0008; }
.how-tour-screen img { display: block; width: 100%; height: auto; object-fit: contain; }
.how-closing { display: flex; justify-content: center; margin-top: 42px; }
.how-closing .button { min-width: 230px; color: #101115; background: #edf2f8; }
.how-page .site-footer { background: #050505; border-top-color: #ffffff14; }

/* Explicit Studio palette/layout choices remain available on this page. */
[data-design-palette] .how-page { --how-text: var(--text); --how-muted: var(--muted); --how-surface: var(--panel); background: var(--ink); }
[data-design-palette] .how-experience, [data-design-palette] .how-page .site-footer { background: var(--ink); }
[data-design-line-height] .how-page p { line-height: var(--design-line-height); }
.how-experience[data-design-background="ink"] { background: var(--ink); }
.how-experience[data-design-background="panel"] { background: var(--panel); }
.how-experience[data-design-background="accent"] { background: color-mix(in srgb, var(--blue) 25%, var(--ink)); }
.how-experience[data-design-layout="stack"] .how-tour-row { grid-template-columns: minmax(0, 1fr); }
.how-experience[data-design-layout="stack"] .how-tour-copy { order: 0; }
.how-experience[data-design-layout="reverse"] .how-tour-row:nth-child(odd) .how-tour-copy { order: 2; }
.how-experience[data-design-layout="reverse"] .how-tour-row:nth-child(even) .how-tour-copy { order: 0; }

@media (max-width: 900px) {
  .how-tour-row { padding: 36px 30px; gap: 34px; }
  .how-tour-copy h2 { font-size: calc(2.7rem * var(--design-heading-scale, 1)); }
  .how-tour-copy p { font-size: .92rem; }
}
@media (max-width: 700px) {
  .how-hero { padding-block: 48px 28px; }
  .how-hero h1 { margin-bottom: 18px; font-size: calc(var(--design-hero-heading-small-size) * var(--design-heading-scale, 1)); line-height: 1.12; }
  .how-introduction { font-size: .95rem; }
  .how-tour-nav { margin-top: 23px; }
  .how-tour-nav ul { gap: 8px; }
  .how-tour-nav a { padding-inline: 15px; font-size: .74rem; }
  .how-example-note { margin-top: 19px; }
  .how-tour { gap: 20px; }
  .how-tour-row { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 0 16px; scroll-margin-top: 90px; }
  .how-tour-copy, .how-experience[data-design-layout] .how-tour-row .how-tour-copy { order: 0; padding-inline: 23px; }
  .how-tour-row:nth-child(even) .how-tour-copy { order: 0; }
  .how-tour-number { margin-bottom: 15px; }
  .how-tour-copy h2 { margin-bottom: 13px; font-size: calc(2.5rem * var(--design-heading-scale, 1)); }
  .how-tour-copy p { max-width: 34ch; font-size: .92rem; line-height: 1.8; }
  .how-tour-screen { width: calc(100% - 28px); max-width: 340px; }
  .how-closing { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .how-tour-nav a, .how-tour-row, .how-tour-row::before { transition: none; }
}
@media (forced-colors: active) {
  .how-tour-row::before { display: none; }
  .how-tour-nav a, .how-tour-row { border-color: CanvasText; }
}
