.about-sub{
  margin:0 auto 1.25rem;
  text-align:center;
  font-size:clamp(1rem, 2.2vw, 1.2rem);
  font-weight:500;
  color:#163a59;
  max-width:620px;
  line-height:1.55;
}

.about-sub strong{
  font-weight:700;
}
.about-me .section-header{
  margin-bottom: clamp(12px, 2vw, 24px);
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.about-sub.fancy {
    position: relative;
    padding: 0.75rem 0 1rem;
}

.about-sub.fancy::before,
.about-sub.fancy::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 80px;
    height: 2px;
    background: rgba(22,58,89,0.3); /* subtle navy line */
    transform: translateX(-50%);
}

.about-sub.fancy::before {
    top: 0;
}

.about-sub.fancy::after {
    bottom: 0;
}

.about-sub.soft {
    text-align: center;
    color: #163a59;
    font-size: clamp(1rem,2.2vw,1.2rem);
    font-weight: 500;
}

.about-sub.soft span {
    display: block;
    margin: 4px 0;
}

.about-fullwidth-block {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.about-fullwidth-block .since-then {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

/* Base layout for these CTAs */
.about-ctas.about-ctas--centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Stronger styling for About section CTAs only */
.about-ctas.about-ctas--centered .hero-cta {
    background: #ff6b4a;               /* warm coral */
    color: #ffffff;
    border-radius: 999px;
    border: none;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    min-width: 180px;
    text-align: center;
    font-size: 1rem;
}

.about-ctas.about-ctas--centered .hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.16);
    background: #f55c3a;               /* slightly deeper on hover */
}

/* Secondary: outline style that still pops on light blue */
.about-ctas.about-ctas--centered .hero-cta.hero-cta--secondary {
    background: #ffffff;
    color: #163a59;
    border: 2px solid #ff6b4a;
    box-shadow: none;
}

.about-ctas.about-ctas--centered .hero-cta.hero-cta--secondary:hover {
    background: #ffefe9;
}

/* Make them share a row on mobile too */
@media (max-width: 640px) {
    .about-ctas.about-ctas--centered .hero-cta {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        padding: 0.7rem 0.5rem;
        font-size: 0.95rem;
        white-space: normal;   /* let text wrap nicely */
        min-width: auto;       /* remove min-width constraint on mobile */
    }
}

:root {
    /* Squarespace Color Palette */
    --primary-color: #2C4C6D;       /* Dark Blue (Primary) */
    --secondary-color: #C2D7EA;     /* Light Blue (Secondary) */
    --accent-color: #EBBCB7;        /* Coral Pink */
    --hover-color: #5FA8A0;         /* Teal (Hover states) */
    --background-grey: #E8E7E6;     /* Grey */
    --white: #ffffff;
    --black: #000000;
    
    /* Brand colors for pillars */
    --kg-coral:   #E67B6E;  /* Income */
    --kg-teal:    #D5A657;  /* Legacy */
    --kg-gold:    #3B8F94;  /* Community */
    
    /* New color palette additions */
    --coral-blush: #FCEAE4;  /* Coral Blush */
    --soft-sage:   #E8F1EA;  /* Soft Sage */
    --muted-sage:  #96A39B;  /* Muted Sage - pillars section background */
    --cashmere:    #EADDC8;  /* Cashmere */
    --cloud-stone: #F3F4F5;  /* Cloud Stone - card backgrounds */
    
    /* Text Colors */
    --text-primary: #2C4C6D;        /* Dark Blue */
    --text-secondary: #666666;      /* Grey */
    --text-light: #C2D7EA;         /* Light Blue */
    
    /* Background Colors */
    --background-light: #C2D7EA;    /* Light Blue */
    --background-dark: #2C4C6D;     /* Dark Blue */
    
    /* Squarespace-style hero scaling variables */
    --hero-1: 4.8;   /* ≈ 4.8rem cap for line 1 */
    --hero-2: 4.8;   /* keep line 2 same feel as 1 */
    --hero-3: 2.8;   /* smaller cap for the sub line */
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    
    /* Squarespace-style fluid text scaling */
    --scale-text: clamp(2.2rem, 6vw + 0.6vh, 6rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.875rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 3rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 4rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--spacing-md);
    font-size: var(--text-base);
}

/* Utility Classes */
.container {
    max-width: 2560px; /* Exact Squarespace match */
    margin: 0 auto;
    padding: 0 4vw; /* Exact Squarespace match */
}

.accent {
    color: var(--accent-color);
}

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

/* Buttons - Enhanced with Squarespace Styles */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    word-break: break-word;
    vertical-align: middle;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Enhanced Primary Button */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--hover-color);
    border-color: var(--hover-color);
}

/* Enhanced Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--hover-color);
    color: var(--white);
    border-color: var(--hover-color);
    box-shadow: var(--shadow-md);
}

/* Enhanced Outline Button */
.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--hover-color);
    color: var(--white);
    border-color: var(--hover-color);
    box-shadow: var(--shadow-md);
}

/* Squarespace-style Button Variants */
.btn-light {
    background-color: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background-color: var(--background-light);
    border-color: var(--background-light);
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background-color: var(--background-dark);
    color: var(--white);
    border: 1px solid var(--background-dark);
    box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* Button Size Variants */
.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--text-sm);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--text-lg);
}

/* Button State Styles */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #EBBCB7; /* Coral Pink */
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-lg); /* Equal top/bottom padding */
    max-width: 1200px;
    margin: 0 auto;
    height: 70px; /* Reduced header height */
}

.header-logo .logo-image {
    height: 70px; /* Even bigger logo */
    width: auto;
    max-width: 200px;
}

.header-logo .logo-text-fallback {
    color: var(--primary-color);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.header-nav .login-link {
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.header-nav .login-link:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .header-logo .logo-image {
        height: 30px;
        max-width: 150px;
    }
    
    .header-logo .logo-text-fallback {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* Hero container */
.hero {
    padding: clamp(48px, 8vw, 120px) 16px clamp(32px, 4vw, 60px) 16px;  /* Reduced bottom padding, especially on mobile */
    padding-top: calc(70px + clamp(24px, 4vw, 60px));  /* Account for header + reduced top padding for visual balance */
    text-align: center;
    position: relative;
    background: url('../images/StLuciaPitons-Header.jpeg') center center/cover no-repeat, var(--background-light);
    background-size: cover;            /* let it cover naturally */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(420px, 60vh, 720px);  /* more breathing room */
}

/* Reduce bottom padding and height further on mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: calc(60px + clamp(32px, 5vw, 48px));  /* Account for smaller mobile header + reduced padding */
        padding-bottom: clamp(20px, 3vw, 32px);  /* Much smaller bottom padding on mobile */
        min-height: clamp(300px, 50vh, 420px);  /* Reduced min-height on mobile */
    }
}

/* Slightly stronger overlay for readability */
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(194, 215, 234, 0.78);
}

/* Overlay: tiny boost for contrast on wide viewports */
@media (min-width: 1024px){
  .hero-overlay{ background: rgba(194,215,234,0.82); }
}

/* Keep content above overlay */
.hero-content { 
    position: relative; 
    z-index: 2; 
    color: var(--primary-color); 
}

/* Heading block */
.hero-title{
  max-width: min(1000px, 90vw);
  margin: 0 auto clamp(20px, 3vw, 36px);
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
}

/* Base look for fit lines */
.fit-line{
  display: block;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.06;
  /* a sensible starting size before media rules kick in */
  font-size: 2rem;
}
.fit-line + .fit-line{ margin-top: 0.2em; }
.fit-line[data-scale="hero-3"]{
  font-weight: 700;
  letter-spacing: 0;
}

/* ===== Squarespace-style scaling ===== */

/* Small screens portrait - more conservative scaling */
@media screen and (max-width: 767px) and (orientation: portrait){
  .fit-line[data-scale="hero-1"]{ font-size: clamp(1.5rem, calc((var(--hero-1) - 1) * calc(.008 * min(100vh, 900px)) + 1rem), 4rem); }
  .fit-line[data-scale="hero-2"]{ font-size: clamp(1.5rem, calc((var(--hero-2) - 1) * calc(.008 * min(100vh, 900px)) + 1rem), 4rem); }
  .fit-line[data-scale="hero-3"]{ font-size: clamp(1rem, calc((var(--hero-3) - 1) * calc(.008 * min(100vh, 900px)) + 1rem), 2.5rem); }
}

/* Medium screens - better half-screen handling */
@media screen and (min-width: 768px) and (max-width: 1023px){
  .fit-line[data-scale="hero-1"]{ font-size: clamp(1.8rem, calc((var(--hero-1) - 1) * 0.8vw + 1rem), 5rem); }
  .fit-line[data-scale="hero-2"]{ font-size: clamp(1.8rem, calc((var(--hero-2) - 1) * 0.8vw + 1rem), 5rem); }
  .fit-line[data-scale="hero-3"]{ font-size: clamp(1.2rem, calc((var(--hero-3) - 1) * 0.8vw + 1rem), 3rem); }
}

/* Regular view and landscape up to a large cap */
@media screen and (min-width: 1024px), screen and (max-width: calc(2764.8px - 1px)) and (orientation: landscape){
  .fit-line[data-scale="hero-1"]{ font-size: calc((var(--hero-1) - 1) * 1.2vw + 1rem); }
  .fit-line[data-scale="hero-2"]{ font-size: calc((var(--hero-2) - 1) * 1.2vw + 1rem); }
  .fit-line[data-scale="hero-3"]{ font-size: calc((var(--hero-3) - 1) * 1.2vw + 1rem); }
}

/* Ultra wide: lock to the rem cap */
@media screen and (min-width: 2764.8px){
  .fit-line[data-scale="hero-1"]{ font-size: calc(var(--hero-1) * 1rem); }
  .fit-line[data-scale="hero-2"]{ font-size: calc(var(--hero-2) * 1rem); }
  .fit-line[data-scale="hero-3"]{ font-size: calc(var(--hero-3) * 1rem); }
}

/* Rendering polish for heavy type */
.fit-line{
  font-kerning: normal;
  font-feature-settings: "kern","liga","clig","calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display:block;
  white-space:nowrap;
  margin:0 auto;
  transform-origin:center center;
}

/* Optional: polished pill CTA like your mock */
.hero-cta {
    display: inline-block;
    margin-top: clamp(16px, 2vw, 24px);
    padding: 14px 28px;
    border-radius: 999px;
    background: #ffffff;
    color: #163a59;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(16px, 1.2vw, 20px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hero-cta:hover { 
    transform: translateY(-1px); 
}
.hero-cta.hero-cta--ghost{
    background:transparent;
    border:1px solid rgba(255,255,255,0.7);
    color:#ffffff;
    font-weight:600;
}
.hero-cta.hero-cta--ghost:hover{
    background:rgba(255,255,255,0.12);
    border-color:#ffffff;
}

/* Scrolling Banner */
.scrolling-banner {
    background: #C2D7EA; /* Light Blue 1 - explicit color */
    height: 5vh; /* Reduced to match smaller hero - responsive */
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    filter: blur(1%); /* 1% blur effect */
    width: 100%;
    max-width: 100vw;
}

.scrolling-banner::before,
.scrolling-banner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.scrolling-banner::before {
    left: 0;
    background: linear-gradient(to right, #C2D7EA, transparent);
}

.scrolling-banner::after {
    right: 0;
    background: linear-gradient(to left, #C2D7EA, transparent);
}

.banner-content {
    width: 100%;
}

.scrolling-text {
    display: inline-block;
    color: var(--primary-color); /* Dark blue text */
    font-size: 1.2rem; /* Smaller for compact banner */
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2rem; /* Reduced spacing for compact banner */
    animation: scroll-left 60s linear infinite;
    padding-left: 25%; /* Start 60% of the way through */
    white-space: nowrap;
    max-width: none;
    width: auto;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Dividers */
.section-divider {
    width: 100%;
    height: 15vh; /* Responsive section spacing */
    overflow: hidden;
    line-height: 0;
}

.section-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.section-divider.curved svg path {
    fill: var(--background-light);
}

.section-divider.curved.reverse svg path {
    fill: var(--primary-color);
}

/* CSS Mask Dividers - Squarespace Style */
.divider {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * var(--divider-height, 12vw)); /* overlap previous section */
    height: var(--divider-height, 12vw);
    pointer-events: none;
    /* This fills with the next section's background color */
    background: var(--bg, #fff);
}

/* Soft wave (Squarespace-like) */
.wave-soft{
  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'>\
  <path fill='white' d='M0,120L0,60 C200,80 400,40 600,60 C800,80 1000,40 1200,60 L1200,120Z'/>\
</svg>") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'>\
  <path fill='white' d='M0,120L0,60 C200,80 400,40 600,60 C800,80 1000,40 1200,60 L1200,120Z'/>\
</svg>") bottom / 100% 100% no-repeat;
}

/* ===================== About Me Section ===================== */
.about-me{
  background: var(--bg, #C2D7EA);
  position: relative;
  overflow: visible;
  padding: 0 0 clamp(32px, 5vw, 80px) 0;
}

/* Coral accent for About section headings */
.about-me .section-header .about-sub {
    color: #ff6b4a;   /* coral */
    font-weight: 600;
}

.about-me .since-then h3 {
    color: #ff6b4a;   /* coral */
    font-weight: 700;
}

.about-me .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-me .about-sub {
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.about-wrap{
  max-width: min(1400px, 95vw);  /* Match sorting-hat and pillars width */
  margin: 0 auto;
}

.about-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: stretch;  /* Make both columns same height */
}

@media (max-width: 980px){
  .about-grid{
    grid-template-columns: 1fr;
  }
  
  /* Mobile: give image a sensible fixed height */
  .about-photo{
    height: auto;  /* Reset height constraint on mobile */
    min-height: clamp(280px, 60vw, 400px);  /* Responsive height, works with any aspect ratio */
  }
  
  .about-photo img{
    height: auto;  /* Reset height on mobile */
    min-height: clamp(280px, 60vw, 400px);  /* Match container min-height */
    flex: none;  /* Remove flex behavior on mobile */
  }
}

.section-header{
  max-width: 780px;
  margin: 0 auto clamp(12px, 1.8vw, 32px);
  text-align: center;
}

.section-title{
  margin: 0 0 0.25em;
  color: var(--primary-color);
}

.section-subtitle{
  margin: 0;
  color: var(--primary-color);
}

.about-copy p{
  margin: 0 0 0.9em;
  color: var(--primary-color);
}

.card{
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.card h3{
  color: var(--primary-color);
  margin: 0 0 0.5em;
}

/* Override story-text JUST in the since-then card */
.about-fullwidth-block .since-then.card .story-text {
    padding: 0.5rem 0;        /* dramatically reduced padding */
    max-width: 95ch;          /* wider, comfortable measure */
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;            /* remove top margin */
    margin-bottom: 0.75rem;    /* reduce bottom margin from default ~24px to 12px */
}

/* Remove bottom margin from last paragraph in the card */
.about-fullwidth-block .since-then.card .story-text:last-child {
    margin-bottom: 0;
}

/* Make the card breathe horizontally */
.about-fullwidth-block .since-then.card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1rem 1.25rem !important;    /* much less padding than the default card - force override */
    border-radius: 18px;
}

/* Desktop: wider card with more horizontal padding */
@media (min-width: 641px) {
    .about-fullwidth-block .since-then.card {
        padding: 1.25rem 2.5rem 0.625rem 2.5rem !important;    /* more horizontal padding, half bottom padding on desktop */
    }

    .about-fullwidth-block .since-then.card .story-text {
        max-width: 95ch;             /* wider text measure on desktop */
    }
}

/* Mobile Optimisation (optional but recommended) */
@media (max-width: 640px) {
    .about-fullwidth-block .since-then.card {
        padding: 0.85rem 1rem;
    }

    .about-fullwidth-block .since-then.card .story-text {
        font-size: 0.95rem;
        line-height: 1.55;
        max-width: 80ch;     /* allow more width on mobile too */
    }
}

.about-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.about-photo{
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  background: #fff;
  height: 100%;  /* Fill the grid cell height */
  max-height: 100%;  /* Don't exceed grid cell */
  display: flex;
  flex-direction: column;
}

/* Image will now auto-size to match text column height via align-items: stretch */

.about-photo img{
  display: block;
  width: 100%;
  height: 100%;  /* Fill available height */
  max-height: 100%;  /* Don't exceed container */
  object-fit: cover;
  flex: 1 1 0;  /* Take up remaining space, allow shrink */
  min-height: 0;  /* Allow flex item to shrink below content size */
}

.about-photo figcaption{
  font-size: 0.85rem;
  color: var(--text-secondary, #27445F);
  padding: 10px 12px;
}

/* Mobile read more */
.story-mobile{
  display: none;
}

.story-full{
  display: block;
}

.read-more-btn{
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0;
  margin: 0.25rem 0 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px){
  .story-mobile{
    display: block;
  }
  .story-full{
    display: none;
  }
  .story-full.is-open{
    display: block;
    animation: fadeIn 0.25s ease;
  }
}

/* Mobile behaviour */
@media (max-width: 768px) {
  /* Show the short mobile intro + button */
  .story-mobile {
    display: block;
  }

  /* Hide the duplicate intro paragraph inside the full story on mobile,
     so when they expand it, they don't see "Back in 2016..." twice */
  #story-full .story-text--introfull {
    display: none;
  }
}

@keyframes fadeIn{
  from{opacity: 0}
  to{opacity: 1}
}

/* Hover image teasers */
a.tease{
  position: relative;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--primary-color);
}

.tease__card{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  width: min(40vw, 320px);
  aspect-ratio: 4/3;
  background: #eee center/cover no-repeat;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.tease__card::after{
  content: attr(data-caption);
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(0,0,0,0.7);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

@media (hover: hover) and (pointer: fine){
  a.tease:hover .tease__card, 
  a.tease:focus .tease__card{
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.tease--right .tease__card{
  left: auto;
  right: 0;
  transform: translateY(4px) scale(0.98);
}

.tease--right:hover .tease__card, 
.tease--right:focus .tease__card{
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce){
  .tease__card{
    transition: none;
  }
}

@media (hover: none){
  .tease__card{
    display: none !important;
  }
}

/* Income to Legacy Section Divider - Testing Wave Presets */
.divider--income-to-legacy {
    height: clamp(80px, 10vw, 140px);
    top: calc(-1 * clamp(80px, 10vw, 140px));
    width: 100%;
    left: 0;
    right: 0;
}

/* Wave Preset 1: Soft Wave (gentle, modern) */
.divider--income-to-legacy.wave-soft {
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'>\
  <path fill='white' d='M0,120L0,60 C200,80 400,40 600,60 C800,80 1000,40 1200,60 L1200,120Z'/>\
</svg>") bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'>\
  <path fill='white' d='M0,120L0,60 C200,80 400,40 600,60 C800,80 1000,40 1200,60 L1200,120Z'/>\
</svg>") bottom / 100% 100% no-repeat;
}

/* Wave Preset 2: Big Swell (deeper curve, more drama) */
.divider--income-to-legacy.wave-deep {
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'>\
  <path fill='white' d='M0,140L0,45 C220,95 420,0 600,45 C780,90 980,5 1200,45 L1200,140Z'/>\
</svg>") bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'>\
  <path fill='white' d='M0,140L0,45 C220,95 420,0 600,45 C780,90 980,5 1200,45 L1200,140Z'/>\
</svg>") bottom / 100% 100% no-repeat;
}

/* Wave Preset 3: Double Wave (stacked ripple) */
.divider--income-to-legacy.wave-double {
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='none'>\
  <path fill='white' d='M0,160L0,100 C160,130 320,70 480,100 C640,130 800,70 960,100 C1080,122 1140,116 1200,110 L1200,160Z'/>\
  <path fill='white' opacity='.6' d='M0,160L0,120 C160,145 320,95 480,120 C640,145 800,95 960,120 C1080,135 1140,132 1200,128 L1200,160Z'/>\
</svg>") bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='none'>\
  <path fill='white' d='M0,160L0,100 C160,130 320,70 480,100 C640,130 800,70 960,100 C1080,122 1140,116 1200,110 L1200,160Z'/>\
  <path fill='white' opacity='.6' d='M0,160L0,120 C160,145 320,95 480,120 C640,145 800,95 960,120 C1080,135 1140,132 1200,128 L1200,160Z'/>\
</svg>") bottom / 100% 100% no-repeat;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .divider--income-to-legacy {
        height: clamp(60px, 8vw, 120px);
        top: calc(-1 * clamp(60px, 8vw, 120px));
        
        /* More curves for mobile too */
        -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'>\
  <path fill='white' d='M0,120 L0,80 C200,100 400,60 600,80 C800,60 1000,100 1200,80 L1200,120 Z'/>\
</svg>") center / 100% 100% no-repeat;

        mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'>\
  <path fill='white' d='M0,120 L0,80 C200,100 400,60 600,80 C800,60 1000,100 1200,80 L1200,120 Z'/>\
</svg>") center / 100% 100% no-repeat;
    }
}

/* Sections */
.section {
    position: relative;
    background: var(--bg, #fff);
    padding: clamp(32px, 4vw, 80px) 0;  /* Reduced padding to shorten the website */
    overflow: visible; /* allow the divider to overlap upward */
}

/* Remove top padding, add bottom padding for about section */
#about.section {
    padding: 0 0 clamp(32px, 5vw, 80px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* -------- Layout: Sorting Hat section -------- */
.sorting-hat{
  background: var(--bg, #fff);
  position: relative;
  overflow: visible;
  padding: clamp(20px, 2.5vw, 45px) 0 clamp(28px, 3.5vw, 55px) 0;
}

/* Reduced top, increased bottom padding for smart-travel section */
#smart-travel.section {
  padding: clamp(20px, 2.5vw, 45px) 0 clamp(28px, 3.5vw, 55px) 0;
}

/* Centered header that spans both columns */
.sorting-hat__header{
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: min(1400px, 95vw);
  margin-left: auto;
  margin-right: auto;
}

.sorting-hat__header .section-title{
  color: #C2D7EA; /* Light blue for visibility */
}

.sorting-hat__intro{
  margin-top: clamp(24px, 3vw, 40px);
  max-width: min(1400px, 95vw);
  margin-left: auto;
  margin-right: auto;
}

.sorting-hat__intro p{
  margin: 0 0 1rem;
  color: #C2D7EA; /* Light blue for visibility */
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  text-align: center;
}

.sorting-hat__inner{
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 980px){
  .sorting-hat__inner{
    grid-template-columns: 1fr;
  }
}

/* Copy column */
.sorting-hat__content .section-title{
  margin: 0 0 0.6em;
  color: var(--white);
}

.sorting-hat__content p{
  margin: 0 0 0.9em;
  color: #C2D7EA; /* Light blue text for visibility */
}

/* Three doors */
.sorting-hat__doors{
  display: grid;
  gap: 14px;
  margin: 1rem 0 1.25rem;
}
.door{
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.door h3{
  margin: 0 0 0.25em;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
}
.door p{
  margin: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--text-secondary, #27445F);
}

.door h3{
  color: var(--primary-color);
}

/* Why row */
.sorting-hat__why{
  margin: 1rem 0 1.25rem;
  padding-left: 1rem;
}
.sorting-hat__why li{
  margin: 0.25rem 0;
  list-style: none;
  color: #C2D7EA; /* Light blue text for visibility */
}

/* CTAs */
.sorting-hat__ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.hero-cta--secondary{
  background: #ffffff;
  color: #163a59;
  border: 2px solid #ffffff;
}

/* About teaser */
.sorting-hat__about{
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.sorting-hat__about h4{
  color: var(--white);
}
.sorting-hat__about p{
  color: #C2D7EA; /* Light blue text for visibility */
}
.text-link{
  color: #C2D7EA;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover{ opacity: 0.8; }

/* Photo column */
.sorting-hat__figure{
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  background: #fff;
  align-self: start;
}
.sorting-hat__figure img{
  display: block;
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
}
.sorting-hat__figure figcaption{
  font-size: 0.85rem;
  color: var(--text-secondary, #27445F);
  padding: 10px 12px;
}

@media (min-width:900px){
  .sorting-hat__figure{
    align-self:center;
  }
}

.income-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pool-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.overlay-logo {
    height: 240px;
    width: auto;
    max-width: 600px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .income-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        min-height: auto;
    }
    
    .income-image {
        grid-column: 1;
        order: 1; /* Image comes first on mobile */
    }
    
    .income-text {
        grid-column: 1;
        order: 2; /* Text comes after image on mobile */
        text-align: center;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .overlay-logo {
        height: 180px;
        width: auto;
        max-width: 450px;
    }
    
    .income-header {
        font-size: var(--text-xl);
    }
    
    .income-subtitle {
        font-size: var(--text-base);
    }
    
    .income-benefits {
        text-align: center;
    }
}

.card-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-lg);
}

.income-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.benefits-list {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.benefits-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Three Pillars Overview Section */
.pillars-overview {
    background: var(--bg, #ffffff);
    position: relative;
    overflow: visible;
    padding: 0;
}

/* Pillars section – dark blue band with its own padding */
#pillars.section {
  background: var(--primary-color, #2C4C6D);
  color: #fdfdfd;
  position: relative;
  padding: clamp(20px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
}

/* Rounded top band that overlaps the section above slightly */
.pillars-divider-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(40px, 4vw, 40px);
  background: var(--primary-color, #2C4C6D);
  border-radius: 24px 24px 0 0;
  z-index: 0;
  transform: translateY(-50%);
}

#pillars .pillars__h {
  color:#ffffff;
}

#pillars .pillars__sub {
  color:#f3f3f3;
  max-width:620px;
  margin:0 auto 1.75rem;
}

.pillars__header {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 60px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.pillars__header .section-title {
    color: var(--primary-color);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.pillars__header .section-subtitle {
    font-size: var(--text-lg);
    color: var(--primary-color);
    max-width: 700px;
    margin: 0 auto;
}

.pillars {
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.pillars__h {
    text-align: center;
    margin: 0 0 clamp(0.25rem, 0.5vw, 0.5rem);
    color: var(--primary-color);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.pillars__sub {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* ====== Pillars grid (layout polish) ====== */
.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 900px) {
    .pillars__grid {
        grid-template-columns: 1fr;
    }
}

/* Card base */
.flip {
    perspective: 1200px;
    -webkit-perspective: 1200px;
    position: relative;
    width: 100%;
}

.flip__inner {
    position: relative;
    width: 100%;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    transition: transform .6s ease, box-shadow .2s ease;
    -webkit-transition: -webkit-transform .6s ease, box-shadow .2s ease;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    min-height: 420px; /* base height; JS will nudge this */
    overflow: hidden;
}

.flip:hover .flip__inner {
    box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
}

.flip__face {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: clamp(18px, 2.4vw, 28px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    border-radius: 20px;
}

/* Front content */
.flip__front {
    background: var(--card-front, #f9fbfd);
    text-align: center;
}

/* Back content */
.flip__back {
    background: var(--card-back, #ffffff);
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    overflow: auto;
}

/* Debug: Make sure the class is being applied - REMOVE THIS LATER */
.flip.is-open {
    outline: 3px solid red !important;
}

/* Flip state - transform the inner container to show the back */
.flip.is-open .flip__inner {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
    transform-style: preserve-3d !important;
    -webkit-transform-style: preserve-3d !important;
}

/* Small bits */
.flip__icon {
    font-size: 28px;
    line-height: 1;
}

.flip h3 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 24px);
    color: var(--primary-color);
}

.flip .kicker {
    font-weight: 600;
    color: var(--primary-700, #163a59);
    margin: .25rem 0;
}

.flip .blurb {
    color: var(--text-secondary, #5b6b7a);
}

.flip__backhead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.flip__backhead h4 {
    margin: 0;
    color: var(--primary-color);
}

.flip__back h5 {
    margin: 12px 0 4px;
    font-size: 1rem;
    color: var(--primary-color);
}

.flip__back p {
    color: var(--text-primary);
    line-height: 1.7;
}

.flip__cta {
    margin-top: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Lists */
ul.tick {
    padding-left: 1.1rem;
}

ul.tick li {
    list-style: "✔  ";
    margin: 4px 0;
    color: var(--text-primary);
}

ul.cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    padding-left: 0;
    list-style: none;
}

@media (max-width: 600px) {
    ul.cols {
        grid-template-columns: 1fr;
    }
}

ul.cols li {
    color: var(--text-primary);
}

/* Motion-safe fallback (don't rotate if user prefers reduced motion) */
@media (prefers-reduced-motion: reduce) {
    .flip__inner {
        transition: none;
    }
    .flip.is-open .flip__inner {
        transform: none;
    }
    .flip__back {
        position: relative;
        transform: none;
        display: none;
    }
    .flip.is-open .flip__back {
        display: block;
    }
    .flip__front {
        display: block;
    }
    .flip.is-open .flip__front {
        display: none;
    }
}

.pillar-detail .section-divider {
    margin-top: clamp(40px, 5vw, 60px);
}

@media (max-width: 768px) {
    .pillars__grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2.25rem);
        min-width: 0;
    }

}

/* Pricing Section */
.pricing {
    background: var(--primary-color);
    color: var(--white);
}

.pricing .section-title {
    color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    color: var(--text-primary);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
}

.card-header {
    margin-bottom: var(--spacing-xl);
}

.card-header h3 {
    font-size: var(--text-2xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.currency {
    font-size: var(--text-xl);
    font-weight: 600;
}

.amount {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent-color);
}

.price-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.features-list {
    list-style: none;
    margin: var(--spacing-xl) 0;
    text-align: left;
}

.features-list li {
    padding: var(--spacing-xs) 0;
    font-size: var(--text-sm);
}

/* Contact Section */
.contact {
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-text h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.contact-cta {
    font-size: var(--text-lg);
    color: var(--accent-color);
    font-weight: 600;
}

/* Enhanced Form Styles */
.form {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
    background-color: var(--white);
    color: var(--text-primary);
    box-sizing: border-box;
    line-height: 1.5;
    vertical-align: middle;
    word-break: break-word;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(247, 183, 49, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    white-space: pre-wrap;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #38a169;
    box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.2);
}

.error-message {
    color: #e53e3e;
    font-size: var(--text-sm);
    margin-top: var(--spacing-xs);
}

.success-message {
    color: #38a169;
    font-size: var(--text-sm);
    margin-top: var(--spacing-xs);
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text p {
    margin-bottom: var(--spacing-xs);
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-lg) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .income-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Pillars section padding removed - now handled by #pillars.section padding */
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .income-card,
    .community-card,
    .pricing-card {
        padding: var(--spacing-lg);
    }
}

/* Advanced Animation Classes */
.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-10 { opacity: 0.1; }
.reveal-30 { opacity: 0.3; }
.reveal-50 { opacity: 0.5; }
.reveal-70 { opacity: 0.7; }
.reveal-90 { opacity: 0.9; }

/* Advanced Scroll Animations */
[data-parallax] {
    transition: transform 0.1s ease-out;
}

[data-fade] {
    transition: opacity 0.3s ease-out;
}

[data-scale] {
    transition: transform 0.3s ease-out;
    transform-origin: center center;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* Squarespace Keyframe Animations */
@keyframes shiver {
    0% { transform: translate(0); }
    25% { transform: translate(11px); }
    75% { transform: translate(-11px); }
    to { transform: translate(0); }
}

@keyframes shimmy {
    0% { transform: translate(0); }
    50% { transform: translate(-33px); }
    to { transform: translate(0); }
}

@keyframes spin {
    0% { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes pulseBadgeOpacity {
    0% { opacity: 1; }
    85% { opacity: 0.6; }
    to { opacity: 1; }
}

@keyframes fadeout {
    0% { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadein {
    0% { opacity: 0; }
    to { opacity: 1; }
}

@keyframes riseandfadein {
    0% { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Squarespace Animation Classes */
.animate-shiver {
    animation-name: shiver;
    animation-duration: 0.2s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-iteration-count: 1;
}

.animate-shiver-fast {
    animation-name: shiver;
    animation-duration: 0.1s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-iteration-count: 2;
}

.animate-shimmy {
    animation-name: shimmy;
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-iteration-count: 1;
}

.animate-spin {
    animation-name: spin;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.animate-pulse-badge {
    animation-name: pulseBadgeOpacity;
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.animate-fadeout {
    animation-name: fadeout;
    animation-iteration-count: 1;
}

.animate-fadein {
    animation-name: fadein;
    animation-iteration-count: 1;
}

.animate-rise-and-fade {
    animation-name: riseandfadein;
    animation-iteration-count: 1;
}

/* Form Submission States */
.form.submitting {
    opacity: 0.8;
    pointer-events: none;
}

.form.submitting .btn {
    position: relative;
    color: transparent;
}

.form.submitting .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Advanced Notification Styles */
.advanced-notification {
    font-family: var(--font-primary);
}

.notification-content {
    position: relative;
}

.notification-close {
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1 !important;
}

/* Progressive Reveal Animations */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Animations */
.income-card,
.community-card,
.pricing-card {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.income-card.in-view,
.community-card.in-view,
.pricing-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Animation Delays */
.income-card:nth-child(1) { transition-delay: 0.1s; }
.income-card:nth-child(2) { transition-delay: 0.2s; }
.income-card:nth-child(3) { transition-delay: 0.3s; }

.community-card:nth-child(1) { transition-delay: 0.1s; }
.community-card:nth-child(2) { transition-delay: 0.2s; }

.pricing-card:nth-child(1) { transition-delay: 0.1s; }
.pricing-card:nth-child(2) { transition-delay: 0.2s; }

/* Squarespace Component Styles */

/* Shape Block Styles */
.shape-block {
    position: relative;
    overflow: visible;
}

.shape-block svg.shape {
    fill: var(--shape-block-background-color, var(--accent-color));
    stroke: var(--shape-block-stroke-color, transparent);
    display: block;
    position: absolute;
    overflow: visible;
}

.shape-block .shape-rectangle {
    background: var(--shape-block-background-color, var(--accent-color));
    border-color: var(--shape-block-stroke-color, transparent);
}

.shape-block .shape-block-container {
    position: relative;
    color: var(--shape-block-dropshadow-color, var(--text-primary));
}

.shape-block .shape-block-container.hidden-stretch-block {
    display: none;
}

/* Button Block Styles */
.button-block {
    flex: var(--sqs-block-content-flex, 0);
}

.button-block .stretched {
    flex: 1;
    height: 100%;
}

.button-block .stretched .btn {
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
    flex: 1;
}

.button-block .button-container--left {
    text-align: left;
}

.button-block .button-container--center {
    text-align: center;
}

.button-block .button-container--right {
    text-align: right;
}

/* Enhanced Button States */
.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Squarespace-style Button Variants */
.btn-sqs-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sqs-primary:hover {
    background: var(--dark-accent);
    border-color: var(--dark-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.btn-sqs-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sqs-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.btn-sqs-accent {
    background: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sqs-accent:hover {
    background: var(--dark-accent);
    border-color: var(--dark-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 183, 49, 0.3);
}

/* Interactive Button Effects */
.btn:hover {
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:active {
    animation: shiver 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Loading Overlay Styles (Squarespace pattern) */
.loading-overlay {
    z-index: 20001;
    background-color: transparent;
    border: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
}

.loading-spinner-sqs {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.15);
    border-radius: 1000px;
    width: 44px;
    height: 44px;
    display: block;
    animation: spin 1s linear infinite;
}

.loading-backdrop {
    z-index: 20000;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    width: 100vw;
    height: 100%;
    min-height: 100%;
    transition: background-color 0.1s ease-out;
    position: fixed;
    top: 0;
    left: 0;
}

.loading-backdrop.transparent {
    background-color: transparent;
}

.br-mobile{
    display:none;
}

@media (max-width:768px){
    .br-mobile{
        display:block;
        height:0;
        line-height:0;
    }
}

.desk-break{
    display:inline;
}

@media (min-width:768px){
    .desk-break{
        display:block;
    }
}

/* Story hover photo popups */
.story-text{
    position:relative;
    overflow:visible;
}

.hover-photo {
    position: relative;
    display: inline-block;
    cursor: pointer;

    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: #ff6b4a; /* coral */
}

.hover-photo:hover,
.hover-photo:focus {
    text-decoration-color: #e85a3d; /* slightly darker coral for hover */
}

.hover-photo__pop{
    position:absolute;
    left:50%;
    top:1.4em;
    transform:translateX(-50%) translateY(4px);
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 14px 30px rgba(0,0,0,0.18);
    padding:6px;
    width:220px;
    max-width:min(60vw,260px);
    opacity:0;
    pointer-events:none;
    z-index:40;
    transition:opacity 0.18s ease, transform 0.18s ease;
}

.hover-photo__pop img{
    display:block;
    width:100%;
    height:auto;
    border-radius:8px;
}

.hover-photo__caption{
    display:block;
    margin-top:4px;
    font-size:0.75rem;
    color:#555;
}

@media (hover:hover) and (pointer:fine){
    .hover-photo:hover .hover-photo__pop{
        opacity:1;
        pointer-events:auto;
        transform:translateX(-50%) translateY(8px);
    }
}

.hover-photo.is-open .hover-photo__pop{
    opacity:1;
    pointer-events:auto;
    transform:translateX(-50%) translateY(8px);
}

@media (max-width:768px){
    .hover-photo__pop{
        top:1.6em;
    }
    .sorting-hat__intro{
        max-width:38ch;
        margin:0 auto;
    }
    .sorting-hat__intro p{
        font-size:1rem;
        line-height:1.5;
        margin-bottom:1.1rem;
    }
}

.sorting-hat__chooser{
    font-size:clamp(1.4rem, 4vw, 2rem);
    font-weight:700;
    color:#ffffff;
    text-align:center;
    margin:28px 0 18px;
    letter-spacing:-0.5px;
    line-height:1.25;
}

.sorting-hat__chooser::before,
.sorting-hat__chooser::after {
    content: "";
    display: block;
    width:60%;
    max-width: 600px;
    height: 3px;
    background: #ffffff;
    margin: 10px auto;
    border-radius: 2px;
    opacity: 0.8;
}

.sorting-hat__chooser::after{
    margin-top:10px;
}

.sorting-hat__chooser::before{
    margin-bottom:10px;
}

.sorting-hat__ctas{
    display:flex;
    justify-content:center;
    gap:1rem;
    flex-wrap:wrap;
    margin-top:1.4rem;
}

.kg-cta-btn{
    display:inline-block;
    padding:0.9rem 1.6rem;
    font-size:clamp(1rem, 3.5vw, 1.15rem);
    font-weight:700;
    border-radius:8px;
    text-align:center;
    white-space:nowrap;
    text-decoration:none;
    transition:0.2s ease;
}

.kg-cta-btn.primary{
    background:#ff884d;
    color:#fff;
}

.kg-cta-btn.secondary{
    background:transparent;
    border:2px solid #ff884d;
    color:#ff884d;
}

@media (max-width:768px){
    .kg-cta-btn{
        font-size:1rem;
        padding:14px 22px;
        border-radius:10px;
    }
    .kg-cta-btn.primary,
    .kg-cta-btn.secondary{
        display:inline-block;
        min-width:48%;
        text-align:center;
    }
    .sorting-hat__ctas{
        gap:0.75rem;
    }
}

/* ====== Pillars grid (layout polish) ====== */
.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 900px) {
    .pillars__grid {
        grid-template-columns: 1fr;
    }
}

/* Pillars cards layout – flex so each card can have its own height */
#pillars .cards{
  display:flex;
  flex-wrap:wrap;
  gap:clamp(16px,2vw,24px);
  align-items:flex-start;
  position: relative;
  z-index: 1;
}

/* Cards: 1–3 columns depending on width */
#pillars .card{
  flex:1 1 min(320px, 100%);
}

/* On big screens, keep them roughly 3 across */
@media (min-width: 960px){
  #pillars .card{
    flex:1 1 calc(33.333% - 16px);
  }
}

/* Per–card accent colours */
#pillars .card[data-card="income"]   { --accent:#ff7a5c; }  /* coral */
#pillars .card[data-card="legacy"]   { --accent:#f5b544; }  /* warm gold */
#pillars .card[data-card="community"]{ --accent:#4fb6b0; }  /* teal */

/* Core flip wrapper */
#pillars .card {
  perspective:1200px;
  cursor:pointer;
}

#pillars .card-inner {
  position:relative;
  transform-style:preserve-3d;
  transition:transform .6s ease;
  border-radius:18px;
  background:#fdf5ec;
  box-shadow:0 12px 26px rgba(0,0,0,.14);
  border-top:4px solid var(--accent, #163a59);
  min-height:260px;     /* baseline - prevents collapse before JS runs */
  height:auto;          /* let content decide */
  width:100%;           /* ensure full width in flex container */
}

/* Flip state */
#pillars .card.is-flipped .card-inner {
  transform:rotateY(180deg);
}

/* Faces */
#pillars .card-face {
  position:absolute;
  inset:0;
  padding:20px 22px 18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  box-sizing:border-box;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

/* Slight tint difference so flip feels intentional */
#pillars .card-front {
  background:#f7fafc;
}

#pillars .card-back {
  background:#fffaf6;
  transform:rotateY(180deg);
}

/* Typography inside cards */
/* Pillars card headings – slightly larger & stronger */
#pillars .card-title {
  margin:0;
  font-size: clamp(1.2rem, 1.35rem, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  color:#163a59;
}

/* Optional: unify body text on cards */
#pillars .card-text {
  margin:0;
  font-size: 0.96rem;
  line-height: 1.4;
  color:#324255;
}

/* Reduce line gaps in pillars section - override inline styles */
#pillars .card-text ul {
  gap: .125rem !important; /* Reduced from .25rem/.35rem */
  margin-left: 0.9rem !important; /* Reduced from 1rem */
}

/* Reduce indent for nested bullet lists */
#pillars .card-text ul ul {
  margin-left: 0.5rem !important; /* Reduced from 1rem */
}

/* Center titles + paragraphs on BOTH faces (front + back) */
#pillars .card-face.card-front .card-title,
#pillars .card-face.card-front p.card-text,
#pillars .card-face.card-back .card-title,
#pillars .card-face.card-back p.card-text {
    text-align: center;
}

/* Nice readable width for paragraphs on both faces */
#pillars .card-face.card-front p.card-text,
#pillars .card-face.card-back p.card-text {
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}

/* Center CTA + Back buttons on card backs */
#pillars .card-face.card-back > div:last-of-type {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

/* Optional: remove auto margins if you like, the flex rule does the centering */
#pillars .card-face.card-back .card-toggle,
#pillars .card-face.card-back .btn-like {
    margin-left: 0;
    margin-right: 0;
}

/* Center button on front face */
#pillars .card-face.card-front .card-toggle {
    align-self: center;
}

/* CTA buttons inside cards */
#pillars .card-toggle {
  align-self:flex-start;
  border:0;
  border-radius:999px;
  padding:9px 16px;
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s;
}

/* Primary "open / deep dive" buttons pick up card accent */
#pillars .card-open,
#pillars .card-back .btn-like {
  background:var(--accent, #163a59);
  color:#ffffff;
  box-shadow:0 4px 10px rgba(0,0,0,.18);
}

#pillars .card-open:hover,
#pillars .card-back .btn-like:hover {
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,.22);
}

/* Back link */
#pillars .card-close {
  background:transparent;
  color:#fdfdfd;
  padding:6px 0;
  text-decoration:underline;
  text-underline-offset:2px;
  box-shadow:none;
}

/* Make back-link darker on the back face for contrast */
#pillars .card-back .card-close {
  color:#163a59;
}

/* Small-screen tweaks */
@media (max-width: 768px) {
  #pillars .card-inner {
    min-height:0;
  }
  /* Reduce padding on pillar flip cards for mobile */
  #pillars .card-face {
    padding: clamp(10px, 1.6vw, 18px);
  }
  
  /* Slightly tighter paragraph spacing */
  #pillars .card-text {
    line-height: 1.45;
  }
  
  /* Slightly smaller list spacing */
  #pillars .card-text li {
    margin-bottom: .2rem;
  }
}

/* Lists */
ul.tick {
    padding-left: 1.1rem;
}

ul.tick li {
    list-style: "✔  ";
    margin: 4px 0;
    color: var(--text-primary);
}

ul.cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    padding-left: 0;
    list-style: none;
}

@media (max-width: 600px) {
    ul.cols {
        grid-template-columns: 1fr;
    }
}

ul.cols li {
    color: var(--text-primary);
}


.pillar-detail .section-divider {
    margin-top: clamp(40px, 5vw, 60px);
}

@media (max-width: 768px) {
    .pillars__grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2.25rem);
        min-width: 0;
    }
}

/* FAQ SECTION */
#faq.faq-section{
  padding:60px 0;
}
#faq .faq-heading{
  text-align:center;
  margin-bottom:10px;
  font-size:2rem;
  font-weight:700;
}
#faq .faq-intro{
  text-align:center;
  margin-bottom:40px;
  color:#555;
}
#faq .faq-item{
  border-bottom:1px solid #ddd;
  padding:16px 0;
}
#faq .faq-question{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:transparent;
  border:none;
  padding:0;
  font-size:1.1rem;
  font-weight:600;
  cursor:pointer;
  text-align:left;
  list-style:none;
}
#faq .faq-question::-webkit-details-marker{ display:none; }
#faq .faq-question::after{
  content:'';
  width:12px;
  height:12px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform .3s ease;
}
#faq details[open] .faq-question::after{
  transform:rotate(-135deg);
}
#faq .faq-answer{
  overflow:hidden;
  padding:0;
  max-height:0;
  transition:max-height .35s ease, padding .35s ease;
}
#faq details[open] .faq-answer{
  padding-top:12px;
  max-height:500px;
}

/* Paths Section */
#paths.section{
  text-align:center;
  padding:clamp(4rem, 6vw, 6rem) 0 4rem;
  background:#f7faff;  /* Light grey background */
  position:relative;
  overflow:visible;
}

/* ===== Paths / "What sounds most like you" ===== */

#paths {
    background: #f5f8fc;
    text-align: center;
    position: relative;
    overflow: visible;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.pillars-divider-bottom {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: clamp(40px, 4vw, 40px);
    background: var(--primary-color, #2C4C6D);
    border-radius: 0 0 24px 24px;
    transform: translateY(-50%);
    z-index: 0;
}

/* Heading + intro */

#paths .paths__heading {
    font-size: var(--text-4xl);
    line-height: 1.15;
    margin-bottom: 0.7rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #paths .paths__heading {
        font-size: clamp(1.3rem, 5vw, 1.9rem);
    }
}

#paths .paths__sub {
    max-width: min(1400px, 95vw);
    margin: clamp(24px, 3vw, 40px) auto 2rem;
    text-align: center;
}

#paths .paths__sub p {
    margin: 0 0 1rem;
    color: #324255;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    text-align: center;
}

#paths .paths__sub p:last-child {
    margin-bottom: 0;
}

/* Button layout */

.paths-choices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-inline: auto;
}

/* Pills */

.path-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    border-radius: 999px;
    padding: 12px 20px;
    border: 2px solid #e5edf6;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

/* All pills on same row */
.paths-choices .path-pill {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 280px;
}

/* Variants */

.path-pill--primary {
    background: #f17c67;
    border-color: #f17c67;
    color: #ffffff;
}

.path-pill--outline {
    background: #ffffff;
    color: #163a59;
}

/* Text inside pills */

.path-pill__label {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.path-pill__sub {
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* Hover (desktop only) */

@media (hover: hover) {
    .path-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
    }

    .path-pill--outline:hover {
        border-color: #c9d6ee;
        background: #f9fbff;
    }
}

/* Small reassurance line under buttons */

.paths-note {
    font-size: .9rem;
    color: var(--text-secondary, #5b6b7a);
    max-width: 32rem;
    margin: 1.5rem auto 0;
}

/* Mobile tweaks */

@media (max-width: 768px) {
    #paths .paths__sub {
        font-size: 0.9rem;
        margin-bottom: 1.15rem;
    }

    #paths .paths__sub p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .paths-choices {
        flex-direction: row;
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .paths-choices .path-pill {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .path-pill {
        padding: 7px 12px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }

    .path-pill__label {
        font-size: 0.86rem;
    }

    .path-pill__sub {
        font-size: 0.78rem;
    }
}

/* Social Proof */
#social-proof{
  padding:clamp(48px,8vw,80px) 0;
  background:#ffffff;
  text-align:center;
}
#social-proof .social-heading{
  font-size:clamp(1.8rem,2.4vw,2.3rem);
  margin-bottom:.75rem;
  font-weight:700;
}
#social-proof .social-sub{
  margin:0 auto 2.5rem;
  max-width:600px;
  color:#4b5c6b;
}
#social-proof .social-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:clamp(16px,2vw,24px);
  margin-bottom:2.5rem;
}
#social-proof .social-card{
  background:#f7faff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 12px 26px rgba(0,0,0,.06);
}
#social-proof .social-card img{
  max-width:100%;
  height:auto;
  display:block;
  border-radius:12px;
}
#social-proof .supplier-bar{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:24px;
  align-items:center;
  opacity:.9;
}
#social-proof .supplier-bar img{
  max-height:36px;
  width:auto;
  object-fit:contain;
}

/* Business Details Section */
#business-details{
  padding:4rem 0;
}
.biz-header{
  text-align:center;
  max-width:680px;
  margin:0 auto 2.5rem;
}
.biz-tagline{
  font-weight:700;
  margin-top:.2rem;
  margin-bottom:1rem;
}
.biz-intro{
  opacity:.9;
  line-height:1.6;
}
.biz-grid{
  display:grid;
  gap:2rem;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  margin-bottom:2.5rem;
}
.biz-block{
  background:#f7faff;
  padding:1.75rem;
  border-radius:16px;
  box-shadow:0 12px 26px rgba(0,0,0,.06);
}
.biz-block h3{
  margin-top:0;
  margin-bottom:1rem;
  font-size:1.2rem;
}
.biz-cta{
  display:flex;
  justify-content:center;
  gap:1rem;
  flex-wrap:wrap;
}

/* CTA buttons inside the smart-travel section */
#smart-travel .sorting-hat__ctas{
    display:flex;
    justify-content:center;
    gap:12px;
    margin:24px auto 12px;
    flex-wrap:nowrap;
}

#smart-travel .sorting-hat__ctas .kg-cta-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    border-radius:999px;
    font-weight:600;
    font-size:0.95rem;
    text-decoration:none;
    border:none;
    cursor:pointer;
    white-space:nowrap;
    transition:all 0.2s ease;
}

#smart-travel .sorting-hat__ctas .kg-cta-btn.primary{
    background-color:#ffffff;
    color:#163a59;
    box-shadow:0 6px 18px rgba(0,0,0,0.15);
}

#smart-travel .sorting-hat__ctas .kg-cta-btn.primary:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,0.2);
}

#smart-travel .sorting-hat__ctas .kg-cta-btn.secondary{
    background-color:transparent;
    border:2px solid #ffffff;
    color:#ffffff;
}

#smart-travel .sorting-hat__ctas .kg-cta-btn.secondary:hover{
    background-color:rgba(255,255,255,0.12);
}

@media (max-width:480px){
    #smart-travel .sorting-hat__ctas .kg-cta-btn{
        padding:8px 10px;
        font-size:0.8rem;
    }
    #smart-travel .sorting-hat__ctas{
        gap:8px;
    }
}

/* Performance Optimizations */
.section,
.income-card,
.community-card,
.pricing-card {
    will-change: transform, opacity;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-parallax] {
        transform: none !important;
    }
    
    [data-fade] {
        opacity: 1 !important;
    }
    
    [data-scale] {
        transform: scale(1) !important;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Mobile-specific spacing tweaks for better visual separation */
@media (max-width: 768px) {
  #pillars.section {
    padding-top: clamp(20px, 8vw, 48px);
  }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}
