/* DigitalSnap — /fotografos landing page
   Scoped under .fg so nothing here can leak into the studio or selfie screens.
   Reuses the --ds-* tokens defined at the top of selfie-styles.css.
   Deliberately image-free: the hero mock is CSS + SVG, so there is no LCP image
   to wait on and no layout shift.                                            */

.fg {
  font-family: var(--ds-font, "Inter", system-ui, sans-serif);
  color: var(--ds-ink, #0A1828);
  letter-spacing: -0.011em;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 8px;
}

/* Beat style.css, which paints every h1 cyan and every p 300-weight Poppins. */
.fg h1, .fg h2, .fg h3 { color: var(--ds-ink, #0A1828); font-family: inherit; }
.fg p, .fg li, .fg td, .fg th {
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
}

.fg-wrap { padding: 0 clamp(16px, 4vw, 40px); }
.fg-wrap-narrow { max-width: 800px; margin: 0 auto; }

.fg-sec {
  padding: clamp(40px, 6vw, 72px) 0;
  border-radius: var(--ds-radius, 18px);
  margin-bottom: 8px;
}
.fg-sec-alt { background: var(--ds-surface-2, #F4F3EE); }

.fg h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  max-width: 22ch;
}
/* The 40–60 word prose answer that follows every H2. This paragraph is the
   featured-snippet / AI-citation unit, so it is styled to be read, not skimmed. */
.fg-answer {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem) !important;
  line-height: 1.65;
  color: var(--ds-ink-2, #2C3E50);
  max-width: 68ch;
  margin: 0 0 32px;
}
.fg-note {
  font-size: 0.95rem !important;
  line-height: 1.6;
  color: var(--ds-mute, #6B7785);
  max-width: 68ch;
  margin: 24px 0 0;
}
.fg-note-warn {
  background: var(--ds-surface, #fff);
  border-left: 3px solid var(--ds-line-2, #D9D6CC);
  padding: 12px 16px;
  border-radius: 0 var(--ds-radius-sm, 12px) var(--ds-radius-sm, 12px) 0;
}

/* ---------------------------------- hero --------------------------------- */
.fg-hero {
  background: linear-gradient(165deg, #FFFFFF 0%, var(--ds-accent-soft, #E5F8FD) 100%);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius, 18px);
  padding: clamp(32px, 5vw, 64px) 0;
  margin-bottom: 8px;
}
.fg-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.fg-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-accent-ink, #003848);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-pill, 999px);
  padding: 6px 14px;
  margin: 0 0 20px;
}
.fg-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ds-success, #1F9D55);
  flex: none;
}
.fg h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.fg-lead {
  font-size: clamp(1.05rem, 1.9vw, 1.22rem) !important;
  line-height: 1.6;
  color: var(--ds-ink-2, #2C3E50);
  max-width: 54ch;
  margin: 0 0 28px;
}
.fg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--ds-radius-pill, 999px);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.fg-btn:active { transform: translateY(1px); }
.fg-btn-primary { background: var(--ds-ink, #0A1828); color: #fff; }
.fg-btn-primary:hover { background: #16263a; color: #fff; }
.fg-btn-ghost {
  background: var(--ds-surface, #fff);
  color: var(--ds-ink, #0A1828);
  border-color: var(--ds-line-2, #D9D6CC);
}
.fg-btn-ghost:hover { background: var(--ds-surface-2, #F4F3EE); color: var(--ds-ink, #0A1828); }
.fg-btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.fg-btn:focus-visible { outline: 3px solid var(--ds-accent, #0DCAF0); outline-offset: 2px; }

.fg-trustline {
  margin: 20px 0 0;
  font-size: 0.88rem !important;
  color: var(--ds-mute, #6B7785);
}
.fg-trustline span { color: var(--ds-mute-2, #A8B2BD); margin: 0 6px; }
.fg-trustline a { color: var(--ds-accent-ink, #003848); }

/* --------------------------- real product output -------------------------- */
/* The blur, the watermark and the sharp face are baked into the JPEGs by
   scripts/make_landing_images.py, which runs the product's own pipeline.
   Every <img> carries width/height, so none of this shifts on load.          */
.fg-flow {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(3px, 0.9vw, 8px);
  width: 100%;
  max-width: 470px;
}
.fg-flow-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.fg-flow-shot {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--ds-radius-sm, 12px);
  background: var(--ds-surface-2, #F4F3EE);
  box-shadow: var(--ds-shadow-md, 0 4px 12px rgba(10, 24, 40, 0.06));
}
.fg-flow-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the buyer's own input, ringed so it reads as the thing they provide */
.fg-flow-shot-selfie {
  box-shadow: 0 0 0 2px var(--ds-accent, #0DCAF0),
              var(--ds-shadow-md, 0 4px 12px rgba(10, 24, 40, 0.06));
}
/* the payment step is a beat in the sequence, not a photo, so it stays small */
.fg-flow-pay { flex: 0 0 auto; width: clamp(40px, 11%, 52px); padding-top: clamp(18px, 5vw, 40px); }
.fg-flow-icon {
  display: grid;
  place-items: center;
  width: clamp(34px, 9vw, 44px);
  height: clamp(34px, 9vw, 44px);
  border-radius: 50%;
  background: var(--ds-accent-soft, #E5F8FD);
  color: var(--ds-accent-ink, #003848);
}
.fg-flow-arrow {
  flex: 0 0 auto;
  align-self: flex-start;
  padding-top: clamp(24px, 7vw, 52px);
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  color: var(--ds-accent-ink, #003848);
  opacity: 0.45;
}
.fg-flow-label {
  font-size: clamp(0.56rem, 1.15vw, 0.68rem);
  line-height: 1.3;
  text-align: center;
  color: var(--ds-mute, #6B7785);
  text-wrap: balance;
}
/* #proteccion: shown at natural proportions, side by side */
.fg-shot-full {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ds-radius-sm, 12px);
  box-shadow: var(--ds-shadow-md, 0 4px 12px rgba(10, 24, 40, 0.08));
}

/* -------------------------------- proof --------------------------------- */
.fg-proof { padding: 4px 0 12px; }
.fg-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.fg-proof-item {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  padding: 18px 16px;
  text-align: center;
}
.fg-proof-item strong {
  display: block;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ds-accent-ink, #003848);
  margin-bottom: 4px;
}
.fg-proof-item span { font-size: 0.86rem; color: var(--ds-mute, #6B7785); line-height: 1.35; }

/* ------------------------------- 4 steps -------------------------------- */
.fg-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: none;
}
.fg-step {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  padding: 22px 20px;
}
.fg-step-num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ds-accent-soft, #E5F8FD);
  color: var(--ds-accent-ink, #003848);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.fg-step h3, .fg-card h3, .fg-verticals h3, .fg-compare-item h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.fg-step p, .fg-card p, .fg-verticals p, .fg-compare-item p {
  font-size: 0.92rem !important;
  line-height: 1.55;
  color: var(--ds-mute, #6B7785);
  margin: 0;
}

/* ------------------------------- benefits ------------------------------- */
.fg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fg-card {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  padding: 20px;
}
.fg-card h3 { padding-left: 26px; position: relative; }
.fg-card h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 15px; height: 3px;
  border-radius: 2px;
  background: var(--ds-danger, #D64545);
}

/* --------------------------- QR + studio panel --------------------------- */
/* .fg-tile is .fg-card without the red rule: those cards list tasks that go
   away, these list features that exist, and the marker would read as negative. */
.fg-tile {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  padding: 20px;
}
.fg-tile h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.fg-tile p {
  font-size: 0.92rem !important;
  line-height: 1.55;
  color: var(--ds-mute, #6B7785);
  margin: 0;
}
.fg-cards-4 { grid-template-columns: repeat(4, 1fr); }

.fg-qr-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.fg-qr-sample { margin: 0; text-align: center; }
.fg-qr-sample img {
  display: block;
  /* The card is A8 portrait, 1:sqrt(2) - not the square the bare QR used to be. Narrower
     than the old square so the taller shape does not out-height the two tiles beside it.
     The aspect ratio is stated here as well as in the img's width/height attributes: the
     attributes reserve the box before the file loads, this keeps the box right if the
     rendered card ever changes size. Both come from qr-sample.png - keep the three in step. */
  width: clamp(140px, 15vw, 176px);
  height: auto;
  aspect-ratio: 438 / 620;
  /* The figure's column is sized by whichever is wider, the card or its caption, and the
     caption usually wins. text-align does not move a block image, so centre it explicitly. */
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  box-shadow: var(--ds-shadow-sm, 0 1px 3px rgba(10, 24, 40, 0.06));
}
.fg-qr-sample figcaption {
  font-size: 0.72rem;
  color: var(--ds-mute, #6B7785);
  margin-top: 10px;
}
.fg-qr-kinds { display: grid; gap: 12px; align-content: start; }

/* ------------------------------ verticals ------------------------------- */
.fg-verticals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}
.fg-verticals li {
  padding: 14px 0;
  border-top: 1px solid var(--ds-line, #E6E4DD);
}

/* ------------------------------- earnings ------------------------------- */
.fg-example { margin: 0; }
.fg-example blockquote {
  margin: 0;
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-left: 4px solid var(--ds-accent, #0DCAF0);
  border-radius: 0 var(--ds-radius, 18px) var(--ds-radius, 18px) 0;
  padding: 24px 28px;
}
.fg-example blockquote p {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem) !important;
  line-height: 1.6;
  margin: 0;
}
.fg-example blockquote strong { color: var(--ds-accent-ink, #003848); }
.fg-example figcaption {
  font-size: 0.85rem;
  color: var(--ds-mute, #6B7785);
  margin-top: 10px;
}

/* ------------------------------ protection ------------------------------ */
.fg-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
}
.fg-compare-item .fg-shot-full { margin-bottom: 14px; }

/* ------------------------------ comparison ------------------------------ */
.fg-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fg-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  overflow: hidden;
  font-size: 0.92rem;
}
.fg-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ds-mute, #6B7785);
  padding: 0 0 10px;
}
.fg-table th, .fg-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ds-line, #E6E4DD);
  font-size: 0.92rem !important;
  line-height: 1.45;
}
.fg-table thead th {
  background: var(--ds-surface-2, #F4F3EE);
  font-weight: 700;
  white-space: nowrap;
}
.fg-table thead th:nth-child(2) { color: var(--ds-accent-ink, #003848); }
.fg-table tbody th { font-weight: 600; color: var(--ds-ink-2, #2C3E50); width: 22%; }
.fg-table tbody tr:last-child th, .fg-table tbody tr:last-child td { border-bottom: 0; }
.fg-table td { color: var(--ds-mute, #6B7785); }
.fg-table td.fg-yes {
  background: var(--ds-success-soft, #E8F5EC);
  color: #14532d;
  font-weight: 500;
}

/* ------------------------------- privacy -------------------------------- */
.fg-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 74ch; }
.fg-facts li {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  padding: 14px 18px;
  font-size: 0.95rem !important;
  line-height: 1.55;
  color: var(--ds-ink-2, #2C3E50);
}
.fg-facts strong { color: var(--ds-ink, #0A1828); }

/* -------------------------------- pricing ------------------------------- */
.fg-price-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.fg-price-item {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  padding: 18px 12px;
  text-align: center;
}
.fg-price-item strong {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}
.fg-price-item span { font-size: 0.82rem; color: var(--ds-mute, #6B7785); }
.fg-price-item-hi {
  background: var(--ds-ink, #0A1828);
  border-color: var(--ds-ink, #0A1828);
}
.fg-price-item-hi strong { color: #fff; }
.fg-price-item-hi span { color: rgba(255, 255, 255, 0.72); }

/* ---------------------------------- FAQ --------------------------------- */
.fg-faq { display: grid; gap: 8px; }
.fg-faq details {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E6E4DD);
  border-radius: var(--ds-radius-sm, 12px);
  padding: 4px 18px;
}
.fg-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 28px 14px 0;
  position: relative;
}
.fg-faq summary::-webkit-details-marker { display: none; }
.fg-faq summary h3 {
  display: inline;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.fg-faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ds-mute, #6B7785);
}
.fg-faq details[open] summary::after { content: "\2212"; }
.fg-faq details p {
  margin: 0 0 16px;
  font-size: 0.95rem !important;
  line-height: 1.65;
  color: var(--ds-ink-2, #2C3E50);
  max-width: 70ch;
}
.fg-faq summary:focus-visible { outline: 3px solid var(--ds-accent, #0DCAF0); outline-offset: 2px; }

/* ------------------------------- final CTA ------------------------------ */
.fg-final {
  background: linear-gradient(165deg, var(--ds-accent-soft, #E5F8FD) 0%, #FFFFFF 100%);
  border: 1px solid var(--ds-line, #E6E4DD);
  text-align: center;
}
.fg-final h2 { margin-left: auto; margin-right: auto; }
.fg-final .fg-answer { margin-left: auto; margin-right: auto; }
.fg-ask {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  display: inline-grid;
  gap: 6px;
  text-align: left;
}
.fg-ask li {
  font-size: 0.95rem !important;
  color: var(--ds-ink-2, #2C3E50);
  padding-left: 24px;
  position: relative;
}
.fg-ask li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ds-success, #1F9D55);
  font-weight: 700;
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 900px) {
  .fg-hero-grid { grid-template-columns: 1fr; }
  .fg-flow { max-width: 100%; margin-left: 0; justify-content: flex-start; }
  .fg-steps, .fg-cards, .fg-cards-4, .fg-price-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-qr-grid { grid-template-columns: 1fr; justify-items: center; }
  .fg-qr-kinds { width: 100%; }
  .fg-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-verticals { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fg h2 { max-width: none; }
  .fg-steps, .fg-cards, .fg-cards-4, .fg-price-grid, .fg-compare { grid-template-columns: 1fr; }
  .fg-cta-row .fg-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fg * { transition: none !important; }
}
