/* ================================================================
   SuitePad Redesign v7 - Shared Base CSS
   Deployed to HubFS: /redesign/redesign-base.css
   Source of truth: ~/Documents/suitepad-website-redesign/redesign-base.css
   ================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  --sp-aubergine:      #3D3A46;
  --sp-aubergine-ink:  #312E38;
  --sp-aubergine-90:   #514F5C;
  --sp-aubergine-80:   #696573;
  --sp-aubergine-60:   #9694A1;
  --sp-aubergine-40:   #C8C6CF;
  --sp-aubergine-20:   #E2E1E5;
  --sp-aubergine-10:   #F2F2F5;
  --sp-turquoise:      #1CC5CC;
  --sp-turquoise-deep: #2D7F89;
  --sp-blue:           #7A9BDF;
  --sp-orange:         #FF917B;

  --sp-bg:             #FFFFFF;
  --sp-bg-soft:        #F8F8FA;
  --sp-bg-tint:        #F2F2F5;
  --sp-bg-dark:        #3D3A46;
  --sp-bg-ink:         #312E38;

  --sp-text:           #3D3A46;
  --sp-text-muted:     #696573;
  --sp-text-subtle:    #807C8A;
  --sp-text-on-dark:   #FFFFFF;
  --sp-text-on-dark-mut: #C8C6CF;

  --sp-border:         #E2E1E5;
  --sp-border-strong:  #C8C6CF;

  --sp-font-display:   "Averta", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --sp-font-body:      "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --sp-radius-sm:   6px;
  --sp-radius-md:   10px;
  --sp-radius-lg:   16px;
  --sp-radius-xl:   24px;
  --sp-radius-pill: 999px;

  --sp-shadow-xs:   0 1px 2px rgba(61,58,70,0.06);
  --sp-shadow-sm:   0 2px 6px rgba(61,58,70,0.08);
  --sp-shadow-md:   0 8px 24px rgba(61,58,70,0.10);
  --sp-shadow-lg:   0 24px 60px rgba(61,58,70,0.18);
  --sp-shadow-glow: 0 0 0 6px rgba(28,197,204,0.18);

  --sp-ease:  cubic-bezier(0.2, 0.7, 0.2, 1);
  --sp-dur-1: 120ms;
  --sp-dur-2: 220ms;
  --sp-dur-3: 420ms;
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sp-font-body);
  color: var(--sp-text);
  background: var(--sp-bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ----------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrapper-narrow { max-width: 800px; margin: 0 auto; padding: 0 40px; }

/* ----------------------------------------------------------------
   SECTION LABEL (eyebrow above headings)
   ---------------------------------------------------------------- */
.section-label {
  font-family: var(--sp-font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-turquoise);
  margin-bottom: 12px;
}

/* ----------------------------------------------------------------
   STAT / KPI NUMBERS — single color, no turquoise suffix split
   !important needed to override page-specific CSS that sets em to turquoise
   Attribute selector catches stat-num, usage-stat-num, and any future variants
   ---------------------------------------------------------------- */
[class*="stat-num"] em,
[class*="stat-num"] span {
  font-style: normal;
  color: inherit !important;
}

/* ----------------------------------------------------------------
   BUTTONS
   Pill-shaped, uppercase, white text.
   Selectors use .btn.btn-X to beat HubSpot theme's a.btn specificity.
   ---------------------------------------------------------------- */
.btn,
a.btn,
.btn-primary,
a.btn-primary,
.btn-dark,
a.btn-dark,
.btn-ghost,
a.btn-ghost,
.btn-ghost-light,
a.btn-ghost-light {
  font-family: var(--sp-font-body);
  font-weight: 700; font-size: 15px;
  padding: 14px 36px; border-radius: 50px;
  border: 2px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.22s var(--sp-ease);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  width: auto;
  justify-content: flex-start;
}
.btn.btn-primary,
a.btn.btn-primary,
.btn-primary,
a.btn-primary {
  background: var(--sp-turquoise); color: #fff;
  border-color: var(--sp-turquoise);
}
.btn.btn-primary:hover,
a.btn.btn-primary:hover,
.btn-primary:hover,
a.btn-primary:hover {
  background: #15B0B7;
  border-color: #15B0B7;
  color: #fff;
}
.btn.btn-dark,
a.btn.btn-dark,
.btn-dark,
a.btn-dark {
  background: var(--sp-aubergine); color: #fff;
  border-color: var(--sp-aubergine);
}
.btn.btn-dark:hover,
a.btn.btn-dark:hover,
.btn-dark:hover,
a.btn-dark:hover {
  background: var(--sp-aubergine-90);
  border-color: var(--sp-aubergine-90);
  color: #fff;
}
.btn.btn-ghost,
a.btn.btn-ghost,
.btn-ghost,
a.btn-ghost {
  background: transparent;
  border: 2px solid var(--sp-border-strong);
  color: var(--sp-text);
}
.btn.btn-ghost:hover,
a.btn.btn-ghost:hover,
.btn-ghost:hover,
a.btn-ghost:hover {
  border-color: var(--sp-turquoise);
  color: var(--sp-turquoise);
}
.btn.btn-ghost-light,
a.btn.btn-ghost-light,
.btn-ghost-light,
a.btn-ghost-light {
  background: transparent;
  border: 2px solid var(--sp-turquoise);
  color: var(--sp-turquoise);
}
.btn.btn-ghost-light:hover,
a.btn.btn-ghost-light:hover,
.btn-ghost-light:hover,
a.btn-ghost-light:hover {
  background: rgba(28,197,204,0.08);
  border-color: var(--sp-turquoise);
  color: var(--sp-turquoise);
}
.btn .arrow,
.btn-primary .arrow,
.btn-dark .arrow,
.btn-ghost .arrow,
.btn-ghost-light .arrow {
  transition: transform 0.22s var(--sp-ease);
  display: inline-block;
}
.btn:hover .arrow,
.btn-primary:hover .arrow,
.btn-dark:hover .arrow,
.btn-ghost:hover .arrow,
.btn-ghost-light:hover .arrow { transform: translateX(3px); }

/* ----------------------------------------------------------------
   ANIMATIONS & REVEAL
   ---------------------------------------------------------------- */
@keyframes fade-in-up {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--sp-ease), transform 0.7s var(--sp-ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.from-left {
  transform: translateX(-40px);
}
.reveal.from-left.is-visible {
  transform: translateX(0);
}
.reveal.from-right {
  transform: translateX(40px);
}
.reveal.from-right.is-visible {
  transform: translateX(0);
}
.reveal.from-scale {
  transform: scale(0.92);
}
.reveal.from-scale.is-visible {
  transform: scale(1);
}
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 360ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 480ms; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 600ms; }

/* ----------------------------------------------------------------
   DEMO FORM (dark-bg sections with HubSpot form embed)
   Usage: .demo-form-wrap > h3 + p + .demo-form-container#demo-form-target
   The onFormReady JS callback in each template re-applies these
   rules to beat HubSpot's late-loading CSS. This block is the
   single source of truth; keep both in sync.
   ---------------------------------------------------------------- */
.demo-form-wrap {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--sp-radius-xl);
  padding: 48px 40px;
  text-align: center;
}
.demo-form-wrap h3 {
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}
.demo-form-wrap p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.demo-form-container { margin-bottom: 0; }

.demo-form-container .hs-form fieldset { max-width: 100% !important; }
.demo-form-container .hs-form .hs-form-field { margin-bottom: 14px; }
.demo-form-container .hs-form fieldset.form-columns-2 .hs-form-field { padding: 0 8px; }

.demo-form-container .hs-form label,
.demo-form-container .hs-form .hs-form-field > label,
#demo-form-target label {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.demo-form-container .hs-form label .hs-form-required,
#demo-form-target .hs-form-required {
  color: var(--sp-turquoise) !important;
}

.demo-form-container .hs-form input[type="text"],
.demo-form-container .hs-form input[type="email"],
.demo-form-container .hs-form input[type="tel"],
.demo-form-container .hs-form input[type="number"],
.demo-form-container .hs-form textarea,
#demo-form-target input[type="text"],
#demo-form-target input[type="email"],
#demo-form-target input[type="tel"],
#demo-form-target input[type="number"],
#demo-form-target textarea {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: var(--sp-radius-sm) !important;
  color: #fff !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  width: 100% !important;
  transition: border-color 0.2s;
}
.demo-form-container .hs-form select,
#demo-form-target select {
  background-color: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: var(--sp-radius-sm) !important;
  color: #fff !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  width: 100% !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}
.demo-form-container .hs-form select option { color: #333; background: #fff; }

.demo-form-container .hs-form input:focus,
.demo-form-container .hs-form textarea:focus {
  border-color: var(--sp-turquoise) !important;
  outline: none !important;
  background: rgba(255,255,255,0.22) !important;
}
.demo-form-container .hs-form select:focus {
  border-color: var(--sp-turquoise) !important;
  outline: none !important;
  background-color: rgba(255,255,255,0.22) !important;
}
.demo-form-container .hs-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.demo-form-container .hs-form .hs-submit { margin-top: 8px; }
.demo-form-container .hs-form .hs-submit input[type="submit"] {
  background: var(--sp-turquoise) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  border: none !important;
  border-radius: var(--sp-radius-pill) !important;
  padding: 14px 36px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.demo-form-container .hs-form .hs-submit input[type="submit"]:hover {
  background: var(--sp-turquoise-deep) !important;
  transform: translateY(-1px);
}
.demo-form-container .hs-form .hs-error-msgs {
  color: #ff8a8a;
  font-size: 12px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}
.demo-form-container .hs-form .hs_error_rollup { display: none; }

.demo-form-container .hs-form .hs-richtext {
  color: rgba(255,255,255,0.6) !important;
  font-size: 12px !important;
}
.demo-form-container .hs-form .legal-consent-container { padding: 0 !important; }
.demo-form-container .hs-form .legal-consent-container .hs-form-booleancheckbox label {
  font-size: 12px !important;
  color: rgba(255,255,255,0.7) !important;
}
.demo-form-container .hs-form .legal-consent-container a {
  color: var(--sp-turquoise) !important;
}

@media (max-width: 480px) {
  .demo-form-wrap { padding: 32px 24px; }
}
