/* corner-pop — playful, artistic, urban retail. S5 Card catalog. */

@font-face {
  font-family: "Paytone One";
  src: url("assets/fonts/paytone-one-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("assets/fonts/karla-variable-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FFF6EA;
  --cream-deep: #F6E7D2;
  --cobalt: #2038C7;
  --cobalt-deep: #17298F;
  --bubblegum: #F7A8C4;
  --sun: #FFD166;
  --ink: #141634;
  --display: "Paytone One", Impact, "Arial Black", sans-serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; }

/* --- draft banner --- */
.demo-banner {
  display: block;
  background: var(--cobalt);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  text-align: center;
}
.demo-banner b { color: var(--sun); }

/* --- stickers --- */
.sticker {
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.sticker svg { display: block; width: 100%; height: 100%; }
.sticker--a { width: 78px; height: 78px; top: 88px; right: -18px; transform: rotate(-12deg); }
.sticker--b { width: 62px; height: 62px; bottom: 92px; left: -14px; transform: rotate(14deg); }
.sticker--c { width: 96px; height: 96px; top: 6px; right: -20px; opacity: 0.55; }
.sticker--d { width: 80px; height: 80px; top: 14px; right: -24px; transform: rotate(10deg); }
.sticker--e { width: 70px; height: 70px; top: -18px; right: 8px; transform: rotate(-8deg); }

/* --- hero (compact utility) --- */
.hero {
  position: relative;
  overflow: clip;
  padding: 0 1.1rem 0;
  background:
    radial-gradient(circle at 88% 4%, rgba(247,168,196,0.5) 0 22%, transparent 22.5%),
    var(--cream);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  padding: 1.1rem 0 0.4rem;
  position: relative;
  z-index: 1;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--cobalt);
  text-decoration: none;
}
.wordmark span { color: var(--bubblegum); margin-left: 0.2em; }
.topbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 700;
}
.topbar a { color: var(--cobalt-deep); text-decoration: none; border-bottom: 2px solid var(--bubblegum); }

.hero-inner { position: relative; z-index: 1; padding: 1.6rem 0 1.4rem; }
.eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin-bottom: 0.8rem;
}
.hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); margin: 0 0 1rem; color: var(--cobalt); }
.hero h1 em {
  font-style: normal;
  background: var(--bubblegum);
  color: var(--ink);
  padding: 0 0.14em;
  border-radius: 6px;
  display: inline-block;
  transform: rotate(-1.6deg);
}
.lede { max-width: 46ch; font-size: 1.03rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.3rem 0 0; }
.pill {
  display: inline-block;
  background: var(--cobalt);
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 3px solid var(--cobalt);
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill:hover { transform: translateY(-2px) rotate(-1deg); }
.pill--ghost { background: transparent; color: var(--cobalt-deep); }

.ticker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  list-style: none;
  margin: 0 -1.1rem;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticker li::before { content: "●"; color: var(--bubblegum); margin-right: 0.45em; }

/* --- section shells --- */
section { position: relative; overflow: clip; padding: 2.8rem 1.1rem; }
.section-head { position: relative; z-index: 1; max-width: 52ch; margin: 0 0 1.6rem; }
.section-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin-bottom: 0.5rem;
}
.section-label--light { color: var(--sun); }
.section-title { font-size: clamp(1.7rem, 7.2vw, 2.3rem); margin: 0 0 0.7rem; }
.section-lede { margin: 0; }

/* --- tile grid (the catalog) --- */
.tile-grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.tile {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.1rem;
  position: relative;
  box-shadow: 5px 5px 0 var(--ink);
}
.tile h3 { font-size: 1.2rem; margin: 0.5rem 0 0.5rem; }
.tile p { margin: 0 0 0.6rem; font-size: 0.95rem; }
.tile-badge {
  font-family: var(--display);
  font-size: 0.8rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  display: inline-block;
}
.tile-meta { font-weight: 800; font-size: 0.86rem !important; margin: 0 !important; letter-spacing: 0.03em; }
.tile--pink { background: var(--bubblegum); }
.tile--blue { background: var(--cobalt); color: var(--cream); }
.tile--blue .tile-badge { background: var(--cream); color: var(--cobalt-deep); }
.tile--cream { background: var(--cream-deep); }
.tile--yellow { background: var(--sun); }

/* --- viikon nostot (dark band) --- */
.nostot { background: var(--cobalt); color: var(--cream); }
.nostot .section-title { color: var(--cream); }
.list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.list li {
  display: grid;
  gap: 0.1rem 1rem;
  padding: 0.9rem 0;
  border-top: 2px dashed rgba(255,246,234,0.55);
}
.list li:last-child { border-bottom: 2px dashed rgba(255,246,234,0.55); }
.list-name { font-family: var(--display); font-size: 1.05rem; }
.list-note { font-size: 0.9rem; color: #E6DCF7; }
.list-price { font-weight: 800; color: var(--sun); }
.nostot-note { position: relative; z-index: 1; margin: 1.2rem 0 0; font-size: 0.85rem; color: #E6DCF7; }

/* --- tarina --- */
.tarina { background: var(--cream); }
.tarina-inner { position: relative; z-index: 1; max-width: 60ch; }
.tarina .section-title { color: var(--cobalt); }
.facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.facts li {
  background: var(--cream-deep);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.facts strong { font-family: var(--display); font-size: 1.4rem; color: var(--cobalt); }
.facts span { font-size: 0.9rem; }

/* --- yhteys --- */
.yhteys { background: var(--ink); color: var(--cream); }
.yhteys .section-title { color: var(--cream); }
.yhteys-grid { position: relative; z-index: 1; display: grid; gap: 0.9rem; }
.kortti {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  border: 3px solid var(--cream);
}
.kortti h3 { font-size: 1.15rem; margin: 0 0 0.7rem; color: var(--cobalt); }
.kortti p { font-size: 0.95rem; }
.kortti p:last-of-type { margin-bottom: 0; }
.kortti-meta { font-size: 0.85rem !important; color: #4A4C6B; }
.kortti--cta { background: var(--bubblegum); border-color: var(--bubblegum); }
.kortti--cta h3 { color: var(--ink); }
.kortti--cta .pill { margin-top: 0.4rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 2px dotted rgba(20,22,52,0.25); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 800; }
.hours dd { margin: 0; }

/* --- footer --- */
.footer {
  background: var(--cobalt-deep);
  color: var(--cream);
  padding: 2.2rem 1.1rem 1rem;
  text-align: center;
}
.footer-mark { font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.4rem; }
.footer .small { font-size: 0.85rem; color: #E6DCF7; }
.footer a { color: var(--sun); }

/* Tekoälyilmoitus (EU AI Act 50 art.) — ks. webpages/kit/ai-disclosure/. */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
}
.ai-note strong { font-weight: 600; }

/* --- larger screens --- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero { padding-inline: 2rem; }
  .ticker { margin-inline: -2rem; padding-inline: 2rem; }
  section { padding: 4rem 2rem; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .list li { grid-template-columns: 1fr 1fr auto; align-items: baseline; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .yhteys-grid { grid-template-columns: repeat(3, 1fr); }
  .sticker--a { width: 120px; height: 120px; right: 4%; }
  .sticker--b { width: 90px; height: 90px; left: 3%; }
  .sticker--c { width: 150px; height: 150px; right: 3%; }
  .sticker--d { width: 130px; height: 130px; right: 4%; top: 22px; }
  .sticker--e { width: 110px; height: 110px; right: 6%; }
}

@media (min-width: 1080px) {
  .hero, .hero > .topbar { }
  .hero { padding-inline: max(3rem, calc((100vw - 1180px) / 2)); }
  .ticker { margin-inline: calc(-1 * max(3rem, (100vw - 1180px) / 2)); padding-inline: max(3rem, calc((100vw - 1180px) / 2)); }
  section { padding-inline: max(3rem, calc((100vw - 1180px) / 2)); padding-block: 5rem; }
  .footer { padding-inline: max(3rem, calc((100vw - 1180px) / 2)); }
  .hero h1 { font-size: 4.4rem; max-width: 16ch; }
  .hero-inner { padding: 2.6rem 0 2rem; }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 2.7rem; }
  .topbar { padding-top: 1.6rem; }
  .topbar ul { margin-left: auto; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .pill:hover { transform: none; }
}
