/* ============================================================
   Minimal Platter — landing page
   Mist-style layout, themed to the app's warm off-white /
   near-black aesthetic with a green→purple accent.
   ============================================================ */

:root {
    --bg:        #EFEEEC;   /* Mist-style greyish white */
    --bg-soft:   #F4F3F1;   /* slightly lighter section */
    --card:      #FFFFFF;
    --text:      #0F0F0F;
    --muted:     #6B6B6B;
    --hairline:  rgba(15, 15, 15, 0.08);
    --shimmer-a: #00C853;
    --shimmer-b: #7B1FA2;

    --radius-card: 26px;
    --maxw: 1080px;
    --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.45;
}
img, video { display: block; max-width: 100%; }

/* ---------- Scroll-in animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { transition: none; transform: none; opacity: 1; }
    .badge { animation: none !important; }
}

/* ---------- Shell ---------- */
.app-container { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* ---------- Navbar (logo only, far top-left, like Mist) ---------- */
.navbar {
    width: 100%;
    display: flex; align-items: center;
    padding: 22px clamp(18px, 3vw, 30px);
}
.nav-logo { width: 50px; height: 50px; display: block; }

/* ---------- Hero ---------- */
.hero-section {
    width: 100%;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: clamp(28px, 5vw, 56px) 20px 0;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: clamp(19px, 2.6vw, 24px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    max-width: 16ch;
}

/* ---------- Hand-holding-phone hero ----------
   .hero-stage holds the hand image + your screen recording.
   Tune the --screen-* vars below to line the video up with the
   phone's screen in YOUR hand image (values are % of the image).
   Add class "tune" to .hero-stage to see an outline while aligning.
------------------------------------------------------------------ */
.hero-stage {
    position: relative;
    width: clamp(330px, 88vw, 520px);
    margin-top: clamp(24px, 4vw, 44px);
    display: block;
    line-height: 0;            /* kill inline-image gap so the hand sits flush */
    margin-bottom: 0;

    /* Better alignment for current phone render */
    --screen-top: 8.1%;
    --screen-left: 25.7%;
    --screen-width: 47.6%;
    --screen-height: 67.8%;
    --screen-radius: 5%;
}
.hand-img {
    width: 100%; height: auto;
    position: relative; z-index: 5;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.18));
}
/* Screen recording sits behind the phone frame (image is on top). */
.hand-screen {
    position: absolute;
    top: var(--screen-top);
    left: var(--screen-left);
    width: var(--screen-width);
    height: var(--screen-height);
    border-radius: var(--screen-radius);
    overflow: hidden;
    z-index: 1;
    background: #000;
}
/* phone-glass sheen */
.hand-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        rgba(255,255,255,0.08) 0%,
        rgba(255,255,255,0.02) 25%,
        rgba(255,255,255,0) 50%
    );
    z-index: 10;
}
.hand-screen video,
.hand-screen .screen-placeholder {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}
.hand-screen video {
    z-index: 2;
    object-fit: cover;
    object-position: center top;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: auto;
}
.hand-screen .screen-placeholder {
    z-index: 1;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; padding: 0 10px;
}
/* alignment helper */
.hero-stage.tune .hand-screen { outline: 2px dashed #e0457b; background: rgba(224,69,123,0.15); }

/* Price overlaid on the hand, in white */
.hero-price {
    position: absolute;
    left: 50%;
    bottom: 9%;
    transform: translateX(-50%);
    z-index: 6;
    color: #fff;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* ---------- Soft section ---------- */
.main-content {
    width: 100%;
    background-color: var(--bg-soft);
    display: flex; flex-direction: column; align-items: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: relative;
    z-index: 1;
    margin-top: -2px;
    padding-top: 0;
}

/* ---------- Coming soon / CTA ---------- */
.cta-section {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: clamp(58px, 9vw, 100px) 20px clamp(20px, 4vw, 40px);
}
.section-title {
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 600; letter-spacing: -0.02em;
    max-width: 18ch; margin-bottom: clamp(30px, 5vw, 46px);
}
.cta-card {
    background: var(--card);
    border-radius: var(--radius-card);
    padding: clamp(28px, 5vw, 38px);
    box-shadow: 0 22px 56px -20px rgba(0, 0, 0, 0.16);
    width: 100%; max-width: 390px;
    display: flex; flex-direction: column; align-items: center;
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 17px; border-radius: 999px;
    color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
    background: linear-gradient(90deg, var(--shimmer-a), var(--shimmer-b), var(--shimmer-a));
    background-size: 200% 100%;
    animation: shimmer 3.6s linear infinite;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0.95; }
@keyframes shimmer { to { background-position: -200% 0; } }

.cta-text { color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 16px; max-width: 26ch; }
.notify-form { display: flex; gap: 8px; width: 100%; margin-top: 22px; }
.notify-form input[type="email"] {
    flex: 1; min-width: 0; padding: 12px 14px;
    border: 1px solid var(--hairline); border-radius: 12px;
    font: inherit; font-size: 14px; color: var(--text); background: var(--bg);
    outline: none; transition: border-color 0.2s var(--ease);
}
.notify-form input[type="email"]:focus { border-color: var(--text); }
.notify-form button {
    padding: 12px 18px; border: none; border-radius: 12px;
    background: var(--text); color: #fff; font: inherit; font-weight: 600; font-size: 14px;
    cursor: pointer; white-space: nowrap;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.notify-form button:hover { opacity: 0.88; }
.notify-form button:active { transform: scale(0.97); }
.notify-done { margin-top: 20px; color: var(--text); font-weight: 600; font-size: 14px; }
.is-hidden { display: none !important; }

/* ---------- Principles (scrollable) ---------- */
.principles-wrap {
    width: 100vw; max-width: 100vw; overflow: hidden;
    display: flex; justify-content: center;
    margin-top: clamp(42px, 7vw, 72px);
}
.principles-scroll {
    display: flex; gap: 16px; max-width: 1500px;
    padding: 4px clamp(20px, 5vw, 48px) 24px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
}
.principles-scroll::-webkit-scrollbar { display: none; }
.principle-card {
    background: var(--card); border-radius: 18px;
    padding: 30px 32px; min-width: 250px; max-width: 280px;
    scroll-snap-align: start; flex: 0 0 auto; user-select: none;
}
.principle-card .p-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.principle-card .p-desc { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.5; }

/* ---------- Features (alternating; screenshot bleeds inside the card) ---------- */
.features-section {
    width: 100%; max-width: var(--maxw);
    display: flex; flex-direction: column; gap: 20px;
    padding: clamp(54px, 8vw, 96px) clamp(16px, 4vw, 24px) 0;
}
.feature-row {
    background: var(--card);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex; align-items: stretch;
    min-height: clamp(280px, 36vw, 380px);
}
.feature-row:nth-child(even) { flex-direction: row-reverse; }

.feature-copy {
    flex: 1 1 50%;
    padding: clamp(30px, 5vw, 56px);
    display: flex; flex-direction: column; justify-content: center;
}
.feature-text {
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
    max-width: 16ch;
}
.feature-sub {
    color: var(--muted);
    font-size: clamp(14px, 1.7vw, 16px);
    font-weight: 500; margin-top: 14px; max-width: 30ch; line-height: 1.5;
}
.feature-shot {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    padding: clamp(24px, 4vw, 44px);
    background: var(--card);                 /* same as card → no seam */
}
.feature-shot img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 18px 40px -24px rgba(0,0,0,0.22);
}

@media (hover: hover) {
    .feature-row { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
    .feature-row:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -22px rgba(0,0,0,0.14); }
}

/* Stack on narrow screens */
@media (max-width: 720px) {
    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column; height: auto;
    }
    .feature-copy { padding: clamp(30px, 7vw, 42px) 28px 6px; text-align: center; align-items: center; }
    .feature-text, .feature-sub { max-width: 24ch; }
    .feature-shot { width: 100%; padding: clamp(20px, 6vw, 32px); }
    .feature-shot img { max-height: 280px; }
}

/* ---------- Footer ---------- */
.footer-section {
    width: 100%;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: clamp(74px, 10vw, 124px) 20px clamp(40px, 6vw, 60px);
}
.footer-title {
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 600; letter-spacing: -0.02em;
    max-width: 16ch; margin-bottom: clamp(28px, 5vw, 44px);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 9px; margin-top: clamp(48px, 8vw, 80px); }
.footer-logo { width: 22px; height: 22px; }
.footer-brand { font-size: 17px; font-weight: 600; }
.footer-copy { margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 500; }

/* footer legal links */
.footer-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px 18px; margin-top: 14px;
}
.footer-links a {
    color: var(--muted); font-size: 13px; font-weight: 500;
    text-decoration: none; transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--text); }

/* ---------- Legal pages (terms / privacy) ---------- */
.legal-main {
    width: 100%;
    background-color: var(--bg-soft);
    display: flex; justify-content: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    flex: 1 0 auto;
}
.legal {
    width: 100%; max-width: 760px;
    padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 40px) clamp(60px, 9vw, 110px);
}
.legal h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600; letter-spacing: -0.02em;
}
.legal .legal-updated {
    color: var(--muted); font-size: 14px; font-weight: 500;
    margin-top: 10px; margin-bottom: clamp(28px, 4vw, 44px);
}
.legal h2 {
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600; letter-spacing: -0.01em;
    margin-top: clamp(30px, 4vw, 44px); margin-bottom: 12px;
}
.legal p, .legal li {
    color: #2a2a2a; font-size: 15px; font-weight: 400; line-height: 1.7;
}
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--text); font-weight: 500; }
.legal .back-link {
    display: inline-block; margin-top: clamp(36px, 5vw, 56px);
    color: var(--muted); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: color 0.2s var(--ease);
}
.legal .back-link:hover { color: var(--text); }

/* keep footer pinned to bottom on short legal pages */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-page .footer-section { padding-top: clamp(50px, 7vw, 80px); }
