/* STEDAS.SHOP - coming soon (all styles in this one file) */
:root {
  color-scheme: dark;
  --lime: #c7ff3d;
  --white: #f7f8f5;
  --muted: #d0d3ce;
  --page-pad: clamp(1.25rem, 5.3vw, 5.25rem);
  --hero-image: url("./slika.jpg?v=11");   /* name of the background image */
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: #080b09;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  background: #080b09;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #080b09;
}

/* The image is a real background; all texts are live HTML on top of it. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: right 12%;   /* right edge stays visible (face), only the empty left side is cropped */
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, .06) 0%, rgba(5, 8, 6, .03) 42%, rgba(5, 8, 6, .03) 100%),
    linear-gradient(0deg, rgba(5, 8, 6, .10), transparent 35%, transparent 75%, rgba(5, 8, 6, .04));
  pointer-events: none;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 49rem;
  min-width: 0;
  padding: clamp(2.5rem, 7vh, 5rem) 1.5rem clamp(2.5rem, 7vh, 5rem) var(--page-pad);
  padding-left: max(var(--page-pad), env(safe-area-inset-left));
  container-type: inline-size;
}

.eyebrow {
  margin: 0 0 clamp(.85rem, 2vh, 1.3rem);
  color: var(--lime);
  font-size: clamp(1.12rem, 1.68vw, 1.5rem);
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* STEDAS.SHOP always stays on ONE line: size follows the column width (shop.js is a safety net). */
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 11vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .94;
  white-space: nowrap;
}

@supports (width: 1cqi) {
  h1 { font-size: clamp(2rem, 13.2cqi, 6.6rem); }
}

h1 .shop { color: var(--lime); }

.descriptor {
  margin: clamp(1rem, 2.2vh, 1.5rem) 0 0;
  color: var(--white);
  font-size: clamp(1.12rem, 1.68vw, 1.5rem);
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.55;
  text-transform: uppercase;
}

.intro {
  max-width: 33rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.30rem, 1.28vw, 1.16rem);
  line-height: 1.55;
}

.signup {
  position: relative;
  display: flex;
  width: min(100%, 36rem);
  margin-top: clamp(1.6rem, 3.6vh, 2.4rem);
  padding: .35rem;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(5, 8, 6, .5);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.signup.is-sending { opacity: .75; }

/* spam trap: hidden from people, bots fill it in */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.email-field {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: 0 .7rem 0 .95rem;
}

.email-field svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  stroke: #f0f2ee;
  fill: none;
  stroke-width: 1.6;
}

.email-field input {
  width: 100%;
  min-width: 0;
  padding: .85rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 1rem;              /* 16px: iPhone does not zoom the page on focus */
}

.email-field input::placeholder { color: #e0e2de; opacity: 0.5; }

.notify {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .9rem clamp(1.15rem, 2vw, 1.9rem);
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #10160a;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.notify:hover {
  transform: translateY(-1px);
  background: #d8ff79;
  box-shadow: 0 0 22px rgba(199,255,61,.22);
}

.notify:disabled { cursor: default; transform: none; box-shadow: none; }

.notify:focus-visible,
.email-field input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.notify .arrow {
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s ease;
}

.notify:hover .arrow { transform: translateX(4px); }

.form-message {
  min-height: 1.35rem;
  width: min(100%, 36rem);
  margin: .55rem 0 0;
  color: var(--lime);
  font-size: .86rem;
  line-height: 1.45;
}

.form-message.error { color: #ffb6a9; }

/* footer: sits at the very bottom of the page, below everything */
.footer {
  grid-column: 1 / -1;
  padding: 0 1.5rem max(1.25rem, env(safe-area-inset-bottom)) var(--page-pad);
  padding-left: max(var(--page-pad), env(safe-area-inset-left));
}

.consent {
  margin: 0;
  color: #b9bdb6;
  font-size: .95rem;
  line-height: 1.5;
}

.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--lime); }

.copyright {
  margin: .35rem 0 0;
  color: #9da29a;
  font-size: .9rem;
  line-height: 1.5;
}

.copyright a { color: inherit; text-decoration: none; }
.copyright a:hover { color: var(--lime); }
.copyright a.credit { text-decoration: underline; text-underline-offset: 2px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 36rem);
  margin-top: clamp(1.5rem, 3.4vh, 2.6rem);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: 0 clamp(.45rem, 1vw, 1rem);
  text-align: center;
  border-right: 1px solid rgba(199,255,61,.4);
}

.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }

.feature svg {
  width: clamp(1.9rem, 2.7vw, 2.55rem);
  height: clamp(1.9rem, 2.7vw, 2.55rem);
  stroke: var(--lime);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature span {
  font-size: clamp(.8rem, .82vw, .76rem);
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.45;
  text-transform: uppercase;
}

@media (min-width: 1500px) {
  .content { padding-right: 2.5rem; }
}

/* readability: on narrower / squarer windows the artwork reaches under the text,
   so a soft, transparent dark fade is placed behind the text column (no hard box) */
.content h1, .content p, .features, .signup { text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }

@media (min-width: 901px) and (max-aspect-ratio: 8/5) {
  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 8, 6, .78) 0%, rgba(5, 8, 6, .66) 40%, rgba(5, 8, 6, .35) 52%, rgba(5, 8, 6, 0) 64%),
      linear-gradient(0deg, rgba(5, 8, 6, .35), transparent 30%);
  }
}

/* tablet and phone: image on top (right edge always visible), text below it */
@media (max-width: 900px) {
  .hero { --hero-h: clamp(300px, 78vw, 640px); grid-template-columns: minmax(0, 1fr); }

  .hero::before {
    inset: 0 0 auto 0;
    height: var(--hero-h);
    background-position: right top;
  }

  .hero::after {
    inset: 0 0 auto 0;
    height: var(--hero-h);
    background:
      linear-gradient(180deg, rgba(8,11,9,0) 55%, #080b09 100%),
      linear-gradient(90deg, rgba(8,11,9,.55) 0%, rgba(8,11,9,0) 45%);
  }

  .content {
    justify-content: flex-start;
    max-width: 42rem;
    padding: calc(var(--hero-h) - 2.5rem) var(--page-pad) 3rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }

  .intro { font-size: 1rem; }
}

@media (max-width: 520px) {
  .content { padding: calc(var(--hero-h) - 2.5rem) 1.15rem 1.6rem; }
  .footer { padding-inline: 1.15rem; }
  .eyebrow { font-size: 1.02rem; letter-spacing: .18em; }
  .descriptor { margin-top: .9rem; font-size: 1.02rem; letter-spacing: .06em; }
  .intro { margin-top: .75rem; font-size: .95rem; }

  .signup {
    flex-direction: column;
    gap: .35rem;
    padding: .45rem;
    border-radius: 1.25rem;
  }

  .email-field { min-height: 3rem; }
  .notify { width: 100%; min-height: 3.25rem; }

  .features { margin-top: 1.6rem; }
  .feature { gap: .5rem; padding-inline: .35rem; }
  .feature svg { width: 1.85rem; height: 1.85rem; }
  .feature span { font-size: .56rem; letter-spacing: .045em; }

}

@media (max-width: 360px) {
  .content { padding-inline: 1rem; }
  .feature span { font-size: .52rem; }
  .eyebrow, .descriptor { font-size: .9rem; }
  .descriptor { letter-spacing: .04em; }
}

/* phone held sideways: little height, so content may scroll */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero::before { inset: 0; height: auto; background-position: right center; }
  .hero::after {
    inset: 0; height: auto;
    background: linear-gradient(90deg, rgba(8,11,9,.85) 0%, rgba(8,11,9,.55) 50%, rgba(8,11,9,0) 100%);
  }
  .content { max-width: 60%; padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
