/* Stirae Docs — Shared styles for sub-pages */

.glass-nav {
  backdrop-filter: blur(20px);
  background: rgba(247, 248, 255, 0.85);
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6B46F6;
  text-decoration: none;
  transition: opacity 150ms ease;
}
.back-link:hover { opacity: 0.7; }

/* Typography */
main h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #070A1F;
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(7, 10, 31, 0.65);
  font-weight: 500;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

main h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #070A1F;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5rem;
}

main h2:first-of-type {
  margin-top: 0;
}

main h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #070A1F;
  margin-bottom: 0.4rem;
}

main p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(7, 10, 31, 0.72);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

main strong { color: #070A1F; font-weight: 700; }

main code {
  background: rgba(107, 70, 246, 0.07);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  color: #4F63F7;
}

main ul, main ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

main li {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(7, 10, 31, 0.72);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

main hr {
  border: none;
  border-top: 1px solid rgba(210, 210, 215, 0.6);
  margin: 1.5rem 0;
}

/* Keycaps */
.keycap {
  display: inline-flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.3rem 0.35rem;
  border-radius: 7px;
  background: #F0F0F3;
  border: 1px solid #D2D2D7;
  box-shadow: 0 2px 0 #C8C8CC;
  font-family: system-ui, -apple-system, sans-serif;
  color: #333;
  line-height: 1;
  vertical-align: middle;
}
.keycap-globe {
  font-size: 0.65rem;
}
.keycap-fn {
  font-size: 0.6rem;
  font-weight: 700;
}
.shortcut-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.shortcut-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(7, 10, 31, 0.45);
  line-height: 1;
}

/* Shortcut list — keycap combinations */
.shortcut-list {
  list-style: none;
  padding-left: 0;
}
.shortcut-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(7, 10, 31, 0.5);
}

/* Inline keycap — sits within text flow */
.keycap-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 5px;
  background: #F0F0F3;
  border: 1px solid #D2D2D7;
  box-shadow: 0 1px 0 #C8C8CC;
  font-family: system-ui, -apple-system, sans-serif;
  color: #333;
  line-height: 1;
  vertical-align: middle;
}
.keycap-inline .keycap-globe {
  font-size: 0.77rem;
}
.keycap-inline .keycap-fn {
  font-size: 0.77rem;
  font-weight: 700;
}

/* Steps */
.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(107, 70, 246, 0.1);
  color: #6B46F6;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.step div:last-child p:last-child {
  margin-bottom: 0;
}

/* Callouts */
.callout {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 500;
}
.callout-tip { background: rgba(107, 70, 246, 0.05); border-left: 3px solid #6B46F6; }
.callout-note { background: rgba(79, 99, 247, 0.05); border-left: 3px solid #4F63F7; }
.callout-important { background: rgba(245, 158, 11, 0.07); border-left: 3px solid #F59E0B; }
.callout-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.callout-tip .callout-label { color: #6B46F6; }
.callout-note .callout-label { color: #4F63F7; }
.callout-important .callout-label { color: #D97706; }
.callout a { color: #6B46F6; font-weight: 700; text-decoration: none; }
.callout a:hover { text-decoration: underline; }

/* Menu bar figure (compact orientation aid) */
.menu-bar-figure {
  margin: 1.25rem 0 1.75rem;
  text-align: center;
}
.menu-bar-img {
  display: inline-block;
  max-width: 320px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 12px -3px rgba(0, 0, 0, 0.1);
}
.menu-bar-caption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(7, 10, 31, 0.45);
  line-height: 1.4;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* HUD timeline (vertical sequence) */
.hud-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 2rem 0 0.75rem;
}
.hud-timeline-item {
  margin: 0;
  text-align: center;
}
.hud-timeline-item img {
  max-width: 260px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
}
.hud-timeline-item figcaption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(7, 10, 31, 0.45);
}
.hud-timeline-arrow {
  font-size: 1rem;
  color: rgba(7, 10, 31, 0.25);
  padding: 0.3rem 0;
}
.hud-timeline-note {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(7, 10, 31, 0.5);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, background 250ms ease, backdrop-filter 250ms ease, visibility 0ms 250ms;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  transition: opacity 250ms ease, background 250ms ease, backdrop-filter 250ms ease, visibility 0ms 0ms;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 250ms ease;
}
.lightbox-overlay.is-open img {
  transform: scale(1);
}

/* Enlargeable images */
.menu-bar-img {
  cursor: zoom-in;
}
.menu-bar-figure {
  position: relative;
}
.enlarge-hint {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(7, 10, 31, 0.3);
  margin-top: 0.3rem;
  opacity: 0;
  transition: opacity 150ms ease;
}
.menu-bar-figure:hover .enlarge-hint {
  opacity: 1;
}

/* Screenshot — full-width, zoomable */
.screenshot img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
}
.screenshot {
  margin: 2rem 0;
  position: relative;
}
.screenshot .enlarge-hint {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(7, 10, 31, 0.3);
  margin-top: 0.4rem;
  opacity: 0;
  transition: opacity 150ms ease;
}
.screenshot:hover .enlarge-hint {
  opacity: 1;
}

/* Screenshot — annotated side-by-side */
.screenshot-annotated {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 2rem 0;
}
.screenshot-annotated-img {
  flex: 0 0 55%;
  position: relative;
}
.annotated-marker {
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #6B46F6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(107, 70, 246, 0.45);
  border: 2px solid #fff;
}
.annotated-marker-inline {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #6B46F6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.annotated-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.annotated-callout p {
  margin-bottom: 0;
}
.screenshot-annotated-img img {
  width: 100%;
  max-width: none;
  border-radius: 10px;
  box-shadow: 0 3px 12px -3px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  filter: brightness(1.12);
}
.screenshot-annotated-img .enlarge-hint {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(7, 10, 31, 0.3);
  margin-top: 0.3rem;
  opacity: 0;
  transition: opacity 150ms ease;
}
.screenshot-annotated-img:hover .enlarge-hint {
  opacity: 1;
}
.screenshot-annotated-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(7, 10, 31, 0.65);
  font-weight: 500;
  padding-top: 0.25rem;
}
.screenshot-annotated-text p {
  margin-bottom: 0.5rem;
}
@media (max-width: 640px) {
  .screenshot-annotated {
    flex-direction: column;
  }
  .screenshot-annotated-img {
    flex: none;
    width: 100%;
  }
}

/* Screenshot slots */
.screenshot-slot {
  border: 2px dashed rgba(210, 210, 215, 0.8);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(7, 10, 31, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.5);
}

/* Example blocks (before/after) */
.example-block {
  border: 1px solid rgba(210, 210, 215, 0.6);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: #fff;
}
.example-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(7, 10, 31, 0.4);
  margin-bottom: 0.75rem;
}
.example-before {
  font-size: 0.95rem;
  color: rgba(7, 10, 31, 0.55);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(210, 210, 215, 0.5);
}
.example-before::before {
  content: "What you said: ";
  font-style: normal;
  font-weight: 600;
  color: rgba(7, 10, 31, 0.4);
  font-size: 0.8rem;
}
.example-after {
  font-size: 0.95rem;
  color: #070A1F;
  font-weight: 600;
}
.example-after::before {
  content: "Stirae inserts: ";
  font-weight: 600;
  color: rgba(7, 10, 31, 0.4);
  font-size: 0.8rem;
}

/* Tables */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.docs-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(7, 10, 31, 0.45);
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid rgba(210, 210, 215, 0.7);
}
.docs-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(210, 210, 215, 0.5);
  color: rgba(7, 10, 31, 0.75);
  font-weight: 500;
}
.docs-table tbody tr:last-child td { border-bottom: none; }

/* Issue cards (troubleshooting) */
.issue-card {
  border: 1px solid rgba(210, 210, 215, 0.6);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: #fff;
}
.issue-card h3 {
  margin-bottom: 0.35rem;
}
.issue-card p {
  margin-bottom: 0.5rem;
}
.issue-card p:last-child {
  margin-bottom: 0;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.pricing-card {
  border: 1.5px solid rgba(107, 70, 246, 0.2);
  border-radius: 14px;
  padding: 1.75rem;
  background: #fff;
  position: relative;
}
.pricing-card-featured {
  border: 2px solid #6B46F6;
}
.pricing-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.25rem;
  background: linear-gradient(135deg, #4F63F7, #6B46F6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
}
.pricing-tier {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B46F6;
  margin-bottom: 0.5rem;
}
.pricing-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #070A1F;
  line-height: 1.2;
}
.pricing-amount span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(7, 10, 31, 0.55);
}
.pricing-billing {
  font-size: 0.875rem;
  color: rgba(7, 10, 31, 0.55);
  font-weight: 600;
  margin-top: 0.25rem;
}
.pricing-annual {
  font-size: 0.875rem;
  color: #6B46F6;
  font-weight: 700;
  margin-top: 0.35rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-features li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.925rem;
  color: rgba(7, 10, 31, 0.72);
  font-weight: 600;
}
.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #6B46F6;
  font-weight: 800;
}
.pricing-features li:last-child { margin-bottom: 0; }

/* Next page navigation */
.next-page {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(210, 210, 215, 0.6);
}
.next-page a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6B46F6;
  text-decoration: none;
  transition: opacity 150ms ease;
}
.next-page a:hover { opacity: 0.7; }
