/* Page-specific styles for tally.html */

/* Hero Section */
.hero-section {
    height: calc(100vh - var(--navbar-height));
    padding: var(--spacing-md) 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
    border-bottom: 1px solid var(--text-gray);
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
}

.hero-content {
    flex: 0 0 100%;
    align-self: center;
    text-align: left;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: 1rem;
    max-width: 600px;
}

.hero-content a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.hero-image-slideshow {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    z-index: 1;
}

.video-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: none;
}

.hero-image-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: flex-start;
}

.hero-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.hero-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.hero-btn:active {
    background-color: #333;
    transform: translateY(0);
}

/* Content Sections */
.content-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background: #fff;
    border-radius: 8px;
    margin: var(--spacing-md) auto;
    max-width: 1200px;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: #333;
}

.content-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.content-inner .section-text {
    flex: 0 0 50%;
}

.content-inner .section-image {
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-inner .section-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.content-inner .section-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.content-section.reverse .content-inner {
    flex-direction: row-reverse;
}

.content-section .section-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background: #fff;
    border-radius: 8px;
    margin: var(--spacing-md) auto;
    max-width: 1200px;
}

.faq-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: #333;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #333;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding: 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

.faq-answer p, .faq-answer ul {
    padding: 0 var(--spacing-sm);
    margin: 0;
}

.faq-answer ul {
    list-style: none;
    padding-left: 1.5rem;
}

.faq-answer ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.faq-answer ul li::before {
    content: '•';
    margin-left: -1.5rem;
    color: absolute;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.faq-answer.active {
    height: auto;
    opacity: 1;
    padding-top: var(--spacing-sm);
}

/* What If Section */
.what-if-section {
    padding: calc(var(--spacing-lg) * 3) 0;
    background-color: #fff;
    text-align: center;
    border-bottom: 1px solid var(--text-gray);
    position: relative;
    overflow: hidden;
}

.what-if-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.what-if-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-lg) * 2);
    position: relative;
    display: inline-block;
}

.what-if-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 2000px;
    margin: 0 auto;
    cursor: grab;
}

.what-if-carousel:active {
    cursor: grabbing;
}

.what-if-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.what-if-item {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.what-if-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
    z-index: 2;
}

.what-if-item.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
    pointer-events: none;
}

.what-if-desc {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.what-if-item.active .what-if-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Progress indicator */
.carousel-progress {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.carousel-progress-bar {
    height: 100%;
    background: var(--text-dark);
    width: 33.33%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    margin: var(--spacing-md) auto;
    max-width: 1200px;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.contact-section p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.contact-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline !important;
}

/* Tally Popup Styling */
.tally-popup {
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    background-color: #f8f8f8 !important;
    z-index: 10000 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Ensure dark background for modal */
.tally-popup-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 9999 !important;
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero-section {
        height: auto;
        min-height: calc(100vh - var(--navbar-height));
        padding: var(--spacing-lg) 0;
        text-align: center;
    }

    .hero-section .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 var(--spacing-md);
        gap: 0;
    }

    .hero-inner {
        width: 100%;
        flex-direction: column;
    }

    .hero-content {
        max-width: 500px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-btn {
        width: 140px;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .hero-image-slideshow {
        width: 100%;
        max-width: 500px;
        max-height: 300px;
        margin: var(--spacing-md) auto;
    }

    .content-inner {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .content-inner .section-text,
    .content-inner .section-image {
        flex: 0 0 100%;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.3rem;
    }

    .what-if-desc {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: var(--spacing-sm);
    }
    .hero-image-slideshow {
        display: none;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
    .faq-section h2 {
        font-size: 1.8rem;
    }
    .faq-question {
        font-size: 1.2rem;
    }
    .faq-answer {
        font-size: 0.85rem;
    }
    .contact-section h2 {
        font-size: 1.8rem;
    }
    .tally-popup {
        width: 95%;
        height: 80%;
    }
    .what-if-section {
        padding: var(--spacing-md) 0;
    }
    .what-if-title {
        font-size: 1.8rem;
    }
    .what-if-carousel {
        height: 120px;
    }
    .what-if-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Ensure nav-links and its children follow global styles in mobile view */
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--primary-bg);
        padding: var(--spacing-lg) var(--spacing-sm);
        z-index: 998;
        justify-content: space-between;
        gap: var(--spacing-sm);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-dark);
        padding: 1rem 0;
        border-bottom: 1px solid var(--text-gray);
        width: 100%;
        text-align: left;
    }

    .nav-links .get-started-btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        width: fit-content;
        margin-top: auto;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fbfbf9;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

.tally-hero {
    padding: 120px 0 80px;
    background: linear-gradient(120deg, #eaf4fb 0%, #f6fbfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(14, 110, 253, 0.04);
}

.tally-hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.tally-logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin-bottom: 36px;
    margin-top: 12px;
    filter: drop-shadow(0 6px 32px rgba(14,110,253,0.10));
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.tally-logo:hover {
    transform: scale(1.05) translateY(-2px);
}

.tally-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.tally-hero-subtitle {
    font-size: 1.45rem;
    color: #155e75;
    margin-bottom: 0;
    line-height: 1.7;
    font-weight: 500;
    background: linear-gradient(90deg, #0e6efd 0%, #38bdf8 60%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tally-hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.tally-btn {
    background: #000;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: background 0.2s, transform 0.2s;
}
.tally-btn:hover {
    background: #222;
    transform: translateY(-2px) scale(1.03);
}

.tally-benefits {
    background: linear-gradient(120deg, #eaf4fb 0%, #f6fbfa 100%);
    padding: 3.5rem 0 2.5rem 0;
}
.tally-benefits-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.tally-benefit-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(14,110,253,0.06);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    flex: 1 1 260px;
    min-width: 240px;
    max-width: 340px;
    margin: 0.5rem 0;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tally-benefit-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    transform: translateY(-4px) scale(1.03);
}
.tally-benefit-icon {
    font-size: 2.3rem;
    margin-bottom: 1.1rem;
}
.tally-benefit-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: #1a1a1a;
}
.tally-benefit-card p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.tally-carousel-section {
    background: linear-gradient(120deg, #eaf4fb 0%, #f6fbfa 100%);
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.tally-carousel-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}
.tally-carousel {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.tally-carousel-container {
    display: flex;
    overflow: hidden;
    position: relative;
    min-height: 80px;
}
.tally-carousel-item {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: 0;
    z-index: 1;
    font-size: 1.18rem;
    color: #222;
    background: none;
    padding: 0 1.5rem;
}
.tally-carousel-item.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}
.tally-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
}
.tally-carousel-dot {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.tally-carousel-dot.active {
    background: #000;
    transform: scale(1.2);
}

.tally-faq-section {
    background: #f6fbfa;
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
}
.tally-faq-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}
.tally-faq-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.tally-faq-item {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.tally-faq-item.open {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
}
.tally-faq-question {
    width: 100%;
    background: none;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    padding: 1.2rem 1.5rem;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}
.tally-faq-question[aria-expanded="true"] {
    background: #e8eaf6;
}
.tally-faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    color: #444;
    font-size: 1.05rem;
    padding: 0 1.5rem;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s;
}
.tally-faq-item.open .tally-faq-answer {
    max-height: 1000px;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.tally-contact-section {
    background: #eaf4fb;
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 1200px;
}
.tally-contact-container {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 2.5rem 2rem 2rem 2rem;
}
.tally-contact-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}
.tally-contact-container p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .tally-benefits-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .tally-benefit-card {
        max-width: 100%;
    }
    .tally-carousel {
        max-width: 98vw;
    }
}
@media (max-width: 600px) {
    .tally-hero-title {
        font-size: 2.1rem;
    }
    .tally-hero-content {
        padding: 0 0.5rem;
    }
    .tally-benefits {
        padding: 2rem 0 1.5rem 0;
    }
    .tally-contact-section {
        padding: 2rem 0 1.5rem 0;
    }
    .tally-contact-container {
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
}

.tally-how {
    background: linear-gradient(120deg, #eaf4fb 0%, #f6fbfa 100%);
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
}
.tally-how-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.tally-how-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
}
.tally-how-subtitle {
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 2.2rem;
    font-weight: 400;
    line-height: 1.6;
}
.tally-how-steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
}
.tally-how-step {
    font-size: 1.13rem;
    color: #222;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.1rem 1.5rem 1.1rem 2.5rem;
    text-align: left;
    position: relative;
    font-family: 'Inter', sans-serif;
}
.tally-how-step-num {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: #000;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
    margin-right: 1.1rem;
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
}
.tally-how-highlight {
    background: #fffbe6;
    color: #7a5c00;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0 1.2rem 0;
    font-size: 1.08rem;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tally-how-highlight strong {
    color: #b38b00;
}
.tally-how-highlight-alt {
    background: #e8eaf6;
    color: #1a1a1a;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tally-how-highlight-alt strong {
    color: #2d2d2d;
}

.tally-how-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}
.tally-how-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(14,110,253,0.06);
    padding: 1.3rem 1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tally-how-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-2px) scale(1.03);
}
.tally-how-card-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: #444;
    background: linear-gradient(120deg, #f8fafc 60%, #e8eaf6 100%);
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 50%;
    width: 1.7rem;
    height: 1.7rem;
    text-align: center;
    line-height: 1.7rem;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}
.tally-how-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.tally-how-card-desc {
    font-size: 1.02rem;
    color: #222;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.tally-how-highlight, .tally-how-highlight-alt {
    margin: 1.1rem 0 0.5rem 0;
    padding: 1rem 1.2rem;
    font-size: 1.01rem;
}
@media (max-width: 900px) {
    .tally-how-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    .tally-how-bento {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .tally-how-card {
        padding: 1rem 0.7rem 0.9rem 0.7rem;
    }
    .tally-how-card-num {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.95rem;
        line-height: 1.3rem;
    }
    .tally-how-card-icon {
        font-size: 1.2rem;
    }
}

.tally-link-btn {
    display: inline-block;
    margin: 1.2rem auto 0 auto;
    background: #0e6efd;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}
.tally-link-btn:hover {
    background: #222;
    transform: translateY(-2px) scale(1.03);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .tally-hero {
        padding: 70px 0 40px;
    }
    .tally-logo {
        max-width: 220px;
        margin-bottom: 24px;
    }
    .tally-hero-content {
        gap: 20px;
    }
    .tally-hero-subtitle {
        font-size: 1.08rem;
    }
}

.tally-goal-section {
    background: linear-gradient(90deg, #e0f2fe 0%, #f0fdfa 100%);
    padding: 64px 0 48px 0;
    text-align: center;
    margin-bottom: 0;
}
.tally-goal-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.tally-goal-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1;
}
.tally-goal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0e6efd;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.tally-goal-desc {
    font-size: 1.18rem;
    color: #155e75;
    line-height: 1.7;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 0.5rem auto;
    text-align: center;
}
@media (max-width: 600px) {
    .tally-goal-section {
        padding: 36px 0 24px 0;
    }
    .tally-goal-title {
        font-size: 1.3rem;
    }
    .tally-goal-desc {
        font-size: 1rem;
    }
    .tally-goal-icon {
        font-size: 1.5rem;
    }
}

.tally-hero-desc {
    font-size: 1.18rem;
    color: #155e75;
    line-height: 1.7;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 1.2rem auto;
    text-align: center;
}

.tally-hero-desc .swedish-flag {
    margin-left: 0.3em;
    font-size: 1.2em;
    vertical-align: middle;
}

.tally-hero-benefit {
    font-size: 1.08rem;
    color: #0e6efd;
    background: #e0f2fe;
    border-radius: 8px;
    display: inline-block;
    padding: 0.6em 1.2em;
    font-weight: 600;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 8px rgba(14,110,253,0.06);
}

.tally-how,
.tally-carousel-section,
.tally-faq-section,
.tally-contact-section {
    background: var(--primary-bg) !important;
}

.tally-link-btn {
    background: #000 !important;
    color: #fff !important;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    border: none;
}
.tally-link-btn:hover {
    background: #222 !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}

.permly-verification-block {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(14,110,253,0.06);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 2.5rem auto 2rem auto;
    max-width: 540px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.permly-verification-icon {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    color: #0e6efd;
}
.permly-verification-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.7rem;
}
.permly-verification-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.permly-verification-list li {
    font-size: 1.08rem;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
    padding-left: 1.2em;
    text-align: left;
}
.permly-verification-list li::before {
    content: '✔';
    color: #0e6efd;
    position: absolute;
    left: 0;
    font-size: 1em;
}
.permly-verification-desc {
    font-size: 1.02rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
}
@media (max-width: 600px) {
    .permly-verification-block {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
        max-width: 98vw;
    }
    .permly-verification-title {
        font-size: 1.1rem;
    }
    .permly-verification-list li {
        font-size: 0.98rem;
    }
}