/* =========================================================
   Peoplekeeper landing page — shared styles
   Dark-first, violet brand identity matching the iOS app.
   ========================================================= */

:root {
    --bg-top: #0e0f18;
    --bg-bottom: #0a0b12;
    --surface: #1a1c26;
    --surface-raised: #242633;
    --hairline: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-tertiary: rgba(255, 255, 255, 0.48);
    --accent: #7c3aed;
    --accent-bright: #8b5cf6;
    --accent-soft: rgba(124, 58, 237, 0.18);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1140px;
    --shadow-glow: 0 30px 80px -20px rgba(124, 58, 237, 0.5);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    min-height: 100vh;
    width: 100%;
    /* Prevent any decorative element / off-canvas glow from causing the
       page to scroll horizontally on mobile. `clip` is preferred where
       supported; older browsers fall back to `hidden`. */
    overflow-x: hidden;
    overflow-x: clip;
}

/* Decorative glow blobs in the background */
body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
}

body::before {
    width: 520px;
    height: 520px;
    top: -180px;
    left: -160px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}

body::after {
    width: 600px;
    height: 600px;
    top: 30%;
    right: -240px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    opacity: 0.4;
}

a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #a78bfa;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* =========================================================
   Layout helpers
   ========================================================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    z-index: 1;
}

/* =========================================================
   Navigation
   ========================================================= */

/* Default nav style (used on /privacy, /terms etc.) — sits at the top of
   the page and scrolls away with the content. */
.nav {
    padding: 24px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
}

/* Header-overlay nav (landing page) — absolutely positioned on top of the
   header image, scrolls away naturally with the rest of the page. */
.page-header__nav {
    padding: 24px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 8px 24px -6px rgba(124, 58, 237, 0.4);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.nav__links a:hover {
    color: var(--text-primary);
}

@media (max-width: 720px) {
    .nav__links a:not(.btn) {
        display: none;
    }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease,
        background 0.2s ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 36px 90px -20px rgba(124, 58, 237, 0.7);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--hairline);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn--lg {
    padding: 18px 28px;
    font-size: 16px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* =========================================================
   Page header (full-bleed banner image with transparent nav on top)
   ========================================================= */

.page-header {
    position: relative;
    width: 100%;
    line-height: 0;
    z-index: 1;
    isolation: isolate;
}

.page-header__img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    padding: 80px 0 100px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero__cta {
        justify-content: center;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 10px #a78bfa;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    margin: 24px 0 20px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #c4b5fd 0%, var(--accent-bright) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 0 32px;
}

@media (max-width: 960px) {
    .hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero__meta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    color: var(--text-tertiary);
    font-size: 14px;
}

@media (max-width: 960px) {
    .hero__meta {
        justify-content: center;
    }
}

.hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   Hero iPhone screenshot
   ========================================================= */

.phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-stage::before {
    content: "";
    position: absolute;
    inset: -10% -20%;
    background: radial-gradient(
        circle at center,
        rgba(124, 58, 237, 0.35) 0%,
        transparent 60%
    );
    z-index: -1;
    filter: blur(40px);
}

.phone-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    margin: 0 auto;
    filter: drop-shadow(0 50px 90px rgba(0, 0, 0, 0.55))
        drop-shadow(0 20px 40px rgba(124, 58, 237, 0.25));
    user-select: none;
}

@media (max-width: 960px) {
    .phone-image {
        max-height: 480px;
    }
}

/* Avatar utility (still used by the .illustration block in the Why section) */
.phone__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

/* =========================================================
   Section heading
   ========================================================= */

.section-head {
    text-align: center;
    margin: 0 auto 56px;
    max-width: 680px;
}

.section-head h2 {
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -0.02em;
    margin: 12px 0 16px;
    font-weight: 700;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 17px;
    margin: 0;
}

/* =========================================================
   Features
   ========================================================= */

.features {
    padding: 80px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}

.feature {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.2s ease, border-color 0.2s ease,
        background 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.4);
    background: var(--surface-raised);
}

.feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: #c4b5fd;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
}

.feature__icon svg {
    width: 24px;
    height: 24px;
}

.feature h3 {
    font-size: 20px;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.feature p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* =========================================================
   Why-use section
   ========================================================= */

.why {
    padding: 100px 0;
}

.why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 900px) {
    .why__grid {
        grid-template-columns: 1fr;
    }
}

.why h2 {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.why p {
    color: var(--text-secondary);
    font-size: 17px;
    margin: 0 0 24px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 16px;
}

.check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-bright);
    display: grid;
    place-items: center;
    margin-top: 1px;
}

.check svg {
    width: 14px;
    height: 14px;
}

/* Decorative card stack used on the right side of "why" section */
.illustration {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.illustration__card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.illustration__card .row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.illustration__card .name {
    font-weight: 600;
    font-size: 15px;
}

.illustration__card .sub {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.illustration__card--a {
    top: 6%;
    left: 0;
    width: 78%;
    transform: rotate(-3deg);
}

.illustration__card--b {
    top: 38%;
    right: 0;
    width: 70%;
    transform: rotate(2deg);
}

.illustration__card--c {
    bottom: 4%;
    left: 14%;
    width: 74%;
    transform: rotate(-1deg);
}

.illustration .glow {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(
        circle at center,
        rgba(124, 58, 237, 0.45) 0%,
        transparent 60%
    );
    filter: blur(50px);
    z-index: -1;
}

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

.faq {
    padding: 40px 0 20px;
}

.faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq__item {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq__item[open] {
    border-color: rgba(139, 92, 246, 0.45);
    background: var(--surface-raised);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    padding: 20px 22px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__chev {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-right: 4px;
}

.faq__item[open] .faq__chev {
    transform: rotate(-135deg);
    border-color: var(--accent-bright);
}

.faq__item p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 700px) {
    .faq__item summary {
        font-size: 16px;
        padding: 18px 18px;
    }

    .faq__item p {
        padding: 0 18px 18px;
        font-size: 15px;
    }
}

/* =========================================================
   CTA banner
   ========================================================= */

.cta {
    padding: 80px 0 100px;
}

.cta__inner {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.18) 0%,
        rgba(124, 58, 237, 0.08) 100%
    );
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta__inner::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(
        circle at 30% 20%,
        rgba(139, 92, 246, 0.4),
        transparent 50%
    );
    z-index: 0;
}

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

.cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.cta p {
    color: var(--text-secondary);
    margin: 0 0 28px;
    font-size: 17px;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    padding: 60px 0 48px;
    border-top: 1px solid var(--hairline);
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__links a {
    color: var(--text-secondary);
}

.footer__links a:hover {
    color: var(--text-primary);
}

/* =========================================================
   Legal pages (privacy / terms)
   ========================================================= */

.legal {
    padding: 120px 0 100px;
}

.legal__header {
    text-align: center;
    margin-bottom: 48px;
}

.legal__header h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin: 16px 0 12px;
    letter-spacing: -0.02em;
}

.legal__header p {
    color: var(--text-tertiary);
    margin: 0;
}

.legal__body {
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

@media (max-width: 700px) {
    .legal__body {
        padding: 32px 24px;
    }
}

.legal__body h2 {
    color: var(--text-primary);
    font-size: 22px;
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
}

.legal__body h2:first-child {
    margin-top: 0;
}

.legal__body p,
.legal__body ul {
    margin: 0 0 14px;
}

.legal__body ul {
    padding-left: 22px;
}

.legal__body li {
    margin-bottom: 6px;
}

.legal__body strong {
    color: var(--text-primary);
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}

.illustration__card--a { --r: -3deg; animation: float 7s ease-in-out infinite; }
.illustration__card--b { --r: 2deg;  animation: float 8s ease-in-out infinite 1s; }
.illustration__card--c { --r: -1deg; animation: float 9s ease-in-out infinite 2s; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
