/**
 * Shipinville new theme – custom styles (Tailwind handles utilities via CDN).
 * Extend here for styles that are awkward as utility classes.
 */

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fafafa;
    color: #18181b;
    -webkit-font-smoothing: antialiased;
}

.shadcn-card {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    border-radius: 0.75rem;
}

.shadcn-input {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    color: #18181b;
    transition: all 0.15s ease-in-out;
}

.shadcn-input:focus {
    outline: none;
    border-color: #23528a;
    box-shadow: 0 0 0 2px rgba(35, 82, 138, 0.15);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f4f4f5;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

.web-hero-image {
    min-height: 16rem;
}

@media (min-width: 1024px) {
    .web-hero-image {
        min-height: 26rem;
    }

    .web-hero-image img {
        min-height: 26rem;
    }
}

.web-hero-gradient {
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 90% 70% at 10% 0%, rgba(35, 82, 138, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 95% 10%, rgba(70, 114, 170, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #eef3f9 0%, #f8fafc 40%, #ffffff 100%);
}

.web-page-hero {
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(35, 82, 138, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #eef3f9 0%, #ffffff 100%);
}

@media (max-width: 639px) {
    .web-page-hero-row {
        flex-wrap: wrap;
    }

    .web-page-hero-row .shrink-0 {
        margin-left: auto;
    }
}

.web-prose {
    color: #52525b;
    font-size: 1rem;
    line-height: 1.75;
}

.web-prose h2,
.web-prose h3,
.web-prose h4,
.web-prose h5 {
    color: #18181b;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.web-prose h2 { font-size: 1.25rem; }
.web-prose h3 { font-size: 1.125rem; }
.web-prose h4 { font-size: 1rem; }

.web-prose p,
.web-prose li {
    margin-bottom: 0.875rem;
}

.web-prose ul,
.web-prose ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.web-prose ul { list-style-type: disc; }
.web-prose ol { list-style-type: decimal; }

.web-prose a {
    color: #23528a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.web-prose a:hover {
    color: #1d4372;
}

.web-prose strong {
    color: #18181b;
    font-weight: 600;
}

.web-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.8125rem;
}

.web-prose table th,
.web-prose table td {
    border: 1px solid #e4e4e7;
    padding: 0.625rem 0.75rem;
    text-align: left;
}

.web-prose table th {
    background: #f4f4f5;
    font-weight: 600;
    color: #18181b;
}

.web-feature-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

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

@media (min-width: 1024px) {
    .web-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.web-feature-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.web-feature-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.web-step-card {
    position: relative;
    overflow: hidden;
}

.web-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #23528a, #6d92bf);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.web-step-card:hover::before {
    opacity: 1;
}

.web-cta-band {
    background: linear-gradient(135deg, #152d49 0%, #23528a 55%, #4672aa 100%);
}

.web-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #d4d4d8;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.web-social-link:hover {
    color: #ffffff;
    border-color: #71717a;
    background-color: #3f3f46;
}

.web-social-link svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.web-user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.web-user-link-mobile {
    justify-content: center;
}

.web-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #23528a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    flex-shrink: 0;
}

.web-user-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.web-whatsapp-fab:hover {
    background-color: #20bd5a;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.web-whatsapp-fab svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
}

.web-otp-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.web-otp-input {
    width: 2.75rem;
    height: 3.25rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #18181b;
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.web-otp-input:focus {
    outline: none;
    border-color: #23528a;
    box-shadow: 0 0 0 2px rgba(35, 82, 138, 0.15);
}

.web-otp-splitter {
    color: #a1a1aa;
    font-size: 1.25rem;
    padding: 0 0.125rem;
    user-select: none;
}

.calc-loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #c3d2e5;
    border-top-color: #23528a;
    border-radius: 50%;
    animation: calc-spin 0.7s linear infinite;
}

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

.web-auth-checkbox {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    border-radius: 0.25rem;
    border-color: #d4d4d8;
    color: #23528a;
    flex-shrink: 0;
}
