/* === [S02.1] Home: base and hero === */
.home-page .shell-section {
  padding-block: clamp(56px, 9vw, 120px);
}
.home-page :focus-visible {
  outline: 3px solid var(--ez-blue-soft);
  outline-offset: 3px;
}
.home-section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.home-section-head .shell-h2 {
  margin: 0;
}
.home-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 10vw, 120px);
  text-align: center;
}
.home-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-hero__title {
  margin: 14px 0 0;
  max-width: 16ch;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.home-hero__lead {
  max-width: 46ch;
  margin: 20px auto 0;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.home-hero__actions .shell-btn,
.home-price__actions .shell-btn,
.home-contact__actions .shell-btn,
.home-demo-card .shell-btn {
  min-height: 48px;
}
.home-hero__price {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 700;
}
.home-hero__price span {
  font-weight: 400;
  color: var(--ez-muted);
}
.home-hero__visual {
  position: relative;
  width: 100%;
  margin-top: clamp(40px, 7vw, 84px);
}
.home-hero__glow {
  position: absolute;
  inset: -10% -6% -4%;
  background: var(--ez-glow);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.home-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1B2330, #0B0F16);
  border: 1px solid var(--ez-line);
  box-shadow: 0 40px 120px -30px rgba(0, 91, 252, .55);
}
.home-frame__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ez-paper);
}
.home-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero__stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.home-hero__stroke path {
  fill: none;
  stroke: var(--ez-blue);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: home-draw 1.8s cubic-bezier(.6, .1, .3, 1) .5s forwards;
}
@keyframes home-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__stroke path { animation: none; stroke-dashoffset: 0; }
}

/* === [S02.2] Home: strip === */
.home-strip {
  padding-block: 28px;
  background: var(--ez-sheet);
  border-block: 1px solid var(--ez-line);
}
.home-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-strip .shell-chip {
  font-size: 15px;
}

/* === [S02.3] Home: features === */
.home-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.home-card {
  padding: 24px;
  border-radius: var(--ez-r-md);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--ez-r-sm);
  background: rgba(0, 91, 252, .16);
  color: var(--ez-blue-soft);
}
.home-card__icon .shell-icon,
.home-card__icon svg {
  width: 24px;
  height: 24px;
}
.home-card__title {
  margin: 16px 0 6px;
  font-size: 19px;
  font-weight: 700;
}
.home-card__body {
  margin: 0;
  color: var(--ez-muted);
  line-height: 1.55;
}
@media (hover: hover) {
  .home-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 160, 255, .55);
    box-shadow: 0 18px 50px -18px rgba(0, 91, 252, .65);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-card { transition: none; }
  .home-card:hover { transform: none; }
}
@media (min-width: 640px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .home-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* === [S02.4] Home: live === */
.home-live__inner {
  display: grid;
  gap: 40px;
}
.home-live__copy .shell-h2 {
  margin: 0 0 14px;
}
.home-live__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 14px;
  padding: 6px 14px;
  border-radius: var(--ez-r-pill);
  background: rgba(255, 107, 107, .14);
  color: var(--ez-red);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}
.home-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ez-red);
  animation: home-pulse 1.6s ease-in-out infinite;
}
@keyframes home-pulse {
  50% { opacity: .25; }
}
.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-pill {
  padding: 10px 16px;
  border-radius: var(--ez-r-pill);
  border: 1px solid var(--ez-line);
  background: var(--ez-tile);
  font-weight: 600;
}
.home-live__points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-point {
  padding: 22px 24px;
  border-left: 3px solid var(--ez-blue);
  border-radius: 0 var(--ez-r-md) var(--ez-r-md) 0;
  background: var(--ez-sheet);
}
.home-point__title {
  margin: 0 0 6px;
  font-size: 18px;
}
.home-point__body {
  margin: 0;
  color: var(--ez-muted);
  line-height: 1.55;
}
@media (min-width: 960px) {
  .home-live__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }
}

/* === [S02.5] Home: phones === */
.home-phones__inner {
  display: grid;
  gap: 40px;
}
.home-phones__copy .shell-h2 {
  margin: 0 0 14px;
}
.home-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0 0 0 22px;
  color: var(--ez-muted);
  line-height: 1.5;
}
.home-steps li::marker {
  color: var(--ez-blue-soft);
  font-weight: 700;
}
.home-phones__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.home-phone {
  width: 210px;
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(180deg, #1B2330, #0B0F16);
  border: 1px solid var(--ez-line);
  box-shadow: 0 30px 80px -30px rgba(0, 91, 252, .5);
}
.home-phone__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 26px 16px 16px;
  border-radius: 26px;
  background: var(--ez-night);
  text-align: center;
}
.home-qr {
  width: 100%;
  max-width: 150px;
  height: auto;
  color: var(--ez-paper);
  background: var(--ez-paper);
  padding: 8px;
  border-radius: 12px;
  box-sizing: content-box;
}
.home-qr path {
  fill: #111011;
}
.home-file {
  position: absolute;
  right: 0;
  bottom: 8%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  max-width: 230px;
  padding: 14px 16px;
  border-radius: var(--ez-r-md);
  background: var(--ez-paper);
  color: var(--ez-text-dark);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}
.home-file__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 91, 252, .12);
  color: var(--ez-blue);
}
.home-file__icon svg {
  width: 22px;
  height: 22px;
}
.home-file__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-file__status {
  font-size: 13px;
  color: var(--ez-green);
  font-weight: 600;
}
@media (min-width: 960px) {
  .home-phones__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }
  .home-phones__visual {
    min-height: 480px;
  }
}

/* === [S02.6] Home: gallery === */
.home-gallery__wrap {
  max-width: 1200px;
  margin-inline: auto;
}
.home-gallery__track {
  display: flex;
  gap: 16px;
  padding: 4px 20px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.home-gallery__track::-webkit-scrollbar {
  display: none;
}
.home-gallery__slide {
  flex: 0 0 84%;
  margin: 0;
  scroll-snap-align: start;
}
.home-gallery__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--ez-r-md);
  border: 1px solid var(--ez-line);
  background: var(--ez-paper);
}
.home-gallery__slide figcaption {
  margin-top: 12px;
  font-weight: 600;
  color: var(--ez-muted);
}
.home-gallery__nav {
  display: none;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.home-gallery__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ez-line);
  background: var(--ez-tile);
  color: var(--ez-text);
  cursor: pointer;
}
.home-gallery__btn:hover {
  border-color: var(--ez-blue-soft);
}
.home-gallery__btn:disabled {
  opacity: .4;
  cursor: default;
}
.home-gallery__btn svg {
  width: 22px;
  height: 22px;
}
@media (min-width: 640px) {
  .home-gallery__slide { flex-basis: 60%; }
}
@media (min-width: 960px) {
  .home-gallery__slide { flex-basis: 46%; }
  .home-gallery__nav { display: flex; }
}

/* === [S02.7] Home: offline (light section) === */
.home-offline {
  color: var(--ez-text-dark);
}
.home-offline .shell-eyebrow {
  color: var(--ez-blue);
}
.home-offline .shell-h2,
.home-offline .shell-lead {
  color: var(--ez-text-dark);
}
.home-offline .shell-lead {
  color: var(--ez-muted-dark);
}
.home-offline .shell-card {
  background: var(--ez-paper);
  border-color: #E3E8F0;
  color: var(--ez-text-dark);
}
.home-offline .home-card__icon {
  background: rgba(0, 91, 252, .1);
  color: var(--ez-blue);
}
.home-offline .home-card__body {
  color: var(--ez-muted-dark);
}
.home-offline .home-section-head .shell-lead {
  margin: 0;
}

/* === [S02.8] Home: boards === */
.home-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  border-radius: var(--ez-r-md);
  border: 1px solid var(--ez-line);
  background: var(--ez-sheet);
}
.home-spec__value {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ez-text);
  line-height: 1.1;
}
.home-spec__label {
  color: var(--ez-muted);
  font-size: 15px;
}
.home-boards__tested {
  margin: 24px 0 0;
  color: var(--ez-muted);
}
@media (min-width: 960px) {
  .home-specs { grid-template-columns: repeat(4, 1fr); }
}

/* === [S02.9] Home: demo call to action === */
.home-demo-card {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--ez-r-lg);
  border: 1px solid var(--ez-line);
  background: radial-gradient(70% 90% at 90% 0%, rgba(0, 91, 252, .35), transparent 70%), var(--ez-sheet);
  overflow: hidden;
}
.home-demo-card__copy .shell-h2 {
  margin: 0 0 12px;
}
.home-demo-card__copy .shell-lead {
  margin: 0 0 24px;
}
.home-demo-card__loop {
  width: 100%;
  max-width: 380px;
  height: auto;
  justify-self: center;
  overflow: visible;
}
.home-loop {
  fill: none;
  stroke: var(--ez-blue-soft);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: home-loop-draw 4.5s ease-in-out infinite;
}
.home-loop--under {
  stroke: var(--ez-blue);
  animation-delay: .9s;
}
@keyframes home-loop-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-loop { animation: none; stroke-dashoffset: 0; }
}
@media (min-width: 960px) {
  .home-demo-card { grid-template-columns: 1.1fr 1fr; }
}

/* === [S02.10] Home: pricing === */
.home-price {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--ez-r-lg);
  text-align: center;
}
.home-price__amount {
  margin: 0;
  font-size: clamp(52px, 10vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.home-price__note {
  margin: 10px 0 0;
  color: var(--ez-muted);
  font-size: 18px;
}
.home-checks {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.home-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.home-checks .shell-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--ez-green);
}
.home-price__actions {
  display: grid;
  gap: 12px;
}
.home-price__footnote {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ez-muted);
}
.home-price__footnote a {
  color: var(--ez-blue-soft);
}
@media (min-width: 640px) {
  .home-price__actions { grid-template-columns: 1fr 1fr; }
}

/* === [S02.11] Home: faq === */
.home-faq__inner {
  max-width: 820px;
}
.home-faq__list {
  display: grid;
  gap: 10px;
}
.home-faq__item {
  border: 1px solid var(--ez-line);
  border-radius: var(--ez-r-md);
  background: var(--ez-sheet);
}
.home-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
}
.home-faq__item summary::-webkit-details-marker {
  display: none;
}
.home-faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ez-blue-soft);
  border-bottom: 2px solid var(--ez-blue-soft);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .25s ease;
}
.home-faq__item[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.home-faq__item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ez-muted);
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .home-faq__item summary::after { transition: none; }
}

/* === [S02.12] Home: contact === */
.home-contact__inner {
  display: grid;
  gap: 36px;
}
.home-contact__intro .shell-h2 {
  margin: 0 0 14px;
}
.home-contact__cards {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.home-contact__card {
  padding: 18px 20px;
  border-radius: var(--ez-r-md);
}
.home-contact__card .home-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ez-muted);
  font-weight: 600;
}
.home-contact__card a {
  font-size: 18px;
  font-weight: 700;
  color: var(--ez-text);
  word-break: break-word;
}
.home-contact__form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--ez-r-lg);
}
.home-contact__note {
  margin: 0;
  color: var(--ez-muted);
  font-size: 15px;
}
.home-field {
  display: grid;
  gap: 6px;
}
.home-field label {
  font-weight: 600;
  font-size: 15px;
}
.home-field input,
.home-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--ez-line);
  background: var(--ez-night);
  color: var(--ez-text);
  font: inherit;
  font-size: 16px;
}
.home-field textarea {
  resize: vertical;
  min-height: 110px;
}
.home-field input:focus,
.home-field textarea:focus {
  border-color: var(--ez-blue-soft);
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 160, 255, .3);
}
.home-contact__actions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.home-contact__actions .home-mail {
  text-align: center;
}
@media (min-width: 640px) {
  .home-contact__form {
    grid-template-columns: 1fr 1fr;
  }
  .home-field--wide,
  .home-contact__note,
  .home-contact__actions {
    grid-column: 1 / -1;
  }
  .home-contact__actions {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .home-contact__inner {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
    gap: 56px;
  }
}

/* Phone width: no horizontal page scroll and a 16px gutter. */
@media (max-width: 380px) {
  .home-hero__title { font-size: 38px; }
  .home-phone { width: 190px; }
}
html[lang="si"] .home-hero__title,
html[lang="si"] .home-section-head .shell-h2 {
  letter-spacing: 0;
  line-height: 1.3;
}
html[lang="si"] .home-card__body,
html[lang="si"] .home-point__body {
  line-height: 1.7;
}
