/* Self-hosted fonts (SIL OFL), subset latin + latin-ext — replaces the Google Fonts stylesheet. */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/space-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/*
 * TritonPanels — marketing & legal pages
 * Theme: "Indigo & Slate". Premium comic reader.
 * Structure mirrors pieceofcake.css; prefix is tp-.
 */

:root {
    --tp-indigo: #6366f1;
    --tp-indigo-deep: #4f46e5;
    --tp-indigo-soft: #818cf8;
    --tp-indigo-glow: rgba(99, 102, 241, 0.35);

    --tp-slate-900: #0f172a;
    --tp-slate-800: #1e293b;
    --tp-slate-700: #334155;
    --tp-ink: #1a1a2e;          /* deep hero / splash */

    --tp-paper: #ffffff;
    --tp-paper-2: #f8fafc;
    --tp-line: #e2e8f0;

    --tp-text: #0f172a;
    --tp-text-secondary: #1e293b;
    --tp-text-muted: #5b6675;
    --tp-border: rgba(15, 23, 42, 0.12);

    --tp-cream-on-dark: #e9edf6;    /* primary text on dark */
    --tp-muted-on-dark: rgba(233, 237, 246, 0.72);
    --tp-faint-on-dark: rgba(233, 237, 246, 0.55);

    --tp-success: #10b981;
    --tp-amber: #f59e0b;

    --tp-max-width: 1120px;
    --tp-reading-width: 720px;
    --tp-radius: 16px;

    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--tp-paper);
    color: var(--tp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 720px) {
    body { font-size: 16px; }
}

a {
    color: var(--tp-indigo-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover, a:focus {
    color: var(--tp-indigo);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--tp-slate-900);
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 7vw, 68px); letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 2em; }
h3 { font-size: clamp(21px, 3vw, 27px); margin-top: 1.5em; }
h4 { font-size: clamp(18px, 2vw, 22px); margin-top: 1.25em; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

code, pre {
    font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.9em;
}

hr {
    border: 0;
    border-top: 1px solid var(--tp-border);
    margin: 2em 0;
}

/* Layout shell */

.tp-shell {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 720px) {
    .tp-shell { padding: 0 48px; }
}

@media (min-width: 1024px) {
    .tp-shell { padding: 0 80px; }
}

/* Skip link */

.tp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--tp-indigo-deep);
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
}

.tp-skip:focus { left: 8px; top: 8px; }

/* Top bar */

.tp-topbar {
    background: var(--tp-slate-900);
    color: var(--tp-cream-on-dark);
    padding: 16px 0;
    border-bottom: 1px solid rgba(233, 237, 246, 0.08);
}

.tp-topbar .tp-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.tp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tp-cream-on-dark);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tp-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--tp-indigo), var(--tp-indigo-deep));
    object-fit: cover;
}

.tp-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.tp-nav a {
    color: var(--tp-muted-on-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.tp-nav a:hover, .tp-nav a:focus, .tp-nav a[aria-current="page"] {
    color: var(--tp-cream-on-dark);
}

/* Page hero (legal / inner pages) */

.tp-page-hero {
    background: linear-gradient(180deg, var(--tp-paper-2), var(--tp-paper));
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--tp-line);
}

.tp-page-hero .tp-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-indigo-deep);
    margin: 0 0 12px;
}

.tp-page-hero .tp-meta {
    color: var(--tp-text-muted);
    font-size: 15px;
    margin-top: 8px;
}

/* Long-form reading column */

.tp-prose {
    max-width: var(--tp-reading-width);
    margin: 0 auto;
    padding: 48px 0 96px;
}

.tp-prose h2 { margin-top: 2em; }
.tp-prose h3 { margin-top: 1.5em; }

.tp-prose ol > li::marker { color: var(--tp-text-muted); }

.tp-toc {
    background: var(--tp-paper-2);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 16px 20px;
    margin-bottom: 32px;
}

.tp-toc strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.tp-toc ol { margin: 0; padding-left: 1.2em; }

/* Buttons */

.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tp-indigo), var(--tp-indigo-deep));
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
    min-height: 48px;
    box-shadow: 0 8px 24px var(--tp-indigo-glow);
}

.tp-btn:hover, .tp-btn:focus { color: #fff; filter: brightness(1.07); box-shadow: 0 10px 30px var(--tp-indigo-glow); }
.tp-btn:active { transform: scale(0.98); }

.tp-btn--ghost {
    background: transparent;
    color: var(--tp-cream-on-dark);
    border: 1.5px solid rgba(233, 237, 246, 0.5);
    box-shadow: none;
}

.tp-btn--ghost:hover, .tp-btn--ghost:focus {
    background: rgba(233, 237, 246, 0.1);
    color: #fff;
    filter: none;
}

/* Store badges (placeholder pills until official assets are dropped in) */

.tp-stores {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.tp-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-height: 52px;
    transition: filter 0.15s ease;
}

.tp-store-badge:hover, .tp-store-badge:focus { color: #fff; filter: brightness(1.2); }
.tp-store-glyph {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.tp-store-glyph svg {
    display: block;
}
.tp-store-badge small { display: block; font-size: 11px; opacity: 0.8; letter-spacing: 0.02em; }
.tp-store-badge strong { display: block; font-size: 17px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }

/* Cards / grid */

.tp-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 720px) {
    .tp-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .tp-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.tp-card {
    background: var(--tp-paper);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.tp-card h3 { margin-top: 0; }

.tp-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--tp-indigo-deep);
    font-size: 22px;
    margin-bottom: 14px;
}

/* Hero */

.tp-hero {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.28), transparent 60%),
        linear-gradient(180deg, var(--tp-slate-900), var(--tp-ink));
    color: var(--tp-cream-on-dark);
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
}

.tp-hero h1 { color: #fff; }

.tp-hero .tp-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-indigo-soft);
    margin: 0 0 14px;
}

.tp-hero .tp-lede {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--tp-muted-on-dark);
    max-width: 620px;
}

.tp-hero-cta {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tp-hero-meta {
    margin-top: 18px;
    color: var(--tp-faint-on-dark);
    font-size: 15px;
}

/* Screenshot framing */

.tp-shot {
    max-width: 260px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    background: var(--tp-paper-2);
}

.tp-figure { margin: 0; text-align: center; }
.tp-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--tp-text-muted); }

/* Placeholder shown until real screenshots are dropped into /assets/screenshots/.
   Applied to the <figure> so a labelled box appears even if the image 404s. */
.tp-placeholder {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9 / 19.5;
    border-radius: 24px;
    border: 2px dashed var(--tp-indigo-soft);
    background: var(--tp-paper-2);
    color: var(--tp-text-muted);
    font-size: 13px;
    text-align: center;
    padding: 16px;
}

/* Pricing strip */

.tp-pricing {
    background: linear-gradient(180deg, var(--tp-slate-800), var(--tp-slate-900));
    color: var(--tp-cream-on-dark);
    padding: 40px 0;
    text-align: center;
}

.tp-pricing h2 { color: #fff; }
.tp-pricing strong { color: var(--tp-indigo-soft); }

/* Footer */

.tp-footer {
    background: var(--tp-slate-900);
    color: var(--tp-muted-on-dark);
    padding: 56px 0 32px;
    margin-top: 64px;
    font-size: 15px;
}

.tp-pricing + .tp-footer { margin-top: 0; }

.tp-footer a { color: var(--tp-muted-on-dark); text-decoration: none; }
.tp-footer a:hover, .tp-footer a:focus { color: #fff; text-decoration: underline; }

.tp-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 720px) {
    .tp-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.tp-footer h4 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}

.tp-footer ul { list-style: none; padding: 0; margin: 0; }
.tp-footer li { margin-bottom: 8px; }

.tp-footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(233, 237, 246, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--tp-faint-on-dark);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tp-btn, .tp-card { transition: none; }
}

/* Print */

@media print {
    .tp-topbar, .tp-footer, .tp-page-hero { background: white; color: black; }
    .tp-prose { padding: 0; }
}

/* TritonApps social profiles in the footer bar. Colour is inherited from the
   footer text so each subsite theme styles these without its own palette. */

.tp-footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tp-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid currentColor;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tp-footer-social a:hover,
.tp-footer-social a:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .tp-footer-social a {
        transition: none;
    }

    .tp-footer-social a:hover,
    .tp-footer-social a:focus-visible {
        transform: none;
    }
}

/* Guides: breadcrumb, lede, callouts, tables, guide cards and the end-of-article CTA. */

.tp-breadcrumb { margin: 0 0 18px; font-size: 14px; color: var(--tp-text-muted); }
.tp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tp-breadcrumb li { margin: 0; }
.tp-breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.tp-breadcrumb a { color: var(--tp-text-muted); text-decoration: none; }
.tp-breadcrumb a:hover, .tp-breadcrumb a:focus { color: var(--tp-indigo-deep); text-decoration: underline; }

.tp-page-hero .tp-lede { font-size: 20px; color: var(--tp-text-secondary); max-width: var(--tp-reading-width); margin: 0 0 8px; }

.tp-callout {
    margin: 24px 0;
    padding: 18px 20px;
    border-radius: var(--tp-radius);
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.06);
}
.tp-callout > :first-child { margin-top: 0; }
.tp-callout > :last-child { margin-bottom: 0; }

.tp-table-wrap { overflow-x: auto; margin: 24px 0; }
.tp-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tp-prose th, .tp-prose td { padding: 10px 12px; border: 1px solid var(--tp-line); text-align: left; vertical-align: top; }
.tp-prose thead th { background: var(--tp-paper-2); font-family: 'Space Grotesk', sans-serif; }

.tp-prose .tp-shot { max-width: 320px; }

.tp-guide-list { list-style: none; margin: 0; padding: 0; }
.tp-guide-card {
    padding: 24px;
    margin-bottom: 18px;
    border-radius: var(--tp-radius);
    border: 1px solid var(--tp-border);
    background: var(--tp-paper-2);
}
.tp-guide-card h2 { margin: 0 0 8px; font-size: 22px; }
.tp-guide-card h2 a { color: var(--tp-slate-900); text-decoration: none; }
.tp-guide-card h2 a:hover, .tp-guide-card h2 a:focus { color: var(--tp-indigo-deep); text-decoration: underline; }
.tp-guide-card p { margin: 0; color: var(--tp-text-muted); }

.tp-guide-cta {
    margin-top: 48px;
    padding: 28px;
    border-radius: var(--tp-radius);
    background: var(--tp-slate-900);
    color: var(--tp-muted-on-dark);
}
.tp-guide-cta h2 { margin-top: 0; color: #fff; }
.tp-guide-cta .tp-stores { justify-content: flex-start; }
