/*
 * My Montee landing page.
 *
 * Direction (the five lines the unslop review asks for):
 *   Product:   a small module that joins the intercom a Romanian apartment
 *              block already has, so the family hears the ring, talks and
 *              opens the street door from the phone, from anywhere.
 *   Character: neighbourly, dependable, warm. A good dog at the door.
 *   World:     the block entrance: the dark door-entry panel with numbered
 *              keys and a status light, the phone in your hand, the amber
 *              of the retriever. Committed colour: amber owns the hero.
 *   Moment:    the hero's ring-to-open sequence (js/ring.js), played once.
 *              Everything else is still: sections do not animate in.
 *   Signature: panel keycaps. Step numbers, the apartment key and the
 *              language switch share the keycap shape.
 *
 * Tokens live in tokens.css. Scene drawings (moments) keep their palette at
 * the end of this file.
 */
@import url("tokens.css");
@import url("rotator.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--plaster);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--line-strong) transparent;
}

body.is-nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.975rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition-property: background-color, color, scale, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.btn:not(:disabled):active {
  scale: 0.96;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ink,
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 2px rgb(20 38 30 / 0.2), 0 6px 16px -6px rgb(20 38 30 / 0.45);
}

@media (hover: hover) {
  .btn-ink:hover,
  .btn-primary:hover {
    background: #213a2f;
  }
}

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgb(20 38 30 / 0.35);
  transition: text-decoration-color 150ms ease-out;
}

@media (hover: hover) {
  .text-link:hover {
    text-decoration-color: currentColor;
  }
}

/* keycap: the panel's button shape, reused as the page's signature */
.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border-radius: 10px;
  background: var(--panel);
  color: var(--panel-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.12);
}

/* ------------------------------------------------------------------ nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4.25rem;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-left));
  background: var(--amber);
  transition-property: background-color, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
}

.site-nav.is-stuck {
  background: rgb(244 246 241 / 0.92);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.nav-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-mark {
  width: auto;
  height: 2.4rem;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.site-nav-menu {
  margin-left: auto;
}

.site-nav-list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

.site-nav-link.is-active {
  color: var(--ink);
}

@media (hover: hover) {
  .site-nav-link:hover {
    color: var(--ink);
    background: rgb(20 38 30 / 0.06);
  }
}

.site-nav-signin {
  display: none;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: rgb(20 38 30 / 0.08);
}

.lang-toggle button {
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--panel-text);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.35);
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

@media (hover: hover) {
  .nav-signin:hover {
    text-decoration: underline;
  }
}

.nav-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  place-items: center;
}

.nav-menu-bars {
  display: grid;
  gap: 5px;
  width: 20px;
}

.nav-menu-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms var(--ease-out);
}

.site-nav.is-menu-open .nav-menu-bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-nav.is-menu-open .nav-menu-bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 4.25rem 0 0;
  background: rgb(20 38 30 / 0.3);
}

@media (max-width: 959px) {
  .nav-menu-btn {
    display: grid;
  }

  .nav-signin {
    display: none;
  }

  .site-nav-menu {
    position: fixed;
    inset: 4.25rem 0 auto;
    z-index: 2;
    margin: 0;
    padding: 0.5rem 1rem 1.25rem;
    background: var(--plaster);
    box-shadow: 0 12px 24px -12px rgb(20 38 30 / 0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 150ms ease-out,
      transform 150ms ease-out,
      visibility 0s linear 150ms;
  }

  .site-nav.is-menu-open .site-nav-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out),
      visibility 0s;
  }

  .site-nav-list {
    flex-direction: column;
  }

  .site-nav-link {
    width: 100%;
    min-height: 52px;
    font-size: 1.1rem;
    border-radius: var(--r-md);
  }

  .site-nav-signin {
    display: block;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--line);
  }

  .nav-tools {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .nav-cta {
    display: none;
  }

  .nav-wordmark {
    font-size: 1.1rem;
  }
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--amber);
  padding: clamp(1.5rem, 4vw, 3.5rem) 1rem clamp(3rem, 7vw, 5.5rem);
  overflow: clip;
}

/* A soft floor shadow where the hero meets the plaster below. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--amber-edge);
  opacity: 0.6;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3rem);
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-on-amber-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 0.75rem;
  }

  .hero-copy {
    grid-row: 1 / span 2;
  }
}

/* The ring demo. Positions are fractions of the figure so it scales whole. */
.ring-demo {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 0.92;
  margin: 0 auto;
}

.panel {
  position: absolute;
  left: 3%;
  top: 20%;
  width: 34%;
  height: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5.6cqw 3.5cqw 4cqw;
  border-radius: 4cqw;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 2px 4px rgb(20 38 30 / 0.18),
    0 22px 40px -14px rgb(20 38 30 / 0.55);
  color: var(--panel-text);
}

.panel-grille {
  display: grid;
  gap: 1.1cqw;
  width: 46%;
}

.panel-grille i {
  display: block;
  height: 0.9cqw;
  border-radius: 1cqw;
  background: rgb(0 0 0 / 0.45);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}

.panel-led {
  position: absolute;
  top: 3cqw;
  right: 4cqw;
  width: 2.2cqw;
  height: 2.2cqw;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 0.6cqw rgb(31 164 99 / 0.25), 0 0 3cqw rgb(31 164 99 / 0.7);
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.panel-label {
  margin-top: 2.9cqw;
  font-size: 2.5cqw;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(223 231 225 / 0.7);
}

/* Backlit display: amber digits on dark glass, like the panels in Romanian blocks. */
.panel-display {
  display: grid;
  place-items: center;
  width: 100%;
  height: 6.2cqw;
  margin-top: 2cqw;
  margin-bottom: 2.6cqw; /* clear gap above the keypad, about one and a half key gaps */
  border-radius: 1.2cqw;
  background: linear-gradient(180deg, #0d1410, #18221c);
  box-shadow: inset 0 0.5cqw 1.1cqw rgb(0 0 0 / 0.65), 0 1px 0 rgb(255 255 255 / 0.08);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 3cqw;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 1.2cqw rgb(243 179 61 / 0.6);
  overflow: hidden;
}

.panel-display > span {
  grid-area: 1 / 1;
  padding-left: 0.28em; /* balances the trailing letter-spacing */
  letter-spacing: 0.28em;
  transition: opacity 120ms linear;
}

.panel-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqw;
  width: 100%;
  margin-top: auto;
}

.panel-keys span {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  border-radius: 1.8cqw;
  background: var(--panel-key);
  box-shadow: inset 0 -0.6cqw 0 rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.3cqw;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    scale 150ms ease-out,
    box-shadow 200ms var(--ease-out);
}

.ring-wire {
  position: absolute;
  left: 36%;
  top: 24%;
  width: 21%;
  height: 22%;
  overflow: visible;
}

.ring-wire path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ring-wire-base {
  stroke: rgb(20 38 30 / 0.28);
  stroke-width: 2;
  stroke-dasharray: 2 5;
}

.ring-wire-pulse {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-dasharray: 0.3 1.3;
  stroke-dashoffset: 0.3;
  opacity: 0;
}

.phone {
  position: absolute;
  right: 2%;
  top: 0;
  width: 46%;
  height: 94%;
  padding: 1.6cqw;
  border-radius: 7cqw;
  background: #0f1813;
  box-shadow:
    inset 0 0 0 0.5cqw #2b3530,
    0 2px 4px rgb(20 38 30 / 0.2),
    0 30px 50px -18px rgb(20 38 30 / 0.6);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 5.6cqw;
  overflow: hidden;
  background: var(--plaster);
  padding: 3cqw 3cqw;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 2.4cqw;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.phone-dog {
  width: 4cqw;
  height: 6cqw;
  background: url("../assets/dog-sitting.webp") center / contain no-repeat;
}

.phone-card {
  display: grid;
  margin-top: 16cqw;
  padding: 3.6cqw 3.4cqw;
  border-radius: 4cqw;
  background: var(--paper);
  box-shadow: var(--shadow-2);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out,
    filter 300ms ease-out;
}

.phone-card-ring,
.phone-card-open {
  grid-area: 1 / 1;
  transition:
    opacity 250ms ease-out,
    filter 250ms ease-out,
    transform 250ms ease-out,
    visibility 0s;
}

.phone-card-ring {
  opacity: 0;
  visibility: hidden;
}

.phone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6cqw;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.phone-meta {
  margin-top: 1cqw;
  font-size: 2.5cqw;
  font-weight: 600;
  color: var(--ink-3);
}

/* Stacked full width, main action first, as in the app: holds any language. */
.phone-actions {
  display: grid;
  gap: 1.4cqw;
  margin-top: 3.6cqw;
}

.phone-btn {
  display: grid;
  place-items: center;
  min-height: 6.8cqw;
  padding: 0 2cqw;
  border-radius: 999px;
  font-size: 2.5cqw;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: scale 150ms ease-out, background-color 150ms ease-out;
}

.phone-btn-go {
  order: -1;
}

.phone-btn-quiet {
  background: var(--plaster-2);
}

.phone-btn-go {
  background: var(--ink);
  color: var(--paper);
}

.phone-check {
  width: 7cqw;
  height: 7cqw;
  margin-bottom: 2cqw;
  padding: 1.4cqw;
  border-radius: 50%;
  background: var(--led-wash);
  fill: none;
  stroke: var(--led-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ring-dog {
  position: absolute;
  left: 34.5%;
  bottom: -1%;
  width: 18%;
  height: auto;
  filter: drop-shadow(0 10px 10px rgb(20 38 30 / 0.22));
}

.ring-again {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgb(20 38 30 / 0.07);
  transition: background-color 150ms ease-out, scale 150ms ease-out, opacity 150ms ease-out;
}

.ring-again::before {
  content: "15";
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  background: var(--panel);
  color: var(--panel-text);
  font-family: var(--font-display);
  font-size: 0.75rem;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.35);
}

.ring-again:not(:disabled):active {
  scale: 0.96;
}

.ring-again:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (hover: hover) {
  .ring-again:not(:disabled):hover {
    background: rgb(20 38 30 / 0.12);
  }
}

/* --- the sequence (js/ring.js). Without .is-armed the figure shows the
   finished state: door open, light green. */
.ring-demo.is-armed:not(.is-open) .panel-led {
  background: #5d6862;
  box-shadow: none;
}

.ring-demo.is-armed:is(.is-wire, .is-ring, .is-tap) .panel-led {
  background: var(--amber);
  box-shadow: 0 0 0 0.6cqw rgb(243 179 61 / 0.25), 0 0 3cqw rgb(243 179 61 / 0.75);
}

/* Dialling 1 then 5: each key lights and dips as it is pressed, and the
   display fills in. Finished state (no .is-armed): the display reads ACCES. */
@keyframes key-press {
  0%, 55% {
    background: var(--amber);
    color: var(--ink);
    scale: 0.9;
    box-shadow: inset 0 -0.2cqw 0 rgb(0 0 0 / 0.3);
  }
}

.ring-demo.is-press1 [data-key="1"],
.ring-demo.is-press5 [data-key="5"] {
  animation: key-press 420ms var(--ease-out);
}

.ring-demo .panel-display-digits {
  opacity: 0;
}

.ring-demo.is-armed:not(.is-open) .panel-display-access {
  opacity: 0;
}

.ring-demo.is-armed:is(.is-press1, .is-press5, .is-wire, .is-ring, .is-tap) .panel-display-digits {
  opacity: 1;
}

.ring-demo.is-press1 [data-digit="5"] {
  opacity: 0;
}

/* While the apartment is being called, the number blinks. */
@keyframes display-call {
  50% { opacity: 0.25; }
}

.ring-demo.is-ring .panel-display-digits {
  animation: display-call 900ms steps(1) infinite;
}

.ring-demo.is-wire .ring-wire-pulse {
  opacity: 1;
  stroke-dashoffset: -1.3;
  transition: stroke-dashoffset 550ms cubic-bezier(0.45, 0, 0.55, 1), opacity 100ms linear;
}

.ring-demo.is-armed:is(.is-idle, .is-press1, .is-press5, .is-wire) .phone-card {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
}

.ring-demo.is-armed:is(.is-ring, .is-tap) .phone-card-ring {
  opacity: 1;
  visibility: visible;
}

.ring-demo.is-armed:not(.is-open) .phone-card-open {
  opacity: 0;
  visibility: hidden;
}

.ring-demo.is-open.is-armed .phone-card-ring {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-12px);
  transition-duration: 150ms;
}

.ring-demo.is-armed.is-open .phone-card-open {
  transition-delay: 120ms;
}

.ring-demo.is-armed:is(.is-ring, .is-tap) .phone-card {
  box-shadow: 0 0 0 0.5cqw var(--amber), var(--shadow-3);
}

.ring-demo.is-tap [data-open-btn] {
  scale: 0.94;
  background: #2a4537;
}

@media (prefers-reduced-motion: reduce) {
  .ring-demo * {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------------------- sections */

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1rem 0;
}

.section-head {
  max-width: 40rem;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.section-head p {
  margin-top: 0.9rem;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* How it works: three keys on a rule, no cards. */
.how-steps {
  display: grid;
  gap: 2rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: 0.35rem;
  align-items: start;
}

/* Each step is led by a line icon on a plaster tile (same 24px, 1.75 stroke
   family as the app's icons), numbered by a keycap on its corner. */
.how-art {
  position: relative;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--plaster-2);
  color: var(--ink);
}

.how-art svg {
  width: 2.25rem;
  height: 2.25rem;
}

.how-art .how-ico-amber {
  fill: var(--amber);
}

.how-steps .keycap {
  position: absolute;
  left: 2.9rem;
  top: 2.9rem;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 7px;
  font-size: 0.8rem;
  box-shadow:
    0 0 0 3px var(--plaster),
    inset 0 -2px 0 rgb(0 0 0 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.how-steps h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  padding-top: 0.35rem;
}

.how-steps p {
  color: var(--ink-2);
  max-width: 34ch;
}

@media (min-width: 820px) {
  .how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }

  .how-steps li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.6rem;
  }

  .how-art {
    grid-row: auto;
    margin-bottom: 0.6rem;
  }

  .how-steps h3 {
    padding-top: 0;
  }
}

/*
 * Moments: a looping carousel of story films. The slide in the middle is at
 * full strength; its neighbours peek in at the sides, dimmed, so it reads as
 * something you can swipe. On phones the track runs to the screen edges.
 */
.moments #stories-mount {
  margin-top: 1.5rem;
}

.moment-track {
  --slide: 86%;
  position: relative;
  display: flex;
  gap: 0.75rem;
  margin: 0 -1rem;
  padding: 4px 0 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.moment-track::-webkit-scrollbar {
  display: none;
}

.moment-track:focus-visible {
  outline-offset: -3px;
  border-radius: var(--r-lg);
}

.moment {
  flex: 0 0 var(--slide);
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  opacity: 0.5;
  transform: scale(0.94);
  cursor: pointer;
  transition:
    opacity 350ms var(--ease-out),
    transform 350ms var(--ease-out);
}

.moment.is-centered {
  opacity: 1;
  transform: none;
  cursor: auto;
}

@media (hover: hover) {
  .moment:not(.is-centered):hover {
    opacity: 0.75;
  }
}

/* The film fills the top of the card; title and caption sit on it. */
.moment-film {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line);
}

.moment-film video,
.moment-film img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-title {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  max-width: calc(100% - 1.2rem);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 1px 3px rgb(20 38 30 / 0.18);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Caption: the label of the shot on screen. */
.moment-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.25rem 1rem 0.7rem;
  background: linear-gradient(to top, rgb(12 24 19 / 0.72), rgb(12 24 19 / 0));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}

.moment-caption:empty {
  display: none;
}

/*
 * Timeline under the film: one small round tile per shot on a track. The
 * track fills up to the shot on screen. The caption on the film carries the
 * label; each tile keeps it for screen readers.
 */
.scene-row {
  --tile: 34px;
  list-style: none;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0.6rem 0.75rem 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.scene {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 0;
}

.scene:last-child {
  flex: 0 0 auto;
}

.scene-btn {
  flex: 0 0 auto;
  display: block;
  width: var(--tile);
  padding: 0;
  border-radius: 50%;
  color: var(--ink-3);
}

.scene-art {
  width: var(--tile);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  opacity: 0.45;
  filter: saturate(0.3);
  transition:
    opacity 300ms var(--ease-out),
    filter 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.scene-art svg {
  width: 84%;
  height: 84%;
  overflow: visible;
}

.scene.is-on .scene-art {
  opacity: 1;
  filter: none;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.scene.is-here .scene-art {
  transform: scale(1.1);
  box-shadow:
    inset 0 0 0 2px var(--ink),
    0 0 0 4px rgb(20 38 30 / 0.08);
}

@media (hover: hover) {
  .moment.is-centered .scene:not(.is-on) .scene-btn:hover .scene-art {
    opacity: 0.8;
  }
}

.scene-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.scene-wire {
  position: relative;
  flex: 1 1 0;
  height: 2px;
  margin-top: calc(var(--tile) / 2 - 1px);
  background: var(--line);
  overflow: hidden;
}

.scene-wire i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 450ms var(--ease-out);
}

.scene.is-linked .scene-wire i {
  transform: scaleX(1);
}

/* Controls: arrows either side of the dots, then Pause. */
.moment-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.moment-arrow,
.moment-pause {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 150ms ease-out;
}

.moment-arrow svg,
.moment-pause svg {
  width: 20px;
  height: 20px;
}

.moment-pause {
  margin-left: 0.5rem;
}

.moment-pause[hidden] {
  display: none;
}

@media (hover: hover) {
  .moment-arrow:hover,
  .moment-pause:hover {
    box-shadow: inset 0 0 0 1px var(--ink);
  }
}

.moment-dots {
  display: flex;
  align-items: center;
}

/* Each dot is a 24 x 44 target; the current one stretches and fills as its film plays. */
.moment-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 44px;
  border-radius: 999px;
  transition: width 300ms var(--ease-out);
}

.moment-dot[aria-current="true"] {
  width: 46px;
}

.moment-dot i {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
  transition:
    width 300ms var(--ease-out),
    background-color 150ms ease-out;
}

.moment-dot[aria-current="true"] i {
  width: 34px;
}

.moment-dot i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.moment-dot[aria-current="true"] i::after {
  transform: scaleX(var(--p, 0));
}

@media (hover: hover) {
  .moment-dot[aria-current="false"]:hover i {
    background: var(--ink-3);
  }
}

@media (min-width: 640px) {
  .scene-row {
    --tile: 44px;
    padding: 0.75rem 1.25rem 0.9rem;
  }
}

/* From tablet up the track stays inside the page column, sized to fit the screen height. */
@media (min-width: 760px) {
  .moment-track {
    --slide: min(46rem, 74%, max(24rem, calc((100vh - 21rem) * 16 / 9)));
    gap: 1rem;
    margin: 0;
    padding: 6px 0 12px;
    /* Neighbours fade out at the column edges instead of being cut. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  }

  .moment {
    border-radius: var(--r-xl);
  }

  .moment-title {
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.9rem;
  }

  .moment-caption {
    padding: 3rem 1.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moment,
  .moment-dot,
  .moment-dot i {
    transition: none;
  }
}


/* ---------------------------------------------------------------- plans */

.plans-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 820px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.plan-card {
  /* Inner layout (tiers, the Enterprise pack) follows the card's own width. */
  container: plan / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}

.plan-card--protect {
  background: var(--ink);
  color: var(--paper);
}

.plan-name {
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.plan-card--addons .plan-name,
.plan-card--enterprise .plan-name {
  font-size: 1.35rem;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.plan-card--protect .plan-price,
.plan-card--protect .plan-lead,
.plan-card--protect .plan-availability {
  color: rgb(255 255 255 / 0.72);
}

.plan-lead {
  margin-top: 1rem;
  color: var(--ink-2);
  max-width: 40ch;
}

.plan-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.45;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.38em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid var(--led-ink);
  border-bottom: 2px solid var(--led-ink);
  transform: rotate(-45deg);
}

.plan-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-tiers li {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0.75rem;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.08);
}

.plan-tiers strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.plan-tiers span {
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgb(255 255 255 / 0.72);
}

/*
 * Three across needs about 460px of card for "Nelimitat" / "Unlimited" at
 * full size. Narrower cards (phones, and two columns on small laptops) stack
 * the tiers as rows: value, then label.
 */
@container plan (max-width: 30rem) {
  .plan-tiers {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .plan-tiers li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    padding: 0.7rem 0.9rem;
  }

  .plan-tiers strong {
    font-size: 1.3rem;
  }

  .plan-tiers span {
    font-size: 0.875rem;
  }
}

.plan-availability {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
}

.addon-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 560px) {
  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.addon h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.addon p {
  margin-top: 0.3rem;
  color: var(--ink-2);
  font-size: 0.975rem;
}

.plan-cta {
  align-self: flex-start;
  margin-top: 1.25rem;
}

/* The dog sits until its card scrolls into the middle of the viewport (or is hovered), then stands or barks. */
.plan-card--dog > .plan-name,
.plan-card--dog > .plan-price,
.plan-card--dog > .plan-lead {
  padding-right: 5.5rem;
}

.plan-dog {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 4.6rem;
  aspect-ratio: 438 / 600;
  pointer-events: none;
}

.plan-dog img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 100%;
  transition: opacity 250ms ease-out, transform 300ms var(--ease-out);
}

.plan-dog-active {
  opacity: 0;
  transform: translateY(4px) scale(0.96);
}

.plan-card--dog:focus-within .plan-dog-rest,
.plan-card--dog.is-awake .plan-dog-rest {
  opacity: 0;
}

.plan-card--dog:focus-within .plan-dog-active,
.plan-card--dog.is-awake .plan-dog-active {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .plan-card--dog:hover .plan-dog-rest {
    opacity: 0;
  }

  .plan-card--dog:hover .plan-dog-active {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-dog img {
    transform: none !important;
  }
}

/*
 * Enterprise: the whole pack (each dog in one of the plan poses). Top right
 * beside the name on narrow cards, like the single dogs; bottom right, next to
 * the list and button, once the card has room.
 */
.plan-pack {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 6rem;
  height: auto;
  pointer-events: none;
}

/* Narrow cards: the name keeps the pack's height so the lead always starts below it. */
.plan-card--enterprise > .plan-name {
  min-height: 5.1rem;
  padding-right: 6.5rem;
}

/*
 * Extra: the dog box ends 7.3rem below the card top and the price ends near
 * 5.8rem, so the add-ons start lower; the sniffing nose clears the headings.
 */
.plan-card--addons.plan-card--dog .addon-grid {
  margin-top: 2.25rem;
}

@container plan (min-width: 30rem) {
  .plan-pack {
    top: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 10.5rem;
  }

  .plan-card--enterprise > .plan-name {
    min-height: 0;
    padding-right: 0;
  }
}

/* -------------------------------------------------------------- contact */

.contact {
  display: grid;
  gap: 2rem;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: start;
  }
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  background: var(--paper);
  box-shadow: var(--shadow-2);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

@media (min-width: 620px) {
  .contact-card {
    padding: 2rem;
  }

  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-field--full,
  .contact-actions {
    grid-column: 1 / -1;
  }
}

.contact-field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.contact-field label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-optional {
  font-weight: 500;
  color: var(--ink-3);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--ink);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.contact-form textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.5;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(243 179 61 / 0.55);
}

.contact-field.is-invalid input,
.contact-field.is-invalid textarea {
  border-color: var(--alert);
}

.field-error {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--alert-ink);
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

/* Off-screen rather than display:none, which some bots skip. */
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--alert-ink);
}

/* GDPR art. 13 notice at the point of collection. */
.contact-privacy {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* Once sent, the form is replaced by a thank-you (like the Mulahiz AI form).
   Both set their own display, so [hidden] has to be restated. */
.contact-form[hidden],
.contact-success[hidden] {
  display: none;
}

.contact-success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.5rem 0;
}

.contact-success:focus {
  outline: none;
}

.contact-success-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: var(--amber);
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-success-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-success-text {
  margin-top: 0.3rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.contact-again {
  margin-top: 1rem;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

@media (hover: hover) {
  .contact-again:hover {
    background: var(--plaster);
  }
}

/* --------------------------------------------------------------- footer */

.site-footer {
  display: grid;
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  color: var(--ink-2);
}

.footer-top,
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

/* Company identity required on the site (Law 31/1990 art. 74, Law 365/2002 art. 5). */
.footer-legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.85rem 1.5rem;
  margin: 0;
  font-size: 0.875rem;
}

.footer-legal > div {
  display: grid;
  gap: 0.1rem;
  align-content: start;
}

.footer-legal dt {
  font-weight: 700;
  color: var(--ink);
}

.footer-legal dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.footer-euid {
  color: var(--ink-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* ANPC SAL pictogram: a 250 x 50 box (Order 270/2026); the official PNG is 201 x 50, so it is not stretched. */
.footer-sal {
  display: block;
  flex: 0 0 auto;
  width: 250px;
  max-width: 100%;
  line-height: 0;
  border-radius: 6px;
}

.footer-sal img {
  width: 100%;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-mark {
  width: auto;
  height: 2rem;
}

.footer-company {
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------- scene drawings (moments) */

.object-art {
  --scene-line: #31423a;
  --scene-wall: #fbfaf6;
  --scene-roof: #9fc0b0;
  --scene-cool: #d6e6dd;
  --scene-gold: var(--amber);
  --scene-skin: #f1dcc0;
  --scene-shade: #e4e0d6;
  --scene-brick: #efebe2;
  --scene-glass: #dbe9e2;
  --scene-metal: #b9c3bd;
  --scene-hair: #5b4535;
  --scene-water: #7fb4d6;
}

.object-art [class^="sc-"] {
  stroke: var(--scene-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.object-art .sc-wall { fill: var(--scene-wall); }
.object-art .sc-roof { fill: var(--scene-roof); }
.object-art .sc-cool { fill: var(--scene-cool); }
.object-art .sc-accent { fill: var(--led-ink); }
.object-art .sc-alert { fill: var(--alert); }
.object-art .sc-gold { fill: var(--scene-gold); }
.object-art .sc-skin { fill: var(--scene-skin); }
.object-art .sc-dark { fill: var(--panel); }
.object-art .sc-shade { fill: var(--scene-shade); }
.object-art .sc-brick { fill: var(--scene-brick); }
.object-art .sc-glass { fill: var(--scene-glass); }
.object-art .sc-metal { fill: var(--scene-metal); }
.object-art .sc-hair { fill: var(--scene-hair); }
.object-art .sc-water { fill: var(--scene-water); }
.object-art .sc-mint { fill: var(--led-wash); }
.object-art .sc-shadow { fill: var(--scene-line); opacity: 0.08; }
.object-art [class*="sc-w-"] { fill: none; }
.object-art .sc-w-ink { stroke: var(--scene-line); }
.object-art .sc-w-soft { stroke: #c9d6cf; }
.object-art .sc-w-accent { stroke: var(--led-ink); }
.object-art .sc-w-alert { stroke: var(--alert); }
.object-art .sc-w-wall { stroke: var(--scene-wall); }
.object-art .sc-w-dark { stroke: var(--panel); }
.object-art .sc-w-water { stroke: var(--scene-water); }
.object-art .sc-w-gold { stroke: var(--scene-gold); }
.object-art .sc-flat { stroke: none; }
.object-art .sc-w1 { stroke-width: 1.4; }
.object-art .sc-w2 { stroke-width: 2.2; }
.object-art .sc-w3 { stroke-width: 3; }
.object-art .sc-w4 { stroke-width: 4; }
.object-art .sc-w5 { stroke-width: 5; }
.object-art .is-faint { opacity: 0.45; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
