:root {
  --green: #83ce1a;
  --green-dark: #6bb10f;
  --ink: #111;
  --grey: #9d9d9c;
  --bg: #fff;
  --whatsapp: #25d366;
  /* Logo width: fits both narrow phones and short landscape screens */
  --logo-w: min(84vw, 620px, 90dvh);
}

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

html, body {
  margin: 0;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: 16px;
}

.card {
  width: var(--logo-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: clamp(14px, 3.2vw, 26px) 0 0;
  width: 100%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  white-space: nowrap;
  text-align: left;
  line-height: 1.2;
  /* Fallback size until JS fits it exactly to the logo width */
  font-size: calc(var(--logo-w) * 0.031);
}

.intro {
  margin: clamp(48px, 10vw, 88px) 0 0;
  width: 100%;
  text-align: left;
  font-weight: 500;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.6;
  color: #444;
  text-wrap: pretty;
}

.services {
  list-style: none;
  margin: clamp(24px, 5vw, 40px) 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: clamp(16px, 4vw, 40px);
  row-gap: clamp(8px, 1.6vw, 14px);
  text-align: left;
  font-weight: 500;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.3;
}

.services li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.services svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.08em;
  color: var(--green);
}

/* Four equal outline buttons: 2×2 on desktop, stacked on mobile */
.actions {
  margin-top: clamp(48px, 8vw, 64px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.2em;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: 0.08em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.cta svg { width: 1.35em; height: 1.35em; flex: none; }

.cta:hover,
.cta:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.cta:focus-visible,
.whatsapp:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

.whatsapp {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease;
  z-index: 10;
}

.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

.whatsapp:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .24);
}

.cta-short { display: none; }

/* Mobile: keep the 2×2 grid, with short labels so they fit side by side */
@media (max-width: 600px) {
  .actions { gap: 10px; }
  .cta { padding: 0.95em 0.8em; letter-spacing: 0.04em; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

@media (max-height: 420px) {
  .tagline { margin-top: 10px; }
  .intro { margin-top: 20px; font-size: 14px; }
  .services { margin-top: 14px; row-gap: 4px; font-size: 14px; }
  .actions { margin-top: 24px; }
  .cta { padding: .7em 1.3em; }
  .whatsapp { width: 50px; height: 50px; }
  .whatsapp svg { width: 26px; height: 26px; }
}

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

h1 {
  margin: 0;
  width: 100%;
}

/* Intro animation: logo first, then the rest staggered.
   fill-mode "backwards" so hover transforms still work once finished. */
@keyframes logo-in {
  from { opacity: 0; transform: scale(.94); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw-check {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}

.logo {
  animation: logo-in 1s cubic-bezier(.2, .7, .2, 1) .1s backwards;
}

.tagline {
  animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) .9s backwards;
}

.intro {
  animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) 1.15s backwards;
}

.services li {
  --i: 0;
  animation: rise-in .6s cubic-bezier(.2, .7, .2, 1) calc(1.45s + var(--i) * 90ms) backwards;
}

.services li:nth-child(2) { --i: 1; }
.services li:nth-child(3) { --i: 2; }
.services li:nth-child(4) { --i: 3; }
.services li:nth-child(5) { --i: 4; }
.services li:nth-child(6) { --i: 5; }

.services path {
  stroke-dasharray: 24;
  animation: draw-check .45s ease-out calc(1.65s + var(--i) * 90ms) backwards;
}

.cta {
  animation: rise-in .6s cubic-bezier(.2, .7, .2, 1) calc(2.05s + var(--i, 0) * 90ms) backwards;
}

.actions .cta:nth-child(2) { --i: 1; }
.actions .cta:nth-child(3) { --i: 2; }
.actions .cta:nth-child(4) { --i: 3; }

.whatsapp {
  animation: pop-in .5s cubic-bezier(.3, 1.5, .5, 1) 2.55s backwards;
}

@media (prefers-reduced-motion: reduce) {
  .logo, .tagline, .intro, .services li, .services path, .cta, .whatsapp { animation: none; }
}
