/* EuroConstat site — home page sections. */

.section { padding: 112px 0; }
.section--soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--muted); }

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: 300px;
  padding: 10px;
  border-radius: 50px;
  background: #0c1120;
  box-shadow: inset 0 0 0 2px #2b3352, inset 0 0 0 5px #0c1120, var(--shadow-lg);
}
.phone::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 50%;
  width: 31%;
  height: 25px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1170 / 2532;
  border-radius: 40px;
  background: #f7f8fc;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 152px;
  color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(2, 65, 177, .45), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  /* faint ring of EU stars behind the visual */
  content: "";
  position: absolute;
  top: 30px;
  right: -60px;
  width: 640px;
  height: 640px;
  background: url("/assets/img/stars-ring.svg") center / contain no-repeat;
  opacity: .1;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--white);
  font-size: 14px;
  font-weight: 550;
}
.hero-badge img { width: 26px; height: 26px; border-radius: 50%; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.03em; line-height: 1.04; }
.hero h1 .hl { color: var(--accent); display: block; }
.hero-lead { max-width: 560px; margin-top: 24px; font-size: 19px; line-height: 1.6; }
.hero .store-row { margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, .86); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.6; }

.hero-visual { position: relative; height: 620px; }
.hero-visual .form-sheet {
  position: absolute;
  top: 34px;
  left: 0;
  width: 400px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-7deg);
  background: var(--white);
}
.hero-visual .phone { position: absolute; top: 0; right: 30px; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 15px; font-weight: 650; }
.float-card span { color: var(--muted); }
.float-card .tile { width: 40px; height: 40px; }
.float-card--pdf { left: 6px; bottom: 70px; }
.float-card--live { right: -12px; top: 300px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  flex: none;
}
.tile--green { background: #e6f6ef; color: var(--success); }

/* ---------- Stats, overlapping the hero's bottom edge ---------- */

.stats { position: relative; z-index: 2; margin-top: -88px; }
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.stat { padding: 30px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--brand); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- How it works ---------- */

.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.step:hover { background: var(--soft); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-weight: 750;
  transition: background-color .25s ease, color .25s ease;
}
.step-title { display: block; color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.step-body { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.step.is-active { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.step.is-active .step-num { background: var(--brand); color: var(--white); }
.step-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--brand);
}
.step.is-active.is-playing .step-progress { animation: progress var(--step-ms, 6000ms) linear forwards; }
@keyframes progress { to { width: 100%; } }

.how-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 56px 0;
  border-radius: 32px;
  background:
    radial-gradient(420px 320px at 50% 30%, rgba(2, 65, 177, .16), transparent 70%),
    linear-gradient(180deg, var(--brand-50), #e4ecff);
}
.how-stage .phone-screen img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.how-stage .phone-screen img.is-active { opacity: 1; }

/* ---------- Official form ---------- */

.official-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.official-copy h2 { font-size: clamp(30px, 4vw, 44px); }
.official-copy > p { margin-top: 18px; font-size: 19px; color: var(--muted); }
.check-list { display: grid; gap: 22px; margin-top: 36px; }
.check-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.check-list h3 { font-size: 18px; }
.check-list p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.paper {
  position: relative;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.paper-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  border-radius: 6px;
}
.paper-crop::after {
  /* the form continues below: fade it out rather than cut it */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 92%);
}
.paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.paper figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.paper-stamp {
  position: absolute;
  right: -18px;
  top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--shadow);
}
.paper-stamp .icon { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Modes ---------- */

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.mode-card h3 { margin-top: 22px; font-size: 20px; }
.mode-card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.mode-card .tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow .25s ease, transform .25s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { margin-top: 20px; font-size: 18px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- Privacy band ---------- */

.privacy-band {
  padding: 104px 0;
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(37, 99, 235, .3), transparent 60%),
    var(--navy);
}
.privacy-band .eyebrow { color: var(--accent); }
.privacy-band h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); max-width: 640px; }
.privacy-band .lead { max-width: 620px; margin-top: 16px; font-size: 19px; }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.privacy-points li {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.privacy-points .tile { background: rgba(255, 204, 0, .12); color: var(--accent); }
.privacy-points h3 { margin-top: 20px; color: var(--white); font-size: 18px; }
.privacy-points p { margin-top: 8px; font-size: 16px; }
.privacy-band .text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--white); font-weight: 600; }
.privacy-band .text-link .icon { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; text-align: left; }
.faq-contact { margin-top: 24px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .25s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 40px 24px 0; color: var(--muted); }

/* ---------- Download CTA ---------- */

.cta { padding: 0 0 112px; }
.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 32px;
  color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(520px 320px at 0% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--navy-2) 100%);
}
.cta-card::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  background: url("/assets/img/stars-ring.svg") center / contain no-repeat;
  opacity: .16;
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card img.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), var(--shadow); }
.cta-card h2 { color: var(--white); font-size: clamp(26px, 3vw, 34px); }
.cta-card p { margin-top: 10px; font-size: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: 100%; max-width: 560px; height: 600px; margin: 0 auto; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .official-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid .section-head { position: static; }
  .float-card--live { right: 0; }
  .how-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .how-stage { padding: 36px 0; }
  .how-stage .phone { width: 230px; padding: 8px; border-radius: 38px; }
  .how-stage .phone-screen { border-radius: 31px; }
  .paper { max-width: 560px; margin: 0 auto; }
  .modes { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; text-align: left; gap: 24px; padding: 40px; }
}
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .modes, .features, .privacy-points { grid-template-columns: 1fr; }
  .paper-stamp { right: 12px; top: -18px; }

  /* Steps become a swipeable row of cards under the phone. */
  .how-grid { grid-template-columns: 1fr; gap: 20px; }
  .how-stage { order: -1; }
  .how-stage { padding: 28px 0; }
  .how-stage .phone { width: 210px; padding: 8px; border-radius: 36px; }
  .how-stage .phone-screen { border-radius: 29px; }
  .steps {
    position: relative;
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { display: flex; flex: 0 0 84%; scroll-snap-align: center; }
  .step { border-color: var(--line); background: var(--white); }
}
@media (max-width: 560px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 128px; }
  .hero-lead { font-size: 17px; }
  .hero-visual { height: 520px; }
  .hero-visual .form-sheet { width: 74%; top: 30px; }
  .hero-visual .phone { right: 0; width: 240px; padding: 8px; border-radius: 40px; }
  .hero-visual .phone .phone-screen { border-radius: 33px; }
  .phone::after { top: 17px; height: 20px; }
  .float-card--live { display: none; }
  .float-card--pdf { left: 0; bottom: 40px; }
  .stats-card { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .stat strong { font-size: 32px; }
  .stat span { font-size: 14px; }
  .step { padding: 18px 16px; gap: 14px; }
  .mode-card, .feature, .privacy-points li { padding: 24px; }
  .cta-card { padding: 32px 24px; border-radius: 24px; }
  .store-btn { height: 52px; padding: 0 16px 0 12px; }
  .store-btn strong { font-size: 17px; }
}
