/* =========================================================
   ЗАБЫТОЕ — design tokens
   Concept: a darkroom / photo-album world. The page itself
   behaves like a print on a darkroom table under a safelight —
   dark ambient room, warm paper-toned prints, a single red glow.
   ========================================================= */

:root {
  --bg:          #17130F;
  --surface:     #221D17;
  --surface-2:   #2B241C;
  --paper:       #EFE5D3;
  --paper-dim:   #DCD0B8;
  --accent:      #AC432C;
  --accent-hi:   #C85A3F;
  --text:        #F3ECE0;
  --text-muted:  #9C9184;
  --hairline:    rgba(243, 236, 224, 0.12);
  --hairline-strong: rgba(243, 236, 224, 0.22);

  --display: 'Fraunces', Georgia, serif;
  --body:    'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'IBM Plex Mono', 'SF Mono', monospace;

  --wrap: 1120px;
  --radius: 3px;
}

/* =========================================================
   Reset
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent-hi); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

/* subtle ambient grain over the whole page, like darkroom air */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent-hi); }

.btn--outline {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent-hi); color: var(--accent-hi); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 18px;
  border-color: var(--hairline);
}
.btn--ghost:hover { color: var(--text); border-color: var(--hairline-strong); }

.btn--small { font-size: 13px; padding: 9px 16px; }
.btn--large { padding: 18px 34px; font-size: 16px; }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 19, 15, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.06em;
}

/* =========================================================
   Hero
   ========================================================= */

.hero { padding: 64px 24px 96px; }

.proof-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.proof-bar__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 8px var(--accent-hi);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__headline {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 13ch;
}

.hero__sub {
  margin-top: 24px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 42ch;
}

.hero__cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__microcopy {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.hero__microcopy a {
  color: var(--accent-hi);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.hero__microcopy a:hover,
.hero__microcopy a:focus-visible {
  border-bottom-color: var(--accent-hi);
}

/* --- Hero photo-card mockup ---
   A CSS-only "print on the table": desaturated / still by default,
   warms and gains contrast on hover or focus — the one signature
   gesture of the page, echoing what the product actually does. */

.hero__visual { display: flex; justify-content: center; }

.photo-card { width: 100%; max-width: 360px; }

.photo-card--hero {
  transform: rotate(-2deg);
  cursor: pointer;
}

.photo-card__frame {
  background: var(--paper);
  padding: 14px 14px 46px;
  border-radius: 2px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 2px 0 rgba(0,0,0,0.2);
}

.photo-card__still {
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 140% at 30% 20%, #6b5a44 0%, #4b3d2e 42%, #2c2318 100%);
  filter: sepia(0.55) contrast(0.92) brightness(0.85) saturate(0.7);
  transition: filter 0.6s ease;
  overflow: hidden;
}
.photo-card__still::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
}

.photo-card--hero:hover .photo-card__still,
.photo-card--hero:focus-visible .photo-card__still,
.photo-card--hero.is-developed .photo-card__still {
  filter: sepia(0.15) contrast(1.05) brightness(1.05) saturate(1.05);
}

.photo-card__play {
  z-index: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(243,236,224,0.92);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  padding-left: 3px;
  transition: transform 0.3s ease;
}
.photo-card--hero:hover .photo-card__play { transform: scale(1.08); }

.photo-card__caption {
  position: absolute;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #4b4033;
  text-transform: uppercase;
}

/* =========================================================
   Process — filmstrip
   ========================================================= */

.process { padding: 40px 0 96px; }

.filmstrip {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 6px 0;
}

.filmstrip__sprockets {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--bg) 0, var(--bg) 8px,
    transparent 8px, transparent 26px
  );
  background-position: center;
}
.filmstrip__sprockets::before { content: ""; }

.filmstrip__frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 56px 24px;
}

.frame {
  padding: 0 40px;
  border-left: 1px solid var(--hairline);
}
.frame:first-child { border-left: none; padding-left: 0; }
.frame:last-child { padding-right: 0; }

.frame__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-hi);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.frame__title {
  font-size: 22px;
  margin-bottom: 6px;
}

.frame__lead {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.frame__body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing { padding: 20px 24px 100px; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.price-card--featured {
  background: var(--surface-2);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.price-card__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-card--featured .price-card__eyebrow { color: var(--accent-hi); }

.price-card__amount {
  font-family: var(--display);
  font-size: 40px;
  margin: 8px 0 4px;
}
.price-card__amount span {
  font-size: 16px;
  font-family: var(--body);
  color: var(--text-muted);
  font-weight: 500;
}

.price-card__detail {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 42px;
}

.price-card .btn { margin-top: auto; justify-content: center; }

.price-card__pay-methods {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.pricing__alt-note {
  margin-top: 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.pricing__alt-note a {
  color: var(--accent-hi);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.pricing__alt-note a:hover,
.pricing__alt-note a:focus-visible {
  border-bottom-color: var(--accent-hi);
}

/* =========================================================
   Closing CTA
   ========================================================= */

.closing {
  padding: 80px 24px 120px;
  text-align: center;
}

.closing__headline {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  max-width: 20ch;
  margin: 0 auto 40px;
}

.closing__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .photo-card--hero { max-width: 280px; margin: 0 auto; }

  .filmstrip__frames { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
  .frame { border-left: none; padding: 0; }

  .pricing__grid { grid-template-columns: 1fr; }

  .site-footer__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 20px 64px; }
  .hero__headline { max-width: none; }
}
