/* ==========================================================================
   Photo Recovery App — Marketing site
   Brand: bright white/light theme, crimson-red accents, iOS-native feel
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --bg-3: #eeeef2;
  --card: #ffffff;
  --card-2: #f7f7fa;
  --line: rgba(17, 17, 20, 0.08);
  --line-2: rgba(17, 17, 20, 0.14);

  --text: #111114;
  --muted: #565660;
  --muted-2: #8a8a95;

  --red: #f5163b;
  --red-2: #ff3b5c;
  --red-soft: rgba(245, 22, 59, 0.09);
  --red-softer: rgba(245, 22, 59, 0.05);

  --green: #22c55e;

  --grad-red: linear-gradient(135deg, #ff3b5c 0%, #f5163b 100%);

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(17, 17, 20, 0.10);
  --shadow-red: 0 16px 40px rgba(245, 22, 59, 0.26);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.red { color: var(--red); }
.grad-text { background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem; padding: 15px 26px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(245,22,59,.38); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111114; border: 1px solid #111114; border-radius: 14px;
  padding: 10px 20px; color: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge .small { font-size: .68rem; color: #d7d7dd; line-height: 1; margin-bottom: 3px; }
.appstore-badge .big { font-size: 1.25rem; font-weight: 700; line-height: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span b { color: var(--red); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 18px; font-size: .9rem; }
@media (max-width: 820px) { .nav-links a:not(.nav-cta):not(.lang-link) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 74px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 440px at 82% 6%, rgba(245,22,59,.12), transparent 60%),
    radial-gradient(520px 400px at 8% 4%, rgba(255,59,92,.08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); border: 1px solid rgba(245,22,59,.20);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero p.lead { font-size: 1.18rem; color: #3f3f47; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-trust { display: flex; align-items: center; gap: 18px; color: var(--muted-2); font-size: .88rem; flex-wrap: wrap; }
.hero-trust .stars { color: var(--red); letter-spacing: 2px; }
.hero-trust b { color: var(--text); }

.phone-shot { position: relative; margin: 0 auto; max-width: 320px; filter: drop-shadow(0 30px 55px rgba(17,17,20,.22)); }
.phone-shot img { border-radius: 34px; border: 1px solid var(--line); }
.phone-glow {
  position: absolute; inset: -30px -30px 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(245,22,59,.18), transparent 72%); filter: blur(6px);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { max-width: none; margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .eyebrow { margin-inline: auto; }
}

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 30px 0; text-align: center; }
.stats .num { font-size: 1.9rem; font-weight: 800; }
.stats .lbl { color: var(--muted-2); font-size: .85rem; }
@media (max-width: 620px){ .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease; box-shadow: 0 1px 2px rgba(17,17,20,.04);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 16px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: .96rem; }
@media (max-width: 820px){ .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Screenshots ---------- */
#screenshots { background: var(--bg-2); }
.shots { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.shot { position: relative; text-align: center; }
.shot img { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease; }
.shot img:hover { transform: translateY(-6px); }
.shot p { margin-top: 16px; font-weight: 600; color: var(--text); font-size: .98rem; }
@media (max-width: 720px){ .shots { grid-template-columns: 1fr; max-width: 320px; } }

/* ---------- How it works / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: 0 1px 2px rgba(17,17,20,.04); }
.step .n {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--grad-red); box-shadow: var(--shadow-red); margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .96rem; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
#guides { background: var(--bg-2); }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; box-shadow: 0 1px 2px rgba(17,17,20,.04);
}
.guide-card:hover { transform: translateY(-4px); border-color: rgba(245,22,59,.4); box-shadow: var(--shadow); }
.guide-card .tag { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
.guide-card h3 { font-size: 1.12rem; margin: 0; }
.guide-card p { margin: 0; font-size: .93rem; flex-grow: 1; }
.guide-card .more { color: var(--red); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.guide-card:hover .more { gap: 10px; }
@media (max-width: 820px){ .guide-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; box-shadow: 0 1px 2px rgba(17,17,20,.04); }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; }
.faq-item h3::before { content: "Q"; color: var(--red); font-weight: 800; }
.faq-item p { margin: 0 0 12px; font-size: .96rem; }
.faq-item .more { color: var(--red); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.faq-item .more:hover { gap: 10px; }

/* ---------- CTA ---------- */
.cta-inner {
  background: var(--grad-red); border-radius: 28px; padding: 54px 40px; text-align: center;
  position: relative; overflow: hidden; color: #fff; box-shadow: var(--shadow-red);
}
.cta-inner .eyebrow { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.cta-inner h2 { margin-bottom: 12px; color: #fff; }
.cta-inner p { max-width: 52ch; margin: 0 auto 26px; font-size: 1.08rem; color: rgba(255,255,255,.92); }
.cta-inner .hero-cta { justify-content: center; }
.cta-inner .appstore-badge { background: #fff; border-color: #fff; color: #111114; }
.cta-inner .appstore-badge .small { color: #666; }
.cta-inner .appstore-badge .big { color: #111114; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: 0 0 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: .93rem; padding: 5px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--red); }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted-2); font-size: .85rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--red); }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Guide article pages ---------- */
.article-hero { padding: 54px 0 20px; position: relative; }
.article-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 340px at 80% 0%, rgba(245,22,59,.08), transparent 60%); }
.breadcrumb { font-size: .85rem; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.article { max-width: 760px; margin: 0 auto; padding: 20px 0 40px; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.article .lead { font-size: 1.15rem; color: #3f3f47; margin-bottom: 30px; }
.article h2 { font-size: 1.6rem; margin: 42px 0 14px; }
.article h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article p, .article li { color: #3f3f47; font-size: 1.02rem; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 9px; }
.article strong { color: var(--text); }
.article a.inline { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.callout { background: var(--red-softer); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 20px 22px; margin: 26px 0; }
.callout strong { color: var(--red); }

.step-block { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(17,17,20,.04); }
.step-block .n { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-red); }
.step-block h3 { margin: 0 0 6px; font-size: 1.08rem; }
.step-block p { margin: 0; font-size: .98rem; }

.inline-cta { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; margin: 44px 0; }
.inline-cta h3 { font-size: 1.4rem; margin-bottom: 8px; }
.inline-cta p { margin-bottom: 20px; }
.inline-cta .hero-cta { justify-content: center; }

.related { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 40px; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.related-grid a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-weight: 600; color: var(--text); transition: border-color .15s, transform .15s; box-shadow: 0 1px 2px rgba(17,17,20,.04); }
.related-grid a:hover { border-color: rgba(245,22,59,.4); transform: translateY(-2px); }
.related-grid a span { display: block; color: var(--muted-2); font-size: .85rem; font-weight: 400; margin-top: 4px; }
@media (max-width: 620px){ .related-grid { grid-template-columns: 1fr; } }

.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 34px; }
.toc strong { display: block; margin-bottom: 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.toc a { color: var(--muted); font-size: .95rem; padding: 4px 0; display: block; }
.toc a:hover { color: var(--red); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; display: inline-block; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--text); border-color: var(--red); }
.lang-switch[open] summary { color: var(--text); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; min-width: 168px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.lang-menu a { padding: 8px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lang-menu a:hover { background: var(--red-soft); color: var(--red); }
.lang-menu a.active { color: var(--red); background: var(--red-softer); }
