@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =======================
Global Styles for Revivflow
======================= */

/* ===== Variables ===== */
:root {
   --font-primary: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
                  "Segoe UI Emoji";
    /* Bold, modern blues with warm highlight */
  --color-primary: #1F63C6;        /* buttons, links, key accents */
  --color-primary-dark: #17479A;   /* hover/pressed */
  --color-secondary: #0F2D7A;      /* headings / secondary accents */
  --color-body: #0F172A;           /* body text */
  --color-text-light: #475569;     /* muted text */
  --color-bg: #F7FAFF;             /* page background */
  --color-bg-light: #F1F6FF;       /* light sections */
  --color-bg-accent: #ECF5FF;      /* hero/soft panels */
  --color-border: #D7E4FF;         /* subtle borders */
  --shadow-light: 0 2px 12px rgba(16, 24, 40, 0.03);
  --shadow-card: 0 2px 16px rgba(15, 48, 80, 0.09);
  --shadow-card-hover: 0 6px 20px rgba(15, 48, 80, 0.15);
}

/* ===== Base ===== */
body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-body);
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-center {
  text-align: center;
}

/* Make body take full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content grows and pushes footer down */
main {
  flex: 1;
}

/* ===== Buttons ===== */
.btn,
.cta,
nav a.btn-get-started,
nav a.btn-login,
.hero .hero-cta {
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
  border: none;
  display: inline-block;
  padding: 10px 22px;
  transition: background 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

/* ===== FIX: Hero list alignment =====
   Ensure the bullet list lines up with hero paragraphs & subheadings. */
.hero ul {
  /* match the same readable column as .hero p/.hero h3 */
  max-width: 720px !important;
  margin: 0 auto 28px !important;
  /* put bullets inside so text start aligns with paragraphs */
  list-style-position: inside !important;
  padding-left: 0 !important;
  text-align: left !important;
  line-height: 1.6;
}
.hero p,
.hero h3 {
  max-width: 720px !important;   /* match the UL */
  text-align: left !important;    /* consistent alignment */
  margin-left: auto !important;   /* keep centered column */
  margin-right: auto !important;
}

.hero ul {
  list-style-position: inside !important;
  padding-left: 0 !important;
  font-size: 1.25em;
}

/* ===== ================ ===================== */
    /* HOW IT WORKS section */
/* ===== ================ ===================== */

    .how-it-works {
      padding: 60px 20px;
      background: linear-gradient(180deg, rgba(247,250,255,0.8), rgba(255,255,255,1));
      text-align: center;
    }
    .how-it-works h2 {
      margin: 0 0 12px;
      font-size: 32px;
      line-height: 1.2;
    }
    .how-it-works p.lead {
      margin: 0 auto 28px;
      max-width: 820px;
      color: #444;
      font-size: 18px;
    }
    .diagram {
      max-width: 1000px;
      margin: 0 auto;
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
      background: #fff;
      padding: 16px;
    }
    .diagram svg {
      width: 100%;
      height: auto;
      display: block;
    }



/* ===== Cards ===== */
.card-container {
  display: flex;
  flex-direction: column;   /* stack cards vertically */
  align-items: center;      /* center them horizontally */
  gap: 20px;                /* space between cards */
  padding: 20px;
}

.card {
  width: 100%;              /* full width of container */
  max-width: 1000px;         /* keep it nicely readable */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
}

.card-body {
  flex: 1;                   /* ensures body fills full height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* evenly distribute content */
}

.card,
.product-card,
.feature,
.pricing-card,
.resource-card {
  background: linear-gradient(135deg, #f3c7d1, #f8d4a0, #fbe8a6); /* soft gradient */
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.card:hover,
.product-card:hover,
.feature:hover,
.pricing-card:hover,
.resource-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.card-title,
.product-title {
  font-size: 1.5em;
  color: var(--color-primary);
  margin: 0 0 0.15em 0;
}

.card-text,
.product-description,
.pricing-card p,
.resource-description {
  font-size: 1em;
  color: var(--color-text-light);
  line-height: 1.5;
}

.card-link,
.resource-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-link:hover,
.resource-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.products-list,
.pricing-cards,
.resources-list,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

@media (max-width: 900px) {
  .products-list,
  .pricing-cards,
  .resources-list,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

.product-subtitle,
.pricing-card h2 {
  font-size: 1.1em;
  color: #3a5577;
  font-weight: 600;
  margin-bottom: 0.9em;
}

/* ===== Header & Navigation ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px 20px;
  background: #fff;
  box-shadow: var(--shadow-light);
  font-size: 1.5em;

}

.logo {
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--color-primary);
}

nav a {
  margin-left: 28px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.07em;
  transition: color 0.2s;
}

nav a:hover {
  color: #364f80;
}

.menu-toggle {
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  padding: 70px 0 60px;
  background: var(--color-bg-accent);
  text-align: center;
}

.hero h1 {
  font-size: 2.7em;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 20px;
}

.hero h3 {
  font-size: 1.7em;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 20px;
}

.hero p {
  color: #344b68;
  font-size: 1.32em;
  margin: 0 auto 28px;
  max-width: 600px;
}


/* ===== Trusted Logos ===== */
.trusted {
  margin: 70px 0 40px;
  text-align: center;
}

.trusted span {
  color: #245dac;
  font-weight: 500;
  font-size: 1.08em;
  margin-bottom: 8px;
  display: block;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 52px;
}

.trusted-logos img {
  height: 37px;
  opacity: 0.82;
  filter: grayscale(70%);
}


/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  color: #42609a;
  font-size: 1.25em;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.footer-heading {
  font-size: 1.2em;
  margin-bottom: 1.2em;
  color: #134B8A;
  font-weight: 600;
  text-align: center;
}

.footer-links-horizontal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.footer-links-horizontal li {
  display: inline-block;
}

.footer-links-horizontal a {
  color: #1663b0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.2s ease;
}

.footer-links-horizontal a:hover {
  color: #12497c;
  text-decoration: underline;
}

/* Footer always at the bottom */
#footer-placeholder {
  margin-top: auto;
}


/* ===== ================ ===================== */
/* ===== Get Started Page Styles ===== */
/* ===== ================ ===================== */

main.contact-main {
  max-width: 650px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15,48,80,0.07);
  border-radius: 10px;
  font-family: var(--font-primary);
  color: var(--color-body);
}

section.contact-intro h1 {
  font-size: 2.25em;
  color: var(--color-secondary);
  margin: 1.1em 0 0.3em 0;
  font-weight: 700;
  text-align: center;
}

section.contact-intro p {
  font-size: 1.12em;
  color: var(--color-text-light);
  margin: 0 0 2em 0;
  text-align: center;
  line-height: 1.5;
}

.contact-form label {
  font-weight: 600;
  margin-top: 1.3em;
  margin-bottom: 0.4em;
  display: block;
  color: var(--color-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7em;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  font-family: var(--font-primary);
  margin-bottom: 1em;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.contact-form button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.85em 2.5em;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 1em;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.contact-form button:hover {
  background-color: var(--color-primary-dark);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .products-list,
  .pricing-cards,
  .resources-list,
  .card-container,
  section.features {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    padding: 18px 8px;
  }
  .hero h1 {
    font-size: 2em;
  }
  section.features {
    padding: 0 7px;
  }
  .testimonials {
    padding: 17px 7px;
  }
  .footer-links,
  .footer-links-centered {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  main.contact-main,
  #newsletter {
    margin: 20px 15px 30px;
  }
  #newsletter input[type='email'],
  #newsletter button {
    width: 100%;
  }
}

/* ===== ================ ===================== */
/* Privacy Page Content Centering */
/* ===== ================ ===================== */

.privacy-content {
  max-width: 1000px;         /* Limits the max width for readability */
  margin: 20px auto;        /* Centers horizontally and adds vertical spacing */
  padding: 0 20px;          /* Responsive side padding */
  color: var(--color-body); /* Use your body text color variable */
  font-family: var(--font-primary);
  line-height: 1.6;
}

/* ===== ================ ===================== */
/* 404 page centering */
/* ===== ================ ===================== */

main.error-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}
.error-card h1 {
  font-size: 72px;
  margin: 0 0 16px;
}
.error-card p {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.error-card a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.error-card a:hover {
  background: var(--color-primary-dark);
}


/* ===== Always-visible Footer; content scrolls underneath ===== */
.site-footer {
  position: fixed;     /* always on screen */
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;        /* under header (header is 1000) */
  /* keep your existing background, colors, padding from earlier rules */
  /* no padding-bottom added, so content can slide behind the footer */
}

/* Optional: subtle top shadow while not at absolute page bottom */
.site-footer.is-stuck {
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}


/* ===== How it Works Diagram Text ===== */
.diagram text.title {
  font-size: 20px;  /* was 18px */
}

.diagram text.caption {
  font-size: 16px;  /* was 14px */
}


/* ===== Always-visible header; content scrolls underneath ===== */
.site-header {
  position: fixed;   /* <— always on screen */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg);  /* keep your light blue */
  width: 100%;
  transition: box-shadow 180ms ease;
}

/* Shadow appears after first scroll (toggled by JS) */
.site-header.is-stuck {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Safety: if any old JS/CSS tries to hide it, nullify that */
.site-header.is-hidden {
  transform: none !important;
}



/* ===== Key features Section ===== */
.feature-value {
  padding: 70px 20px;
  background: var(--color-bg-light);
  text-align: center;
}

.feature-value h2 {
  font-size: 2em;
  color: var(--color-secondary);
  margin-bottom: 14px;
}

.feature-value .lead {
  max-width: 850px;
  margin: 0 auto 48px;
  font-size: 1.2em;
  color: var(--color-text-light);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}


.feature-card,
.value-card { /* apply the same upgraded styling to both card types */
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--card-bg, #fff) 100%);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 40, 80, 0.08);
  padding: 28px 24px;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  overflow: hidden; /* keep inner accents clipped to radius */
}

/* Gradient 1px border without heavy outlines */
.feature-card::before,
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #f3c7d1, #f8d4a0, #fbe8a6);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Subtle top accent bar */
.feature-card::after,
.value-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: var(--card-accent, linear-gradient(90deg, #f3c7d1, #f8d4a0, #fbe8a6));
  opacity: 0.85;
}

.feature-card:hover,
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 40, 80, 0.12);
}

/* Keyboard focus support */
.feature-card:focus-within,
.value-card:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.22), 0 16px 36px rgba(20, 40, 80, 0.12);
}

/* Reduced motion = no lift animation */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .value-card {
    transition: none;
  }
  .feature-card:hover,
  .value-card:hover {
    transform: none;
  }
}


.feature-card h3,
.value-card h3 {
  margin: 4px 0 10px;
  font-size: 1.22em;
  color: var(--color-primary);
  position: relative;
}

/* Underline accent under the title */
.feature-card h3::after,
.value-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f3c7d1, #f8d4a0, #fbe8a6);
  opacity: 0.9;
}


.feature-card p,
.value-card p,
.feature-card li,
.value-card li {
  font-size: 1.02em;
  color: var(--color-text-light);
  line-height: 1.65;
}


/* ----- Six tone presets (reusable) ----- */
.tone-cobalt  { --card-accent:#1F63C6; --card-bg:#F1F6FF; --card-border:#D7E4FF; --card-chip:#E7F0FF; }
.tone-teal    { --card-accent:#0FA3B1; --card-bg:#E6FBFD; --card-border:#BDEFF3; --card-chip:#E9FBFD; }
.tone-violet  { --card-accent:#6C5CE7; --card-bg:#F1EEFF; --card-border:#DBD3FF; --card-chip:#F3F0FF; }
.tone-amber   { --card-accent:#F59E0B; --card-bg:#FFF6E5; --card-border:#FFE4B8; --card-chip:#FFF4D6; }
.tone-mint    { --card-accent:#10B981; --card-bg:#E9FFF7; --card-border:#C1F7E5; --card-chip:#EDFFF9; }
.tone-indigo  { --card-accent:#0B2447; --card-bg:#EAF2FF; --card-border:#CBDDF6; --card-chip:#F0F6FF; }

/* Optional icon badge you can place at the top of a card */
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(240, 150, 30, 0.3);
  background: radial-gradient(80% 80% at 30% 20%, #fff, #ffe7c0),
              linear-gradient(135deg, #f3c7d1, #f8d4a0, #fbe8a6);
  color: #7a3d00; /* good contrast for emoji/SVG */
  font-size: 22px;
}


/* ===== Merchants Value Section ===== */
.merchant-value {
  padding: 70px 20px;
  background: var(--color-bg-light);
  text-align: center;
}

.merchant-value h2 {
  font-size: 2em;
  color: var(--color-secondary);
  margin-bottom: 14px;
}

.merchant-value .lead {
  max-width: 850px;
  margin: 0 auto 48px;
  font-size: 1.2em;
  color: var(--color-text-light);
  line-height: 1.5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/*============================== */
/* ===== Solutions hero ===== */
/*============================== */
.diagram-card {
  max-width: 1100px;
  margin: 18px auto 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  overflow: hidden;
}
.diagram-card.fancy { background: linear-gradient(180deg,#fff 0%,#f7fbff 100%); }
.diagram-card svg { width: 100%; height: auto; display: block; }


.solutions-hero {
  background: linear-gradient(135deg, #ffffff, var(--color-bg-accent));
  padding: 56px 20px 42px;
  text-align: center;
}
.solutions-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}
.solutions-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--color-secondary);
}
.solutions-hero .lead {
  color: var(--color-text-light);
  margin: 0 auto 16px;
  max-width: 820px;
}
.solutions-badges {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.solutions-badges span {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-body);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-light);
  font-weight: 500;
}

/* ===== How it Works polish ===== */
.how-it-works {
  padding: 60px 20px 70px;
  text-align: center;
  background: var(--color-bg-light);
}
.how-it-works .lead {
  max-width: 920px;
  margin: 8px auto 18px;
  color: var(--color-text-light);
}
.diagram-card {
  max-width: 1100px;
  margin: 18px auto 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  overflow: hidden;
}
.diagram-card svg {
  width: 100%;
  height: auto;
  display: block;
}
.how-it-works .caption {
  margin-top: 12px;
  color: var(--color-text-light);
}

/* 3-step strip under diagram (reuses .value-card + tones) */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 24px auto 0;
  text-align: left;
}



/* ===== ================ ===================== */
/* ===== About page visuals ===== */
/* ===== ================ ===================== */

/* Warm gradient banner like your product cards, but lighter */
.about-hero {
  background: linear-gradient(to bottom, #f9fbfd 0%, #eaf3fa 50%, #d6ecf9 100%);
  padding: 70px 20px 40px;
  text-align: center;
}

.about-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.about-hero h1 {
  margin: 0 0 10px;
  font-size: 2.4em;
  color: var(--color-secondary);
}

.about-hero .lead {
  margin: 0 auto;
  max-width: 820px;
  color: var(--color-text-light);
  font-size: 1.18em;
  line-height: 1.55;
}

/* 3 small highlight cards in hero */
.about-stats {
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 980px;
}

/* Section spacing / alignment */
.about-section {
  padding: 56px 20px 26px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.about-section h2 {
  margin: 0 0 10px;
  color: var(--color-secondary);
}

.about-section p {
  color: var(--color-text-light);
  font-size: 1.02em;
  line-height: 1.65;
  max-width: 820px;
}

/* Team layout reusing your upgraded card visuals */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 16px;
}

.teammate {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: #eef5fa; color: #134B8A; font-weight: 700;
  display: grid; place-items: center;
  font-size: 20px; border: 2px solid #d9e6f7;
}

.person h3 { margin: 0; font-size: 1.05rem; color: #123a6a; }
.person .role { margin: 2px 0 0; color: #5b6f89; font-size: .95rem; }

/* CTA styling to end the page on a strong note */
.about-cta {
  text-align: center;
}

.about-cta .sub {
  margin: 6px auto 18px;
  max-width: 760px;
}

/* ===== ================ ===================== */
/* ===== Get Started (Demo / Contact) – Visual Styling ===== */
/* ===== ================ ===================== */

/* Hero banner (warm gradient, same family as cards) */
.getstarted-hero {
  background: linear-gradient(to bottom, #f9fbfd 0%, #eaf3fa 50%, #d6ecf9 100%);
  text-align: center;
  padding: 68px 20px 44px;
}
.getstarted-hero h1 {
  margin: 0 0 10px;
  font-size: 2.3rem;
  color: var(--color-secondary);
}
.getstarted-hero .lead {
  margin: 0 auto;
  max-width: 820px;
  color: var(--color-text-light);
  font-size: 1.15rem;
  line-height: 1.55;
}

/* Main content grid: benefits (left) + form card (right) */
.getstarted-main {
  /* top/bottom padding is set inline via CSS vars by JS measuring header/footer */
}
.gs-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 10px;
}
.gs-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
@media (max-width: 960px) {
  .gs-grid { grid-template-columns: 1fr; }
}

/* Left column value points (re-use upgraded value-card) */
.gs-points { display: grid; gap: 16px; }
.gs-point.value-card { padding: 20px 18px; }
.gs-point h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.gs-point p { margin: 0; }

/* Right column: premium form card (inherits value-card visuals) */
.form-card.value-card { padding: 26px 22px; }
.form-card h2 {
  margin: 2px 0 10px;
  font-size: 1.4rem;
  color: var(--color-secondary);
}
.form-sub {
  margin: 0 0 14px;
  color: var(--color-text-light);
  font-size: 0.98rem;
}

/* Form controls – build on your global contact-form rules */
.form-card .contact-form label {
  font-weight: 600;
  margin-top: 1.1em;
  margin-bottom: 0.4em;
  display: block;
  color: var(--color-secondary);
}
.form-card .contact-form input,
.form-card .contact-form textarea,
.form-card .contact-form select {
  width: 100%;
  padding: 0.8em 0.85em;
  border-radius: 8px;
  border: 1px solid #d9e6f7;
  background: #fff;
  font-size: 1rem;
  font-family: var(--font-primary);
  margin-bottom: 0.85em;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-card .contact-form input:focus,
.form-card .contact-form textarea:focus,
.form-card .contact-form select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 99, 176, 0.12);
}
.form-card .contact-form small.helper {
  display: block;
  color: var(--color-text-light);
  margin-top: -6px;
  margin-bottom: 8px;
  font-size: 0.86rem;
}
.form-card .contact-form button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  padding: 0.9em 1.2em;
  border-radius: 10px;
  font-size: 1.05rem;
}

/* Success state */
.form-success { display: none; text-align: center; padding: 20px 6px; }
.form-success h3 { margin: 0 0 8px; color: var(--color-secondary); }
.form-success p  { margin: 0 0 12px; color: var(--color-text-light); }

/* Secondary button (e.g., calendar link) */
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid #d9e6f7;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  transition: box-shadow .18s, transform .18s;
}
.btn-secondary:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* ===== ================ ===================== */
/* ===== Legal / Policy Pages ===== */
/* ===== ================ ===================== */
.legal-main {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: calc(var(--footer-height) + 28px);
}

.legal-page {
  /* soft white → light blue gradient (matches the rest of the site) */
  background: linear-gradient(to bottom, #f9fbfd 0%, #eaf3fa 50%, #d6ecf9 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 1196px;
  width: min(1196px, 95vw);
  margin: 56px auto 48px;
  padding: 24px 28px;
  box-sizing: border-box;
}

.legal-header {
  margin-bottom: 12px;
  text-align: left;
}
.legal-header h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  color: var(--color-secondary);
  margin: 0 0 6px;
}
.legal-meta {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* Table of contents */
.legal-toc {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 16px 0 24px;
}
.legal-toc__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.legal-toc ol { margin: 0; padding-left: 18px; }
.legal-toc a { color: var(--color-primary); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* Typography */
.legal-page h2 {
  margin-top: 28px;
  font-size: 24px;
  color: var(--color-secondary);
}
.legal-page h3 {
  margin-top: 18px;
  font-size: 20px;
  color: var(--color-primary);
}
.legal-page p,
.legal-page ul {
  font-size: 1.05rem;
  margin: 10px 0 16px;
  color: var(--color-body);
  line-height: 1.65;
}
.legal-page ul { padding-left: 20px; }

/* Inline code / definitions (rare, but helpful) */
.legal-def { font-weight: 600; color: var(--color-secondary); }

/* Contact block */
.legal-contact b { color: var(--color-secondary); }

/* Small note */
.note { color: var(--color-text-light); font-size: 0.95rem; }


/* ===== ================ ===================== */
/* ===== Resources (short-form learning hub) ===== */
/* ===== ================ ===================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 per row */
  gap: 24px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr; /* stack on smaller screens */
  }
}

.resource-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resource-article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.resource-article h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.resource-article p {
  margin: 8px 0;
  color: var(--color-text-light);
  line-height: 1.6;
}
.resource-article .readtime {
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-top: 12px;
  font-weight: 600;
}

.resource-article strong {
  color: var(--color-secondary);
  font-weight: 600;
}
.resource-article em {
  color: var(--color-primary);
}

/* ===== Resource article hero ===== */
.article-hero {
  height: 220px;
  width: 400px;
  border-radius: 12px;
  overflow: hidden;   /* ensures corners always clip */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #ecf5ff 100%); /* fallback bg */
}

.article-hero img,
.article-hero png {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;   /* ensures no white gaps; fills hero */
  display: block;
}

/* If you ever want full-bleed cover (art can be cropped): add .cover to the figure */
.article-hero.cover img,
.article-hero.cover png {
  object-fit: cover;
}

/* Slight polish for the meta/date and title spacing */
.article-content .article-meta { margin-top: 2px; }
.resource-article h2 { margin-top: 4px; }