/* ============================================================
   Acorn Software — marketing site
   Brand palette matches the Acorn Carelink mobile app:
     cream:    #FFF2E2
     surface:  #FFF8ED
     caramel:  #C97B1A
     brown:    #331302  (headings)
     brown-2:  #5C3A21  (body text)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: #5C3A21;
    background: #FFF2E2;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #C97B1A; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: #331302; font-weight: 700; margin: 0 0 0.5em; line-height: 1.25; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; }
p  { margin: 0 0 1em; }

ul { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header / Nav ─────────────────────────────────────────── */
header {
    background: #FFF8ED;
    border-bottom: 1px solid #EFE5D3;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(51, 19, 2, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #331302;
}
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav a {
    color: #5C3A21;
    font-weight: 500;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 120ms ease-in-out, color 120ms ease-in-out;
}
nav a:hover, nav a.active {
    color: #331302;
    border-bottom-color: #C97B1A;
    text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}
.hero-logo {
    width: 128px;
    height: 128px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 2.75rem;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}
.hero .tagline {
    font-size: 1.25rem;
    color: #6C4A2A;
    max-width: 620px;
    margin: 0 auto 2rem;
}

/* ── Content sections ─────────────────────────────────────── */
section {
    padding: 2.5rem 0;
    border-top: 1px solid #EFE5D3;
}
section:first-of-type { border-top: none; }

.card {
    background: #FFF8ED;
    border: 1px solid #EFE5D3;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(51, 19, 2, 0.04);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.pill {
    display: inline-block;
    background: #C97B1A;
    color: #FFF8ED;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Contact page ─────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem 1.5rem;
    align-items: baseline;
}
.contact-grid dt {
    font-weight: 700;
    color: #331302;
}
.contact-grid dd { margin: 0; }

/* ── Privacy page ─────────────────────────────────────────── */
.privacy article h2 { font-size: 1.4rem; }
.privacy article h3 { font-size: 1.05rem; color: #5C3A21; }
.privacy .updated {
    color: #6C4A2A;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    padding: 2rem 0;
    text-align: center;
    color: #6C4A2A;
    font-size: 0.9rem;
    border-top: 1px solid #EFE5D3;
    margin-top: 3rem;
}
footer .brand-tiny { font-weight: 700; color: #331302; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    h1 { font-size: 1.9rem; }
    .hero h1 { font-size: 2.15rem; }
    .hero .tagline { font-size: 1.1rem; }
    .hero-logo { width: 96px; height: 96px; }
    .contact-grid { grid-template-columns: 1fr; gap: 0.15rem 0; }
    .contact-grid dt { margin-top: 0.75rem; }
    nav ul { gap: 1rem; }
    .card { padding: 1.5rem; }
}
