/* Autoškole Hrvatska: "Uskoro" page.
   Standalone: no build step, no JavaScript, fonts served from assets/fonts.
   Tokens and type scale follow docs/DESIGN_SYSTEM.md; the hero repeats the
   social campaign's key visual (lime panel, cone, purple arc, "Uskoro."). */

@font-face {
  font-family: "Epilogue Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/epilogue-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Epilogue Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/epilogue-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(assets/fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(assets/fonts/dm-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* site tokens (resources/css/tokens.css) */
  --background: #ffffff;
  --white: #fefefe;
  --primary: #231677;
  --primary-dark: #181148;
  --primary-80: rgba(35, 22, 119, 0.8);
  --primary-70: rgba(35, 22, 119, 0.7);
  --primary-50: rgba(35, 22, 119, 0.5);
  --green: #dbf063;
  --hero-lime: #dcef6d; /* landing-hero literal; hero-cone.png is painted on it */
  --background-2: #eeecf8;

  --font-display: "Epilogue Variable", Arial, sans-serif;
  --font-body: "DM Sans Variable", Arial, sans-serif;

  --gutter: 16px;
  --max: 1280px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #3c77e5;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-70);
}
.eyebrow--lime {
  color: var(--green);
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display--light {
  color: var(--white);
}
.section-lead {
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--primary-80);
}

/* the campaign's white highlighter stroke under one word */
.hl {
  background-image: linear-gradient(var(--white), var(--white));
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 88%;
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.route .hl,
.parts .hl {
  background-image: linear-gradient(var(--green), var(--green));
}
.hl--dark {
  background-image: none;
  color: var(--green);
}

/* ---------- 1. hero ---------- */
.hero {
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.hero__panel {
  position: relative;
  overflow: hidden;
  max-width: 1408px;
  margin-inline: auto;
  border-radius: 32px;
  background: var(--hero-lime);
}
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 5vw, 72px) 0;
}
.hero__logo {
  width: clamp(112px, 12vw, 150px);
}
.hero__flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--green);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__flag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: 24px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 72px) 0;
}
.hero__copy {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 30em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--primary-80);
}
.hero__art {
  justify-self: center;
}
.hero__cone {
  width: clamp(180px, 26vw, 380px);
  transform-origin: 50% 100%;
  animation: cone-float 5s ease-in-out infinite;
}
@keyframes cone-float {
  50% {
    transform: translateY(-18px) rotate(-4deg);
  }
}

/* purple arc carrying the giant word, as on the campaign posts */
.hero__arc {
  position: relative;
  margin-top: clamp(-40px, -2vw, -12px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px) clamp(28px, 4vw, 48px);
  background: var(--primary);
  border-radius: 50% 50% 0 0 / clamp(40px, 7vw, 110px) clamp(40px, 7vw, 110px) 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.soon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(88px, 19vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.055em;
  color: var(--green);
  margin-left: -0.04em;
  padding-bottom: 0.06em;
}
.soon__dot {
  display: inline-block;
  animation: dot 2.4s ease-in-out infinite;
}
@keyframes dot {
  0%,
  60%,
  100% {
    transform: none;
  }
  70% {
    transform: translateY(-0.12em);
  }
  80% {
    transform: none;
  }
}
.hero__domain {
  padding: 12px 22px;
  border: 1.5px solid rgba(254, 254, 254, 0.35);
  border-radius: 999px;
  color: var(--white);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: clamp(8px, 2vw, 28px);
}

/* ---------- section scaffolding ---------- */
.route,
.parts,
.owners {
  padding-block: clamp(72px, 10vw, 140px) 0;
}
.section-head {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

/* ---------- 2. route ---------- */
.road {
  --stops: 7;
  --track: 64px;
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  gap: 18px;
}
.road__phases {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  gap: 12px;
}
.phase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--primary-50);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-70);
}
.phase b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.road__track {
  position: relative;
  height: var(--track);
  border-radius: 999px;
  background: var(--primary);
}
.road__lane {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 22px, transparent 22px 40px);
  border-radius: 2px;
}
.road__car {
  position: absolute;
  top: -22px;
  left: 8px;
  width: 96px;
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(24, 17, 72, 0.18));
  animation: drive 4.2s cubic-bezier(0.45, 0.05, 0.25, 1) 0.4s both;
}
/* the car runs the course once and parks before the finish; at rest it is parked */
@keyframes drive {
  from {
    left: 8px;
  }
  to {
    left: calc(100% - 104px);
  }
}

.stops {
  display: grid;
  grid-template-columns: repeat(var(--stops), minmax(0, 1fr));
  gap: 12px;
  counter-reset: stop;
}
.stop {
  display: grid;
  gap: 4px;
  align-content: start;
  position: relative;
  padding-top: 18px;
}
.stop__pin {
  position: absolute;
  top: calc(-18px - var(--track) / 2 - 7px);
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary);
}
.stop__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stop__name {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stop--finish .stop__pin {
  background: repeating-conic-gradient(var(--primary) 0 25%, var(--white) 0 50%) 0 0 / 7px 7px;
}
.road__end {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* ---------- 3. parts ---------- */
.cards {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 24px;
  border-radius: 24px;
  background: var(--background-2);
}
.card__art {
  width: 100%;
  aspect-ratio: 220 / 180;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--white);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card__text {
  font-size: 15px;
  line-height: 22px;
  color: var(--primary-80);
  flex: 1;
}
.tag {
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 12px;
  border: 1.5px dashed var(--primary-50);
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-70);
}

/* ---------- 4. owners ---------- */
.owners__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 6vw, 80px);
  border-radius: 32px;
  background: var(--primary);
  color: var(--white);
}
.owners__copy {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.owners__text {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(254, 254, 254, 0.8);
}
.owners__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.btn {
  min-height: 58px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn--lime {
  background: var(--green);
  color: var(--primary-dark);
}
.btn--lime:hover {
  background: #e6f78a;
  transform: translateY(-2px);
}
.owners__mail {
  font-size: 15px;
  font-weight: 600;
  color: rgba(254, 254, 254, 0.8);
  user-select: all;
}

/* a mock school profile card: the brand initials plate the site uses */
.owners__plate {
  justify-self: center;
  width: min(100%, 360px);
}
.plate {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "i n"
    "i m"
    "s s";
  gap: 4px 16px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  color: var(--primary);
  transform: rotate(-3deg);
  box-shadow: 0 24px 48px rgba(24, 17, 72, 0.35);
}
.plate__initials {
  grid-area: i;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.plate__name {
  grid-area: n;
  align-self: end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.plate__meta {
  grid-area: m;
  align-self: start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-70);
}
.plate__steps {
  grid-area: s;
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.plate__steps i {
  flex: 1;
  padding: 6px 0;
  border-radius: 999px;
  border: 1.5px solid var(--primary-50);
  text-align: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.plate__steps .is-on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* ---------- footer ---------- */
.footer {
  padding-block: clamp(64px, 8vw, 112px) clamp(32px, 4vw, 48px);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  border-top: 1px solid #dbd8e1;
}
.footer__logo {
  width: 120px;
}
.footer__line {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-70);
}
.footer__line a {
  text-decoration: none;
}
.footer__line a:hover {
  text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero__body {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .owners__panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .owners__plate {
    justify-self: start;
  }

  /* the road turns vertical: track on the left, stops read top to bottom */
  .road {
    grid-template-columns: var(--track) minmax(0, 1fr);
    column-gap: 24px;
    --track: 44px;
  }
  .road__phases {
    display: none;
  }
  .road__track {
    grid-row: 1 / span 2;
    height: auto;
  }
  .road__lane {
    left: 50%;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 4px;
    height: auto;
    margin: 0 0 0 -2px;
    background: repeating-linear-gradient(180deg, var(--green) 0 18px, transparent 18px 32px);
  }
  /* sideways the car reads badly at this size; the vertical road carries the idea alone */
  .road__car {
    display: none;
  }
  .stops {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .stop {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: baseline;
    padding-block: 14px;
    border-bottom: 1px solid #dbd8e1;
  }
  .stop__pin {
    top: 50%;
    left: -54px;
    margin-top: -7px;
  }
  .stop__n {
    font-size: 26px;
  }
  .stop__name {
    font-size: 17px;
  }
  .road__end {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__art {
    justify-self: end;
    margin-top: -24px;
  }
  .hero__cone {
    width: 160px;
  }
  .hero__flag {
    font-size: 10px;
    padding: 6px 10px;
  }
  .hero__arc {
    flex-direction: column;
    align-items: flex-start;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "a t"
      "a p"
      "a g";
    column-gap: 16px;
    row-gap: 4px;
    padding: 12px 16px 12px 12px;
    align-items: start;
  }
  .card__art {
    grid-area: a;
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
  }
  .card__title {
    grid-area: t;
    font-size: 20px;
    margin-top: 4px;
  }
  .card__text {
    grid-area: p;
    font-size: 14px;
    line-height: 20px;
  }
  .tag {
    grid-area: g;
    justify-self: start;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
}

/* ---------- feedback controls (tracked in assets/js/analytics.js) ---------- */
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.card__foot .tag {
  margin-top: 0;
}
.interest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  font: 800 13px/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.interest::before {
  content: "";
  width: 12px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 16 1 12 1 7a5.5 5.5 0 0 1 11-1 5.5 5.5 0 0 1 11 1c0 5-4 9-11 14z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 16 1 12 1 7a5.5 5.5 0 0 1 11-1 5.5 5.5 0 0 1 11 1c0 5-4 9-11 14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.interest:hover {
  transform: translateY(-1px);
}
.interest[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--primary-dark);
}

.copy,
.footer__cookies {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.copy {
  margin-left: 8px;
  color: var(--green);
  font-weight: 700;
}
.footer__cookies {
  text-transform: inherit;
  letter-spacing: inherit;
}

/* ---------- consent banner ---------- */
.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn--ghost {
  background: none;
  border-color: rgba(254, 254, 254, 0.45);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
}
.consent {
  position: fixed;
  z-index: 30;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100% - 32px));
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(24, 17, 72, 0.35);
}
.consent__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.consent__text {
  font-size: 14px;
  line-height: 20px;
  color: rgba(254, 254, 254, 0.8);
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
