@font-face {
  font-family: "Fredoka";
  src: url("/docs/assets/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0f0f12;
  color: #ffffff;
  font-family: "Fredoka", system-ui, sans-serif;
}

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

.topbar {
  background: #17171e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  width: min(1280px, 100%);
  margin: 0 auto;
  min-height: 64px;
  padding: 12px 22px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  text-align: right;
}

.brand strong {
  font-size: 20px;
}

.brand small {
  color: #8e8e93;
  font-size: 12px;
}

.page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px 22px 56px;
}

.intro {
  display: grid;
  justify-items: right;
  gap: 8px;
  margin-bottom: 20px;
  direction: rtl;
}

.intro.compact {
  margin-bottom: 14px;
}

.intro p,
.eyebrow {
  margin: 0;
  color: #00c2e8;
  font-size: 13px;
  font-weight: 700;
}

.intro h1,
.guide-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.24;
  font-weight: 700;
  text-align: right;
}

.intro span,
.guide-copy p {
  max-width: 720px;
  color: #a2a2a7;
  font-size: 17px;
  line-height: 1.55;
  text-align: right;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.section-nav a {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: #17171e;
  color: #d7d4df;
  font-size: 13px;
  font-weight: 700;
}

.section-nav a.active {
  color: #00c2e8;
  border-color: rgba(0, 194, 232, 0.42);
  background: rgba(0, 194, 232, 0.12);
}

.reader {
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.guide-menu {
  align-self: start;
  background: #17171e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 7px;
}

.guide-menu h2 {
  margin: 0;
  padding: 0 4px 4px;
  font-size: 15px;
  text-align: right;
}

.guide-menu a {
  border-radius: 12px;
  padding: 10px 11px;
  color: #a2a2a7;
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.guide-menu a.active {
  background: #20202a;
  color: #ffffff;
  font-weight: 700;
}

.guide-screen {
  min-height: calc(100vh - 148px);
  background: #17171e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 22px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 30px;
  align-items: center;
}

.guide-copy {
  display: grid;
  justify-items: right;
  gap: 12px;
  direction: rtl;
}

.phone-frame {
  position: relative;
  width: 270px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  overflow: hidden;
  background: #07070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: rgba(5, 5, 8, 0.32);
}

.video-placeholder span {
  font-size: 52px;
}

.video-placeholder strong {
  font-size: 16px;
  line-height: 1.35;
}

.guide-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.guide-details section {
  background: #1c1c24;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 18px;
}

.guide-details h3 {
  margin: 0 0 12px;
  font-size: 17px;
  text-align: right;
}

.check-list,
.note-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.check-list li,
.note-list li {
  position: relative;
  padding-inline-start: 30px;
  color: #d7d4df;
  font-size: 15px;
  line-height: 1.55;
  text-align: right;
}

.check-list li::before,
.note-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  color: #00c2e8;
}

.note-list li::before {
  content: "i";
  color: #ff9500;
}

.section-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-card {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #17171e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 18px;
}

.guide-card strong,
.guide-card span {
  text-align: right;
}

.guide-card strong {
  font-size: 18px;
}

.guide-card span {
  color: #a2a2a7;
  font-size: 14px;
  line-height: 1.5;
}

.next-link {
  margin: 20px 0 0;
  text-align: right;
}

.next-link a {
  display: inline-block;
  color: #ffffff;
  background: #00c2e8;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .reader,
  .guide-hero,
  .guide-details,
  .section-index {
    grid-template-columns: 1fr;
  }

  .guide-menu {
    position: static;
  }

  .phone-frame {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .page {
    padding-inline: 16px;
  }

  .intro h1,
  .guide-copy h2 {
    font-size: 28px;
  }

  .guide-screen {
    padding: 18px;
  }
}

/* Step-by-step Photo Guide Styles */
.guide-screen-wide {
  min-height: calc(100vh - 148px);
  background: #17171e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 28px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

.guide-hero-compact {
  display: grid;
  justify-items: right;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
  direction: rtl;
}

.guide-hero-compact h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
}

.guide-hero-compact .summary {
  margin: 0;
  color: #a2a2a7;
  font-size: 16px;
  line-height: 1.55;
  text-align: right;
}

.guide-content-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}

.steps-section h3,
.notes-section h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
}

.steps-container {
  display: grid;
  gap: 24px;
}

.step-card {
  background: #1c1c24;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.step-header {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00c2e8;
  color: #061015;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.step-text {
  margin: 0;
  color: #d7d4df;
  font-size: 15px;
  line-height: 1.55;
  text-align: right;
  flex-grow: 1;
}

.step-media {
  display: flex;
  justify-content: center;
  background: #0d0d11;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.phone-frame-screenshot {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #3a3a3c;
  background: #000000;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.phone-frame-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.notes-section {
  background: #1c1c24;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 24px;
}

@media (max-width: 980px) {
  .guide-content-grid {
    grid-template-columns: 1fr;
  }
  
  .notes-section {
    position: static;
  }
}
