/* alliedinc.us - one stylesheet for every page. Plain, readable, mobile first. */

:root {
    --ink: #1d2433;
    --muted: #5a6478;
    --brand: #1f4e8c;
    --brand-dark: #163a69;
    --accent: #512bd4; /* WhoTookIt's purple */
    --line: #e3e7ee;
    --page: #ffffff;
    --soft: #f5f7fa;
    --max: 960px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e6e9ef;
        --muted: #a5adbd;
        --brand: #7fb0f0;
        --brand-dark: #a9c9f5;
        --accent: #a58cff;
        --line: #2c3342;
        --page: #12161f;
        --soft: #1a1f2b;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--page);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }
.product-title { display: flex; align-items: center; gap: 12px; }
.product-title img { border-radius: 22%; flex-shrink: 0; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }

/* Hero */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0; }

/* Content */
main .wrap { padding-top: 36px; padding-bottom: 48px; }
h2 { font-size: 1.45rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }
main h2:first-child, main h1:first-child { margin-top: 0; }
.page-title { font-size: clamp(1.7rem, 4.5vw, 2.2rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 28px; }
.lead { font-size: 1.1rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--page); }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

.product { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 22px; margin: 20px 0; }
.product h3 { margin-top: 0; color: var(--accent); }

.note { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.placeholder { border: 2px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); }

address { font-style: normal; }

/* App screenshots side by side (one per row on phones) */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 18px 0 24px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; max-width: 300px; display: block; margin: 0 auto 8px; border: 1px solid var(--line); border-radius: 16px; }
.shots figcaption { font-size: 0.92rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
