/* ===========================================================
   EMOTIKA — emotika.cz
   Vanilla recreation of the Wix splash page
   =========================================================== */

:root {
  --bg: #ffffff;          /* light hero background             */
  --ink: #09090c;         /* near-black brand ink / footer     */
  --fg-muted: #91919c;    /* secondary / legal text            */
  --accent: #ff3b40;      /* brand red (heart)                 */
  --pad: clamp(1.5rem, 5vw, 4.5rem);
  --maxw: 1240px;
  --font: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0 auto;                /* centre the page → white gutters on wide screens */
  max-width: 1600px;            /* content block width (matches the original)        */
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.svg-defs { position: absolute; }

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===================== Wordmark (EM♥TIKA) ===================== */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark__heart {
  fill: currentColor;
  height: 0.62em;
  width: calc(0.62em * 5 / 4);   /* viewBox 5×4 */
  margin: 0 0.12em;
  flex: none;
}
.wordmark--lg { font-size: clamp(2.1rem, 6vw, 3.1rem); }

/* ===================== Header ===================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: flex-start;
  padding: clamp(1.4rem, 3vw, 2.4rem) var(--pad);
  z-index: 20;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 56vw, 810px);   /* footer stays high, like the original (~805px) */
  padding: 10rem var(--pad) 3rem;          /* top-heavy → headline sits lower, nearer footer */
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 150, 150, 0.18) 0%, rgba(255, 255, 255, 0) 45%),
    var(--bg);
}

.hero__inner {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero__title {
  margin: 0;
  max-width: 18em;           /* em-based → keeps ~2-line wrap as the font scales */
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* One large translucent brand heart, centred in the upper area */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bg-heart {
  position: absolute;
  left: 50%;                            /* centred */
  bottom: clamp(10px, 2vw, 24px);       /* point sits just above the footer; top runs off-screen, like the original */
  transform: translateX(-50%);
  width: clamp(420px, 68vw, 980px);     /* caps with the hero (both at ~1446px wide) so the
                                           heart/hero proportion stays locked on wide screens */
  height: auto;
  opacity: 0.32;
  will-change: transform;
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--ink);
  color: #fff;
  border-radius: 32px 32px 0 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) clamp(1.75rem, 3vw, 2.5rem);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.site-footer .wordmark { color: #fff; }

.footer-company { display: flex; flex-direction: column; gap: 1rem; }
.footer-company__name {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
}
.legal {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.75rem);
}

.gdpr {
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, color 0.25s ease;
}
.gdpr:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.made {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.made__heart {
  fill: var(--accent);
  height: 0.95em;
  width: calc(0.95em * 5 / 4);
}

/* ===================== Content page ===================== */
.page {
  flex: 1;
  padding: clamp(6rem, 10vw, 9rem) var(--pad) 4rem;   /* top pad clears the absolute header */
}
.page__inner { max-width: 760px; }

.page__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page__meta {
  margin: 0.4rem 0 2.5rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.page section { margin-top: 2.5rem; }
.page__h {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}
.page p { margin: 0 0 1rem; }
.page ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}
.page li { margin-bottom: 0.5rem; }
.page strong { font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.page th,
.page td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(9, 9, 12, 0.1);
}
.page th { font-weight: 600; }

/* ===================== Motion ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================== Responsive ===================== */
@media (max-width: 600px) {
  .hero { padding-top: 6rem; }
  .hero__title {
    font-size: clamp(1.35rem, 5.6vw, 1.85rem);
    max-width: 100%;
    overflow-wrap: break-word;
  }
}
