/* ===================================================================
   Podoflux — Landing page styles
   Paleta basada en el tema claro de podosoftmvp (slate + teal)
   =================================================================== */

:root {
    --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif;

    --slate-50: #F4F6F8;
    --slate-100: #E2E7ED;
    --slate-200: #C8D1DC;
    --slate-300: #9DAABB;
    --slate-400: #7389A0;
    --slate-500: #5E7080;
    --slate-600: #4A5A6B;
    --slate-700: #374455;
    --slate-800: #253040;
    --slate-900: #151E2B;
    --slate-950: #0A1017;

    --teal-50: #E6F4F3;
    --teal-100: #C2E4E2;
    --teal-200: #8DCBC8;
    --teal-300: #3DADA0;
    --teal-400: #2A9C8F;
    --teal-500: #1F8A7D;
    --teal-600: #18746A;
    --teal-700: #125F57;
    --teal-800: #0D4A44;
    --teal-900: #083530;

    --accent: var(--teal-500);
    --accent-dark: var(--teal-600);

    --bg: #ffffff;
    --bg-subtle: var(--slate-50);
    --text: var(--slate-800);
    --text-muted: var(--slate-500);
    --border: var(--slate-100);

    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(21, 30, 43, 0.06);
    --shadow-md: 0 6px 16px -4px rgba(21, 30, 43, 0.10), 0 2px 6px -2px rgba(21, 30, 43, 0.06);
    --shadow-lg: 0 20px 40px -12px rgba(21, 30, 43, 0.18);

    --container-w: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--slate-900);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 1000;
}

.skip-link:focus {
    left: 0;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--teal-50);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(155deg, var(--teal-400), var(--teal-600));
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -8px rgba(18, 95, 87, 0.65);
}

.btn-primary:hover {
    background: linear-gradient(155deg, var(--teal-400), var(--teal-700));
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 24px -8px rgba(18, 95, 87, 0.7);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border-color: var(--slate-200);
    color: var(--slate-700);
}

.btn-outline:hover {
    border-color: var(--teal-300);
    color: var(--accent-dark);
    background: var(--teal-50);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-600);
}

.btn-ghost:hover {
    color: var(--accent-dark);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===================================================================
   Header — floating pill navbar, not a plain rectangle
   =================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 1rem;
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(200, 209, 220, 0.6);
    border-radius: var(--radius-full);
    padding: 0.6rem 0.75rem 0.6rem 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled .nav-shell {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.9);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--slate-900);
    flex: 1 1 0;
}

.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: none;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex: 1 1 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--slate-200);
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    width: 1.1rem;
    height: 2px;
    background: var(--slate-700);
    margin-inline: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.5rem 1rem 0;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu a:not(.btn) {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    font-weight: 500;
}

.mobile-menu a:not(.btn):hover {
    background: var(--slate-50);
}

.mobile-menu .btn {
    margin-top: 0.4rem;
}

@media (max-width: 860px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 32rem;
    background:
        radial-gradient(38rem 20rem at 15% 0%, rgba(31, 138, 125, 0.10), transparent 60%),
        radial-gradient(30rem 18rem at 85% 10%, rgba(61, 173, 160, 0.12), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
}
.hero-grid > * { min-width: 0; }

.hero-copy h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.15rem);
    line-height: 1.12;
    margin-bottom: 1.1rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

.hero-trust svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* --- Hero visual: mock dashboard card, no external image needed --- */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.55;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, var(--teal-200), transparent 70%);
    top: -40px;
    right: -20px;
}

.blob-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 70% 70%, var(--teal-100), transparent 70%);
    bottom: -30px;
    left: -10px;
}

.mock-card {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@media (min-width: 981px) {
    .mock-card { transform: rotate(-1deg); }
}

.mock-card-head {
    display: flex;
    gap: 6px;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--slate-50);
}

.mock-card-head span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--slate-200);
}

.mock-card-head span:first-child {
    background: #ECA6A6;
}

.mock-card-head span:nth-child(2) {
    background: #EFCB8F;
}

.mock-card-head span:nth-child(3) {
    background: var(--teal-300);
}

.mock-card-body {
    padding: 1.4rem;
}

.mock-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.3rem;
}

.mock-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--teal-300), var(--teal-500));
    flex-shrink: 0;
}

.mock-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mock-line {
    height: 9px;
    border-radius: var(--radius-full);
    background: var(--slate-200);
}

.mock-line.light {
    background: var(--slate-100);
}

.mock-line.w-60 {
    width: 60%;
}

.mock-line.w-40 {
    width: 40%;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.3rem;
}

.mock-stat {
    background: var(--slate-50);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.5rem;
    text-align: center;
}

.mock-stat-value {
    display: block;
    font-weight: 700;
    color: var(--slate-900);
    font-size: 1.05rem;
}

.mock-stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 70px;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
}

.mock-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--teal-300), var(--teal-500));
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.55rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-700);
    box-shadow: var(--shadow-md);
}

.float-chip svg {
    color: var(--accent);
}

.chip-reminder {
    top: 8%;
    left: -4%;
    animation: float 5s ease-in-out infinite;
}

.chip-check {
    bottom: 10%;
    right: -6%;
    animation: float 5s ease-in-out infinite 1.2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        min-height: 360px;
    }

    .float-chip {
        display: none;
    }
}

/* ===== Marquee strip ===== */
.marquee-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    padding: 1.15rem 0;
}

.marquee-strip p {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ===================================================================
   Section head (shared)
   =================================================================== */
.section-head {
    max-width: 40rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===================================================================
   Features
   =================================================================== */
.features {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-300), var(--teal-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-100);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: var(--radius-md);
    background: var(--teal-50);
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-card-soon {
    background: var(--slate-50);
}

.soon-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate-500);
    background: var(--slate-100);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   Pricing
   =================================================================== */
.pricing {
    padding: 6rem 0;
    background: var(--bg-subtle);
}

.section-head-tight {
    margin-bottom: 2.5rem;
}

.pricing-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border: 1px dashed var(--slate-200);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.pricing-soon svg {
    color: var(--accent);
    flex-shrink: 0;
    width: 1.4em;
    height: 1.4em;
}

/* ===================================================================
   Contact
   =================================================================== */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
}
.contact-grid > * { min-width: 0; }

.contact-copy h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.1rem);
    margin-bottom: 1rem;
}

.contact-copy p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.contact-points {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-points li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--slate-700);
    min-width: 0;
}
.contact-points li span {
    overflow-wrap: anywhere;
}

.contact-points svg {
    color: var(--accent);
    background: var(--teal-50);
    border-radius: 50%;
    padding: 0.4rem;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
}

.form-row input,
.form-row textarea {
    width: 100%;
    min-width: 0;
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--slate-50);
    color: var(--slate-900);
    resize: vertical;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 138, 125, 0.12);
}

.field-error {
    display: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: #C4322A;
    align-items: center;
    gap: 0.35rem;
}

.field-error:not(:empty) {
    display: flex;
}

.form-row.has-error input,
.form-row.has-error textarea {
    border-color: #E5837C;
    background: #FDF4F3;
}

.form-row.has-error input:focus,
.form-row.has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(196, 50, 42, 0.12);
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row-split > .form-row {
    min-width: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.form-note {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--teal-50);
    color: var(--teal-700);
}

.form-note.is-error {
    background: #FBEAEA;
    color: #B3261E;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-row-split {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand {
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-brand .brand-mark {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    padding: 0.3rem;
    box-sizing: border-box;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--slate-400);
    max-width: 22rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--slate-400);
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--teal-300);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--slate-500);
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* ===================================================================
   Button loading state
   =================================================================== */
.btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.is-loading .btn-label {
    visibility: hidden;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: btn-spin 0.7s linear infinite;
}

.btn-outline.is-loading::after {
    border-color: rgba(31, 138, 125, 0.25);
    border-top-color: var(--accent);
}

.btn {
    position: relative;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================================================
   Confirmation modal
   =================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 16, 23, 0.55);
    backdrop-filter: blur(4px);
    animation: modal-fade 0.2s ease;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.25rem 2rem 2rem;
    text-align: center;
    animation: modal-pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: var(--slate-50);
    color: var(--slate-500);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    background: var(--slate-100);
    color: var(--slate-800);
}

.modal-close svg {
    width: 1rem;
    height: 1rem;
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--teal-50);
    color: var(--accent);
}

.modal-icon svg {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 2.5;
}

.modal-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

@keyframes modal-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .modal-overlay,
    .modal-card,
    .btn.is-loading::after {
        animation: none;
    }
}