/* ============================================
   DataPlate CSS - Consolidated Styles
   ============================================ */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Brand colours (constant) */
    --coral: #FF6B6B;
    --teal: #4ECDC4;
    --blue: #3B82F6;
    --green: #95E1D3;
    --navy: #1a1a2e;
    
    /* Dark mode (default) */
    --header-bg: #1e1e24; /*#1e1e28;*/
    --header-border: #2a2a35;
    --hero-bg: #1e1e24;
    --section-dark-1: #1e1e24;
    --section-dark-2: #252530;
    --section-dark-3: #2a2a35;
    --section-light-1: #e8eef5;
    --section-light-2: #f8f9fa;
    --section-light-3: #ffffff;
    --credibility-bg: #4ECDC4;
    
    --text-primary: #f0f0f0;
    --text-secondary: #d0d0d0;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: #e0e0e0;
    --text-on-dark-subtle: #e0e0e0;
    --text-muted: #a0a0a0;
    
    --card-bg: #2a2a35;
    --card-border: #3a3a45;
    --card-bg-dark: rgba(255, 255, 255, 0.03);
    --card-border-dark: #3a3a45;
    
    --diagram-box-bg: #2a2a35;
    --diagram-box-border: #3a3a45;
    --diagram-center-bg: #1a1a2e;
    --diagram-center-border: #3a3a45;
}

/* Light mode */
[data-theme="light"] {
    --header-bg: #1a1a2e;
    --header-border: #2d3548;
    --hero-bg: #1a1a2e;
    --section-dark-1: #1a1a2e;
    --section-dark-2: #1a1a2e;
    --section-dark-3: #1a1a2e;
    --section-light-1: #ffffff;
    --section-light-2: #e8eef5;
    --section-light-3: #f8f9fa;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --card-bg-dark: rgba(255, 255, 255, 0.05);
    --card-border-dark: #2d3548;
    
    --diagram-box-bg: #e8eef5;
    --diagram-box-border: #ddd;
    --diagram-center-bg: #1a1a2e;
    --diagram-center-border: #2d3548;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--section-dark-1);
    transition: background-color 0.3s, color 0.3s;
}

/* ============================================
   Layout
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

/* ============================================
   Typography
   ============================================ */
h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

p.emphasis {
    color: var(--text-on-dark) !important;
}

/* Colour Headings */
.heading-green {
    color: var(--green) !important;
}

.heading-blue {
    color: var(--blue) !important;
}

.heading-coral {
    color: var(--coral) !important;
}

.heading-teal {
    color: var(--teal) !important;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--header-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--header-border);
    transition: background-color 0.3s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav a {
    color: var(--text-on-dark-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--teal);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-on-dark);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-on-dark-muted);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-on-dark-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.theme-toggle__icon {
    font-size: 1rem;
}

[data-theme="light"] .theme-toggle__icon--light,
:root:not([data-theme="light"]) .theme-toggle__icon--dark {
    display: none;
}

[data-theme="light"] .theme-toggle__icon--dark,
:root:not([data-theme="light"]) .theme-toggle__icon--light {
    display: inline;
}

.header-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--teal);
}

/* ============================================
   Section Themes
   ============================================ */

/* Dark sections */
.section-dark {
    background: var(--section-dark-2);
    color: var(--text-on-dark-muted);
    transition: background-color 0.3s;
}

.section-dark h2,
.section-dark h3 {
    color: var(--text-on-dark);
}

.section-dark p {
    color: var(--text-on-dark-subtle);
}

.section-dark-alt {
    background: var(--section-dark-3);
    color: var(--text-on-dark-muted);
    transition: background-color 0.3s;
}

.section-dark-alt h2,
.section-dark-alt h3 {
    color: var(--text-on-dark);
}

.section-dark-alt p {
    color: var(--text-on-dark-subtle);
}

/* Light sections */
.section-light {
    background: var(--section-light-1);
    color: var(--text-primary);
    transition: background-color 0.3s;
}

.section-light h2,
.section-light h3 {
    color: var(--text-primary);
}

.section-light p {
    color: var(--text-secondary);
}

.section-light-alt {
    background: var(--section-light-2);
    color: var(--text-primary);
    transition: background-color 0.3s;
}

.section-light-alt h2,
.section-light-alt h3 {
    color: var(--text-primary);
}

.section-light-alt p {
    color: var(--text-secondary);
}

.section-light-alt-2 {
    background: var(--section-light-3);
    transition: background-color 0.3s;
}

.section-light-alt-2 h2,
.section-light-alt-2 h3 {
    color: var(--text-primary);
}

.section-light-alt-2 p {
    color: var(--text-secondary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--hero-bg);
    padding: 140px 0;
    text-align: center;
    transition: background-color 0.3s;
}

.hero h1 {
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.hero-subhead {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

.hero-supporting {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-on-dark-muted);
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    margin: 10px;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.nav .cta-button {
    padding: 8px 16px;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Primary: Coral background, dark text */
.cta-button--primary {
    background: var(--coral);
    color: var(--navy);
}

/* Secondary: Teal background, dark text */
.cta-button--secondary {
    background: var(--teal);
    color: var(--navy);
}

/* Tertiary: Blue background, white text */
.cta-button--tertiary {
    background: var(--blue);
    color: #ffffff;
}

/* Outline variant (for use on coloured backgrounds) */
.cta-button--outline {
    background: transparent;
    border: 2px solid var(--coral);
    color: var(--coral);
}

.cta-button--outline-light {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cta-button--full-width {
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 20px;
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Lists
   ============================================ */
ul {
    list-style: none;
    margin: 25px 0;
}

ul li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
    font-weight: 300;
}

.arrow-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 700;
    font-size: 1.4rem;
}

.arrow-list li.solution::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 1.4rem;
}

.section-dark .arrow-list li,
.section-dark-alt .arrow-list li {
    color: var(--text-on-dark-muted);
}

.section-light .arrow-list li,
.section-light-alt .arrow-list li {
    color: var(--text-secondary);
}

.arrow-list--no-margin {
    margin: 0;
}

/* ============================================
   Content Sections
   ============================================ */
.content-block {
    margin: 0;
    padding: 10px 0;
}

.section-heading {
    margin-top: 50px;
    margin-bottom: 10px;
}

.section-heading--spaced {
    margin-top: 50px;
    margin-bottom: 20px;
}

/* ============================================
   Content Grid - Unified Feature/Consumption Boxes
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.content-grid--no-top-margin {
    margin-top: 0;
}

.content-grid--4-col {
    grid-template-columns: repeat(4, 1fr);
}

.content-box {
    padding: 35px;
    background: var(--card-bg);
    border-radius: 10px 10px 0px 0px;
    border: 1px solid var(--card-border);
    transition: transform 0.2s, border-color 0.2s, background-color 0.3s;
    position: relative;
    text-align: left;
}

.content-box:hover {
    transform: translateY(-5px);
}

/* Hover colour variants */
.content-box--hover-blue:hover {
    border-color: var(--blue);
}

.content-box--hover-green:hover {
    border-color: var(--green);
}

.content-box--hover-coral:hover {
    /* border-color: var(--coral);*/
    border-color: #666;
}

.content-box--hover-teal:hover {
    border-color: var(--teal);
}

/* Dark background variant */
.content-box--dark {
    background: var(--card-bg-dark);
    border-color: var(--card-border-dark);
}

.content-box__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.content-box__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.content-box__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Icon colour variants */
.content-box__icon--blue svg {
    stroke: var(--blue);
}

.content-box__icon--green svg {
    stroke: var(--green);
}

.content-box__icon--coral svg {
    stroke: var(--coral);
}

.content-box__icon--teal svg {
    stroke: var(--teal);
}

.content-box h3 {
    font-size: 1.3rem;
    margin: 0;
}

.content-box h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.content-box p {
    font-size: 1rem;
}

/* Dark theme text colours */
.section-dark .content-box h3,
.section-dark .content-box h4,
.section-dark-alt .content-box h3,
.section-dark-alt .content-box h4 {
    color: var(--text-on-dark);
}

.section-dark .content-box p,
.section-dark-alt .content-box p {
    color: var(--text-on-dark-muted);
}

/* Light theme text colours */
.section-light .content-box h3,
.section-light .content-box h4,
.section-light-alt .content-box h3,
.section-light-alt .content-box h4 {
    color: var(--text-primary);
}

.section-light .content-box p,
.section-light-alt .content-box p {
    color: var(--text-secondary);
}

.content-box .screenshot-frame {
    display: none;
}

/* ============================================
   Tab Cards & Panel
   ============================================ */
.tab-section .tab-grid {
    margin-bottom: 0;
}

.tab-card {
    cursor: pointer;
    user-select: none;
}

.tab-card:hover {
    transform: none;
}

.tab-card.tab-active {
    border-color: var(--coral);
    border-bottom-color: var(--card-bg);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    z-index: 1;
}

.tab-panels-wrapper {
    display: none;
    position: relative;
    border: 1px solid var(--coral);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: var(--card-bg);
    padding: 30px;
    margin-bottom: 50px;
}

.tab-panels-wrapper.has-active {
    display: block;
}

/* Left segment of top border notch */
.tab-panels-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: var(--notch-left, 0px);
    height: 1px;
    background: var(--coral);
}

/* Right segment of top border notch */
.tab-panels-wrapper::after {
    content: '';
    position: absolute;
    top: -1px;
    left: var(--notch-right, 100%);
    right: -1px;
    height: 1px;
    background: var(--coral);
}

.tab-panel {
    display: none;
}

.tab-panel.tab-panel--active {
    display: block;
}

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

.tab-panel__label {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    margin-top: 12px;
}

/* ============================================
   Works With / Database Icons
   ============================================ */
.works-with {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 60px 0;
    padding: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.db-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.db-icon {
    width: 110px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.3s;
    padding: 15px;
}

.db-icon:hover {
    border-color: var(--blue);
}

.db-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.db-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   Platform Diagram
   ============================================ */
.diagram-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.diagram-wrapper {
    overflow-x: auto;
    padding: 20px 0;
}

.platform-diagram {
    display: block;
    margin: 0 auto;
    min-width: 800px;
}

/* ============================================
   Why Section Background
   ============================================ */
.why-section {
    position: relative;
    overflow: hidden;
}

.why-section__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.why-section .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-intro {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.mb-60 {
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.pricing-tier {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.2s, background-color 0.3s;
}

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

.pricing-tier--featured {
    border-color: var(--coral);
    border-width: 2px;
    position: relative;
}

.pricing-tier h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-tier ul {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-tier ul li {
    padding: 8px 0;
    padding-left: 0;
    color: var(--text-secondary);
}

/* ============================================
   Credibility / About
   ============================================ */
.credibility {
    background: var(--credibility-bg);
    color: var(--navy);
}

.credibility h2 {
    color: var(--navy);
}

.credibility p {
    color: var(--navy);
    font-size: 1.25rem;
}

.credibility a {
    color: var(--navy);
    font-weight: 600;
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
    text-align: center;
    padding: 100px 0;
}

.final-cta h2 {
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.final-cta-supporting {
    color: var(--text-on-dark-muted);
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
    padding: 60px 0 30px;
}

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

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo svg {
    height: 40px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.footer-column h4 {
    color: var(--text-on-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    padding: 6px 0;
    padding-left: 0;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--teal);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--header-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--teal);
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.highlight-text {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.highlight-text--last {
    margin-bottom: 40px;
}

.highlight-green {
    color: var(--blue);
}

/* ============================================
   Animations
   ============================================ */
@keyframes flowForward {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes flowBackward {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 1000; }
}

.animated-line-blue {
    stroke-dasharray: 8, 8;
    animation: flowForward 60s linear infinite;
}

.animated-line-green-forward {
    stroke-dasharray: 8, 8;
    animation: flowForward 60s linear infinite;
}

.animated-line-green-backward {
    stroke-dasharray: 8, 8;
    animation: flowBackward 60s linear infinite;
}

/* ============================================
   Progress Bar (Sign Up Flow)
   ============================================ */
.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 50px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-step.active .progress-step-number {
    background: var(--teal);
    color: var(--navy);
}

.progress-step.completed .progress-step-number {
    background: var(--teal);
    color: var(--navy);
}

.progress-step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.progress-step.active .progress-step-label,
.progress-step.completed .progress-step-label {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-connector {
    width: 40px;
    height: 2px;
    background: var(--card-border);
    margin: 0 8px;
}

.progress-connector.completed {
    background: var(--teal);
}

/* ============================================
   Sign Up Page Specific
   ============================================ */
.signup-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.signup-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Package Selector */
.package-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.package-option {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.package-option:hover {
    border-color: var(--text-muted);
}

.package-option.selected {
    border-color: var(--teal);
}

.package-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.package-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
}

.package-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.package-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px;
}

.package-includes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.package-includes li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.package-includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

/* Calculator Card */
.calculator-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.calculator-body {
    padding: 40px;
}

/* Section Label */
.section-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 20px;
}

/* Included Section */
.included-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--card-border);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(78, 205, 196, 0.08);
    border-radius: 8px;
}

.included-item .check {
    color: var(--teal);
    font-size: 1.2rem;
    font-weight: 700;
}

.included-item span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Addon Section */
.addon-section {
    margin-bottom: 40px;
}

.addon-section:last-child {
    margin-bottom: 0;
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border);
}

.config-row:last-child {
    border-bottom: none;
}

.config-info {
    flex: 1;
}

.config-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.config-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

.config-control {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 140px;
    height: 6px;
    border-radius: 3px;
    background: var(--card-border);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.line-total {
    min-width: 80px;
    text-align: right;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--card-border);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle.active {
    background: var(--teal);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.toggle.active::after {
    transform: translateX(24px);
}

.addon-included {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 300;
}

/* Email Field */
.email-field {
    margin: 25px 0;
}

.email-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.email-input {
    width: 100%;
    padding: 16px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    background: #ffffff;
    border: 2px solid var(--teal);
    border-radius: 8px;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input:focus {
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-error {
    font-size: 0.85rem;
    color: var(--coral);
    margin-top: 8px;
    display: none;
}

.email-error.visible {
    display: block;
}

/* Summary Footer */
.calculator-footer {
    background: var(--navy);
    padding: 35px 40px;
    border-top: 1px solid var(--card-border);
}

.calculator-footer .cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-row:last-of-type {
    margin-bottom: 0;
}

.summary-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

.summary-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--card-border);
    margin-bottom: 25px;
}

.summary-total .summary-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.summary-total .summary-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--teal);
}

/* Trust badges */
.trust-section {
    text-align: center;
    margin-top: 30px;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Error message */
.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--coral);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--coral);
    font-size: 0.95rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* ============================================
   Welcome Page Specific
   ============================================ */
.welcome-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.welcome-header {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.welcome-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    background: var(--navy);
    padding: 20px 30px;
    border-bottom: 1px solid var(--card-border);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--teal);
    margin: 0;
}

.card-body {
    padding: 30px;
}

/* Session Info */
.session-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.session-item {
    padding: 15px;
    background: var(--section-dark-1);
    border-radius: 8px;
}

.session-item.full-width {
    grid-column: 1 / -1;
}

.session-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.session-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

.session-value.highlight {
    color: var(--teal);
    font-size: 1.3rem;
}

/* Line Items */
.line-items {
    margin-top: 15px;
}

.line-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

.line-item:last-child {
    border-bottom: none;
}

.line-item-name {
    color: var(--text-secondary);
}

.line-item-detail {
    color: var(--text-primary);
    font-weight: 500;
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    background: var(--section-dark-1);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--teal);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 0.85rem;
    color: var(--coral);
    margin-top: 6px;
    display: none;
}

.form-error.visible {
    display: block;
}

.subdomain-input {
    display: flex;
    align-items: center;
}

.subdomain-input .form-input {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.subdomain-suffix {
    padding: 14px 16px;
    background: var(--card-border);
    border: 1px solid var(--card-border);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-size: 1rem;
    white-space: nowrap;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--card-border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading p {
    color: var(--text-muted);
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 40px;
}

.error-state h2 {
    color: var(--coral);
    margin-bottom: 15px;
}

.error-state p {
    color: var(--text-muted);
}

/* Button spinner */
.cta-button .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--navy);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

.cta-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.cta-button.loading .spinner {
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .content-grid--4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-subhead {
        font-size: 1.5rem;
    }

    .hero-supporting {
        font-size: 1.1rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 10px;
        gap: 20px;
        border-bottom: 1px solid var(--header-border);
    }

    .nav--open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid--4-col {
        grid-template-columns: 1fr;
    }

    .works-with {
        gap: 15px;
    }

    .db-icon {
        width: 80px;
        padding: 10px;
    }

    .db-icon img {
        width: 36px;
        height: 36px;
    }

    .db-name {
        font-size: 0.75rem;
    }
    
    /* Mobile buttons - NOT full width */
    .cta-button {
        display: inline-block;
        width: auto;
        margin: 8px;
    }
    
    .cta-button--full-width {
        display: block;
        width: 100%;
    }
    
    .hero .cta-button {
        display: block;
        width: 80%;
        max-width: 300px;
        margin: 10px auto;
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Signup page mobile */
    .package-selector {
        grid-template-columns: 1fr;
    }
    
    .included-grid {
        grid-template-columns: 1fr;
    }
    
    .config-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .config-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .session-info {
        grid-template-columns: 1fr;
    }
    
    /* Progress bar mobile */
    .progress-step-label {
        display: none;
    }
    
    .progress-connector {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .hero .cta-button {
        width: 90%;
    }
    
    .signup-section,
    .welcome-section {
        padding: 40px 20px;
    }
    
    .calculator-body {
        padding: 25px 20px;
    }
    
    .calculator-footer {
        padding: 25px 20px;
    }
}

/* Fixed core package badge */
.fixed-price-badge {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-right: 0.75rem;
}

/* Dataset tooltip */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: default;
    flex-shrink: 0;
    line-height: 1;
}

.tooltip-text {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    border: 1px solid var(--card-border);
    color: var(--text-on-dark-muted);
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.5;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    width: 260px;
    z-index: 100;
    pointer-events: none;
    white-space: normal;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--card-border);
}

.tooltip-wrap:hover .tooltip-text {
    display: block;
}

/* ============================================
   Billing Page Styles
   ============================================ */

.billing-page {
    background: var(--section-dark-2);
}

.billing-wrap {
    min-height: calc(100vh - 80px);
    background: var(--section-dark-2);
}

.billing-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.billing-header {
    padding: 2.5rem 0 2rem;
}

.billing-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}

.billing-header p {
    font-size: 1rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
}

/* Status strip */
.status-strip {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.status-badge.active   { background: rgba(34,197,94,0.15);   color: var(--green); }
.status-badge.trialing { background: rgba(59,130,246,0.15);  color: var(--blue);  }
.status-badge.past_due { background: rgba(255,107,107,0.15); color: var(--coral); }

.current-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
}

.current-amount span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-on-dark-muted);
    margin-left: 4px;
}

.current-amount .amount-strike {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    color: var(--text-on-dark-muted);
    gap: 1rem;
}

.next-invoice-label {
    font-size: 0.8125rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
}

/* Compact confirm button */
.changes-actions .cta-button {
    padding: 10px 22px;
    font-size: 0.9375rem;
    margin: 0;
    width: fit-content;
}

.changes-actions .cta-button.loading .button-text {
    display: none;
}

.changes-actions .cta-button.loading .spinner {
    display: inline-block;
    margin-left: 0;
}

/* Footer override for billing context */
.billing-section .calculator-footer {
    background: rgba(0,0,0,0.25);
}

/* Revised total display */
.total-comparison {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.total-strikethrough {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
}

.total-new {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--teal);
}

/* Changes card */
.changes-card {
    background: var(--card-bg);
    border: 1px solid var(--teal);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.changes-card-header {
    background: rgba(78,205,196,0.08);
    border-bottom: 1px solid rgba(78,205,196,0.2);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--teal);
}

.changes-card-header h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--teal);
    margin: 0;
}

.changes-card-body {
    padding: 1.5rem;
}

.changes-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
}

.changes-row:last-of-type { border-bottom: none; }

.changes-label {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
}

.changes-label small {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 300;
}

.changes-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-dark);
    text-align: right;
}

.changes-value.highlight {
    font-size: 1.375rem;
    color: var(--teal);
}

/* Timing notice */
.timing-notice {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
    line-height: 1.65;
}

.timing-notice strong {
    color: var(--text-on-dark);
    font-weight: 500;
}

.timing-notice.trial  { border-left: 3px solid var(--blue); }
.timing-notice.active { border-left: 3px solid var(--teal); }

/* Changes actions */
.changes-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-ghost {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-on-dark-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-ghost:hover {
    border-color: var(--text-on-dark-muted);
    color: var(--text-on-dark);
}

/* Toasts */
.toast {
    display: none;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.toast.visible { display: block; }

.toast--error   { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); color: var(--coral); }
.toast--success { background: rgba(34,197,94,0.1);   border: 1px solid rgba(34,197,94,0.3);   color: var(--green); }

/* ============================================
   Launch Page Styles
   ============================================ */

.launch-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 80px;
}

.launch-hero {
    text-align: center;
    margin: 1.5rem 0 2rem;
    max-width: 560px;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--teal);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.launch-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.launch-hero p {
    font-size: 1rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
    line-height: 1.6;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 900px;
}

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

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

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.action-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon svg {
    width: 22px;
    height: 22px;
}

.action-icon--teal   { background: rgba(78, 205, 196, 0.15); color: var(--teal); }
.action-icon--coral  { background: rgba(255, 107, 107, 0.15); color: var(--coral); }
.action-icon--blue   { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.action-icon--green  { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.action-icon--purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.action-icon--orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }

.action-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin: 0;
}

.action-card p {
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
}

.action-arrow {
    margin-top: auto;
    font-size: 1rem;
    color: var(--text-on-dark-muted);
    transition: color 0.2s;
}

.action-card:hover .action-arrow {
    color: var(--teal);
}

/* ============================================
   Profile Page Styles
   ============================================ */

.profile-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 80px;
}

.profile-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    margin-top: 2rem;
}

.profile-box h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}

.profile-box > p {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Profile form (scoped to avoid overriding global form styles) */
.profile-box .form-group {
    margin-bottom: 1.25rem;
}

.profile-box .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    margin-bottom: 0.5rem;
}

.profile-box .form-label span {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-left: 6px;
}

.input-wrapper {
    position: relative;
}

.profile-box .form-input {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-on-dark);
    transition: all 0.15s;
    box-sizing: border-box;
}

.profile-box .form-input::placeholder {
    color: var(--text-muted);
}

.profile-box .form-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.profile-box .form-input.error {
    border-color: var(--coral);
}

/* Subdomain field */
.subdomain-wrapper {
    display: flex;
    align-items: center;
    background: var(--section-dark-1);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.15s;
}

.subdomain-wrapper:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.subdomain-wrapper.error {
    border-color: var(--coral);
}

.subdomain-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-on-dark);
    min-width: 0;
}

.subdomain-wrapper input:focus {
    outline: none;
}

.subdomain-wrapper input::placeholder {
    color: var(--text-muted);
}

.subdomain-wrapper .subdomain-suffix {
    padding: 0.75rem 1rem 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-on-dark-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.subdomain-hint {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.profile-box .error-message {
    display: none;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--coral);
    margin-top: 1rem;
}

.profile-box .error-message.visible {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* hr divider (profile page) */
hr.divider {
    display: block;
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 1.75rem 0;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--teal);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: #3db8b0;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Signup Page Styles
   ============================================ */

.signup-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 60px;
}

.signup-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    margin-top: 2rem;
}

.signup-box h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}

.signup-box p {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

.package-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--teal);
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

/* Social auth buttons */
.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.social-btn--google {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.social-btn--google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.social-btn--microsoft {
    background: #2f2f2f;
    border: 1px solid #404040;
    color: white;
}

.social-btn--microsoft:hover {
    background: #3f3f3f;
}

.social-btn--google svg,
.social-btn--microsoft svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Divider with text (signup page) */
div.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
}

div.divider::before,
div.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

div.divider span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Signup form (scoped to avoid overriding global form styles) */
.signup-box .form-group {
    margin-bottom: 1rem;
}

.signup-box .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    margin-bottom: 0.5rem;
}

.signup-box .form-input {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-on-dark);
    transition: all 0.15s;
}

.signup-box .form-input::placeholder {
    color: var(--text-muted);
}

.signup-box .form-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.terms-note {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 300;
}

.terms-note a {
    color: var(--text-on-dark-muted);
    text-decoration: underline;
}

.signin-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.signin-link a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}

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

/* ============================================
   Package Page Styles
   ============================================ */

.invoice-due-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 0.25rem;
}

#checkoutButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

#checkoutButton.loading .button-text {
    display: none;
}

#checkoutButton.loading .spinner {
    display: block;
    margin-left: 0;
    vertical-align: unset;
}

/* ============================================
   Pricing Page Styles
   ============================================ */

.pricing-section {
    background: var(--section-dark-1);
    padding: 60px 0;
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text-on-dark-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.cancel-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(78, 205, 196, 0.2);
    color: var(--teal);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.cancel-note svg {
    width: 16px;
    height: 16px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.375rem;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Outfit', sans-serif;
}

.tab:hover {
    color: var(--text-on-dark);
}

.tab.active {
    background: var(--card-bg);
    color: var(--text-on-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Package cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.package-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--card-border);
    transition: all 0.2s;
}

.package-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-5px);
    border-color: var(--teal);
}

.package-card.popular {
    border-color: var(--teal);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--navy);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}

.package-description {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 1.5rem;
    min-height: 44px;
    font-weight: 300;
}

.package-price {
    margin-bottom: 1.5rem;
}

.package-card .price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
}

.price-period {
    font-size: 1rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
}

.package-features li svg {
    width: 20px;
    height: 20px;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    width: 100%;
    font-family: 'Outfit', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--teal);
    color: var(--navy);
}

.btn-primary:hover {
    background: #3db8b0;
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-customize {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    background: none;
    padding: 0.5rem;
    font-weight: 400;
}

.btn-customize:hover {
    color: var(--teal);
    background: none;
    transform: none;
}

/* Pricing calculator — scoped to avoid conflicts with package/billing calculator */
.pricing-section .calculator-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calculator-header {
    background: var(--navy);
    color: white;
    padding: 2rem;
    text-align: center;
}

.calculator-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    opacity: 0.9;
    font-size: 0.9375rem;
    font-weight: 300;
}

.pricing-section .calculator-body {
    padding: 2rem;
}

.calculator-section {
    margin-bottom: 2rem;
}

.calculator-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.calc-item:last-child {
    border-bottom: none;
}

.calc-item-info h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-on-dark);
}

.calc-item-info p {
    font-size: 0.8125rem;
    color: var(--text-on-dark-muted);
    margin-top: 0.125rem;
    font-weight: 300;
}

.calc-item-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-item-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-on-dark);
    min-width: 70px;
    text-align: right;
}

/* Quantity controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: 'Outfit', sans-serif;
}

.quantity-btn:hover:not(:disabled) {
    background: #e5e7eb;
    color: var(--teal);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-value {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.2s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background-color: var(--teal);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Total section */
.pricing-section .calculator-total {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
}

.total-label {
    font-size: 1rem;
    color: var(--text-on-dark-muted);
    font-weight: 400;
}

.total-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-on-dark);
}

.total-amount span {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-on-dark-muted);
}

.pricing-section .calculator-cta {
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
}

.pricing-section .calculator-cta .btn {
    font-size: 1rem;
    padding: 1rem 2rem;
}

.cta-note {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* FAQ / Notes */
.pricing-notes {
    margin-top: 3rem;
    text-align: center;
}

.pricing-notes h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 1rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.note-item {
    display: flex;
    gap: 0.75rem;
}

.note-item svg {
    width: 20px;
    height: 20px;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.note-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Add-ons section */
.pricing-addons {
    margin-top: 3rem;
}

.pricing-addons > p {
    text-align: center;
}

.addon-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.addon-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.addon-row--2 {
    grid-template-columns: repeat(2, 1fr);
}

.addon-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.addon-icon {
    width: 32px;
    height: 32px;
    color: var(--text-on-dark-muted);
}

.addon-icon svg {
    width: 100%;
    height: 100%;
}

.addon-icon--blue { color: var(--blue); }
.addon-icon--teal { color: var(--teal); }

.addon-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-on-dark);
}

.addon-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-on-dark);
}

.addon-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-on-dark-muted);
}

/* Module add-on boxes (API, MCP) */
.addon-box--module {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
}

.addon-box--module .addon-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.addon-module-content {
    flex: 1;
}

.addon-description {
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.addon-box--module .addon-price {
    font-size: 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Pricing page responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

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

    .tabs {
        width: 100%;
    }

    .tab {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .calc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .calc-item-control {
        width: 100%;
        justify-content: space-between;
    }

    .pricing-section .calculator-total {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .addon-row--3,
    .addon-row--2 {
        grid-template-columns: 1fr;
    }

    .addon-box--module {
        flex-direction: column;
        text-align: center;
    }

    .addon-module-content {
        text-align: center;
    }
}
