/*
   This store's site-wide stylesheet.

   Both the storefront and the panel bases load it after the core's css/output.css, so it owns
   what has to reach a page that never loads the landing's own stylesheet: the --jj-* design
   tokens the landing app reads, the two utilities the chrome shares, and the storefront footer.
   DaisyUI theme overrides belong here too — no CSS build step needed:

   [data-theme="blackhole"] {
       --color-primary: oklch(0.55 0.15 250);
       --color-primary-content: oklch(0.98 0 0);
       --radius-box: 0.5rem;
   }
*/

:root {
    --jj-bg: #f7f7f7;
    --jj-surface: #ffffff;
    --jj-line: #e4e4e4;
    --jj-ink: #141414;
    --jj-muted: #5c5c5c;
    --jj-charcoal: #2b2b2b;
    --jj-black: #0f0f0f;
    --jj-dark-surface: #171717;
    --jj-dark-line: #2e2e2e;
    --jj-on-dark: #ffffff;
    --jj-on-dark-soft: #e5e5e5;
    --jj-on-dark-muted: #b3b3b3;
    --jj-on-dark-dim: #8f8f8f;
    --jj-s4: 4px;
    --jj-s8: 8px;
    --jj-s24: 24px;
    --jj-s64: 64px;
    --jj-s120: 120px;
    --jj-radius-control: 12px;
    --jj-radius-card: 20px;
    --jj-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --jj-nav-height: 72px;
}

.jj-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jj-container {
    width: 100%;
    max-width: 1328px;
    margin-inline: auto;
    padding-inline: var(--jj-s24);
}

/* The footer closes every page the platform shows a footer on, so it carries the type and
   colour the landing page's .jj wrapper would otherwise supply. */
.jj-footer {
    border-top: 1px solid var(--jj-line);
    background: var(--jj-surface);
    padding-top: var(--jj-s64);
    color: var(--jj-ink);
    font-family: "Vazirmatn", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.jj-footer__top {
    display: grid;
    gap: var(--jj-s64);
}

.jj-footer__wordmark {
    display: inline-block;
    color: var(--jj-ink);
    font-size: clamp(56px, 9vw, 88px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.jj-footer__brand p {
    margin-top: var(--jj-s8);
    color: var(--jj-muted);
    font-size: 14px;
}

.jj-footer__nav {
    display: grid;
    gap: var(--jj-s64);
}

.jj-footer__label {
    margin: 0 0 var(--jj-s8);
    color: var(--jj-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.jj-footer__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jj-footer__column a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--jj-muted);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jj-footer__column a:hover {
    color: var(--jj-ink);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 4px;
}

/* The language rows carry aria-current, so the row the visitor is already on has to look
   taken rather than only announce itself to a screen reader. */
.jj-footer__column a[aria-current] {
    color: var(--jj-ink);
    font-weight: 600;
}

.jj-footer__bottom {
    margin-top: var(--jj-s64);
    padding-block: var(--jj-s24);
    border-top: 1px solid var(--jj-line);
    color: var(--jj-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.jj-footer :focus-visible {
    outline: 2px solid var(--jj-ink);
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .jj-footer__nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--jj-s24);
    }
}

@media (min-width: 1024px) {
    .jj-footer {
        padding-top: var(--jj-s64);
    }

    .jj-footer__top {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: var(--jj-s64);
    }

    .jj-footer__nav {
        grid-template-columns: repeat(3, auto);
        gap: var(--jj-s64);
        justify-content: end;
    }

    .jj-footer__bottom {
        margin-top: var(--jj-s64);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jj-footer,
    .jj-footer * {
        transition-duration: 0.01ms !important;
    }
}
