/* Ilian Pay — the logo's "pay" tag appears on the hero band and the buttons; the i-dot square marks lists */

:root {
  --green: #53b848;
  --green-deep: #47a33d;
  --ink: #30362f;
  --white: #ffffff;
  --tone: #eef3ec;
  --ink-deep: #121511;

  --font: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 0.9rem + 3.6vw, 4.25rem);
  --step-giant: clamp(3.5rem, 1rem + 9vw, 10rem);

  --m: max(clamp(24px, 7vw, 128px), calc((100vw - 1360px) / 2));
  --gap: clamp(96px, 12vw, 200px);
  --r: 18px;
  --tip: 0.5;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, address { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 10; padding: 12px 16px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }

/* The motif. Height-relative tip, rounded left corners like the logo's tag. */
.tag {
  border-radius: var(--r) 0 0 var(--r);
  clip-path: polygon(0 0, calc(100% - var(--tip-w, 64px)) 0, 100% 50%, calc(100% - var(--tip-w, 64px)) 100%, 0 100%);
}

/* Button: a small tag */
.btn {
  --tip-w: 0.9em;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 calc(1.1em + 0.9em) 0 1.1em;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: var(--step-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  clip-path: polygon(0 0, calc(100% - var(--tip-w)) 0, 100% 50%, calc(100% - var(--tip-w)) 100%, 0 100%);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--green); color: var(--ink); transform: translateX(4px); }
.btn:active { transform: translateX(8px) scale(0.98); }
.btn--on-green:hover { background: var(--white); }

/* Bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--m);
}
.bar__mark img { width: clamp(112px, 13vw, 200px); transition: transform 0.3s var(--ease-out); }
.bar__mark:hover img { transform: rotate(-4deg) scale(1.04); }

/* Hero */
.hero { padding: clamp(24px, 4vw, 56px) var(--m) 0; }
.hero__title {
  font-size: clamp(1.75rem, 0.6rem + 3.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 26em;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.hero__band {
  --tip-w: clamp(56px, 9vw, 150px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  min-height: min(68svh, 720px);
  padding: clamp(28px, 4vw, 64px);
  padding-right: calc(var(--tip-w) * 0.75);
  background: var(--green);
  color: var(--ink-deep);
}
.hero__lead { font-size: var(--step-lead); line-height: 1.38; font-weight: 500; max-width: 30ch; margin-bottom: 32px; }
.hero__media {
  position: relative;
  border-radius: var(--r);
  align-self: stretch;
  min-height: 360px;
  overflow: hidden;
  background: var(--ink);
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: drift 24s ease-in-out infinite alternate;
}
.hero__media img.is-on { opacity: 1; }
.no-js .hero__media img:first-child, html:not(.js) .hero__media img:first-child { opacity: 1; }

@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }

/* Pillars */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding: var(--gap) var(--m);
}
.pillar--white { background: var(--white); }
.pillar--green { background: var(--green); color: var(--ink-deep); }
.pillar--ink { background: var(--ink); color: var(--white); }
.pillar--ink ::selection { color: var(--ink); }
.pillar--flip .pillar__text { order: 2; }
.pillar__title {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: clamp(24px, 3vw, 40px);
  overflow-wrap: anywhere;
}
.pillar__text p { font-size: var(--step-lead); line-height: 1.42; max-width: 32ch; }
.pillar__media { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--tone); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pillar__media:hover img { transform: scale(1.04); }

/* Why */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  padding: var(--gap) var(--m);
  align-items: start;
}
.why__title {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  position: sticky;
  top: 40px;
}
.why__list li {
  position: relative;
  padding: 0 0 0 2.2em;
  font-size: var(--step-lead);
  line-height: 1.32;
  font-weight: 500;
}
.why__list li + li { margin-top: clamp(20px, 2.2vw, 32px); }
.why__list li::before {
  content: "";
  position: absolute; left: 0.2em; top: 0.38em;
  width: 0.62em; height: 0.62em;
  background: var(--green);
  border-radius: 3px;
}

/* Services + the phone */
.services { background: var(--tone); padding: var(--gap) var(--m); }
.services__title {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14em;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.services__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.services__list li + li { margin-top: 4px; }
.services__list button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  font: 500 var(--step-lead)/1.25 var(--font);
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px 0 0 10px;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.services__list button::before {
  content: "";
  flex: none;
  width: 0.55em; height: 0.55em;
  background: var(--ink);
  border-radius: 3px;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.services__list button:hover { background: var(--white); transform: translateX(6px); }
.services__list button:hover::before { background: var(--green); }
.services__list button:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.services__list button[aria-pressed="true"] { background: var(--green); }
.services__list button[aria-pressed="true"]::before { background: var(--white); transform: scale(1.15); }

.phone {
  position: sticky;
  top: 40px;
  width: min(100%, 380px);
  justify-self: center;
  aspect-ratio: 9 / 15;
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.phone__top {
  display: flex; justify-content: center;
  padding: 14px 0 18px;
  background: var(--white);
  border-radius: 32px 32px 0 0;
}
.phone__top img { width: 48px; }
.phone__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  background: var(--white);
  border-radius: 0 0 32px 32px;
}
.sms {
  max-width: 85%;
  font-size: var(--step-body);
  line-height: 1.3;
  font-weight: 500;
  animation: pop 0.45s var(--ease-out) both;
}
.sms--out {
  align-self: flex-end;
  padding: 12px 16px;
  background: var(--green);
  color: var(--ink);
  border-radius: 14px 14px 4px 14px;
}
.sms--in {
  align-self: flex-start;
  display: inline-flex;
  padding: 10px 14px;
  background: var(--tone);
  color: var(--green-deep);
  border-radius: 14px;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Start now */
.start {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  background: var(--green);
  color: var(--ink-deep);
  padding: var(--gap) var(--m);
}
.start__title {
  grid-column: 1 / -1;
  font-size: var(--step-giant);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.start__lead { font-size: var(--step-lead); line-height: 1.4; font-weight: 500; max-width: 34ch; margin-bottom: 36px; }
.start__media { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; }
.start__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; animation: drift 26s ease-in-out infinite alternate; }

/* Footer: the mark, built large, then the contact details */
.foot { padding: var(--gap) var(--m) clamp(32px, 4vw, 56px); }
.foot__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--m);
  margin-bottom: clamp(56px, 7vw, 112px);
}
.foot__title {
  font-size: var(--step-giant);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.045em;
}
.foot__mark { width: clamp(120px, 22vw, 340px); }
.foot__info {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: clamp(32px, 4vw, 72px);
  position: relative;
  padding-top: clamp(32px, 4vw, 56px);
}
.foot__info::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 28px; background: var(--green); border-radius: 4px; }
.foot__col h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.foot__col address, .foot__col p { font-style: normal; font-size: var(--step-body); line-height: 1.55; max-width: 32ch; }
.foot__col a { font-weight: 500; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 0.2s; }
.foot__col a:hover { color: var(--green-deep); }
.num { font-variant-numeric: tabular-nums; }
.foot__legal { margin-top: clamp(48px, 6vw, 88px); font-size: var(--step-body); width: fit-content; max-width: 68ch; background: var(--tone); padding: 16px 20px; border-radius: 8px; }

/* Entrances (content stays visible without script) */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1000px) {
  .hero__band { grid-template-columns: 1fr; }
  .hero__media { min-height: 46svh; }
  .why, .services__grid, .start { grid-template-columns: 1fr; }
  .why__title { position: static; }
  .foot__info { grid-template-columns: 1fr 1fr; }
  .phone { position: static; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --r: 12px; }
  .hero__band {
    --tip-w: 40px;
    padding: 24px 52px 24px 20px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 50% 100%, 0 calc(100% - 40px));
    border-radius: var(--r) var(--r) 0 0;
    padding-bottom: 64px;
    padding-right: 20px;
  }
  .hero__media { min-height: 260px; }
  .pillar { grid-template-columns: 1fr; padding-top: 88px; padding-bottom: 88px; }
  .pillar--flip .pillar__text { order: 0; }
  .services__list button { min-height: 52px; padding: 10px 8px; }
  .phone { width: min(100%, 320px); aspect-ratio: 9 / 14; }
  .foot__head, .foot__info { grid-template-columns: 1fr; }
  .foot__mark { width: 44vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
