/* Public site. Bootstrap does the layout; this is the small amount of identity on top of it. */

:root {
    --ow-accent: #3b5bdb;
    --ow-accent-soft: rgba(59, 91, 219, 0.12);
    --ow-ink: #14161a;
    --ow-muted: #5c6470;
    --ow-line: #e3e6ec;
    --ow-surface: #ffffff;
    --ow-canvas: #f7f8fa;
    --ow-radius: 14px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--ow-canvas);
    color: var(--ow-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Focus rings are removed by a lot of resets. Keeping a visible one is the difference between a
   keyboard-navigable site and one that silently is not. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--ow-accent);
    outline-offset: 2px;
    box-shadow: none;
}

.site-nav {
    background: var(--ow-surface);
    border-bottom: 1px solid var(--ow-line);
}

.site-nav .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ow-ink);
}

.site-nav .nav-link {
    color: var(--ow-muted);
    font-weight: 500;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.is-active {
    color: var(--ow-accent);
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    background: var(--ow-surface);
    border-top: 1px solid var(--ow-line);
    color: var(--ow-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.site-footer a {
    color: var(--ow-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ow-accent);
    text-decoration: underline;
}

.hero {
    padding: 4.5rem 0 3rem;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero__lede {
    color: var(--ow-muted);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    max-width: 46rem;
}

.section-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ow-muted);
    margin-bottom: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--ow-accent-soft);
    color: var(--ow-accent);
}

.pill--quiet {
    background: #eef0f4;
    color: var(--ow-muted);
}

.panel {
    background: var(--ow-surface);
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    padding: 1.75rem;
}

.prose {
    max-width: 46rem;
}

.prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.prose p,
.prose li {
    color: #2c313a;
    line-height: 1.65;
}

.prose code {
    background: #eef0f4;
    border-radius: 5px;
    padding: 0.12em 0.38em;
    font-size: 0.9em;
    color: #b03060;
}

.prose pre {
    background: #14161a;
    color: #e8ecf1;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    font-size: 0.86rem;
    line-height: 1.55;
}

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.endpoint {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ow-line);
}

.endpoint:last-child {
    border-bottom: none;
}

.endpoint__verb {
    font-weight: 700;
    min-width: 4.2rem;
    color: var(--ow-accent);
}

.endpoint__note {
    color: var(--ow-muted);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
}

/* Long paths must scroll inside the row rather than widening the page on a phone. */
.table-scroll {
    overflow-x: auto;
}

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

    .app-card {
        transition: none;
    }

    .app-card:hover {
        transform: none;
    }
}

/* Outworld's public identity. The independent admin stylesheet remains unchanged. */
@font-face { font-family: Outfit; src: url('../fonts/Outfit.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --ow-ink:#142726; --ow-muted:#56615d; --ow-canvas:#f6f7f2; --ow-line:#dfe4da; --ow-accent:#286343; --ow-accent-soft:#e3f0d4; --ow-radius:24px; }
body { font-family:Outfit,system-ui,sans-serif; }
a { color:var(--ow-accent); text-underline-offset:4px; }
.container { max-width:1200px; padding-left:28px; padding-right:28px; }
.site-nav { background:var(--ow-canvas); padding:22px 0; }
.site-nav .navbar-brand { display:flex; align-items:center; gap:10px; font-size:1.18rem; }
.brand-mark { display:inline-grid; place-items:center; width:34px; height:34px; background:var(--ow-ink); color:#dcfbaf; border-radius:50%; font-size:1.5rem; line-height:1; padding-bottom:4px; }
.site-nav .navbar-collapse { margin-left:30px; }
.site-nav .nav-link { padding:10px 14px; font-size:.94rem; }
.studio-hero { display:grid; grid-template-columns:1.65fr 1fr; align-items:end; gap:48px; padding-top:86px; padding-bottom:76px; }
.eyebrow { display:flex; align-items:center; gap:9px; text-transform:uppercase; font-weight:600; letter-spacing:.11em; font-size:.78rem; margin-bottom:24px; }
.status-dot { width:8px; height:8px; border-radius:50%; background:#487f3f; }
.studio-hero h1 { font-size:clamp(3.5rem,7vw,6rem); font-weight:500; line-height:.99; letter-spacing:-.065em; margin:0; }
.studio-hero h1 em { font-style:normal; color:#42724b; }
.studio-hero__aside { max-width:330px; padding-bottom:5px; }
.studio-hero__aside p { font-size:1.16rem; line-height:1.5; }
.studio-hero__aside p.text-secondary { font-size:1rem; }
.text-link { display:inline-flex; align-items:center; gap:35px; color:var(--ow-ink); font-weight:600; text-decoration:none; border-bottom:1px solid var(--ow-ink); padding:7px 0; }
.text-link:hover { color:var(--ow-accent); }
.section-label { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:10px; margin:38px 0 19px; }
.section-label h2 { font-size:.85rem; text-transform:uppercase; letter-spacing:.1em; font-weight:600; margin:0; }
.section-label>span { font-size:.9rem; color:var(--ow-muted); }

/* The catalogue is meant to grow, so every card is the same shape and three fit across a desktop.
   Per-app identity comes from the backdrop behind the screenshots, not from bespoke card styles. */
.app-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.app-card { display:flex; flex-direction:column; background:var(--ow-surface); color:inherit; text-decoration:none; border:1px solid var(--ow-line); border-radius:var(--ow-radius); overflow:hidden; transition:border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease; }
.app-card:hover { color:inherit; border-color:#b8c8b1; box-shadow:0 12px 30px #1427260c; transform:translateY(-3px); }
.app-card__shots { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:18px; background:var(--app-backdrop, var(--ow-accent-soft)); }
/* On the artwork rather than beside the name, where it would squeeze the name onto three lines. */
.app-card__badge { position:absolute; top:10px; right:10px; box-shadow:0 4px 12px #0000003d; }
/* Cropped to one shape so a screenshot from another device cannot make its row uneven. */
.app-card__shots img { display:block; width:100%; height:auto; aspect-ratio:400 / 869; object-fit:cover; object-position:top; border-radius:10px; box-shadow:0 8px 20px #0000002e; }
.app-card__body { display:flex; flex-direction:column; flex:1; gap:12px; padding:20px 22px 22px; }
.app-card__head { display:flex; align-items:center; gap:14px; }
.app-card__icon { width:48px; height:48px; border-radius:12px; flex:0 0 auto; object-fit:cover; }
.app-card__title { display:flex; flex-direction:column; flex:1; min-width:0; }
.app-card__name { font-size:1.3rem; font-weight:500; letter-spacing:-.03em; line-height:1.2; margin:0; }
.app-card__kind { font-size:.85rem; color:var(--ow-muted); }
.app-card__tagline { color:var(--ow-muted); line-height:1.5; margin:0; }
.app-card__cta { display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:14px; border-top:1px solid var(--ow-line); font-size:.92rem; font-weight:600; color:var(--ow-ink); }
.app-card:hover .app-card__cta { color:var(--ow-accent); }
@media (max-width:991px) { .app-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:599px) { .app-grid { grid-template-columns:1fr; } }

.contact-strip { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; border-top:1px solid var(--ow-line); margin-top:76px; padding-top:48px; }
.contact-strip .eyebrow { margin-bottom:16px; }
.contact-strip h2 { font-size:clamp(1.8rem,3vw,2.5rem); letter-spacing:-.04em; font-weight:500; }
.contact-strip p:last-child { color:var(--ow-muted); margin-bottom:0; }
.btn { border-radius:999px; font-weight:500; padding:12px 22px; }
.btn-primary { --bs-btn-bg:#285d40; --bs-btn-border-color:#285d40; --bs-btn-hover-bg:#1d4630; --bs-btn-hover-border-color:#1d4630; }
.btn-dark { background:var(--ow-ink); display:inline-flex; gap:30px; align-items:center; }
.hero { padding:65px 0 35px; }
.hero__title { font-weight:500; letter-spacing:-.05em; font-size:clamp(2.5rem,5vw,4rem); }
.panel { padding:clamp(24px,4vw,48px); }
.prose { max-width:800px; }
.prose h2:first-child { margin-top:0; }
.prose h2 { font-size:1.5rem; font-weight:600; }
.prose p,.prose li { line-height:1.8; }
.site-footer { background:var(--ow-canvas); margin-top:64px; padding:30px 0; }
.footer-note { margin-left:18px; }
@media (max-width:767px) {
  .container { padding-left:20px; padding-right:20px; }
  .site-nav { padding:14px 0; }
  .site-nav .navbar-collapse { margin-left:0; }
  .studio-hero { grid-template-columns:1fr; gap:28px; padding-top:50px; padding-bottom:30px; }
  .studio-hero h1 { font-size:clamp(3.3rem,11vw,5rem); }
  .studio-hero__aside { max-width:430px; }
  .section-label>span { display:none; }
  .contact-strip { margin-top:48px; padding-top:32px; }
  .footer-note { display:block; margin:6px 0 0; }
}
@media (prefers-reduced-motion:reduce) { .app-card:hover { transform:none; } }

.account-content { padding-top:48px; padding-bottom:24px; }
