/* Values below are measured from the original wecall.rw (Elementor) page. */
:root {
  --pink: #ec008c;
  --pink-dark: #c20074;
  --pink-table: #ff3292;
  --ink: #0f172a;
  --text: #454f5e;
  --muted: #808080;
  --bg: #ffffff;
  --bg-site: rgba(80, 80, 80, .08); /* hero + "What is Cloud PBX?" grey */
  --bg-alt: #f5f5f5;
  --line: #e6e8ec;
  --head: "Lexend", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
h1, h2, h3, h4, h5 { font-family: var(--head); color: var(--ink); line-height: 1.3; margin: 0 0 20px; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 42px); }
h5 { font-size: 18px; }
p { margin: 0 0 1.6em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(1200px, 100% - 32px); }
.center { text-align: center; }
.section { padding: 100px 0; }
.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 756px; margin: 0 auto 60px; }
.section-head p { margin: 0; }

/* Buttons */
.btn { display: inline-block; background: var(--pink); color: #fff; text-decoration: none; font: 400 15px/1 var(--body); letter-spacing: 1px; padding: 17px 35px; border-radius: 6px; border: 0; transition: background .2s; }
.btn:hover { background: var(--pink-dark); }
.btn-icon { display: inline-flex; align-items: center; gap: 12px; }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-light { background: #fff; color: var(--pink); }
.btn-light:hover { background: #fcebf4; color: var(--pink-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .14); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 69px; padding: 0 10px; }
.site-nav { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: center; }
.site-nav a:not(.btn) { color: #3f3f3f; text-decoration: none; font: 500 15px/1 "Poppins", sans-serif; padding: 6px 0; border-bottom: 1px solid #9a9a9a; transition: color .2s, border-color .2s; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--pink); border-color: var(--pink); }
.site-nav a:first-child { margin-left: auto; }
.site-nav .btn { margin-left: auto; font-weight: 700; letter-spacing: 0; padding: 13px 36px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { background: var(--bg-site); min-height: 670px; display: flex; align-items: center; padding: 60px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 540px 640px; justify-content: space-between; gap: 10px; align-items: center; }
.hero h1 { font: 600 64px/1.4 "Roboto", sans-serif; color: var(--ink); margin: 0 0 20px; letter-spacing: 0; }
.hero p { font: 400 16px/1.6 "Roboto", sans-serif; color: var(--ink); margin: 0 0 28px; }
.hero-actions { margin-top: 20px; }
.hero-media img { border-radius: 20px; background: #fff; box-shadow: 0 0 100px rgba(0, 0, 0, .35); }

/* Intro */
.intro { padding: 100px 0; background: var(--bg-site); }
.intro p { margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 10px; }
.card { background: #fff; border-radius: 20px; padding: 40px; box-shadow: 0 0 100px rgba(0, 0, 0, .19); text-align: center; }
.feature h3 { font-size: 20px; line-height: 1.2; margin: 0 0 20px; }
.feature p { margin: 0; }
.icon { display: flex; justify-content: center; margin: 10px 0 26px; }
.icon img { width: 50px; height: 50px; }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Interface slider */
#interface { padding-top: 0; }
#interface .section-head { max-width: none; margin-bottom: 20px; }
.slider { position: relative; width: min(900px, 100%); margin: 0 auto; }
.slides { position: relative; aspect-ratio: 900 / 520; border-radius: 12px; overflow: hidden; background: #f9f9f9; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: #f9f9f9; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.slide figcaption strong { display: block; font-size: 18px; font-weight: 600; }
.slide figcaption span { font-size: 13px; }
.slider-arrow { position: absolute; top: calc(50% - 22px); z-index: 2; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #000; cursor: pointer; font-size: 15px; padding: 10px 15px; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #ccc; cursor: pointer; }
.dot.is-active { background: #000; }

/* App */
.app { padding: 10px 0; }
.app-grid { display: grid; grid-template-columns: 816px 1fr; gap: 0; align-items: center; min-height: 433px; }
.app-grid > div:first-child { padding: 10px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; }
.check-list li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: var(--pink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.app-media { display: flex; justify-content: center; }
.app-media img { max-height: 413px; width: auto; }

/* Pricing */
.pricing { background: #fbfbfb; }
.pricing h2 { font: 600 35px/1.4 "Poppins", sans-serif; color: #222; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid #ddd; }
.plans { width: 100%; border-collapse: collapse; min-width: 640px; font: 400 13px/1.6 "Poppins", sans-serif; table-layout: fixed; }
.plans th, .plans td { padding: 17px; text-align: center; border: 1px solid #fff7fb; font-weight: 400; color: #444; background: #fff; }
.plans thead th { font-size: 17px; color: #fff; background: var(--pink-table); padding: 10px; border: 0; }
.plans tbody tr:nth-child(even) th, .plans tbody tr:nth-child(even) td { background: rgba(0, 0, 0, .11); color: var(--text); }
.yes, .no { display: inline-block; line-height: 0; }
.yes { color: var(--pink); }
.no { color: var(--muted); }
.yes svg, .no svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.price-link { color: var(--pink); font-weight: 700; text-decoration: none; }
.price-link:hover { color: var(--pink-dark); text-decoration: underline; }

/* FAQ */
.faq { width: min(720px, 100%); margin: 0 auto; }
.faq details { background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .1); margin-bottom: 25px; }
.faq summary { list-style: none; cursor: pointer; padding: 28px 28px 28px 52px; font-weight: 700; line-height: 1; color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 28px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--pink); }
.faq details[open] summary::before { content: "\2212"; }
.faq details[open] summary { color: var(--pink); }
.answer { padding: 0 28px 28px; }
.answer p:last-child { margin: 0; }
.answer ul { padding-left: 1.2em; margin: 0; }
.answer li { margin-bottom: .6em; }

/* Contact: map left, details right */
.contact-grid { display: grid; grid-template-columns: 800px 300px; justify-content: space-between; align-items: start; }
.map { height: 460px; margin-top: 50px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-info h3 { font-size: 28px; margin: 0 0 20px; }
.contact-sub { font: 600 20px/1.3 var(--head); color: var(--ink); margin: 0 0 20px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 2px; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--pink); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--pink) 50%, var(--bg-alt) 50%); padding: 100px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 500px; gap: 60px; align-items: center; }
.cta-grid > div:first-child { max-width: min(520px, 42vw); }
.cta h2, .cta p { color: #fff; }
.cta-media img { border-radius: 10px; }

/* Footer */
.site-footer { background: linear-gradient(280deg, #002f41 0%, #49022b 100%); color: #c2bde6; padding: 70px 0 0; font: 400 14px/1.8 "Lato", sans-serif; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 10px; gap: 20px; }
.footer-logo { margin-bottom: 14px; }
.site-footer h4 { font: 300 20px/1.3 "Oswald", sans-serif; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #c2bde6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding: 20px 0; text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 5vw, 64px); }
  .app-grid { grid-template-columns: 2fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 300px; gap: 40px; }
  .cta-grid { grid-template-columns: 1.2fr .8fr; }
}
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .app-grid, .contact-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .map { margin-top: 0; height: 360px; }
  .contact-info { order: -1; }
  .cta { background: var(--pink); }
  .cta-grid > div:first-child { max-width: none; }
  .site-nav { gap: 20px; }
}
@media (max-width: 760px) {
  .section, .intro, .cta { padding: 64px 0; }
  .hero h1 { font-size: 38px; line-height: 1.25; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 69px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:first-child { margin-left: 0; }
  .site-nav .btn { margin: 14px 0 0; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 28px; box-shadow: 0 0 40px rgba(0, 0, 0, .12); }
  .slide figcaption { padding: 10px 14px; }
  .slide figcaption span { display: none; }
}

/* Plans form (replaces the external Jotform) */
.form-modal { width: min(620px, 100% - 32px); max-height: calc(100vh - 32px); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); color: var(--text); }
.form-modal::backdrop { background: rgba(15, 23, 42, .55); }
.plans-form, .form-success { padding: 40px; }
.plans-form h2, .form-success h2 { font-size: 28px; margin: 0 0 12px; }
.form-intro { font-size: 14px; margin: 0 0 26px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; }
.modal-close:hover { background: #ebebeb; }
.field { display: block; border: 0; padding: 0; margin: 0 0 20px; }
.field legend, .field .label { display: block; font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 8px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { width: 100%; font: inherit; color: var(--ink); padding: 11px 14px; border: 1px solid #c9ced6; border-radius: 6px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236, 0, 140, .15); }
.field input.invalid { border-color: #d92d20; }
.sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.req { color: var(--pink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; background: var(--bg-alt); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--pink); }
.consent.invalid { outline: 1px solid #d92d20; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #d92d20; font-size: 14px; margin: 0 0 16px; }
.plans-form .btn { width: 100%; font-weight: 700; font-size: 16px; cursor: pointer; }
.plans-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-success { text-align: center; }
@media (max-width: 560px) {
  .plans-form, .form-success { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
}
.price-link .yes { margin-right: 4px; vertical-align: -1px; }
