/* =========================================================
   DIGISADHAN.COM
   AGE CALCULATOR
========================================================= */

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --success: #059669;
    --success-light: #ecfdf5;

    --danger: #dc2626;
    --danger-light: #fef2f2;

    --dark: #172033;
    --text: #334155;
    --muted: #64748b;

    --background: #f5f7fb;
    --white: #ffffff;

    --border: #e2e8f0;

    --shadow:
        0 10px 35px rgba(15,23,42,.08);

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background: var(--background);

    line-height: 1.6;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input {

    font: inherit;

}


button {

    cursor: pointer;

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255,255,255,.96);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(12px);

}


.header-container {

    width:
        min(1100px,calc(100% - 30px));

    min-height: 68px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.brand-icon {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    border-radius: 10px;

    font-size: 13px;

    font-weight: 800;

}


.brand-text {

    display: flex;

    flex-direction: column;

}


.brand-text strong {

    color: var(--dark);

    font-size: 17px;

    line-height: 1.1;

}


.brand-text span {

    margin-top: 2px;

    color: var(--muted);

    font-size: 8px;

}


.header-nav {

    display: flex;

    gap: 25px;

}


.header-nav a {

    color: var(--text);

    font-size: 12px;

    font-weight: 600;

}


.header-nav a:hover {

    color: var(--primary);

}


/* =========================================================
   PAGE
========================================================= */

.page-container {

    width:
        min(1050px,calc(100% - 30px));

    margin: auto;

    padding:
        25px 0 70px;

}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 10px;

}


.breadcrumb a:hover {

    color: var(--primary);

}


.breadcrumb strong {

    color: var(--text);

}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 28px;

}


.heading-icon {

    width: 62px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background:
        var(--primary-light);

    border:
        1px solid #bfdbfe;

    border-radius: 15px;

    font-size: 26px;

}


.page-heading h1 {

    color: var(--dark);

    font-size:
        clamp(27px,4vw,40px);

    line-height: 1.2;

}


.page-heading p {

    max-width: 760px;

    margin-top: 6px;

    color: var(--muted);

    font-size: 14px;

}


/* =========================================================
   CALCULATOR CARD
========================================================= */

.calculator-card {

    padding:
        clamp(22px,4vw,42px);

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow);

}


/* =========================================================
   TOOL BRAND
========================================================= */

.calculator-brand {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 27px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.brand-dot {

    width: 7px;

    height: 7px;

    background: var(--primary);

    border-radius: 50%;

}


/* =========================================================
   DATE INPUTS
========================================================= */

.date-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

}


.date-field label {

    display: block;

    margin-bottom: 8px;

    color: var(--dark);

    font-size: 13px;

    font-weight: 700;

}


.required {

    color: var(--danger);

}


.date-field input {

    width: 100%;

    height: 54px;

    padding:
        0 14px;

    color: var(--dark);

    background: white;

    border:
        2px solid var(--border);

    border-radius: 9px;

    outline: none;

    font-size: 14px;

    transition: .2s;

}


.date-field input:hover {

    border-color: #cbd5e1;

}


.date-field input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(37,99,235,.1);

}


.date-field small {

    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 10px;

}


/* =========================================================
   BUTTONS
========================================================= */

.button-area {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 25px;

}


.calculate-button,
.today-button,
.reset-button {

    min-height: 48px;

    padding:
        0 21px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    transition: .2s;

}


.calculate-button {

    color: white;

    background: var(--primary);

    border: none;

}


.calculate-button:hover {

    background: var(--primary-dark);

    transform:
        translateY(-1px);

}


.today-button {

    color: var(--primary);

    background: var(--primary-light);

    border:
        1px solid #bfdbfe;

}


.today-button:hover {

    background: #dbeafe;

}


.reset-button {

    color: var(--text);

    background: white;

    border:
        1px solid var(--border);

}


.reset-button:hover {

    background: #f8fafc;

}


/* =========================================================
   ERROR
========================================================= */

.error-message {

    display: none;

    margin-top: 16px;

    padding:
        12px 15px;

    color: var(--danger);

    background: var(--danger-light);

    border:
        1px solid #fecaca;

    border-radius: 8px;

    font-size: 13px;

}


/* =========================================================
   MAIN RESULT
========================================================= */

.result-section {

    display: none;

    margin-top: 30px;

    padding:
        30px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    border-radius: 15px;

    text-align: center;

}


.result-section.show {

    display: block;

    animation:
        resultAppear .35s ease;

}


@keyframes resultAppear {

    from {

        opacity: 0;

        transform:
            translateY(8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


.result-brand {

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    opacity: .75;

}


.result-heading {

    margin-top: 6px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.4px;

}


.main-age {

    display: flex;

    align-items: flex-end;

    justify-content: center;

    gap: 9px;

    margin-top: 18px;

}


.age-number {

    font-size:
        clamp(42px,7vw,62px);

    font-weight: 800;

    line-height: 1;

}


.age-label {

    margin-right: 7px;

    padding-bottom: 5px;

    color:
        rgba(255,255,255,.75);

    font-size: 11px;

}


.age-sentence {

    margin-top: 16px;

    color:
        rgba(255,255,255,.86);

    font-size: 13px;

}


.copy-button {

    margin-top: 18px;

    padding:
        9px 16px;

    color: white;

    background:
        rgba(255,255,255,.12);

    border:
        1px solid
        rgba(255,255,255,.3);

    border-radius: 7px;

    font-size: 11px;

}


.copy-button:hover {

    background:
        rgba(255,255,255,.2);

}


/* =========================================================
   DETAILS
========================================================= */

.details-section {

    margin-top: 30px;

}


.details-section h2,
.calculation-section h2 {

    color: var(--dark);

    font-size: 19px;

}


/* =========================================================
   STATISTICS
========================================================= */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 12px;

    margin-top: 15px;

}


.stat-card {

    padding:
        20px;

    background:
        #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 11px;

}


.stat-icon {

    display: block;

    font-size: 20px;

}


.stat-card strong {

    display: block;

    margin-top: 9px;

    color: var(--dark);

    font-size: 21px;

    line-height: 1.2;

    word-break: break-word;

}


.stat-card small {

    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;

}


/* =========================================================
   PERSONAL INFO
========================================================= */

.personal-section {

    margin-top: 30px;

    padding-top: 27px;

    border-top:
        1px solid var(--border);

}


.personal-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 12px;

}


.personal-card {

    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        16px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 10px;

}


.personal-card > span {

    font-size: 21px;

}


.personal-card small {

    display: block;

    color: var(--muted);

    font-size: 9px;

}


.personal-card strong {

    display: block;

    margin-top: 3px;

    color: var(--dark);

    font-size: 12px;

}


/* =========================================================
   CALCULATION
========================================================= */

.calculation-section {

    margin-top: 30px;

    padding-top: 27px;

    border-top:
        1px solid var(--border);

}


.calculation-text {

    margin-top: 12px;

    padding:
        18px;

    color: var(--text);

    background:
        #f8fafc;

    border-left:
        4px solid var(--primary);

    border-radius:
        0 8px 8px 0;

    font-size: 13px;

}


/* =========================================================
   EXAMPLES
========================================================= */

.examples-section {

    margin:
        65px 0;

}


.section-title span {

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.7px;

}


.section-title h2 {

    margin-top: 4px;

    color: var(--dark);

    font-size: 28px;

}


.example-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 12px;

    margin-top: 20px;

}


.example-card {

    padding:
        19px;

    color: var(--text);

    background: white;

    border:
        1px solid var(--border);

    border-radius: 11px;

    text-align: left;

    transition: .2s;

}


.example-card:hover {

    border-color:
        #bfdbfe;

    box-shadow: var(--shadow);

    transform:
        translateY(-2px);

}


.example-card strong {

    display: block;

    color: var(--dark);

    font-size: 13px;

}


.example-card span {

    display: block;

    margin-top: 5px;

    color: var(--primary);

    font-size: 10px;

}


/* =========================================================
   INFORMATION
========================================================= */

.information-section {

    margin-bottom: 65px;

}


.info-card {

    display: grid;

    grid-template-columns:
        55px 1fr;

    gap: 20px;

    padding:
        27px 0;

    border-bottom:
        1px solid var(--border);

}


.info-number {

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

}


.info-card h3 {

    color: var(--dark);

    font-size: 20px;

}


.info-card p {

    max-width: 820px;

    margin-top: 8px;

    font-size: 14px;

}


.formula-box {

    display: inline-block;

    margin-top: 15px;

    padding:
        13px 18px;

    color: var(--primary);

    background:
        var(--primary-light);

    border-radius: 8px;

    font-size: 13px;

}


.feature-list {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 8px 25px;

    margin-top: 13px;

    padding-left: 18px;

    color: var(--text);

    font-size: 13px;

}


.feature-list li::marker {

    color: var(--primary);

}


/* =========================================================
   USES
========================================================= */

.uses-section {

    margin-bottom: 65px;

}


.uses-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 14px;

    margin-top: 20px;

}


.use-card {

    padding:
        22px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 12px;

    transition: .2s;

}


.use-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow);

}


.use-icon {

    font-size: 25px;

}


.use-card h3 {

    margin-top: 13px;

    color: var(--dark);

    font-size: 15px;

}


.use-card p {

    margin-top: 6px;

    color: var(--muted);

    font-size: 11px;

}


/* =========================================================
   FAQ
========================================================= */

.faq-section {

    max-width: 900px;

    margin:
        0 auto 65px;

}


.faq-list {

    margin-top: 20px;

    border-top:
        1px solid var(--border);

}


details {

    border-bottom:
        1px solid var(--border);

}


summary {

    padding:
        18px 3px;

    color: var(--dark);

    cursor: pointer;

    font-size: 14px;

    font-weight: 700;

    list-style: none;

}


summary::-webkit-details-marker {

    display: none;

}


summary::after {

    content: "+";

    float: right;

    color: var(--primary);

    font-size: 19px;

    font-weight: 400;

}


details[open] summary::after {

    content: "−";

}


details p {

    padding:
        0 30px 20px 3px;

    color: var(--muted);

    font-size: 13px;

}


/* =========================================================
   FINAL BRAND
========================================================= */

.final-brand {

    margin-top: 70px;

    padding:
        45px 20px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #172033,
            #26354d
        );

    border-radius: 16px;

    text-align: center;

}


.final-logo {

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 12px;

    color: white;

    background:
        var(--primary);

    border-radius: 13px;

    font-size: 14px;

    font-weight: 800;

}


.final-brand h2 {

    font-size: 26px;

}


.final-brand p {

    margin-top: 3px;

    color: #cbd5e1;

    font-size: 12px;

}


.final-brand a {

    display: inline-block;

    margin-top: 18px;

    padding:
        9px 15px;

    color: white;

    background:
        var(--primary);

    border-radius: 7px;

    font-size: 11px;

}


.final-brand a:hover {

    background:
        var(--primary-dark);

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    padding:
        35px 0 20px;

    color:
        #cbd5e1;

    background:
        #111827;

}


.footer-container {

    width:
        min(1050px,calc(100% - 30px));

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


.footer-container strong {

    color: white;

    font-size: 15px;

}


.footer-container p {

    margin-top: 3px;

    font-size: 10px;

}


.footer-links {

    display: flex;

    gap: 18px;

}


.footer-links a {

    font-size: 10px;

}


.footer-links a:hover {

    color: white;

}


.copyright {

    width:
        min(1050px,calc(100% - 30px));

    margin:
        25px auto 0;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(255,255,255,.1);

    color:
        #94a3b8;

    font-size: 9px;

    text-align: center;

}


.separator {

    margin:
        0 7px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .example-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .uses-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .personal-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

}


@media (max-width: 700px) {

    .date-grid {

        grid-template-columns:
            1fr;

    }


    .stats-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .feature-list {

        grid-template-columns:
            1fr;

    }

}


@media (max-width: 600px) {

    .header-container {

        width:
            calc(100% - 20px);

    }


    .header-nav {

        display: none;

    }


    .page-container {

        width:
            calc(100% - 20px);

        padding-top: 20px;

    }


    .page-heading {

        align-items:
            flex-start;

    }


    .heading-icon {

        width: 52px;

        height: 52px;

        font-size: 22px;

    }


    .page-heading h1 {

        font-size: 26px;

    }


    .page-heading p {

        font-size: 12px;

    }


    .button-area {

        flex-direction: column;

    }


    .calculate-button,
    .today-button,
    .reset-button {

        width: 100%;

    }


    .main-age {

        gap: 5px;

    }


    .age-number {

        font-size: 38px;

    }


    .age-label {

        margin-right: 3px;

        font-size: 9px;

    }


    .stats-grid {

        grid-template-columns:
            1fr;

    }


    .personal-grid {

        grid-template-columns:
            1fr;

    }


    .example-grid {

        grid-template-columns:
            1fr;

    }


    .uses-grid {

        grid-template-columns:
            1fr;

    }


    .info-card {

        grid-template-columns:
            35px 1fr;

        gap: 10px;

    }


    .footer-container {

        width:
            calc(100% - 20px);

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .copyright {

        width:
            calc(100% - 20px);

    }

}