/* Pictura – AI Photo Enhancer — landing + guides stylesheet */
:root {
  --bg: #0b1020;
  --bg-soft: #111832;
  --card: #151d3b;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef1fb;
  --text-dim: #a7b0cf;
  --pink: #ff2d87;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --gradient: linear-gradient(100deg, var(--pink), var(--purple) 50%, var(--cyan));
  --radius: 20px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .container {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--gradient);
  color: #fff !important; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 420px at 18% 20%, rgba(255, 45, 135, 0.22), transparent 65%),
    radial-gradient(700px 480px at 82% 12%, rgba(34, 211, 238, 0.18), transparent 65%),
    radial-gradient(640px 520px at 55% 45%, rgba(168, 85, 247, 0.20), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero .container { grid-template-columns: 1fr; } }

.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 12px 40px rgba(168, 85, 247, 0.45); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { margin: 18px 0 26px; font-size: 1.13rem; color: var(--text-dim); max-width: 34em; }
.hero .tagline strong { color: var(--text); font-weight: 600; }

.store-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.store-cta .badge-link img { width: 180px; height: 60px; }
.store-cta .badge-link:hover { opacity: 0.9; }

.rating-pill {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-size: 0.86rem; color: var(--text-dim);
}
.rating-pill .stars { color: #ffc531; font-size: 1rem; letter-spacing: 2px; }
.rating-pill strong { color: var(--text); }

.hero-shot { justify-self: center; position: relative; }
.hero-shot img {
  width: min(320px, 78vw);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--card-border);
}

.trust-strip {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  padding: 26px 0 8px;
  color: var(--text-dim); font-size: 0.92rem;
}
.trust-strip span strong { color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 14px; }
.section-intro { color: var(--text-dim); max-width: 46em; margin-bottom: 40px; }

/* ---------- Download band ---------- */
.download-band { padding: 40px 0; }
.download-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px;
  background: linear-gradient(120deg, rgba(255, 45, 135, 0.14), rgba(168, 85, 247, 0.14) 50%, rgba(34, 211, 238, 0.14));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 34px;
}
.download-panel img.dl-icon { width: 64px; height: 64px; border-radius: 15px; }
.download-panel .dl-text { flex: 1 1 260px; }
.download-panel .dl-text h2 { font-size: 1.35rem; margin-bottom: 4px; }
.download-panel .dl-text p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Screenshots ---------- */
.shots-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 62vw);
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot { scroll-snap-align: start; }
.shot img {
  border-radius: 24px;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.shot figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.45; }
.shot figcaption strong { color: var(--text); display: block; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: var(--gradient); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tool-chips span {
  font-size: 0.85rem; color: var(--text-dim);
  border: 1px solid var(--card-border); background: var(--bg);
  padding: 7px 14px; border-radius: 999px;
}

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.guide-card {
  display: block;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, 0.55); text-decoration: none; }
.guide-card .guide-tag {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guide-card h3 { font-size: 1.08rem; margin: 8px 0 8px; line-height: 1.35; }
.guide-card p { font-size: 0.9rem; color: var(--text-dim); }
.guide-card .more { display: inline-block; margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--cyan); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 18px 48px 18px 22px; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--purple); transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .faq-a { padding: 0 22px 20px; color: var(--text-dim); font-size: 0.97rem; }
.faq-list .faq-a a { font-weight: 600; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; padding: 90px 0; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 320px at 30% 80%, rgba(255, 45, 135, 0.18), transparent 65%),
    radial-gradient(520px 320px at 72% 20%, rgba(34, 211, 238, 0.16), transparent 65%);
  pointer-events: none;
}
.cta-final .container { position: relative; }
.cta-final img.cta-icon { width: 88px; height: 88px; border-radius: 21px; margin: 0 auto 24px; box-shadow: 0 14px 44px rgba(168, 85, 247, 0.5); }
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { color: var(--text-dim); margin-bottom: 28px; }
.cta-final .store-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: #080c18;
  padding: 52px 0 40px;
  font-size: 0.9rem; color: var(--text-dim);
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 820px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h4 { color: var(--text); font-size: 0.95rem; margin-bottom: 12px; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--text-dim); }
.footer-cols a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-note { border-top: 1px solid var(--card-border); padding-top: 22px; font-size: 0.82rem; }

/* ---------- Guide article pages ---------- */
.article-hero { padding: 60px 0 30px; position: relative; overflow: hidden; }
.article-hero::before {
  content: ""; position: absolute; inset: -60% -20% auto;
  height: 150%;
  background:
    radial-gradient(560px 380px at 20% 20%, rgba(168, 85, 247, 0.16), transparent 65%),
    radial-gradient(560px 380px at 80% 10%, rgba(34, 211, 238, 0.12), transparent 65%);
  pointer-events: none;
}
.article-hero .container { position: relative; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-dim); }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; max-width: 24em; }
.article-meta { margin-top: 14px; color: var(--text-dim); font-size: 0.88rem; }

.article { padding: 10px 0 60px; }
.article .container { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .article .container { grid-template-columns: 1fr; } }

.article-body { max-width: 46em; font-size: 1.04rem; }
.article-body h2 { font-size: 1.5rem; margin: 42px 0 14px; }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: #cdd4ec; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #cdd4ec; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--text); }

.quick-answer {
  background: linear-gradient(120deg, rgba(255, 45, 135, 0.12), rgba(168, 85, 247, 0.12) 50%, rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px; padding: 20px 24px; margin: 26px 0 8px;
}
.quick-answer p { margin: 0; color: var(--text); }
.quick-answer .qa-label {
  display: block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.article-aside { position: sticky; top: 84px; display: grid; gap: 20px; }
.aside-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.aside-card img.aside-icon { width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 14px; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.aside-card p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 16px; }
.aside-card .stars { color: #ffc531; letter-spacing: 2px; font-size: 0.95rem; }
.aside-card .rating-note { font-size: 0.8rem; color: var(--text-dim); margin: 4px 0 14px; }
.aside-card .badge-link img { width: 160px; height: 53px; margin: 0 auto; }
.aside-shot img { border-radius: 22px; border: 1px solid var(--card-border); }
@media (max-width: 960px) { .article-aside { position: static; } .aside-shot { display: none; } }

.step-list { counter-reset: hstep; list-style: none; margin: 20px 0 26px !important; }
.step-list > li {
  position: relative; padding-left: 54px; margin-bottom: 20px !important;
}
.step-list > li::before {
  counter-increment: hstep; content: counter(hstep);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; font-weight: 800;
}
.step-list h3 { margin: 0 0 6px !important; }
.step-list p { margin-bottom: 0; }

.related-guides { margin-top: 46px; }
.related-guides h2 { margin-bottom: 18px; }
.related-guides ul { list-style: none; margin-left: 0 !important; }
.related-guides li { margin-bottom: 10px; }
.related-guides a { font-weight: 600; }

.inline-cta {
  margin: 34px 0; padding: 26px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.inline-cta img.inline-icon { width: 56px; height: 56px; border-radius: 13px; }
.inline-cta .inline-text { flex: 1 1 220px; }
.inline-cta .inline-text strong { display: block; margin-bottom: 2px; }
.inline-cta .inline-text span { font-size: 0.88rem; color: var(--text-dim); }
.inline-cta .badge-link img { width: 150px; height: 50px; }
