/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smooth theme transitions (applied after first paint to avoid FOUC (flash of unstyled content)) */
html.theme-ready,
body.theme-ready,
body.theme-ready nav,
body.theme-ready .feature-card,
body.theme-ready .step,
body.theme-ready .testimonial-card,
body.theme-ready .pricing-card,
body.theme-ready .contact-method,
body.theme-ready .contact-form,
body.theme-ready .app-mockup,
body.theme-ready .mockup-bar,
body.theme-ready footer,
body.theme-ready .form-group input,
body.theme-ready .form-group select,
body.theme-ready .form-group textarea,
body.theme-ready .theme-toggle {
    transition-property:
        background, background-color, border-color, color, box-shadow;
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --teal: #14b8a6;
    --teal-dark: #0d9488;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --mid: #334155;
    --light: #e2e8f0;
    --lighter: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    --gradient-dark: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --shadow: 0 4px 24px rgba(14, 165, 233, 0.15);
    --shadow-lg: 0 8px 48px rgba(14, 165, 233, 0.22);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    background: var(--dark);
}

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.clock-wrapper,
.cal-wrapper {
    animation: clock-float 180s ease-in-out infinite;
}

.cal-wrapper object {
    transform: rotate(15deg);
}

#how-it-works {
    isolation: isolate;
}

#how-it-works > :not(.cal-wrapper) {
    position: relative;
    z-index: 1;
}

@keyframes clock-float {
    0% { transform: translate(0, 0); }
    20% { transform: translate(35px, -35px); }
    40% { transform: translate(-45px, 20px); }
    60% { transform: translate(-30px, -40px); }
    80% { transform: translate(40px, 30px); }
    100% { transform: translate(0, 0); }
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: bold;
    /*letter-spacing: 3px;*/
	height: 80px;
}

.nav-logo img {
    content: url("https://pivotthings-15276.kxcdn.com/almost_time/images/family_tree_logo_white_fg.png");
}

.nav-logo .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient);
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 6px var(--primary);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px var(--teal);
        transform: scale(1.3);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}
.nav-links a {
    font-size: 0.95rem;
    color: var(--light);
    transition: color 0.2s;
}
/*
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}
*/

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        opacity 0.2s;
    border: none;
}
.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.5);
	color: var(--light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
}

.btn-lg {
    padding: 0.85rem 2.2rem;
    font-size: 1.05rem;
    border-radius: 10px;
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.13);
}
.btn-apk {
	background: var(--light);
	color: var(--dark);
}

/* ===== Hero ===== */
.hero {
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 5rem;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            ellipse 80% 60% at 50% -10%,
            rgba(14, 165, 233, 0.22) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 80%,
            rgba(20, 184, 166, 0.14) 0%,
            transparent 70%
        );
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
}

.hero h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.avatars {
    display: flex;
}
.avatars img,
.avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    margin-left: -8px;
}
.avatar-placeholder {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.hero-visual {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
}

.app-mockup {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(14, 165, 233, 0.1);
}

.mockup-bar {
    background: var(--mid);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}
.mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.mockup-dot:nth-child(1) {
    background: #ef4444;
}
.mockup-dot:nth-child(2) {
    background: #f59e0b;
}
.mockup-dot:nth-child(3) {
    background: #22c55e;
}

.mockup-body {
    padding: 1.5rem;
}

.mockup-month {
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    font-size: 0.8rem;
    text-align: center;
}

.mockup-day-label {
    color: #64748b;
    font-weight: 600;
    padding: 0.3rem 0;
}

.mockup-day {
    padding: 0.45rem 0.2rem;
    border-radius: 6px;
    cursor: default;
    color: #94a3b8;
    font-size: 0.8rem;
}
.mockup-day.today {
    background: var(--gradient);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}
.mockup-day.birthday {
    background: rgba(20, 184, 166, 0.18);
    color: var(--teal);
    font-weight: 600;
    position: relative;
}
.mockup-day.birthday::after {
    content: "🎂";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
}
.mockup-day.other-month {
    color: #334155;
}

.mockup-upcoming {
    margin-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}
.mockup-upcoming-title {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.mockup-event {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}
.event-icon {
    font-size: 1.1rem;
}
.event-name {
    font-weight: 600;
    color: var(--light);
}
.event-date {
    margin-left: auto;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.78rem;
}

/* ===== Section Shared ===== */
section {
    padding: 6rem 5%;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}
.section-sub {
    color: #94a3b8;
    max-width: 520px;
    font-size: 1.05rem;
}
.text-center {
    text-align: center;
}
.text-center .section-sub {
    margin: 0 auto;
}

/* ===== Features ===== */
.features {
    background: rgba(255, 255, 255, 0.02);
}

.features-header {
    margin-bottom: 3.5rem;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.feature-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ===== How it works ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.25s;
}
.step:hover {
    border-color: rgba(14, 165, 233, 0.25);
}

.step-num {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.step p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ===== Testimonials ===== */
.testimonials {
    background: rgba(255, 255, 255, 0.02);
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.testimonial-card blockquote {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.25rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}
.author-name {
    font-weight: 700;
    font-size: 0.9rem;
}
.author-handle {
    font-size: 0.8rem;
    color: #64748b;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 8px 48px rgba(14, 165, 233, 0.3);
    position: relative;
}
/*
.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
*/
.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .cta-box {
	color: #000;
	background: #fff;
	border-radius: 20px;
	padding: 10px 20px;
}

.cta-actions .cta-box h1 {
	font-size:2rem;
	font-weight:800;
}

/* ===== Pricing ===== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    font-size: 0.95rem;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    display: inline-block;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: var(--mid);
    border-radius: 999px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.save-badge {
    background: rgba(20, 184, 166, 0.2);
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.pricing-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow:
        0 0 0 1px var(--primary),
        var(--shadow-lg);
    /*transform: translateY(-8px);*/
}

/*
.pricing-card.popular:hover {
    transform: translateY(-12px);
}
*/

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.plan-price {
    margin: 1rem 0;
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
}
.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}
.plan-price .currency {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.plan-price .period {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}
.plan-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    font-size: 0.93rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.plan-features li:last-child {
    border-bottom: none;
}
.check {
    color: var(--teal);
    font-weight: 700;
}
.cross {
    color: #475569;
}

.plan-btn {
    width: 100%;
    justify-content: center;
}

/* ===== FAQ ===== */
.faq {
    background: rgba(255, 255, 255, 0.02);
}
.faq-list {
    max-width: 680px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--light);
    user-select: none;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.25s;
    color: var(--primary);
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s;
    color: #94a3b8;
    font-size: 0.95rem;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 1.25rem;
}

/* ===== Contact ===== */
.contact-wrapper {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1.5fr;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.contact-info p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.method-label {
    font-size: 0.78rem;
    color: #64748b;
}
.method-value {
    font-weight: 600;
    color: var(--light);
}

.contact-form {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}
.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--light);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group select option {
    background: var(--dark-2);
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 1.5rem;
    color: var(--teal);
    font-weight: 600;
}
.form-success .success-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0.75rem 0 1.25rem;
    max-width: 260px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition:
        background 0.2s,
        transform 0.2s;
}
.social-link:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-col ul a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.85rem;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: radial-gradient(
        ellipse 60% 50% at 50% -5%,
        rgba(14, 165, 233, 0.18) 0%,
        transparent 70%
    );
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.page-hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}
.about-list p,
.about-list ul {
    margin: 0 0 1.5rem;
    text-align: left;
    max-width: 500px;
    line-height: 1.7;
}
.about-list p,
.about-list li {
    /*color: #94a3b8;*/
	color: #94a3b8;
    font-size: 1.1rem;
}
.about-list ul {
    padding-left: 1.5rem;
}
.about-list li {
    margin-bottom: 0.4rem;
}
.about-list li:last-child {
    margin-bottom: 0;
}

/* ===== Responsive Nav ===== */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    color: var(--light);
    font-size: 1.35rem;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.2s;
}
.nav-toggle:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: var(--primary);
}
.nav-toggle[aria-expanded="true"] {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--primary);
}

/* ===== Other Stuff ===== */


@media (max-width: 768px) {
    .clock-wrapper, .cal-wrapper {
        display: none;
    }

    nav {
        align-items: center;
        flex-wrap: wrap;
    }
    .nav-logo {
        font-size: 1.15rem;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        margin-left: 0;
        margin-top: 0.9rem;
        padding: 1rem;
        background: rgba(30, 41, 59, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.nav-links-open {
        display: flex;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
        border-radius: 10px;
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.05);
    }
    .nav-links .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }
    .nav-toggle {
        display: inline-flex;
    }
}

/* ===== Clock & Calendar Background Decorations ===== */
section {
    position: relative;
}
.page-hero {
    position: relative;
}

@keyframes deco-float-a {
    0%,
    100% {
        transform: rotate(var(--rot, 0deg)) translateY(0px);
    }
    50% {
        transform: rotate(var(--rot, 0deg)) translateY(-15px);
    }
}
@keyframes deco-float-b {
    0%,
    100% {
        transform: rotate(var(--rot, 0deg)) translateY(0px);
    }
    60% {
        transform: rotate(var(--rot, 0deg)) translateY(-10px);
    }
}
@keyframes deco-float-c {
    0%,
    100% {
        transform: rotate(var(--rot, 0deg)) translateY(0px);
    }
    40% {
        transform: rotate(var(--rot, 0deg)) translateY(-20px);
    }
}
.dfa {
    animation: deco-float-a 10s ease-in-out infinite;
}
.dfb {
    animation: deco-float-b 7s ease-in-out infinite;
    animation-delay: -2.5s;
}
.dfc {
    animation: deco-float-c 13s ease-in-out infinite;
    animation-delay: -5s;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.1rem;
}
.theme-toggle:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}

/* ===== Light Mode ===== */
html.light,
body.light {
    background: #f8fafc;
    color: #0f172a;
}

body.light nav {
    background: rgba(248, 250, 252, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light .nav-links a {
    color: #0f172a;
}
body.light .nav-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}
body.light .nav-toggle:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}
body.light .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
body.light .theme-toggle:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

body.light .hero-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 1) 1px, transparent 1px);
    opacity: 0.035;
}
body.light .hero p,
body.light .page-hero p {
    color: #475569;
}
body.light .hero-social-proof {
    color: #475569;
}
body.light .avatar-placeholder {
    border-color: #f8fafc;
}

body.light .app-mockup {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow:
        0 8px 48px rgba(14, 165, 233, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.08);
}
body.light .mockup-bar {
    background: #dde3ec;
}
body.light .mockup-day {
    color: #475569;
}
body.light .mockup-day.other-month {
    color: #94a3b8;
}
body.light .mockup-upcoming {
    border-top-color: rgba(0, 0, 0, 0.08);
}
body.light .mockup-event {
    background: rgba(0, 0, 0, 0.04);
}
body.light .event-name {
    color: #0f172a;
}

body.light .section-sub {
    color: #475569;
}

body.light .features,
body.light .testimonials,
body.light .faq {
    background: rgba(0, 0, 0, 0.025);
}

body.light .feature-card,
body.light .step,
body.light .testimonial-card,
body.light .pricing-card,
body.light .contact-method,
body.light .contact-form {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.09);
}
body.light .pricing-card.popular {
    border-color: var(--primary);
}
body.light .feature-card:hover,
body.light .step:hover {
    border-color: rgba(14, 165, 233, 0.3);
}

body.light .feature-card p,
body.light .step p,
body.light .plan-desc,
body.light .faq-answer,
body.light .contact-info p {
    color: #475569;
}
body.light .testimonial-card blockquote {
    color: #334155;
}
body.light .plan-features li {
    color: #334155;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light .faq-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light .faq-question {
    color: #0f172a;
}

body.light .method-value {
    color: #0f172a;
}
body.light .form-group label {
    color: #475569;
}
body.light .form-group input,
body.light .form-group select,
body.light .form-group textarea {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}
body.light .form-group select option {
    background: #ffffff;
}

body.light footer {
    background: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.08);
}
body.light .nav-logo img {
    content: url("https://pivotthings-15276.kxcdn.com/almost_time/images/family_tree_logo_black_fg.png");
}
body.light .footer-brand p,
body.light .footer-col ul a {
    color: #64748b;
}
body.light .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}
body.light .social-link {
    background: rgba(0, 0, 0, 0.06);
}

body.light .btn-ghost {
    background: rgba(0, 0, 0, 0.07);
	color: var(--light);
}
body.light .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.12);
}
body.light .plan-btn {
	background-color: inherit;
	color: inherit;
}
body.light .btn-apk {
	background-color: var(--dark);
	color: var(--light);
}

@media (max-width: 768px) {
    body.light .nav-links {
        background: rgba(248, 250, 252, 0.98);
        border-color: rgba(0, 0, 0, 0.08);
    }
    body.light .nav-links a:hover {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Diagonal tick-mark pattern overlay for section backgrounds */
.tick-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(14, 165, 233, 0.03) 59px,
            rgba(14, 165, 233, 0.03) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            rgba(20, 184, 166, 0.03) 59px,
            rgba(20, 184, 166, 0.03) 60px
        );
}
