/* Tfaddal website. One stylesheet for English (ltr) and Arabic (rtl): logical properties
   (inline-start, inline-end) flip on their own. Pages work without scripts; site.js adds the
   ringing phone in the hero, the chat animation and the buzzers comparison. */

@font-face {
  font-family: Outfit;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: Outfit;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: Outfit;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: Outfit;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-900-normal.woff2') format('woff2');
}
@font-face {
  font-family: Tajawal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/tajawal-arabic-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: Tajawal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/tajawal-arabic-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: Tajawal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/tajawal-arabic-800-normal.woff2') format('woff2');
}

/* The language switch slides one page into the other in browsers that can. */
@view-transition {
  navigation: auto;
}

:root {
  --bg: #fff4e6;
  --paper: #ffffff;
  --coral: #ff5a4e;
  --coral-deep: #c93a30;
  --teal: #00a596;
  --sun: #ffc93c;
  --plum: #5b3fd9;
  --plum-deep: #3d27a3;
  --ink: #1d1640;
  --ink-soft: #4b4470;
  --wa: #0b3d32;
  --wa-2: #0e4a3c;
  --font: Outfit, Tajawal, system-ui, sans-serif;
  --radius: 26px;
  color-scheme: light;
}
:root[lang='ar'] {
  --font: Tajawal, Outfit, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.55 var(--font);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 50;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: var(--coral);
  color: #fff;
  font: 800 1rem/1.2 var(--font);
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--coral-deep);
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--coral-deep);
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.btn.plum {
  background: var(--plum);
  box-shadow: 0 6px 0 var(--plum-deep);
}
.btn.light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 0 #d8cfc4;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.btn.ghost:active {
  transform: translateY(2px);
}
.btn.sm {
  padding: 11px 18px;
  font-size: 0.95rem;
  box-shadow: 0 4px 0 var(--coral-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img {
  width: 38px;
  height: 38px;
}
.site-header nav {
  margin-inline-start: auto;
  display: flex;
  gap: 22px;
  font-weight: 600;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--coral);
}
.lang {
  display: inline-flex;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}
.lang span {
  padding: 4px 11px;
  border-radius: 999px;
}
.lang .on {
  background: var(--ink);
  color: #fff;
}
.lang .ar-label {
  font-family: Tajawal, sans-serif;
}

/* Hero: one big phone that counts down, then rings */
.hero {
  padding-block: 30px 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
h1 {
  font-weight: 900;
  font-size: clamp(2.7rem, 6.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 13ch;
}
:root[lang='ar'] h1 {
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 15ch;
}
.c-coral {
  color: var(--coral);
}
.c-teal {
  color: var(--teal);
}
.c-plum {
  color: var(--plum);
}
.lead {
  max-width: 40ch;
  margin: 18px 0 26px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.status {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  margin-top: 24px;
  min-height: 1.6em;
}
.status .dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.6s infinite;
}
.status.is-ready .dot {
  background: var(--coral);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 165, 150, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(0, 165, 150, 0);
  }
}
.stage {
  position: relative;
  height: 620px;
  display: grid;
  place-items: center;
}
.stage > * {
  grid-area: 1 / 1;
}
.blob {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun), var(--coral) 55%, var(--plum));
  filter: blur(4px);
  opacity: 0.9;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.ph {
  position: relative;
  width: 290px;
  height: 590px;
  background: var(--ink);
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(29, 22, 64, 0.35);
}
.ph .scr {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fbf8f2;
}
.ph .scr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.ready {
  position: absolute;
  inset: 0;
  background: var(--teal);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.35s;
}
.ready small {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ready b {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 6.5rem;
  line-height: 1;
  font-weight: 900;
}
.ready span {
  font-size: 1.5rem;
  font-weight: 800;
}
.ready em {
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.9;
}
.ready em:lang(ar) {
  font-family: Tajawal, sans-serif;
}
.ready em:lang(en) {
  font-family: Outfit, sans-serif;
}
.ready .stop {
  margin-top: 22px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 800;
}
.wave {
  width: 330px;
  height: 630px;
  border-radius: 60px;
  border: 5px solid #fff;
  opacity: 0;
}
.stage.ringing .ready {
  opacity: 1;
}
.stage.ringing .ph {
  animation: buzz 0.5s linear infinite;
}
.stage.ringing .wave {
  animation: wave 1.6s ease-out infinite;
}
.stage.ringing .wave.w2 {
  animation-delay: 0.55s;
}
.stage.ringing .wave.w3 {
  animation-delay: 1.1s;
}
@keyframes buzz {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-3deg) translateX(-3px);
  }
  40% {
    transform: rotate(3deg) translateX(3px);
  }
  60% {
    transform: rotate(-2deg);
  }
  80% {
    transform: rotate(2deg);
  }
}
@keyframes wave {
  0% {
    opacity: 0.9;
    transform: scale(0.95);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
.toast {
  position: absolute;
  z-index: 1;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 6px 6px 0 var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition:
    opacity 0.4s,
    transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.toast i {
  font-style: normal;
  font-size: 1.3rem;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.t1 {
  inset-inline-start: 0;
  top: 80px;
}
.toast.t2 {
  inset-inline-end: 0;
  bottom: 36px;
}
.toast.t3 {
  inset-inline-start: 10px;
  bottom: 120px;
}
/* Without scripts the phone shows its ready screen and the notes stay put. */
html:not(.js) .stage .ready,
html:not(.js) .toast {
  opacity: 1;
  transform: none;
}
html:not(.js) .status {
  display: none;
}

/* Sections */
section {
  padding-block: 80px;
}
h2 {
  font-weight: 900;
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
:root[lang='ar'] h2 {
  line-height: 1.2;
  letter-spacing: 0;
}
.section-lead {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0 0 34px;
}

/* Who it's for */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card::after {
  content: '';
  position: absolute;
  inset-inline-end: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.card .ico {
  font-size: 2.4rem;
  line-height: 1;
}
.card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
}
.card p {
  margin: 6px 0 0;
  opacity: 0.93;
}
.card:nth-child(1) {
  background: var(--coral);
}
.card:nth-child(2) {
  background: var(--teal);
}
.card:nth-child(3) {
  background: var(--plum);
}
.card:nth-child(4) {
  background: var(--sun);
  color: var(--ink);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 8px 8px 0 var(--ink);
}
:root[dir='rtl'] .step {
  box-shadow: -8px 8px 0 var(--ink);
}
.step .n {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 14px;
}
.step:nth-child(1) .n {
  background: var(--teal);
}
.step:nth-child(2) .n {
  background: var(--plum);
}
.step:nth-child(3) .n {
  background: var(--coral);
}
.step h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
}
.screens {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 40px;
  align-items: center;
}
.screens figure {
  margin: 0;
}
.screens figcaption {
  font-weight: 600;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.phone-shot {
  background: var(--ink);
  border-radius: 38px;
  padding: 10px;
  max-width: 300px;
  margin-inline: auto;
}
.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}
.screen-shot {
  background: var(--ink);
  border-radius: 22px;
  padding: 10px;
}
.screen-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Try it live */
.try {
  background: var(--plum);
  color: #fff;
  border-radius: 40px;
  padding: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.try h2 {
  color: #fff;
}
.try .section-lead {
  color: #ddd5ff;
  margin-bottom: 24px;
}
.try ol {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: s;
}
.try li {
  counter-increment: s;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1.1rem;
}
.try li::before {
  content: counter(s);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sun);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: none;
}
.qr {
  background: #fff;
  border-radius: 28px;
  padding: 18px;
  width: 290px;
  text-align: center;
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.18);
}
:root[dir='rtl'] .qr {
  transform: rotate(3deg);
}
.qr img {
  display: block;
  width: 100%;
  height: auto;
}
.qr b {
  display: block;
  font-size: 1.1rem;
  margin-top: 6px;
}
.qr small {
  color: var(--ink-soft);
}
.try .phone-only {
  display: none;
}
.try .note {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: #c9bff7;
}
.qr-wrap {
  position: relative;
}
.qr-wrap .qr {
  position: relative;
}
.try .rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.try .rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--sun);
  opacity: 0;
  animation: wave 2.4s ease-out infinite;
}
.try .rings i:nth-child(2) {
  animation-delay: 0.8s;
}
.try .rings i:nth-child(3) {
  animation-delay: 1.6s;
}
@keyframes wave {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

/* Buzzers vs. Tfaddal */
.vs-panel {
  background: var(--sun);
  border-radius: 40px;
  padding: 50px;
}
.vs-panel h2 {
  color: var(--ink);
}
.vs-panel .section-lead {
  color: var(--ink);
}
.vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 3px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}
:root[dir='rtl'] .vs {
  box-shadow: -8px 8px 0 var(--ink);
}
.vs-side {
  padding: 34px 36px 38px;
}
.vs-side.old {
  background: #fffaf0;
}
.vs-side.new {
  background: var(--ink);
  color: #fff;
}
.vs h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  margin: 0 0 18px;
  line-height: 1.1;
}
.vs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.vs li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.15rem;
}
.vs .mark {
  flex: none;
  font-weight: 900;
  font-size: 1.3em;
  line-height: 1;
  width: 1em;
}
.vs .old .mark {
  color: var(--coral);
}
.vs .new .mark {
  color: #3ee0c5;
}
/* The rows slide in one by one when the card scrolls into view: first the buzzers, then Tfaddal. */
html.js .vs li {
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.45s,
    transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
html.js:root[dir='rtl'] .vs li {
  transform: translateX(18px);
}
html.js .vs.in li {
  opacity: 1;
  transform: none;
}
html.js .vs .new .mark {
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1);
  transition-delay: inherit;
}
html.js .vs.in .new .mark {
  transform: none;
}
.vs li:nth-child(2) {
  transition-delay: 0.1s;
}
.vs li:nth-child(3) {
  transition-delay: 0.2s;
}
.vs li:nth-child(4) {
  transition-delay: 0.3s;
}
.vs li:nth-child(5) {
  transition-delay: 0.4s;
}
.vs .new li:nth-child(1) {
  transition-delay: 0.6s;
}
.vs .new li:nth-child(2) {
  transition-delay: 0.7s;
}
.vs .new li:nth-child(3) {
  transition-delay: 0.8s;
}
.vs .new li:nth-child(4) {
  transition-delay: 0.9s;
}
.vs .new li:nth-child(5) {
  transition-delay: 1s;
}

/* Questions as a WhatsApp chat */
.chat-section {
  background: var(--wa);
  color: #fff;
  border-radius: 40px;
  padding: 50px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.chat-section h2 {
  color: #fff;
}
.chat-section .section-lead {
  color: #bfe0d5;
}
.chat-side {
  position: sticky;
  top: 110px;
}
.chat {
  background: var(--wa-2);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size: 30px 30px;
  border-radius: 28px;
  padding: 0 16px 20px;
  overflow: hidden;
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #08362c;
  margin: 0 -16px 14px;
  padding: 14px 18px;
}
.chat-bar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}
.chat-bar b {
  display: block;
}
.chat-bar small {
  color: #c4f75b;
}
.m {
  max-width: 84%;
  padding: 9px 12px 20px;
  border-radius: 14px;
  margin: 7px 0;
  position: relative;
  color: #102a23;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  line-height: 1.45;
  font-size: 1rem;
}
.m time {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 4px;
  font-size: 0.7rem;
  color: #5d7069;
}
.m.me {
  background: #d9fdd3;
  margin-inline-start: auto;
  border-start-end-radius: 4px;
}
.m.us {
  background: #fff;
  border-start-start-radius: 4px;
}
.m.big {
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.1;
}
.m.big em {
  font-style: normal;
  color: #0a8f6f;
}
.m [lang='ar'] {
  font-family: Tajawal, sans-serif;
}
.m.rtl {
  direction: rtl;
  text-align: right;
}
.js .chat .m {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.js .chat .m.in {
  opacity: 1;
  transform: none;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan.hot {
  background: var(--sun);
  box-shadow: 8px 8px 0 var(--ink);
}
:root[dir='rtl'] .plan.hot {
  box-shadow: -8px 8px 0 var(--ink);
}
.plan h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
}
.plan .for {
  margin: 4px 0 14px;
  color: var(--ink-soft);
}
.plan .price b {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}
.plan .price span {
  font-weight: 600;
  margin-inline-start: 6px;
}
.plan ul {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
}
.plan li {
  display: flex;
  gap: 10px;
}
.plan li::before {
  content: '✓';
  font-weight: 900;
  color: var(--teal);
}
.plan.hot li::before {
  color: var(--coral-deep);
}
.badge {
  align-self: flex-start;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.pay {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pay span {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.billing {
  display: inline-flex;
  gap: 4px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.billing button {
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.billing button small {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--sun);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  margin-inline-start: 4px;
}
.billing button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.billing button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
/* Without scripts the switch can't work, so only the monthly prices show. */
html:not(.js) .billing {
  display: none;
}
.price .when-y,
.plans.yearly .price .when-m {
  display: none;
}
.plans.yearly .price .when-y {
  display: inline-block;
  animation: flip-in 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes flip-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.founding {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #e3f7f3;
  border: 2px dashed var(--teal);
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0 0 22px;
  max-width: 70ch;
}
.plans-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Book a demo */
.end {
  background: var(--coral);
  color: #fff;
  border-radius: 40px;
  padding: 60px 30px;
  text-align: center;
}
.end h2 {
  color: #fff;
}
.end p {
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: 1.15rem;
}
.end .cta-row {
  justify-content: center;
}
.end .btn.light {
  box-shadow: 0 6px 0 var(--coral-deep);
}
.end .btn.ink {
  background: var(--ink);
  box-shadow: 0 6px 0 #000;
}

.site-footer {
  padding-block: 30px 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  font-weight: 600;
  color: var(--ink-soft);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer nav a {
  text-decoration: none;
}
.site-footer .copy {
  margin-inline-start: auto;
}
.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.not-found .big {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: var(--coral);
}

@media (max-width: 980px) {
  .site-header nav {
    display: none;
  }
  .lang {
    margin-inline-start: auto;
  }
  .hero-grid,
  .try,
  .vs,
  .chat-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-side {
    position: static;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .try,
  .vs-panel,
  .chat-section {
    padding: 32px 22px;
    border-radius: 30px;
  }
  .qr {
    margin-inline: auto;
  }
}
/* On a phone the visitor can't scan their own screen, so the QR becomes a button. */
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
  .try .qr-wrap,
  .try .desk-only {
    display: none;
  }
  .try li.phone-only {
    display: flex;
  }
  .try a.phone-only {
    display: inline-flex;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  section {
    padding-block: 56px;
  }
  .site-header .btn {
    display: none;
  }
  .stage {
    height: 540px;
  }
  .blob {
    width: 340px;
    height: 340px;
  }
  .ph {
    width: 250px;
    height: 510px;
  }
  .wave {
    width: 290px;
    height: 550px;
  }
  .ready b {
    font-size: 5rem;
  }
  .toast {
    font-size: 0.82rem;
    padding: 8px 11px;
  }
  .toast.t1 {
    inset-inline-start: -4px;
  }
  .toast.t2 {
    inset-inline-end: -4px;
    top: 6px;
    bottom: auto;
  }
  .toast.t3 {
    bottom: 26px;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    min-height: 0;
    gap: 18px;
  }
  .screens {
    grid-template-columns: minmax(0, 1fr);
  }
  .m {
    max-width: 92%;
  }
  .end {
    padding: 44px 20px;
    border-radius: 30px;
  }
  .site-footer .copy {
    margin-inline-start: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plans.yearly .price .when-y {
    animation: none;
  }
  html.js .vs li,
  html.js .vs .new .mark {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob,
  .status .dot,
  .stage.ringing .ph,
  .stage.ringing .wave {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  @view-transition {
    navigation: none;
  }
  .try .rings i {
    animation: none;
  }
  .js .chat .m {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.muted {
  color: var(--ink-soft);
}
