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

:root {
    --green: #5bbf6a;
    --green-dark: #3a9e4a;
    --green-light: #ebf7ed;
    --dark: #111110;
    --dark-2: #2a2a28;
    --gray: #525250;
    --cream: #f5f3ee;
    --white: #ffffff;
    --ink: #111110;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Google Sans", sans-serif;
    background: var(--cream);
    background-image:
        radial-gradient(rgba(91, 191, 106, 0.14) 1px, transparent 1px),
        radial-gradient(rgba(17, 17, 16, 0.04) 1px, transparent 1px);
    background-size:
        18px 18px,
        18px 18px;
    background-position:
        0 0,
        9px 9px;
    color: var(--dark);
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 2rem));
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Google Sans", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 9px;
}

.nav-cta {
    background: var(--dark);
    color: var(--white);
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 rgba(17, 17, 16, 0.75);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

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

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(91, 191, 106, 0.3) 0%, transparent 65%);
    pointer-events: none;
}

.hero h1 {
    font-family: "Google Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 720px;
    margin-bottom: 1.25rem;
}

.hero-title {
    position: relative;
    display: inline-block;
    padding: 1rem 1.8rem;
    border-radius: 24px;
    max-width: 11ch;
    margin: 0 auto;
    text-wrap: balance;
}

.hero h1 em {
    font-style: normal;
    color: var(--green-dark);
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 480px;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* SECTIONS */
section {
    padding: 6.5rem 1.5rem;
}

.download-section {
    padding: 5rem 1.5rem 7rem;
}

/* FEATURES */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.feature + .feature {
    margin-top: 11rem;
}

.feature.reverse {
    direction: rtl;
}

.feature.reverse > * {
    direction: ltr;
}

.feature-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    border: 2px solid rgba(58, 158, 74, 0.35);
    margin-bottom: 1.25rem;
}

.feature h2 {
    font-family: "Google Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.feature p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
    font-weight: 400;
    max-width: 380px;
}

.feature-detail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark-2);
    font-weight: 400;
}

.detail-item::before {
    content: "";
    width: 18px;
    height: 18px;
    background: var(--green-light);
    border: 2px solid var(--ink);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3.5 3.5L14 6' stroke='%23111110' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-wrap {
    position: relative;
    display: inline-block;
}

.phone-wrap::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(91, 191, 106, 0.24) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
}

.phone-img {
    width: 260px;
    border-radius: 32px;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 rgba(17, 17, 16, 0.2);
    display: block;
    position: relative;
    z-index: 1;
}

/* CTA SECTION */
.cta-section {
    background: var(--dark);
    border-radius: 24px;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 rgba(17, 17, 16, 0.35);
    padding: 5rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    height: 180px;
    background: radial-gradient(circle, rgba(91, 191, 106, 0.26) 0%, transparent 65%);
    pointer-events: none;
}

.cta-section::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    background: var(--dark);
    border-right: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    bottom: -18px;
    left: 52%;
    transform: rotate(42deg);
}

.cta-section h2 {
    font-family: "Google Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.cta-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 2.5rem;
    position: relative;
}

.cta-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 20px;
    margin: 0 auto 2rem;
    display: block;
    animation: float 2.4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--dark);
    font-family: "Google Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.88rem 2rem;
    border-radius: 14px;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(17, 17, 16, 0.6);
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    position: relative;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.825rem;
    color: var(--gray);
    font-weight: 400;
}

footer p + p {
    margin-top: 0.5rem;
}

footer a {
    color: var(--green-dark);
    text-underline-offset: 2px;
}

footer a:focus-visible {
    outline: 3px solid var(--green-dark);
    outline-offset: 3px;
    border-radius: 6px;
}

/* DIVIDER */
.btn-white:focus-visible,
.nav-cta:focus-visible,
.nav-logo:focus-visible {
    outline: 3px solid var(--green-dark);
    outline-offset: 3px;
}

.nav-logo:focus-visible {
    border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        top: 0.75rem;
        width: calc(100% - 1rem);
        padding: 0.8rem 1rem;
        border-radius: 12px;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .hero {
        padding-top: 8.8rem;
    }

    .hero-title {
        padding: 0.8rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature + .feature {
        margin-top: 7rem;
    }

    .feature.reverse {
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }

    .phone-img {
        width: 220px;
    }

    .cta-section {
        padding: 3.5rem 1.5rem;
        border-radius: 24px;
    }

    .cta-section::after {
        left: 50%;
    }

    section {
        padding: 5rem 1.25rem;
    }
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero h1,
.hero p {
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero p {
    animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cta-logo,
    .hero h1,
    .hero p {
        animation: none;
    }
}

/* DOC PAGES */
body.page-doc {
    background-image: none;
    line-height: 1.6;
}

.page-doc main {
    width: min(880px, calc(100% - 2rem));
    margin: 7rem auto 3rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 rgba(17, 17, 16, 0.2);
    padding: 2rem;
}

.page-doc .page-top {
    margin-bottom: 1.25rem;
}

.page-doc .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0;
    background: transparent;
    color: var(--gray);
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.page-doc .back-link:hover {
    color: var(--dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-doc h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-doc .updated-at {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.page-doc .lead {
    font-size: 1.05rem;
    color: var(--dark-2);
    margin-bottom: 1.75rem;
}

.page-doc h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-doc h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-doc p {
    margin-bottom: 1rem;
}

.page-doc ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}

.page-doc li + li {
    margin-top: 0.45rem;
}

.page-doc a {
    color: var(--green-dark);
    text-underline-offset: 2px;
}

.page-doc a:focus-visible {
    outline: 3px solid var(--green-dark);
    outline-offset: 3px;
    border-radius: 8px;
}

.page-doc hr {
    border: 0;
    border-top: 1px solid rgba(17, 17, 16, 0.18);
    margin: 1.5rem 0;
}

.page-doc .footer-note {
    margin-top: 2rem;
    color: var(--gray);
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .page-doc main {
        margin-top: 6rem;
        padding: 1.25rem;
    }
}