/* ============================================================
   RESET
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   THEME VARIABLES
============================================================ */
:root {
  --bg-dark: #050816;
  --bg-page2: #050b1a;
  --primary: #1E3FA8;
  --primary-soft: #2A4ED0;
  --accent: #F5A623;
  --accent-soft: rgba(245,166,35,0.7);
  --frosted-bg: rgba(22,40,110,0.7);
  --frosted-border: rgba(60,90,190,0.9);
  --text-main: #f9f9ff;
  --text-muted: #d6ddff;
  --shadow-strong: 0 0 24px rgba(10,20,60,0.9);
  --shadow-soft: 0 0 32px rgba(10,20,60,0.55);
}

/* ============================================================
   BASE
============================================================ */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #0b1635 0, var(--bg-dark) 55%, #02040a 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   PAGE 1 — HERO
   Blurred placeholder via background-color + low-res inline
   gradient while the WebP loads
============================================================ */
.hero {
  height: 100vh;
  /* Blurred colour placeholder — shows instantly */
  background-color: #0b1430;
  background-image: url("images/robotbackground.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20vh;
  text-align: center;
  transition: background-position 0.4s ease;
  /* Soft blur overlay while image loads */
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,8,22,0.35) 0%, rgba(5,8,22,0.15) 60%, rgba(5,8,22,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Hero Button */
.hero-btn {
  display: inline-block;
  padding: 18px 42px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: radial-gradient(circle at top left, var(--primary-soft), var(--primary));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  line-height: 1.3;
  outline: none;
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.15),
    0 0 22px rgba(20,60,180,0.7);
  animation: pulse 2.4s infinite ease-in-out;
}

.hero-btn:hover {
  transform: scale(1.08);
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    inset 0 0 8px rgba(255,255,255,0.25),
    0 0 32px rgba(40,90,220,0.9);
}

.hero-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 6px;
}

/* Floating "Need help?" button */
#floatingHelp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent), #ffcf6b);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px var(--accent-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 3s infinite ease-in-out;
  z-index: 999;
  color: #1b1300;
}

#floatingHelp:hover {
  transform: scale(1.12);
  box-shadow: 0 0 28px rgba(245,166,35,0.95);
}

#floatingHelp:focus-visible {
  outline: 3px solid #1b1300;
  outline-offset: 4px;
}

/* ============================================================
   PAGE 2 — BACKGROUND
   Blurred colour placeholder shown before WebP loads
============================================================ */
.page2-bg {
  /* Blurred colour placeholder */
  background-color: #060d24;
  background-image: url("images/backgroundsecond.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* fixed breaks on iOS — use scroll; parallax handled via overlay */
  background-attachment: scroll;
  width: 100%;
  min-height: 140vh;
  height: auto;
  padding-top: 4rem;
  padding-bottom: 8rem;
  position: relative;
  z-index: 0;
  transition: background-position 0.4s ease;
  display: flex;
  flex-direction: column;
}

.page2-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(10,20,60,0.85), rgba(5,10,30,0.9)),
    linear-gradient(to bottom, rgba(5,10,30,0.85), rgba(5,10,30,0.95));
  mix-blend-mode: soft-light;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1;
}

.page2-bg > * {
  position: relative;
  z-index: 2;
}

.page2-bg > *:last-child {
  margin-bottom: auto;
}

/* ============================================================
   SECTIONS
============================================================ */
.section {
  margin-bottom: 3rem;
}

/* ============================================================
   TWO COLUMN LAYOUT
============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  align-items: stretch;
}

.left-col,
.right-col {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   FROSTED BOXES
============================================================ */
.frosted-box {
  background: var(--frosted-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1.5px solid var(--frosted-border);
  box-shadow:
    0 0 18px rgba(10,20,60,0.75),
    0 0 32px rgba(10,20,60,0.55);
}

.green-frost {
  background: radial-gradient(circle at top left, rgba(46,196,182,0.18), rgba(22,40,110,0.9));
  border-color: rgba(46,196,182,0.7);
  box-shadow:
    0 0 18px rgba(46,196,182,0.55),
    0 0 32px rgba(10,20,60,0.7);
}

.frosted-box h2,
.frosted-box h3,
.frosted-box p,
.frosted-box span,
.frosted-box label {
  color: var(--text-main);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0,0,0,0.35);
}

.extra-space {
  height: 8px;
}

/* ============================================================
   HOW IT WORKS — CARDS
============================================================ */
.steps {
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
}

.how-card {
  border-radius: 18px;
  padding: 1rem;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.06), rgba(10,20,60,0.9));
  border: 1px solid rgba(120,150,255,0.4);
  box-shadow:
    0 0 14px rgba(10,20,60,0.7),
    0 0 22px rgba(10,20,60,0.45);
}

.how-card .intro {
  font-size: 0.95rem;
  line-height: 1.5;
}

.how-card h3 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.how-card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ============================================================
   FORM — accessible label/input pairs
============================================================ */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  text-shadow: 0 0 6px rgba(0,0,0,0.35);
}

.help-note {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page2-bg .left-col .btn-primary {
  display: inline-flex;
}

.page2-bg .left-col h2,
.page2-bg .right-col .form-card h2 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

@media (max-width: 768px) {
  .page2-bg .left-col h2,
  .page2-bg .right-col .form-card h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.75rem !important;
  }
}

.page2-bg .left-col p,
.page2-bg .left-col ul,
.page2-bg .left-col li {
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.6;
}

.page2-bg .left-col h3.intro {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.page2-bg .left-col ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.page2-bg .left-col li {
  margin-bottom: 0.45rem;
}

.page2-bg .left-col p {
  margin-bottom: 1rem;
}

.page2-bg .left-col p:last-of-type {
  margin-top: 1.5rem;
}

#successPopup .btn-primary {
  margin-top: 1rem;
}

input,
select,
textarea,
input[type="file"] {
  padding: 0.6rem;
  border: 1px solid rgba(120,140,220,0.6);
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #000;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

/* Buttons */
.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 12px 24px rgba(10,20,60,0.6);
  font-family: inherit;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b5df0, var(--primary-soft));
  box-shadow: 0 16px 30px rgba(10,20,60,0.8);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 4px;
}

/* ============================================================
   LOZENGE CONTAINERS
============================================================ */
.lozenge {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 2.5rem;
}

/* ============================================================
   FAQ GRID
============================================================ */
.faq-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.faq-box {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 22px rgba(120,150,255,0.7);
}

.faq-box h3 {
  margin-bottom: 0.75rem;
}

.faq-box p {
  line-height: 1.55;
}

/* ============================================================
   FEEDBACK
============================================================ */
.feedback-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.feedback-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.feedback-list {
  list-style: none;
  margin-top: 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feedback-item {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.06), rgba(10,20,60,0.95));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: 18px;
  padding: 1.2rem;
  border: 1px solid rgba(120,150,255,0.6);
  box-shadow:
    0 0 14px rgba(10,20,60,0.7),
    0 0 22px rgba(10,20,60,0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.25s ease;
  cursor: default;
}

.feedback-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(120,150,255,0.7);
}

.stars {
  color: #FFD700;
  font-size: 1.2rem;
  text-shadow: 0 0 6px rgba(255,215,0,0.6);
  margin-bottom: 0.4rem;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 3rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer p {
  color: #050816;
  padding-bottom: 0;
  font-weight: 600;
  flex: 0 1 auto;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-links a {
  color: #050816;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a svg {
  width: 2.2rem;
  height: 2.2rem;
  fill: currentColor;
  display: inline-block;
}

.footer-links a.social-link {
  padding: 0.3rem 0.4rem;
}

.footer-links a.social-link svg {
  width: 2.4rem;
  height: 2.4rem;
}

.footer-links a.facebook-link { color: #1877F2; }
.footer-links a.facebook-link:hover { color: #0A66C2; transform: scale(1.08); }

.footer-links a.linkedin-link { color: #0A66C2; }
.footer-links a.linkedin-link:hover { color: #054399; transform: scale(1.08); }

.footer-links a.paypal-link { color: #003087; }
.footer-links a.paypal-link:hover { color: #009cde; transform: scale(1.08); }

.footer-links a span.social-text {
  display: inline-block;
  font-size: 0.95rem;
}

.footer-links a:hover { color: #333333; }

@media (max-width: 768px) {
  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */
@media (max-width: 1200px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .feedback-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .faq-lozenge,
  .feedback-lozenge,
  .form-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .two-col { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .feedback-box { width: 100%; }
  .feedback-list { grid-template-columns: 1fr; }
  .hero-btn { font-size: 1.1rem; }

  .left-col,
  .right-col {
    display: block;
  }

  .form-card { flex: none; }
}

/* ============================================================
   SUCCESS POPUP
============================================================ */
.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.success-content {
  max-width: 360px;
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
}

.success-content button {
  margin-top: 1.5rem;
}

/* ============================================================
   GDPR LABEL — horizontal checkbox + text
============================================================ */
.gdpr-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gdpr-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.6rem;
  cursor: pointer;
}

.gdpr-inline input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.gdpr-inline span {
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   UTILITY
============================================================ */
.center { text-align: center; }
.excel-help-cta {
  text-align: center;
  margin: 40px 0 20px;
  margin-bottom: 10px; /* pulls it closer to the footer */
  margin-top: 20px;    /* small breathing room above */
  position: relative;
  z-index: 5;
}

.excel-help-cta a {
  display: inline-block;
  padding: 12px 28px;
  background: #0078ff;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.excel-help-cta a:hover {
  background: #005fcc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
