/* =========================================================
   CHRONOS
   UI / Layout Polish
   ========================================================= */


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

:root {
    --bg: #050505;
    --primary: #F5F5F5;
    --secondary: #A0A0A0;
    --muted: #666666;
    --border: #242424;
    --accent: #C8A96B;
    --accent-dark: #8F7546;
    --bg-elevated: #15130e;
    --bg-subtle: #090907;
    --grid-line: rgba(245, 245, 245, 0.018);
    --primary-glow: rgba(245, 245, 245, 0.06);
    --accent-glow: rgba(200, 169, 107, 0.14);
    --countdown-glow: rgba(200, 169, 107, 0.10);
    --stat-rule: rgba(143, 117, 70, 0.38);
    --control-surface: #0b0a08;
    --control-surface-hover: #100e0a;
    --control-highlight: rgba(245, 245, 245, 0.045);
    --modal-surface: #080807;
    --screen-inline-padding: clamp(30px, 4vw, 64px);
    --control-height: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   BASE
   ========================================================= */

html {
    min-height: 100%;

    background: var(--bg);
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 35%,
            var(--bg-elevated) 0%,
            var(--bg-subtle) 38%,
            var(--bg) 78%
        );

    color: var(--primary);

    font-family: "Manrope", Arial, Helvetica, sans-serif;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}


/* =========================================================
   SUBTLE BACKGROUND GRID
   ========================================================= */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            var(--grid-line) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--grid-line) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        radial-gradient(
            circle at center,
            black 0%,
            transparent 76%
        );

    -webkit-mask-image:
        radial-gradient(
            circle at center,
            black 0%,
            transparent 76%
        );
}


/* =========================================================
   APP
   ========================================================= */

.app {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   SCREENS
   ========================================================= */

.screen {
    width: 100%;

    min-height: calc(100vh - 70px);
    height: auto;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 60px var(--screen-inline-padding);

    opacity: 0;

    transform: translateY(24px);
}

.screen.active {
    display: flex;

    animation:
        screenReveal 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        forwards;
}

.screen.fade-out {
    animation:
        screenExit 0.5s
        cubic-bezier(0.4, 0, 1, 1)
        forwards;
}


@keyframes screenReveal {

    from {
        opacity: 0;

        transform:
            translateY(24px);

        filter: blur(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);

        filter: blur(0);
    }
}


@keyframes screenExit {

    from {
        opacity: 1;

        transform:
            translateY(0);

        filter: blur(0);
    }

    to {
        opacity: 0;

        transform:
            translateY(-18px);

        filter: blur(6px);
    }
}


/* =========================================================
   CONTENT CONTAINERS
   ========================================================= */

.content {
    width: 100%;
    max-width: 820px;
}

.results-content {
    width: 100%;
    max-width: 1000px;
}

@media (min-width: 901px) {

    .results-content {
        transform: translateX(clamp(16px, 2vw, 32px));
    }
}


/* =========================================================
   LANDING SCREEN
   ========================================================= */

#landing {
    min-height: calc(100vh - 70px);
}


/* =========================================================
   LANDING REVEAL
   ========================================================= */

#landing .eyebrow {
    opacity: 0;

    transform:
        translateY(12px);

    animation:
        contentReveal 0.7s
        ease
        0.15s
        forwards;
}

#landing h1 {
    opacity: 0;

    transform:
        translateY(18px);

    animation:
        contentReveal 0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.25s
        forwards;
}

#landing .description {
    opacity: 0;

    transform:
        translateY(15px);

    animation:
        contentReveal 0.7s
        ease
        0.4s
        forwards;
}

#landing .input-group {
    opacity: 0;

    transform:
        translateY(15px);

    animation:
        contentReveal 0.7s
        ease
        0.5s
        forwards;
}

#landing #discoverBtn {
    opacity: 0;

    transform:
        translateY(15px);

    animation:
        contentReveal 0.7s
        ease
        0.6s
        forwards;
}


@keyframes contentReveal {

    from {
        opacity: 0;

        transform:
            translateY(15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    margin-bottom: 32px;

    color: var(--accent);

    font-size: 16px;
    letter-spacing: 7px;
    font-weight: 500;

    opacity: 0.48;
}


/* =========================================================
   LANDING TYPOGRAPHY
   ========================================================= */

h1 {
    margin-bottom: 28px;

    font-size:
        clamp(
            54px,
            6.5vw,
            92px
        );

    line-height: 0.96;

    font-weight: 400;

    letter-spacing: -4px;
}

.description {
    max-width: 500px;

    margin-bottom: 44px;

    color: var(--secondary);

    font-size: 17px;

    line-height: 1.6;
}

.result-label {
    color: var(--secondary);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 3px;
}


/* =========================================================
   DATE INPUT
   ========================================================= */

.input-group {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 24px;
}

.input-group label {
    color: var(--muted);

    font-size: 10px;

    letter-spacing: 3px;
}

input {
    width: 100%;
    max-width: 360px;

    min-height: var(--control-height);

    padding: 12px 0;

    background: transparent;

    border: none;

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

    outline: none;

    color: var(--primary);

    font-family: inherit;

    font-size: 27px;

    font-weight: 400;

    letter-spacing: 3px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

input:focus {
    border-bottom-color: var(--accent);

    box-shadow:
        0 8px 24px
        var(--accent-glow);
}

input::placeholder {
    color: var(--muted);

    opacity: 1;
}


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

button {
    min-height: var(--control-height);

    padding: 13px 28px;

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

    background: var(--control-surface);

    color: var(--primary);

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2.2px;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;

    box-shadow:
        inset 0 1px 0
        var(--control-highlight),
        0 8px 24px
        rgba(0, 0, 0, 0.2);
}

button::before {
    content: "";

    position: absolute;

    top: 0;
    left: 16px;

    width: 34px;
    height: 1px;

    background: var(--accent);

    opacity: 0.72;

    transition:
        width 0.25s ease,
        opacity 0.25s ease;
}

button:hover {
    border-color: var(--accent);

    background: var(--control-surface-hover);

    color: var(--primary);

    transform:
        translateY(-2px);

    box-shadow:
        inset 0 1px 0
        var(--control-highlight),
        0 10px 30px
        var(--accent-glow);
}

button:hover::before {
    width: calc(100% - 32px);

    opacity: 1;
}

button:focus-visible {
    border-color: var(--accent);

    outline: none;

    box-shadow:
        0 0 0 3px
        var(--accent-glow);
}

button:active {
    transform:
        translateY(1px);
}

button:disabled {
    border-color: var(--border);

    background: transparent;

    color: var(--muted);

    cursor: not-allowed;

    opacity: 0.7;

    transform: none;

    box-shadow: none;
}

button:disabled::before {
    opacity: 0;
}


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

.error {
    min-height: 18px;

    margin-top: 12px;

    color: var(--secondary);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   RESULTS SCREEN
   ========================================================= */

#results {
    align-items: flex-start;

    padding-top: 55px;
    padding-bottom: max(45px, env(safe-area-inset-bottom));
}


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

#results .eyebrow {
    margin-bottom: 28px;
    font-size: 14px;
    letter-spacing: 6px;

    animation:
        resultsFade 0.6s
        ease
        0.1s
        both;
}

#results .result-label {
    margin-bottom: 14px;

    animation:
        resultsFade 0.6s
        ease
        0.2s
        both;
}


/* =========================================================
   PRIMARY STAT
   ========================================================= */

.primary-stat {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 24px;
}

.primary-stat span:first-child {
    color: var(--primary);

    font-size:
        clamp(
            82px,
            9vw,
            150px
        );

    font-weight: 300;

    line-height: 0.82;

    letter-spacing: -7px;

    font-variant-numeric:
        tabular-nums;

    text-shadow:
        0 0 35px
        var(--primary-glow);
}

.primary-stat .unit {
    color: var(--muted);

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 3px;
}


#results .primary-stat {
    animation:
        resultsHero 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.3s
        both;
}


@keyframes resultsHero {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.96);

        filter: blur(6px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        filter: blur(0);
    }
}


/* =========================================================
   EXACT AGE
   ========================================================= */

.exact-age {
    margin-bottom: 18px;

    color: #A88E59;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 3px;
}

#results .exact-age {
    animation:
        resultsFade 0.7s
        ease
        0.5s
        both;
}


/* =========================================================
   BORN ON
   ========================================================= */

.birth-info {
    margin-bottom: 24px;
}

.birth-label {
    margin-bottom: 7px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 3px;
}

.birth-info span {
    color: var(--secondary);

    font-size: 16px;

    font-weight: 500;

    letter-spacing: 0;

    line-height: 1.5;
}

#results .birth-info {
    animation:
        resultsFade 0.7s
        ease
        0.6s
        both;
}


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

.statistics {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 18px;

    width: 100%;

    margin-top: 0;
}

.stat {
    position: relative;

    display: flex;

    flex-direction: column;

    gap: 6px;

    min-width: 0;

    padding-bottom: 11px;

}

.stat span {
    color: var(--primary);

    font-size:
        clamp(
            22px,
            2.2vw,
            30px
        );

    font-weight: 300;

    line-height: 1;

    letter-spacing: -1px;

    font-variant-numeric:
        tabular-nums;

    white-space: nowrap;

    text-shadow:
        0 0 18px
        var(--primary-glow);
}

.stat small {
    color: var(--muted);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 2px;
}

.stat:nth-child(-n + 3) span {
    font-weight: 400;
}

.stat:nth-child(-n + 3) small {
    color: var(--secondary);
}

.stat:nth-child(n + 4) small {
    opacity: 0.82;
}


/* =========================================================
   STAT UNDERLINES
   ========================================================= */

.stat::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;

    height: 1px;

    background: var(--stat-rule);
}


/* =========================================================
   STAT ANIMATIONS
   ========================================================= */

.statistics .stat:nth-child(1) {
    animation:
        statReveal
        0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.55s
        forwards;
}

.statistics .stat:nth-child(2) {
    animation:
        statReveal
        0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.68s
        forwards;
}

.statistics .stat:nth-child(3) {
    animation:
        statReveal
        0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.81s
        forwards;
}

.statistics .stat:nth-child(4) {
    animation:
        statReveal
        0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.94s
        forwards;
}

.statistics .stat:nth-child(5) {
    animation:
        statReveal
        0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        1.07s
        forwards;
}

.statistics .stat:nth-child(6) {
    animation:
        statReveal
        0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        1.20s
        forwards;
}


@keyframes statReveal {

    0% {
        opacity: 0;

        transform:
            translateY(28px)
            scale(0.94);

        filter: blur(8px);
    }

    65% {
        opacity: 1;

        transform:
            translateY(-3px)
            scale(1.01);

        filter: blur(0);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        filter: blur(0);
    }
}


/* =========================================================
   STAT LINE ANIMATION
   ========================================================= */

.statistics .stat:nth-child(1)::after {
    animation:
        statLine
        0.5s
        ease
        0.95s
        forwards;
}

.statistics .stat:nth-child(2)::after {
    animation:
        statLine
        0.5s
        ease
        1.08s
        forwards;
}

.statistics .stat:nth-child(3)::after {
    animation:
        statLine
        0.5s
        ease
        1.21s
        forwards;
}

.statistics .stat:nth-child(4)::after {
    animation:
        statLine
        0.5s
        ease
        1.34s
        forwards;
}

.statistics .stat:nth-child(5)::after {
    animation:
        statLine
        0.5s
        ease
        1.47s
        forwards;
}

.statistics .stat:nth-child(6)::after {
    animation:
        statLine
        0.5s
        ease
        1.60s
        forwards;
}


@keyframes statLine {

    from {
        width: 0;

        opacity: 0;
    }

    to {
        width: 100%;

        opacity: 1;
    }
}


/* =========================================================
   DIVIDER
   ========================================================= */

.divider {
    width: 100%;
    height: 1px;

    margin: 30px 0;

    background: var(--border);

    transform-origin: left;
}

#results .divider {
    animation:
        dividerReveal
        0.8s
        ease
        1.8s
        both;
}


@keyframes dividerReveal {

    from {
        opacity: 0;

        transform:
            scaleX(0);
    }

    to {
        opacity: 1;

        transform:
            scaleX(1);
    }
}


/* =========================================================
   BIRTHDAY COUNTDOWN
   ========================================================= */

.birthday {
    width: 100%;
}

#results .birthday {
    animation:
        resultsFade
        0.7s
        ease
        1.9s
        both;
}


.birthday-countdown {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    margin-top: 12px;

    font-variant-numeric:
        tabular-nums;
}


.birthday-unit {
    display: flex;

    flex-direction: column;

    gap: 6px;

    min-width: 84px;
}


.birthday-unit span {
    color: var(--accent);

    font-size:
        clamp(
            30px,
            3vw,
            42px
        );

    font-weight: 400;

    line-height: 1;

    letter-spacing: -1.5px;

    font-variant-numeric:
        tabular-nums;

    text-shadow:
        0 0 18px
        var(--countdown-glow);
}


.birthday-unit small {
    color: var(--muted);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 2px;
}


.birthday-separator {
    color: var(--accent-dark);

    font-size:
        clamp(
            24px,
            2.5vw,
            34px
        );

    line-height: 1;

    margin-top: 0;
}


/* =========================================================
   BIRTHDAY SECONDS PULSE
   ========================================================= */

#birthdaySeconds {
    animation:
        countdownPulse 1s
        ease-in-out
        infinite;
}


@keyframes countdownPulse {

    0% {
        opacity: 0.72;

        transform:
            scale(1);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.015);
    }

    100% {
        opacity: 0.72;

        transform:
            scale(1);
    }
}


/* =========================================================
   BIRTHDAY MESSAGE
   ========================================================= */

.birthday-message {
    min-height: 16px;

    margin-top: 16px;

    color: var(--secondary);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 3px;
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.secondary-button {
    margin-top: 22px;

    border-color: var(--border);

    background: transparent;

    color: var(--secondary);

    box-shadow: none;
}

.secondary-button::before {
    display: none;
}

.secondary-button:hover {
    border-color: var(--accent-dark);

    background: transparent;

    color: var(--primary);

    box-shadow: none;
}

.result-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 22px;
}

/* Primary action */
.share-button {
    min-width: 210px;

    border: 1px solid var(--accent);
    background: var(--control-surface);

    color: var(--primary);

    box-shadow:
        inset 0 1px 0 var(--control-highlight),
        0 8px 24px rgba(0, 0, 0, 0.2);

    font-weight: 600;
    letter-spacing: 2.5px;
}

.share-button:hover {
    border-color: var(--accent);

    background:
        linear-gradient(
            135deg,
            rgba(200, 169, 107, 0.12),
            rgba(200, 169, 107, 0.03)
        );

    color: var(--primary);

    box-shadow:
        inset 0 1px 0 var(--control-highlight),
        0 10px 30px var(--accent-glow);

    transform: translateY(-2px);
}


/* Secondary action */
.secondary-button {
    min-width: 180px;

    border-color: var(--border);

    background: transparent;

    color: var(--secondary);

    box-shadow: none;
}

.secondary-button:hover {
    border-color: var(--accent-dark);

    background: transparent;

    color: var(--primary);

    box-shadow: none;

    transform: translateY(-1px);
}

.result-actions .secondary-button,
.share-button {
    margin-top: 0;
}

#results .share-button {
    animation:
        resultsFade
        0.7s
        ease
        2s
        both;
}

#results .secondary-button {
    animation:
        resultsFade
        0.7s
        ease
        2s
        both;
}


/* =========================================================
   SHARE MY CHRONOS
   ========================================================= */

body.share-modal-open {
    overflow: hidden;
}

.share-modal {
    position: fixed;

    z-index: 10;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 24px;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.25s ease;
}

.share-modal.is-open {
    opacity: 1;

    pointer-events: auto;
}

.share-modal__backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(8px);
}

.share-modal__panel {
    position: relative;

    z-index: 1;

    width: min(100%, 600px);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    padding: 22px;

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

    background: var(--modal-surface);

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);

    opacity: 0;

    transform: translateY(12px) scale(0.985);

    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-modal.is-open .share-modal__panel {
    opacity: 1;

    transform: translateY(0) scale(1);
}

.share-modal__header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.share-modal__header p {
    color: var(--secondary);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 3px;
}

.share-close {
    display: grid;

    width: 40px;
    min-height: 40px;

    place-items: center;

    padding: 0;

    border-color: var(--border);

    background: transparent;

    color: var(--secondary);

    font-size: 24px;

    font-weight: 300;

    letter-spacing: 0;

    line-height: 1;

    box-shadow: none;
}

.share-close::before {
    display: none;
}

.share-close:hover {
    border-color: var(--accent-dark);

    background: transparent;

    color: var(--primary);

    box-shadow: none;

    transform: none;
}

.share-preview-wrap {
    display: grid;

    place-items: center;

    margin-bottom: 18px;
}

.share-card {
    position: relative;

    display: flex;

    flex-direction: column;

    width: min(100%, 360px);

    aspect-ratio: 4 / 5;

    padding: 26px;

    overflow: hidden;

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

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    background:
        linear-gradient(150deg, #13110b 0%, var(--bg) 52%);
}

.share-card::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);

    background-size: 42px 42px;

    mask-image: radial-gradient(circle at 50% 35%, black 0%, transparent 75%);
}

.share-card > * {
    position: relative;
}

.share-card__brand {
    margin-bottom: 16px;

    color: var(--accent);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 4px;
}

.share-card__kicker,
.share-card__label {
    color: var(--muted);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 2.2px;
}

.share-card__days {
    display: flex;

    align-items: baseline;

    gap: 8px;

    margin: 6px 0;
}

.share-card__days span {
    max-width: 100%;

    overflow: hidden;

    color: var(--primary);

    font-size: clamp(40px, 14vw, 68px);

    font-weight: 300;

    letter-spacing: -3px;

    line-height: 0.9;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.share-card__days small {
    color: var(--accent-dark);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 2px;
}

.share-card__age {
    color: var(--secondary);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 1.8px;
}

.share-card__rule {
    width: 100%;
    height: 1px;

    margin: 14px 0;

    background: var(--stat-rule);
}

.share-card__born {
    margin-top: 5px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 500;

    line-height: 1.45;
}

.share-card__statistics {
    display: grid;

    gap: 4px;

    margin-top: 14px;
}

.share-card__statistics p {
    color: var(--secondary);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 1px;
}

.share-card__statistics span {
    color: var(--primary);

    font-size: 15px;

    font-weight: 400;

    letter-spacing: -0.5px;
}

.share-card__birthday {
    margin-top: 6px;

    color: var(--accent);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.4px;

    line-height: 1.5;
}

.share-card__footer {
    margin-top: auto;

    padding-top: 12px;

    color: var(--muted);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 2.5px;
}

.share-modal__actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

#downloadShareBtn {
    width: 190px;

    min-height: 48px;

    margin-top: 18px;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;
}

.share-modal__actions button {
    min-width: 0;

    padding-right: 12px;
    padding-left: 12px;

    font-size: 10px;
}

.share-feedback {
    min-height: 16px;

    margin-top: 12px;

    color: var(--accent);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 2px;

    text-align: center;
}

.site-footer {
    width: 100%;

    height: 70px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 10px;

    color: #555555;

    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.5px;

    flex-shrink: 0;
}

.site-footer p {
    margin: 0;
    line-height: 1;
}


/* =========================================================
   GENERAL RESULT FADE
   ========================================================= */

@keyframes resultsFade {

    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .results-content {
        max-width: 1050px;
    }

    #results {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .statistics {
        gap: 32px;
    }

    .birthday-countdown {
        gap: 22px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .screen {
        padding-left: 30px;
        padding-right: 30px;
    }

    .results-content {
        max-width: 760px;
    }

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

        row-gap: 28px;
    }

    .birthday-countdown {
        gap: 14px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .app {
        min-height: calc(100svh - var(--footer-height));
    }

    .screen {
        min-height: calc(100svh - 70px);

        padding:
            max(35px, env(safe-area-inset-top))
            22px
            max(50px, env(safe-area-inset-bottom));
    }


    #results {
        align-items: flex-start;

        padding-top: max(42px, env(safe-area-inset-top));
        padding-bottom: max(42px, env(safe-area-inset-bottom));
    }
    


    .content,
    .results-content {
        max-width: 100%;
    }

    .result-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .result-actions .share-button,
    .result-actions .secondary-button {
        width: 100%;
        min-width: 0;
    }



    .eyebrow {
        margin-bottom: 28px;

        font-size: 11px;

        letter-spacing: 5px;
    }


    h1 {
        margin-bottom: 22px;

        font-size:
            clamp(
                44px,
                13vw,
                72px
            );

        letter-spacing: -3px;
    }


    .description {
        margin-bottom: 38px;

        font-size: 15px;
    }


    input {
        max-width: 100%;

        font-size: 23px;
    }


    .primary-stat {
        gap: 10px;

        margin-bottom: 28px;
    }


    .primary-stat span:first-child {
        font-size:
            clamp(
                64px,
                19vw,
                105px
            );

        letter-spacing: -5px;
    }


    .primary-stat .unit {
        font-size: 10px;

        letter-spacing: 2px;
    }


    .exact-age {
        margin-bottom: 24px;

        font-size: 10px;
    }


    .birth-info {
        margin-bottom: 30px;
    }


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

        column-gap: 22px;

        row-gap: 26px;
    }


    .stat {
        padding-bottom: 12px;
    }


    .stat span {
        font-size: 23px;
    }


    .stat small {
        font-size: 8px;

        letter-spacing: 1.5px;
    }


    .divider {
        margin: 38px 0;
    }


    .birthday-countdown {
        gap: 9px;

        width: 100%;
    }


    .birthday-unit {
        min-width: 0;

        flex: 1;
    }


    .birthday-unit span {
        font-size:
            clamp(
                23px,
                8vw,
                31px
            );

        letter-spacing: -1px;
    }


    .birthday-unit small {
        font-size: 7px;

        letter-spacing: 1.5px;
    }


    .birthday-separator {
        font-size: 20px;

        margin-top: 0;
    }


    .secondary-button {
        margin-top: 28px;
    }

    #discoverBtn,
    .secondary-button,
    .share-button {
        width: 100%;
        max-width: 360px;
    }

    .result-actions .secondary-button {
        margin-top: 0;
    }

    .share-modal {
        padding: 12px;
    }

    .share-modal__panel {
        max-height: calc(100vh - 24px);

        padding: 12px;
    }

    .share-modal__header {
        margin-bottom: 12px;
    }

    .share-preview-wrap {
        margin-bottom: 12px;
    }

    .share-card {
        padding: 20px;
    }

    .share-card__brand {
        margin-bottom: 10px;
    }

    .share-card__days span {
        font-size: clamp(38px, 13vw, 52px);
    }

    .share-card__rule {
        margin: 10px 0;
    }

    .share-card__statistics {
        gap: 3px;

        margin-top: 10px;
    }

    .share-card__statistics p {
        font-size: 8px;
    }

    .share-card__statistics span {
        font-size: 13px;
    }

    .share-card__footer {
        padding-top: 8px;

        font-size: 7px;
    }

    .share-modal__actions {
        gap: 8px;
    }

    .share-modal__actions button {
        padding-right: 6px;
        padding-left: 6px;

        font-size: 9px;

        letter-spacing: 1.5px;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .screen {
        padding-left: 18px;
        padding-right: 18px;
    }


    .statistics {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        column-gap: 20px;

        row-gap: 22px;
    }


    .stat span {
        font-size: 21px;
    }


    .birthday-countdown {
        gap: 6px;
    }


    .birthday-unit span {
        font-size: 21px;
    }


    .birthday-separator {
        font-size: 17px;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 360px) {

    .site-footer {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .screen {
        padding-left: 18px;
        padding-right: 18px;
    }

    h1 {
        font-size: 40px;

        letter-spacing: -2.5px;
    }

    .description {
        margin-bottom: 32px;
    }

    .primary-stat {
        gap: 8px;
    }

    .primary-stat span:first-child {
        font-size: 58px;

        letter-spacing: -4px;
    }

    .birthday-countdown {
        gap: 4px;
    }

    .birthday-unit span {
        font-size: 19px;
    }

    .birthday-separator {
        font-size: 15px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .screen,
    .stat,
    #landing .eyebrow,
    #landing h1,
    #landing .description,
    #landing .input-group,
    #landing #discoverBtn,
    #results .eyebrow,
    #results .result-label,
    #results .primary-stat,
    #results .exact-age,
    #results .birth-info,
    #results .divider,
    #results .birthday,
    #results .share-button,
    #results .secondary-button {
        animation: none !important;

        opacity: 1;

        transform: none;

        filter: none;
    }


    .stat::after {
        animation: none !important;

        width: 100%;

        opacity: 1;
    }


    #birthdaySeconds {
        animation: none !important;
    }


    button,
    input {
        transition: none;
    }

    .share-modal,
    .share-modal__panel {
        transition: none;
    }
}