:root {
  --bg-dark:      #020807;
  --forest-base:  #0a1f1b;
  --text:         rgba(255,255,255,0.96);
  --muted:        rgba(255,255,255,0.54);
  --muted-dim:    rgba(255,255,255,0.30);
  --panel:        rgba(7,12,11,0.72);
  --input-bg:     rgba(5,9,8,0.82);
  --line:         rgba(255,255,255,0.08);
  --line-bright:  rgba(255,255,255,0.12);
  --button:       rgba(255,255,255,0.12);
  --button-border:rgba(255,255,255,0.12);
  --shadow:       0 12px 40px rgba(0,0,0,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; height: 100%; }

body {
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body.restricted-ui,
body.restricted-ui img,
body.restricted-ui svg,
body.restricted-ui .brand-svg,
body.restricted-ui .inside-brand {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

body.restricted-ui input,
body.restricted-ui textarea,
body.restricted-ui button,
body.restricted-ui a {
  -webkit-user-select: auto;
  user-select: auto;
}

/* ── BACKGROUND (untouched) ── */
.hero-spacer {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--forest-base) 0%, var(--bg-dark) 90%);
}

.overlay-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px,3.2vh,28px) clamp(16px,4vw,52px);
}

/* ── MAIN COLUMN ── */
.overlay-grid {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body:not(.inside-page):not(.inside-open) .overlay-grid {
  transform: translateY(clamp(-10px, -1.3vh, -18px));
}

/* ── LOGO ── */
.brand-panel {
  width: 100%;
  padding-bottom: clamp(20px, 3.4vh, 38px);
}

.brand-svg {
  width: 100%;
  height: auto;
  display: block;
  fill: rgba(255,255,255,0.95);
}

.brand-fallback {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem,6vw,5rem);
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── RULE ── */
.content-panel {
  width: 100%;
  border-top: 1px solid var(--line-bright);
  padding-top: clamp(24px, 3.8vh, 44px);
}

/* ── BODY LAYOUT ── */
.body-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: clamp(34px, 4.8vh, 52px);
  column-gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.hero-main,
.col-left {
  grid-column: 1 / -1;
}

/* ── PRIMARY HERO BLOCK ── */
.hero-main {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.countdown-wrap {
  margin-bottom: clamp(24px, 3.4vh, 36px);
  width: 100%;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--muted-dim);
  margin-bottom: 10px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  gap: 0;
  width: min(100%, 700px);
  margin: 8px auto 0;
}

.time-card {
  position: relative;
  min-width: 0;
  padding: 0 clamp(8px, 1.8vw, 20px);
}

.time-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 34px;
  background: var(--line-bright);
  transform: translateY(-50%);
}

.time-value {
  display: block;
  font-size: clamp(1.95rem, 3.4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 10px;
}

.time-meta {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

h1 {
  font-size: clamp(1.18rem, 4.25vw, 4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.055em;
  margin-bottom: clamp(20px, 2.8vh, 30px);
  max-width: none;
  white-space: nowrap;
}

h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.05em;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.65);
}

.lead {
  font-size: clamp(0.74rem, 1.05vw, 0.9rem);
  line-height: 1.48;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 24px;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: min(100%, 760px);
  padding: 6px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 auto 12px;
  transition: border-color 0.2s;
}

.notify-form:focus-within { border-color: var(--line-bright); }

.notify-form input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  padding: 6px 12px;
  min-width: 0;
}

.notify-form input::placeholder { color: rgba(255,255,255,0.28); }

.notify-form button {
  border: 1px solid var(--button-border);
  background: var(--button);
  color: var(--text);
  font: inherit;
  font-size: clamp(0.72rem, 1.2vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
}

.notify-form button:hover { background: rgba(255,255,255,0.20); }

.form-note {
  font-size: 0.72rem;
  color: var(--muted-dim);
  letter-spacing: 0.01em;
  width: min(100%, 760px);
  margin: 8px auto 0;
}

.form-status {
  width: min(100%, 760px);
  min-height: 1.2em;
  margin: 8px auto 0;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.86);
}

.form-submit-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.notify-form.is-submitted {
  opacity: 0.88;
}

.notify-form button:disabled {
  cursor: default;
  opacity: 0.9;
}

.inside-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.68);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.inside-link:hover {
  color: var(--text);
}

.inside-link-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.inside-link:hover .inside-link-arrow {
  transform: translateX(3px);
}


.inside-link {
  text-decoration: none;
}

body.inside-page {
  min-height: 100svh;
  height: auto;
  overflow-y: auto;
}

body.inside-page .hero-spacer {
  min-height: 0;
  overflow: visible;
  justify-content: flex-start;
}

body.inside-page .overlay-shell {
  align-items: flex-start;
  overflow: visible;
  padding-top: clamp(28px, 4.8vh, 46px);
  padding-bottom: clamp(24px, 4vh, 40px);
}

body.inside-page .overlay-grid {
  max-width: 980px;
}

body.inside-page .brand-panel {
  padding-top: clamp(4px, 0.8vh, 8px);
  padding-bottom: clamp(14px, 2.4vh, 22px);
}

body.inside-page .content-panel {
  padding-top: clamp(18px, 2.8vh, 26px);
}

body.inside-page .hero-main {
  padding-top: 0;
}

body.inside-page .inside-link {
  margin-top: 0;
  color: var(--text);
}

body.inside-page .inside-link-arrow {
  transform: rotate(180deg);
}

body.inside-page .hero-socials {
  margin-top: 20px;
}

body.inside-page .inside-gallery {
  display: block;
  margin-top: clamp(30px, 4vh, 42px);
}

body.inside-page .inside-grid {
  width: 100%;
  gap: clamp(12px, 1.6vw, 18px);
}

body.inside-page .inside-tile {
  min-height: clamp(148px, 19.2vh, 220px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.inside-page .inside-tile::before {
  display: none;
}

body.inside-page .inside-tile span {
  font-size: clamp(0.82rem, 1.08vw, 0.98rem);
}

body.inside-page .inside-tile {
  padding: clamp(18px, 2.4vw, 28px);
}

.inside-brand {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 82%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  filter: drop-shadow(0 1px 10px rgba(0,0,0,0.16));
}

.inside-tile--wide .inside-brand {
  max-width: 96%;
  max-height: 74%;
}

.inside-tile--superwide .inside-brand {
  max-width: 100%;
  max-height: 66%;
}

.inside-brand--filippo,
.inside-brand--foxs-alt,
.inside-brand--douwe,
.inside-brand--truefruits,
.inside-brand--werthers {
  max-width: 100%;
}

.inside-brand--filippo,
.inside-brand--foxs-alt,
.inside-brand--douwe {
  max-height: 72%;
}

.inside-brand--ferrero,
.inside-brand--royal,
.inside-brand--frijj,
.inside-brand--langnese,
.inside-brand--lindt,
.inside-brand--foxs,
.inside-brand--nutella,
.inside-brand--hengstenberg {
  max-width: 98%;
  max-height: 86%;
}

.inside-brand--roses,
.inside-brand--shaken,
.inside-brand--alnatura,
.inside-brand--trentino,
.inside-brand--darbo,
.inside-brand--nimm2 {
  max-width: 94%;
  max-height: 84%;
}


.hero-socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: 28px;
  flex-wrap: nowrap;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 2vw, 30px);
  height: clamp(24px, 2vw, 30px);
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.hero-social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-social-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.hero-socials:hover .hero-social-link:not(:hover) {
  opacity: 0.72;
}

/* ── SECONDARY META ROW ── */
.col-right {
  grid-column: 1 / -1;
  display: block;
  padding-top: 2px;
}

.brands-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.block-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--muted-dim);
  margin-bottom: 10px;
}

/* BRANDS BUTTON */
.brands-block {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.brands-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  color: var(--muted);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  min-height: 52px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.brands-btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.20);
  color: var(--text);
}

.brands-btn-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.18s;
}

.brands-btn:hover .brands-btn-arrow { transform: translateX(3px); }

body.inside-open .overlay-grid {
  max-width: 980px;
}

body.inside-open .brand-panel {
  padding-top: clamp(4px, 0.8vh, 8px);
  padding-bottom: clamp(12px, 2vh, 18px);
}

body.inside-open .content-panel {
  padding-top: clamp(18px, 2.6vh, 24px);
}

body.inside-open .countdown-wrap,
body.inside-open h1,
body.inside-open .lead,
body.inside-open .notify-form,
body.inside-open .form-note {
  display: none;
}

body.inside-open .hero-main {
  padding-top: 0;
}

body.inside-open .inside-link {
  margin-top: 0;
  color: var(--text);
}

body.inside-open .inside-link-arrow {
  transform: rotate(180deg);
}

body.inside-open .hero-socials {
  margin-top: 18px;
}

body.inside-open .overlay-shell {
  align-items: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: clamp(22px, 4.2vh, 40px);
}

body.inside-open .overlay-grid {
  width: 100%;
  margin: 0 auto;
}

.inside-gallery {
  display: none;
  width: 100%;
  margin-top: clamp(20px, 2.8vh, 28px);
}

body.inside-open .inside-gallery {
  display: block;
}

.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.inside-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(74px, 9.6vh, 110px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.028);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}

.inside-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  opacity: 0.55;
  pointer-events: none;
}

.inside-tile span {
  position: relative;
  z-index: 1;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
}

.inside-tile-last {
  grid-column: 1 / -1;
  width: calc(50% - clamp(6px, 0.8vw, 9px));
  justify-self: center;
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 10px clamp(16px,4vw,52px) calc(10px + env(safe-area-inset-bottom, 0px));
  flex: 0 0 auto;
}

.footer-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.footer-copy {
  font-size: clamp(0.54rem, 0.9vw, 0.66rem);
  color: var(--muted-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 0;
}

/* ── TABLET ≤ 780px ── */
@media (max-width: 780px) {
  .overlay-shell {
    padding: 22px 20px 26px;
  }

  .body-grid {
    row-gap: 32px;
  }

  .countdown-wrap {
    margin-bottom: 30px;
  }

  .time-card:not(:last-child)::after {
    height: 28px;
  }
}

/* ── MOBILE ≤ 640px ── */

@media (max-width: 640px) {
  .overlay-shell {
    padding: max(12px, env(safe-area-inset-top, 0px)) 20px 12px;
  }

  .overlay-grid {
    max-width: 100%;
  }

  .content-panel,
  .hero-main,
  .countdown-wrap,
  .lead,
  .form-note {
    width: 100%;
  }

  .hero-main {
    padding-top: 26px;
  }

  .hero-main > h1 {
    order: 2;
    margin-bottom: 18px;
  }

  .hero-main > .countdown-wrap {
    order: 1;
    margin-bottom: 22px;
  }

  .hero-main > .lead,
  .hero-main > .notify-form,
  .hero-main > .form-note,
  .hero-main > .form-status,
  .hero-main > .inside-link,
  .hero-main > .hero-socials {
    order: 3;
  }

  .brand-panel {
    padding-bottom: 16px;
  }

  .content-panel {
    padding-top: 20px;
  }

  .body-grid {
    row-gap: 26px;
  }

  .countdown-wrap {
    margin-bottom: 26px;
  }

  .countdown {
    width: 100%;
    max-width: 100%;
  }

  .time-card {
    padding: 0 6px;
  }

  .time-card:not(:last-child)::after {
    height: 18px;
  }

  .time-value {
    font-size: clamp(1.14rem, 5.3vw, 1.72rem);
    margin-bottom: 6px;
  }

  .time-meta {
    font-size: clamp(0.5rem, 1.9vw, 0.6rem);
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(1.5rem, 7.2vw, 2.2rem);
    margin-bottom: 20px;
  }

  .lead {
    font-size: 0.72rem;
    line-height: 1.42;
    max-width: 60ch;
    margin: 0 auto 20px;
  }

  .notify-form {
    width: min(100%, 640px);
    padding: 4px;
    gap: 4px;
    margin-bottom: 12px;
  }

  .notify-form input {
    padding: 6px 10px;
    text-align: left;
    font-size: 0.76rem;
  }

  .notify-form button {
    padding: 10px 12px;
    width: auto;
    font-size: 0.68rem;
  }

  .form-note {
    width: min(100%, 640px);
    font-size: 0.66rem;
  }

  .form-status {
    width: min(100%, 640px);
    font-size: 0.68rem;
    margin-top: 8px;
  }

  .inside-link {
    margin-top: 20px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .hero-socials {
    margin-top: 18px;
    gap: 14px;
  }

  .hero-social-link {
    width: 26px;
    height: 26px;
  }

  body.inside-open .overlay-shell {
    align-items: flex-start;
    padding-top: calc(max(12px, env(safe-area-inset-top, 0px)) + 12px);
    padding-bottom: 12px;
  }

  body.inside-page .overlay-shell {
    padding-top: calc(max(12px, env(safe-area-inset-top, 0px)) + 18px);
    padding-bottom: 18px;
  }

  body.inside-open .content-panel {
    padding-top: 14px;
  }

  body.inside-page .content-panel {
    padding-top: 16px;
  }

  body.inside-open .hero-socials {
    margin-top: 14px;
    gap: 14px;
  }

  body.inside-page .hero-socials {
    margin-top: 16px;
    gap: 14px;
  }

  body.inside-open .inside-gallery {
    margin-top: 18px;
  }

  body.inside-page .inside-gallery {
    margin-top: 24px;
  }

  body.inside-open .inside-grid {
    width: 100%;
    gap: 10px;
  }

  body.inside-page .inside-grid {
    width: 100%;
    gap: 10px;
  }

  body.inside-open .inside-tile {
    min-height: clamp(52px, 7vh, 68px);
    border-radius: 14px;
  }

  body.inside-page .inside-tile {
    min-height: clamp(104px, 13.8vh, 136px);
    border-radius: 14px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  body.inside-page .inside-tile::before {
    display: none;
  }

  body.inside-open .inside-tile span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  body.inside-page .inside-tile span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .site-footer {
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .footer-copy {
    font-size: 0.56rem;
  }
}

@media (max-width: 640px) and (max-height: 860px) {
  .hero-main {
    padding-top: 16px;
  }
}

@media (max-height: 860px) {
  body.inside-page .brand-panel {
    padding-top: 4px;
    padding-bottom: 10px;
  }

  body.inside-page .content-panel {
    padding-top: 12px;
  }

  body.inside-page .hero-socials {
    margin-top: 12px;
  }

  body.inside-page .inside-gallery {
    margin-top: 16px;
  }

  body.inside-page .inside-tile {
    min-height: clamp(94px, 11.5vh, 112px);
  }

  body.inside-open .brand-panel {
    padding-top: 4px;
    padding-bottom: 10px;
  }

  body.inside-open .content-panel {
    padding-top: 12px;
  }

  body.inside-open .hero-socials {
    margin-top: 12px;
  }

  body.inside-open .inside-gallery {
    margin-top: 14px;
  }

  body.inside-open .inside-tile {
    min-height: clamp(46px, 6.4vh, 58px);
  }
}

@media (max-height: 860px) {
  .overlay-shell {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
  }

  .brand-panel {
    padding-bottom: 14px;
  }

  .content-panel {
    padding-top: 16px;
  }

  .body-grid {
    row-gap: 18px;
  }

  .countdown-wrap {
    margin-bottom: 20px;
  }

  .lead {
    margin-bottom: 20px;
  }

  .inside-link {
    margin-top: 18px;
  }

  .hero-socials {
    margin-top: 16px;
  }

  .site-footer {
    padding-top: 7px;
  }
}


@media (max-width: 640px) {
  body.inside-page .inside-tile {
    padding: 16px 14px;
  }

  body.inside-page .inside-brand {
    max-width: 96%;
    max-height: 82%;
  }

  body.inside-page .inside-tile--wide .inside-brand {
    max-width: 100%;
    max-height: 72%;
  }

  body.inside-page .inside-tile--superwide .inside-brand {
    max-width: 100%;
    max-height: 62%;
  }

  body.inside-page .inside-brand--filippo,
  body.inside-page .inside-brand--foxs-alt,
  body.inside-page .inside-brand--douwe,
  body.inside-page .inside-brand--truefruits,
  body.inside-page .inside-brand--werthers {
    max-width: 100%;
  }

  body.inside-page .inside-brand--ferrero,
  body.inside-page .inside-brand--royal,
  body.inside-page .inside-brand--frijj,
  body.inside-page .inside-brand--langnese,
  body.inside-page .inside-brand--lindt,
  body.inside-page .inside-brand--foxs,
  body.inside-page .inside-brand--nutella,
  body.inside-page .inside-brand--hengstenberg {
    max-height: 88%;
  }
}
