/* Shared look for the public marketing site (templates/_site_base.html):
   tokens, type, buttons, header and footer. Page-specific styles live in
   home.css, contact.css and legal.css. The logged-in app uses tokens.css. */

:root {
    --ink: #14201F;
    --muted: #5B6770;
    --faint: #9AA6AE;
    --page: #FAF7F1;
    --card: #fff;
    --line: #ECE6DA;
    --rule: #E2DCD0;
    --bezel: #F3EFE7; /* device outlines: browser bar, phone frame */
    --green: #3A9E84;
    --green-ink: #2F8A72;
    --green-soft: #DDEFE9;
    --teal: #1E4552;
    --mint: #6FCBB0;
    --gold-ink: #9A7414;
    --gold-soft: #FBEFC8;
    --gutter: clamp(20px, 5vw, 72px);
    --section-gap: clamp(64px, 8vw, 112px);
    --shadow: 0 6px 20px rgba(20, 32, 31, .05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Outfit, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a { color: var(--green-ink); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3 { font-weight: 600; }

ul, ol { list-style: none; margin: 0; padding: 0; }

[id] { scroll-margin-top: 96px; }

.ms {
    font-family: 'Material Symbols Rounded';
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    font-feature-settings: 'liga';
}

.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-narrow { max-width: 860px; }

.accent { color: var(--green-ink); }

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-ink);
    margin: 0 0 12px;
}

.section { padding: 0 var(--gutter) var(--section-gap); }

.section h2 {
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.025em;
    line-height: 1.05;
    margin: 0 0 clamp(28px, 4vw, 48px);
    max-width: 720px;
    text-wrap: balance;
}

/* Thin rule between sections, inset to the content width */
.divider {
    padding: 0 var(--gutter) var(--section-gap);
}
.divider::before {
    content: "";
    display: block;
    max-width: 1240px;
    height: 1px;
    margin: 0 auto;
    background: var(--rule);
}

.pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-ink);
    background: var(--green-soft);
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pill-lg {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 12px;
}
.pill-lg .ms { font-size: 18px; }
.pill-gold { color: var(--gold-ink); background: var(--gold-soft); }

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    border-radius: 14px;
}
.btn .ms { font-size: 20px; }
.btn-primary {
    background: var(--green);
    color: #fff;
    font-weight: 600;
    padding: 16px 26px;
}
.btn-primary:hover { color: #fff; background: var(--green-ink); }
.btn-secondary {
    background: var(--card);
    color: var(--ink);
    font-weight: 500;
    padding: 16px 22px;
    border: 1px solid var(--rule);
}
.btn-secondary:hover { color: var(--ink); border-color: var(--faint); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Solid colour under the gradient: newer iOS Safari tints the status
       bar / Dynamic Island area from a sticky header's background-color
       (it ignores both gradients and the theme-color meta) */
    background-color: #3A9E84;
    background-image: linear-gradient(118deg, #3A9E84 0%, #37957F 52%, #1E4552 100%);
    border-radius: 0 0 clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px);
    color: #fff;
    padding: 0 var(--gutter);
    box-shadow: 0 8px 24px rgba(20, 50, 60, .12);
}

.site-nav {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px 0 18px;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .88);
    display: grid;
    place-items: center;
}
.brand-mark img { width: 28px; height: 28px; }
.brand-name { font-weight: 600; font-size: 20px; letter-spacing: -.01em; }

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 500;
}
.nav-links a { color: rgba(255, 255, 255, .9); }
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-login {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .35);
}
.nav-login:hover { color: #fff; border-color: rgba(255, 255, 255, .7); }

.nav-cta {
    background: #fff;
    color: var(--teal);
    font-weight: 600;
    font-size: 15px;
    padding: 11px 18px;
    border-radius: 12px;
}

.nav-login-mobile { display: none; margin-left: auto; }

@media (max-width: 859px) {
    .nav-links, .nav-actions { display: none; }
    .nav-login-mobile { display: block; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 0 var(--gutter) 40px; }
.footer-row {
    border-top: 1px solid var(--rule);
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
}
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--teal); }
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
}
.footer-brand img { width: 24px; height: 24px; }

/* On a phone the single wrapping row broke unevenly; stack everything in
   one left-aligned column instead */
@media (max-width: 600px) {
    .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-brand { margin: 0 0 4px; }
    .footer-copy { margin-top: 8px; font-size: 13px; }
}

/* ---------- Inner pages (contact, legal) ---------- */

.page-section { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px); }

.page-section h1 {
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0 0 20px;
    text-wrap: balance;
}

.page-lede {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    max-width: 520px;
    text-wrap: pretty;
}
