/* ─────────────────────────────────────────────────────────────────────────────
   Wedding Planner — strona produktu
   Kolory zgodne z motywem aplikacji (lib/core/theme/colors.dart).
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --gold:        #C49A0E;
  --gold-light:  #D4B84A;
  --gold-shine:  #D4AF37;
  --ink:         #1A1208;
  --ink-soft:    #5A4E3C;
  --cream:       #F5EDD8;
  --bg:          #FFFDF8;
  --bg-alt:      #FAF5E9;
  --surface:     #FFFFFF;
  --line:        #EADFC4;
  --on-gold:     #FFFFFF;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(26, 18, 8, .08);
  --shadow-lg: 0 24px 60px rgba(26, 18, 8, .16);
  --max:       1160px;
  --gutter:    clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --gold:     #D4B84A;
    --ink:      #F5EDD8;
    --ink-soft: #CBBFA5;
    --bg:       #14100A;
    --bg-alt:   #1C1710;
    --surface:  #221C14;
    --line:     #3A3022;
    --on-gold:  #1A1208;
    --shadow:    0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

/* ── Baza ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
p  { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold-shine); outline-offset: 3px; border-radius: 6px; }

/* ── Przyciski ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--on-gold); box-shadow: 0 8px 22px rgba(196, 154, 14, .35); }
.btn-gold:hover { box-shadow: 0 12px 28px rgba(196, 154, 14, .45); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-store {
  background: var(--ink); color: var(--bg); padding: .7em 1.3em; border-radius: 14px;
  min-width: 190px; justify-content: flex-start; text-align: left;
}
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; margin-bottom: 3px; }
.btn-store span { display: block; font-size: 1.05rem; }
.btn.is-soon { opacity: .55; cursor: default; transform: none; }
.btn.is-soon small { font-size: 0; }
.btn.is-soon small::after { content: "Wkrótce w"; font-size: .72rem; }

/* ── Nagłówek ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .96rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--gold); }
.nav .btn { padding: .65em 1.2em; color: var(--on-gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
/* Tło bez zdjęć: ornament dwóch splecionych obrączek + delikatny wzór kropek */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 280' fill='none' stroke='%23C49A0E'%3E%3Ccircle cx='155' cy='140' r='120' stroke-width='2'/%3E%3Ccircle cx='155' cy='140' r='108' stroke-width='.8'/%3E%3Ccircle cx='265' cy='140' r='120' stroke-width='2'/%3E%3Ccircle cx='265' cy='140' r='108' stroke-width='.8'/%3E%3C/svg%3E")
      right -60px center / min(760px, 90vw) auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='1.1' fill='%23C49A0E'/%3E%3C/svg%3E");
  opacity: .22;
  -webkit-mask-image: radial-gradient(80% 90% at 70% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(80% 90% at 70% 45%, #000 30%, transparent 85%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 78% 40%, rgba(212, 175, 55, .22), transparent 70%),
              radial-gradient(45% 50% at 10% 10%, rgba(212, 184, 74, .12), transparent 70%),
              linear-gradient(180deg, transparent 65%, var(--bg));
}
@media (max-width: 860px) {
  .hero::before { background-position: center 78%, 0 0; background-size: 120vw auto, auto; }
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }
.hero-note strong { color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
}

/* ── Makieta telefonu (do podmiany na prawdziwe zrzuty ekranu) ─────────────── */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19; margin: 0 auto;
  background: #0E0B06; border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 90px; height: 22px; border-radius: 12px; background: #0E0B06; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 34px; overflow: hidden; background: #FFFDF8; color: #1A1208;
  display: flex; flex-direction: column; font-size: 12px;
}
.ph-top { background: linear-gradient(140deg, #C49A0E, #D4B84A); color: #fff; padding: 52px 18px 20px; text-align: center; }
.ph-top .ph-names { font-family: var(--font-serif); font-size: 21px; font-weight: 600; }
.ph-top .ph-count { font-family: var(--font-serif); font-size: 46px; font-weight: 700; line-height: 1; margin-top: 8px; }
.ph-top .ph-sub { opacity: .9; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ph-body { padding: 14px; display: grid; gap: 10px; }
.ph-card { background: #fff; border: 1px solid #EADFC4; border-radius: 14px; padding: 10px 12px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.ph-row small { color: #8A7D63; font-weight: 500; }
.ph-bar { height: 6px; background: #F1E8D2; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: linear-gradient(90deg, #C49A0E, #D4B84A); border-radius: 6px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-tile { background: #FAF5E9; border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 10.5px; font-weight: 600; }
.ph-tile b { display: block; font-size: 18px; margin-bottom: 2px; }

/* ── Sekcje ───────────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Pasek z liczbami */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat b { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* Funkcje */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.3rem; margin-bottom: .35em; }
.feature p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.feature .tag { display: inline-block; margin-left: 6px; font: 700 .66rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid currentColor; border-radius: 999px; padding: 4px 7px; vertical-align: middle; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Jak to działa */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.3rem/1 var(--font-serif);
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--on-gold);
}
.step p { color: var(--ink-soft); }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* Dla kogo */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.audience-card.dark { background: #1A1208; color: #F5EDD8; border-color: #1A1208; }
.audience-card.dark p, .audience-card.dark li { color: #CBBFA5; }
.audience-card ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.audience-card li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.audience-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-shine); font-weight: 700; }
@media (max-width: 780px) { .audience { grid-template-columns: 1fr; } }

/* Plany */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); position: relative; }
.plan.featured::before {
  content: "Najczęściej wybierany"; position: absolute; top: -13px; left: 50%; translate: -50% 0; white-space: nowrap;
  background: var(--gold); color: var(--on-gold); font: 700 .7rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px;
}
.plan .emoji { font-size: 1.8rem; }
.plan h3 { margin: 8px 0 4px; }
.plan .tagline { color: var(--ink-soft); font-size: .92rem; min-height: 2.8em; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: .93rem; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.plan li.no { color: var(--ink-soft); opacity: .6; }
.plan li.no::before { content: "–"; color: inherit; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 560px)  { .plans { grid-template-columns: 1fr; } }
.plans-note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 28px; }
.plans-callout {
  display: flex; gap: 18px; align-items: flex-start; max-width: 760px; margin: 28px auto 0;
  padding: 22px 26px; border-radius: var(--radius); border: 1.5px dashed var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
}
.plans-callout .icon { font-size: 1.8rem; line-height: 1; }
.plans-callout h3 { margin: 0 0 .3em; font-size: 1.35rem; }
.plans-callout p { margin: 0; color: var(--ink-soft); }
.plans-callout a { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .plans-callout { flex-direction: column; gap: 8px; padding: 18px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* CTA / pobierz */
.cta {
  border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 6vw, 72px) var(--gutter);
  background: linear-gradient(135deg, #1A1208, #3A2B10); color: #F5EDD8; text-align: center;
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(212,175,55,.35), transparent 65%); pointer-events: none; }
.cta h2 { color: #fff; }
.cta p { color: #CBBFA5; max-width: 36em; margin: 0 auto 28px; }
.cta .stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; z-index: 1; }
.cta .btn-store { background: #fff; color: #1A1208; }
.cta .btn-ghost { color: #F5EDD8; }

/* Kontakt */
.contact { text-align: center; }
.contact a[data-email] { font-size: 1.3rem; font-weight: 600; }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--ink-soft); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* Animacje wejścia */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* Strony tekstowe (/usun-konto, w przyszłości polityka prywatności) */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal li { margin-bottom: .5em; color: var(--ink-soft); }
.legal li strong, .legal p strong { color: var(--ink); }
.legal p { color: var(--ink-soft); }
.legal .plans-callout { margin: 24px 0; }

/* Strony pomocnicze (/app, 404) */
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.center-page .card { max-width: 520px; }
.center-page .logo { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.center-page .stores { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; margin: 18px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
