/* THE HOST – Schweppes Festive 2026. Boje prema toolkitu: #F6BE00 (naslovi preko fotografije), #FFEEB9. */
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("/fonts/SofiaSansCondensed_800ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("/fonts/SofiaSansCondensed_700Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --yellow: #f6be00;
  --yellow-press: #ffd23d;
  --cream: #ffeeb9;
  --ink: #120a04;
  --bg: #0d0906;
  --panel: #17100a;
  --line: rgba(255, 238, 185, 0.26);
  --text: #f7efe2;
  --muted: #c9bba6;
  --error: #ffb4a3;
  /* "Brand Display" i "Brand Text" su font iz brand booka, TT Commons Pro u rezu Compact Bold (vidi /brand-fonts.css
     i brand-fonts/). Font ima samo podebljane rezove, pa je sav tekst podebljan. Ostalo su zamjene ako font nije pripremljen. */
  --display: "Brand Display", "Sofia Sans Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Brand Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 400 1.0625rem/1.42 var(--body);
  min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
strong { color: var(--cream); font-weight: 700; }

.app {
  width: 100%; max-width: 30rem; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(120, 72, 22, 0.28), transparent 70%),
    linear-gradient(180deg, #17100a 0%, var(--bg) 55%);
}
main { flex: 1; display: flex; flex-direction: column; }

/* Zaglavlje: Schweppes | THE HOST */
.brand {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  padding: calc(0.7rem + env(safe-area-inset-top)) 1rem 0.7rem;
}
.brand__logo { width: 5.4rem; height: auto; }
.brand__rule { width: 1px; height: 2.1rem; background: var(--line); }
.brand__title {
  font: 800 1.85rem/1 var(--display); letter-spacing: 0.02em; color: var(--yellow); text-transform: uppercase;
}
.demo-note {
  margin: 0; padding: 0.4rem 1rem; text-align: center; font-size: 0.9375rem;
  background: rgba(246, 190, 0, 0.14); color: var(--cream);
}

/* Zasloni */
.screen { flex: 1; display: flex; flex-direction: column; animation: enter 0.28s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
.pad { padding: 0 1.25rem; }
.grow { flex: 1; }
.center { text-align: center; }
.actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding-top: 1rem; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}
.actions > div { display: flex; flex-direction: column; gap: 0.75rem; }

/* Tipografija */
.display, .title { font-family: var(--display); font-weight: 800; text-transform: uppercase; margin: 0; outline: none; }
.display { font-size: clamp(2.5rem, 12.8vw, 3.75rem); line-height: 0.98; color: var(--yellow); letter-spacing: 0.005em; margin-top: 1.1rem; }
.title { font-size: clamp(1.9rem, 9.6vw, 2.8rem); line-height: 1.04; color: var(--cream); letter-spacing: 0.015em; margin: 1.5rem 0 1.4rem; }
.title--small { font-size: clamp(1.2rem, 6vw, 1.75rem); letter-spacing: 0.02em; margin: 0.6rem 0 0.9rem; }
.title--long { font-size: clamp(1.35rem, 6.9vw, 2rem); margin: 0.9rem 0 1.1rem; text-wrap: balance; }
.lead { font-size: 1.45rem; line-height: 1.25; margin: 0.9rem 0 0; color: var(--text); }
.lead--small { font-size: 1.125rem; line-height: 1.3; margin-top: 1.1rem; text-wrap: balance; }
.note { font-size: 0.9375rem; line-height: 1.35; color: var(--muted); margin: 0.6rem 0 0; }
.note--small { font-size: 0.8125rem; text-wrap: balance; }
.actions .note { margin: 0; }

/* Početni ekran */
.hero { width: 100%; aspect-ratio: 1080 / 853; object-fit: cover; }

/* Gumbi */
.btn {
  appearance: none; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3.5rem;
  padding: 0.7rem 1rem; border-radius: 4px; border: 2px solid var(--yellow); cursor: pointer;
  font: 800 1.3rem/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background-color 0.15s, color 0.15s, opacity 0.15s, transform 0.08s;
}
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 0 1.6rem rgba(246, 190, 0, 0.22); }
.btn--ghost { background: transparent; color: var(--cream); }
.btn:active { transform: scale(0.985); }
.btn--primary:active { background: var(--yellow-press); border-color: var(--yellow-press); }
.btn[disabled] { opacity: 0.38; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, .link:focus-visible, .choice__item:focus-visible, .input:focus-visible {
  outline: 3px solid var(--cream); outline-offset: 3px;
}
.link {
  appearance: none; background: none; border: 0; padding: 0.55rem; margin: 0 auto; cursor: pointer;
  font: 400 1.0625rem/1.2 var(--body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.link--inline { display: block; margin: 0.7rem auto 0.2rem; color: var(--cream); }

/* Odabir izdanja */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.9rem; }
.choice__item {
  appearance: none; min-height: 5.4rem; padding: 0.8rem 0.5rem; border-radius: 5px; cursor: pointer;
  border: 1.5px solid var(--line); background: rgba(255, 238, 185, 0.03); color: var(--text);
  font: 700 1.3rem/1.15 var(--body); transition: border-color 0.15s, background-color 0.15s;
}
.choice__title { display: block; }
.choice__hint { display: block; margin-top: 0.3rem; font-size: 0.875rem; font-weight: 400; line-height: 1.2; color: var(--muted); }
.choice__item[aria-checked="true"] {
  border: 2.5px solid var(--yellow); background: rgba(246, 190, 0, 0.09); color: var(--cream);
}
.field { display: block; margin-bottom: 0.6rem; }
.field__label { display: block; font-size: 1.3rem; font-weight: 700; }
.field__hint { display: block; font-size: 0.9375rem; color: var(--muted); }
.input {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem; border-radius: 5px;
  border: 1.5px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--text);
  font: 400 1.1875rem/1.2 var(--body);
}
.input::placeholder { color: #9d8f7c; }
.input:focus { border-color: var(--yellow); outline: none; }

/* Fotografija */
.frame {
  border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.frame img { width: 100%; max-height: 46vh; max-height: 46dvh; object-fit: contain; }
.frame--empty { background: rgba(255, 238, 185, 0.03); border-style: dashed; min-height: 13rem; padding: 1.2rem 1.3rem; }
.tips { margin: 0; padding: 0; list-style: none; width: 100%; }
.tips li { position: relative; padding: 0.38rem 0 0.38rem 1.5rem; font-size: 1.1875rem; }
.tips li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.95rem; width: 0.5rem; height: 0.5rem;
  background: var(--yellow); transform: rotate(45deg);
}
.check { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 0.9rem; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 4px; border: 2px solid var(--yellow);
  background: transparent; position: relative; margin-top: 0.05rem;
}
.check input:checked + .check__box { background: var(--yellow); }
.check input:checked + .check__box::after {
  content: ""; position: absolute; left: 0.5rem; top: 0.15rem; width: 0.45rem; height: 0.9rem;
  border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.check input:focus-visible + .check__box { outline: 3px solid var(--cream); outline-offset: 3px; }
.check__text { font-size: 1.125rem; line-height: 1.3; }
.error { color: var(--error); font-size: 1.0625rem; margin: 0.8rem 0 0; }
.error--box {
  border: 1.5px solid rgba(255, 180, 163, 0.5); border-radius: 6px; padding: 1.1rem 1rem; font-size: 1.1875rem;
  background: rgba(255, 120, 90, 0.07); margin-top: 0.5rem;
}

/* Izrada */
.making {
  position: relative; width: min(52vw, 14.5rem); margin: 0.2rem auto 1.4rem; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
}
.making img { width: 100%; filter: blur(7px) brightness(0.55) saturate(0.9); transform: scale(1.08); }
.making__shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 238, 185, 0.28) 50%, transparent 65%);
  background-size: 250% 100%; animation: shine 2.2s linear infinite;
}
@keyframes shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.progress { height: 6px; border-radius: 3px; background: rgba(255, 238, 185, 0.16); overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 3px; transition: width 0.9s ease-out; }

/* Rezultat */
.cover {
  width: min(100%, calc((100vh - 23.5rem) * 9 / 16)); width: min(100%, calc((100dvh - 23.5rem) * 9 / 16));
  min-width: 11.5rem; margin: 0 auto; border: 1px solid var(--line); background: #000;
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.55);
}
.cover img { width: 100%; aspect-ratio: 9 / 16; -webkit-touch-callout: default; user-select: auto; }
.cover--sheet { width: min(62%, 15rem); margin: 0.4rem auto 0.6rem; }

/* Donji list za spremanje */
.sheet {
  position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet__panel {
  width: 100%; max-width: 30rem; max-height: 94vh; max-height: 94dvh; overflow-y: auto;
  background: var(--panel); border-top: 2px solid var(--yellow); border-radius: 14px 14px 0 0;
  padding: 1.3rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 0.75rem; text-align: center;
}
.steps { margin: 0; padding-left: 1.3rem; text-align: left; font-size: 1.125rem; }
.steps li { margin-bottom: 0.4rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 30.01rem) {
  body { background: #060403; }
  .app { box-shadow: 0 0 5rem rgba(0, 0, 0, 0.6); }
}
@media (max-height: 40rem) {
  /* Niski zasloni: niža fotografija da gumb ostane vidljiv bez pomicanja */
  .hero { aspect-ratio: auto; height: 34vh; height: 34dvh; object-position: 35% 40%; }
  .brand { padding-bottom: 0.4rem; }
  .display { margin-top: 0.7rem; }
  .lead { font-size: 1.125rem; margin-top: 0.6rem; }
  .title { margin: 1rem 0; }
  .choice { margin-bottom: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .making__shine { animation: none; }
  .progress__bar, .btn { transition: none; }
}
