/* guide.html — page layout on DS v2 */

/* Hero */
.gx-hero__kicker { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.gx-hero .ds-display { margin-top: 18px; }
.gx-hero__visual { display: grid; place-items: center; min-height: 380px; }
.gx-plan { width: min(320px, 88%); rotate: 2deg; transition: rotate var(--dur-slow) var(--ease-out); }
.gx-plan:hover { rotate: 0deg; }
.gx-plan .ds-ledger__amount { font-size: .8rem; }
.gx-hero__pict { position: absolute; left: 0; top: -12px; --pict: 96px; }
@media (max-width: 960px) { .gx-hero__visual { min-height: 0; justify-items: start; } .gx-hero__pict { left: auto; top: auto; right: 0; bottom: -28px; --pict: 80px; } }

/* 01 Story */
.gx-story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.gx-story__steps { grid-column: 1 / span 5; padding-left: 36px; border-left: 2px solid var(--color-border); }
.gx-story__steps[data-story-line]::after { left: -2px; }
.gx-step { position: relative; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 0; }
.gx-step::before { content: ""; position: absolute; left: -44px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--color-border); transition: background-color var(--dur-base), box-shadow var(--dur-base); z-index: 1; }
.gx-step.is-on::before { background: var(--color-cta); box-shadow: 0 0 0 6px var(--color-marker); }
.gx-step__top { display: flex; align-items: center; gap: 14px; }
.gx-step__num { font: 400 3rem/1 var(--font-display); color: var(--color-accent-text); }
.gx-step .ds-ticks { margin: 4px 0 0; }
.gx-step__inline { display: none; }
.gx-story__stage { grid-column: 7 / -1; position: relative; }
.gx-story__sticky { position: sticky; top: 15vh; height: 70vh; min-height: 460px; }
.gx-story__orb { width: 80%; aspect-ratio: 1; left: 10%; top: 50%; transform: translateY(-50%); }
.gx-scene { position: absolute; left: 50%; top: 8%; height: 78%; width: auto; max-width: 80%; object-fit: contain; translate: -50% 0; }
.gx-scene--wide { top: 50%; height: auto; width: 96%; max-width: 96%; translate: -50% -50%; }
.gx-story__meter { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.gx-story__dots { display: flex; gap: 8px; }
.gx-story__dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--color-rule-strong); transition: background-color var(--dur-base), width var(--dur-slow) var(--ease-out); }
.gx-story:has([data-step="0"].is-on) .gx-story__dots i:nth-child(1),
.gx-story:has([data-step="1"].is-on) .gx-story__dots i:nth-child(2),
.gx-story:has([data-step="2"].is-on) .gx-story__dots i:nth-child(3),
.gx-story:has([data-step="3"].is-on) .gx-story__dots i:nth-child(4) { background: var(--color-cta); width: 40px; }
@media (max-width: 1024px) {
  .gx-story__steps { grid-column: 1 / -1; }
  .gx-story__stage { display: none; }
  .gx-step { min-height: 0; padding: 28px 0 44px; opacity: 1; }
  .gx-step__inline { display: grid; place-items: center; padding: 28px; margin-top: 8px; max-width: 440px; }
  .gx-step__inline img { max-height: 380px; width: auto; }
  .gx-step__inline--wide img { width: 100%; height: auto; }
}

/* 02 Habits: a ledger of routines */
.gx-habits { border-top: 1.5px solid var(--color-heading); }
.gx-habit { display: grid; grid-template-columns: 80px 56px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 20px; border-bottom: 1px dashed var(--color-rule-strong); transition: background-color var(--dur-base), padding var(--dur-slow) var(--ease-out); }
.gx-habit:hover { background: var(--color-surface); padding-left: 32px; }
.gx-habit__n { font: 400 3rem/1 var(--font-display); color: var(--color-accent-soft-2); transition: color var(--dur-base); }
.gx-habit:hover .gx-habit__n { color: var(--color-accent-text); }
.gx-habit .ds-title { margin-bottom: 4px; }
.gx-habit .ds-small { max-width: 44rem; }
.gx-habit__when { white-space: nowrap; }
@media (max-width: 760px) {
  .gx-habit { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; padding: 22px 0; align-items: start; }
  .gx-habit:hover { padding-left: 0; background: none; }
  .gx-habit__n { display: none; }
  .gx-habit .ds-pict { --pict: 44px; }
  .gx-habit__when { grid-column: 2; justify-self: start; }
}

/* CTA */
.ds-section + .gx-cta { border-top: 0; padding-top: 0; }
.gx-cta__ticks { margin: 22px 0 0; }
.gx-cta__ticks strong { font-weight: 500; }
/* live mocks in the story */
.gx-scene.ds-devslot { width: 36%; height: auto; max-width: none; }
.gx-scene.gx-scene--wide.ds-devslot { width: 92%; }
.gx-step__inline .ds-devslot { width: min(230px, 70%); }
.gx-step__inline--wide .ds-devslot { width: 100%; }
