/* RoundGram — guide: forward without bot signature */

.page-guide {
  --guide-accent: #3dd6ff;
  --guide-muted: #8fa3bc;
}

.page-guide main {
  max-width: 720px;
  padding-bottom: 4rem;
}

.guide-hero {
  padding: clamp(2rem, 6vw, 3.25rem) 0 1.5rem;
  text-align: center;
}

.guide-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.guide-hero .lead {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.guide-hero .outcome {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(61, 214, 255, 0.2);
  background: rgba(61, 214, 255, 0.08);
  color: var(--text);
}

.guide-prereq {
  margin: 1.5rem 0 2rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.guide-prereq strong {
  color: var(--text);
}

.guide-prereq ol {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.guide-prereq li + li {
  margin-top: 0.35rem;
}

.platform-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.platform-tabs button {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.platform-tabs button[aria-selected="true"] {
  color: #041018;
  background: linear-gradient(135deg, #1e9bff, var(--guide-accent));
  box-shadow: 0 6px 24px rgba(30, 155, 255, 0.3);
}

.platform-panel {
  display: none;
}

.platform-panel.is-active {
  display: block;
  animation: guide-panel-in 0.35s ease;
}

@keyframes guide-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-step {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 640px) {
  .guide-step {
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 1.25rem;
  }

  .guide-step--wide-mock {
    grid-template-columns: 1fr 220px;
  }
}

.guide-step-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.guide-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e9bff, var(--guide-accent));
  color: #041018;
}

.guide-step h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.guide-step p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.guide-step .ui-label {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.guide-step .warn {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #fcd34d;
}

.phone-mock {
  width: 100%;
  max-width: 200px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #141a24 0%, #0a0e14 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  height: 22px;
  background: #0a0e14;
}

.phone-screen {
  padding: 0.55rem 0.65rem 0.75rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--guide-muted);
}

.phone-bubble {
  max-width: 78%;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  background: rgba(30, 155, 255, 0.2);
  border: 1px solid rgba(61, 214, 255, 0.25);
}

.phone-bubble--circle {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3dd6ff, #1e3a5f);
  box-shadow: 0 0 0 2px rgba(61, 214, 255, 0.5);
}

.phone-bubble--highlight {
  animation: guide-pulse-ring 1.8s ease-in-out infinite;
}

.phone-menu {
  margin-top: 0.5rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: #1e2836;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-menu-item {
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
}

.phone-menu-item--active {
  background: rgba(61, 214, 255, 0.15);
  color: var(--guide-accent);
  font-weight: 600;
}

.phone-forward-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.45rem 0.55rem 0.65rem;
  background: #121820;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-forward-preview {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.4rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  background: rgba(61, 214, 255, 0.12);
  border: 1px dashed rgba(61, 214, 255, 0.45);
  color: var(--guide-accent);
  font-weight: 600;
}

.phone-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.4rem;
  font-size: 0.58rem;
  color: var(--text);
}

.phone-toggle .knob {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--guide-accent);
  position: relative;
}

.phone-toggle .knob::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.phone-send {
  text-align: right;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--guide-accent);
}

@keyframes guide-pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(61, 214, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(61, 214, 255, 0.25);
  }
}

.guide-compare {
  margin: 2.5rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .guide-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.compare-card--bad {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.compare-card--good {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(61, 214, 255, 0.2);
}

.compare-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.compare-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guide-trouble {
  margin-top: 2rem;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.guide-trouble h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.guide-trouble ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.guide-trouble li + li {
  margin-top: 0.45rem;
}

.guide-footer-cta {
  margin-top: 2rem;
  text-align: center;
}

.guide-share-url {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  word-break: break-all;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--guide-accent);
}

.guide-back {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.guide-back:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .platform-panel.is-active,
  .phone-bubble--highlight {
    animation: none;
  }
}