/* Pawslate web — shared styles
 * Colors mirror the iOS app: Forest #1F4D3D primary, Amber #E8A33D accent.
 * Warm off-white background for the on-brand "calm health record" feel.
 * Mobile-first, content max-width 720px for legal-doc readability.
 */

:root {
    --forest: #1F4D3D;
    --forest-dark: #163828;
    --amber: #E8A33D;
    --bg: #FAF7F2;
    --surface: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #5C5C5C;
    --border: #E5E2DC;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */

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

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

/* Header (top nav, all pages) */

.site-header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(250, 247, 242, 0.85);
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--forest);
}

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

.brand-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--forest);
}

@media (max-width: 480px) {
    .nav-links {
        gap: 14px;
    }
    .nav-links a {
        font-size: 14px;
    }
    .brand-name {
        font-size: 17px;
    }
}

/* Hero (index page) */

.hero {
    padding: 80px 0 64px;
    text-align: center;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.4;
}

.hero-cta {
    display: inline-block;
    background-color: var(--forest);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero-cta:hover {
    background-color: var(--forest-dark);
    transform: translateY(-1px);
}

.hero-cta:disabled,
.hero-cta.disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .hero {
        padding: 56px 0 48px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero-tagline {
        font-size: 18px;
    }
}

/* Features grid (index page) */

.features {
    padding: 48px 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(31, 77, 61, 0.1);
    color: var(--forest);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Legal documents (privacy, terms) */

.legal {
    padding: 48px 0 96px;
}

.legal h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.legal .updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text-primary);
    scroll-margin-top: 80px;
}

.legal h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: var(--forest);
    text-decoration: underline;
}

.legal a:hover {
    color: var(--forest-dark);
}

.legal strong {
    font-weight: 700;
}

/* Callout box (used for critical disclaimers in Terms) */

.callout {
    background-color: rgba(232, 163, 61, 0.12);
    border-left: 4px solid var(--amber);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 24px 0;
}

.callout-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.callout p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* TOC (table of contents for legal docs) */

.toc {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.toc h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 12px;
}

.toc ol {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 0;
}

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

.toc a {
    color: var(--forest);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Support page */

.support-section {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.support-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.support-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-link {
    display: inline-block;
    background-color: var(--forest);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
}

.contact-link:hover {
    background-color: var(--forest-dark);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0 48px;
    margin-top: 64px;
    background-color: var(--bg);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Skip-to-content for accessibility */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--forest);
    color: white;
    padding: 12px 20px;
    z-index: 100;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}
