/* ============================================
   PhotoCaptioner — Marketing Site
   Dark + Liquid Glass aesthetic
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-dim: rgba(245, 245, 247, 0.7);
  --text-muted: rgba(245, 245, 247, 0.5);

  --accent-1: #7c8cff;   /* blue */
  --accent-2: #b78cff;   /* purple */
  --accent-soft: rgba(124, 140, 255, 0.18);

  --gradient-accent: linear-gradient(135deg, #7c8cff 0%, #b78cff 100%);
  --gradient-text: linear-gradient(135deg, #8ea0ff 0%, #c79dff 50%, #ff9ed6 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 16px 48px rgba(124, 140, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  --max-w: 1180px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background gradient orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #7c8cff 0%, transparent 70%);
  top: -160px; left: -120px;
}

.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #b78cff 0%, transparent 70%);
  top: 30%; right: -180px;
}

.orb-3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #ff9ed6 0%, transparent 70%);
  bottom: -120px; left: 30%;
  opacity: 0.35;
}

/* ---------- Glass primitive ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-glass);
}

.glass-pill {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-block;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: calc(var(--max-w) - 24px);
  border-radius: 999px;
  background: rgba(15, 15, 22, 0.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-accent);
  box-shadow: 0 4px 16px rgba(124, 140, 255, 0.4);
  display: inline-block;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name { font-size: 15px; }

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--surface-strong);
  color: var(--text);
}

@media (max-width: 640px) {
  .nav { top: 8px; margin-top: 8px; }
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 56px;
}

.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 8px 0 4px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.hero-screenshot {
  width: 100%;
  max-width: 1000px;
}

.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.screenshot-frame img {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  height: auto;
  display: block;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.12), rgba(183, 140, 255, 0.12));
}

/* ---------- Eyebrow & section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.section-sub {
  color: var(--text-dim);
  font-size: 18px;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 140, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(124, 140, 255, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.18), rgba(183, 140, 255, 0.18));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-1);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Highlights (bullet-list cards) ---------- */
.section-tight { padding: 60px 0 80px; }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.highlight-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.highlight-card h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.25), rgba(183, 140, 255, 0.25));
  border: 1px solid rgba(124, 140, 255, 0.35);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 5px;
  border-left: 1.8px solid var(--accent-1);
  border-bottom: 1.8px solid var(--accent-1);
  transform: rotate(-45deg);
}

@media (max-width: 480px) {
  .highlight-card { padding: 24px; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  padding: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: block;
  aspect-ratio: 16 / 10;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.1), rgba(183, 140, 255, 0.1));
}

/* Placeholder rendered when src is missing — show a faux preview */
img.placeholder,
.gallery-item img.placeholder,
.screenshot-frame img.placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(124, 140, 255, 0.08) 0 14px,
      rgba(183, 140, 255, 0.08) 14px 28px);
  position: relative;
}

img.placeholder { content-visibility: auto; }

.gallery-item img.placeholder::after,
.screenshot-frame img.placeholder::after {
  content: "Screenshot placeholder";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ---------- CTA card ---------- */
.cta-card {
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.08), rgba(183, 140, 255, 0.08));
}

.cta-card h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 80px 0 40px;
}

.legal-card {
  padding: 48px;
  border-radius: var(--radius-xl);
  max-width: 820px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.legal-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.legal-card section { margin-bottom: 28px; }

.legal-card h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-card p, .legal-card li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 22px;
  margin: 8px 0 14px;
}

.legal-card li { margin-bottom: 6px; }

.legal-card a {
  color: var(--accent-1);
  border-bottom: 1px solid rgba(124, 140, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.legal-card a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.legal-card code {
  background: var(--surface-strong);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text);
}

.legal-footer-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .legal-card { padding: 28px 22px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  background: var(--bg-2);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 28px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 640px) {
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 16px; right: 16px; }
}

/* ---------- Scroll reveal (CSS-only, no JS dependency) ---------- */
.reveal {
  animation: reveal-fade-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reveal-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .orb { animation: none; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; }
  .section { padding: 70px 0; }
  .cta-card { padding: 44px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .feature-card { padding: 22px; }
}

/* ---------- User Guide page ---------- */
.nav-links a.active {
  background: var(--surface-strong);
  color: var(--text);
}

.guide-hero {
  padding: 80px 0 24px;
  text-align: center;
}

.guide-title {
  font-size: clamp(36px, 5.5vw, 60px);
  letter-spacing: -0.035em;
  margin: 14px 0 10px;
}

.guide-subtitle {
  color: var(--text-dim);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 640px;
  margin: 0 auto;
}

.guide-page {
  padding: 32px 0 80px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.guide-sidebar {
  position: sticky;
  top: 96px;
}

.guide-sidebar-inner {
  border-radius: var(--radius-lg);
  padding: 22px 18px;
}

.guide-sidebar-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 0 8px 14px;
}

.guide-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
  border: 1px solid transparent;
}

.guide-link:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.guide-link.active {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.18), rgba(183, 140, 255, 0.18));
  color: var(--text);
  border-color: rgba(124, 140, 255, 0.32);
}

.guide-link-num {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.guide-link.active .guide-link-num {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
}

/* Content */
.guide-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.guide-section {
  padding: 36px;
  border-radius: var(--radius-lg);
  scroll-margin-top: 100px;
}

.guide-section h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
  margin: 8px 0 14px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guide-section h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 26px 0 10px;
  color: var(--text);
}

.guide-section h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 18px 0 6px;
  color: var(--text);
}

.guide-section h4 + ul,
.guide-section h4 + ol {
  margin-top: 4px;
}

.guide-list ul {
  padding-left: 22px;
  margin: 4px 0 4px;
}

.guide-section p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
}

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

.guide-section a {
  color: var(--accent-1);
  border-bottom: 1px solid rgba(124, 140, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.guide-section a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.guide-section code {
  background: var(--surface-strong);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text);
}

.guide-list {
  padding-left: 22px;
  margin: 6px 0 12px;
}

.guide-list li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.guide-callout {
  margin: 14px 0 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

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

.guide-screenshot {
  margin: 22px 0 8px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  overflow: hidden;
}

.guide-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 6px);
  min-height: 220px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.12), rgba(183, 140, 255, 0.12));
}

.guide-screenshot img.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      rgba(124, 140, 255, 0.08) 0 14px,
      rgba(183, 140, 255, 0.08) 14px 28px);
}

.guide-screenshot img.placeholder::after {
  content: "Screenshot placeholder";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.guide-back {
  margin: 12px 0 0;
  text-align: center;
}

/* Mobile section picker (accordion) */
.guide-mobile-nav { display: none; margin-top: 16px; }

.guide-mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
}

.guide-mobile-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.guide-mobile-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.guide-mobile-menu {
  list-style: none;
  padding: 8px;
  margin: 8px 0 0;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-mobile-menu[hidden] { display: none; }

.guide-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}

.guide-mobile-menu a:hover,
.guide-mobile-menu a.active {
  background: var(--surface-strong);
  color: var(--text);
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-sidebar { display: none; }
  .guide-mobile-nav { display: block; }
  .guide-hero { padding-top: 60px; }
}

@media (max-width: 640px) {
  .guide-section { padding: 26px 22px; }
  .guide-section h3 { font-size: 17px; }
}
