/* 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;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 1.25rem;
}

.app-card {
    background: var(--ow-surface);
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;

    /* The accent is per-app and set inline from the record, so a card falls back to the site
       accent rather than to nothing when an app has not chosen one. */
    border-top: 3px solid var(--app-accent, var(--ow-accent));
}

.app-card:hover {
    border-color: var(--app-accent, var(--ow-accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 22, 26, 0.07);
}

.app-card__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.app-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    object-fit: cover;
    background: var(--ow-accent-soft);
    flex: 0 0 auto;
}

.app-card__icon--placeholder {
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--app-accent, var(--ow-accent));
    background: var(--ow-accent-soft);
}

.app-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.app-card__tagline {
    color: var(--ow-muted);
    margin: 0;
}

.app-card__meta {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.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); }
.app-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:24px; }
.app-card { padding:30px; border:1px solid var(--ow-line); border-radius:var(--ow-radius); overflow:hidden; }
.app-card:hover { color:inherit; border-color:#b8c8b1; box-shadow:0 12px 30px #1427260c; transform:translateY(-3px); }
.app-card__copy { min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.app-card__head { gap:18px; margin-bottom:35px; flex-wrap:wrap; }
.app-card__icon { width:64px; height:64px; border-radius:16px; }
.app-card__name { font-size:2.4rem; font-weight:500; letter-spacing:-.045em; margin-bottom:14px; }
.app-card__tagline { font-size:1.13rem; line-height:1.5; max-width:350px; }
.app-card__meta { padding:20px 0 28px; font-size:.85rem; gap:14px; margin-top:0; }
.app-card__meta span+span { border-left:1px solid currentColor; padding-left:14px; }
.app-card__cta { display:flex; align-items:center; gap:32px; border-bottom:1px solid currentColor; padding-bottom:6px; font-weight:600; margin-top:auto; }
.pill { font-size:.8rem; font-weight:500; padding:6px 12px; }
.app-card--feature { grid-column:1 / -1; display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:40px; min-height:475px; padding:48px 62px; }
.app-card--feature .app-card__name { font-size:clamp(2.6rem,4vw,3.8rem); }
.app-card--luma { background:#10232a; color:#f4f8ed; border-color:#10232a; }
.app-card--luma:hover { color:#f4f8ed; border-color:#427963; }
.app-card--luma .app-card__tagline { color:#c5d7d8; }
.app-card--luma .pill { color:#d9f5a8; background:#2b4140; }
.app-card--luma .app-card__cta { color:#dcf9ae; }
.app-card--luma .app-card__meta { color:#b4cbcd; }
.app-card--fandor { background:#e8eef8; border-color:#dce5f5; }
.app-card--fandor .pill { background:white; color:#305288; }
.app-card__art { display:flex; justify-content:center; min-width:0; }
.app-card__art img { display:block; width:auto; max-width:100%; height:405px; object-fit:contain; border-radius:20px; box-shadow:0 24px 50px #0003; }
.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; }
  .app-card--feature { padding:30px 26px; gap:32px; grid-template-columns:1fr; }
  .app-card__head { margin-bottom:24px; }
  .app-card__art img { height:360px; max-height: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; }
