/* =========================================================
   Stan-Dan — style.css
   Palette: black / white / red (#ff5c26)
   Type: Fraunces (display) + Inter (body)
   ========================================================= */

@font-face {
  font-family: "Kameron";
  src: url("../assets/Kameron.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --ink: #0e0e0e;
  --ink-2: #1c1c1c;
  --muted: #6d6a66;
  --ink-soft: #2b2b2b;      /* secondary copy: dark, not grey */
  --paper: #f5f3f0;
  --stone: #e8e4dd;
  --line: #e7e3dd;
  --red: #ff5c26;              /* accent: static details only, never a hover */
  --red-soft: rgba(255, 92, 38, 0.12);
  --go: #57ff7e;               /* the two rent/list CTAs on hover */
  --go-line: #2fbf55;

  /* availability status */
  --free: #43a047;
  --free-soft: rgba(67, 160, 71, 0.14);
  --busy: #d64530;
  --busy-soft: rgba(214, 69, 48, 0.13);

  --serif: "Kameron", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-pill: 999px;
  --r-card: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Reveal ----------
   Declared before the components on purpose. It shares specificity with
   class selectors, so if it sat lower in the file it would overwrite each
   component's own `transition` and make hover effects snap instead of fade. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--white);
  display: grid; place-items: center;
  z-index: 1000;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.loader__mark {
  width: clamp(78px, 11vw, 108px);
  height: auto;
  opacity: 0;
  animation: markIn 0.9s var(--ease) forwards;
}
@keyframes markIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
body.loaded .loader { opacity: 0; visibility: hidden; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;            /* keeps the wordmark from being squashed out of ratio */
  min-width: 0;
  transition: color 0.25s var(--ease);
}
.brand__word {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(23px, 2.2vw, 28px);
  letter-spacing: -0.022em;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease);
}
.brand__word .lo { color: #b0b0b0; }   /* "stan" light grey  */
.brand__word .hi { color: #2e2e2e; }   /* "Dan"  dark grey   */
.brand:hover .brand__word { opacity: 0.72; }


/* ---------- Header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(255,255,255,0.74);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- Dropdown menu ---------- */
.menu { position: relative; }
.menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.menu__btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.menu__btn:hover .menu__label { color: #fff; }
.menu__label { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.menu__icon {
  width: 17px; height: 14px;
  position: relative;
  flex: none;
}
.menu__icon i {
  position: absolute; left: 0; top: 50%;
  width: 100%; height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateY(-4px);
  transition: transform 0.38s var(--ease), background 0.3s var(--ease);
}
.menu__icon i:last-child { transform: translateY(3px); }
.menu__btn:hover .menu__icon i { background: #fff; }
.menu__btn[aria-expanded="true"] .menu__icon i { transform: translateY(-0.5px) rotate(45deg); }
.menu__btn[aria-expanded="true"] .menu__icon i:last-child { transform: translateY(-0.5px) rotate(-45deg); }

.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 268px;
  padding: 12px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(14,14,14,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s var(--ease);
}
.menu__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.menu__links a + a { border-top: 1px solid var(--line); border-radius: 14px; }
.menu__links a em { font-style: normal; font-size: 12px; opacity: 0; transform: translate(-4px, 4px); transition: all 0.25s var(--ease); }
.menu__links a:hover { background: var(--ink); color: #fff; }
.menu__links a:hover em { opacity: 1; transform: none; }
.menu__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.menu__action {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--go-line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.menu__action:hover {
  background: var(--go);
  border-color: var(--go-line);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.pill--dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.pill--dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px rgba(14,14,14,0.55);
}
.pill .arr { font-size: 13px; transition: transform 0.25s var(--ease); }
.pill:hover .arr { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero {
  max-width: none;
  margin: 0 auto;
  padding: clamp(100px, 12.5vh, 150px) var(--pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 8.1vw, 124px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  white-space: nowrap;
}
/* Each half of the headline. Block by default (mobile: two rows);
   forced back to inline on desktop so the line stays exactly as before. */
.hero__line { display: block; white-space: nowrap; }
@media (min-width: 901px) {
  .hero__line { display: inline; }
}
@media (min-width: 901px) {
  .hero__title { font-size: min(10.45vw, 158px); }

  /* Big CTA pair that floats above the hero until it docks below the device */
  .hero__actions { gap: 34px; }
  .hero__actions .frost {
    --frost-bg: rgba(255, 255, 255, 0.82);
    min-width: 340px;
    padding: 17px 40px;
    font-size: 17.5px;
    line-height: 1.3;
    letter-spacing: 0.004em;
    border-color: rgba(14, 14, 14, 0.14);
    backdrop-filter: blur(26px) saturate(190%);
    -webkit-backdrop-filter: blur(26px) saturate(190%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 22px 50px -20px rgba(14, 14, 14, 0.42);
  }
  .hero__actions .frost:hover {
    --frost-bg: var(--go);
    color: var(--ink);
    border-color: var(--go-line);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 26px 56px -20px rgba(87, 255, 126, 0.8);
  }
  .hero__actions.is-floating {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--float-bottom, 46px);
    z-index: 60;
    pointer-events: none;
  }
  .hero__actions.is-floating .frost { pointer-events: auto; }
}
.hero__sub {
  max-width: var(--wrap);
  margin-top: 18px;
  font-size: clamp(15px, 1.55vw, 19px);
  color: var(--ink-soft);
}

/* Frosted CTA buttons */
.hero__actions-slot {
  width: 100%;
  max-width: var(--wrap);
  margin-top: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
}
body.ready .hero__actions { animation: frostIn 0.9s var(--ease) 0.15s forwards; }
@keyframes frostIn { to { opacity: 1; transform: none; } }

.frost {
  --frost-bg: rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 34px;
  border-radius: var(--r-pill);
  background: var(--frost-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(14,14,14,0.12);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 18px 40px -20px rgba(14,14,14,0.35);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.frost::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120px 60px at var(--mx,50%) var(--my,0%), rgba(87,255,126,0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.frost:hover {
  --frost-bg: var(--go);
  color: var(--ink);
  transform: translateY(-2px);
  border-color: var(--go-line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 22px 48px -20px rgba(87,255,126,0.75);
}
.frost:hover::before { opacity: 1; }
.frost--sm { padding: 13px 26px; font-size: 15px; }

/* ---------- Device stage ---------- */
.stage {
  position: relative;
  width: 100%;
  margin-top: clamp(26px, 3.2vw, 44px);
}
.stage__glow {
  position: absolute;
  left: 50%; bottom: 5%;
  width: min(1170px, 90%);
  height: 66%;
  transform: translateX(-50%);
  background: var(--stone);
  border-radius: 44px;
  z-index: 0;
}

/* Screen overlay UI (shared) */
.shot {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.96);
}
.screen-ui {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* price sits bottom-left */
  padding: clamp(14px, 2.6vw, 30px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.06) 26%, rgba(0,0,0,0.06) 52%, rgba(0,0,0,0.5) 100%);
}
.screen-ui__top { display: flex; justify-content: flex-end; }
.screen-ui__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.chip {
  font-size: clamp(10px, 1.25vw, 13px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.32);
  white-space: nowrap;
}
.price-lg {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 62px);
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.price-lg span { font-family: var(--sans); font-size: 0.29em; font-weight: 500; margin-left: 6px; opacity: 0.88; }
.meta {
  display: flex; align-items: center; gap: 9px;
  font-size: clamp(11px, 1.35vw, 14px);
  padding-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  white-space: nowrap;
}
.star { color: #ffd7a8; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.6); }

/* --- Desktop frame (wide) --- */
.frame {
  position: relative;
  z-index: 1;
  width: min(1300px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #2a2a2c 0%, #0b0b0c 42%, #131315 100%);
  border-radius: 34px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07) inset,
    0 2px 3px rgba(0,0,0,0.35),
    0 46px 90px -34px rgba(14,14,14,0.55);
}
.frame__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 4px;
  border-radius: 0 0 6px 6px;
  background: rgba(255,255,255,0.13);
  z-index: 3;
}
.frame__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: #000;
}
.phone { display: none; }

/* --- Mobile iPhone frame --- */
.phone {
  position: relative;
  z-index: 1;
  width: min(340px, 78vw);
  margin: 0 auto;
  aspect-ratio: 1170 / 2400;
}
.phone__rail {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 13.2% / 6.4%;
  padding: 3px;
  background: linear-gradient(148deg, #d9d5cf 0%, #8d8a86 14%, #f2efe9 30%, #74716d 52%, #e6e2dc 72%, #7f7c78 88%, #cfcbc5 100%);
  box-shadow:
    0 30px 60px -22px rgba(14,14,14,0.5),
    0 4px 10px -4px rgba(14,14,14,0.35);
}
.phone__bezel {
  width: 100%; height: 100%;
  border-radius: 12.6% / 6.1%;
  padding: 8px;
  background: #08080a;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.16) inset;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 11.4% / 5.5%;
  overflow: hidden;
  background: #000;
}
.phone__island {
  position: absolute;
  top: 1.9%;
  left: 50%;
  transform: translateX(-50%);
  width: 32.5%;
  height: 4.4%;
  min-height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 4;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.08);
}
.phone__home {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  z-index: 4;
}
.phone__btn {
  position: absolute;
  background: linear-gradient(180deg, #b4b0aa, #6f6c68);
  border-radius: 2px;
  z-index: 0;
}
.phone__btn--silent { left: -2px; top: 15%; width: 3px; height: 3.4%; }
.phone__btn--up     { left: -3px; top: 22.5%; width: 3.5px; height: 7.4%; }
.phone__btn--down   { left: -3px; top: 32%; width: 3.5px; height: 7.4%; }
.phone__btn--power  { right: -3px; top: 26%; width: 3.5px; height: 10.5%; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(84px, 12vw, 156px) var(--pad);
}
.section--paper {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section__head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 74px); }
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-soft);
  max-width: 560px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--red);
  border-bottom: 1px solid rgba(255, 92, 38, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); color: var(--ink); gap: 12px; }

/* Prose ("Sve na jednom mestu") */
.prose { max-width: 66ch; }
.prose p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.78; }
.prose p + p { margin-top: 1.15em; }
.prose .prose__lead {
  color: var(--ink-2);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.62;
  padding-top: 22px;
  border-top: 2px solid var(--red);
}

/* Toggle */
.toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
}
.toggle__btn {
  font-size: 14px; font-weight: 500;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.toggle__btn.is-active { background: var(--ink); color: var(--white); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps.is-hidden { display: none; }
.step { padding-top: 26px; border-top: 1px solid var(--ink); }
.step__no { font-family: var(--serif); font-size: 15px; color: var(--red); display: block; margin-bottom: 22px; letter-spacing: 0.04em; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: 15.5px; max-width: 32ch; }

/* Listings */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.listing {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
  transition: opacity 0.8s var(--ease),
              transform 0.45s var(--ease),
              box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.listing:hover {
  transform: translateY(-5px);
  border-color: rgba(14,14,14,0.28);
  box-shadow: 0 30px 60px -34px rgba(14,14,14,0.32);
}
.listing { display: flex; flex-direction: column; }
.listing__img { height: 250px; background-size: cover; background-position: center; transition: transform 0.6s var(--ease); }
.listing__body { display: flex; flex-direction: column; flex: 1; }
.listing__img--a { background-image: url("../assets/apartment.jpg"); }
.listing__img--b { background-image: url("../assets/listing-view.jpg"); }
.listing__img--c { background-image: url("../assets/listing-sofa.jpg"); }
.listing:hover .listing__img { transform: scale(1.04); }
.listing__body { padding: 22px 22px 26px; }
.listing__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.listing__body h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.price { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.price i { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }
.listing__meta { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 500;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(80px, 12vw, 150px) var(--pad);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.cta__bg { position: absolute; inset: 0; background-image: url("../assets/cta-wide.jpg"); background-size: cover; background-position: center; opacity: 0.28; transform: scale(1.05); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0.5), rgba(14,14,14,0.82)); }
.cta__inner {
  position: relative; z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.cta__title { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.cta__copy p { margin-top: 18px; color: rgba(255,255,255,0.72); max-width: 42ch; font-size: 16px; }
.cta__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.cta .frost {
  --frost-bg: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 18px 40px -20px rgba(0,0,0,0.5);
}
.cta .frost:hover {
  background: var(--go);
  color: var(--ink);
  border-color: var(--go);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 22px 48px -20px rgba(87,255,126,0.6);
}

/* Form */
.form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,0.1); }
.form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { margin-top: 14px; color: #fff; font-size: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--pad) 40px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer__tag {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* Two rows on mobile only; back to one inline line on desktop (unchanged). */
.footer__tag-line { display: block; }
@media (min-width: 901px) {
  .footer__tag-line { display: inline; }
}
.footer__nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer__nav a { font-size: 14.5px; color: var(--ink-2); transition: color 0.25s var(--ease); }
.footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.footer__bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--muted); flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    text-align: center;
    align-items: center;
    padding-top: clamp(130px, 18.3vh, 176px);
  }
  .hero__title {
    font-size: clamp(42px, 15.5vw, 76px);
    line-height: 1.08;
    white-space: normal;
  }
  .hero__title { order: 1; }
  .hero__sub { display: none; }

  /* Phone sits lower and is cropped at the bottom, leaving room for the buttons */
  .hero__actions-slot { width: 100%; }
  .stage {
    order: 2;
    width: 100%;
    margin-top: clamp(34px, 8vw, 58px);
    height: calc(min(352px, 82vw) * 1.56);
    overflow: hidden;
  }
  .hero__actions-slot { order: 3; margin-top: clamp(26px, 5.5vw, 40px); }
  .hero__actions { justify-content: center; }

  .frame { display: none; }
  .phone { display: block; width: min(352px, 82vw); }
  .stage__glow { display: none; }

  /* lift the price block so it stays inside the visible crop */
  .phone .screen-ui {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.05) 44%, rgba(0,0,0,0.52) 72%, rgba(0,0,0,0.58) 100%);
  }
  .phone .screen-ui__bottom {
    position: absolute;
    left: clamp(14px, 4.2vw, 22px);
    right: clamp(14px, 4.2vw, 22px);
    bottom: 27%;
  }

  .steps { grid-template-columns: 1fr; gap: 4px; }
  .step { padding: 24px 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top-color: var(--ink); }

  .listings { grid-template-columns: 1fr; }
  .listing--tall .listing__img, .listing__img { height: 260px; }

  .cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .menu__label { display: none; }
  .menu__btn { padding: 6px; }
  .menu__panel { width: min(280px, calc(100vw - 40px)); }
  .frost { padding: 15px 22px; font-size: 14.5px; }
  .hero__actions { gap: 12px; }
  .footer__inner { flex-direction: column; gap: 26px; }
}

/* Short viewports (small/older phones): crop more so the buttons still fit */
@media (max-width: 900px) and (max-height: 750px) {
  .hero { padding-top: clamp(84px, 12vh, 116px); }
  .stage { height: calc(min(352px, 82vw) * 1.28); }
  .phone .screen-ui__bottom { bottom: 40%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__actions { opacity: 1; transform: none; }
}

/* =========================================================
   SUBPAGES — listings (stanovi.html) + auth (prijava.html)
   ========================================================= */
.subpage { background: var(--white); }
.subpage .nav { position: sticky; }

.pill--ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
}
.pill--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }

/* ---------- Listings page ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) clamp(70px, 10vw, 120px); }
.page__head { max-width: 720px; }
.page__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.page__lead { margin-top: 16px; color: var(--ink-soft); font-size: clamp(15px, 1.6vw, 17.5px); max-width: 62ch; }
.page__lead span { display: block; }

.page__tools { margin-top: 4px; }
.filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 auto; min-width: 0; }
.filters__only { flex: none; white-space: nowrap; margin-left: auto; }
@media (max-width: 760px) { .filters { flex-wrap: wrap; } }
.chip-btn {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.chip-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters__only { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; }
.filters__only input { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }

.legend { display: flex; gap: 20px; margin-top: 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend__item { display: inline-flex; align-items: center; gap: 7px; }

.results { margin: 34px 0 18px; font-size: 14px; color: var(--muted); }
.empty { padding: 50px 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-apt {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card-apt:hover {
  transform: translateY(-4px);
  border-color: rgba(14,14,14,0.28);
  box-shadow: 0 28px 56px -32px rgba(14,14,14,0.3);
}
.card-apt__img { height: 178px; background-size: cover; background-position: center; flex: none; }
.card-apt__img--a  { background-image: url("../assets/apartment.jpg"); }
.card-apt__img--b  { background-image: url("../assets/listing-view.jpg"); }
.card-apt__img--c  { background-image: url("../assets/listing-sofa.jpg"); }
.card-apt__img--l1 { background-image: url("../assets/l1.jpg"); }
.card-apt__img--l2 { background-image: url("../assets/l2.jpg"); }
.card-apt__img--l3 { background-image: url("../assets/l3.jpg"); }
.card-apt__img--l4 { background-image: url("../assets/l4.jpg"); }
.card-apt__img--l5 { background-image: url("../assets/l5.jpg"); }
.card-apt__img--l6 { background-image: url("../assets/l6.jpg"); }
.card-apt__img--l7 { background-image: url("../assets/l7.jpg"); }
.card-apt__img--l8 { background-image: url("../assets/l8.jpg"); }

.card-apt__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-apt__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-apt__name { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.2; }
.card-apt__price { font-family: var(--serif); font-size: 19px; white-space: nowrap; }
.card-apt__price i { font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.card-apt__meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.card-apt__note { color: var(--muted); font-size: 13px; margin-top: 3px; opacity: 0.8; }
.card-apt__rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 12px; }
.card-apt__rate .star { font-size: 13px; color: #b07a2a; }
.pillet { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.pillet--free { background: var(--free-soft); color: #2f6b33; }
.pillet--soon { background: var(--paper); color: var(--muted); }

/* availability strip */
.strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
/* fixed width AND height: a stretched grid track was making these oval */
.cell {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
}
.cell--free  { background: var(--free); }
.cell--busy  { background: var(--busy); }
.cell--today { box-shadow: inset 0 0 0 2px var(--ink); }
.legend .cell { width: 14px; height: 14px; flex: none; }

.cal__toggle {
  margin-top: 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cal__toggle:hover { color: var(--ink); border-color: var(--ink); }
.cal { margin-top: 14px; }
.cal__head, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__dow { font-size: 10px; color: var(--muted); text-align: center; padding-bottom: 4px; }
.cal__day {
  font-size: 11.5px;
  text-align: center;
  padding: 5px 0;
  border-radius: 5px;
  color: var(--ink-2);
}
.cal__day.is-free { background: var(--free-soft); color: #2f6b33; }
.cal__day.is-busy { background: var(--busy-soft); color: #9a4034; text-decoration: line-through; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 600; }

@media (max-width: 1180px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

/* ---------- Auth page ---------- */
.auth {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: start center;
  padding: clamp(34px, 6vw, 70px) var(--pad) clamp(60px, 8vw, 100px);
}
.auth__box { width: 100%; max-width: 452px; }
.auth__title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.02em; line-height: 1.05; }
.auth__lead { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

.notice {
  background: rgba(255,92,38,0.08);
  border: 1px solid rgba(255,92,38,0.28);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.notice strong { color: var(--red); }
.notice em { font-style: normal; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; }

.tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-pill); margin: 26px 0 22px; }
.tabs__btn { flex: 1; font-size: 14px; font-weight: 500; padding: 10px; border-radius: var(--r-pill); color: var(--muted); transition: all 0.28s var(--ease); }
.tabs__btn.is-active { background: var(--ink); color: #fff; }

.gbtn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.gbtn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.gbtn__icon { width: 18px; height: 18px; flex: none; }

.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field--auth { margin-bottom: 18px; }
.field--auth label { display: block; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field__row { display: flex; align-items: center; justify-content: space-between; }
.field--auth input[type="email"],
.field--auth input[type="password"],
.field--auth input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field--auth input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,92,38,0.14);
}
.pw-toggle { font-size: 12px; color: var(--muted); margin-bottom: 8px; transition: color 0.25s var(--ease); }
.pw-toggle:hover { color: var(--ink); }

/* honeypot — off-screen, never display:none (bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.meter__bar { flex: 1; height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 0.35s var(--ease), background 0.35s var(--ease); }
.meter__bar span.s0, .meter__bar span.s1 { background: #d34b3a; }
.meter__bar span.s2 { background: #d8973c; }
.meter__bar span.s3 { background: #7fa650; }
.meter__bar span.s4 { background: #4f8a3d; }
.meter__label { font-size: 12px; color: var(--muted); min-width: 56px; }

.hint { font-size: 12.5px; color: var(--muted); margin-top: 9px; line-height: 1.6; }
.err { font-size: 13px; color: #c0392b; margin-top: 8px; }
.err--form { margin: 4px 0 14px; padding: 11px 14px; background: rgba(192,57,43,0.07); border: 1px solid rgba(192,57,43,0.2); border-radius: 12px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; cursor: pointer; line-height: 1.5; }
.check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--red); flex: none; cursor: pointer; }

.submit {
  width: 100%;
  padding: 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  transition: background 0.28s var(--ease), transform 0.25s var(--ease);
}
.submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(14,14,14,0.6); }
.submit:disabled { opacity: 0.55; cursor: not-allowed; }

.auth__alt { text-align: center; margin-top: 16px; font-size: 13.5px; }
.auth__alt a { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.auth__alt a:hover { color: var(--ink); border-color: var(--ink); }
.auth__foot { margin-top: 26px; font-size: 12.5px; color: var(--muted); line-height: 1.65; text-align: center; }

.footer__bar--solo { border-top: none; }

/* =========================================================
   APARTMENT DIALOG (stanovi.html)
   ========================================================= */
body.is-locked { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
}
/* `display: grid` above would otherwise defeat the [hidden] attribute and
   leave an invisible full-screen layer eating every click on the page. */
.modal[hidden] { display: none; }
.modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 15, 0.5);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open .modal__veil { opacity: 1; }

.modal__card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(880px, 92vh);
  overflow-y: auto;
  background: var(--white);
  border-radius: 26px;
  box-shadow: 0 50px 100px -30px rgba(14, 14, 14, 0.55);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.modal.is-open .modal__card { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--ink);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }

/* ---- gallery ---- */
.gal { position: relative; overflow: hidden; background: #0e0e0e; }
.gal__track {
  display: flex;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.gal__img {
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  user-select: none;
}
.gal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.28s var(--ease), background 0.25s var(--ease);
}
.gal:hover .gal__nav, .gal__nav:focus-visible { opacity: 1; }
.gal__nav:hover { background: #fff; }
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }

.gal__dots {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.gal__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.gal__dot.is-on { background: #fff; transform: scale(1.35); }

/* info bar over the bottom of the photo */
.gal__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  min-height: 10%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 26px);
  color: #fff;
  font-size: 13.5px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.62) 55%, rgba(0,0,0,0.78) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.gal__bar-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.55); flex: none; }
.gal__bar-item--right { margin-left: auto; color: #ffd7a8; }

/* ---- body ---- */
.modal__body { padding: clamp(20px, 3vw, 30px); }
.modal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.modal__title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; }
.modal__price { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2vw, 22px); white-space: nowrap; }
.modal__note { margin-top: 6px; color: var(--ink-soft); font-size: 14.5px; }

.modal__cal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal__cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.modal__cal-head > span:first-child { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.modal__legend { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot--open  { border: 1.5px solid #b8b3ac; background: transparent; }
.dot--taken { background: var(--busy); }
.modal__legend .dot:not(:first-child) { margin-left: 10px; }

.mcal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.mcal__dowcell { text-align: center; font-size: 10.5px; color: var(--muted); }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mcal__day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-height: 42px;
  border-radius: 50%;
  font-size: 12.5px;
  transition: transform 0.2s var(--ease);
}
.mcal__day.is-open  { border: 1.5px solid #cfcac2; background: transparent; color: var(--ink-2); }
.mcal__day.is-taken { background: var(--busy); color: #fff; border: 1.5px solid var(--busy); }
.mcal__day.is-today { box-shadow: 0 0 0 2px var(--ink); font-weight: 600; }
.mcal__day.is-open:hover { transform: scale(1.1); border-color: var(--ink); }

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.modal__status { font-size: 13.5px; color: var(--ink-soft); }
.modal__cta {
  margin-left: auto;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.28s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.modal__cta:hover:not(:disabled) {
  background: var(--go);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -14px rgba(87,255,126,0.75);
}
.modal__cta:disabled { background: var(--line); color: #9a948c; cursor: not-allowed; }

@media (max-width: 560px) {
  .modal__card { border-radius: 20px; }
  .gal__nav { opacity: 1; width: 34px; height: 34px; }
  .modal__foot { flex-direction: column; align-items: stretch; }
  .modal__cta { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modal__card, .modal__veil, .gal__track { transition: none; }
}
