/* ViaSanto — statyczna strona marketingowa (ETAP 10.1).
   Bez CDN-ów: font systemowy zbliżony do appki (Nunito → zaokrąglony sans),
   paleta 1:1 z aplikacją (app/lib/core/theme/app_colors.dart). */

:root {
  --blue: #4CA0F8;
  --gold: #F0B03E;
  --magenta: #E8549F;
  --sky: #EAF4FF;
  --text: #2F2F2F;
  --text-soft: rgba(47, 47, 47, 0.62);
  --white: #FFFFFF;
  --radius-card: 24px;
  --radius-field: 16px;
  --shadow: 0 10px 30px rgba(76, 160, 248, 0.14);
  /* Nunito jest fontem appki; tu używamy najbliższego zaokrąglonego fontu
     systemowego (bez pobierania w runtime). */
  --font: "Nunito", "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(76, 160, 248, 0.14);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-cta {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%);
  padding: 56px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero p.sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-soft);
  margin: 0 0 28px;
  max-width: 30ch;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  padding: 16px 34px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(240, 176, 62, 0.32);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.04);
}

/* Grafika różańca (przerysowana z app/assets/icons/rosary.svg, złoto #F0B03E,
   na gradiencie nieba jak w appce). */
.hero-art {
  display: flex;
  justify-content: center;
}

.rosary-panel {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1 / 1.1;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--sky) 0%, var(--white) 78%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.rosary-panel svg {
  width: 72%;
  height: 82%;
  color: var(--gold);
  filter: drop-shadow(0 6px 14px rgba(240, 176, 62, 0.35));
}

/* ---------- Sekcja zalet ---------- */
section.features {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--text-soft);
  margin: 0;
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  border: 2px solid rgba(76, 160, 248, 0.32);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card .icon svg {
  width: 38px;
  height: 38px;
}

.card .icon.blue { color: var(--blue); }
.card .icon.gold { color: var(--gold); }
.card .icon.magenta { color: var(--magenta); }

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Sekcja „Wkrótce w sklepach" ---------- */
section.stores {
  background: var(--sky);
  padding: 64px 0;
  text-align: center;
}

section.stores h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 8px;
}

section.stores p.note {
  color: var(--text-soft);
  margin: 0 0 28px;
}

.badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Neutralne placeholdery — NIE oficjalne znaki Apple / Google. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid rgba(47, 47, 47, 0.14);
  border-radius: var(--radius-field);
  padding: 12px 22px;
  color: var(--text);
  min-width: 210px;
  text-align: left;
}

.badge .glyph {
  font-size: 26px;
  line-height: 1;
}

.badge .small {
  font-size: 12px;
  color: var(--text-soft);
  display: block;
}

.badge .big {
  font-size: 17px;
  font-weight: 800;
  display: block;
}

/* ---------- Stopka ---------- */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid rgba(76, 160, 248, 0.14);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 15px;
}

.footer-copy {
  color: var(--text-soft);
  font-size: 14px;
}

/* ---------- Podstrony prawne ---------- */
.legal-banner {
  background: #FFF4D6;
  border: 2px solid var(--gold);
  border-radius: var(--radius-field);
  padding: 16px 20px;
  margin: 24px 0 32px;
  font-weight: 700;
  color: #8a5b00;
}

.legal {
  padding: 40px 0 72px;
}

.legal .doc {
  max-width: 780px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 6px;
}

.legal .meta {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 34px 0 10px;
  padding-top: 8px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 20px 0 6px;
}

.legal p,
.legal li {
  color: var(--text);
  font-size: 16px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal a.back {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
}

.placeholder {
  background: rgba(232, 84, 159, 0.10);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 700;
  color: var(--magenta);
}

/* ---------- Responsywność ---------- */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.sub {
    margin-left: auto;
    margin-right: auto;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .nav-cta {
    padding: 9px 16px;
  }
}
