/* memoyad.com styles, shared by every page. Colors: BRAND.md. */

:root {
    /* Brand palette "Indigo": see BRAND.md. Same values as the Android app (ui/theme/Color.kt).
   The site is light-only on purpose: every page uses this one theme. */
    --primary-color: #3A3FC4;      /* Indigo: text links, buttons, logo wordmark */
    --primary-dark: #2C318F;       /* hover / pressed */
    --primary-container: #E0E1FF;  /* tinted backgrounds, chips */
    --primary-wash: #EEEEFF;       /* the hero background tint */
    --secondary-color: #1CA7D4;    /* Sky: gradient end ONLY, never behind or as text */
    --dark-bg: #121320;
    --light-bg: #FAFAFF;
    --text-color: #1B1B21;
    --text-light: #46464F;
    --white: #ffffff;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 63, 196, 0.3);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

/* Header / Nav */
.site-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    gap: 0;
}
.logo { gap: 10px; }
.logo img {
    height: 36px;
    width: 36px;
    display: block;
}
/* The wordmark is text, not part of an image: dark modes and high-contrast modes recolor text,
   but they leave images alone, which left a dark wordmark on a darkened header. */
.logo .wordmark { color: var(--primary-color); line-height: 1; }

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
    /* A solid tint, not a gradient: browser dark modes and dark-mode extensions reliably recolor
       plain background colors, but some leave background gradients light (a light frame around
       darkened content). Same rule as the headline: nothing that only works in light mode. */
    background-color: var(--primary-wash);
    border-radius: 0 0 50% 50% / 4%;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);   /* solid, never gradient text: see BRAND.md rule 4 */
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-image {
    margin-top: 50px;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Mockup container since we don't have images */
.device-mockup {
    width: 300px;
    background: #111;
    border-radius: 30px;
    margin: 0 auto;
    position: relative;
    border: 8px solid #333;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex-direction: column;
}

.device-screen {
    background: #000;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mock-search-bar {
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 0.8rem;
    color: #888;
}

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mock-item {
    aspect-ratio: 1;
    background: #eee;
    border-radius: 10px;
}

/* Features */
.features {
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    border-radius: 20px;
    background: var(--light-bg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* How it Works */
.how-it-works {
    background-color: var(--light-bg);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Comparison */
.comparison {
    background-color: var(--white);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--light-bg);
    font-weight: 700;
}

/* Four columns fit a phone once the 20px cell padding shrinks. */
@media (max-width: 600px) {
    .comparison-table th, .comparison-table td {
        padding: 12px 6px;
        font-size: 0.85rem;
    }
}

/* Semantic, not brand (BRAND.md): both pass 4.5:1 on white. */
.check { color: #1B7F3B; }
.cross { color: #C62828; }

/* CTA */
.cta {
    background-color: var(--primary-color);
    text-align: center;
    color: white;
    padding: 80px 0;
}

.cta h2 { color: white; }
.cta p { color: rgba(255,255,255,0.9); margin-bottom: 30px; }

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

.cta .btn:hover {
    background: #f0f0f0;
}

/* Google Play badge (assets/img/google-play-badge.svg): Google's artwork, shown as-is. Google asks
   for at least 40px of height and a link to the store page; the hover lift matches .btn-primary.
   It is an image with its own black background, so dark-mode tools leave it readable. */
.play-badge { display: inline-block; line-height: 0; transition: var(--transition); }
.play-badge img { height: 56px; width: auto; display: block; }
.play-badge:hover { transform: translateY(-2px); }
.play-badge-large img { height: 64px; }
.hero-note { font-size: 0.95rem; margin: -24px auto 40px; }

/* The iOS waitlist sits under the Play badge in the same band, separated by a hairline. */
.cta .waitlist {
    max-width: 640px;
    margin: 48px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.cta h3 { color: white; font-size: 1.35rem; margin-bottom: 0.5rem; }
.cta .waitlist p { margin-bottom: 20px; }

.waitlist-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.waitlist-form .btn-waitlist {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    width: 180px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
}
.waitlist-form .btn-waitlist:hover {
    background-color: var(--primary-container);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 19, 32, 0.25);
}
.waitlist-form .email-input {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    min-width: 280px;
    max-width: 100%;
    background: rgba(255,255,255,0.15);
    color: white;
}
.waitlist-form .email-input::placeholder {
    color: rgba(255,255,255,0.7);
}
.waitlist-form .email-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}
.waitlist-legal {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}
.waitlist-legal a {
    color: white;
    text-decoration: underline;
}
.waitlist-legal a:hover {
    text-decoration: none;
}
.waitlist-message {
    margin-top: 12px;
    font-size: 0.95rem;
}
.waitlist-message.success { color: #a5d6a7; }
.waitlist-message.error { color: #FFC4B3; }

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

.site-footer p { color: #888; font-size: 0.9rem; }
.footer-links { margin-top: 10px; }
.footer-links a { color: #B8B8C4; margin: 0 10px; text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .step { flex-direction: column; text-align: center; align-items: center; }
    .feature-grid { gap: 20px; }          /* cards stack in one column here; 40px read as empty space */
    .br-wide { display: none; }           /* a line break that only shapes wide layouts */
}

/* ---------- Header button ---------- */
.btn-small { padding: 8px 20px; font-size: 0.9rem; }
.hero-actions { display: flex; gap: 15px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }

/* ---------- Content pages (privacy, terms, contact) ---------- */
/* Same header, footer, fonts and colors as the home page; a narrower column for reading. */
.page {
    padding: 140px 0 80px;          /* clears the fixed header */
    background-color: var(--light-bg);   /* solid, not a gradient: see .hero */
}
/* Same width as the home page (the shared .container), so every page's content lines up with
   the header logo. */
.page h1 { font-size: 2.4rem; letter-spacing: -0.5px; margin-bottom: 0.4rem; color: var(--text-color); }
.page h2 { font-size: 1.3rem; text-align: left; margin: 2.2em 0 0.5em; color: var(--text-color); }
.page p, .page li { color: var(--text-color); font-size: 1.05rem; line-height: 1.7; }
.page ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.page li { margin-bottom: 0.4rem; }
.page a { color: var(--primary-color); }
.page a:hover { color: var(--primary-dark); }
.page .meta { color: var(--text-light); font-size: 0.95rem; margin-bottom: 2rem; }
.page .lede { color: var(--text-light); margin-bottom: 1.8rem; }
.page .summary, .page .notice {
    background: var(--primary-container);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 1rem;
}
.page .summary p { margin: 0.4em 0; color: var(--text-color); }
.page .notice { color: var(--text-color); }
.page table { border-collapse: collapse; width: 100%; font-size: 0.98rem; margin-bottom: 1rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid #E2E2EB; color: var(--text-color); }
.page th { width: 34%; font-weight: 700; }
/* Phones: stack each row, heading above its text, instead of two cramped columns. */
@media (max-width: 560px) {
    .page th, .page td { display: block; width: auto; }
    .page th { border-bottom: 0; padding-bottom: 0; }
    .page h1 { font-size: 2rem; }
}

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 18px; margin: 8px auto 0; max-width: 720px; }  /* comfortable field width, centered on the page */
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-color); }
.contact-form .optional { font-weight: 400; color: var(--text-light); }
.contact-form input, .contact-form textarea {
    font: inherit; color: var(--text-color); background: var(--white);
    border: 1.5px solid #C7C5D0; border-radius: 12px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(58, 63, 196, 0.2);
}
.contact-form button { justify-self: start; border: 0; }
.contact-form button:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; }
.form-status.ok { color: #1B7F3B; }
.form-status.err { color: #C62828; }
.page .alt { margin-top: 2.2rem; color: var(--text-light); font-size: 0.98rem; }
