/* LiveCoach — Shared Styles */

:root {
    --text: #1a1a1a;
    --muted: #666;
    --bg: #fff;
    --surface: #f8f9fa;
    --accent: #ff6b35;
    --accent-hover: #e85a28;
    --accent-subtle: rgba(255, 107, 53, 0.08);
    --border: #e0e0e0;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e8e8e8;
        --muted: #a0a0a0;
        --bg: #111;
        --surface: #1a1a1a;
        --accent: #ff8c5a;
        --accent-hover: #ff6b35;
        --accent-subtle: rgba(255, 140, 90, 0.1);
        --border: #2a2a2a;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ──────────────────────────────────────────────
   Landing Page
   ────────────────────────────────────────────── */

.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.landing-content {
    max-width: 560px;
    width: 100%;
}

.logo-mark {
    display: block;
    margin: 0 auto 16px;
    width: 96px;
    height: 96px;
    border-radius: 22.5%;
    overflow: hidden;
    /* Clip the opaque corners of the square PNG to iOS icon shape */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.brand {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.pill {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

/* Features */

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
    text-align: left;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.feature h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* Subscribe form */

.subscribe-section {
    margin-bottom: 32px;
}

.subscribe-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subscribe-section p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.subscribe-form input:focus {
    border-color: var(--accent);
}

.subscribe-form input::placeholder {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form messages */

.form-message {
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: none;
}

.form-message.success {
    display: block;
    color: var(--success);
    background: rgba(34, 197, 94, 0.08);
}

.form-message.error {
    display: block;
    color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

/* Footer */

.landing-footer {
    margin-top: 48px;
    font-size: 0.85rem;
    color: var(--muted);
}

.landing-footer a {
    color: var(--muted);
}

.landing-footer a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 12px;
}

/* ──────────────────────────────────────────────
   Privacy Policy
   ────────────────────────────────────────────── */

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

.page-header {
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header .subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.page h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
}

.page p {
    margin-bottom: 16px;
}

.page ul,
.page ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page li {
    margin-bottom: 6px;
}

.page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.page th,
.page td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--border);
}

.page th {
    background: var(--surface);
    font-weight: 600;
}

.highlight-box {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.toc {
    background: var(--surface);
    padding: 24px 28px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.toc ol {
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 4px;
}

.page footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 0.9rem;
}
