/* Timoula landing — built from scratch on Open Design's saas-landing skill +
   `linear-app` DESIGN.md (https://github.com/nexu-io/open-design, Apache-2.0).
   Light theme adaptation: warm neutrals, single orange accent, tight tracking. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --subtle: #f5f4f0;
  --subtle-2: #f0efe9;

  --text: #1c1917;
  --text-2: #44403c;
  --text-3: #78716c;
  --text-4: #a8a29e;

  --border: #e7e5e4;
  --border-strong: #d6d3d1;

  --accent: #c2410c;
  --accent-hover: #ea580c;
  --accent-soft: #fff1ea;

  --green: #15803d;

  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;

  --shadow-1: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-2: 0 4px 16px rgba(28, 25, 23, 0.06);
  --shadow-3: 0 12px 36px rgba(28, 25, 23, 0.1);

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-feature-settings: "cv01", "ss03";
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, svg { max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
@media (max-width: 720px) {
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

/* ===== Top nav ===== */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.08);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  background: var(--subtle);
  border: 1px solid var(--border);
}
.lang button {
  font: inherit;
  font-size: 13px;
  font-weight: 510;
  padding: 6px 12px;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-3);
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang button:hover { color: var(--text); }
.lang button[aria-current="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  gap: 56px;
  padding: 72px 0 88px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; padding: 96px 0 112px; }
}
@media (max-width: 720px) {
  .hero { padding: 32px 0 56px; gap: 40px; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 14ch;
}

.hero .lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-3);
  max-width: 36rem;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  margin-bottom: 28px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.hero-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.hero-stat__lab {
  display: block;
  font-size: 12px;
  font-weight: 510;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.hero-stat__sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

/* ===== Buttons ===== */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-2);
  font-weight: 510;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(194, 65, 12, 0.18);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--subtle); border-color: var(--text-3); }
.btn--coming { opacity: 0.7; cursor: default; }
.btn--coming:hover { background: var(--surface); border-color: var(--border-strong); }
.btn__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.btn__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn__sub {
  font-size: 11px;
  font-weight: 510;
  letter-spacing: 0.02em;
  opacity: 0.75;
  margin-top: 1px;
}
.btn-primary .btn__sub { opacity: 0.85; }

/* ===== Hero visual: animated blobs + 3D-tilt phones + orbiting chips ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
  perspective: 1200px;
}
@media (max-width: 959px) { .hero-visual { min-height: 500px; } }
@media (max-width: 720px) { .hero-visual { min-height: 440px; } }

.hero-blob {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
  will-change: transform, translate;
  --blob-shift: 0px;
  translate: 0 var(--blob-shift);
}
.hero-blob--a {
  background: radial-gradient(circle at 32% 30%, rgba(234, 88, 12, 0.45), rgba(234, 88, 12, 0) 60%);
  animation: blobMorphA 18s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.hero-blob--b {
  background: radial-gradient(circle at 70% 65%, rgba(251, 191, 36, 0.30), rgba(251, 191, 36, 0) 60%);
  animation: blobMorphB 22s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes blobMorphA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(22px, -18px, 0) scale(1.08); }
  66%      { transform: translate3d(-16px, 20px, 0) scale(0.94); }
}
@keyframes blobMorphB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(-20px, 14px, 0) scale(0.96); }
  66%      { transform: translate3d(18px, -14px, 0) scale(1.06); }
}

.hero-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 1;
  width: min(300px, 72vw);
  transform-style: preserve-3d;
  animation: stageBob 7s ease-in-out infinite;
}
@keyframes stageBob {
  0%, 100% { transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, 0, 0); }
  50%      { transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, -8px, 0); }
}

.shot {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  background: transparent;
  vertical-align: top;
  filter: drop-shadow(0 28px 56px rgba(28, 25, 23, 0.22));
}
.shot--front {
  z-index: 2;
  width: 100%;
}
.shot--back {
  position: absolute;
  top: -8%;
  right: -24%;
  width: 78%;
  transform: rotate(7deg);
  opacity: 0.92;
  z-index: 1;
}
@media (max-width: 720px) {
  .shot--back { display: none; }
}

/* Orbiting floating chips */
.floater {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow:
    0 12px 32px -10px rgba(28, 25, 23, 0.22),
    0 4px 10px -4px rgba(28, 25, 23, 0.08);
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--text);
  opacity: 0;
  animation:
    floaterIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    floatBob 5.5s ease-in-out infinite;
}
.floater img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}
.floater--store span:last-child {
  font-variant-numeric: tabular-nums;
}
.floater--store.floater--best {
  background: var(--accent-soft);
  border-color: rgba(194, 65, 12, 0.28);
}
.floater--store.floater--best span:last-child {
  color: var(--accent);
  font-weight: 600;
}
.floater--skl { top: 5%; left: -20%; animation-delay: 0.2s, 0.25s; }
.floater--ab { top: 22%; right: -22%; animation-delay: 0.35s, 0.75s; }
.floater--lidl { top: 40%; right: -14%; animation-delay: 0.5s, 1.2s; }
.floater--masoutis { bottom: 20%; left: -18%; animation-delay: 0.65s, 1.55s; }
.floater--mymarket { bottom: 4%; right: -6%; animation-delay: 0.8s, 1.9s; }
@keyframes floaterIn {
  0%   { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.92); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes floatBob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
@media (max-width: 720px) {
  /* On phones the chips cover too much of the screenshot — hide them. */
  .floater { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .hero-stage,
  .floater { animation: none !important; }
  .floater { opacity: 1; }
}

/* ===== Showcase (3 real screenshots) ===== */
.showcase {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .showcase { padding: 48px 0 56px; } }
.showcase .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.showcase .section-head p { margin-left: auto; margin-right: auto; }
.showcase__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .showcase__row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  /* Swipeable carousel: horizontal scroll-snap, the next slide peeks. */
  .showcase__row {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    max-width: none;
    padding: 6px 20px 20px;
    margin: 0 -18px;
    scroll-padding-left: 20px;
  }
  .showcase__row::-webkit-scrollbar { display: none; }
  .showcase__shot {
    flex: 0 0 auto;
    width: 72vw;
    max-width: 280px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}
.showcase__shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.showcase__shot img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  display: block;
  box-shadow:
    0 30px 60px -20px rgba(28, 25, 23, 0.32),
    0 8px 20px -8px rgba(28, 25, 23, 0.14);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase__shot:hover img { transform: translateY(-4px); }
.showcase__shot figcaption {
  font-size: 13px;
  font-weight: 510;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.section-head--center { text-align: center; max-width: 40rem; }

/* ===== Trust band (store logos) ===== */
.trust {
  padding: 56px 0 16px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .trust { padding: 40px 0 8px; } }
.trust__title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 32px;
}
.trust__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 12px 16px;
  border-radius: var(--r-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.trust__cell:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.trust__logo {
  max-height: 30px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.92;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.trust__cell:hover .trust__logo { filter: none; opacity: 1; }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marqueeRoll 38s linear infinite;
  will-change: transform;
}
.marquee__track .trust__cell {
  flex: 0 0 auto;
  width: 168px;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ===== Features ===== */
.features {
  padding: 88px 0 96px;
}
@media (max-width: 720px) { .features { padding: 56px 0 64px; } }
.section-head {
  max-width: 38rem;
  margin: 0 0 56px;
}
@media (max-width: 720px) { .section-head { margin-bottom: 36px; } }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.section-head p {
  font-size: 1.0625rem;
  color: var(--text-3);
  line-height: 1.55;
}

/* ===== Bento: asymmetric tile grid where every card SHOWS the feature ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}
@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
.bento__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.bento__tile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}
.bento__tile--compare { grid-column: span 2; }
.bento__tile--greece  { grid-column: span 2; background: var(--subtle); }
@media (max-width: 880px) {
  .bento__tile--compare,
  .bento__tile--greece { grid-column: auto; }
}
.bento__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 38ch;
}
.bento__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.bento__tile h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 590;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
}
.bento__tile p {
  font-size: 0.9375rem;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 2px;
}
.bento__viz {
  margin-top: 22px;
  flex: 1;
  min-height: 0;
}

/* — Tile 01: live comparison table — */
.cmp {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmp__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cmp__product {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 590;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cmp__unit { font-size: 11px; color: var(--text-4); letter-spacing: 0.04em; text-transform: uppercase; }
.cmp__rows { display: grid; gap: 6px; }
.cmp__row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-2);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.cmp__row--best {
  background: var(--accent-soft);
  border-color: rgba(194, 65, 12, 0.18);
  animation: bestPulse 2.6s ease-in-out infinite;
}
@keyframes bestPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(194, 65, 12, 0.08); }
}
.cmp__logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.cmp__store { font-size: 13px; font-weight: 510; color: var(--text-2); }
.cmp__price {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 590;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cmp__row--best .cmp__price { color: var(--accent); }
.cmp__badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

/* — Tile 02: mini watchlist — */
.wlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 14px 16px;
}
.wlist__row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.wlist__row + .wlist__row { border-top: 1px solid var(--border); }
.wlist__dot { width: 8px; height: 8px; border-radius: 50%; }
.wlist__dot--down  { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12); }
.wlist__dot--alert { background: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12); animation: alertPulse 1.6s ease-out infinite; }
.wlist__dot--flat  { background: var(--text-4); }
.wlist__name { font-size: 13px; font-weight: 510; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlist__delta {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 2px 8px;
  border-radius: 999px;
}
.wlist__delta--down  { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.wlist__delta--alert { background: rgba(194, 65, 12, 0.14); color: var(--accent); }
.wlist__delta--flat  { background: var(--subtle-2); color: var(--text-3); }
.wlist__footer { padding-top: 8px; border-top: 1px dashed var(--border); margin-top: 4px; }
.wlist__savings {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 590;
  color: var(--text);
}
@keyframes alertPulse {
  0%   { box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12); }
  70%  { box-shadow: 0 0 0 9px rgba(194, 65, 12, 0);   }
  100% { box-shadow: 0 0 0 0  rgba(194, 65, 12, 0);   }
}

/* — Tile 03: price history sparkline — */
.hist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 16px 18px 14px;
}
.hist__chart { width: 100%; }
.hist__chart svg { display: block; width: 100%; height: 70px; }
.hist__line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.bento__tile--history.visible .hist__line {
  animation: drawLine 1.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hist__dot {
  opacity: 0;
}
.bento__tile--history.visible .hist__dot {
  animation: dotIn 0.35s 1.5s ease-out forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes dotIn    { to { opacity: 1; } }
.hist__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.hist__delta-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.hist__delta-lab {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* — Tile 04: store cluster — */
.cluster {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cluster__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
.cluster__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 10px;
  border-radius: var(--r-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, z-index 0s;
}
.cluster__cell img {
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.92;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.cluster__cell:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: var(--shadow-2);
  z-index: 2;
}
.cluster__cell:hover img { filter: none; opacity: 1; }
@media (max-width: 520px) {
  .cluster__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Reveal handling for the bento tiles (uses --i stagger) */
.bento__tile.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.bento__tile.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cmp__row--best,
  .wlist__dot--alert { animation: none; }
  .hist__line { stroke-dasharray: 0; stroke-dashoffset: 0; }
  .hist__dot { opacity: 1; }
}

/* ===== Closing CTA ===== */
.closing {
  padding: 0 0 96px;
}
@media (max-width: 720px) { .closing { padding-bottom: 56px; } }
.closing__card {
  border-radius: var(--r-4);
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  color: #fafaf9;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .closing__card { padding: 48px 28px; }
}
.closing__card::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.25), transparent 60%);
  pointer-events: none;
}
.closing__card .eyebrow {
  color: #fdba74;
  margin-bottom: 14px;
}
.closing__card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
}
.closing__card p {
  font-size: 1.0625rem;
  color: #d6d3d1;
  margin: 0 auto 28px;
  max-width: 36rem;
  position: relative;
}
.closing__card .cta-row {
  justify-content: center;
  position: relative;
}
.closing__card .btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}
.closing__card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.closing__card .btn-primary {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.closing__card .btn-primary:hover {
  background: #f97316;
  border-color: #f97316;
}

/* ===== Footer ===== */
footer {
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 14px;
}
.footer-brand strong {
  color: var(--text);
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  font-weight: 510;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-support {
  font-size: 13px;
  color: var(--text-4);
  margin-top: 6px;
}
.footer-support a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 510;
}
.footer-support a:hover { text-decoration: underline; }

/* =========================================================
   Legal / sub-pages (contact, privacy, cookies, terms)
   ---------------------------------------------------------
   Re-uses landing tokens. Two-col layout on wide screens
   (sticky policy index + article); single column on phones.
   ========================================================= */
.legal-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 96px;
}
@media (min-width: 880px) {
  .legal-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
    padding: 64px 0 120px;
  }
}

.legal-nav { align-self: start; }
@media (min-width: 880px) {
  .legal-nav { position: sticky; top: 28px; }
}
.legal-nav__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.legal-nav__list {
  display: grid;
  gap: 2px;
}
.legal-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-2);
  font-size: 14px;
  font-weight: 510;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.legal-nav__item:hover { background: var(--subtle); color: var(--text); }
.legal-nav__item[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.legal-nav__item .legal-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}
.legal-nav__item[aria-current="page"] .legal-nav__dot { opacity: 1; }
@media (max-width: 879px) {
  .legal-nav__title { display: none; }
  .legal-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: -4px;
  }
  .legal-nav__item { padding: 8px 14px; white-space: nowrap; }
  .legal-nav__item .legal-nav__dot { display: none; }
}

.legal {
  min-width: 0;
}
.legal__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 32px;
}
.legal__header {
  padding-bottom: 28px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.legal__header .eyebrow { margin-bottom: 14px; }
.legal__header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 28ch;
}
.legal__lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 62ch;
}
.legal__meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-4);
  letter-spacing: 0.02em;
}
.legal__body {
  width: 100%;
}
.legal__content > .contact-card + .legal__body {
  margin-top: 36px;
}
.legal__body section + section { margin-top: 32px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 590;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}
.legal__body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 10px;
  max-width: none;
}
.legal__body p:last-child { margin-bottom: 0; }
.legal__body p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 510;
  border-bottom: 1px solid rgba(194, 65, 12, 0.32);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal__body p a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* Contact-page extras: full-width email CTA card */
.contact-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-1);
  border-left: 3px solid var(--accent);
}
.contact-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-card__email {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 590;
  letter-spacing: -0.022em;
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
  word-break: break-word;
}
.contact-card__email:hover { color: var(--accent); border-bottom: none; }
.contact-card__hint {
  font-size: 14px;
  color: var(--text-3);
}
.contact-card__label--social {
  margin-top: 20px;
}
@media (max-width: 720px) {
  .contact-card {
    padding: 22px 20px;
  }
  .legal__content > .contact-card + .legal__body {
    padding-top: 28px;
  }
}

/* =========================================================
   Mobile / narrow-screen overrides
   ---------------------------------------------------------
   Goal: every section reads cleanly from 320px up. Tap
   targets ≥40px, no horizontal scroll, lighter motion so
   the page stays snappy on cheap Android.
   ========================================================= */
@media (max-width: 720px) {
  /* Top nav: touch-friendly lang toggle, slimmer bar */
  .topnav { padding: 14px 0; gap: 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand__mark { width: 28px; height: 28px; }
  .lang { padding: 3px; }
  .lang button {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
    min-width: 44px;
  }

  /* Hero: tighter type, smaller phone stage, lighter blobs */
  .hero { padding: 24px 0 48px; gap: 36px; }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    letter-spacing: -0.025em;
    max-width: none;
    margin-bottom: 14px;
  }
  .hero .lead { font-size: 1rem; margin-bottom: 22px; }
  .hero-stats {
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 22px;
  }
  .hero-stat__num { font-size: 1.25rem; }
  .hero-stat__lab { font-size: 11px; }

  .hero-visual { min-height: 0; }
  .hero-stage { width: min(260px, 78vw); }
  .hero-blob { filter: blur(40px); opacity: 0.85; }
  .floater {
    font-size: 12px;
    padding: 7px 10px;
    gap: 6px;
  }
  .floater img { width: 16px; height: 16px; }

  /* CTAs: stack 50/50 — feels native on phones */
  .cta-row { gap: 10px; width: 100%; }
  .hero .cta-row .btn,
  .closing__card .cta-row .btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .btn { padding: 12px 14px; font-size: 14px; }
  .btn__sub { font-size: 10.5px; }

  /* Trust band marquee: faster + smaller cells on phones */
  .trust { padding: 40px 0 12px; }
  .trust__title { font-size: 12px; margin-bottom: 24px; }
  .marquee__track { animation-duration: 26s; gap: 10px; }
  .marquee__track .trust__cell { width: 132px; }
  .trust__cell { height: 56px; padding: 10px 12px; }
  .trust__logo { max-height: 26px; }

  /* Showcase: see @640 carousel — just soften surrounding spacing here */
  .showcase { padding: 40px 0 48px; }
  .showcase .section-head h2 { font-size: 1.5rem; }
  .showcase__shot img { border-radius: 26px; }
  .showcase__shot figcaption { font-size: 12px; text-align: center; }

  /* Bento: stack with tighter rhythm */
  .features { padding: 48px 0 56px; }
  .section-head h2 { font-size: clamp(1.5rem, 7.5vw, 1.75rem); }
  .section-head p { font-size: 0.9375rem; }
  .bento { gap: 12px; grid-auto-rows: auto; }
  .bento__tile { padding: 22px 20px; border-radius: var(--r-3); }
  .bento__tile h3 { font-size: 1.125rem; }
  .bento__tile p { font-size: 0.875rem; }
  .bento__viz { margin-top: 18px; }

  /* Compare tile: keep 4-col grid but shrink fonts so €X,XX fits */
  .cmp { padding: 12px 14px; gap: 10px; }
  .cmp__product { font-size: 0.875rem; }
  .cmp__unit { font-size: 10px; }
  .cmp__row { padding: 7px 10px; gap: 8px; grid-template-columns: 20px 1fr auto auto; }
  .cmp__logo { width: 20px; height: 20px; }
  .cmp__store { font-size: 12.5px; }
  .cmp__price { font-size: 13px; }
  .cmp__badge { font-size: 9.5px; padding: 2px 6px; }

  /* Watchlist tile */
  .wlist { padding: 12px 14px; }
  .wlist__row { padding: 7px 0; gap: 10px; }
  .wlist__name { font-size: 12.5px; }
  .wlist__delta { font-size: 11.5px; }
  .wlist__savings { font-size: 12.5px; }

  /* History tile */
  .hist { padding: 14px 16px 12px; gap: 10px; }
  .hist__chart svg { height: 60px; }
  .hist__delta-num { font-size: 1.25rem; }
  .hist__delta-lab { font-size: 11px; }

  /* Greece cluster */
  .cluster__grid { gap: 8px; }
  .cluster__cell { height: 50px; padding: 8px; }
  .cluster__cell img { max-height: 24px; }

  /* Closing card */
  .closing { padding-bottom: 48px; }
  .closing__card { padding: 40px 22px; border-radius: var(--r-3); }
  .closing__card h2 { font-size: 1.5rem; line-height: 1.15; }
  .closing__card p { font-size: 0.9375rem; margin-bottom: 22px; }

  /* Footer */
  footer { padding: 24px 0 max(28px, env(safe-area-inset-bottom)); }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-brand { flex-wrap: wrap; }
  .footer-links { gap: 16px; }

  /* Reveal: less travel for snappier feel */
  .reveal { transform: translateY(10px); }
  .showcase__shot.reveal { transform: translateY(18px) scale(0.97); }

  /* Legal / sub-pages on phones */
  .legal-shell { padding: 24px 0 56px; gap: 24px; }
  .legal__content { margin-top: 24px; }
  .legal__header { padding-bottom: 22px; margin-bottom: 0; }
  .legal__content > .contact-card + .legal__body { margin-top: 28px; }
  .legal__header h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .legal__lede { font-size: 1rem; }
  .legal__body section + section { margin-top: 26px; }
  .legal__body h2 { font-size: 1.0625rem; }
  .legal__body p { font-size: 0.9375rem; line-height: 1.6; }
}

/* Very small phones (iPhone SE / Android compact) */
@media (max-width: 380px) {
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .hero h1 { font-size: 1.85rem; }
  .hero-stage { width: 84vw; }
  .cluster__grid { grid-template-columns: repeat(3, 1fr); }
  .bento__tile { padding: 20px 18px; }
  .cmp__store { font-size: 12px; }
  .cmp__badge { display: none; }
}

/* Tablet sweet-spot (between 720 and the desktop hero break at 960) */
@media (min-width: 721px) and (max-width: 959px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__tile--compare,
  .bento__tile--greece { grid-column: auto; }
  .showcase__row { max-width: 720px; }
}

/* ===== Reveal anims ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Showcase shots get a richer, scroll-driven entry (scale + lift) */
.showcase__shot.reveal {
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.showcase__shot.reveal.visible {
  transform: translateY(0) scale(1);
}
/* Stagger features when their grid reveals */
.features__grid .feature {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.features__grid.visible .feature {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Scroll-progress indicator */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .features__grid .feature,
  .showcase__shot.reveal { transition: none; transform: none; }
  .hero-blob { translate: 0 0 !important; }
  .scroll-progress { display: none; }
  html { scroll-behavior: auto; }
}
