/* ============================================
   Mindspace — Brand Website
   Design tokens derived from the iOS app
   ============================================ */

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

html, body {
    overflow-x: hidden;
}

:root {
    /* Colors — Core */
    --ink: #313234;
    --ink75: rgba(49, 50, 52, 0.75);
    --ink50: rgba(49, 50, 52, 0.50);
    --ink25: rgba(49, 50, 52, 0.25);
    --mist: #CDE0EA;
    --mist50: rgba(205, 224, 234, 0.50);
    --cloud: #EAF1F5;
    --cloud50: rgba(234, 241, 245, 0.50);
    --neutral: #F6F7F9;
    --white: #FFFFFF;

    /* Colors — Accent */
    --mint: #51BF97;
    --mint-light: rgba(81, 191, 151, 0.12);
    --rose: #CA588F;
    --lavender: #7B7ECA;
    --azure: #4C7BB2;
    --sky: #66A6C4;
    --coral: #E59472;

    /* Typography */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Radius */
    --radius-base: 20px;
    --radius-sm: 16px;
    --radius-xs: 12px;

    /* Shadows */
    --shadow-panel: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cloud);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-svg {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink75);
    transition: color 0.2s;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

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

.btn-primary {
    background: var(--mint);
    color: var(--white);
}

.btn-primary:hover {
    background: #47ab87;
    box-shadow: var(--shadow-card);
}

.btn-ghost {
    background: transparent;
    color: var(--ink75);
    border: 1.5px solid var(--mist);
}

.btn-ghost:hover {
    border-color: var(--ink25);
    color: var(--ink);
}


/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink75);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 48px;
}

.store-badge {
    height: 48px;
    width: auto;
    transition: opacity 0.2s;
}

.store-badge:hover {
    opacity: 0.8;
}

.hero-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ink50);
    font-size: 14px;
}

.hero-mockups {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 60px;
    padding-bottom: 20px;
}

.mockup-ipad {
    width: 680px;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
}

.mockup-iphone {
    width: 200px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
    margin-left: -60px;
    margin-bottom: -20px;
}


.platform-badges {
    display: flex;
    gap: 8px;
}

.platform-badge {
    padding: 4px 12px;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink75);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    font-weight: 300;
    color: var(--ink75);
    line-height: 1.6;
}

/* --- Features Grid --- */
.features {
    padding: 100px 0;
}

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

.feature-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--cloud);
    border-radius: var(--radius-base);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--mist);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: var(--mint-light);
    color: var(--mint);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    font-weight: 300;
    color: var(--ink75);
    line-height: 1.6;
}

/* --- Highlight Sections --- */
.highlight {
    padding: 100px 0;
    background: var(--neutral);
}

.highlight-alt {
    background: var(--white);
}

.highlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.highlight-reverse {
    direction: rtl;
}

.highlight-reverse > * {
    direction: ltr;
}

.highlight-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.highlight-text h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 16px;
}

.highlight-text p {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink75);
    line-height: 1.7;
}

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

.highlight-canvas {
    background: var(--cloud);
}

.highlight-mockup {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.1));
}

.highlight-badge {
    margin-top: 20px;
}

.highlight-badge svg {
    height: 36px;
    width: auto;
}

.highlight-sync {
    background: var(--cloud);
    text-align: center;
}

.highlight-sync .section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.highlight-sync .highlight-label {
    display: inline-block;
    margin-bottom: 16px;
}

.sync-mockups {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.sync-ipad {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
}

.sync-iphone {
    width: 220px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
    margin-left: -80px;
    margin-bottom: -30px;
}

.highlight-tracker-summary {
    background: var(--cloud);
    text-align: center;
}

.highlight-tracker-summary .section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.highlight-tracker-summary .highlight-label {
    display: inline-block;
    margin-bottom: 16px;
}

.tracker-summary-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.tracker-summary-mockup {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
}

.highlight-tasks {
    text-align: center;
}

.highlight-tasks .section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.highlight-tasks .highlight-label {
    display: inline-block;
    margin-bottom: 16px;
}

.tasks-mockup-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.tasks-mockup {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
}

.highlight-search {
    background: var(--cloud);
    text-align: center;
}

.highlight-search .section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.highlight-search .highlight-label {
    display: inline-block;
    margin-bottom: 16px;
}

.search-mockups {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.search-ipad {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
}

.search-iphone {
    width: 220px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
    margin-left: -80px;
    margin-bottom: -30px;
}

.highlight-media {
    text-align: center;
}

.highlight-media .section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.highlight-media .highlight-label {
    display: inline-block;
    margin-bottom: 16px;
}

.media-mockups {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.media-ipad {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
}

.media-iphone {
    width: 220px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
    margin-left: -80px;
    margin-bottom: -30px;
}

.highlight-map {
    background: var(--cloud);
    text-align: center;
}

.highlight-map .section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.highlight-map .highlight-label {
    display: inline-block;
    margin-bottom: 16px;
}

.map-mockup-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.map-mockup {
    width: 100%;
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
}

.highlight-privacy {
    text-align: center;
}

.highlight-privacy .section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.highlight-privacy .highlight-label {
    display: inline-block;
    margin-bottom: 16px;
}

.privacy-mockup-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.privacy-mockup {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
}

.highlight-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--cloud);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mist50);
}

/* --- Pricing --- */
.pricing {
    padding: 100px 0;
    background: var(--cloud);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-base);
    padding: 36px 28px;
    border: 1px solid var(--mist50);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-card);
}

.pricing-card-featured {
    border: 2px solid var(--mint);
    box-shadow: var(--shadow-elevated);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mint);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--cloud);
}

.pricing-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-price {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-price span {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--ink50);
}

.pricing-period {
    font-size: 14px;
    color: var(--ink50);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink75);
    padding-left: 28px;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--mint);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.pricing-features li:first-child::before {
    display: none;
}

.pricing-features li:first-child {
    padding-left: 0;
    font-weight: 600;
    color: var(--ink);
}

.pricing-card:first-child .pricing-features li:first-child::before {
    display: block;
}

.pricing-card:first-child .pricing-features li:first-child {
    padding-left: 28px;
    font-weight: 400;
    color: var(--ink75);
}

/* --- CTA --- */
.cta {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--cloud) 100%);
}

.cta-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 17px;
    font-weight: 300;
    color: var(--ink75);
    margin-bottom: 32px;
}

.cta-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    background: var(--cloud);
    border-top: 1px solid var(--mist50);
}

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

.footer-logo-svg {
    height: 22px;
    width: auto;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    color: var(--ink50);
    margin-top: 4px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--ink50);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--ink);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .store-badge {
        height: 40px;
    }

    .hero-mockups {
        margin-top: 40px;
    }

    .mockup-ipad {
        width: 100%;
        max-width: 480px;
    }

    .mockup-iphone {
        width: 140px;
        margin-left: -40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .highlight-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .highlight-reverse {
        direction: ltr;
    }

    .highlight-visual {
        order: -1;
    }

    .highlight-mockup {
        max-width: 100%;
    }

    .sync-ipad,
    .search-ipad,
    .media-ipad {
        max-width: 100%;
    }

    .sync-iphone,
    .search-iphone,
    .media-iphone {
        width: 130px;
        margin-left: -40px;
    }

    .section-header h2,
    .highlight-text h2,
    .cta-content h2 {
        font-size: 28px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card-featured {
        order: -1;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .container {
        padding: 0 16px;
    }

    .mockup-ipad {
        max-width: calc(100% - 80px);
    }

    .mockup-iphone {
        width: 90px;
        margin-left: -15px;
    }

    .mockup-ipad,
    .mockup-iphone,
    .sync-ipad,
    .sync-iphone,
    .search-ipad,
    .search-iphone,
    .media-ipad,
    .media-iphone,
    .map-mockup,
    .privacy-mockup,
    .tracker-summary-mockup,
    .tasks-mockup,
    .highlight-mockup {
        border-radius: 0;
    }

    .sync-ipad,
    .search-ipad,
    .media-ipad {
        max-width: calc(100% - 90px);
    }

    .sync-iphone,
    .search-iphone,
    .media-iphone {
        width: 95px;
        margin-left: -15px;
    }

    .highlight-visual,
    .map-mockup-wrap,
    .privacy-mockup-wrap,
    .tracker-summary-wrap,
    .tasks-mockup-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .highlight-mockup,
    .map-mockup,
    .privacy-mockup,
    .tracker-summary-mockup,
    .tasks-mockup {
        max-width: 100%;
    }

    .hero-mockups,
    .sync-mockups,
    .search-mockups,
    .media-mockups {
        justify-content: center;
    }

    .store-badge {
        height: 36px;
    }

    .cta-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* --- Legal Pages --- */
.legal {
    padding: 140px 0 80px;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    color: var(--ink50);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink75);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-left: 0;
}

.legal-content ul li {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink75);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mist);
}

.legal-content a {
    color: var(--mint);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #47ab87;
}

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

@media (max-width: 768px) {
    .legal {
        padding: 100px 0 60px;
    }

    .legal-content h1 {
        font-size: 28px;
    }
}
