.guide-page {
  --guide-surface: rgba(24, 24, 27, 0.78);
  --guide-surface-strong: rgba(31, 31, 35, 0.92);
  --guide-border: rgba(255, 255, 255, 0.1);
  overflow-x: hidden;
}

.guide-page::after {
  background:
    radial-gradient(circle at 76% 4%, rgba(255, 59, 48, 0.15), transparent 26%),
    radial-gradient(circle at 20% 72%, rgba(10, 132, 255, 0.08), transparent 25%);
}

.guide-main {
  position: relative;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  min-height: 720px;
  padding-top: 84px;
  padding-bottom: 88px;
}

.guide-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 7.4rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.guide-hero-intro {
  max-width: 670px;
  margin: 30px 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.guide-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 710px;
  margin-top: 34px;
}

.guide-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.guide-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 1;
  color: var(--red-2);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%) rotate(-18deg);
  pointer-events: none;
}

.guide-search input {
  width: 100%;
  min-height: 68px;
  padding: 0 20px 0 57px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  outline: 0;
  background: rgba(28, 28, 31, 0.9);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.guide-search input:focus {
  border-color: rgba(255, 59, 48, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.14), 0 20px 54px rgba(0, 0, 0, 0.38);
}

.guide-search input::placeholder {
  color: #858590;
}

.guide-search-submit {
  flex: 0 0 auto;
  min-height: 68px;
  padding: 0 24px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--red-2), var(--red));
  box-shadow: 0 18px 44px rgba(255, 59, 48, 0.24);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.guide-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(255, 59, 48, 0.3);
}

.guide-search-submit:active {
  transform: translateY(0);
}

.guide-search-help {
  margin: 10px 0 0 3px;
  color: #8d8d98;
  font-size: 0.88rem;
}

.guide-hero-actions,
.guide-ending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 670px;
  margin: 34px 0 0;
}

.guide-stats div {
  padding: 16px 17px;
  border: 1px solid var(--guide-border);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-stats dt {
  font-size: 1.12rem;
  font-weight: 950;
}

.guide-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-hero-visual {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
}

.guide-orbit {
  position: absolute;
  width: min(520px, 38vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 59, 48, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(255, 59, 48, 0.06), 0 0 80px rgba(255, 59, 48, 0.08);
}

.guide-hero-phone {
  width: min(320px, 56vw);
  z-index: 2;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-red);
}

.guide-float-phone {
  --phone-frame: 6px;
  --phone-radius: 31px;
  --screen-radius: 24px;
  position: absolute;
  right: -18px;
  bottom: 55px;
  width: 185px;
  z-index: 3;
  transform: rotate(8deg);
}

.guide-browse {
  padding-top: 72px;
  padding-bottom: 72px;
}

.guide-browse .section-heading {
  max-width: 820px;
}

.guide-category-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.guide-category-cards > a {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 3px 14px;
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(33, 33, 37, 0.84), rgba(18, 18, 20, 0.78));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.guide-category-cards > a:hover {
  border-color: rgba(255, 59, 48, 0.38);
  background: linear-gradient(145deg, rgba(39, 39, 43, 0.95), rgba(20, 20, 22, 0.9));
  transform: translateY(-3px);
}

.guide-category-cards strong {
  align-self: end;
  font-size: 1.02rem;
}

.guide-category-cards small {
  color: var(--muted);
}

.guide-category-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.guide-category-icon.red { color: #ff6961; background: rgba(255, 59, 48, 0.13); }
.guide-category-icon.green { color: #53d773; background: rgba(49, 209, 88, 0.12); }
.guide-category-icon.blue { color: #42a3ff; background: rgba(10, 132, 255, 0.13); }
.guide-category-icon.purple { color: #bf77ff; background: rgba(175, 82, 222, 0.13); }
.guide-category-icon.orange { color: #ffad45; background: rgba(255, 159, 10, 0.13); }
.guide-category-icon.pink { color: #ff72a8; background: rgba(255, 55, 95, 0.13); }
.guide-category-icon.teal { color: #46d8cb; background: rgba(90, 200, 250, 0.12); }
.guide-category-icon.gold { color: #ffe15c; background: rgba(255, 214, 10, 0.12); }
.guide-category-icon.gray { color: #bbbcc5; background: rgba(174, 174, 178, 0.12); }

.guide-workspace {
  display: grid;
  grid-template-columns: 245px minmax(0, 820px);
  justify-content: center;
  align-items: start;
  gap: clamp(34px, 6vw, 76px);
  padding-top: 76px;
}

.guide-sidebar {
  position: sticky;
  top: 105px;
}

.guide-sidebar-inner {
  padding: 20px;
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: rgba(16, 16, 18, 0.82);
  backdrop-filter: blur(18px);
}

.guide-sidebar-label {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.guide-sidebar nav {
  display: grid;
  gap: 3px;
}

.guide-sidebar nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.guide-sidebar nav a span {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 900;
}

.guide-sidebar nav a:hover,
.guide-sidebar nav a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.guide-sidebar nav a.is-active span {
  color: var(--red-2);
}

.guide-sidebar-support {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 10px 6px;
  border-top: 1px solid var(--guide-border);
  color: var(--muted);
  font-size: 0.78rem;
}

.guide-sidebar-support span {
  color: #fff;
  font-weight: 850;
}

.guide-content {
  min-width: 0;
}

.guide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  margin-bottom: 34px;
  padding: 15px 18px;
  border: 1px solid var(--guide-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-toolbar p {
  margin: 0;
}

.guide-toolbar-label {
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-result-count {
  margin-top: 3px !important;
  color: #fff;
  font-weight: 850;
}

.guide-clear {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.11);
  color: #ff7770;
  cursor: pointer;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 850;
}

.guide-no-results {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--guide-border);
  border-radius: 30px;
  background: var(--guide-surface);
  scroll-margin-top: 110px;
  text-align: center;
}

.guide-no-results > span {
  color: var(--red-2);
  font-size: 3rem;
}

.guide-no-results h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.guide-no-results p {
  max-width: 560px;
  margin: 14px auto 22px;
}

.guide-category {
  padding: 56px 0 28px;
  scroll-margin-top: 110px;
}

.guide-category:first-of-type {
  padding-top: 10px;
}

.guide-category-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.guide-category-heading > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 17px;
  background: rgba(255, 59, 48, 0.1);
  color: #ff7770;
  font-size: 0.77rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.guide-category-heading .eyebrow {
  margin-bottom: 5px;
}

.guide-category-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 0.98;
}

.guide-category-heading p:last-child {
  max-width: 660px;
  margin: 12px 0 0;
}

.guide-article-grid {
  display: grid;
  gap: 12px;
}

.guide-article {
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(29, 29, 33, 0.8), rgba(18, 18, 20, 0.8));
  overflow: hidden;
  scroll-margin-top: 110px;
  transition: border-color 180ms ease, background 180ms ease;
}

.guide-article[open] {
  border-color: rgba(255, 59, 48, 0.27);
  background: linear-gradient(145deg, rgba(34, 31, 34, 0.94), rgba(19, 19, 21, 0.94));
}

.guide-article summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 6px 18px;
  min-height: 140px;
  padding: 24px 24px 22px;
  cursor: pointer;
  list-style: none;
}

.guide-article summary::-webkit-details-marker {
  display: none;
}

.guide-article summary h3,
.guide-article summary p,
.guide-article summary .guide-tier {
  grid-column: 1;
  margin: 0;
}

.guide-article summary h3 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 1.72rem);
}

.guide-article summary p {
  margin-top: 2px;
  font-size: 0.96rem;
}

.guide-tier {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #c5c5cc;
  background: rgba(174, 174, 178, 0.12);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guide-tier.pro { color: #a7d3ff; background: rgba(10, 132, 255, 0.13); }
.guide-tier.max { color: #d9a6ff; background: rgba(175, 82, 222, 0.15); }
.guide-tier.varies { color: #ffe77b; background: rgba(255, 214, 10, 0.12); }

.guide-open {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-50%);
}

.guide-open::before,
.guide-open::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.guide-open::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.guide-article[open] .guide-open::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.guide-article-body {
  padding: 0 24px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-article-body > :first-child {
  margin-top: 24px;
}

.guide-article-body p,
.guide-article-body li {
  font-size: 0.99rem;
  line-height: 1.62;
}

.guide-article-body a {
  color: #ff7770;
  text-decoration: underline;
  text-decoration-color: rgba(255, 119, 112, 0.45);
  text-underline-offset: 3px;
}

.guide-definition-list,
.guide-steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.guide-definition-list li,
.guide-steps li {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) 1fr;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.18);
}

.guide-definition-list strong,
.guide-steps strong {
  color: #fff;
}

.guide-definition-list span {
  color: var(--muted);
}

.guide-steps li {
  grid-template-columns: 34px 1fr;
}

.guide-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.12);
  color: #ff7770;
  font-size: 0.75rem;
  font-weight: 950;
}

.guide-steps p {
  margin: 4px 0 0;
}

.guide-tip {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid var(--red);
  border-radius: 5px 16px 16px 5px;
  background: rgba(255, 59, 48, 0.07);
}

.guide-tip strong {
  color: #ff8781;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-tip p {
  margin: 6px 0 0;
}

.guide-ending {
  margin-top: 60px;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 32px;
  background: radial-gradient(circle at 90% 10%, rgba(255, 59, 48, 0.16), transparent 38%), rgba(25, 25, 28, 0.78);
}

.guide-ending h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 0.95;
}

.guide-ending > p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
}

.guide-ending .guide-updated {
  color: var(--muted-2);
  font-size: 0.84rem;
}

[data-guide-article][hidden],
[data-guide-category][hidden],
[data-guide-no-results][hidden],
[data-guide-toolbar][hidden],
[data-guide-clear][hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .guide-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 74px;
  }

  .guide-hero-copy {
    text-align: center;
  }

  .guide-hero h1,
  .guide-hero-intro,
  .guide-search,
  .guide-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .guide-hero-actions {
    justify-content: center;
  }

  .guide-hero-visual {
    min-height: 590px;
  }

  .guide-float-phone {
    right: 0;
  }

  .guide-category-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-workspace {
    grid-template-columns: minmax(0, 820px);
    padding-top: 40px;
  }

  .guide-article,
  .guide-no-results {
    scroll-margin-top: 174px;
  }

  .guide-sidebar {
    position: sticky;
    top: 82px;
    z-index: 12;
    min-width: 0;
  }

  .guide-sidebar-inner {
    padding: 10px;
    border-radius: 18px;
  }

  .guide-sidebar-label,
  .guide-sidebar-support {
    display: none;
  }

  .guide-sidebar nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .guide-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .guide-sidebar nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 12px;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .guide-hero {
    gap: 32px;
    padding-top: 58px;
    padding-bottom: 54px;
  }

  .guide-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .guide-hero-intro {
    font-size: 1rem;
  }

  .guide-search input {
    min-height: 60px;
    padding-right: 18px;
    padding-left: 50px;
    border-radius: 19px;
  }

  .guide-search-submit {
    min-height: 60px;
    padding: 0 20px;
    border-radius: 19px;
  }

  .guide-search-icon {
    left: 17px;
  }

  .guide-hero-actions,
  .guide-ending-actions {
    flex-direction: column;
  }

  .guide-hero-actions .button,
  .guide-ending-actions .button {
    width: 100%;
  }

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

  .guide-hero-visual {
    min-height: 470px;
  }

  .guide-hero-phone {
    width: min(270px, 70vw);
  }

  .guide-float-phone {
    right: 4px;
    bottom: 36px;
    width: 130px;
  }

  .guide-browse {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .guide-category-cards {
    grid-template-columns: 1fr;
  }

  .guide-category-cards > a {
    min-height: 98px;
    padding: 18px;
  }

  .guide-workspace {
    width: 100%;
    padding-top: 24px;
  }

  .guide-sidebar {
    top: 76px;
    width: 100%;
    padding: 0 12px;
  }

  .guide-content {
    width: min(calc(100% - 32px), 820px);
    margin: 0 auto;
  }

  .guide-toolbar {
    margin-bottom: 20px;
  }

  .guide-category {
    padding-top: 44px;
  }

  .guide-category-heading {
    grid-template-columns: 45px 1fr;
    gap: 12px;
  }

  .guide-category-heading > span {
    width: 45px;
    height: 45px;
    border-radius: 14px;
  }

  .guide-category-heading h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .guide-article {
    border-radius: 20px;
  }

  .guide-article summary {
    min-height: 132px;
    padding: 20px 62px 20px 18px;
  }

  .guide-open {
    right: 18px;
  }

  .guide-article-body {
    padding: 0 18px 22px;
  }

  .guide-definition-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .guide-steps li {
    gap: 12px;
    padding: 14px 12px;
  }

  .guide-ending {
    margin-top: 42px;
    border-radius: 26px;
  }
}

@media (max-width: 480px) {
  .guide-search {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-search-field,
  .guide-search-submit {
    width: 100%;
  }

  .guide-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
