/*
 * site.css — the shared Orbit Apps stylesheet.
 *
 * Extracted verbatim from index.html's inline <style> so articles under /blog/ do not each
 * carry their own 600-line copy. The existing pages (index, wallety, qurany, react-native)
 * still inline theirs; migrating them is a separate, deliberate step, not a side effect of
 * adding an article.
 *
 * Article and print rules live at the bottom, after the shared tokens and components.
 */
*,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      :root {
        --bg: #fffaf5;
        --bg-card: #ffffff;
        --bg-muted: #fdf5ea;
        --text: #1a1410;
        --text-secondary: #6b5c4a;
        --text-tertiary: #7d6a52;
        --border: rgba(0, 0, 0, 0.09);
        --border-md: rgba(0, 0, 0, 0.14);
        --accent: #d46a1a;
        --accent-bg: #fdebd0;
        --accent-text: #9a3d0a;
        --green-bg: #e8f5e8;
        --green-text: #2d6e2d;
        --amber-bg: #fdebd0;
        --amber-text: #9a3d0a;
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --radius-xl: 20px;
      }

      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #121210;
          --bg-card: #1c1c1a;
          --bg-muted: #242422;
          --text: #f0f0ec;
          --text-secondary: #9a9a92;
          --text-tertiary: #6a6a62;
          --border: rgba(255, 255, 255, 0.08);
          --border-md: rgba(255, 255, 255, 0.13);
          --accent: #e07a2a;
          --accent-bg: #2a1a08;
          --accent-text: #f0a060;
          --green-bg: #132013;
          --green-text: #6fcf6f;
          --amber-bg: #221a0a;
          --amber-text: #f0b860;
        }
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        font-family: "DM Sans", sans-serif;
        background: var(--bg);
        color: var(--text);
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        max-width: 1100px;
        margin: 0 auto;
      }

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

      /* ── NAV ── */
      nav {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
        height: 60px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }

      .logo {
        font-size: 15px;
        font-weight: 500;
        letter-spacing: -0.01em;
        color: var(--text);
      }
      .logo span {
        color: var(--accent-text);
      }
      .logo svg {
        vertical-align: middle;
        margin-right: 6px;
      }

      .nav-links {
        display: flex;
        gap: 32px;
        list-style: none;
      }
      .nav-links a {
        font-size: 14px;
        color: var(--text-secondary);
        transition: color 0.15s;
      }
      .nav-links a:hover {
        color: var(--text);
      }

      .nav-cta {
        font-family: "DM Sans", sans-serif;
        font-size: 13px;
        font-weight: 500;
        background: var(--text);
        color: var(--bg);
        border: none;
        padding: 8px 20px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: opacity 0.15s;
      }
      .nav-cta:hover {
        opacity: 0.8;
      }

      /* ── HERO ── */
      .hero {
        max-width: 1100px;
        margin: 0 auto;
        padding: 96px 40px 80px;
      }

      .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        font-weight: 500;
        color: var(--accent-text);
        background: var(--accent-bg);
        padding: 5px 14px;
        border-radius: 20px;
        margin-bottom: 28px;
        letter-spacing: 0.01em;
      }
      .hero-badge svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
      }

      h1 {
        font-size: clamp(36px, 5vw, 52px);
        font-weight: 300;
        line-height: 1.15;
        letter-spacing: -0.03em;
        color: var(--text);
        margin-bottom: 24px;
      }
      h1 em {
        font-style: normal;
        font-weight: 500;
        color: var(--accent);
      }

      .hero-sub {
        font-size: 18px;
        font-weight: 300;
        color: var(--text-secondary);
        line-height: 1.7;
        max-width: 500px;
        margin-bottom: 40px;
      }

      .hero-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
      }

      .btn-primary {
        font-family: "DM Sans", sans-serif;
        font-size: 14px;
        font-weight: 500;
        background: var(--text);
        color: var(--bg);
        border: none;
        padding: 12px 28px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: opacity 0.15s;
      }
      .btn-primary:hover {
        opacity: 0.8;
      }

      .btn-secondary {
        font-family: "DM Sans", sans-serif;
        font-size: 14px;
        color: var(--text-secondary);
        background: transparent;
        border: 1px solid var(--border-md);
        padding: 12px 28px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition:
          border-color 0.15s,
          color 0.15s;
      }
      .btn-secondary:hover {
        border-color: var(--text-secondary);
        color: var(--text);
      }

      /* ── SECTION ── */
      section {
        padding: 80px 40px;
        border-top: 1px solid var(--border);
      }
      section.muted {
        background: var(--bg-muted);
      }

      .section-eyebrow {
        font-family: "DM Mono", monospace;
        font-size: 11px;
        font-weight: 400;
        color: var(--accent-text);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 14px;
      }

      .section-title {
        font-size: 28px;
        font-weight: 400;
        letter-spacing: -0.02em;
        color: var(--text);
        margin-bottom: 10px;
      }

      .section-sub {
        font-size: 15px;
        font-weight: 300;
        color: var(--text-secondary);
        line-height: 1.7;
        max-width: 480px;
        margin-bottom: 44px;
      }

      /* ── SERVICES ── */
      .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
      }

      .service-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 24px 20px;
        transition: border-color 0.2s;
      }
      .service-card:hover {
        border-color: var(--border-md);
      }

      .step-num {
        font-family: "DM Mono", monospace;
        font-size: 12px;
        font-weight: 400;
        color: var(--accent-text);
        letter-spacing: 0.08em;
        margin-bottom: 12px;
      }

      .service-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
        color: var(--accent);
      }

      .service-card h3 {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
        margin-bottom: 6px;
      }

      .service-card p {
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* ── REVIEWS ── */
      .reviews-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 12px;
      }
      .review-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 24px;
      }
      .stars {
        color: var(--accent);
        font-size: 15px;
        letter-spacing: 3px;
        margin-bottom: 12px;
      }
      .review-quote {
        font-size: 15px;
        color: var(--text);
        line-height: 1.65;
        margin-bottom: 16px;
      }
      .review-author {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
      }
      .review-author span {
        color: var(--text-tertiary);
        font-weight: 400;
      }

      /* ── APPS ── */
      .apps-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 12px;
      }

      .app-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: border-color 0.2s;
      }
      .app-card:hover {
        border-color: var(--border-md);
      }

      .app-card-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
      }

      .app-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .app-icon svg {
        width: 22px;
        height: 22px;
      }

      .status-badge {
        font-size: 11px;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 20px;
        white-space: nowrap;
      }
      .status-shipped {
        background: var(--green-bg);
        color: var(--green-text);
      }
      .status-progress {
        background: var(--amber-bg);
        color: var(--amber-text);
      }

      .app-card h3 {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
      }

      .app-card p {
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.6;
        flex: 1;
      }

      .platforms {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
      }
      a.plat-pill:hover {
        background: var(--border);
        color: var(--text);
      }

      .plat-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 400;
        padding: 3px 9px;
        border-radius: 20px;
        background: var(--bg-muted);
        color: var(--text-secondary);
        border: 1px solid var(--border);
      }
      .plat-pill svg {
        width: 11px;
        height: 11px;
      }

      /* ── ABOUT ── */
      .about-grid {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 56px;
        align-items: start;
      }
      .about-head .section-title {
        margin-bottom: 0;
      }
      .about-text {
        max-width: 620px;
      }
      .about-text p {
        font-size: 18px;
        font-weight: 300;
        color: var(--text-secondary);
        line-height: 1.75;
        margin-bottom: 16px;
      }
      .about-text p:last-child {
        margin-bottom: 0;
      }
      @media (max-width: 800px) {
        .about-grid {
          grid-template-columns: 1fr;
          gap: 20px;
        }
      }

      /* ── CTA ── */
      .cta-section {
        padding: 96px 40px;
        border-top: 1px solid var(--border);
        text-align: center;
      }

      .cta-section h2 {
        font-size: clamp(26px, 4vw, 36px);
        font-weight: 300;
        letter-spacing: -0.02em;
        color: var(--text);
        margin-bottom: 14px;
      }

      .cta-section p {
        font-size: 16px;
        font-weight: 300;
        color: var(--text-secondary);
        max-width: 400px;
        margin: 0 auto 36px;
        line-height: 1.7;
      }

      .cta-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
      }

      .email-link {
        font-size: 14px;
        color: var(--text-secondary);
        font-family: "DM Mono", monospace;
        font-weight: 300;
      }
      .email-link:hover {
        color: var(--text);
      }

      /* ── FOOTER ── */
      footer {
        padding: 24px 40px;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
      }

      footer p {
        font-size: 13px;
        color: var(--text-tertiary);
      }

      /* ── ANIMATIONS ── */
      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(16px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .hero-badge {
        animation: fadeUp 0.5s ease both;
      }
      h1 {
        animation: fadeUp 0.5s 0.08s ease both;
      }
      .hero-sub {
        animation: fadeUp 0.5s 0.16s ease both;
      }
      .hero-actions {
        animation: fadeUp 0.5s 0.24s ease both;
      }

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

      .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: center;
        min-width: 0;
        max-width: 100%;
      }

      .hero-visual svg {
        width: 100%;
        max-width: 480px;
        align-self: center;
      }

      /* ── RESPONSIVE ── */
      @media (max-width: 640px) {
        nav {
          padding: 0 20px;
        }
        .nav-links {
          display: none;
        }
        .hero {
          padding: 64px 20px 56px;
        }
        section {
          padding: 56px 20px;
        }
        .cta-section {
          padding: 64px 20px;
        }
        footer {
          padding: 20px;
        }
        .hero-inner {
          grid-template-columns: 1fr;
          gap: 40px;
        }
        .hero-visual {
          display: none;
        }
      }

/* ══════════════════════════════════════════════════════════════════════════════
   ARTICLES (/blog/*)
   ══════════════════════════════════════════════════════════════════════════════ */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 40px 40px;
}
.article-meta {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.article h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  margin-bottom: 20px;
}
.article .lede {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}
.article h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 48px 0 14px;
}
.article h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 30px 0 8px;
}
.article p,
.article li {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.article strong {
  font-weight: 500;
  color: var(--text);
}
.article ul,
.article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.article li {
  margin-bottom: 8px;
}
.article a:not(.plat-pill) {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The planner itself. Doubles as the printable, so it is styled to survive a page break. */
.planner {
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 28px 0 36px;
  background: var(--bg-card);
}
.planner h3 {
  margin-top: 0;
}
.planner table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}
.planner th,
.planner td {
  text-align: left;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.planner th {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 400;
}
.planner td.fill {
  border-bottom: 1px solid var(--border-md);
  min-width: 90px;
}
.planner .total td {
  font-weight: 500;
  color: var(--text);
  border-bottom: none;
  padding-top: 14px;
}
.callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 26px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .article {
    padding: 48px 20px 32px;
  }
  .planner {
    padding: 18px;
  }
}

/* ── VIDEO EMBED (click-to-load facade) ──
   Copied verbatim from react-native/index.html's inline style so embeds on articles match
   the ones on that page. That page keeps its own copy; it does not link this stylesheet. ── */
.video-embed {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 0 0 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-muted);
}
.video-embed img,
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.15s;
}
.video-play svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}
.video-embed:hover .video-play,
.video-embed:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.06);
  opacity: 0.9;
}

/* ── PRINT: the page is the printable. Strip the site, keep the planner. ── */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    max-width: none;
  }
  .article {
    max-width: none;
    padding: 0;
  }
  .planner {
    border: 1px solid #999;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .planner th {
    color: #000;
  }
  .planner td.fill {
    border-bottom: 1px solid #666;
  }
  .article a:not(.plat-pill) {
    color: #000;
    text-decoration: none;
  }
}

/* ── BLOG INDEX ── */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list li {
  border-top: 1px solid var(--border);
  margin: 0;
}
.post-list li:last-child {
  border-bottom: 1px solid var(--border);
}
.post-link {
  display: block;
  padding: 24px 0;
  text-decoration: none !important;
  color: inherit !important;
}
.post-link:hover .post-title {
  color: var(--accent-text);
}
.post-topic {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: block;
  margin-bottom: 8px;
}
.post-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 0.15s;
}
.post-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
