/* Eatiq — shared styles for every page on eatiq.app.
 *
 * The palette is the app's own asset-catalog tokens, so the site and the
 * product look like the same thing. Coral is #F47152 in
 * Eatiq/Assets.xcassets/Coral.colorset — do not invent a new one here.
 *
 * Page-specific rules stay in each page's own <style> block. Anything that
 * appears on more than one page belongs in this file, so a colour change is
 * one edit rather than four.
 */

:root {
    --cream:      #FAEDEA;
    --cream-card: #FFF6F2;
    --ink:        #241A16;
    --ink-soft:   #5D4A42;
    --ink-faint:  #7A655C;
    --rule:       #E6CFC6;
    --coral:      #F47152;
    --lime:       #CDE16C;
    --yellow:     #F5D556;
    --display: Archivo, ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #B4462A; text-decoration: none; }
a:hover { color: #8F3520; }

img { max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #A8563A;
}

/* ── nav ─────────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
}
.logo img { width: 32px; height: 32px; display: block; }
a.logo:hover { color: var(--ink); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    font-weight: 500;
}
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--coral); }

.download-btn {
    background: var(--coral);
    color: #fff !important;
    padding: 10px 21px;
    border-radius: 999px;
    font-weight: 600;
}
.download-btn:hover { background: #E05F41; color: #fff !important; }

/* ── buttons ─────────────────────────────────────────── */
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: var(--ink);
    color: var(--cream) !important;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
}
.btn-dark:hover { background: #372721; color: var(--cream) !important; }

.btn-coral {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: var(--coral);
    color: #fff !important;
    padding: 16px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
}
.btn-coral:hover { background: #E05F41; color: #fff !important; }

/* ── document pages (privacy, terms, support) ────────── */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 40px 72px;
}

.container h1 {
    font-size: clamp(34px, 4.4vw, 50px);
    font-weight: 800;
    letter-spacing: -.038em;
    line-height: 1.05;
    margin: 0 0 10px;
    text-wrap: balance;
}

.last-updated,
.container > .subtitle {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-faint);
    margin: 0 0 40px;
}

.container .section { margin-bottom: 36px; }

.container h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.container h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 22px 0 8px;
}

.container p { margin: 0 0 14px; color: var(--ink-soft); }
.container ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-soft); }
.container li { margin-bottom: 7px; }
.container strong { color: var(--ink); font-weight: 600; }

/* ── footer ──────────────────────────────────────────── */
footer { padding: 54px 0 0; }

.footer-top {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: 9px; }
.footer-brand .logo { font-size: 17px; }
.footer-brand .logo img { width: 26px; height: 26px; }
.footer-brand p { margin: 0; font-size: 13.5px; color: var(--ink-faint); max-width: 30ch; }

.footer-cols { display: contents; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #A8968F;
    margin: 0 0 2px;
}

.footer-bottom {
    border-top: 1px solid var(--rule);
    margin-top: 36px;
    padding: 20px 0;
    font-family: var(--mono);
    font-size: 12px;
    color: #A8968F;
}

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
    .wrap, nav { padding-left: 28px; padding-right: 28px; }
    .container { padding-left: 28px; padding-right: 28px; }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
    .nav-links { gap: 18px; font-size: 14px; }
    .nav-links a:not(.download-btn) { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
