/* Caddick & Brown — app pages (MarkRead, Slates).
   Product marketing, support and privacy. Tokens and chrome from press.css. */

/* ---------- Hero ---------- */

.app-hero {
    max-width: var(--page);
    margin: 0 auto;
    padding: 3.5rem var(--gutter) 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
    align-items: center;
}

.app-hero h1 {
    font-size: clamp(3rem, 6vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0.75rem 0 1.25rem;
}
.app-hero h1 em { font-style: normal; color: var(--accent); }

.app-lede { font-size: 1.05rem; line-height: 1.8; color: var(--ink-dim); max-width: 34rem; margin-bottom: 1.5rem; }
.app-lede strong { color: var(--ink); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }

.chip {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    border: 1px solid var(--line);
    padding: 0.4rem 0.7rem;
}
.chip.live { color: var(--accent); border-color: rgba(255, 106, 42, 0.45); }

.app-ctas { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.app-ctas img { height: 44px; width: auto; display: block; }

.icon-frame { border: 1px solid var(--line); padding: 1.25rem; background: var(--surface); }
.icon-frame img { width: 100%; display: block; }
.icon-caption {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    text-align: center;
    padding-top: 0.9rem;
}

/* ---------- Feature cards ---------- */

.app-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }

.app-card { display: flex; flex-direction: column; }
.app-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.app-card p { font-size: 0.95rem; line-height: 1.8; color: var(--ink-dim); margin-bottom: 1.1rem; }
.app-card p strong { color: var(--ink); font-weight: 400; }
.app-card .tag { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); }

/* ---------- Theme swatches ---------- */

.themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }

.swatch-page {
    border: 1px solid var(--line);
    padding: 0.85rem;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
}
.swatch-h { height: 7px; width: 55%; border-radius: 1px; }
.swatch-rule { height: 2px; width: 30%; border-radius: 1px; margin-bottom: 0.25rem; }
.swatch-line { height: 4px; width: 100%; border-radius: 1px; opacity: 0.55; }

.swatch-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding-top: 0.6rem;
}
.swatch-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Spec table ---------- */

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }

.spec-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; padding: 1rem 0; border-top: 1px solid var(--line-soft); }

.spec-key {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 0.15rem;
}
.spec-val { font-size: 0.92rem; line-height: 1.75; color: var(--ink-dim); }

.honest {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.9;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
}
.honest b { color: var(--ink-dim); font-weight: 400; }

/* ---------- Privacy summary ---------- */

.privacy-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 2rem 2.25rem;
}
.privacy-block p { font-size: 0.98rem; line-height: 1.8; color: var(--ink-dim); margin-bottom: 0.9rem; }
.privacy-block p:last-of-type { margin-bottom: 0; }
.privacy-block strong { color: var(--ink); font-weight: 400; }
.privacy-block .btn-ghost { white-space: nowrap; }

/* ---------- Support & privacy documents ---------- */

.app-back {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.app-back img { width: 26px; height: 26px; display: block; }
/* .page-content a draws an underline rule; the back-link is a chip, not prose. */
.page-content .app-back { border-bottom: none; }

.contact-card {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0 2.5rem;
}
.contact-card p { margin-bottom: 0.6rem; color: var(--ink-dim); }
.contact-card a {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--accent);
    text-decoration: none;
    border-bottom: none;
}

.doc h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.doc h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 400; color: var(--ink); margin: 1.5rem 0 0.4rem; }
.doc ul { list-style: none; max-width: 62ch; }
.doc ul li { padding: 0.7rem 0; border-top: 1px solid var(--line-soft); font-size: 1rem; line-height: 1.8; color: var(--ink-dim); }
.doc ul li strong { color: var(--ink); font-weight: 400; }
.doc .updated { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-mute); }

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent-soft);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1em 0.35em;
}

/* ---------- Responsive ---------- */

/* Twelve swatches at six across get cramped before the 900px gutter drop,
   so step to four — three clean rows — through the middle widths. */
@media (max-width: 1100px) {
    .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .app-hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
    .icon-frame { max-width: 260px; }
    .app-cards { grid-template-columns: 1fr; gap: 2rem; }
    .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .spec-grid { grid-template-columns: 1fr; gap: 0; }
    .privacy-block { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 560px) {
    .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-item { grid-template-columns: 1fr; gap: 0.35rem; }
}
