/*! Copyright (c) 2026 Valentin Ciupilan. All rights reserved. */
/* Colours, fonts and shapes come from theme.css, generated from site.config.json. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--text);
}
:focus-visible {
  outline: 3px solid var(--moon);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--dark);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking);
  margin: 0;
  line-height: 1.04;
}
p {
  margin: 0;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.h-xl {
  font-size: calc(clamp(46px, 7.2vw, 104px) * var(--scale));
  line-height: 0.98;
}
.h-lg {
  font-size: calc(clamp(34px, 4.4vw, 60px) * var(--scale));
}
.h-md {
  font-size: calc(clamp(30px, 3.8vw, 50px) * var(--scale));
}
.hl {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    background 200ms;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
}
.btn-ghost {
  border-color: currentColor;
  color: var(--text);
  background: transparent;
}
.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.on-dark .btn-ghost {
  color: var(--on-dark);
}
.btn-moon {
  background: var(--moon);
  color: #2a221d;
}

/* Announcement */
.announce {
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
}
.announce a {
  color: inherit;
  font-weight: 700;
}

/* Header */
.header {
  position: relative;
  z-index: 5;
}
.header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover {
  color: var(--text);
}
.wordmark {
  font-family: "Space Grotesk", var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.wordmark span {
  font-weight: 400;
  color: var(--accent);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  font-size: 15px;
}
.nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
}
.nav a:not(.btn)[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--moon);
}
.menu-toggle {
  display: none;
}
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 8px;
  }
  .nav.open {
    display: flex;
  }
}

/* Sections */
.section {
  padding: 112px 0;
}
.alt {
  background: var(--alt);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  flex-direction: column;
}
.hero-bg,
.hero-lens {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--deco) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, var(--deco) 0 1px, transparent 1px 72px);
  opacity: 0.55;
}
.hero-word {
  position: absolute;
  left: 2%;
  bottom: -50px;
  font-family: var(--font-display);
  font-size: clamp(120px, 21vw, 300px);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--deco);
  white-space: nowrap;
  line-height: 1;
}
.hero-lens {
  filter: url(#vs-warp);
  clip-path: circle(0 at 50% 50%);
  background: var(--lens);
}
.hero-lens .hero-grid {
  background-image:
    repeating-linear-gradient(0deg, var(--text) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 72px);
  opacity: 0.2;
}
.hero-lens .hero-word {
  -webkit-text-stroke: 3px var(--accent);
}
.hero-ring {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--surface) 60%, transparent);
  pointer-events: none;
  opacity: 0;
}
.hero-art {
  position: absolute;
  right: max(-140px, calc(50% - 780px));
  top: 120px;
  width: min(560px, 56vw);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.hero-content .lead {
  max-width: 560px;
  font-size: 19px;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cue {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 32px;
}
.cue i {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--accent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
.page-hero {
  padding: 72px 0 40px;
}

/* volte */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}
.split > * {
  flex: 1 1 420px;
  min-width: 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature b {
  font-size: 17px;
}
.feature span {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.phone {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 44px;
  background: #2e2620;
  padding: 14px;
}
.phone-screen {
  border-radius: 32px;
  background: #fbf8f3;
  color: #2e2620;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 540px;
  font-size: 15px;
}
.member {
  border-radius: 20px;
  background: #2f5da8;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.member-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.member-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f28c38;
}
.member-points {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.member-points small {
  font-size: 16px;
  font-weight: 500;
}
.reward {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2d6c4;
  padding: 14px;
  display: flex;
  justify-content: space-between;
}
.reward b {
  color: #2f5da8;
}

/* How */
.step {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-n {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  font-size: 24px;
}

/* Screens walk-through */
.walk {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.walk-frame {
  flex: 1 1 520px;
  min-width: 0;
  position: sticky;
  top: 40px;
}
.walk-steps {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.walk-step {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity 300ms;
}
.walk-step.active {
  opacity: 1;
}
.walk-step h3 {
  font-size: 28px;
}
.screen-box {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 12px;
}
.screen {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: #f4f6fb;
  color: #14264a;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 450ms,
    transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
  display: flex;
  font-size: 14px;
}
.screen.active {
  opacity: 1;
  transform: none;
}
.no-walk .walk-step {
  min-height: 0;
  opacity: 1;
  padding: 16px 0;
}
.no-walk .walk-frame {
  position: static;
}
.screen-side {
  flex: 0 0 150px;
  background: #fff;
  border-right: 1px solid #dde3ef;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #3a4a66;
}
.screen-side b {
  color: #2f5da8;
  font-family: "Space Grotesk", sans-serif;
}
.screen-main {
  flex: 1;
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.screen-main h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  background: #fff;
  border: 1px solid #dde3ef;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
}
.bars {
  flex: 1;
  background: #fff;
  border: 1px solid #dde3ef;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.bars i {
  flex: 1;
  background: #c9d7f2;
  border-radius: 5px;
}
.bars i:last-child {
  background: #2f5da8;
}
.row {
  background: #fff;
  border: 1px solid #dde3ef;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
}
.screen-phone {
  justify-content: center;
  align-items: center;
  background: #ece2d3;
}
.screen-phone .phone {
  transform: scale(0.72);
}

/* Products */
.product {
  padding: 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
}
.product-main {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: calc(var(--radius) + 8px);
}
.product-main:hover {
  color: var(--on-dark);
}
.product-next {
  border: 1.5px dashed var(--line);
  border-radius: calc(var(--radius) + 8px);
  color: var(--muted);
}
.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.product-head h3 {
  font-size: 44px;
}
.badge {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-on {
  background: var(--moon);
  color: #2a221d;
}
.badge-off {
  border: 1px solid var(--line);
}

/* Demo band */
.band {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: calc(var(--radius) + 12px);
  padding: clamp(32px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.band .stack {
  flex: 1 1 420px;
  gap: 14px;
}
.band p {
  opacity: 0.85;
  font-size: 18px;
}

/* Footer */
.footer {
  background: var(--alt);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer a {
  color: var(--text);
}

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  min-height: 80vh;
}
.contact-side {
  flex: 1 1 380px;
  background: var(--alt);
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.contact-side address {
  font-style: normal;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}
.contact-side address b {
  color: var(--text);
}
.form {
  flex: 999 1 560px;
  min-width: 0;
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 920px;
}
.form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form legend {
  font-weight: 700;
  font-size: 15px;
  padding: 0;
  margin-bottom: 10px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}
.pill input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.pill input:focus-visible + span {
  outline: 3px solid var(--moon);
  outline-offset: 3px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 620px) {
  .fields {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.field-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.field small {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}
.field input,
.field select,
.field textarea {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--surface);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-weight: 500;
}
.field textarea {
  padding: 14px 16px;
  resize: vertical;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--alt);
  font-weight: 600;
}
.form-status[hidden] {
  display: none;
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slots .pill span {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

/* Text pages */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 28px;
  margin: 40px 0 12px;
}
.prose p,
.prose ul {
  margin: 0 0 14px;
}
.prose .note {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--alt);
  font-size: 15px;
}

/* Motion */
.rise {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rise.in {
  opacity: 1;
  transform: none;
}
.no-rise .rise {
  opacity: 1;
  transform: none;
}
.curtain {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--accent);
  transform: translateX(-100%);
  pointer-events: none;
}
.curtain.in {
  transition: transform 420ms cubic-bezier(0.7, 0, 0.3, 1);
  transform: none;
}
.curtain.out {
  transition: transform 520ms cubic-bezier(0.7, 0, 0.3, 1);
  transform: translateX(100%);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cue i,
  .spin {
    animation: none;
  }
  .curtain {
    display: none;
  }
  .screen {
    transition: none;
  }
}
.spin {
  animation: spin 60s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
