/* ==========================================================================
   GoMart case study — summary-v2 theme + web components

   Visual system follows Raisin / OLX:
   - No decorative background images behind content. Content sits on paper,
     paper-dim, or a single flat client tint.
   - Layout is built from the shared .period-split primitives (50/50, 60/40).
   - Section rhythm comes from .section / .period / .period__head / .period__story.
   ========================================================================== */

html.summary-v2.gomart-theme,
body.summary-v2.gomart-theme {
  --client: #ffdcdc;
  --client-ink: #262626;
  --client-soft: #fff6f6;
  --client-dim: #f0a8ad;
  --gomart-green: #0b5d34;
}

/* --------------------------------------------------------------------------
   Header — title sticks left (N26 parity)
   -------------------------------------------------------------------------- */
body.summary-v2.gomart-theme.has-shell .shell-bar {
  gap: var(--sp-sm);
  min-width: 0;
}
body.gomart-theme .deck-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  padding-inline: 0;
  margin-right: auto;
}
@media (max-width: 520px) {
  body.gomart-theme .deck-title {
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   Hero + My role (N26 / OLX intro pattern)
   -------------------------------------------------------------------------- */
.gomart-hero .hero-split--stage {
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: var(--sp-xl);
  align-items: center;
}
.gomart-hero .hero__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.gomart-hero-visual {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.gomart-hero-img {
  width: 80%;
  max-width: 80%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}
.gomart-figure-plain {
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.gomart-figure-plain img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
  background: transparent;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}
.gomart-role-figure {
  --gomart-role-size: calc(22rem / 1.6 * 1.1 * 1.15);
  width: min(100%, var(--gomart-role-size));
  max-width: var(--gomart-role-size);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  justify-self: center;
  align-self: center;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.gomart-role-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}
@media (min-width: 1024px) {
  .gomart-role-figure {
    width: min(calc(100% / 1.6 * 1.1 * 1.15), var(--gomart-role-size));
    max-width: min(calc(100% / 1.6 * 1.1 * 1.15), var(--gomart-role-size));
    justify-self: center;
    margin-inline: auto;
  }
}
#context-role .section-head {
  margin-bottom: var(--sp-sm);
  max-width: none;
}
#context-role .gomart-crumb {
  margin: 0 0 var(--sp-md);
}
#context-role .gomart-role-split {
  margin-top: 0;
  gap: var(--sp-xl);
  align-items: center;
}
@media (min-width: 1024px) {
  #context-role .gomart-role-split {
    gap: var(--sp-xl) var(--sp-2xl);
    align-items: center;
  }
}
#context-role .gomart-role-copy .beat__text {
  max-width: none;
  margin-top: var(--sp-md);
}

/* Case study intro — cover, impact, shoutouts, product video */
.gomart-case-intro {
  padding-bottom: 0;
}
.gomart-case-intro .rule--thick {
  margin-top: var(--sp-2xl);
  margin-bottom: 0;
}
.gomart-case-split {
  display: grid;
  gap: var(--sp-xl);
  align-items: end;
}
@media (min-width: 1024px) {
  .gomart-case-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
.gomart-case-thesis {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--sp-sm);
}
.gomart-case-intro__copy .beat__text + .beat__text {
  margin-top: var(--sp-sm);
}
.gomart-case-intro__copy .gomart-status-pill {
  margin-top: var(--sp-md);
}
.gomart-shoutouts {
  margin-top: var(--sp-lg);
}
.gomart-shoutouts__label {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--sp-sm);
}
.gomart-shoutouts .beat__text {
  margin: 0;
}
.gomart-case-intro__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(16rem, 32vw, 24rem);
}
.gomart-case-intro__media .gomart-cover-stage {
  width: 100%;
  max-width: min(100%, 19.375rem);
}
.phone-mock.gomart-cover-phone {
  margin: 0;
  margin-inline: 0;
  pointer-events: none;
}
.gomart-cover-stage {
  position: relative;
  width: 100%;
  max-width: 28rem;
  min-height: clamp(16rem, 30vw, 22rem);
  margin-inline: auto;
}
.gomart-cover-phone {
  position: absolute;
  left: 10%;
  bottom: 0;
  width: min(52%, 14.5rem);
  max-width: 14.5rem;
  margin: 0;
  z-index: 2;
}
.gomart-cover-char {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  max-width: 11.5rem;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  z-index: 1;
  pointer-events: none;
}

/* Journey nav — pill style */
body.summary-v2.gomart-theme.has-shell .gomart-journey-nav {
  gap: 0.45rem;
  padding-block: 0.75rem;
  justify-content: center;
  overflow-x: auto;
}
body.summary-v2.gomart-theme.has-shell .gomart-journey-nav .journey-nav__sep {
  display: none;
}
body.summary-v2.gomart-theme.has-shell .gomart-journey-nav .journey-nav__btn {
  flex: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.5rem 1rem;
  min-height: 2.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
body.summary-v2.gomart-theme.has-shell .gomart-journey-nav .journey-nav__btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
@media (max-width: 900px) {
  .gomart-journey-nav { justify-content: flex-start; }
  .gomart-hero .hero-split--stage { grid-template-columns: 1fr; }
  .gomart-case-split { grid-template-columns: 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   Flat tint band (replaces every pattern / photo background band)
   -------------------------------------------------------------------------- */

/* components.css .chip has no display, so <p class="chip"> stretches full
   width. Pin every chip to its content. */
body.gomart-theme .chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

/* components.css .beat is a 2-col grid; GoMart beats own their own splits. */
body.gomart-theme .beat,
body.gomart-theme .gomart-beat {
  display: block;
  grid-template-columns: none;
  border-top: none;
  padding-top: 0;
  min-width: 0;
}

/* Divide consecutive beats with a hairline so the vertical space between them
   reads as structure rather than a gap. */
body.gomart-theme .period__story {
  gap: var(--sp-xl);
}
body.gomart-theme .period__story > .beat + .beat {
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--line);
}

/* Where one column is inherently taller (a tall figure, a card stack), centre
   the pair so slack distributes above and below instead of pooling at the
   bottom of the short column. */
.gomart-split--center { align-items: center; }
@media (max-width: 900px) {
  .gomart-split--center { align-items: start; }
}

/* Keep measure honest in single-column beats, unbounded inside splits. */
body.gomart-theme .gomart-beat > .beat__text,
body.gomart-theme .gomart-beat > .lede {
  max-width: 68ch;
}
body.gomart-theme .period-split__main .beat__text,
body.gomart-theme .period-split__main .lede {
  max-width: none;
}

/* Breadcrumb */
.crumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.crumb .sep { color: var(--line-strong); }
.crumb .now {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.gomart-crumb { margin: var(--sp-sm) 0 var(--sp-md); }

/* Word kicker in place of a numeral for the unnumbered chapters. */
.period__kicker {
  margin: 0;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Flat tint band (replaces every pattern / photo background band)
   -------------------------------------------------------------------------- */
.gomart-tint {
  background: var(--client-soft);
}
.gomart-tint--client {
  background: var(--client);
}

.gomart-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: var(--sp-lg);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Figures
   -------------------------------------------------------------------------- */
.gomart-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border);
  background: var(--paper);
}
.gomart-figure img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.gomart-figure--contain img {
  max-height: min(60vh, 34rem);
  object-fit: contain;
  background: var(--paper-dim);
}
/* Visible board exports — subtle frame on web page only */
.gomart-figure--visible {
  padding: var(--sp-sm);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.gomart-figure--visible img {
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--line);
  background: var(--paper);
}
/* Photographic figures: crop to landscape so a portrait asset doesn't tower
   over a short copy column. Both intro sections share this treatment so they
   mirror each other. */
.gomart-figure--crop img {
  aspect-ratio: 4 / 3;
  max-height: min(46vh, 25rem);
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   Cards — one shared shell for every panel on the page
   -------------------------------------------------------------------------- */
.gomart-card {
  padding: var(--sp-md) var(--sp-lg);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.gomart-card--key {
  border-color: var(--client-dim);
  background: var(--client-soft);
}
.gomart-card__label {
  margin: 0 0 var(--sp-xs);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.gomart-card__title {
  margin: 0 0 var(--sp-xs);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.gomart-card__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}
.gomart-card__text + .gomart-card__text { margin-top: var(--sp-xs); }
.gomart-card__note {
  margin: var(--sp-sm) 0 0;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Vertical card stacks (session plan, commitments, findings) */
.gomart-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.gomart-stack--loose { gap: var(--sp-md); }

/* Equal-column card rows */
.gomart-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}
@media (max-width: 900px) {
  .gomart-grid-3 { grid-template-columns: 1fr; }
}

/* Pull-quote card — replaces the pattern-filled quote panel */
.gomart-quote {
  margin: 0;
  padding: var(--sp-lg);
  border: var(--border);
  border-left: 3px solid var(--client-dim);
  border-radius: var(--radius-md);
  background: var(--client-soft);
}
.gomart-quote p {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
}
.gomart-quote footer {
  margin: var(--sp-sm) 0 0;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--muted);
}

/* Arrow list — shared by callouts and findings */
.gomart-arrows {
  list-style: none;
  margin: var(--sp-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.gomart-arrows li {
  display: flex;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.gomart-arrows li::before {
  content: "→";
  flex: none;
  font-weight: 700;
  color: var(--accent-deep, var(--ink));
}

/* --------------------------------------------------------------------------
   Metric tiles + business bet
   -------------------------------------------------------------------------- */
.gomart-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-sm);
}
@media (max-width: 520px) {
  .gomart-metric-grid { grid-template-columns: 1fr; }
}
.gomart-metric-tile {
  padding: var(--sp-md);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
}
.gomart-metric-tile__label {
  margin: 0 0 var(--sp-xs);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.gomart-metric-tile__value {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.gomart-metric-tile__note {
  margin: var(--sp-xs) 0 0;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--muted);
}
.gomart-metric-hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  border: 2px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: var(--radius-md);
  background: var(--paper);
  margin-top: var(--sp-md);
}
.gomart-metric-hero .gomart-metric-tile__value {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
/* Leading metric above a tile grid — no top gap, tighter join. */
.gomart-metric-hero--lead {
  margin-top: 0;
  margin-bottom: var(--sp-sm);
  border-color: var(--ink);
  background: var(--client-soft);
}
.gomart-metric-hero--lead .gomart-metric-tile__value {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}
.gomart-footnote {
  margin-top: var(--sp-lg);
  font-size: var(--fs-2xs);
  line-height: 1.55;
  color: var(--muted);
  max-width: 80ch;
}
.gomart-footnote--tight {
  margin-top: var(--sp-xs);
}
#context-business .period-split__main .beat__text:has(+ .gomart-footnote) {
  margin-bottom: 0;
}

/* Who we design for — header + persona/context grid + brand key */
.gomart-brand-beat__head {
  max-width: 52rem;
  margin-bottom: var(--sp-lg);
}
.gomart-brand-beat__head .beat__text {
  max-width: 62ch;
}
.gomart-brand-grid {
  display: grid;
  gap: var(--sp-lg);
  align-items: start;
}
@media (min-width: 1024px) {
  .gomart-brand-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--sp-xl);
  }
}
.gomart-brand-grid__persona {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  min-width: 0;
}
.gomart-brand-grid__persona .gomart-persona-tabs {
  margin: 0;
}
.gomart-brand-grid__context {
  min-width: 0;
}
.gomart-brand-context__synthesis {
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--line);
}
.gomart-brand-context__synthesis .gomart-card__label {
  margin-bottom: var(--sp-sm);
}
.gomart-brand-key-split {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--line);
}
.gomart-studio-sessions {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--line);
}
.gomart-studio-sessions .beat__title {
  margin-bottom: var(--sp-md);
}
.gomart-studio-session-single {
  max-width: 36rem;
}
body.gomart-theme .gomart-media-plain {
  margin-top: var(--sp-lg);
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  cursor: default;
}
.gomart-shipped-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.gomart-shipped-metrics > .gomart-card__label {
  margin-bottom: var(--sp-xs);
}
.gomart-shipped-metric {
  padding: var(--sp-md) var(--sp-lg);
}
.gomart-shipped-metric .gomart-metric-tile__value {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.gomart-solution-block__label {
  margin: 0 0 var(--sp-md);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--line);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
#solution-space .period__story > .gomart-solution-block__label:first-of-type {
  padding-top: 0;
  border-top: none;
}

/* --------------------------------------------------------------------------
   Personas + occasions
   -------------------------------------------------------------------------- */
.gomart-persona-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin: var(--sp-md) 0;
}
.gomart-persona-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  font-family: inherit;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}
.gomart-persona-tab[aria-selected="true"] {
  box-shadow: 0 0 0 2px var(--ink) inset;
  color: var(--ink);
}
.gomart-persona-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 218, 8, 0.55);
}
.gomart-persona-panel {
  padding: var(--sp-md) var(--sp-lg);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  min-height: 16.5rem;
}
.gomart-persona-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}
.gomart-persona-panel__name { margin: 0; font-size: var(--fs-sm); }
.gomart-persona-panel__role { margin: 0.15rem 0 0; font-size: var(--fs-2xs); color: var(--muted); }
.gomart-persona-panel__analogy {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  max-width: 12rem;
  line-height: 1.35;
}
.gomart-persona-panel__quote {
  margin: 0 0 var(--sp-sm);
  padding-left: var(--sp-sm);
  border-left: 2px solid var(--line);
  font-size: var(--fs-xs);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.gomart-persona-panel__insight,
.gomart-persona-panel__benefit {
  margin: 0 0 var(--sp-xs);
  font-size: var(--fs-2xs);
  line-height: 1.5;
  color: var(--muted);
}
.gomart-persona-panel__prop { margin: 0 0 var(--sp-xs); font-size: var(--fs-xs); }

.gomart-occasion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: var(--sp-xs);
}
.gomart-occasion-grid__cell {
  padding: 0.7rem;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-sm);
}
.gomart-occasion-grid__cell--focus {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 70%, transparent);
}
.gomart-occasion-grid__note {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Research board — segmented toggle + magnifier stage
   -------------------------------------------------------------------------- */
.research-board-wrap { width: 100%; }
.research-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}
.research-board-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.gomart-seg {
  display: inline-flex;
  padding: 4px;
  background: var(--paper-dim);
  border: var(--border);
  border-radius: var(--radius-pill);
  gap: 2px;
}
.gomart-seg-btn {
  font-size: var(--fs-2xs);
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.gomart-seg-btn:hover { color: var(--ink); }
.gomart-seg-btn[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.gomart-mag-hint {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--muted);
}
.proto-mag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--muted);
  font-family: inherit;
}
.proto-mag-switch {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.5rem;
  border-radius: var(--radius-pill);
  background: #e9e9ea;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: background 0.22s ease;
}
.proto-mag-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.proto-mag-toggle[aria-pressed="true"] .proto-mag-switch { background: #34c759; }
.proto-mag-toggle[aria-pressed="true"] .proto-mag-switch__thumb { transform: translateX(1rem); }
.proto-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: visible;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.proto-stage.is-magnifying { z-index: 40; cursor: none; }
.proto-stage:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 218, 8, 0.22);
}
.proto-stage__inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px);
}
.proto-stage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
}
.proto-lens {
  position: absolute;
  z-index: 50;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  border: 5px solid var(--paper);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  background-color: var(--paper);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}
.proto-stage.is-magnifying .proto-lens {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
@media (hover: none), (pointer: coarse) {
  .proto-lens { display: none !important; }
  .proto-mag-toggle { display: none; }
  .gomart-mag-hint { display: none; }
}

/* --------------------------------------------------------------------------
   Hypothesis cards (three phased releases)
   -------------------------------------------------------------------------- */
.hypo-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  width: 100%;
}
.hypo-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hypo-card.is-key {
  border-color: var(--client-dim);
  background: var(--client-soft);
}
.hypo-card__media {
  flex: 0 0 auto;
  background: var(--paper-dim);
  border-bottom: var(--border);
  padding: var(--sp-md);
}
.hypo-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(46vh, 26rem);
  object-fit: contain;
  cursor: zoom-in;
}
.hypo-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-xs);
  padding: var(--sp-md) var(--sp-lg);
}
.hypo-card__eyebrow {
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hypo-card__title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.hypo-card__p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.hypo-card__note {
  margin: var(--sp-xs) 0 0;
  padding-top: var(--sp-xs);
  border-top: var(--border);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--ink);
}
@media (min-width: 1024px) {
  .hypo-card { flex-direction: row; align-items: stretch; }
  .hypo-card__media {
    flex: 0 0 50%;
    max-width: 50%;
    border-bottom: 0;
    border-right: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Nav carousel
   -------------------------------------------------------------------------- */
.gomart-concept-split {
  margin-top: var(--sp-lg);
}
.nav-carousel { width: 100%; }
.nav-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--border);
  background: var(--paper-dim);
}
.nav-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
}
.nav-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 34rem);
  object-fit: contain;
  cursor: zoom-in;
}
.nav-carousel__caption {
  margin-top: var(--sp-sm);
  min-height: 2.5rem;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-xs);
}
.nav-carousel__dots { display: flex; align-items: center; gap: 0.4rem; }
.nav-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-carousel__dot[aria-current="true"] {
  background: var(--accent);
  width: 26px;
}
.nav-carousel__meta {
  font-size: var(--fs-2xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.nav-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-carousel__btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Wireframe → visual design compare
   -------------------------------------------------------------------------- */
.gomart-compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--border);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  width: 100%;
  aspect-ratio: 2275 / 1265;
  max-height: min(64vh, 40rem);
  background: var(--paper);
}
.gomart-compare__layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding-top: 2.75rem;
}
.gomart-compare .after-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  background: var(--paper);
}
.gomart-compare .after-layer .gomart-compare__layer {
  position: absolute;
  inset: 0;
}
.gomart-compare__media {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem 0.75rem;
}
.gomart-compare__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.gomart-compare .handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(38, 38, 38, 0.28);
  pointer-events: none;
}
.gomart-compare .handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -100vh;
  height: 200vh;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  z-index: -1;
}
.gomart-compare__tag {
  position: absolute;
  top: 12px;
  z-index: 4;
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  pointer-events: none;
}
.gomart-compare__tag--before { left: 12px; }
.gomart-compare__tag--after { right: 12px; }
.gomart-compare-caption {
  text-align: center;
  margin-top: var(--sp-sm);
}

/* --------------------------------------------------------------------------
   Phone mock
   -------------------------------------------------------------------------- */
.phone-mock {
  position: relative;
  width: 100%;
  max-width: 285px;
  margin-inline: auto;
  padding: 5px;
  background: #1c1c1e;
  border-radius: 2rem;
  box-shadow: 0 16px 38px -22px rgba(0, 0, 0, 0.45);
}
.phone-mock video,
.phone-mock img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.6rem;
  background: #000;
}

/* --------------------------------------------------------------------------
   Client-tinted chip
   -------------------------------------------------------------------------- */
body.summary-v2.gomart-theme .tag--client,
.gomart-chip {
  background: var(--client);
  color: var(--client-ink);
  border-color: var(--client-dim);
}

/* --------------------------------------------------------------------------
   Deck header / shell
   -------------------------------------------------------------------------- */
:root { --deck-top: 3.5rem; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.nav-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.nav-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 218, 8, 0.55);
}
.nav-btn--present {
  width: auto;
  padding: 0 0.85rem;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Gate
   -------------------------------------------------------------------------- */
#gomartGate { display: none; }
html.gomart-locked { overflow: hidden; }
html.gomart-locked body > *:not(#gomartGate) { display: none !important; }
html.gomart-locked #gomartGate { display: flex; }
#gomartGate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: var(--paper);
}
