/*
  PingCircle marketing site: shared stylesheet.
  Single dark theme (the original palette), used consistently everywhere.
  No light-mode variant, so embedded product screenshots never clash with
  the page around them.
*/

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

:root {
    --bg: #131318;
    --surface: #1B1B23;
    --surface-elevated: #26262F;

    --orange: #FF7A47;
    --crimson: #C42A2A;
    --purple: #8A4FF0;
    --gradient: linear-gradient(135deg, var(--orange) 0%, var(--crimson) 55%, var(--purple) 100%);

    --text: #F5F5F7;
    --text-secondary: #ADADC2;
    --text-tertiary: #77778E;

    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(255, 255, 255, 0.05);

    --radius-tile: 16px;
    --radius-card: 24px;
    --radius-pill: 9999px;
}

.accent {
    color: var(--orange);
}

html {
    color-scheme: dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(19, 19, 24, 0.85);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    text-decoration: none;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}

.cta-button {
    padding: 13px 28px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(196, 42, 42, 0.18);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(196, 42, 42, 0.26);
}

.cta-button:active {
    transform: translateY(0);
}

.secondary-button {
    padding: 13px 28px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--glass);
    border-color: var(--text-tertiary);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(19, 19, 24, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
}

/* Hero */
.hero {
    padding: 160px 20px 90px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 22px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--glass);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--text);
}

.hero h1 {
    font-size: clamp(36px, 5.4vw, 62px);
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.12;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

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

/* Phone / product shot frame, holds a real screenshot */
.app-preview {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.app-preview::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(196, 42, 42, 0.20) 0%, rgba(138, 79, 240, 0.12) 45%, transparent 72%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.phone-mockup {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 9/19.5;
    background: var(--surface);
    border-radius: 40px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 33px;
    display: block;
}

.phone-caption {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.7px;
}

.section-header p {
    font-size: clamp(16px, 2.1vw, 19px);
    color: var(--text-secondary);
}

/* Features */
.features {
    padding: 90px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 18px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 15px;
}

/* Showcase: a single real screenshot paired with copy, used sparingly */
.showcase {
    padding: 90px 20px;
    background: var(--surface);
}

.showcase-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
}

.showcase-inner.reverse {
    flex-direction: row-reverse;
}

.showcase-copy {
    flex: 1;
}

.showcase-copy .eyebrow {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.showcase-copy h2 {
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.showcase-copy p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.showcase-shot {
    flex-shrink: 0;
    width: 260px;
}

.showcase-shot .phone-mockup {
    aspect-ratio: 9/19.5;
}

/* How It Works */
.how-it-works {
    padding: 90px 20px;
}

.steps {
    max-width: 980px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 36px;
    margin-bottom: 64px;
    align-items: center;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(196, 42, 42, 0.20);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: clamp(21px, 3.2vw, 25px);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.7;
}

/* Circles Section */
.circles-section {
    padding: 90px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.circles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.circle-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-tile);
    padding: 28px 22px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.circle-card:hover {
    border-color: var(--border-strong);
}

.circle-emoji {
    font-size: 36px;
    margin-bottom: 12px;
}

.circle-card h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.circle-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Stats */
.stats-section {
    padding: 90px 20px;
    text-align: center;
    background: var(--surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 36px;
    max-width: 900px;
    margin: 44px auto 0;
}

.stat-item h3 {
    font-size: clamp(38px, 4.8vw, 50px);
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 6px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* CTA */
.cta-section {
    padding: 110px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.7px;
}

.cta-section p {
    font-size: clamp(16px, 2.1vw, 21px);
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* Footer */
footer {
    background: var(--bg);
    padding: 80px 20px 36px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 44px;
    margin-bottom: 56px;
}

.footer-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 11px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Long-form content pages (privacy / terms / for-parents / support).
   Scoped under .content so it never touches the homepage sections. */
.content {
    max-width: 880px;
    margin: 0 auto;
    padding: 160px 20px 90px;
}

.content .hero {
    padding: 0;
    text-align: center;
    margin-bottom: 36px;
    max-width: none;
}

.content h1 {
    font-size: clamp(32px, 4.8vw, 48px);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.7px;
}

.content .hero p {
    font-size: clamp(16px, 2.2vw, 20px);
    max-width: 620px;
}

.content h2 {
    font-size: clamp(24px, 3.4vw, 30px);
    font-weight: 700;
    margin: 52px 0 18px;
    letter-spacing: -0.3px;
}

.content h3 {
    font-size: clamp(19px, 2.6vw, 22px);
    font-weight: 600;
    margin: 32px 0 14px;
}

.content p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.75;
}

.content ul {
    color: var(--text-secondary);
    margin: 18px 0 18px 26px;
    line-height: 1.75;
    font-size: 16px;
}

.content ul li {
    margin-bottom: 9px;
}

.content strong {
    color: var(--text);
    font-weight: 600;
}

.content a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content a:hover {
    border-bottom-color: var(--orange);
}

.last-updated {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: 36px;
}

.highlight-box {
    background: rgba(138, 79, 240, 0.10);
    border-left: 3px solid var(--purple);
    padding: 20px 22px;
    margin: 26px 0;
    border-radius: 10px;
}

.highlight-box p {
    margin-bottom: 0;
}

.warning-box {
    background: rgba(196, 42, 42, 0.10);
    border-left: 3px solid var(--crimson);
    padding: 20px 22px;
    margin: 26px 0;
    border-radius: 10px;
}

.warning-box p {
    margin-bottom: 0;
}

.safety-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 30px;
    margin: 32px 0;
}

.safety-box h2 {
    margin-top: 0;
}

.safety-box p:last-child {
    margin-bottom: 0;
}

.cta-row {
    text-align: center;
    margin-top: 64px;
    padding-top: 44px;
    border-top: 1px solid var(--border);
}

.cta-row p {
    margin-bottom: 22px;
}

/* Support page */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 56px;
}

.quick-link-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-tile);
    padding: 26px;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s ease;
}

.quick-link-card:hover {
    border-color: var(--border-strong);
}

.quick-link-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.quick-link-card h3 {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 6px;
}

.quick-link-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.faq-section {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-tile);
    padding: 24px;
    margin-bottom: 14px;
}

.faq-question {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-tile);
    padding: 28px;
}

.contact-card h4 {
    font-size: 19px;
    margin-bottom: 12px;
    color: var(--text);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-card a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.contact-card a:hover {
    border-bottom-color: var(--orange);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero {
        padding: 120px 20px 56px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button, .secondary-button {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .showcase-inner,
    .showcase-inner.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .showcase-shot {
        width: 220px;
    }

    .step {
        flex-direction: column !important;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 14px 20px;
    }

    .logo, .logo-link {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 130px 20px 70px;
    }
}
