:root {
  --eu-blue: #003399;
  --eu-blue-dark: #00256b;
  --eu-gold: #ffcc00;
  --ink: #0e1633;
  --body: #38415e;
  --muted: #6b7390;
  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --card: #ffffff;
  --line: #e3e7f3;
  --pro: #1a7f5a;
  --con: #b4452b;
  --balanced: #2b5fb4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 51, 153, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 51, 153, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }
.container.narrow { width: min(760px, 92vw); }

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

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero, .hero-glow, .hero-sweep, .star-ring, .euro-symbol {
    animation: none !important;
  }
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--eu-blue);
  text-decoration: none;
}
.brand-stars { color: var(--eu-gold); font-size: 1rem; }
.brand-dot { color: var(--muted); font-weight: 600; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--eu-blue); text-decoration: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 84px 0 96px;
  overflow: hidden;
  background: linear-gradient(135deg, #00256b 0%, #003399 35%, #0b1c54 65%, #00256b 100%);
  background-size: 300% 300%;
  animation: heroShift 20s ease infinite;
}
@keyframes heroShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
/* Icelandic flag blended into the blue EU backdrop */
.hero-iceland {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 18'%3E%3Crect width='25' height='18' fill='%2302529C'/%3E%3Crect x='7' width='4' height='18' fill='%23fff'/%3E%3Crect y='7' width='25' height='4' fill='%23fff'/%3E%3Crect x='8' width='2' height='18' fill='%23DC1E35'/%3E%3Crect y='8' width='25' height='2' fill='%23DC1E35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 78% 46%;
  background-size: 10.5% auto;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(90px 68px at 78% 46%, #000 45%, transparent 100%);
  mask-image: radial-gradient(90px 68px at 78% 46%, #000 45%, transparent 100%);
}
.date-section {
  background: linear-gradient(180deg, #f3f6ff 0%, #e9eefb 100%);
  padding: 56px 0;
}
.date-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 32px 36px 32px 32px;
  box-shadow: 0 18px 50px rgba(0, 37, 107, 0.14);
  overflow: hidden;
}
.date-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--eu-blue), var(--eu-gold));
}
.date-art {
  display: flex;
  justify-content: center;
}
.date-cartoon {
  width: 100%;
  max-width: 160px;
  height: auto;
}
.date-eyebrow {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--eu-blue);
}
.date-text {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
.date-text strong { color: var(--eu-blue); }
.date-text em { font-style: italic; color: var(--eu-blue-dark); }
.date-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a5578;
  max-width: 56ch;
}
@media (max-width: 700px) {
  .date-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px;
  }
  .date-msg { display: flex; flex-direction: column; align-items: center; }
}

.hero-glow {
  position: absolute;
  width: 640px; height: 640px;
  left: 60%; top: -14%;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.22), transparent 62%);
  filter: blur(8px);
  animation: floaty 13s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-26px, 22px); }
}
.hero-sweep {
  position: absolute;
  inset: -60%;
  background: linear-gradient(72deg, transparent 42%, rgba(255, 255, 255, 0.07) 50%, transparent 58%);
  animation: sweep 9s linear infinite;
}
@keyframes sweep {
  0% { transform: translateX(-28%); }
  100% { transform: translateX(28%); }
}

/* Rotating ring of EU stars */
.star-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform-origin: center;
  animation: spin 120s linear infinite;
}
.star-ring .star {
  position: absolute;
  left: 0; top: 0;
  color: var(--eu-gold);
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.hero-flag {
  left: 80%; top: 42%;
  opacity: 0.14;
  animation-duration: 165s;
}
.hero-flag .star { font-size: 26px; }
.hero-flag-2 {
  left: 14%; top: 78%;
  opacity: 0.1;
  animation: spinReverse 130s linear infinite;
}
.hero-flag-2 .star { font-size: 16px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--eu-gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--eu-gold); color: var(--eu-blue-dark); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 204, 0, 0.4); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-small { padding: 8px 16px; font-size: 0.85rem; background: var(--eu-blue); color: #fff; }
.hero-note { font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.hero-note strong { color: #fff; }
.hero-note .muted { color: rgba(255,255,255,0.55); }

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(6px);
}
.euro-badge {
  position: relative;
  width: 170px; height: 170px;
  margin: 4px auto 28px;
  display: grid;
  place-items: center;
}
.euro-stars {
  opacity: 0.95;
  animation: spinReverse 26s linear infinite;
}
.euro-stars .star { font-size: 15px; }
.euro-disc {
  position: relative;
  z-index: 1;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1f54c8, var(--eu-blue-dark));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255, 204, 0, 0.55), 0 14px 34px rgba(0, 0, 0, 0.3);
}
.euro-symbol {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--eu-gold);
  text-shadow: 0 0 18px rgba(255, 204, 0, 0.55);
  animation: euroGlow 3.6s ease-in-out infinite;
}
@keyframes euroGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(255, 204, 0, 0.45); }
  50% { text-shadow: 0 0 28px rgba(255, 204, 0, 0.9); }
}
.hero-facts { list-style: none; display: grid; gap: 14px; }
.hero-facts li {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
}
.hero-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-facts .num {
  font-weight: 800; font-size: 1.25rem; color: #fff; min-width: 78px;
}

/* ---------- SECTIONS ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--eu-blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-intro { max-width: 64ch; color: var(--body); margin-bottom: 44px; font-size: 1.05rem; }

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--body); font-size: 0.97rem; }

/* ---------- PRICE GRID ---------- */
input:focus { outline: 2px solid var(--eu-blue); outline-offset: 1px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.price-item:hover { transform: translateY(-3px); }
.price-item .pi-emoji { font-size: 1.7rem; }
.price-item .pi-label { font-size: 0.9rem; color: var(--ink); font-weight: 600; margin: 8px 0 14px; min-height: 2.4em; }
.pi-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pi-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef1fa;
}
.pi-side.pi-spain { background: #fff7d6; }
.pi-place { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; }
.pi-eur, .pi-eur-es { font-size: 1.35rem; font-weight: 800; color: var(--eu-blue); line-height: 1.1; }
.pi-side.pi-spain .pi-eur-es { color: #9a7b00; }
.pi-isk, .pi-sub { font-size: 0.78rem; color: var(--muted); }
.pi-diff {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--con);
  text-align: center;
  background: #fbe9e4;
  border-radius: 999px;
  padding: 5px 10px;
}

/* ---------- CALCULATOR ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.calc-inputs { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.field input {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}
.calc-results { display: grid; gap: 16px; align-content: center; }
.result-box {
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  gap: 4px;
}
.result-label { font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.result-value { font-size: 1.8rem; font-weight: 800; }
.result-sub { font-size: 0.85rem; opacity: 0.9; }
.result-is { background: #f0f2fa; color: var(--ink); }
.result-eu { background: #eaf3ff; color: var(--eu-blue); }
.result-save {
  background: linear-gradient(135deg, var(--eu-blue), var(--eu-blue-dark));
  color: #fff;
}
.result-save .result-value { color: var(--eu-gold); }

/* ---------- ARTICLES ---------- */
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card h3 { font-size: 1.08rem; color: var(--ink); line-height: 1.35; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--eu-blue); }
.article-card .src { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: -4px; }
.article-card p:last-child { font-size: 0.93rem; color: var(--body); }
.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-pro { background: #e3f5ec; color: var(--pro); }
.tag-con { background: #fbe9e4; color: var(--con); }
.tag-balanced { background: #e7eefb; color: var(--balanced); }

/* ---------- NEWS / FRÉTTAMOLAR ---------- */
.news-cta {
  margin-top: 30px;
  font-size: 0.98rem;
  color: var(--body);
}
.news-cta a { font-weight: 600; }

/* ---------- KEY PLAYERS ---------- */
.highlight {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, var(--eu-blue), var(--eu-blue-dark));
  color: #fff;
  border-radius: 20px;
  padding: 30px 34px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-lg);
}
.highlight-num {
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--eu-gold);
  line-height: 1;
  flex: none;
}
.highlight h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.highlight p { color: rgba(255, 255, 255, 0.88); font-size: 0.98rem; max-width: 70ch; }

.players-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.players { margin-bottom: 40px; }
.player-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--eu-blue), var(--eu-blue-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.players .card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.players .card h3 { margin-bottom: 0; }
.player-id {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.player-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex: none;
  border: 3px solid var(--eu-gold);
  background: #e8ecf6;
}
.player-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}
.player-from {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--body);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--eu-gold);
  color: var(--eu-blue-dark);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 14px;
  font-size: 1.4rem;
  color: var(--eu-blue);
  transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 18px; color: var(--body); }

.disclaimer { margin-top: 22px; font-size: 0.82rem; color: var(--muted); max-width: 70ch; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 48px 0;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.site-footer .muted { color: rgba(255,255,255,0.6); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .cards, .articles { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 6vw; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cards, .articles { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 70px; }
}
