/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --legna-gold: #f5a623;
    --legna-gold-soft: #ffd68a;
    --legna-brown: #5c3b1a;
    --legna-text: #2d1a0c;
    --legna-bg: #fff7e9;
    --legna-accent: #2bb3b1;
    --legna-card: #ffffff;
    --legna-border: #f2e2c9;
    --legna-radius-lg: 18px;
    --legna-radius-md: 10px;
    --legna-shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.08);
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #fffdf6 0, var(--legna-bg) 50%, #fbeed9 100%);
    color: var(--legna-text);
}

body {
    line-height: 1.6;
    min-height: 100vh;
    /* ⬅ add this */
    display: flex;
    /* ⬅ add this */
    flex-direction: column;
    /* ⬅ add this */
}

/* ===== Layout helpers ===== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header / Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(255, 247, 233, 0.92);
    border-bottom: 1px solid rgba(242, 226, 201, 0.8);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--legna-brown);
}

.brand-tagline {
    font-size: 0.8rem;
    color: rgba(45, 26, 12, 0.7);
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(45, 26, 12, 0.8);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav-links a:hover {
    background: rgba(245, 166, 35, 0.12);
    color: var(--legna-brown);
    transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
    padding: 60px 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: rgba(92, 59, 26, 0.7);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 2.9rem);
    line-height: 1.12;
    color: var(--legna-brown);
    margin-bottom: 12px;
}

.hero-highlight {
    background: linear-gradient(90deg, var(--legna-gold), var(--legna-accent));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1rem;
    max-width: 520px;
    color: rgba(45, 26, 12, 0.8);
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.2s ease,
        color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--legna-gold), var(--legna-gold-soft));
    color: #3b2a1a;
    box-shadow: 0 12px 24px rgba(245, 166, 35, 0.33);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(245, 166, 35, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--legna-brown);
    border: 1px dashed rgba(92, 59, 26, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-meta {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(45, 26, 12, 0.7);
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hero-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(43, 179, 177, 0.3);
    color: rgba(45, 26, 12, 0.8);
    background: rgba(255, 255, 255, 0.9);
}

.hero-logo-card {
    justify-self: center;
    background: radial-gradient(circle at top, #fff 0, #ffe9c1 80%);
    border-radius: 26px;
    padding: 28px 26px;
    box-shadow: var(--legna-shadow-soft);
    text-align: center;
    max-width: 280px;
}

.hero-logo-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hero-logo-name {
    font-weight: 700;
    color: var(--legna-brown);
    margin-bottom: 4px;
}

.hero-logo-tagline {
    font-size: 0.85rem;
    color: rgba(45, 26, 12, 0.7);
}

/* ===== Sections ===== */
.section {
    padding: 30px 0 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    gap: 12px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--legna-brown);
}

.section-subtitle {
    font-size: 0.9rem;
    color: rgba(45, 26, 12, 0.75);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(45, 26, 12, 0.9);
    margin: 0.4rem 0 0.9rem;
}

/* ===== Project cards ===== */
.projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
    gap: 20px;
}

@media (max-width: 880px) {
    .hero-inner {
        display: block;
    }

    .hero-logo-card {
        order: -1;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-inner>div {
        max-width: 720px;
        /* controls line length */
        margin: 0 auto;
        /* centers the hero content */
    }
}

.cta-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
}

.cta-pill {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    color: rgba(45, 26, 12, 0.85);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.project-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--legna-radius-lg);
    padding: 18px 18px 16px;
    border: 1px solid var(--legna-border);
    box-shadow: var(--legna-shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.project-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(43, 179, 177, 0.1);
    color: rgba(45, 26, 12, 0.85);
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--legna-brown);
}

.project-tagline {
    font-size: 0.85rem;
    color: rgba(45, 26, 12, 0.65);
}

.project-description {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(45, 26, 12, 0.8);
}

.project-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 0.8rem;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    color: var(--legna-brown);
    text-decoration: none;
}

.pill-link span {
    font-size: 1rem;
}

/* smaller supporting project card */
.project-card-secondary {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--legna-radius-lg);
    padding: 16px;
    border: 1px dashed rgba(92, 59, 26, 0.25);
    font-size: 0.88rem;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid rgba(242, 226, 201, 0.8);
    padding: 18px 0 24px;
    font-size: 0.8rem;
    color: rgba(45, 26, 12, 0.7);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    color: rgba(45, 26, 12, 0.8);
    text-decoration: none;
}

/* ===== Product page specific ===== */
.hero.product-hero {
    padding-top: 40px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 30px;
}

@media (max-width: 880px) {
    .product-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 20px 20px 18px;
    border: 1px solid var(--legna-border);
    box-shadow: var(--legna-shadow-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.14);
    color: var(--legna-brown);
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 4px;
}

.feature-list li {
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
    font-size: 0.9rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--legna-gold);
}

.product-gallery-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.phone-frame {
    position: relative;
    width: 280px;
    max-width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: 32px;
    padding: 10px;
    background: #1b120c;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}


.phone-screen {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    background: #000;
    border-radius: inherit;
    display: none;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.phone-screen.is-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}


.phone-nav {
    position: absolute;
    inset-inline: 18px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.product-gallery-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* center everything including dots */
}

.phone-dots-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
}

.phone-dots {
    display: flex;
    gap: 8px;
}

.phone-nav button {
    pointer-events: auto;
    border: none;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fdf5e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.phone-dots {
    position: static;
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: auto;
    transform: none;
    left: auto;
    bottom: auto;
}

.phone-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.phone-dot.is-active {
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* specific style for the Google Play badge */
.store-btn-google {
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.store-btn-google img {
    display: block;
    height: 60px;
    /* adjust if you want it bigger/smaller */
    width: auto;
}

.product-meta {
    max-width: 900px;
    /* you can change to 100% if you want full width */
    margin: 40px 0 0;
    /* no auto centering, aligns with container padding */
    text-align: left;
    /* keep text left-aligned */
    /* no padding-left here – let .container handle the 20px left padding */
}

.product-meta-title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: var(--legna-brown);
    text-align: left;
    /* ⬅ ensure title is left aligned */
}

.product-meta p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: rgba(45, 26, 12, 0.85);
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(45, 26, 12, 0.85);
    margin: 1.25rem 0 1.25rem;
    max-width: none;
    width: 100%;
}

.hero-subtext {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(45, 26, 12, 0.75);
    margin: 1.25rem 0 1.25rem;
    max-width: none;
    width: 100%;
}

.store-btn {
    margin-top: 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.store-btn span {
    font-size: 1.1rem;
}

.policy-links-inline {
    margin-top: 14px;
    font-size: 0.85rem;
}

.policy-links-inline a {
    color: var(--legna-brown);
    text-decoration: none;
}

/* ===== Legal pages ===== */
.legal-page {
    padding: 40px 0 50px;
}

.legal-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--legna-border);
    box-shadow: var(--legna-shadow-soft);
    padding: 22px 22px 18px;
}

.legal-title {
    font-size: 1.6rem;
    color: var(--legna-brown);
    margin-bottom: 10px;
}

.legal-meta {
    font-size: 0.85rem;
    color: rgba(45, 26, 12, 0.7);
    margin-bottom: 16px;
}

.legal-card h2 {
    font-size: 1.05rem;
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--legna-brown);
}

.legal-card p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
    align-items: start;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.team-photo {
    width: 80px;
    height: 80px;
    background: #f4e9dd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #c59555;
}

.team-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.team-role {
    font-size: 0.95rem;
    color: rgba(45, 26, 12, 0.75);
    margin: 0.25rem 0;
}

.team-links a {
    font-size: 0.95rem;
    color: #c59555;
    margin-right: 1rem;
    text-decoration: none;
}

@media (max-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr;
        /* stacks vertically on mobile */
    }

    .brand-tagline {
        display: none;
    }
}

main {
    flex: 1;
    /* ⬅ makes main take remaining height and pushes footer down */
}

/* Hamburger button (desktop: hidden) */
.nav-toggle {
    display: none;
    border: none;
    background: none;
    padding: 6px;
    margin-left: auto;
    margin-right: 10px;
    /* NEW — push left slightly */
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: rgba(45, 26, 12, 0.85);

    +span {
        margin-top: 4px;
    }
}

/* Mobile nav */
@media (max-width: 720px) {
    .site-header-inner {
        gap: 8px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 10px 20px 14px;
        background: rgba(255, 247, 233, 0.98);
        border-bottom: 1px solid rgba(242, 226, 201, 0.9);
        display: none;
        /* hidden by default */
        flex-direction: column;
        gap: 6px;
    }

    .nav-links a {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .nav-links.is-open {
        display: flex;
        /* shown when toggled */
    }
}

/* HAMBURGER → X ANIMATION */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Smooth animation */
.nav-toggle span {
    transition: transform 0.25s ease, opacity 0.25s ease;
}
@media (max-width: 880px) {
    .hero-inner {
        display: block;
        padding: 40px 0;        /* reduce vertical spacing */
    }

    .hero-inner > div {
        max-width: 700px;       /* controls readable width */
        margin: 0 auto;         /* center the text */
        padding: 0 10px;        /* prevent touching edges */
    }
}