/* ==========================================================================
   SmartFluent website styles

   Organization:
   1. Design tokens (light + dark themes)
   2. Base styles
   3. Layout helpers
   4. Shared components (buttons, cards, forms, badges, section heads, CTA box)
   5. Site navigation
   6. Site footer
   7. Page sections (home, ROI calculators, legal, contact form)

   Conventions:
   - Mobile-first; breakpoints: 768px (md) and 1024px (lg)
   - Colors are HSL triplets consumed via hsl(var(--token) / <alpha>)
   - Page-specific classes are prefixed: .home-*, .roi-*, .varoi-*, .legal-*
   ========================================================================== */

/* Self-hosted variable fonts (served from /fonts/ by the website static middleware). */
/* Each file covers the full 100-900 weight range, so all weights used in style.css */
/* (400/500/600/700) render from a single file per family. */

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/geist/Geist-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/geist-mono/GeistMono-VariableFont_wght.ttf")
        format("truetype");
}

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
    --background: 223 54% 97%;
    --foreground: 225 19% 25%;
    --card: 223 54% 97%;
    --card-foreground: 225 19% 25%;
    --popover: 223 54% 97%;
    --popover-foreground: 225 19% 25%;
    --primary: 230 100% 64%;
    --primary-foreground: 223 54% 97%;
    --secondary: 248 86% 80%;
    --secondary-foreground: 225 19% 25%;
    --muted: 223 40% 94%;
    --muted-foreground: 225 15% 45%;
    --accent: 248 86% 80%;
    --accent-foreground: 225 19% 25%;
    --destructive: 37 100% 77%;
    --destructive-foreground: 225 19% 25%;
    --border: 223 30% 88%;
    --input: 223 30% 88%;
    --ring: 230 100% 64%;
    --cta: 156 78% 58%;
    --cta-foreground: 225 19% 25%;

    --radius: 0.5rem;

    --font-sans:
        "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-mono:
        "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        monospace;

    /* Frequently reused non-token colors (Tailwind slate / status colors) */
    --slate-50: 210 40% 98%;
    --slate-100: 210 40% 96%;
    --slate-200: 214 32% 91%;
    --slate-300: 213 27% 84%;
    --slate-400: 215 20% 65%;
    --slate-600: 215 19% 35%;
    --slate-700: 215 25% 27%;
    --slate-800: 217 33% 17%;
    --slate-900: 222 47% 11%;
    --green-400: 142 69% 58%;
    --green-500: 142 71% 45%;
    --green-600: 142 76% 36%;
    --red-500: 0 84% 60%;
    --purple-600: 271 81% 56%;
    --purple-100: 269 100% 95%;
}

.dark {
    --background: 225 19% 12%;
    --foreground: 223 54% 95%;
    --card: 225 19% 15%;
    --card-foreground: 223 54% 95%;
    --popover: 225 19% 15%;
    --popover-foreground: 223 54% 95%;
    --primary: 230 100% 70%;
    --primary-foreground: 225 19% 12%;
    --secondary: 248 86% 85%;
    --secondary-foreground: 225 19% 12%;
    --muted: 225 19% 20%;
    --muted-foreground: 223 30% 65%;
    --accent: 248 86% 85%;
    --accent-foreground: 225 19% 12%;
    --destructive: 37 100% 82%;
    --destructive-foreground: 225 19% 12%;
    --border: 225 19% 22%;
    --input: 225 19% 22%;
    --ring: 230 100% 70%;
    --cta: 156 78% 65%;
    --cta-foreground: 225 19% 12%;
}

/* ==========================================================================
   2. Base styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* Anchored sections stop below the fixed nav */
[id] {
    scroll-margin-top: 6rem;
}

[x-cloak] {
    display: none !important;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.container {
    width: 100%;
    padding-inline: 1rem;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .container {
        padding-inline: 2rem;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ==========================================================================
   4. Shared components
   ========================================================================== */

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: calc(var(--radius) - 0.125rem);
    background: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-sm {
    height: 2.25rem;
    padding: 0.5rem 0.75rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0.5rem 2rem;
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-ghost {
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Large rectangular call-to-action links (hero/CTA boxes) */
.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-cta:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: scale(1.05);
}

.btn-cta-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-cta-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-cta-light {
    background-color: white;
    color: hsl(var(--slate-900));
}

.btn-cta-light:hover {
    background-color: hsl(var(--slate-100));
}

/* --- Cards --- */

.card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

/* --- Forms --- */

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

.input,
.textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 0.875rem;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.input {
    height: 2.5rem;
}

.input::placeholder,
.textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.input:disabled,
.textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-hint {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.field-error {
    font-size: 0.875rem;
    color: hsl(var(--red-500));
    margin-top: 0.25rem;
}

/* --- Badges --- */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.125rem 0.5rem;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Section heads (centered title + subtitle) --- */

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-head p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .section-head h2 {
        font-size: 3rem;
    }

    .section-head p {
        font-size: 1.25rem;
    }
}

/* --- Dark CTA box (home final CTA + calculator pages) --- */

.cta-box {
    background-color: hsl(var(--slate-900));
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.dark .cta-box {
    background-color: hsl(var(--slate-800));
}

.cta-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-box p {
    color: hsl(var(--slate-300));
}

@media (min-width: 1024px) {
    .cta-box {
        padding: 3rem;
    }

    .cta-box h2 {
        font-size: 1.875rem;
    }
}

/* ==========================================================================
   5. Site navigation
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
}

.site-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    transition: color 0.15s ease;
}

.nav-logo:hover {
    color: hsl(var(--primary) / 0.8);
}

.nav-links {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-auth {
    display: none;
}

.nav-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
}

.nav-mobile-menu .btn {
    justify-content: flex-start;
    width: 100%;
}

.nav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        flex: 1;
        margin-inline: 2rem;
    }

    .nav-auth {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-mobile-toggle,
    .nav-mobile-menu {
        display: none;
    }
}

/* --- Theme toggle --- */

.theme-toggle {
    position: relative;
}

.theme-icon-dark {
    display: none;
}

.dark .theme-icon-light {
    display: none;
}

.dark .theme-icon-dark {
    display: block;
}

.theme-toggle-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 50;
    min-width: 8rem;
    padding: 0.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--popover));
    color: hsl(var(--popover-foreground));
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.theme-toggle-menu button {
    display: block;
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: none;
    border-radius: calc(var(--radius) - 0.25rem);
    background: none;
    color: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.theme-toggle-menu button:hover,
.theme-toggle-menu button.is-active {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* ==========================================================================
   6. Site footer
   ========================================================================== */

.site-footer {
    background-color: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
}

.footer-company h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.footer-company p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: hsl(var(--muted-foreground));
    transition: color 0.15s ease;
}

.footer-socials a:hover {
    color: hsl(var(--primary));
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.footer-column a {
    transition: color 0.15s ease;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.footer-bottom p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.15s ease;
}

.footer-legal-links a:hover {
    color: hsl(var(--primary));
}

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

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom p {
        text-align: left;
    }

    .footer-legal-links {
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   7a. Home page
   ========================================================================== */

/* --- Hero --- */

.home-hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
    min-height: 80vh;
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.1),
        hsl(var(--background)),
        hsl(var(--secondary) / 0.1)
    );
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 60vh;
}

.home-hero-content {
    text-align: left;
}

.home-hero-title {
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 2rem;
    max-width: 42rem;
}

.home-hero-highlight {
    color: hsl(var(--primary));
}

.home-hero-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.home-hero-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-hero-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.home-hero-point-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary) / 0.2);
}

.home-hero-point-icon svg {
    width: 0.75rem;
    height: 0.75rem;
    color: hsl(var(--primary));
}

.home-hero-point h3 {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.home-hero-point p {
    color: hsl(var(--muted-foreground));
}

.home-hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 32rem;
}

.home-hero-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 768px) {
    .home-hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .home-hero-title {
        font-size: 3rem;
    }

    .home-hero-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .home-hero-content {
        grid-column: span 7 / span 7;
    }

    .home-hero-image-col {
        grid-column: span 5 / span 5;
    }
}

/* --- Call-to-action cards --- */

.home-cta-cards {
    padding-block: 4rem;
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.05),
        hsl(var(--background)),
        hsl(var(--secondary) / 0.05)
    );
}

.home-cta-cards-head {
    text-align: center;
    margin-bottom: 3rem;
}

.home-cta-cards-head h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.home-cta-cards-head p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin-inline: auto;
}

.home-cta-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .home-cta-cards-head h2 {
        font-size: 2.25rem;
    }

    .home-cta-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.home-cta-card {
    background-color: hsl(var(--slate-900) / 0.95);
    backdrop-filter: blur(4px);
    border-color: hsl(var(--slate-700));
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.home-cta-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.home-cta-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.home-cta-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.home-cta-card-icon-primary {
    background-color: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.home-cta-card-icon-secondary {
    background-color: hsl(var(--secondary) / 0.2);
    color: hsl(var(--secondary));
}

.home-cta-card-text {
    color: hsl(var(--slate-300));
    margin-bottom: 1rem;
}

.home-cta-card-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: calc(var(--radius) - 0.125rem);
    font-weight: 500;
    text-align: center;
    transition: background-color 0.15s ease;
}

.home-cta-card-btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.home-cta-card-btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.home-cta-card-btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.home-cta-card-btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.9);
}

/* --- Trusted by --- */

.home-trusted {
    padding-top: 4rem;
    padding-bottom: 1.5rem;
    background-color: hsl(var(--muted) / 0.9);
}

.home-trusted-head {
    text-align: center;
}

.home-trusted-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-trusted-head p {
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin-inline: auto;
}

.home-trusted-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.home-trusted-logo {
    width: 14rem;
    height: 10rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-trusted-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (min-width: 768px) {
    .home-trusted-head h2 {
        font-size: 1.875rem;
    }

    .home-trusted-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-trusted-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* --- Features --- */

.home-features {
    padding-block: 5rem;
    background-color: hsl(var(--muted) / 0.3);
}

.home-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.home-features-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-features-intro h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.home-features-lead {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.home-features-note {
    color: hsl(var(--muted-foreground));
}

.home-features-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-features-intro h2 {
        font-size: 3rem;
    }

    .home-features-lead {
        font-size: 1.25rem;
    }

    .home-features-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-features-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .home-features-intro {
        grid-column: span 4 / span 4;
    }

    .home-features-cards {
        grid-column: span 8 / span 8;
    }
}

.home-feature-card {
    background-color: hsl(var(--purple-600));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.home-feature-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.home-feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background-color: rgb(255 255 255 / 0.2);
    color: white;
}

.home-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.home-feature-card p {
    font-size: 0.875rem;
    color: hsl(var(--purple-100));
    margin-bottom: 1rem;
}

.home-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-feature-badge {
    padding: 0.25rem 0.5rem;
    background-color: white;
    color: hsl(var(--purple-600));
}

/* --- About --- */

.home-about {
    padding-block: 5rem;
}

.home-mission {
    margin-bottom: 2rem;
}

.home-mission h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.home-mission-text {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    text-align: center;
    max-width: 56rem;
    margin-inline: auto;
}

.home-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-value-card {
    text-align: center;
}

.home-value-content {
    padding-top: 1.5rem;
}

.home-value-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.home-value-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.home-value-card p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* --- Why Choose SmartFluent (gradient tabs) --- */

.home-why {
    background-image: linear-gradient(120deg, #475fff, #a99dfa);
    border-radius: 1rem;
    padding: 3rem;
}

.home-why-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.home-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .home-why-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .home-why-tabs {
        grid-column: span 4 / span 4;
    }

    .home-why-content {
        grid-column: span 8 / span 8;
    }
}

.home-why-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.home-why-tab {
    width: 100%;
    padding: 1.5rem;
    border: none;
    border-radius: var(--radius);
    background-color: rgb(255 255 255 / 0.1);
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.5s ease;
}

.home-why-tab:hover {
    background-color: rgb(255 255 255 / 0.2);
}

.home-why-tab-active,
.home-why-tab-active:hover {
    background-color: white;
    color: hsl(var(--purple-600));
}

.home-why-tab h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.home-why-tab p {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.625;
}

.home-why-panel {
    animation: home-why-panel-in 0.3s ease;
}

@keyframes home-why-panel-in {
    from {
        opacity: 0;
        transform: translateX(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home-why-card {
    background-color: rgb(255 255 255 / 0.95);
    backdrop-filter: blur(4px);
}

.dark .home-why-card {
    background-color: hsl(var(--slate-900) / 0.95);
}

.home-why-card .card-title {
    color: hsl(var(--slate-900));
}

.dark .home-why-card .card-title {
    color: white;
}

.home-why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: hsl(var(--slate-700));
}

.dark .home-why-list {
    color: hsl(var(--slate-300));
}

.home-why-list li {
    display: flex;
    align-items: flex-start;
}

.home-why-dot {
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.5rem;
    margin-right: 0.75rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
}

.home-why-list h4 {
    font-weight: 600;
    color: hsl(var(--slate-900));
    margin-bottom: 0.25rem;
}

.dark .home-why-list h4 {
    color: white;
}

.home-why-text {
    color: hsl(var(--slate-700));
    margin-bottom: 1rem;
}

.dark .home-why-text {
    color: hsl(var(--slate-300));
}

.home-why-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--slate-700));
}

.dark .home-why-checklist {
    color: hsl(var(--slate-300));
}

.home-why-checklist li {
    display: flex;
    align-items: center;
}

.home-why-checklist svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
    color: hsl(var(--primary));
}

/* --- Contact --- */

.home-contact {
    padding-block: 5rem;
    background-color: hsl(var(--muted) / 0.3);
}

.home-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .home-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.home-contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.home-contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-contact-item {
    display: flex;
    align-items: center;
}

.home-contact-item-top {
    align-items: flex-start;
}

.home-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.home-contact-icon-address {
    margin-top: 0.25rem;
}

.home-contact-text {
    font-size: 1.125rem;
}

.home-contact-company {
    font-weight: 600;
}

/* --- Final CTA (overlaps the footer) --- */

.home-final-cta {
    position: relative;
    z-index: 10;
    margin-bottom: -30px;
}

.home-final-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.home-final-cta-action {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .home-final-cta-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .home-final-cta-text {
        grid-column: span 8 / span 8;
    }

    .home-final-cta-action {
        grid-column: span 4 / span 4;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   7b. ROI calculator page
   ========================================================================== */

/* --- Hero --- */

.roi-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.1),
        hsl(var(--background)),
        hsl(var(--secondary) / 0.1)
    );
}

.roi-hero-inner {
    text-align: center;
    max-width: 56rem;
    margin-inline: auto;
}

.roi-hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.roi-hero p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .roi-hero h1 {
        font-size: 2.25rem;
    }

    .roi-hero p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .roi-hero h1 {
        font-size: 3rem;
    }
}

/* --- Calculator section --- */

.roi-calculator-section {
    padding-block: 3rem;
    background-color: hsl(var(--muted) / 0.3);
}

.roi-calculator {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Input form --- */

.roi-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .roi-input-grid-2,
    .roi-input-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 1024px) {
    .roi-input-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Results grid --- */

.roi-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .roi-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Time, Productivity & QA Effectiveness card --- */

.roi-results-card-slate {
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--slate-50)),
        hsl(var(--slate-100))
    );
}

.dark .roi-results-card-slate {
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--slate-900)),
        hsl(var(--slate-800))
    );
}

.roi-time-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roi-subsection {
    border-radius: var(--radius);
    padding: 1rem;
}

.roi-subsection-primary {
    background-color: hsl(var(--primary) / 0.05);
}

.dark .roi-subsection-primary {
    background-color: hsl(var(--primary) / 0.1);
}

.roi-subsection-secondary {
    background-color: hsl(var(--secondary) / 0.05);
}

.dark .roi-subsection-secondary {
    background-color: hsl(var(--secondary) / 0.1);
}

.roi-subsection-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.roi-subsection-primary .roi-subsection-title {
    color: hsl(var(--primary));
}

.roi-subsection-secondary .roi-subsection-title {
    color: hsl(var(--secondary));
}

.roi-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roi-row-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.roi-row-value {
    font-weight: 600;
}

.roi-row-value-primary {
    color: hsl(var(--primary));
}

.roi-row-value-secondary {
    color: hsl(var(--secondary));
}

.roi-row-divider-primary {
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--primary) / 0.2);
}

.roi-row-divider-secondary {
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--secondary) / 0.2);
}

/* --- Cost & Net Savings card --- */

.roi-results-card-primary {
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.05),
        hsl(var(--primary) / 0.1)
    );
}

.dark .roi-results-card-primary {
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.2),
        hsl(var(--primary) / 0.3)
    );
}

.roi-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--primary));
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.roi-card-title-lg {
    font-size: 1.5rem;
}

.roi-cost-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roi-hero-stat {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dark .roi-hero-stat {
    background-color: hsl(var(--slate-900));
}

.roi-hero-stat-inner {
    text-align: center;
    margin-bottom: 1rem;
}

.roi-hero-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.25rem;
}

.roi-hero-stat-unit {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
}

.roi-hero-stat-net {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.roi-hero-stat-caption {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-top: 0.5rem;
}

.roi-stat-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roi-stat-box {
    background-color: rgb(255 255 255 / 0.5);
    border-radius: var(--radius);
    padding: 1rem;
}

.dark .roi-stat-box {
    background-color: hsl(var(--slate-900) / 0.5);
}

.roi-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roi-stat-row-mb {
    margin-bottom: 0.25rem;
}

.roi-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.roi-stat-value {
    font-weight: 600;
}

.roi-stat-value-green {
    font-weight: 700;
    font-size: 1.125rem;
    color: hsl(var(--green-600));
}

.dark .roi-stat-value-green {
    color: hsl(var(--green-400));
}

.roi-stat-value-primary {
    font-weight: 700;
    font-size: 1.125rem;
    color: hsl(var(--primary));
}

.roi-stat-hint {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.roi-note {
    background-color: rgb(255 255 255 / 0.7);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.dark .roi-note {
    background-color: hsl(var(--slate-900) / 0.7);
}

.roi-note p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
}

/* --- CTA section --- */

.roi-cta-section {
    padding-block: 4rem;
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.05),
        hsl(var(--secondary) / 0.05)
    );
}

.roi-cta-box {
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
}

.roi-cta-text {
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-inline: auto;
}

.roi-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .roi-cta-buttons {
        flex-direction: row;
    }
}

/* ==========================================================================
   7c. Voice agent ROI calculator page
   ========================================================================== */

/* --- Hero --- */

.varoi-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.1),
        hsl(var(--background)),
        hsl(var(--secondary) / 0.1)
    );
}

.varoi-hero-inner {
    text-align: center;
    max-width: 56rem;
    margin-inline: auto;
}

.varoi-hero-inner h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.varoi-hero-inner p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .varoi-hero-inner h1 {
        font-size: 2.25rem;
    }

    .varoi-hero-inner p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .varoi-hero-inner h1 {
        font-size: 3rem;
    }
}

/* --- Calculator section --- */

.varoi-calculator {
    padding-block: 3rem;
    background-color: hsl(var(--muted) / 0.3);
}

.varoi-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Input form --- */

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

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

@media (min-width: 1024px) {
    .varoi-form-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Results card --- */

.varoi-results-card {
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--slate-50)),
        hsl(var(--slate-100))
    );
}

.dark .varoi-results-card {
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--slate-900)),
        hsl(var(--slate-800))
    );
}

.varoi-results-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.varoi-text-red {
    color: hsl(var(--red-500));
}

.varoi-text-green {
    color: hsl(var(--green-500));
}

/* --- Stats row --- */

.varoi-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .varoi-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.varoi-stat-box {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.dark .varoi-stat-box {
    background-color: hsl(var(--slate-900));
}

.varoi-stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.varoi-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.varoi-stat-note {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* --- Bar visualization --- */

.varoi-bar-box {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.dark .varoi-bar-box {
    background-color: hsl(var(--slate-900));
}

.varoi-bar-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.varoi-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.varoi-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.varoi-bar-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.varoi-bar-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.varoi-bar-track {
    height: 2rem;
    background-color: hsl(var(--slate-200));
    border-radius: 9999px;
    overflow: hidden;
}

.dark .varoi-bar-track {
    background-color: hsl(var(--slate-700));
}

.varoi-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.varoi-bar-fill-red {
    background-color: hsl(var(--red-500));
}

.varoi-bar-fill-green {
    background-color: hsl(var(--green-500));
}

/* --- Savings highlight card --- */

.varoi-savings-card {
    background-color: hsl(var(--slate-800));
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    text-align: center;
}

.dark .varoi-savings-card {
    background-color: hsl(var(--slate-700));
}

.varoi-savings-label {
    font-size: 0.875rem;
    color: hsl(var(--slate-300));
    margin-bottom: 0.5rem;
}

.varoi-savings-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.varoi-savings-multiplier {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--green-400));
}

.varoi-savings-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--slate-600));
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
}

.varoi-savings-total-label {
    color: hsl(var(--slate-400));
}

.varoi-savings-total-white {
    color: white;
    font-weight: 600;
}

.varoi-savings-total-green {
    color: hsl(var(--green-400));
    font-weight: 600;
}

/* --- Explanation --- */

.varoi-explanation {
    background-color: rgb(255 255 255 / 0.7);
    border-radius: 0.5rem;
    padding: 1rem;
}

.dark .varoi-explanation {
    background-color: hsl(var(--slate-900) / 0.7);
}

.varoi-explanation p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
}

/* --- CTA section --- */

.varoi-cta {
    padding-block: 4rem;
    background-image: linear-gradient(
        to bottom right,
        hsl(var(--primary) / 0.05),
        hsl(var(--secondary) / 0.05)
    );
}

.varoi-cta-box {
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
}

.varoi-cta-box p {
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.varoi-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .varoi-cta-buttons {
        flex-direction: row;
    }
}

/* ==========================================================================
   7d. Legal pages
   ========================================================================== */

.legal-page {
    /* 6rem fixed-nav offset (old layout pt-24) + 5rem page padding (old py-20) */
    padding-top: 11rem;
    padding-bottom: 5rem;
}

.legal-page .container {
    max-width: 56rem;
}

.legal-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.legal-content {
    color: hsl(var(--muted-foreground));
}

.legal-content > section + section {
    margin-top: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.legal-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.legal-content p + p,
.legal-content p + div,
.legal-content div + div,
.legal-content p + ul,
.legal-content ul + p,
.legal-content ul + div,
.legal-content div + p {
    margin-top: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-content li + li {
    margin-top: 0.5rem;
}

.legal-content strong {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.legal-content a {
    color: hsl(var(--primary));
    text-decoration: underline;
    transition: color 0.15s ease;
}

.legal-content a:hover {
    color: hsl(var(--primary) / 0.8);
}

/* ==========================================================================
   7e. Contact form
   ========================================================================== */

.contact-form {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .contact-form {
        padding: 2rem;
    }
}

/* --- Form layout --- */

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

@media (min-width: 768px) {
    .contact-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Fields --- */

.contact-form .input,
.contact-form .textarea {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.contact-form .input {
    height: auto;
}

.contact-form .textarea {
    resize: none;
}

.contact-form .input.contact-form-input-error,
.contact-form .textarea.contact-form-input-error {
    border-color: hsl(var(--red-500));
}

.contact-form-required {
    color: hsl(var(--red-500));
}

/* --- General error box --- */

.contact-form-error-box {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid hsl(var(--red-500) / 0.3);
    border-radius: 0.5rem;
    background-color: hsl(var(--red-500) / 0.08);
}

.contact-form-error-box p {
    font-size: 0.875rem;
    color: hsl(var(--red-500));
}

/* --- Submit button + loading state --- */

.contact-form-submit {
    width: 100%;
    height: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.contact-form-submit-loading {
    display: none;
}

.contact-form form.htmx-request .contact-form-submit-label {
    display: none;
}

.contact-form form.htmx-request .contact-form-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-form form.htmx-request .contact-form-submit {
    pointer-events: none;
    opacity: 0.5;
}

.contact-form-spinner {
    width: 1.25rem;
    height: 1.25rem;
    animation: contact-form-spin 1s linear infinite;
}

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

/* --- Success card --- */

.contact-form-success {
    text-align: center;
}

.contact-form-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    background-color: hsl(var(--green-500) / 0.15);
}

.contact-form-success-icon svg {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--green-600));
}

.contact-form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--green-600));
}

.dark .contact-form-success-icon svg,
.dark .contact-form-success h3 {
    color: hsl(var(--green-400));
}

.contact-form-success p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.contact-form-again {
    height: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}
