.guide-page {
  background: var(--app);
}

.guide-header {
  background: rgba(10, 10, 10, .96);
  color: var(--surface);
}

.guide-header .legal-page-nav {
  border-color: #45413d;
}

.guide-header .legal-page-nav a {
  color: #d3cec7;
}

.guide-header .legal-page-nav a:hover,
.guide-header .legal-page-nav a[aria-current="location"] {
  background: var(--neon);
  color: var(--ink);
}

.guide-header .legal-home-link {
  border-color: #48443f;
  color: var(--surface);
}

.guide-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 112px 0 96px;
  border-bottom: 1px solid #3e3934;
  background: var(--hero);
  color: var(--surface);
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, .035) 119px 120px),
    linear-gradient(120deg, transparent 0 67%, rgba(184, 255, 77, .1) 67% 100%);
}

.guide-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  gap: 72px;
  align-items: center;
}

.guide-hero-copy {
  display: grid;
  gap: 24px;
}

.guide-hero-copy .legal-kicker {
  color: var(--neon);
}

.guide-hero-copy h1 {
  max-width: 760px;
  font-size: 70px;
  line-height: .99;
}

.guide-hero-copy > p:not(.legal-kicker) {
  max-width: 650px;
  color: #c7c1b9;
  font-size: 18px;
}

.guide-hero-copy .legal-button.is-ghost {
  border-color: #5c5750;
  color: var(--surface);
}

.guide-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-hero-notes span {
  padding: 7px 9px;
  border: 1px solid #4a4641;
  border-radius: 5px;
  color: #d3cec7;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.guide-hero-stage {
  position: relative;
  min-height: 600px;
}

.guide-hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 10% 4%;
  border: 1px solid #4a5b2e;
  border-radius: 8px;
  background: var(--neon);
  transform: rotate(-3deg);
}

.guide-hero-phone,
.guide-phone {
  overflow: hidden;
  border: 7px solid #111;
  border-radius: 28px;
  background: #111;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .32);
}

.guide-hero-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 265px;
  transform: translate(-50%, -50%);
}

.guide-hero-phone.is-main {
  z-index: 3;
}

.guide-hero-phone.is-left {
  z-index: 1;
  width: 220px;
  transform: translate(-118%, -46%) rotate(-7deg);
  opacity: .9;
}

.guide-hero-phone.is-right {
  z-index: 2;
  width: 220px;
  transform: translate(18%, -47%) rotate(7deg);
  opacity: .94;
}

.guide-hero-phone img,
.guide-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-hero-phone .phone-notch,
.guide-phone .phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 4;
  width: 64px;
  height: 18px;
  border-radius: 10px;
  background: #111;
  transform: translateX(-50%);
}

.guide-hero-stamp {
  position: absolute;
  right: 3%;
  bottom: 5%;
  z-index: 5;
  width: 220px;
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--orange);
}

.guide-hero-stamp span,
.guide-data-label {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.guide-picker {
  position: sticky;
  top: 72px;
  z-index: 24;
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.guide-picker-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.guide-picker-inner > span,
.guide-picker-inner > a {
  display: flex;
  align-items: center;
}

.guide-picker-inner > span {
  padding-right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.guide-picker-inner > a {
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-left: 1px solid var(--border-strong);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.guide-picker-inner > a b {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 9px;
}

.guide-picker-inner > a:hover,
.guide-picker-inner > a[aria-current="location"] {
  background: var(--ink);
  color: var(--surface);
}

.guide-picker-inner > a[aria-current="location"] b {
  color: var(--neon);
}

.guide-feature {
  position: relative;
  overflow: clip;
  padding: 118px 0;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 142px;
}

.guide-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 79px, rgba(17, 17, 17, .04) 79px 80px);
}

.guide-feature.is-paper {
  background: var(--app);
}

.guide-feature.is-dark {
  background: var(--hero);
  color: var(--surface);
}

.guide-feature.is-dark::before {
  background: repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, .045) 79px 80px);
}

.guide-feature.is-neon {
  background: var(--neon);
}

.guide-feature.is-orange {
  color: var(--surface);
  background:
    linear-gradient(110deg, rgba(255, 91, 26, .18) 0 24%, transparent 24% 100%),
    #11110f;
  box-shadow: inset 0 10px 0 var(--orange);
}

.guide-feature.is-orange::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, .055) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 159px, rgba(184, 255, 77, .045) 159px 160px);
}

.guide-feature.is-orange .section-kicker {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.guide-feature.is-orange .guide-copy > p:not(.section-kicker),
.guide-feature.is-orange .guide-step-detail > p {
  color: #c9c4bc;
}

.guide-feature.is-orange .guide-steps,
.guide-feature.is-orange .guide-steps article,
.guide-feature.is-orange .guide-result {
  border-color: rgba(255, 255, 255, .34);
}

.guide-feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .72fr);
  gap: 90px;
  align-items: start;
}

.guide-feature-grid.is-reversed .guide-copy {
  order: 2;
}

.guide-feature-grid.is-reversed .guide-visual {
  order: 1;
}

.guide-copy {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.guide-copy h2 {
  max-width: 800px;
  font-size: 54px;
  line-height: 1.03;
}

.guide-copy > p:not(.section-kicker) {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.is-dark .guide-copy > p:not(.section-kicker) {
  color: var(--muted-light);
}

.guide-steps {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid currentColor;
}

.guide-steps article {
  border-bottom: 1px solid currentColor;
}

.guide-steps button {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.guide-steps button > span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.guide-feature.is-orange .guide-steps button > span,
.guide-feature.is-dark .guide-steps button > span {
  color: var(--neon);
}

.guide-steps button > strong {
  font-size: 18px;
  line-height: 1.35;
}

.guide-steps button > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-style: normal;
  transition: transform 240ms ease-out, background-color 180ms ease-out;
}

.guide-steps article.is-open button > i {
  background: var(--neon);
  color: var(--ink);
  transform: rotate(45deg);
}

.guide-step-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: .3;
  transition: grid-template-rows 340ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease-out;
}

.guide-step-detail > p {
  min-height: 0;
  overflow: hidden;
  padding: 0 52px 0 62px;
  color: var(--muted);
}

.is-dark .guide-step-detail > p {
  color: var(--muted-light);
}

.guide-steps article.is-open .guide-step-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}

.guide-steps article.is-open .guide-step-detail > p {
  padding-bottom: 22px;
}

.guide-result {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  margin-top: 10px;
  padding: 18px 0;
  border-block: 1px solid currentColor;
}

.guide-result span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.is-dark .guide-result span,
.is-orange .guide-result span {
  color: var(--neon);
}

.guide-result p {
  font-weight: 700;
}

.guide-visual {
  position: sticky;
  top: 174px;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.guide-visual::before,
.guide-visual::after {
  content: "";
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: 8px;
}

.guide-visual::before {
  inset: 7% 2% 5%;
  background: var(--orange);
  transform: rotate(4deg);
}

.guide-visual::after {
  inset: 4% 8% 8%;
  background: var(--neon);
  transform: rotate(-3deg);
}

.is-neon .guide-visual::after {
  background: var(--surface);
}

.guide-preview-meta {
  display: none;
}

.is-orange .guide-visual::before {
  border-color: #ff8150;
  background: var(--orange);
}

.is-orange .guide-visual::after {
  border-color: #739f34;
}

.is-dark .guide-visual::after {
  border-color: #4f662d;
}

.guide-phone {
  position: relative;
  z-index: 3;
  width: min(74%, 300px);
  aspect-ratio: 10 / 21;
  isolation: isolate;
}

.guide-phone > .guide-phone-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 420ms cubic-bezier(.22, 1, .36, 1);
}

.guide-phone > .guide-phone-image.is-active {
  opacity: 1;
}

.guide-phone > .guide-phone-image.is-leaving {
  opacity: 0;
}

.guide-focus {
  position: absolute;
  top: var(--focus-top, 6%);
  right: 4%;
  left: 4%;
  z-index: 3;
  height: var(--focus-height, 17%);
  border: 2px solid var(--neon);
  border-radius: 6px;
  background: rgba(184, 255, 77, .08);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .1);
  pointer-events: none;
  transition: top 360ms cubic-bezier(.22, 1, .36, 1), height 360ms cubic-bezier(.22, 1, .36, 1);
}

.guide-data-label {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 4;
  padding: 7px 9px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--surface);
}

.guide-help {
  padding: 108px 0;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.guide-help-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 80px;
  align-items: end;
}

.guide-help-inner > div:first-child {
  display: grid;
  gap: 20px;
}

.guide-help h2 {
  max-width: 760px;
  font-size: 52px;
  line-height: 1.05;
}

.guide-help p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.guide-help-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.guide-help-links a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 800;
}

.guide-help-links a::after {
  content: "\2197";
  font-size: 18px;
}

.guide-help-links a:hover {
  background: var(--neon);
}

.guide-final {
  background: #ff5b1a;
}

@media (max-width: 1080px) {
  .guide-hero-grid,
  .guide-feature-grid,
  .guide-help-inner {
    gap: 54px;
  }

  .guide-hero-copy h1 {
    font-size: 58px;
  }

  .guide-copy h2 {
    font-size: 46px;
  }
}

@media (max-width: 820px) {
  .guide-hero {
    min-height: 0;
  }

  .guide-hero-grid,
  .guide-feature-grid,
  .guide-help-inner {
    grid-template-columns: 1fr;
  }

  .guide-hero-stage {
    min-height: 560px;
  }

  .guide-feature-grid.is-reversed .guide-copy,
  .guide-feature-grid.is-reversed .guide-visual {
    order: initial;
  }

  .guide-visual {
    position: relative;
    top: auto;
    min-height: 560px;
  }
}

@media (max-width: 600px) {
  .guide-page {
    --guide-mobile-header-height: calc(48px + max(6px, env(safe-area-inset-top)));
    --guide-mobile-picker-height: 60px;
    --guide-mobile-dock-top: calc(var(--guide-mobile-header-height) + var(--guide-mobile-picker-height));
  }

  .guide-header .legal-nav-shell {
    align-items: center;
  }

  .guide-header .legal-brand img {
    object-fit: contain;
  }

  .guide-header .legal-home-link {
    place-self: center end;
    justify-content: center;
    gap: 0;
    line-height: 0;
  }

  .guide-header .legal-home-link .legal-icon {
    display: block;
  }

  .guide-header .legal-page-nav {
    display: none;
  }

  .guide-hero {
    padding: 72px 0 66px;
  }

  .guide-hero-grid {
    gap: 40px;
  }

  .guide-hero-copy h1 {
    font-size: 43px;
    line-height: 1.02;
  }

  .guide-hero-copy > p:not(.legal-kicker) {
    font-size: 16px;
  }

  .guide-hero-stage {
    min-height: 440px;
  }

  .guide-hero-phone {
    width: 205px;
  }

  .guide-hero-phone.is-left,
  .guide-hero-phone.is-right {
    width: 155px;
  }

  .guide-hero-stamp {
    right: 0;
    bottom: 2%;
    width: 190px;
  }

  .guide-picker {
    top: var(--guide-mobile-header-height);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .guide-picker::-webkit-scrollbar {
    display: none;
  }

  .guide-picker-inner {
    width: max-content;
    min-width: 100%;
    min-height: var(--guide-mobile-picker-height);
    grid-template-columns: auto repeat(6, auto);
    padding: 0;
  }

  .guide-picker-inner > span {
    width: 64px;
    justify-content: center;
    padding-inline: 6px;
    text-align: center;
  }

  .guide-picker-inner > a {
    min-width: 80px;
    min-height: var(--guide-mobile-picker-height);
    padding-inline: 10px;
    scroll-snap-align: center;
  }

  .guide-feature {
    overflow: visible;
    padding: 78px 0 88px;
    scroll-margin-top: calc(var(--guide-mobile-dock-top) + 12px);
  }

  .guide-feature-grid {
    gap: 0;
  }

  .guide-copy {
    gap: 18px;
  }

  .guide-copy h2 {
    font-size: 38px;
    line-height: 1.04;
  }

  .guide-copy > p:not(.section-kicker) {
    font-size: 16px;
  }

  .guide-steps button {
    min-height: 70px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 9px;
  }

  .guide-steps button > strong {
    font-size: 16px;
  }

  .guide-step-detail > p {
    padding-left: 47px;
    padding-right: 12px;
  }

  .guide-result {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-visual.is-mobile-dock {
    position: sticky;
    top: calc(var(--guide-mobile-dock-top) + 8px);
    z-index: 20;
    width: 100%;
    min-height: clamp(276px, 82vw, 318px);
    height: clamp(276px, 82vw, 318px);
    grid-template-columns: minmax(112px, 140px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    justify-items: center;
    margin: 6px 0 10px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    isolation: isolate;
  }

  .guide-feature.is-dark .guide-visual.is-mobile-dock,
  .guide-feature.is-orange .guide-visual.is-mobile-dock {
    border-color: #4b4742;
    background: rgba(17, 17, 15, .98);
  }

  .guide-feature.is-neon .guide-visual.is-mobile-dock {
    background: rgba(232, 255, 197, .98);
  }

  .guide-visual.is-mobile-dock::before {
    inset: 12px auto 12px 6px;
    width: 44%;
    transform: rotate(3deg);
  }

  .guide-visual.is-mobile-dock::after {
    inset: 18px auto 18px 12px;
    width: 42%;
    transform: rotate(-2deg);
  }

  .guide-visual.is-mobile-dock .guide-phone {
    grid-row: 1;
    grid-column: 1;
    width: clamp(112px, 36vw, 140px);
    border-width: 4px;
    border-radius: 20px;
  }

  .guide-visual.is-mobile-dock .guide-data-label {
    top: 10px;
    right: 10px;
    bottom: auto;
    padding: 5px 7px;
    font-size: 8px;
  }

  .guide-preview-meta {
    position: relative;
    z-index: 4;
    min-width: 0;
    grid-row: 1;
    grid-column: 2;
    display: grid;
    justify-self: stretch;
    gap: 7px;
    padding: 26px 4px 4px;
    color: var(--ink);
  }

  .guide-feature.is-dark .guide-preview-meta,
  .guide-feature.is-orange .guide-preview-meta {
    color: var(--surface);
  }

  .guide-preview-meta span {
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
  }

  .guide-feature.is-dark .guide-preview-meta span,
  .guide-feature.is-orange .guide-preview-meta span {
    color: var(--neon);
  }

  .guide-preview-meta strong {
    max-width: 165px;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.18;
  }

  .guide-preview-meta small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
  }

  .guide-feature.is-dark .guide-preview-meta small,
  .guide-feature.is-orange .guide-preview-meta small {
    color: var(--muted-light);
  }

  .guide-preview-meta::after {
    content: "";
    width: var(--guide-step-progress, 25%);
    height: 3px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--orange);
    transition: width 360ms cubic-bezier(.22, 1, .36, 1);
  }

  .guide-feature.is-dark .guide-preview-meta::after,
  .guide-feature.is-orange .guide-preview-meta::after {
    background: var(--neon);
  }

  .guide-help {
    padding: 78px 0;
  }

  .guide-help h2 {
    font-size: 38px;
  }

  .guide-help p:not(.section-kicker) {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .guide-hero-copy h1,
  .guide-copy h2,
  .guide-help h2 {
    font-size: 34px;
  }

  .guide-hero-phone.is-left {
    transform: translate(-110%, -44%) rotate(-7deg);
  }

  .guide-hero-phone.is-right {
    transform: translate(8%, -44%) rotate(7deg);
  }

  .guide-help-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-step-detail,
  .guide-steps button > i,
  .guide-focus,
  .guide-preview-meta::after,
  .guide-phone > .guide-phone-image {
    transition: none !important;
  }
}
