/* ============================================
   Palate Landing Page — v2 (Feb 19, 2026)
   Single-viewport, typography-forward design
   ============================================ */

/* Font Faces */
@font-face {
    font-family: 'SNPro';
    src: url('../fonts/SNPro-Light.woff2') format('woff2'),
         url('../fonts/SNPro-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SNPro';
    src: url('../fonts/SNPro-Regular.woff2') format('woff2'),
         url('../fonts/SNPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SNPro';
    src: url('../fonts/SNPro-Medium.woff2') format('woff2'),
         url('../fonts/SNPro-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SNPro';
    src: url('../fonts/SNPro-Bold.woff2') format('woff2'),
         url('../fonts/SNPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties */
:root {
    --color-primary: #1a1a1a;
    --color-accent: #dc143c;
    --color-accent-hover: #b8102f;
    --color-background: #fffef9;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #9a9a9a;
    --color-border: #e0e0e0;
    --spacing-unit: 8px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'SNPro', -apple-system, system-ui, sans-serif;
    font-weight: 400;
    background-color: var(--color-background);
    color: var(--color-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Skip Navigation */
.skip-nav {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-background);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 1000;
    transition: top 0.2s;
    opacity: 0;
}

.skip-nav:focus {
    top: 0;
    opacity: 1;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

button, a, input {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Header / Brand
   ============================================ */
.header {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 100;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
    background: var(--color-background);
    padding: 8px 16px 8px 8px;
    border-radius: 24px;
}

.brand:hover .brand-logo {
    opacity: 0.8;
}

.brand-logo {
    width: 32px;
    height: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.brand-logo.tapped {
    animation: subtle-tap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes subtle-tap {
    0%   { transform: scale(1) rotate(0deg); }
    18%  { transform: scale(0.88) rotate(-2.5deg); }
    38%  { transform: scale(1.06) rotate(1.5deg); }
    55%  { transform: scale(0.97) rotate(-0.3deg); }
    72%  { transform: scale(1.01) rotate(0.1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.brand-name {
    font-size: 36px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    line-height: 1;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Soundwave Ripple Effect (Logo Easter Egg) */
.soundwave-ripple {
    position: fixed;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    pointer-events: none;
    z-index: 1001;
    opacity: 0;
}

.soundwave-ripple.ripple-animate {
    animation: soundwaveRipple 0.85s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes soundwaveRipple {
    0% {
        transform: scale(0.5);
        opacity: 0.85;
        border-width: 2.5px;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
        border-width: 0.8px;
    }
}

/* ============================================
   Hero — Single Viewport
   ============================================ */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.hero-content {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

/* Headline */
.hero-headline {
    font-size: 60px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 28px;
}

/* Eve Sphere — the period that's alive */
.eve-sphere {
    display: inline-block;
    width: 0.18em;
    height: 0.18em;
    background: var(--color-primary);
    border-radius: 50%;
    vertical-align: baseline;
    margin-left: 0.08em;
    animation: eve-breathe 3s ease-in-out infinite;
    transform-origin: center bottom;
    transition: transform 0.3s cubic-bezier(0.22, 1.0, 0.36, 1.0);
    position: relative;
    will-change: transform;
}

@keyframes eve-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Jump phase classes — applied via JS */
.eve-sphere.eve-pre-jump {
    animation: none;
    transform: scaleX(1.12) scaleY(0.9) translateY(1px);
    transition: transform 0.15s ease-in;
}

.eve-sphere.eve-jump-up {
    animation: none;
    transform: scaleX(0.9) scaleY(1.12) translateY(-0.45em);
    transition: transform 0.35s cubic-bezier(0.22, 1.0, 0.36, 1.0);
}

.eve-sphere.eve-midair {
    animation: none;
    transform: scale(1) translateY(-0.45em);
    transition: transform 0.12s cubic-bezier(0.22, 1.0, 0.36, 1.0);
}

.eve-sphere.eve-return {
    animation: none;
    transform: scale(1) translateY(0);
    transition: transform 0.28s cubic-bezier(0.33, 1.0, 0.68, 1.0);
}

.eve-sphere.eve-land {
    animation: none;
    transform: scaleX(1.15) scaleY(0.88) translateY(0px);
    transition: transform 0.08s ease-out;
}

.eve-sphere.eve-reset {
    animation: none;
    transform: scale(1) translateY(0);
    transition: transform 0.25s cubic-bezier(0.22, 1.0, 0.36, 1.0);
}

/* Sub-line — staggered cascade, each line centered on its own gravity */
.hero-subline {
    font-size: 21px;
    font-weight: 300;
    font-family: 'SNPro', -apple-system, system-ui, sans-serif;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 52px;
    text-align: center;
}

.hero-subline span {
    display: block;
}

.subline-2 {
    transform: translateX(22%);
}

.subline-3 {
    transform: translateX(36%);
}

/* ============================================
   CTA — Single App Store Badge
   ============================================ */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-badge-link {
    display: inline-block;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 6px;
}

.cta-badge-link:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.cta-badge-link:active {
    transform: translateY(0) scale(0.98);
    filter: none;
}

.cta-badge {
    height: 52px;
    width: auto;
}

.cta-context {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
}

.footer-scet {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.footer-scet:hover {
    opacity: 0.7;
}

.footer-scet-logo {
    height: 32px;
    width: auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-dot {
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-copyright {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-muted);
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

    .header {
        top: 16px;
        left: 16px;
    }

    .brand {
        gap: 6px;
        padding: 12px 16px 12px 12px;
        border-radius: 24px;
        min-height: 44px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-name {
        font-size: 28px;
        letter-spacing: 0.08em;
    }

    .hero {
        padding: 72px 20px 0;
    }

    .hero-headline {
        font-size: 42px;
        margin-bottom: 16px;
    }

    .hero-subline {
        font-size: 18px;
        margin-bottom: 36px;
    }

    .cta-badge {
        height: 46px;
    }

    .footer {
        padding: 12px 20px;
    }

    .footer-scet-logo {
        height: 24px;
    }

    .footer-links a,
    .footer-dot,
    .footer-copyright {
        font-size: 12px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .hero-headline {
        font-size: 36px;
    }

    .hero-subline {
        font-size: 17px;
    }

    .cta-badge {
        height: 42px;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .header, .footer, .hero-cta {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
    }
}
