/* Hide scrollbars on nested scrollers; main page scrollbar styled below */
*:not(html):not(body) {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

*:not(html):not(body)::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Remove blue outline from input fields and buttons */
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
}

/* Remove blue tap highlight on mobile (iOS/Android) */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Desktop: always reserve the main page scrollbar gutter */
@media (min-width: 768px) {
  html:not(:has(body.tv-playing)) {
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }
}

/* Main page scrollbar styling */
html {
  scrollbar-width: thin !important; /* Firefox */
  -ms-overflow-style: scrollbar !important; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: block !important; /* Chrome, Safari, Opera */
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: #100f0f;
}

html::-webkit-scrollbar-thumb {
  background: #8b8b8b;
  border-radius: 0;
}

html::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

body {
  scrollbar-width: thin !important; /* Firefox */
  -ms-overflow-style: scrollbar !important; /* IE and Edge */
}

body::-webkit-scrollbar {
  display: block !important; /* Chrome, Safari, Opera */
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #100f0f;
}

body::-webkit-scrollbar-thumb {
  background: #8b8b8b;
  border-radius: 0;
}

body::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* TV fullscreen player: hide page scrollbar on desktop */
@media (min-width: 768px) {
  html:has(body.tv-playing),
  body.tv-playing {
    overflow: hidden !important;
    scrollbar-gutter: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html:has(body.tv-playing)::-webkit-scrollbar,
  body.tv-playing::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }
}

.how-it-works {
    color: #000000 !important;
    background: #ffffff !important;
}

.how-it-works .section-header h2 {
    color: #000000 !important;
}

.how-it-works .section-header p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #000000 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.how-it-works .approach-step {
    background: #000000 !important;
    color: #ffffff !important;
    border: none;
}

/* Home page color swap: each section gets the color of the section below it */
.home-page section#services {
    background: #ffffff !important;
    color: #000000 !important;
}
.home-page section#services .section-header h2,
.home-page section#services .section-header p {
    color: #000000 !important;
}
.home-page section#services .service-label {
    color: #000000 !important;
}
.home-page section#services .service-card p {
    color: #000000 !important;
}

.home-page section#about.how-it-works {
    background: transparent !important;
    color: #ffffff !important;
}
.home-page section#about .section-header h2,
.home-page section#about .section-header p {
    color: #ffffff !important;
}
.home-page section#about .approach-step {
    background: #ffffff !important;
    color: var(--hrs-orange) !important;
}
.home-page section#about .approach-card h3,
.home-page section#about .approach-card p {
    color: #ffffff !important;
}

.home-page section#contact {
    background: #ffffff !important;
    color: #000000 !important;
}
.home-page section#contact .section-header h2 {
    color: #000000 !important;
}
.home-page section#contact .section-header p {
    color: #000000 !important;
}
.home-page section#contact .contact-form,
.home-page section#contact .contact-info {
    color: #000000 !important;
}
.home-page section#contact .contact-form .form-group label {
    color: #000000 !important;
}
.home-page section#contact .info-item h4 {
    color: #000000 !important;
}
.home-page section#contact .info-item p {
    color: #000000 !important;
}
.home-page section#contact .contact-form .form-group input::placeholder,
.home-page section#contact .contact-form .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}
.home-page section#contact .form-group label span {
    color: #000000 !important;
}
.home-page section#contact .form-group > div {
    color: #000000 !important;
}

.home-page section#investors.how-it-works {
    background: transparent !important;
    color: #ffffff !important;
}
.home-page section#investors .section-header h2,
.home-page section#investors .section-header p {
    color: #ffffff !important;
}
.home-page section#investors .approach-card h3,
.home-page section#investors .approach-card p {
    color: #ffffff !important;
}
.home-page section#investors .approach-step {
    background: #ffffff !important;
    color: var(--hrs-orange) !important;
}

.home-page .footer {
    background: #ffffff !important;
    color: #000000 !important;
}
.home-page .footer .footer-section h4,
.home-page .footer .footer-section p,
.home-page .footer .footer-section a,
.home-page .footer .footer-bottom p {
    color: #000000 !important;
}

/* Footer on investors, about, press, privacy, portal: red section style with white logo */
.page-investors .footer,
.page-about .footer,
.page-press .footer,
.page-privacy .footer,
.page-products .footer,
.page-total-recap .footer,
.page-portal .footer {
    background: transparent !important;
    color: #ffffff !important;
}
.page-investors .footer .footer-section h4,
.page-investors .footer .footer-section p,
.page-investors .footer .footer-section a,
.page-investors .footer .footer-bottom p,
.page-about .footer .footer-section h4,
.page-about .footer .footer-section p,
.page-about .footer .footer-section a,
.page-about .footer .footer-bottom p,
.page-press .footer .footer-section h4,
.page-press .footer .footer-section p,
.page-press .footer .footer-section a,
.page-press .footer .footer-bottom p,
.page-privacy .footer .footer-section h4,
.page-privacy .footer .footer-section p,
.page-privacy .footer .footer-section a,
.page-privacy .footer .footer-bottom p,
.page-products .footer .footer-section h4,
.page-products .footer .footer-section p,
.page-products .footer .footer-section a,
.page-products .footer .footer-bottom p,
.page-total-recap .footer .footer-section h4,
.page-total-recap .footer .footer-section p,
.page-total-recap .footer .footer-section a,
.page-total-recap .footer .footer-bottom p,
.page-portal .footer .footer-section h4,
.page-portal .footer .footer-section p,
.page-portal .footer .footer-section a,
.page-portal .footer .footer-bottom p {
    color: #ffffff !important;
}
.page-investors .footer .footer-section a:hover,
.page-about .footer .footer-section a:hover,
.page-press .footer .footer-section a:hover,
.page-privacy .footer .footer-section a:hover,
.page-products .footer .footer-section a:hover,
.page-total-recap .footer .footer-section a:hover,
.page-portal .footer .footer-section a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

section#investors {
    padding-top: 6rem !important;
}

section#investors .section-header,
section#services .section-header {
    margin-top: -7px;
}

section#investors .section-header {
    margin-bottom: 1.5rem !important;
}

section#investors .approach-grid {
    padding-top: 0 !important;
}


/* Utility and component classes shared across pages */

/* Screen reader only - for SEO without visual display */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.panel {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0;
  padding: 16px;
}

.panel-wide { max-width: 720px; }
.panel-lg { padding: 20px; }
.elevated { box-shadow: none; }

.form-narrow {
  max-width: 520px;
  width: 100%;
}

/* Constrain non-panel headings/rows to panel width and center on page */
.content-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Provide inner left/right padding to align with card content */
.content-narrow.pad {
  padding-left: 32px; /* match .contact-form padding (2rem) */
  padding-right: 32px;
}

.mb-12 {
  margin-bottom: 0.75rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Auth layout and tabs */
.auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
}
/* Ensure OAuth buttons (Google/Apple) share same width */
#googleSignInBtn, #appleSignInBtn { min-width: 260px; }
@media (max-width: 480px) { #googleSignInBtn, #appleSignInBtn { width: 100%; min-width: 0; } }

.tabs-wrap { display:flex; justify-content:center; margin-bottom: 0; padding-bottom: 12px; }
.tabs {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 4px;
  min-height: 44px; /* 4px padding + 36px tab height ensures stable block height */
  border: 1px solid rgba(255, 255, 255, 0.15);
  gap: 4px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px; /* fix height to avoid font-load reflow */
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: none;
  padding: 0 20px;
  border-radius: 0;
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}

.tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: none;
}

.hidden { display: none; }

/* Ensure auth panels render at full intended width immediately */
#panel-signin,
#panel-create {
  width: 100%;
}

/* Card section titles inside panels */
.card-title {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem; /* extra space between title and fields */
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables removed - using hardcoded values throughout */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.146) 0%, rgba(0, 0, 0, 0.427) 100%);
    min-height: 100svh; /* use small viewport to avoid iOS URL bar issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

html {
    background: linear-gradient(135deg, var(--hrs-orange) 0%, #ff4b11 100%);
    min-height: 100%;
}

/* Global link styles */
a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}
a:visited {
    color: rgba(255, 255, 255, 0.9) !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    width: 100%;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    padding-bottom: 50px !important;
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    z-index: 1000;
    height: 64px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Solid navbar variant for non-landing pages */
.navbar--solid {
    background: #0f0f10;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: #ffffff;
}

.nav-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.nav-link:focus,
.nav-link:active,
.nav-link:visited {
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: calc(100% + 8px);
}

.nav-hamburger {
    display: none;
}

.nav-mobile-overlay {
    display: none !important;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    line-height: 1;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}


.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}


.cta-button.primary {
    background: var(--hrs-navbar-gradient);
    color: #ffffff !important;
    box-shadow: none;
    font-weight: 700;
}


.cta-button.secondary {
    background: var(--hrs-navbar-gradient);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.0625rem;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    padding-top: 64px;
    padding-bottom: 0;
    background: transparent;
    overflow: visible;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Background Video */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
    /* Video optimization for all devices */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(0,0,0,0) 20%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0.7) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.087) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    background-size: 100% 100%, 5px 5px, 100% 100%;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    width: 100%;
}

/* Vertical divider only on homepage */
/* Remove hero divider overlays */
.home-page .hero::before,
.home-page .hero::after {
    content: none;
}

.hero-text {
    padding: 8rem 6rem 0 6rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}


.hero-visual {
    padding: 8rem 6rem 0 6rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    gap: 0;
}

.hero-visual img {
    vertical-align: bottom;
    line-height: 0;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-coaster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-coaster-top {
    display: block;
}

.hero-coaster-bottom {
    display: block;
}


.hero-title {
    font-size: 6.5rem;
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.05em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-title span:first-child {
    display: block;
    font-weight: 200;
}

.hero-title span:last-child {
    display: block;
    font-weight: 200;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 3rem 0;
}

.motto-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 3rem 0;
    background: transparent;
    border: none;
}

.motto-dash {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.motto-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 3.5rem 0;
    line-height: 1.8;
    letter-spacing: 0.01em;
    font-weight: 400;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.hero-buttons .cta-button {
    width: 200px;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Traffic light demo styles removed - no longer needed */

.wipe-overlay {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 242px;
    height: 242px;
    border-radius: 0;
    pointer-events: none;
    background: transparent;
    z-index: 1;
}


/* Sections */
section {
    padding: 6rem 0;
}

/* Homepage-specific: consistent padding for all sections */
main > section:not(.hero) {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
@media (max-width: 768px) { 
    main > section:not(.hero) {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    footer,
    .footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}
@media (max-width: 480px) { 
    main > section:not(.hero) {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    #services,
    .features,
    section#services {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    #about,
    body:not([class*="page-"]) .how-it-works,
    section#about {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    #about .section-header {
        padding-top: 1rem !important;
        padding-bottom: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    #contact,
    .contact,
    section#contact {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .section-header {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    #contact .section-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 2rem !important;
    }

    /* Normalize card spacing in approach (How we work) */
    .approach-card,
    .approach-card:not(:first-child),
    .approach-card:not(:last-child),
    .approach-card:first-child,
    .approach-card:last-child {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    footer,
    .footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    /* Final override to ensure all sections have identical spacing */
    section#services,
    section#about,
    section#contact,
    section.features,
    body:not([class*="page-"]) section.how-it-works,
    section.contact {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Alternating solid backgrounds for sections (excluding hero) */
main > section:not(.hero) {
    background-color: transparent;
    position: relative;
    border-bottom: none;
}

main > section:not(.hero) .container {
    max-width: 1400px;
    padding-left: 3rem;
    padding-right: 3rem;
}

.section-header {
    text-align: left;
    margin-bottom: 5rem;
    max-width: 600px;
    padding-left: 0;
    padding-top: 0;
    margin-top: 0;
}

/* Center section header on account page */
body:not(.home-page) .section-header {
    text-align: center;
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

/* Internal pages (not homepage): title spacing below fixed navbar */
body[class*="page-"] main > section:not(.hero) {
    padding-top: calc(64px + 4.5rem) !important;
    padding-bottom: 4rem !important;
}

body[class*="page-"] .section-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 3rem !important;
}

@media (max-width: 768px) {
    body[class*="page-"] main > section:not(.hero) {
        padding-top: calc(64px + 3rem) !important;
        padding-bottom: 3rem !important;
    }

    body[class*="page-"] .section-header {
        margin-bottom: 2rem !important;
    }
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Legal and company pages spacing */
.legal {
    background: #000000;
    min-height: 100vh;
}

.legal .content-block-1 {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.legal .content-block-1 h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
}

.legal .content-block-1 h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.4;
}

.legal .content-block-1 h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.legal .content-block-1 p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.legal .content-block-1 li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.legal .content-block-1 ul {
    margin: 1.5rem 0 2rem 1.5rem;
    list-style: none;
    padding-left: 0;
}

.legal .content-block-1 ul li {
    position: relative;
    padding-left: 1.75rem;
}

.legal .content-block-1 ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

.legal .content-block-1 ol {
    margin: 1.5rem 0 2rem 1.5rem;
    padding-left: 0.5rem;
}

.legal .content-block-1 ol li {
    padding-left: 0.5rem;
}

.legal .content-block-1 a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}


.legal .content-block-1 strong {
    color: #ffffff;
    font-weight: 600;
}

/* Features Section */
.features {
    background: transparent;
    margin-top: 0; /* align desktop/tablet spacing with mobile */
    position: relative;
    z-index: 5;
    border-radius: 0;
    border-bottom: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    row-gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: stretch;
}

.feature-card {
    background: transparent;
    border: none;
    padding: 3rem 2.5rem;
  border-radius: 5px;
    box-shadow: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}


.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: grayscale(0%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}


.feature-image {
    width: calc(100% + 6rem);
    height: 280px;
    object-fit: cover;
    margin-top: -3rem;
    margin-bottom: 1.5rem;
    margin-left: -3rem;
    margin-right: -3rem;
    display: block;
}

.feature-slideshow {
    height: 280px;
    margin-top: -3rem;
    margin-bottom: 1.5rem;
    margin-left: -3rem;
    margin-right: -3rem;
    width: calc(100% + 6rem);
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.feature-slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.feature-slideshow-image.active {
    opacity: 1;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    opacity: 0.8;
}


.slideshow-arrow-prev {
    left: 0.5rem;
}

.slideshow-arrow-next {
    right: 0.5rem;
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    transition: color 0.4s ease-in-out;
    letter-spacing: -0.01em;
}


.feature-card p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
    flex-grow: 1;
}

.feature-card .cta-button {
    margin-top: auto;
}

/* How It Works Section */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0 auto 1rem;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.process-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* Technology Section */
.technology {
    background: transparent;
    color: #ffffff;
}

.technology .section-header h2,
.technology .section-header p {
    color: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.25rem;
}

.tech-category {
    background: rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
    border-radius: 0;
    border: none;
    box-shadow: none;
  border-radius: 5px;
}


.tech-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 1.25rem;
}

.tech-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

/* Apps Section */
.apps {
    background: transparent;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.app-card {
    background: #0f0f10;
    border: none;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: all 0.2s ease-in-out;
  border-radius: 5px;
}


.app-icon {
    margin-bottom: 1.5rem;
}

.app-icon img {
    height: 80px;
    width: auto;
    max-width: 120px;
    border-radius: 0;
    object-fit: contain;
}

.app-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.app-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    max-width: 100%;
    margin: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.contact-info {
    padding-top: 20px;
    padding-left: 35px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
}

.contact-form {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
}

.contact-form .form-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 769px) {
  .contact-form .form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
    row-gap: 1.5rem;
  }
  .contact-form .form-group-full {
    grid-column: 1 / -1;
  }
  .contact-form button[type="submit"] {
    margin-top: 1rem;
  }
}

/* Homepage contact form specific background overrides */
#homeContactForm {
  background: transparent;
}

#homeContactForm input[type="text"],
#homeContactForm input[type="email"],
#homeContactForm select,
#homeContactForm textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Ensure inputs within cards/panels use the same background */
.panel .form-group input,
.panel .form-group select,
.panel .form-group textarea {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.feature-card input,
.feature-card select,
.feature-card textarea {
    background: rgba(255, 255, 255, 0.02) !important;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    border-color: rgba(0, 0, 0, 0.4);
    background: #ffffff !important;
    box-shadow: none;
}

/* Ensure checkboxes/radios are not stretched like text inputs */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    vertical-align: middle;
    accent-color: rgba(255, 255, 255, 0.8);
}

/* Accept.Blue hosted field containers */
.card-field {
    background: rgba(255, 255, 255, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


.info-link {
    text-decoration-thickness: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.info-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}


.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease-in-out;
}


.social-link img {
    width: 20px;
    height: 20px;
}

/* Footer */
footer,
.footer {
    background: #ffffff;
    border-top: none;
    box-shadow: none;
    color: #000000;
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-section p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #000000 !important;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}


.footer-bottom {
    padding-top: 2rem;
    /* removed footer top border */
    text-align: center;
}

.footer-bottom p {
    color: #000000;
}

/* Cookie banner - styled like the top navbar */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 0;
    z-index: 10000;
    padding: 20px;
    box-shadow: none;
}

.cookie-banner__inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.cookie-banner .container {
    padding-bottom: 0 !important;
}

.cookie-banner .cookie-text {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1 1 auto; /* keep text and button on one line on desktop */
    margin: 0;
}

.cookie-banner .cookie-actions { display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner .cookie-actions .cta-button { 
    white-space: nowrap; 
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem;
  }
  .cookie-banner__inner { 
    gap: 1rem; 
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .cookie-banner .cookie-text { 
    font-size: 0.875rem;
    line-height: 1.5;
    order: 1;
    width: 100%;
    margin: 0;
    color: #000000 !important;
  }
  .cookie-banner .cookie-text .info-link {
    color: #000000 !important;
    border-bottom-color: rgba(0, 0, 0, 0.25);
  }
  .cookie-banner .cookie-actions { 
    order: 2;
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
}

/* Billing history "Load More" button should be invisible container for spinner only */
#loadMoreBillingBtn { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* Account Management buttons ordering/layout */
#accountManagementSection { justify-content: flex-start; }
#exportAccountBtn { order: 1; margin-left: 0 !important; }
#deactivateBtn { order: 2; }
#scheduleDeleteBtn { order: 3; }
#cancelDeleteBtn { order: 4; }

/* Mobile: stack and left-align */
@media (max-width: 600px) {
  #accountManagementSection { flex-direction: column; align-items: flex-start; }
  /* Keep Update Email + Cancel on one line on mobile */
  #updateEmailForm > div:last-child { flex-wrap: nowrap !important; justify-content: flex-start !important; }
  #updateEmailForm .cta-button { flex: 0 0 auto; }
  /* Shrink long section titles to fit one line */
  #securityPrivacy { font-size: 1.1rem !important; }
  /* Apply same single-line size to 2FA heading */
  #securitySection h4 { font-size: 1.1rem !important; }
  #accountManagementHeader { font-size: 1.1rem !important; }
  #signinsSection h4 { font-size: 1.05rem !important; }
  #sessionsSection h4 { font-size: 1.05rem !important; }
}

/* Recovery Codes buttons responsive layout */
@media (max-width: 600px) {
  #recoveryCodesSection > div:last-child { flex-wrap: wrap; }
  #recoveryCodesSection .cta-button { flex: 1 1 30%; min-width: 0; }
  /* Recovery Codes new-codes modal buttons */
  #recoveryCodesModal .panel > div:last-child { flex-wrap: wrap; }
  #recoveryCodesModal .cta-button { flex: 1 1 30%; min-width: 0; }
}

/* Responsive Design */
/* Tablet and Small Desktop (768px and below) */
@media (max-width: 768px) {
    /* Container spacing */
    .container {
        padding: 0 2rem;
        max-width: 100%;
    }
    
    body:not([class*="page-"]) main > section:not(.hero) {
        padding-top: 3rem !important;
        padding-bottom: 0px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    main > section:not(.hero) .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #services,
    .features,
    #about,
    body:not([class*="page-"]) .how-it-works,
    #contact,
    .contact,
    section#services,
    section#about,
    section#contact {
        padding-top: 3rem !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    #contact .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    #contact .section-header {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    /* Navigation - hamburger menu on mobile */
    .nav-menu,
    .nav-cta {
        display: none;
    }
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #ffffff;
        flex-shrink: 0;
    }
    .nav-hamburger:focus {
        outline: none;
    }
    .nav-hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 22px;
    }
    .nav-hamburger-icon span {
        display: block;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .navbar.is-mobile-open .nav-hamburger-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .navbar.is-mobile-open .nav-hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    .navbar.is-mobile-open .nav-hamburger-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-mobile-overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: 999;
        overflow-y: auto;
        padding: 2rem;
    }
    .nav-mobile-overlay.is-open {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 0.5rem;
    }
    .nav-mobile-menu-items {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: fit-content;
    }
    .nav-mobile-overlay .nav-link {
        display: block;
        color: #000000 !important;
        font-size: 1.25rem;
        padding: 1rem;
        width: 100%;
        min-width: 0;
        text-align: center;
        position: relative;
        box-sizing: border-box;
    }
    .nav-mobile-overlay .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        height: 1px;
        bottom: 0;
        transform: none;
        background: rgba(0, 0, 0, 0.25);
    }
    .nav-mobile-overlay .cta-button,
    .nav-mobile-overlay .cta-button.primary {
        margin-top: 1rem;
        flex-shrink: 0;
        width: auto;
        align-self: center;
        white-space: nowrap;
        background: var(--hrs-orange) !important;
        color: #ffffff !important;
    }
    
    .navbar {
        height: 56px;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .nav-container {
        padding: 0 40px;
    }
    
    /* Hero section */
    .hero {
        padding-top: 64px;
        padding-bottom: 72px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0;
    align-items: center;
    }
    
    .home-page .hero::before,
    .home-page .hero::after {
        display: none;
    }
    
    .hero-text {
        padding: 4rem 2rem;
        text-align: center;
        align-items: center;
        border-right: none;
    }
    
    .hero-visual {
        padding: 3rem 0;
        gap: 1.5rem;
    }
    
    .hero-coaster {
        display: none;
    }
    
    .hero-image {
        width: calc(100% + 4rem);
        margin-left: -2rem;
        margin-right: -2rem;
        height: 300px;
        object-fit: cover;
    }
    
    .hero-visual > div {
        height: 300px !important;
    }
    
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }
    
    .hero-tagline {
        font-size: 0.8125rem;
        margin-bottom: 2rem;
        margin-left: -5px;
    }
    
    .motto-badge {
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem !important;
        max-width: 100%;
    }
    
    .section-header {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .privacy-date-sep {
        display: none;
    }
    .privacy-last-updated {
        display: block;
    }
    
    .services-grid,
    .approach-grid,
    .contact-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 0 !important;
        row-gap: 0 !important;
        padding-top: 50px;
    }
    
    .approach-card {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
        gap: 0.5rem;
    }
    
    .approach-card:not(:first-child),
    .approach-card:not(:last-child),
    .approach-card:first-child,
    .approach-card:last-child {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .approach-step {
        margin-left: 0;
        margin-bottom: 0.5rem !important;
    }
    
    .approach-card p {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1.3 !important;
    }
    
    .approach-card h3 {
        margin-bottom: 0.25rem !important;
    }
    
    /* About section tablet */
    #about .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        border-left: none !important;
    }
    
    #about .container > div > div:first-child {
        border-right: none !important;
    }

    
    #about .container > div > div:last-child > div {
        height: 250px !important;
    }
    
    .hero-logo {
        max-width: 400px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Traffic light demo */
    .traffic-light-demo {
        gap: 24px;
    }
    
    /* Sections */
    body:not([class*="page-"]) section:not(.hero) {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .section-header {
        margin-bottom: 3rem;
        padding-top: 0;
        margin-top: 0;
    }
    
    .section-header h2 {
        font-size: 2.75rem;
    }
    
    .section-header p {
        font-size: 1.125rem;
    }
    
    /* Grids - single column */
    .features-grid {
        grid-template-columns: 1fr;
        border-left: none;
    }
    
    .feature-card {
        border: none;
    }
    
    .founder-image-container {
        padding: 2rem 0 !important;
    }
    
    .founder-image {
        width: calc(100% + 4rem) !important;
        margin-left: -2rem !important;
        margin-right: -2rem !important;
        height: 300px !important;
    }
    
    .tech-grid,
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    /* Process flow - vertical */
    .process-flow {
        flex-direction: column;
        gap: 24px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        border-bottom: none;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Footer - 2 columns on tablet for better scan */
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Container spacing */
    .container {
        padding: 0 1.5rem;
    }
    
    main > section:not(.hero) .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #contact .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    #contact .section-header {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .navbar {
        height: 64px;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .nav-container { 
        padding: 0.75rem 1rem;
    }
    
    .nav-mobile-overlay {
        top: 64px;
    }
    
    /* Hero section */
    .hero {
        padding-top: 64px;
        padding-bottom: 48px;
        min-height: auto;
    }
    
    .hero-content { 
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    
    .home-page .hero::before,
    .home-page .hero::after {
        display: none;
    }
    
    .hero-text {
        padding: 3rem 1.5rem;
        border-right: none;
    }
    
    .hero-visual {
        padding: 2rem 0;
        gap: 0;
    }
    
    .hero-coaster {
        display: none;
    }
    
    .hero-image {
        width: calc(100% + 3rem);
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        height: 250px;
        object-fit: cover;
    }
    
    .hero-visual > div {
        height: 250px !important;
    }
    
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .motto-badge {
        margin-bottom: 1.5rem;
    }
    
    .motto-text {
        font-size: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem !important;
        max-width: 100%;
    }
    
    .section-header {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 2rem;
    }
    
    .services-grid,
    .approach-grid,
    .contact-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 0 !important;
        row-gap: 0 !important;
    }
    
    .approach-card {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
        gap: 0.5rem;
    }
    
    .approach-card:not(:first-child) {
        margin-top: -1.5rem !important;
    }
    
    .approach-card:not(:last-child) {
        margin-bottom: -1.5rem !important;
    }
    
    .approach-card:first-child {
        padding-bottom: 0 !important;
        border-bottom: none !important;
        margin-bottom: -1.5rem !important;
    }
    
    .approach-card:last-child {
        padding-bottom: 0 !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
        margin-top: -1.5rem !important;
    }
    
    .approach-step {
        margin-left: 0;
        margin-bottom: 0.5rem !important;
    }
    
    .approach-card p {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1.3 !important;
    }
    
    .approach-card h3 {
        margin-bottom: 0.25rem !important;
    }

    /* Investors section: match services spacing on mobile */
    section#investors .approach-grid {
        gap: 1rem !important;
        row-gap: 1rem !important;
    }
    section#investors .approach-card,
    section#investors .approach-card:not(:first-child),
    section#investors .approach-card:not(:last-child),
    section#investors .approach-card:first-child,
    section#investors .approach-card:last-child {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .hero-logo {
        max-width: 320px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button.large {
        width: 100%;
        padding: 1rem;
    }
    
    /* Keep countdown layout centered on mobile */
    .traffic-light-demo {
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
        margin-bottom: 0;
    }
    
    /* More space between hero and features on mobile */
    .features {
        margin-top: 0 !important;
    }
    
    /* Keep desktop countdown size on mobile */
    .countdown { width: 220px; height: 220px; }
    .countdown-number { font-size: 110px; }
    .countdown-number.is-go { font-size: 96px; }
    .wipe-overlay { width: 242px; height: 242px; }
    
    .prediction-display {
        padding: 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 0.9375rem;
        margin-top: 0.5rem;
    }
    
    .features-grid {
        border-left: none;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        border-left: none;
        border-right: none;
    }
    
    .feature-slideshow {
        height: 240px;
        margin-top: -2rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }
    
    .feature-image {
        height: 240px;
        margin-top: -2rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }
    
    .founder-image-container {
        padding: 2rem 0 !important;
    }
    
    .founder-image {
        width: calc(100% + 3rem) !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        height: 250px !important;
    }
    
    .feature-card h3 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* About section mobile - override inline styles */
    #about .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        border-left: none !important;
    }
    
    #about .container > div > div:first-child {
        border-right: none !important;
    }
    
    #about .container > div > div:first-child p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1.25rem !important;
    }
    
    #about .container > div > div:last-child > div {
        height: 200px !important;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem !important;
    }
    
    .contact-info .info-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-info .info-item:last-child {
        margin-bottom: 0;
    }
    
    /* Legal/Company pages mobile - no card bg, content spans more width */
    .legal .content-block-1 {
        padding: 0 12px 60px;
    }
    .legal .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    /* All pages except homepage: consistent 2rem spacing on mobile */
    body[class*="page-"] .legal .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    body[class*="page-"] .legal .section-header,
    body[class*="page-"] .legal .content-block-1 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    body[class*="page-"] .legal .content-block-1 {
        padding: 0 0 60px 0 !important;
    }
    body[class*="page-"] .legal .legal-card {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body[class*="page-"] .products-page .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    .legal-card {
        background: transparent !important;
    }
    
    .legal .content-block-1 h2 {
        font-size: 1.75rem;
        margin-top: 2.5rem;
    }
    
    .legal .content-block-1 h3 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }
    
    .legal .content-block-1 h4 {
        font-size: 1.15rem;
    }
    
    .legal .content-block-1 p,
    .legal .content-block-1 li {
        font-size: 1rem;
        line-height: 1.65;
    }
    
    .legal .content-block-1 ul,
    .legal .content-block-1 ol {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .legal .content-block-1 ul li,
    .legal .content-block-1 ol li {
        padding-left: 0 !important;
    }
    
    /* Remove all indents on mobile - lists site-wide (except product-card which keeps bullets) */
    main ul:not(.product-card ul),
    main ol {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    main ul:not(.product-card ul) li,
    main ol li {
        padding-left: 0 !important;
    }
    .footer-section ul {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .footer-section ul li {
        padding-left: 0 !important;
    }
    
    /* Cards */
    .feature-card,
    .app-card,
    .tech-category {
        padding: 1.5rem;
    }
    
    /* Process steps */
    .process-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer - single column on mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-section h4 { 
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }
    
    .footer-section li { 
        margin-bottom: 0.5rem;
    }
    
    .footer-section p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    /* Navbar mobile */
    .navbar {
        height: 64px;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    /* Form inputs mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile-friendly panels and inputs */
@media (max-width: 600px) {
  .panel-wide { max-width: 100%; }
  .content-narrow, .form-narrow { max-width: 100%; }
  .form-row { flex-direction: column !important; gap: 0.75rem !important; }
  .tabs-wrap { padding-left: 8px; padding-right: 8px; }
  .tabs { max-width: 100%; overflow-x: auto; }
}

/* Large tablets and small desktops (1024px and above) */
@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-text {
        padding: 6rem 6rem 0 6rem;
    }
    
    .hero-visual {
        padding: 8rem 6rem 0 6rem;
    }
    
    .hero-title {
        font-size: 6.5rem;
    }
}

/* Large mobile landscape and small tablets (600px and below) */
@media (max-width: 600px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    section {
        padding: 32px 0;
    }
}

/* Stronger mobile rules (portrait or landscape) up to 600px */
@media (max-width: 600px) {
    .hero {
        padding: 80px 0 48px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-logo {
        max-width: 280px;
    }
    
    /* Reduce section padding on small screens - override all other rules */
    body:not([class*="page-"]) section:not(.hero),
    body:not([class*="page-"]) main > section:not(.hero),
    #services,
    .features,
    section#services,
    #about,
    body:not([class*="page-"]) .how-it-works,
    section#about,
    #contact,
    .contact,
    section#contact {
        padding-top: 3rem !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Fine-tune How we work spacing on small screens */
    #about,
    body:not([class*="page-"]) .how-it-works,
    section#about {
        padding-top: 70px !important;
        padding-bottom: 0px !important; /* reduce further below */
    }
    #about .section-header {
        margin-bottom: 0.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    #about .container {
        padding-bottom: 0 !important;
    }
    #about .approach-card:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: -50px !important;
    }
    #about .approach-card:last-child p:last-child {
        margin-bottom: 0 !important;
    }
    #about p:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Better spacing for about section text */
    #about .container > div > div:first-child p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
}

/* ------------------------------------------------------------
   Happy Robot Shop theme overrides
------------------------------------------------------------- */
:root {
  --hrs-orange: #ff3b00;
  --hrs-orange-dark: #d23200;
  --hrs-navbar-gradient: linear-gradient(90deg, #ff4b11 0%, var(--hrs-orange) 100%);
  --hrs-ink: #0f0f0f;
  --hrs-text: #1b1b1b;
  --hrs-muted: #4a4a4a;
  --hrs-sand: #fff7f2;
  --hrs-soft: #fff1e6;
  --hrs-card: #ffffff;
  --hrs-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

html {
  background: var(--hrs-sand);
  font-size: 16px; /* Base font size for rem calculations */
  -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjustment */
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, var(--hrs-orange) 0%, #ff4b11 100%);
  background-attachment: fixed;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Ensure consistent font rendering across all text elements */
p, span, div, li, td, th, label, input, textarea, select, button, a {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography aligns to the bold, condensed poster aesthetic */
h1, h2, h3,
.hero-title,
.section-header h2,
.service-label,
.approach-step,
.hero-phone {
  font-family: 'Barlow Condensed', 'Archivo Black', sans-serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.section-header p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--hrs-orange) !important;
  border-bottom-color: transparent;
}

.hero-visual-card a {
  color: #000000 !important;
}


.navbar {
  background: var(--hrs-navbar-gradient);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
}

.nav-link::after {
  background: rgba(255, 255, 255, 0.9);
}

.nav-cta .cta-button.primary {
  background: #ffffff !important;
  color: var(--hrs-orange) !important;
  white-space: nowrap;
}

.hero {
  position: relative;
  background: transparent;
  min-height: 90vh;
  border-bottom: none !important;
  overflow: hidden;
}

.hero::before { content: none; }

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: clamp(2rem, 3vw, 3.5rem);
  width: min(95vw, 1700px);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-text {
  position: relative;
  background: transparent;
  color: #ffffff;
  padding: clamp(3.2rem, 5vw, 5rem);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  overflow: visible;
}

.hero-visual-card {
  position: relative;
  flex: 1;
  background: transparent;
  padding: 4rem 4rem 3rem 4rem;
  align-items: flex-start;
  z-index: 1;
  overflow: hidden;
  clip-path: url(#hero-card-clip);
  transform: translateX(-38px);
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  width: 210%;
  height: 170%;
  top: -30%;
  left: -45%;
  background: #ffffff;
  transform: skewX(-12deg);
  transform-origin: center;
  z-index: -1;
}

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

.hero-title {
  font-family: 'Barlow Condensed', 'Archivo Black', 'Inter', sans-serif;
  font-size: 6.25rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title span:last-child {
  color: #ffffff;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.12em;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-style: italic;
  text-transform: uppercase;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 640px;
}

.hero-buttons .cta-button.primary {
  background: var(--hrs-navbar-gradient);
  color: #ffffff !important;
}

.hero-buttons .cta-button.secondary {
  background: var(--hrs-navbar-gradient);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-visual-card {
  padding: 4rem 4rem 3rem 4rem;
  background: #ffffff;
  box-shadow: none;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.75rem;
  min-height: 100%;
}

.hero-pitch {
  width: 100%;
  max-width: 520px;
  color: var(--hrs-text);
  text-align: left;
  margin-left: 0;
  margin-top: 0;
  padding-top: 2rem;
  padding-left: 2rem;
}

.hero-logo-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  align-self: flex-end;
}

.hero-logo-mark {
  display: block;
  height: auto;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}

.hero-logo-card--left {
  align-self: flex-start;
  margin: 1rem 0 1.5rem 0;
  width: 100%;
  max-width: 520px;
}

.hero-logo-card--left .hero-logo-mark {
  width: 100%;
  height: auto;
}

.hero-pitch h3 {
  font-size: 2.25rem;
  margin: 1rem 0;
  color: var(--hrs-ink);
}

.hero-callout {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--hrs-orange);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
}

.hero-pitch ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem 0;
  text-align: left;
  padding-left: 0;
}

.hero-pitch li {
  padding: 0.35rem 0;
  font-weight: 600;
  color: var(--hrs-muted);
}

.hero-pitch li:nth-child(1),
.hero-pitch li:nth-child(2),
.hero-pitch li:nth-child(3),
.hero-pitch li:nth-child(4) {
  padding-left: 0;
}

.hero-products-link {
  margin: -20px 50px 20px 0px;
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hrs-muted);
}

.hero-products-link a {
  color: var(--hrs-orange) !important;
  text-decoration: none;
}

.hero-products-link a:hover {
  text-decoration: underline;
}

.hero-pill {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  max-width: 520px;
  text-align: center;
  margin: 0 auto 1rem auto;
}

@media (min-width: 1024px) {
  .hero-logo-card--left {
    max-width: 760px;
  }
  .hero-logo-mark {
    max-height: 420px;
  }
  .hero-pill {
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
  }
  .hero-callout {
    padding-left: 65px;
  }
  .hero-pitch li:nth-child(1) {
    padding-left: 60px;
  }
  .hero-pitch li:nth-child(2) {
    padding-left: 58px;
  }
  .hero-pitch li:nth-child(3) {
    padding-left: 54px;
  }
  .hero-pitch li:nth-child(4) {
    padding-left: 50px;
  }
  .hero-pitch li:nth-child(5) {
    padding-left: 46px;
  }
  .hero-pitch li:nth-child(6) {
    padding-left: 42px;
  }
  .hero-pitch li:nth-child(7) {
    padding-left: 38px;
  }
  .hero-pitch li:nth-child(8) {
    padding-left: 34px;
  }
  .hero-products-link {
    padding-left: 34px;
  }
  .hero-contact-block {
    padding-left: 25px !important;
  }
}

.hero-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  margin-top: 0.5rem;
}

.hero-phone {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--hrs-orange);
  letter-spacing: 0.06em;
}

.hero-site {
  font-size: 1.05rem;
  color: var(--hrs-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header p {
  color: rgba(255, 255, 255, 0.9);
}

/* Keep interior sections bright and consistent with the poster palette */
main > section:not(.hero) {
  background: transparent;
  color: #ffffff;
  border-bottom: none;
}

main > section:not(.hero) .container {
  padding-left: 3rem;
  padding-right: 3rem;
}

#contact .container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#contact .section-header {
  padding-left: 3rem;
  padding-right: 3rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-top: 30px !important;
  max-width: none;
  width: 100%;
}

.features {
  background: transparent;
  border-bottom: none;
}

@media (min-width: 769px) {
  .home-page section#services {
    margin-top: 5px;
  }
}

.home-page main > section[id] {
  scroll-margin-top: 64px;
}

.features .section-header h2 {
  margin-left: -0.15em;
  color: #ffffff;
}

.contact {
  background: transparent !important;
}

.contact .section-header h2 {
  color: #ffffff !important;
}

.contact .section-header p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.service-card {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-label {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.cta-button.primary {
  background: var(--hrs-navbar-gradient);
  color: #ffffff !important;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.cta-button.secondary {
  background: var(--hrs-navbar-gradient);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}


.contact-form {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  border-radius: 0;
  border: none;
}

.contact-form .form-group label {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

.contact-form .cta-button.primary {
  background: var(--hrs-orange) !important;
  color: #ffffff !important;
}

.investors-cta-wrap .cta-button.primary {
  background: #ffffff !important;
  color: #dc2626 !important;
}

.contact-info {
  background: transparent;
  color: #ffffff;
}

.info-item h4 {
  color: #ffffff;
}

.info-item p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.footer, .footer {
  background: #ffffff;
  color: #000000;
  border-top: none;
}

.footer-section h4 {
  color: #000000;
}

.footer-section p,
.footer-section a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #000000 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.footer-bottom p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.cookie-banner {
  background: #ffffff;
  color: var(--hrs-orange);
  border-top: 1px solid rgba(255, 75, 17, 0.08);
}

.cookie-banner .cookie-actions .cta-button {
  background: var(--hrs-navbar-gradient);
  color: #ffffff !important;
}

.cookie-banner .cookie-text,
.cookie-banner .cookie-text .info-link {
  color: #000000 !important;
  border-bottom-color: rgba(0, 0, 0, 0.25);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.approach-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.how-it-works .approach-card h3 {
  color: #000000;
  margin-bottom: 0.75rem;
}

.how-it-works .approach-card p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.approach-step {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  background: #ffffff;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 0.75rem;
  flex: 0 0 48px;
}

@media (max-width: 1024px) {
  .hero {
    background: var(--hrs-orange);
  }
  .hero-content {
    width: min(94vw, 1200px);
  }
  .hero-visual-card {
    padding: 1rem 1rem;
    background: transparent;
  }
}

/* Smooth left padding transition around 1024px: bridge tablet→desktop */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-visual-card {
    padding-left: clamp(40px, 5vw, 64px) !important;
    padding-right: clamp(56px, 7vw, 80px) !important;
  }
}

/* Extra right padding around 1100px where content feels cramped */
@media (min-width: 1050px) and (max-width: 1250px) {
  .hero-visual-card {
    padding-right: 4rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  /* Staggered content padding scales with viewport to reduce jump at 1024px */
  .hero-callout {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.26), 65px) !important;
  }
  .hero-pitch li:nth-child(1) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.24), 60px) !important;
  }
  .hero-pitch li:nth-child(2) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.23), 58px) !important;
  }
  .hero-pitch li:nth-child(3) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.21), 54px) !important;
  }
  .hero-pitch li:nth-child(4) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.20), 50px) !important;
  }
  .hero-pitch li:nth-child(5) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.18), 46px) !important;
  }
  .hero-pitch li:nth-child(6) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.16), 42px) !important;
  }
  .hero-pitch li:nth-child(7) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.14), 38px) !important;
  }
  .hero-pitch li:nth-child(8) {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.12), 34px) !important;
  }
  .hero-contact-block {
    padding-left: clamp(0px, calc((100vw - 769px) * 0.10), 25px) !important;
  }
}

@media (min-width: 769px) and (max-width: 855px) {
  .hero-phone {
    margin-left: -25px !important;
  }
}

@media (min-width: 769px) and (max-width: 1330px) {
  .hero-phone {
    font-size: 2rem !important;
  }
}

@media (max-width: 768px) {
  .hero {
    background: transparent;
    min-height: auto;
  }
  .hero::before { display: none; }
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
    padding: 0 1.25rem;
  }
  .hero-text {
    padding: 3.5rem 2rem;
    clip-path: none;
    background: transparent;
  }
  .hero-logo-mark {
    margin-left: 7px;
  }
  .hero-text::before { display: none; }
  .hero-visual-card {
    margin-top: 0;
    padding: 20px 40px;
    padding-bottom: 130px;
    box-shadow: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    overflow: hidden;
    /* min-height: 640px; */
    clip-path: none;
    transform: none;
    background: transparent;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    align-self: stretch;
  }
  .hero-pitch,
  .hero-pitch .hero-callout,
  .hero-pitch li,
  .hero-products-link,
  .hero-products-link a {
    color: #ffffff !important;
  }
  .hero-products-link a {
    text-decoration: underline !important;
  }
  .hero-visual-card::before {
    display: none;
  }
  .hero-logo-card {
    align-self: center;
  }
  .hero-pitch {
    text-align: center;
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-right: 10px;
    margin-left: -10px;
  }
  .hero-callout {
    padding-left: 17px !important;
  }
  .hero-pitch ul {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 17px;
  }
  .hero-pitch li:nth-child(1),
  .hero-pitch li:nth-child(2),
  .hero-pitch li:nth-child(3),
  .hero-pitch li:nth-child(4) {
    padding-left: 0 !important;
  }
  .hero-contact-block {
    justify-content: flex-start;
    text-align: left;
    margin-left: 17px;
    padding-left: 0;
  }
  .hero-phone {
    font-size: 2.0rem;
    line-height: 1.1;
  }
  .hero-site {
    font-size: 0.95rem;
  }
  .hero-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    justify-content: center;
  }

  .approach-card {
    min-height: 320px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .investors-cta-wrap {
    margin-top: 2.5rem !important;
  }

  /* Investors section: match services (What we build) spacing on mobile */
  section#investors .approach-grid {
    gap: 1rem !important;
    row-gap: 1rem !important;
  }
  section#investors .approach-card {
    min-height: unset !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Internal page title spacing (final override, beats homepage section rules) */
body[class*="page-"] main > section.how-it-works:not(.hero),
body[class*="page-"] main > section.legal:not(.hero) {
  padding-top: calc(64px + 4.5rem) !important;
}

@media (max-width: 768px) {
  body[class*="page-"] main > section.how-it-works:not(.hero),
  body[class*="page-"] main > section.legal:not(.hero) {
    padding-top: calc(64px + 3rem) !important;
  }
}
