/* TrimrPix for iOS — shared site styles.
   Colour, type and spacing resolve from the IAMJARL design tokens
   (iamjarl-design v1.11.0), so light and dark both come from the design system.
   Page-specific layout stays in each page's own <style> block. */

:root {
    --bg:        var(--ij-color-bg-app, #ffffff);
    --bg-alt:    color-mix(in srgb, var(--ij-color-text-primary, #000) 3%, transparent);
    --bg-card:   var(--ij-color-bg-card, rgba(0,0,0,.04));
    --text:      var(--ij-color-text-primary, #111);
    --text-2:    var(--ij-color-text-secondary, #555);
    --text-3:    color-mix(in srgb, var(--ij-color-text-primary, #000) 55%, transparent);
    --brand:     var(--ij-color-primary, #A435D2);
    --brand-hov: var(--ij-color-primary-hover, #8E2BB8);
    --brand-sub: var(--ij-color-primary-subtle, rgba(164,53,210,.12));
    --on-brand:  var(--ij-color-on-primary, #ffffff);
    --border:    var(--ij-color-border-subtle, rgba(0,0,0,.10));
    --radius:    18px;
    --maxw:      1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none; }
.logo span { color: var(--brand); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--brand); color: var(--on-brand) !important; text-decoration: none;
    padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.nav-cta:hover { background: var(--brand-hov); }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* buttons */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--brand); color: var(--on-brand); text-decoration: none;
    padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
    transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-hov); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.price-note { font-size: .9rem; color: var(--text-3); margin-top: 18px; }

/* sections */
section { padding: 84px 0; }
.sec-label {
    font-size: .76rem; font-weight: 700; letter-spacing: .13em;
    text-transform: uppercase; color: var(--brand); margin: 0 0 12px;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); letter-spacing: -.028em; font-weight: 800; margin: 0 0 14px; line-height: 1.15; }
.lede { color: var(--text-2); font-size: 1.05rem; max-width: 56ch; margin: 0 0 48px; }
.alt { background: var(--bg-alt); }

/* faq */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item h3 { font-size: 1.04rem; font-weight: 700; margin: 0 0 9px; letter-spacing: -.01em; }
.faq-item p { margin: 0; color: var(--text-2); font-size: .97rem; }

/* article pages */
.article { max-width: 720px; margin: 0 auto; padding: 60px 24px 20px; }
.crumb { font-size: .87rem; color: var(--text-3); margin: 0 0 18px; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--brand); }
.article h1 {
    font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.12;
    letter-spacing: -.032em; font-weight: 800; margin: 0 0 18px;
}
.article .standfirst { font-size: 1.14rem; color: var(--text-2); margin: 0 0 40px; }
.article h2 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); margin: 44px 0 12px; }
.article h3 { font-size: 1.08rem; font-weight: 700; margin: 30px 0 8px; letter-spacing: -.01em; }
.article p { margin: 0 0 18px; }
.article a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.callout {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 26px; margin: 34px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .btn { margin-top: 6px; }

.shot {
    border-radius: 22px; border: 1px solid var(--border); background: var(--bg-card);
    padding: 8px; margin: 34px auto; width: min(260px, 70vw);
}
.shot img { border-radius: 16px; }
.shot figcaption { font-size: .85rem; color: var(--text-3); text-align: center; padding: 10px 6px 4px; }

.related { border-top: 1px solid var(--border); margin-top: 52px; padding-top: 30px; }
.related h2 { font-size: 1.15rem; margin: 0 0 14px; }
.related p { margin: 0 0 10px; }
