/* ==========================================================================
   Transformify - shared styles (header, footer, buttons, typography, backgrounds)
   Values are measured from the original Wix site at 1440px width.
   Page-specific layout lives in /css/pages/<page>.css
   ========================================================================== */

:root {
  --pink: #e851e8;
  --violet: #8b4bbf;
  --purple: #5111a3;
  --rose: #ff4d67;
  --cyan: #6ed8ff;
  --gold: #ffc559;
  --text: #4f4f4f;
  --muted: #95a1b5;
  --line: #e2e2e2;
  --gray-bg: rgba(149, 161, 181, 0.1);
  --grad: linear-gradient(90deg, #e851e8 0%, #8b4bbf 100%);
  --font: 'Roboto', Arial, Helvetica, sans-serif;
  --wrap: 1210px;
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 10px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; color: var(--text); }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 1120px; }
.center { text-align: center; }

/* ---------- Typography (Wix scale) ---------- */
.t-hero  { font-size: clamp(32px, 3.55vw, 51px); font-weight: 700; line-height: 1.2; }
.t-h1    { font-size: clamp(30px, 3.55vw, 51px); font-weight: 700; line-height: 1.2; }
.t-h2    { font-size: clamp(24px, 2.36vw, 34px); font-weight: 700; line-height: 1.2; }
.t-h3    { font-size: clamp(20px, 1.71vw, 24.6px); font-weight: 700; line-height: 1.2; }
.t-lead  { font-size: clamp(17px, 1.42vw, 20.4px); line-height: 1.4; }
.t-body  { font-size: 17px; line-height: 1.6; }
.t-small { font-size: 14px; }
.t-kicker { font-size: 17px; line-height: 1.6; color: var(--pink); }
.t-black { color: #000; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 35px;
  font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1; color: #fff;
  background: var(--grad); border: 0; border-radius: 3px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter .2s ease, box-shadow .2s ease;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 4px 14px rgba(139, 75, 191, .35); color: #fff; }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.btn svg.i-arrow, .link-arrow svg.i-arrow { transform: scaleY(-1); }
.btn--sm { height: 40px; padding: 0 25px; font-size: 14px; }
.btn--icon-lg svg { width: 24px; height: 24px; }
.btn--outline { background: transparent; color: var(--violet); box-shadow: inset 0 0 0 2px var(--violet); }
.btn--outline:hover { color: #fff; background: var(--grad); box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.link-arrow svg { width: 17px; height: 17px; fill: currentColor; }
.link-arrow:hover { color: var(--pink); }

/* ---------- Backgrounds ---------- */
.bg-gray { background: var(--gray-bg); }
/* Pastel gradient over dots (stats band, CTA band) - recreated from the Wix section backgrounds */
.bg-pastel, .bg-pastel-2 { position: relative; isolation: isolate; }
.bg-pastel::before, .bg-pastel-2::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/images/shared/dots.png') center / cover; opacity: .55;
}
.bg-pastel::after, .bg-pastel-2::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.bg-pastel::after {
  background:
    radial-gradient(circle at 94.35% 89.6%, rgba(244,147,195,.2) 0%, 20%, rgba(244,147,195,0) 40%),
    radial-gradient(circle at 6.5% 88%, rgba(139,103,186,.2) 0%, 25%, rgba(139,103,186,0) 50%),
    radial-gradient(circle at 6.17% 12.6%, rgba(239,48,143,.2) 0%, 42%, rgba(239,48,143,0) 70%),
    radial-gradient(circle at 93.7% 11.4%, rgba(2,168,181,.2) 0%, 42%, rgba(2,168,181,0) 70%),
    radial-gradient(circle at 48.9% 49.5%, rgba(255,255,255,.2) 0%, rgba(255,255,255,.2) 100%);
}
.bg-pastel-2::after {
  background:
    radial-gradient(circle at 29.4% 55%, rgba(255,197,89,.2) 0%, 14.5%, rgba(255,197,89,0) 29%),
    radial-gradient(circle at 71.5% 55%, rgba(110,216,255,.2) 0%, 15.75%, rgba(110,216,255,0) 35%),
    radial-gradient(circle at 94.35% 89.6%, rgba(139,75,191,.2) 0%, 24%, rgba(139,75,191,0) 48%),
    radial-gradient(circle at 6.5% 88%, rgba(255,77,103,.2) 0%, 25%, rgba(255,77,103,0) 50%),
    radial-gradient(circle at 6.17% 12.6%, rgba(232,81,232,.2) 0%, 42%, rgba(232,81,232,0) 70%),
    radial-gradient(circle at 93.7% 11.4%, rgba(2,168,181,.2) 0%, 42%, rgba(2,168,181,0) 70%),
    radial-gradient(circle at 48.9% 49.5%, rgba(255,255,255,.2) 0%, rgba(255,255,255,.2) 100%);
}
.card-soft { background: rgba(255,255,255,.85); border: 1px solid rgba(149,161,181,.2); border-radius: 5px; box-shadow: 0 1px 10px 3px rgba(149,161,181,.2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; height: var(--header-h); }
.site-header .wrap { height: 100%; display: flex; align-items: center; }
.brand { display: block; width: 180px; flex: none; }
.brand img { width: 180px; height: 40px; }
.nav { display: flex; align-items: center; flex: 1; }
.nav ul { list-style: none; display: flex; margin-left: 33px; }
.nav li a { display: block; padding: 0 12.5px; font-size: 15px; line-height: 70px; color: #000; text-decoration: none; }
.nav li:nth-child(2) a { padding-right: 37px; }
.nav li:nth-child(3) a { padding-right: 33px; }
.nav li a:hover, .nav li a[aria-current='page'] { color: var(--pink); }
.nav .btn { margin-left: auto; height: 40px; width: 102px; padding: 0; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: #000; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Product header (Automate pages): logo | Automate, Features ▾ / Pricing / Blog / About */
.brand--product, .brand--product img { width: 152px; height: 36px; }
.brand-sep { margin: 0 10px 0 9px; font-size: 18px; color: var(--text); }
.brand-product { font-size: 17px; font-weight: 700; color: var(--rose); text-decoration: none; }
.site-header--product .nav ul { margin-left: 33px; }
.site-header--product .nav li a { width: 80px; padding: 0; text-align: center; }
.site-header--product .nav li:first-child a { width: 100px; }
.site-header--product .nav li:nth-child(n) a { padding: 0; }
.site-header--product .nav li a:hover, .site-header--product .nav li a[aria-current='page'] { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.nav-features { font-size: 14px !important; }
.nav-features svg { display: inline-block; width: 11px; height: 8px; margin-left: 4px; vertical-align: 1px; }
.site-header--product .nav .btn { width: 90px; }
/* Automate pages use a rose -> violet button gradient */
.is-product .btn { background: linear-gradient(90deg, #ff4d67 0%, #8b4bbf 100%); }

@media (max-width: 860px) {
  .brand, .brand img { width: 144px; height: 32px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    padding: 12px 20px 24px; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-130%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; margin: 0 0 16px; }
  .nav li a, .nav li:nth-child(n) a, .site-header--product .nav li a { width: auto; text-align: left; line-height: 48px; padding: 0; font-size: 17px !important; }
  .brand--product, .brand--product img { width: 120px; height: 28px; }
  .nav .btn { margin: 0; width: 100%; height: 48px; }
}

/* ---------- Footer ---------- */
.site-footer { padding-top: 80px; color: var(--text); }
.footer-top { display: grid; grid-template-columns: repeat(4, 242px) 1fr; padding-bottom: 115px; }
.footer-col h2 { font-size: 15px; font-weight: 700; line-height: 40px; }
.footer-col ul { list-style: none; }
.footer-col a { display: block; font-size: 14px; line-height: 40px; text-decoration: none; }
.footer-col a:hover { color: var(--pink); }
.footer-brand img { width: 201px; height: 43px; }
.footer-quote { max-width: 186px; margin: 40px 0 0 6px; font-size: 12.8px; line-height: 15px; text-decoration: none; display: block; }
.footer-quote p + p { margin-top: 15px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { position: relative; padding-block: 20px 22px; text-align: center; font-size: 12.8px; line-height: 17.92px; }
.footer-bottom p + p { margin-top: 18px; }
.socials { position: absolute; right: 32px; top: 20px; display: flex; gap: 24px; }
.socials a { display: block; width: 25px; height: 25px; }
.socials svg { width: 25px; height: 25px; fill: var(--muted); }
.socials a:hover svg { fill: var(--pink); }

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-brand { grid-column: 1 / -1; order: -1; }
  .socials { position: static; justify-content: center; margin-top: 20px; }
}

/* ---------- Shared CTA band ("Embrace the AI automation revolution") ---------- */
.cta-embrace { padding: 120px 0 120px; text-align: center; }
.cta-embrace h2 { font-size: clamp(30px, 3.55vw, 51px); line-height: 1.2; }
.cta-embrace .btn { margin-top: 25px; width: 228px; padding: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- YouTube lightbox (main.js [data-youtube]) ---------- */
.yt-dialog { width: min(1100px, 92vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.yt-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.yt-dialog__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt-dialog__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-dialog__close { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
