/* Very Good Photo Backup — shared stylesheet.
   Mobile-first. The app's navy-on-white identity (NOT the dark Agentic Labs
   company theme). System font stack only — no webfonts, no @font-face. */

:root {
  --navy: #1A2A6B;        /* brand navy */
  --bg: #ffffff;          /* page background */
  --bg-soft: #F7F8FB;     /* off-white section/card background */
  --ink: #1A2A6B;         /* primary text (navy on white) */
  --ink-dim: #52607a;     /* muted navy-gray body text */
  --ok: #34C759;          /* status accent: new / copied / added */
  --warn: #FF9500;        /* status accent: failed */
  --muted: #8A94A6;       /* status accent: skipped / secondary */
  --border: rgba(26, 42, 107, 0.12);
  --card-shadow: 0 6px 20px rgba(26, 42, 107, 0.08);
  --radius: 16px;
  --maxw: 1080px;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-system);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 760px; }

.section { padding: 48px 0; }
.section-muted { background: var(--bg-soft); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}
.lede { font-size: 1.1rem; color: var(--ink-dim); }
p { color: var(--ink-dim); }

/* ---------- Wordmark lockup ---------- */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--navy);
  line-height: 1;
}
.wordmark .wm-top {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.wordmark .wm-bottom {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.62rem;
  margin-top: 3px;
  /* letter-spacing pushes the block right; nudge back to stay centered */
  margin-left: 0.3em;
}
/* Larger hero version of the lockup */
.wordmark.hero-mark .wm-top { font-size: clamp(2.2rem, 8vw, 3.4rem); }
.wordmark.hero-mark .wm-bottom {
  font-size: clamp(0.8rem, 2.6vw, 1.05rem);
  margin-top: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header-inner .brand { display: inline-flex; align-items: center; }
.header-inner .brand:hover { text-decoration: none; }
.nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.secondary { background: #fff; color: var(--navy); }

/* Apple-style "Download on the App Store" pill, rendered in CSS/SVG */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  line-height: 1;
}
.appstore-btn:hover { text-decoration: none; opacity: 0.9; }
.appstore-btn svg { width: 24px; height: 24px; flex: none; fill: #fff; }
.appstore-btn .as-text { display: flex; flex-direction: column; }
.appstore-btn .as-small { font-size: 0.62rem; letter-spacing: 0.01em; }
.appstore-btn .as-big { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; }

/* "Coming soon to the / App Store" badge — styled to match Apple's official
   App Store badge lockup: black rounded rectangle, Apple logo at left, a small
   top line and a large "App Store" line. (The official badge is only sanctioned
   for a LIVE app; this is a pre-launch "coming soon" variant.) */
.appstore-btn.coming-soon {
  cursor: default;
  background: #000;
  gap: 14px;
  padding: 12px 22px;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.appstore-btn.coming-soon:hover { opacity: 1; }
/* Apple logo image, sized to the badge proportions. */
.appstore-btn.coming-soon .as-logo { width: 30px; height: 30px; flex: none; display: block; }
.appstore-btn.coming-soon .as-text { display: flex; flex-direction: column; gap: 1px; }
.appstore-btn.coming-soon .as-small {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
}
.appstore-btn.coming-soon .as-big {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.05;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

.grid { display: grid; gap: 20px; }

/* ---------- iPhone device frame (sized BY the image, per D3) ----------
   The <img> is in normal flow (height:auto) and establishes the height; the
   bezel is padding around it. The frame therefore can never be taller than the
   screenshot, so it cannot overflow on narrow mobile widths. */
.device {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: #1c1c1e;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 0 0 2px #3a3a3c, 0 20px 50px rgba(26, 42, 107, 0.28);
}
.device .screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}
.device .screen img {
  display: block;
  width: 100%;
  height: auto;      /* image drives the height; no fixed height anywhere */
}
.device .island {
  position: absolute;
  top: 2.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3.4%;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero .tagline {
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.hero .subline {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.feature h2 { font-size: 1.5rem; margin: 0 0 12px; }
.feature .feature-shot { order: -1; }
.feature ul { margin: 0; padding-left: 0; list-style: none; }
.feature li {
  color: var(--ink-dim);
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ok);
  border-radius: 3px;
}

/* ---------- FAQ ---------- */
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.faq-item p { margin: 0; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pillar .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ok);
  font-weight: 700;
  margin-bottom: 8px;
}
.pillar h3 { margin: 0 0 8px; font-size: 1.25rem; }
.pillar p { margin: 0; }

/* ---------- Code blocks (privacy page) ---------- */
.summary-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}
.summary-box ul { margin: 8px 0 0; padding-left: 20px; }
.summary-box li { color: var(--ink-dim); margin-bottom: 6px; }

.ai-prompt {
  background: #0f1836;
  color: #e7ecf7;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}
.ai-prompt code {
  display: block;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: #e7ecf7;
}

.source-file { margin: 22px 0; }
.source-file h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
}
pre {
  margin: 0;
  background: #0f1836;
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
  max-height: 520px;
}
pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e7ecf7;
  white-space: pre;
}
details.source-file > summary {
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  list-style: revert;
}
details.source-file[open] > summary { margin-bottom: 10px; }

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.post-list .card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.post-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0 0 10px; }
.article h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.article p, .article li { color: var(--ink-dim); }
.article ul, .article ol { padding-left: 22px; }

/* Affiliate recommendation slot */
.affiliate-slot {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}
.affiliate-slot .aff-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warn);
  font-weight: 700;
}
.affiliate-slot h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.affiliate-slot p { margin: 0 0 12px; }
.affiliate-disclosure {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 28px 0;
  margin-top: 48px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.footer-inner a { color: var(--navy); }

/* ---------- Wider layouts (mobile-first: add columns above 820px) ---------- */
@media (min-width: 820px) {
  .hero { padding: 80px 0 56px; }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px 0;
  }
  .feature .feature-shot { order: 0; }
  .feature.reverse .feature-text { order: 2; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .post-list { grid-template-columns: 1fr 1fr; }
  .device { max-width: 300px; }
}
