/* FuzzyLogic: the Wix site's look (Lato, red #BD1C2B, teal #619A9D, grey text), rebuilt by hand. */

:root {
  --red: #BD1C2B;
  --red-dark: #9A1522;
  --teal: #619A9D;
  --ink: #161616;
  --grey: #8A8A8A;
  --grey-light: #B2B2B2;
  --line: #E6E6E6;
  --paper: #FFFFFF;
  --mist: #F5F5F4;
  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 22, 22, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.7 "Lato", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header: white bar, logo left, small light nav right, as on Wix */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; }
.brand img { height: 74px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--grey); font-size: 14px; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: none; }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
.mobile-nav { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--white { background: #fff; color: var(--red); }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--red); color: var(--red); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section--red { background: var(--red); color: #fff; }
.section--red a:not(.btn) { color: #fff; text-decoration: underline; }
.section--teal { background: var(--teal); color: #fff; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section--red .eyebrow, .section--teal .eyebrow { color: rgba(255, 255, 255, .8); }
.title { font-size: clamp(34px, 5vw, 50px); }
.title--red { color: var(--red); }
.lead { font-size: 20px; color: var(--grey); }
.section--red .lead, .section--teal .lead { color: rgba(255, 255, 255, .9); }
.muted { color: var(--grey); }

/* Hero: Wix's blurred office photo, big light wordmark */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; background: #333 url(/assets/img/hero-1920.jpg) center / cover no-repeat; background-image: image-set(url(/assets/img/hero.webp) type("image/webp"), url(/assets/img/hero-1920.jpg) type("image/jpeg")); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%); }
.hero .wrap { position: relative; padding: 0 0 88px; }
.hero h1 { font-size: clamp(54px, 9vw, 88px); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.hero__sub { font-size: 22px; font-weight: 700; margin: 0 0 28px; }
.hero__line { font-size: 20px; max-width: 620px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Product hero: the product's own colour */
.phero { color: #fff; padding: 88px 0 72px; background: var(--accent, var(--red)); position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.phero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.phero__crumb { font-size: 14px; opacity: .85; margin-bottom: 18px; }
.phero__crumb a { color: #fff; }
.phero__name { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.phero__name h1 { font-size: clamp(40px, 6vw, 60px); margin: 0; }
.phero__tag { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.phero p { font-size: 18px; opacity: .92; }
.phero .hero__actions { margin-top: 28px; }
.phero .btn--white { color: var(--accent, var(--red)); }
.phero__media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); background: #fff; }
.phero__media--icon { background: none; box-shadow: none; display: grid; place-items: center; }

/* Product icons: a rounded square in the product's colour */
.picon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; flex: none; }
.picon svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.picon--lg { width: 72px; height: 72px; border-radius: 18px; background: #fff; }
.picon--lg svg { width: 40px; height: 40px; stroke: var(--accent); }
.picon--xl { width: 220px; height: 220px; border-radius: 48px; background: rgba(255, 255, 255, .14); }
.picon--xl svg { width: 120px; height: 120px; stroke: #fff; stroke-width: 1.5; }

/* Suite cards */
.suite { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 48px; }
.pcard { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.pcard h3 { font-size: 22px; margin: 4px 0 0; }
.pcard__tag { font-weight: 700; color: var(--accent); font-size: 15px; line-height: 1.4; }
.pcard p { color: var(--grey); font-size: 15px; margin: 0; flex: 1; }
.pcard__more { font-weight: 700; font-size: 14px; color: var(--accent); }

.core-strip { margin-top: 28px; display: flex; gap: 20px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: var(--mist); font-size: 16px; }
.core-strip strong { color: var(--ink); }
.core-strip svg { width: 36px; height: 36px; flex: none; stroke: var(--teal); fill: none; stroke-width: 2; }

/* Video feature */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.feature--flip { grid-template-columns: 1.25fr 1fr; }
.feature--flip > :first-child { order: 2; }
.player { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__start { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: transparent; }
.player__start img { width: 100%; height: 100%; object-fit: cover; }
.player__btn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .2s; }
.player__start:hover .player__btn { transform: scale(1.08); }
.player__btn::after { content: ""; margin-left: 6px; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.player__len { position: absolute; right: 14px; bottom: 12px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--accent, var(--red)); border-bottom: 2px solid var(--accent, var(--red)); transform: rotate(-45deg); }

/* Story (red band) and quote (teal band), as on Wix */
.story { text-align: center; }
.story .title { color: #fff; }
.story h3 { font-weight: 400; font-size: 20px; margin-bottom: 28px; }
.story p { max-width: 820px; margin: 0 auto 1.2em; }
.quote { text-align: center; font-size: clamp(22px, 3vw, 28px); padding: 72px 0; }
.quote p { margin: 0; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; margin-top: 40px; }
.clients a, .clients span { display: grid; place-items: center; height: 110px; padding: 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.clients img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.clients a:hover img, .clients span:hover img { filter: none; opacity: 1; }

.client { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.client:first-of-type { border-top: 0; }
.client__logo { width: 180px; height: 120px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.client__logo img { max-height: 90px; width: auto; }
.client h2 { color: var(--red); font-size: 30px; }
.client h3 { font-size: 17px; margin: 18px 0 4px; }
.client p { color: var(--grey); margin: 0; }

/* Grids of features */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 24px; }
.box { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section--mist .box { border-color: transparent; }
.box h3 { font-size: 19px; margin-bottom: 8px; }
.box p { color: var(--grey); font-size: 15px; margin: 0; }
.box__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent, var(--red)); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px; }

.box ul { margin: 0; padding-left: 18px; color: var(--grey); font-size: 15px; }
.box li { margin-bottom: 4px; }

/* Specification: label and value on one line */
.spec { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 16px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec th { width: 220px; font-weight: 700; color: var(--ink); }
.spec td { color: var(--grey); }
@media (max-width: 720px) {
  .spec th, .spec td { display: block; width: auto; padding: 4px 0; border: 0; }
  .spec tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* Before and after */
.pain { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.pain > div { padding: 32px; border-radius: var(--radius); }
.pain__before { background: var(--mist); }
.pain__after { background: var(--accent, var(--red)); color: #fff; }
.pain h3 { font-size: 20px; }
.pain ul { margin: 0; padding-left: 20px; }
.pain li { margin-bottom: 8px; }

/* Screens from the product */
.shot { margin: 0; }
.shot img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot figcaption { font-size: 14px; color: var(--grey); margin-top: 12px; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 40px; }

/* Placeholder for a video still to come */
.soon { aspect-ratio: 16 / 9; border-radius: var(--radius); display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, var(--accent), #1e1e1e); color: #fff; padding: 24px; }
.soon .picon--xl { margin: 0 auto 18px; width: 140px; height: 140px; border-radius: 34px; }
.soon .picon--xl svg { width: 76px; height: 76px; }

/* Suite page rows */
.prow { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.prow h2 { font-size: 28px; margin-bottom: 4px; }
.prow .pcard__tag { margin-bottom: 10px; display: block; }
.prow p { color: var(--grey); margin: 0 0 12px; }
.prow .ticks { columns: 2; column-gap: 32px; margin: 0; font-size: 15px; }
.prow .picon { width: 80px; height: 80px; border-radius: 20px; }
.prow .picon svg { width: 44px; height: 44px; }

/* Other products strip */
.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.contact a.box { color: var(--ink); display: block; }
.contact a.box:hover { text-decoration: none; box-shadow: var(--shadow); }
.contact .box strong { display: block; font-size: 20px; color: var(--red); }

/* Call to action band (red, as Wix's Get in Touch) */
.cta { text-align: center; }
.cta .title { color: #fff; }
.cta__mail { display: inline-block; font-size: 24px; font-weight: 700; color: #fff; margin: 8px 0 28px; }
.cta .hero__actions { justify-content: center; }

/* Footer */
.site-footer { background: #fff; padding: 48px 0 32px; font-size: 14px; color: var(--grey); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 64px; width: auto; margin-bottom: 12px; }
.site-footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--grey); }
.site-footer a:hover { color: var(--red); }
.site-footer__base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Reveal on scroll (site.js adds .in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 980px) {
  .suite { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--flip, .phero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .feature--flip > :first-child { order: 0; }
  .grid3, .others { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .prow { grid-template-columns: 72px 1fr; }
  .prow > :last-child { grid-column: 2; }
  .prow .picon { width: 64px; height: 64px; }
  .phero__media--icon { display: none; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header__bar { height: 72px; }
  .brand img { height: 54px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.open { display: flex; flex-direction: column; padding: 8px 16px 20px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 12px; justify-content: center; color: #fff; border: 0; }
  .section { padding: 64px 0; }
  .hero { min-height: 72vh; }
  .hero .wrap { padding-bottom: 56px; }
  .suite, .grid3, .grid2, .pain, .shots, .others, .contact { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { grid-template-columns: 1fr; gap: 20px; }
  .prow { grid-template-columns: 1fr; }
  .prow > :last-child { grid-column: auto; }
  .prow .ticks { columns: 1; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .core-strip { flex-direction: column; align-items: flex-start; }
  .phero { padding: 56px 0; }
}
