/* CallCatch website.
   The page tells one night: the call comes in after dark (the "night" sections),
   and the staff find it handled the next morning (the "day" sheet). */

:root {
  --night: #04130d;
  --night-2: #071c13;
  --forest: #0b3324;
  --glow: #3ddc97;
  --glow-soft: rgba(61, 220, 151, 0.16);
  --green: #17754a;
  --green-dark: #0f5c39;
  --mint: #dcebe3;
  --mint-soft: #eef3f0;
  --paper: #f3f5ef;
  --card: #ffffff;
  --ink: #111c17;
  --muted: #55625c;
  --line: #dbe1da;
  --line-strong: #b7c1ba;
  --missed: #b3261e;
  --missed-glow: #ff7b6d;
  --amber: #f2b84b;
  --amber-soft: #fbefd2;
  --amber-ink: #6b4e00;
  --on-night: #e9f2ec;
  --on-night-muted: #9fb8ab;
  --hair: rgba(255, 255, 255, 0.1);
  --wrap: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.3, 1.25);
  --font: 'Anek Latin', 'Anek Malayalam', system-ui, 'Nirmala UI', 'Noto Sans Malayalam', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* A plain light page, used by 404.html. */
body.is-plain {
  background: var(--paper);
}

/* Malayalam letters carry marks above and below, so lines need more room. */
html[lang='ml'] body {
  line-height: 1.75;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: var(--green-dark);
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid #7fd4ab;
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}

/* ---- arriving on scroll ---- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* The top of the page arrives by itself, without waiting for the script. */
[data-rise] {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ---- type ---- */

.display {
  font-stretch: 82%;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
html[lang='ml'] .display {
  font-stretch: 88%;
  letter-spacing: 0;
  line-height: 1.32;
}
h1.display {
  font-size: clamp(2.8rem, 6vw, 5rem);
}
html[lang='ml'] h1.display {
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
}
h2.display {
  font-size: clamp(2rem, 3.9vw, 3.2rem);
}
html[lang='ml'] h2.display {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.eyebrow {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
html[lang='ml'] .eyebrow {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.night .lead {
  color: var(--on-night-muted);
}

/* A small time label: the page follows the clock of one call. */
.stamp {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-transform: none;
}
.stamp.is-sun {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-night);
  font-size: 0.9rem;
  font-weight: 500;
}
.pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow);
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--glow);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3.4);
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}
.button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.button:hover svg {
  transform: translateX(3px);
}
.button:active {
  transform: translateY(1px);
}
.button.is-small {
  padding: 8px 16px;
  font-size: 0.95rem;
}
.button.is-large {
  padding: 16px 30px;
  font-size: 1.1rem;
}
.button.is-glow {
  border-color: var(--glow);
  background: var(--glow);
  color: var(--night);
  box-shadow: 0 8px 30px -8px rgba(61, 220, 151, 0.55);
}
.button.is-glow:hover {
  border-color: #6fe9b4;
  background: #6fe9b4;
  box-shadow: 0 10px 40px -8px rgba(61, 220, 151, 0.75);
}
.button.is-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}
.button.is-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}
/* The header button says less on a phone, where there is no room for more. */
.when-narrow {
  display: none;
}

/* ---- header: a bar that floats over the page ---- */

.site-head {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 30;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.head-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: var(--wrap);
  min-height: 58px;
  margin: 0 auto;
  padding: 0 10px 0 20px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(6, 26, 18, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.6);
  color: #fff;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #fff;
  font-size: 1.28rem;
  font-stretch: 88%;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg {
  flex: none;
  width: 27px;
  height: 27px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 7px 13px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--on-night-muted);
  font-size: 0.96rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.head-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language select {
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.92rem;
}
.language option {
  background: #0b2a1e;
  color: #fff;
}

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

.night {
  position: relative;
  background: var(--night);
  color: #fff;
}

/* Hero */
.hero {
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52% 58% at 76% 46%, rgba(28, 130, 88, 0.5), transparent 72%),
    radial-gradient(38% 44% at 8% 4%, rgba(23, 117, 74, 0.28), transparent 70%),
    linear-gradient(180deg, #04130d 0%, #071c13 55%, #04130d 100%);
}
/* A little grain, so the dark does not look like flat plastic. */
.hero::after,
.closing::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
  padding-top: 118px;
  padding-bottom: 88px;
}
.hero-copy > * + * {
  margin-top: 24px;
}
.hero-copy .lead {
  font-size: 1.24rem;
}
.was-missed {
  color: var(--missed-glow);
}
.now-booked {
  position: relative;
  font-style: normal;
  color: var(--glow);
  white-space: nowrap;
}
/* The underline is drawn in when the headline arrives. */
.now-booked::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0.02em;
  left: 0;
  height: 0.09em;
  border-radius: 999px;
  background: var(--glow);
  opacity: 0.55;
  transform-origin: left;
  animation: underline 0.9s var(--ease) 1s both;
}
@keyframes underline {
  from {
    transform: scaleX(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--on-night-muted);
  font-size: 0.96rem;
}
.hero-points li {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.hero-points svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--glow);
}

/* ---- the sample call ---- */

.call {
  --ring: rgba(61, 220, 151, 0.5);
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.call[data-state='ready'],
.call[data-state='ringing'] {
  --ring: rgba(255, 123, 109, 0.55);
}

/* Rings spreading out behind the phone: red while it rings unanswered, green once answered. */
.rings {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: -1;
  width: 0;
  height: 0;
  pointer-events: none;
}
.rings i {
  position: absolute;
  top: -340px;
  left: -340px;
  width: 680px;
  height: 680px;
  border: 1.5px solid var(--ring, rgba(61, 220, 151, 0.5));
  border-radius: 50%;
  opacity: 0;
  animation: ring-out 4.8s linear infinite;
  transition: border-color 0.6s;
}
.rings i:nth-child(2) {
  animation-delay: 1.2s;
}
.rings i:nth-child(3) {
  animation-delay: 2.4s;
}
.rings i:nth-child(4) {
  animation-delay: 3.6s;
}
.call[data-state='ringing'] .rings i {
  animation-duration: 2.4s;
}
.call[data-state='ringing'] .rings i:nth-child(2) {
  animation-delay: 0.6s;
}
.call[data-state='ringing'] .rings i:nth-child(3) {
  animation-delay: 1.2s;
}
.call[data-state='ringing'] .rings i:nth-child(4) {
  animation-delay: 1.8s;
}
@keyframes ring-out {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  12% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.call-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.call-tab {
  position: relative;
  flex: 1;
  padding: 7px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--on-night-muted);
  font-weight: 600;
  transition:
    background 0.25s,
    color 0.25s;
}
.call-tab span {
  position: relative;
}
.call-tab:hover {
  color: #fff;
}
.call-tab[aria-selected='true'] {
  background: #fff;
  color: var(--night);
}
/* How far the chosen call has played. */
.call-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow);
  opacity: 0;
  transform: scaleX(var(--played, 0));
  transform-origin: left;
  transition: transform 0.5s linear;
}
.call-tab[aria-selected='true']::before {
  opacity: 0.45;
}

.phone {
  position: relative;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(155deg, #23483a 0%, #0c2219 45%, #091a13 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 50px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 130px -30px rgba(61, 220, 151, 0.5);
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(420px, 58vh, 540px);
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, #102c20 0%, #0a1f17 40%, #071811 100%);
  color: var(--on-night);
}
/* The speaker slot. */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.phone-head {
  display: flex;
  flex: none;
  gap: 12px;
  align-items: center;
  padding: 28px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.call-avatar {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #2b8f66, #17754a);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.call-who {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.call-who strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-who span {
  color: var(--on-night-muted);
  font-size: 0.84rem;
}
.call-clock {
  display: inline-flex;
  flex: none;
  gap: 7px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.call-clock i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
}
.call[data-state='ready'] .call-clock i,
.call[data-state='ringing'] .call-clock i {
  background: var(--missed-glow);
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.phone-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

/* While it rings */
.ringing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
  pointer-events: none;
}
.call[data-state='ready'] .ringing,
.call[data-state='ringing'] .ringing,
.call[data-state='answered'] .ringing {
  opacity: 1;
  transform: none;
}
.ring-orb {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--missed-glow);
  color: #2a0906;
  transition: background 0.4s;
}
.ring-orb svg {
  width: 36px;
  height: 36px;
}
.ring-orb::before,
.ring-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--missed-glow);
  opacity: 0;
}
.call[data-state='ringing'] .ring-orb {
  animation: shake 0.9s ease-in-out infinite;
}
.call[data-state='ringing'] .ring-orb::before,
.call[data-state='ringing'] .ring-orb::after {
  animation: orb-ring 1.4s ease-out infinite;
}
.call[data-state='ringing'] .ring-orb::after {
  animation-delay: 0.7s;
}
.call[data-state='answered'] .ring-orb {
  background: var(--glow);
  color: var(--night);
}
@keyframes shake {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(-9deg);
  }
  20%,
  40% {
    transform: rotate(9deg);
  }
}
@keyframes orb-ring {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.1);
  }
}
.ring-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}
.ring-sub {
  color: var(--on-night-muted);
  font-size: 0.95rem;
}
.ring-meter {
  width: 150px;
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.ring-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--missed-glow);
  transform: scaleX(var(--rung, 0));
  transform-origin: left;
  transition: transform 0.1s linear;
}
.call[data-state='answered'] .ring-meter span {
  background: var(--glow);
}

/* The conversation */
.call-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 10px;
  overflow-y: auto;
  scrollbar-width: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px);
  mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}
.call-lines::-webkit-scrollbar {
  display: none;
}
.call[data-state='live'] .call-lines,
.call[data-state='booked'] .call-lines {
  opacity: 1;
}
/* Keeps a short conversation at the bottom, next to who is speaking. */
.call-lines li:first-child {
  margin-top: auto;
}
.call-lines li {
  max-width: 87%;
  padding: 9px 13px;
  border-radius: 17px 17px 17px 5px;
  background: rgba(255, 255, 255, 0.09);
  align-self: flex-start;
  font-size: 0.93rem;
  line-height: 1.42;
  animation: bubble-in 0.45s var(--spring) both;
}
html[lang='ml'] .call-lines li {
  font-size: 0.9rem;
  line-height: 1.52;
}
.call-lines li.from-caller {
  border-radius: 17px 17px 5px 17px;
  background: #1f7a53;
  color: #fff;
  align-self: flex-end;
}
.call-lines li.is-waiting {
  display: none;
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}
/* Who is speaking: read out by screen readers, shown by side and colour. */
.call-lines small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Under the conversation: who is speaking now, then the result. */
.phone-foot {
  position: relative;
  flex: none;
  height: 84px;
  margin: 0 12px 12px;
}
.now,
.call-outcome {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 0 16px;
  border-radius: 22px;
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--spring);
}
.now {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-night);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
}
.call[data-state='live'] .now {
  opacity: 1;
}
.call-outcome {
  background: var(--glow);
  color: var(--night);
  box-shadow: 0 14px 34px -12px rgba(61, 220, 151, 0.7);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}
.call[data-state='booked'] .call-outcome {
  opacity: 1;
  transform: none;
}
.tick {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--night);
  color: var(--glow);
}
.tick svg {
  width: 22px;
  height: 22px;
}
.tick path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
}
.call[data-state='booked'] .tick path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s var(--ease) 0.25s;
}
.outcome-words {
  min-width: 0;
  line-height: 1.25;
}
.outcome-words small {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang='ml'] .outcome-words small {
  letter-spacing: 0;
  font-size: 0.84rem;
}
.outcome-words strong {
  display: block;
  font-size: 1.02rem;
}

/* Sound bars: speaking, listening or thinking. */
.wave {
  display: flex;
  flex: none;
  gap: 3px;
  align-items: center;
  width: 30px;
  height: 26px;
}
.wave i {
  width: 3.5px;
  height: 6px;
  border-radius: 2px;
  background: var(--glow);
  animation: wave 0.9s ease-in-out infinite;
}
.wave i:nth-child(2) {
  animation-delay: -0.6s;
}
.wave i:nth-child(3) {
  animation-delay: -0.3s;
}
.wave i:nth-child(4) {
  animation-delay: -0.75s;
}
.wave i:nth-child(5) {
  animation-delay: -0.15s;
}
@keyframes wave {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 24px;
  }
}
.call[data-now='listening'] .wave i {
  background: #fff;
  opacity: 0.75;
  animation-duration: 1.3s;
}
.call[data-now='thinking'] .wave i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  animation: think 1s ease-in-out infinite;
}
.call[data-now='thinking'] .wave i:nth-child(n + 4) {
  display: none;
}
.call[data-now='thinking'] .wave i:nth-child(2) {
  animation-delay: 0.15s;
}
.call[data-now='thinking'] .wave i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes think {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

/* The note that reaches the staff: the one light thing in the dark. */
/* It slides out from under the phone once the call is booked. */
.toast {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1px;
  margin: -24px 26px 0;
  padding: 12px 18px 13px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-18px) scale(0.94);
  transform-origin: center top;
  transition:
    opacity 0.4s var(--ease),
    transform 0.55s var(--spring);
  pointer-events: none;
}
.call[data-state='booked'] .toast {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s;
}
.toast small {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang='ml'] .toast small {
  letter-spacing: 0;
  font-size: 0.82rem;
}
.toast small::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
}
.toast strong {
  font-size: 1.02rem;
}
.toast span {
  color: var(--muted);
  font-size: 0.88rem;
}

.call-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 8px;
  color: var(--on-night-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.call-foot b {
  color: var(--on-night);
  font-weight: 600;
}
.replay {
  display: inline-flex;
  flex: none;
  gap: 6px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: none;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.replay:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.replay svg {
  width: 15px;
  height: 15px;
}

/* ---- night: why calls are missed ---- */

.moment {
  padding: 40px 0 150px;
}
.moment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.moment .lead {
  margin-top: 22px;
}

.alerts {
  display: grid;
  gap: 12px;
}
.alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    border-color 0.5s,
    background 0.5s;
}
.alert.is-caught {
  border-color: rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.07);
}
.alert-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-night);
}
.alert-icon svg {
  width: 22px;
  height: 22px;
}
.alert h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}
.alert p {
  color: var(--on-night-muted);
  font-size: 0.95rem;
}
.alert-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.alert-when {
  color: var(--on-night-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
/* "Missed call" turns over to "Answered". */
.flip {
  position: relative;
  display: inline-grid;
  perspective: 300px;
}
.flip span {
  grid-area: 1 / 1;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.6s var(--ease);
}
.flip-missed {
  background: rgba(255, 123, 109, 0.16);
  color: var(--missed-glow);
}
.flip-caught {
  background: var(--glow);
  color: var(--night);
  transform: rotateX(180deg);
}
.alert.is-caught .flip-missed {
  transform: rotateX(-180deg);
}
.alert.is-caught .flip-caught {
  transform: rotateX(0);
}

/* ---- the day sheet: morning ---- */

.day {
  position: relative;
  z-index: 1;
  margin-top: -56px;
  border-radius: 44px;
  background: var(--paper);
  color: var(--ink);
}
/* First light, at the top of the sheet. */
.day::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 520px;
  border-radius: 44px 44px 0 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(242, 184, 75, 0.2), transparent 70%);
  pointer-events: none;
}

.section {
  position: relative;
  padding: 112px 0;
}
.section-head {
  max-width: 42rem;
  margin-bottom: 52px;
}
.section-head .display {
  margin-top: 14px;
}
.section-head .lead {
  margin-top: 16px;
}

/* How it works: a line that fills as the page is read. */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
}
.how .section-head {
  position: sticky;
  top: 120px;
  align-self: start;
  margin: 0;
}
.steps {
  --fill: 1;
  position: relative;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 21px;
  width: 2px;
  border-radius: 2px;
}
.steps::before {
  bottom: 60px;
  background: var(--line);
}
.steps::after {
  height: calc((100% - 82px) * var(--fill));
  background: var(--green);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}
.step:last-child {
  padding-bottom: 0;
}
.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 7px rgba(23, 117, 74, 0.12);
  transition:
    background 0.4s,
    border-color 0.4s,
    color 0.4s,
    box-shadow 0.4s;
}
.step h3 {
  margin-top: 8px;
  font-size: 1.4rem;
  font-stretch: 90%;
  line-height: 1.25;
}
html[lang='ml'] .step h3 {
  line-height: 1.5;
  font-size: 1.25rem;
}
.step p {
  margin-top: 6px;
  color: var(--muted);
}
.step > div {
  transition: opacity 0.4s;
}
/* Steps the reader has not reached yet wait, dimmed. */
.js .step:not(.is-on) .step-dot {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--muted);
  box-shadow: none;
}
.js .step:not(.is-on) > div {
  opacity: 0.45;
}

/* Facts */
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 0;
  border-radius: 30px;
  background: var(--forest);
  background-image: radial-gradient(70% 140% at 100% 0%, rgba(61, 220, 151, 0.2), transparent 60%);
  color: #fff;
}
.facts-row li {
  padding: 26px 30px;
}
.facts-row li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.facts-row strong {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--glow);
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-stretch: 78%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.facts-row small {
  color: #fff;
  font-size: 1rem;
  font-stretch: 100%;
  font-weight: 600;
}
.facts-row p {
  margin-top: 10px;
  color: #b9d3c5;
  font-size: 0.97rem;
  line-height: 1.45;
}
html[lang='ml'] .facts-row p {
  line-height: 1.6;
}

/* Cards that light up under the pointer. */
.spot {
  position: relative;
  overflow: hidden;
}
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(61, 220, 151, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.spot:hover::before {
  opacity: 1;
}
.spot > * {
  position: relative;
}

/* Who it is for */
.kinds {
  display: grid;
  /* Four kinds of place: two by two reads better than four narrow columns. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.kind {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.kind:hover {
  border-color: #a9d6bf;
  box-shadow: 0 30px 60px -34px rgba(11, 51, 36, 0.4);
}
.kind-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: var(--mint);
  color: var(--green-dark);
}
.kind-icon svg {
  width: 32px;
  height: 32px;
}
.kind h3 {
  margin-top: 20px;
  font-size: 1.7rem;
  font-stretch: 86%;
  line-height: 1.2;
}
.kind-sub {
  color: var(--muted);
  font-size: 0.95rem;
}
.kind-list {
  margin-top: 18px;
}
.kind-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
}
.kind-list li::before {
  content: '';
  position: absolute;
  top: 1.15em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
html[lang='ml'] .kind-list li::before {
  top: 1.35em;
}
.asks-label {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang='ml'] .asks-label {
  letter-spacing: 0;
  font-size: 0.9rem;
}
.asks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
}
.asks li {
  padding: 6px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--mint-soft);
  font-size: 0.92rem;
}
.play {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.play svg {
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.play:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.play:hover svg {
  background: #fff;
  color: var(--green);
}
/* A kind that is built but not yet in the demo: one wide, quiet row. */
.kind.is-soon {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  border-style: dashed;
  background: var(--paper);
}
.kind.is-soon .kind-icon {
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.kind.is-soon h3 {
  margin-top: 2px;
  font-size: 1.4rem;
}
.soon-body {
  flex: 1 1 320px;
  min-width: 0;
}
.soon-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html[lang='ml'] .soon-tag {
  letter-spacing: 0;
  text-transform: none;
}
.soon-what {
  margin-top: 8px;
  color: var(--muted);
}
.kind.is-soon .play {
  margin-top: 0;
  padding: 8px 16px;
  text-decoration: none;
}

.who-other {
  margin-top: 30px;
  color: var(--muted);
}

/* AI receptionist: planned, shown as coming soon. */
.reception {
  padding-top: 0;
}
.reception-card {
  padding: 40px 36px 34px;
  border: 1px dashed #b9cfc2;
  border-radius: 28px;
  background: var(--paper);
}
.reception-head {
  max-width: 46rem;
}
.reception-head .display {
  margin-top: 14px;
}
.reception-head .lead {
  margin-top: 14px;
  color: var(--muted);
}
.reception-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.reception-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.reception-icon svg {
  width: 24px;
  height: 24px;
}
.reception-list h3 {
  margin-top: 14px;
  font-size: 1.12rem;
}
.reception-list p {
  margin-top: 4px;
  color: var(--muted);
}
.reception-card .play {
  margin-top: 30px;
  padding: 8px 16px;
  text-decoration: none;
}
@media (max-width: 960px) {
  .reception-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .reception-card {
    padding: 28px 20px 24px;
  }
  .reception-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* For your staff */
.staff {
  background: linear-gradient(180deg, transparent, #fff 18%, #fff 82%, transparent);
}
.staff-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
}
.staff .section-head {
  margin-bottom: 34px;
}
.staff-points {
  display: grid;
  gap: 20px;
}
.staff-points li {
  padding-left: 18px;
  border-left: 2px solid var(--mint);
}
.staff-points h3 {
  font-size: 1.12rem;
}
.staff-points p {
  color: var(--muted);
}

.try {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 600;
}
.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 2px 6px rgba(11, 51, 36, 0.05),
    0 50px 90px -44px rgba(11, 51, 36, 0.45);
}
.frame-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f1f4ef;
}
.frame-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfd7d1;
}
.frame-address {
  margin-left: 10px;
  padding: 3px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
}
.frame-body {
  min-height: 456px;
  padding: 22px 24px 24px;
}
.mock-title {
  font-size: 1.4rem;
  font-stretch: 90%;
  font-weight: 700;
}

.dash-tabs {
  display: flex;
  gap: 2px;
  margin: 12px 0 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar {
  display: none;
}
.dash-tab {
  flex: none;
  padding: 9px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.dash-tab:hover {
  color: var(--ink);
}
.dash-tab[aria-selected='true'] {
  border-bottom-color: var(--green);
  color: var(--ink);
  font-weight: 600;
}
.dash-panel:not([hidden]) {
  animation: panel-in 0.35s var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.dash-day {
  margin-bottom: 10px;
  font-weight: 600;
}

.rows {
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition:
    opacity 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.row.is-new {
  border-color: #a9d6bf;
  background: #f7fbf8;
}
.row.is-stacked {
  display: block;
}
.row-time {
  flex: none;
  min-width: 5.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.row-body {
  display: flex;
  flex: 1 1 12rem;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.4;
}
html[lang='ml'] .row-body {
  line-height: 1.6;
}
.row-body > span {
  color: var(--muted);
  font-size: 0.94rem;
}
.row-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.row-who {
  color: var(--muted);
  font-size: 0.92rem;
}
.row.is-stacked p {
  margin-top: 6px;
  font-size: 0.95rem;
}
.row-gone {
  display: none;
}
.row.is-off {
  background: #fafbf9;
}
.row.is-off .row-time,
.row.is-off .row-body strong,
.row.is-off .row-body > span:not(.row-gone) {
  opacity: 0.45;
  text-decoration: line-through;
}
.row.is-off .chip {
  display: none;
}
.row.is-off .row-gone {
  display: inline;
  color: var(--missed);
}
.row.is-done {
  opacity: 0.6;
}

.chip {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--ink);
  font-size: 0.8rem;
}
.row-body > .chip {
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 0.8rem;
}
.chip.is-new,
.chip.is-booked {
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 600;
}
.chip.is-callback {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.mini {
  flex: none;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.mini:hover {
  border-color: var(--green);
}
.mini .when-off,
.talk-toggle .when-off {
  display: none;
}
.mini[aria-pressed='true'] .when-on,
.talk-toggle[aria-expanded='true'] .when-on {
  display: none;
}
.mini[aria-pressed='true'] .when-off,
.talk-toggle[aria-expanded='true'] .when-off {
  display: inline;
}
.mini[data-done][aria-pressed='true'] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.talk-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.talk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.talk[hidden] {
  display: none;
}
.talk li {
  max-width: 88%;
  padding: 7px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--mint-soft);
  align-self: flex-start;
  font-size: 0.9rem;
  line-height: 1.42;
}
html[lang='ml'] .talk li {
  line-height: 1.55;
}
.talk li.from-caller {
  border-radius: 14px 14px 4px 14px;
  background: var(--mint);
  align-self: flex-end;
}
.talk small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.details {
  display: grid;
  gap: 14px;
}
.details-title {
  font-weight: 600;
}
.details-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.details label {
  display: grid;
  gap: 5px;
}
.details label span {
  color: var(--muted);
  font-size: 0.88rem;
}
.details input,
.details textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.details input:focus,
.details textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 117, 74, 0.12);
  outline: none;
}
.details input[type='time'] {
  width: auto;
  min-width: 8rem;
  justify-self: start;
}
.details textarea {
  resize: vertical;
  line-height: 1.6;
}
.details-save {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.saved {
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 600;
  animation: panel-in 0.35s var(--ease);
}
.mock-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Trust */
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.promise {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}
.promise-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--forest);
  color: var(--glow);
}
.promise-icon svg {
  width: 26px;
  height: 26px;
}
.promise h3 {
  margin-top: 20px;
  font-size: 1.3rem;
  font-stretch: 92%;
  line-height: 1.3;
}
html[lang='ml'] .promise h3 {
  line-height: 1.5;
}
.promise p {
  margin-top: 8px;
  color: var(--muted);
}

/* Questions */
.faq {
  padding-bottom: 128px;
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}
.faq .section-head {
  margin: 0;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.faq details[open] {
  border-color: #a9d6bf;
  box-shadow: 0 20px 40px -30px rgba(11, 51, 36, 0.4);
}
.faq summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* A plus that turns into a minus. */
.faq summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--green-dark), var(--green-dark)) center / 12px 2px no-repeat,
    linear-gradient(var(--green-dark), var(--green-dark)) center / 2px 12px no-repeat,
    var(--mint);
  transition:
    transform 0.3s var(--ease),
    background-size 0.3s;
}
.faq details[open] summary::after {
  background-size:
    12px 2px,
    2px 0,
    auto;
  transform: rotate(180deg);
}
.faq details p {
  max-width: 40em;
  padding: 0 22px 20px;
  color: var(--muted);
  animation: panel-in 0.35s var(--ease);
}

/* ---- night again: ask for a demo ---- */

.closing {
  isolation: isolate;
  margin-top: -56px;
  padding: 196px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 50% 62%, rgba(28, 130, 88, 0.45), transparent 72%),
    var(--night);
  text-align: center;
}
.closing .rings {
  top: 62%;
  z-index: -1;
}
.closing .rings i {
  animation-duration: 7s;
}
.closing .rings i:nth-child(2) {
  animation-delay: 1.75s;
}
.closing .rings i:nth-child(3) {
  animation-delay: 3.5s;
}
.closing .rings i:nth-child(4) {
  animation-delay: 5.25s;
}
.closing .display {
  margin-top: 22px;
}
.closing .lead {
  margin: 20px auto 0;
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}
.closing-mail {
  margin-top: 18px;
  color: var(--on-night-muted);
  font-size: 0.95rem;
}
.closing-mail a {
  color: #fff;
}
.closing-mail span {
  margin: 0 6px;
}

/* Footer */
.site-foot {
  color: var(--on-night-muted);
  font-size: 0.92rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 96px;
  border-top: 1px solid var(--hair);
}
.site-foot .brand {
  font-size: 1.1rem;
}

/* A WhatsApp button, in WhatsApp's own green. */
.wa-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: #25d366;
  color: #04130d;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px -12px rgba(37, 211, 102, 0.9);
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
.wa-button:hover {
  background: #4be585;
}
.wa-button:active {
  transform: translateY(1px);
}
.wa-button svg {
  flex: none;
  width: 21px;
  height: 21px;
}
.wa-button.is-large {
  padding: 16px 28px;
  font-size: 1.1rem;
}

/* ---- the chat helper in the corner ---- */

.chat-open {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: none;
  gap: 10px;
  align-items: center;
  height: 58px;
  padding: 0 22px 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--glow);
  color: var(--night);
  font-weight: 700;
  box-shadow:
    0 16px 40px -10px rgba(61, 220, 151, 0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.55);
  transition:
    opacity 0.25s,
    transform 0.3s var(--spring);
}
.js .chat-open {
  display: inline-flex;
}
.chat-open:hover {
  transform: translateY(-2px) scale(1.03);
}
.chat-open svg {
  width: 27px;
  height: 27px;
}
/* A ring that spreads from the button now and then, so it is noticed. */
.chat-open::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--glow);
  opacity: 0;
  animation: chat-ring 3.2s ease-out 2s infinite;
  pointer-events: none;
}
@keyframes chat-ring {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  40%,
  100% {
    opacity: 0;
    transform: scale(1.35, 1.7);
  }
}
.chat-is-open .chat-open {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 36;
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100vw - 20px));
  height: min(630px, calc(100dvh - 44px));
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 100px -20px rgba(0, 0, 0, 0.75);
  transform-origin: right bottom;
  animation: chat-in 0.45s var(--spring);
}
.chat[hidden] {
  display: none;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
}

.chat-head {
  display: flex;
  flex: none;
  gap: 12px;
  align-items: center;
  padding: 16px 14px 16px 18px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(61, 220, 151, 0.28), transparent 60%),
    linear-gradient(140deg, #0f4530, #0b3324 55%, #071c13);
  color: #fff;
}
.chat-logo {
  position: relative;
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.chat-logo svg {
  width: 25px;
  height: 25px;
}
.chat-title {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.chat-title strong {
  display: block;
  font-size: 1.12rem;
  font-stretch: 90%;
}
.chat-title span {
  color: var(--on-night-muted);
  font-size: 0.82rem;
}
.chat-close {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: none;
  color: #fff;
  transition: background 0.2s;
}
.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-close svg {
  width: 15px;
  height: 15px;
}

.chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 16px 14px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat-log li {
  max-width: 86%;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 17px 17px 17px 5px;
  background: #fff;
  align-self: flex-start;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
  animation: bubble-in 0.4s var(--spring) both;
}
html[lang='ml'] .chat-log li {
  line-height: 1.6;
}
.chat-log li.from-me {
  border-color: var(--green);
  border-radius: 17px 17px 5px 17px;
  background: var(--green);
  color: #fff;
  align-self: flex-end;
}
.chat-log li.is-typing {
  display: flex;
  gap: 5px;
  padding: 14px 15px;
}
.chat-log li.is-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: think 1s ease-in-out infinite;
}
.chat-log li.is-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-log li.is-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.chat-log li.is-action {
  max-width: 100%;
  padding: 2px 0 4px;
  border: 0;
  background: none;
}
.chat-log .wa-button {
  padding: 11px 18px;
}

.chat-chips {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px 14px 12px;
}
.chat-chips:empty {
  display: none;
}
.chat-chips button {
  padding: 7px 13px;
  border: 1px solid #a9d6bf;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
  animation: bubble-in 0.4s var(--spring) both;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.chat-chips button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.chat-form {
  display: flex;
  flex: none;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.chat-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 117, 74, 0.12);
  outline: none;
}
.chat-form button {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  transition: background 0.2s;
}
.chat-form button:hover {
  background: var(--green-dark);
}
.chat-form svg {
  width: 19px;
  height: 19px;
}
.chat-wa {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 3px 7px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px 11px;
  background: #e7f8ee;
  color: #0b5a2c;
  font-size: 0.86rem;
  text-decoration: none;
}
.chat-wa:hover {
  background: #d5f3e1;
}
.chat-wa svg {
  width: 18px;
  height: 18px;
}

/* ---- the "Ask for a demo" box ---- */

html:has(.ask[open]) {
  overflow: hidden;
}
.ask {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 34px 34px 26px;
  overflow-y: auto;
  border: 0;
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.75);
}
.ask::backdrop {
  background: rgba(4, 19, 13, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ask[open] {
  animation: ask-in 0.4s var(--spring);
}
.ask[open]::backdrop {
  animation: ask-dim 0.3s ease-out;
}
@keyframes ask-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}
@keyframes ask-dim {
  from {
    opacity: 0;
  }
}
.ask-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s;
}
.ask-close:hover {
  border-color: var(--green);
}
.ask-close svg {
  width: 16px;
  height: 16px;
}
.ask h2.display {
  margin-top: 10px;
  padding-right: 34px;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
}
html[lang='ml'] .ask h2.display {
  font-size: clamp(1.4rem, 4.4vw, 1.8rem);
}
.ask-lead {
  margin-top: 8px;
  color: var(--muted);
}
.ask-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.ask-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ask label {
  display: grid;
  gap: 5px;
}
.ask label span {
  color: var(--muted);
  font-size: 0.88rem;
}
.ask input,
.ask select,
.ask textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ask textarea {
  resize: vertical;
  line-height: 1.5;
}
.ask input:focus,
.ask select:focus,
.ask textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 117, 74, 0.12);
  outline: none;
}
.ask-send {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.ask-send .button,
.ask-send .wa-button {
  flex: 1 1 200px;
}
.ask-app {
  color: var(--green-dark);
  font-size: 0.92rem;
  text-underline-offset: 3px;
}
.button.is-plain {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.button.is-plain:hover {
  border-color: var(--green);
  background: #fff;
}
.ask-status {
  color: var(--green-dark);
  font-size: 0.93rem;
  font-weight: 600;
  animation: panel-in 0.35s var(--ease);
}
.ask-status.is-hint {
  color: var(--amber-ink);
}
.ask-or {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.ask-or strong {
  overflow-wrap: anywhere;
}
.ask-copied {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
}
.ask-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---- smaller screens ---- */

@media (max-width: 1100px) {
  .site-nav a {
    padding: 7px 9px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }
  .head-tools {
    margin-left: auto;
  }
  .hero-grid,
  .moment-grid,
  .how-grid,
  .staff-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .hero-grid {
    padding-top: 108px;
    padding-bottom: 72px;
  }
  .how .section-head {
    position: static;
  }
  .kinds,
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts-row li:nth-child(3) {
    border-left: 0;
  }
  .facts-row li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .section {
    padding: 80px 0;
  }
  .moment {
    padding: 24px 0 128px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 1rem;
  }
  .lead,
  .hero-copy .lead {
    font-size: 1.08rem;
  }
  .site-head {
    top: 10px;
  }
  .head-bar {
    gap: 8px;
    min-height: 54px;
    padding: 0 8px 0 14px;
  }
  .brand {
    font-size: 1.15rem;
  }
  .head-tools {
    gap: 6px;
  }
  .when-wide {
    display: none;
  }
  .when-narrow {
    display: inline;
  }
  .language select {
    padding: 7px 4px;
  }
  .hero-actions .button {
    flex: 1 1 100%;
  }
  .day {
    border-radius: 30px;
  }
  .day::before {
    border-radius: 30px 30px 0 0;
  }
  .alert {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .alert-side {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: space-between;
    justify-items: start;
    align-items: center;
  }
  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }
  .facts-row li {
    padding: 22px 20px;
  }
  .frame-body {
    min-height: 0;
    padding: 18px 16px 20px;
  }
  .kind,
  .promise {
    padding: 26px 22px;
    border-radius: 24px;
  }
  .call-foot {
    flex-wrap: wrap;
  }
  .details-pair,
  .ask-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .ask {
    padding: 28px 20px 22px;
    border-radius: 26px;
  }
  /* On a phone the chat button is a circle, and the chat fills the width. */
  .chat-open {
    right: 14px;
    bottom: 14px;
    width: 58px;
    padding: 0;
    justify-content: center;
  }
  .chat-open span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .chat {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    height: min(620px, calc(100dvh - 20px));
    border-radius: 24px;
  }
  .closing-actions > * {
    flex: 1 1 100%;
  }
}

@media (max-width: 350px) {
  .site-head .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rings {
    display: none;
  }
}
