/* Blom — teaser (light)
   Vrednosti so 1:1 iz designa. Nastavitve so zbrane v :root. */

:root {
  --accent: #7fb6a6;        /* alternative: #8fa87b, #e8a33d, #6b8cb0 */
  --accent-ink: #3f6f62;    /* temnejsa razlicica akcenta za naslov */
  --headline-scale: 1;      /* 0.8 – 1.25 */
  --photo-strength: 0.25;   /* 0.04 – 0.4 */

  --bg: #f7f6f4;
  --ink: #17161a;
  --muted: #56534d;
  --muted-soft: #6b6760;
  --muted-strong: #3d3a35;
  --font: Geist, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
::placeholder { color: #8b877f; }

[hidden] { display: none !important; }


/* --- oder ---------------------------------------------------------------- */

.page {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
}

.photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: var(--photo-strength);
  filter: grayscale(0.2) saturate(0.85);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(247, 246, 244, 0.35) 0%,
    rgba(247, 246, 244, 0.6) 55%,
    rgba(247, 246, 244, 0.85) 100%
  );
}


/* --- glava --------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 2.2vh, 24px) clamp(20px, 4vw, 52px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.topbar-contact {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}


/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(12px, 1.8vh, 22px);
  padding: clamp(12px, 3vh, 40px) clamp(20px, 4vw, 52px) clamp(14px, 2.4vh, 28px);
}

.headline {
  margin: 0;
  max-width: 24ch;
  font-weight: 600;
  font-size: min(calc(clamp(34px, 5.2vw, 72px) * var(--headline-scale)), 10vh);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.headline-accent { color: var(--accent-ink); }

.lead {
  margin: 0;
  max-width: 54ch;
  font-size: min(clamp(15px, 1.25vw, 18.5px), 2.4vh);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}


/* --- prijava ------------------------------------------------------------- */

.signup {
  margin-top: clamp(2px, 1vh, 10px);
  width: 100%;
  max-width: 470px;
  scroll-margin-top: 80px;
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.field {
  flex: 1 1 210px;
  min-width: 0;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(23, 22, 26, 0.14);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 1px 2px rgba(23, 22, 26, 0.04);
  transition: border-color 140ms ease;
}

.field:focus { border-color: var(--accent); }

.btn {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 24px;
  transition: filter 140ms ease, transform 140ms ease;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.985); filter: brightness(0.97); }

.note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted-soft);
}

.error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #a1462b;
}

.btn[disabled] {
  cursor: default;
  filter: none;
  opacity: 0.72;
}

/* past za robotke — skrita, a ne prek display:none (roboti to preberejo) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(23, 22, 26, 0.1);
  border-radius: 14px;
  padding: 15px 22px;
  box-shadow: 0 1px 2px rgba(23, 22, 26, 0.04);
}

.sent svg { flex: 0 0 auto; }


/* --- kljukice ------------------------------------------------------------ */

.points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(16px, 2.4vw, 30px);
  margin: clamp(4px, 1.6vh, 16px) 0 0;
  padding: 0;
  list-style: none;
  font-size: min(clamp(12.5px, 1vw, 14.5px), 2vh);
  font-weight: 500;
  color: var(--muted-strong);
}

.point {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
}


/* --- mobile / nizki zasloni ---------------------------------------------- */

@media (max-width: 900px), (max-height: 700px) {
  body { overflow: auto; }

  .page {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }

  .photo { position: fixed; }
  .wash { position: fixed; }
}

@media (max-width: 640px) {
  .headline { font-size: calc(clamp(30px, 8.6vw, 44px) * var(--headline-scale)); }
  .lead { font-size: 15.5px; }
  .points { font-size: 13px; }
}

@media (max-width: 460px) {
  .form { flex-direction: column; }
  .field { flex: 1 1 auto; width: 100%; }
  .btn { width: 100%; padding: 16px 24px; }
  .points { flex-direction: column; align-items: center; gap: 9px; }
  .topbar { gap: 12px; }
  .topbar-contact { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .field, .btn { transition: none; }
}
