/* LND Tech app pages — landing, legal, docs and portfolio pages.
   Builds on /static/site.css (home style tokens). Each page sets its own
   accent with --app-accent-l (light) and --app-accent-d (dark) on <body>. */

.app {
    --app-accent: var(--app-accent-l, #3B5BDB);
    --app-accent-soft: color-mix(in srgb, var(--app-accent) 10%, var(--bg-page));
    --app-max: 1120px;
}

@media (prefers-color-scheme: dark) {
    .app {
        --app-accent: var(--app-accent-d, #7B93FF);
        --app-accent-soft: color-mix(in srgb, var(--app-accent) 14%, var(--bg-page));
    }
}

.app .home-bar,
.app-wrap {
    max-width: var(--app-max);
    margin: 0 auto;
    padding: 0 32px;
}

.app-crumb {
    color: var(--text-subtle);
    font-weight: 400;
}

.app .home-nav a[aria-current="page"] {
    color: var(--text-primary);
}

/* ---------- hero ---------- */

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 56px;
    padding-top: 40px;
    padding-bottom: 72px;
}

.app-app-id {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
}

.app-app-id img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    border: 1px solid var(--border-default);
}

.app-app-id small {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-subtle);
}

.app h1 {
    font-size: clamp(36px, 4.6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--text-primary);
    text-wrap: balance;
}

.app-lead {
    margin-top: 20px;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.app-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 32px;
}

.app-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    border-radius: 12px;
    background: var(--text-primary);
    color: var(--bg-page);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.15;
    transition: var(--transition);
}

.app-store:hover {
    color: var(--bg-page);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.app-store svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.app-store small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}

.app-note {
    font-size: 14px;
    color: var(--text-subtle);
}

/* ---------- phones ---------- */

.app-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 560px;
}

.app-phone {
    width: 260px;
    border-radius: 40px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    box-shadow: 0 24px 48px rgba(9, 30, 66, 0.12), 0 2px 6px rgba(9, 30, 66, 0.06);
}

.app-phone img,
.app-phone picture {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 32px;
}

.app-phones .app-phone:nth-child(2) {
    position: absolute;
    width: 210px;
    left: 0;
    bottom: 24px;
    transform: rotate(-4deg);
    opacity: 0.96;
}

.app-phones .app-phone:first-child {
    position: relative;
    z-index: 1;
    margin-left: 120px;
}

@media (prefers-color-scheme: dark) {
    .app-phone {
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    }
}

/* ---------- sections ---------- */

.app-section {
    padding: 72px 0;
    border-top: 1px solid var(--border-default);
}

.app-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.app h2 {
    margin-top: 12px;
    max-width: 640px;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text-primary);
    text-wrap: balance;
}

.app-section-lead {
    margin-top: 14px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* flow steps */

.app-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 44px;
    list-style: none;
    counter-reset: step;
}

.app-steps li {
    position: relative;
    padding: 28px 24px 0 0;
    border-top: 2px solid var(--border-default);
    counter-increment: step;
}

.app-steps li::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--app-accent);
    box-shadow: 0 0 0 4px var(--bg-page);
}

.app-steps h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.app-steps h3::before {
    content: counter(step, decimal-leading-zero) "  ";
    color: var(--text-subtle);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.app-steps p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* screens strip */

.app-screens {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.app-screens figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.app-screens .app-phone {
    width: 100%;
    max-width: 250px;
}

.app-screens figcaption {
    font-size: 14px;
    color: var(--text-subtle);
    text-align: center;
}

/* features */

.app-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 44px;
}

.app-feature {
    padding: 24px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
}

.app-feature svg {
    width: 22px;
    height: 22px;
    stroke: var(--app-accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-feature h3 {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.app-feature p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* plans */

.app-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 820px;
    margin-top: 44px;
}

.app-plan {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
}

.app-plan.is-pro {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 1px var(--app-accent);
}

.app-plan h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-subtle);
}

.app-price {
    margin-top: 8px;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.app-price span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-subtle);
}

.app-plan ul {
    margin-top: 20px;
    list-style: none;
    display: grid;
    gap: 10px;
}

.app-plan li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.app-plan li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--app-accent);
    border-bottom: 2px solid var(--app-accent);
    transform: rotate(-45deg);
}

.app-fine {
    margin-top: 20px;
    max-width: 820px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-subtle);
}

/* privacy */

.app-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.app-facts {
    list-style: none;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border-default);
}

.app-facts li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-default);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.app-facts strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

/* faq */

.app-faq {
    max-width: 760px;
    margin-top: 36px;
    border-top: 1px solid var(--border-default);
}

.app-faq details {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--border-default);
    border-radius: 0;
    background: transparent;
}

.app-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
}

.app-faq summary::-webkit-details-marker { display: none; }

.app-faq summary::after {
    content: "+";
    color: var(--text-subtle);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
}

.app-faq details[open] summary::after { content: "–"; }

.app-faq details p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* closing cta */

.app-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.app-cta h2 { margin-top: 0; }

/* footer */

.app .home-footer-bar {
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.app-dev {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-subtle);
}

.app-dev img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border-default);
}

.app-dev a { font-weight: 600; }

/* ---------- legal pages ---------- */

.app-legal {
    max-width: 760px;
    padding-top: 24px;
    padding-bottom: 72px;
}

.app-legal h1 {
    font-size: clamp(32px, 4vw, 44px);
}

.app-legal .app-updated {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-subtle);
}

.app-legal .app-summary {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--app-accent-soft);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

.app-legal .app-summary ul {
    margin: 8px 0 0 18px;
}

.app-legal h2 {
    margin-top: 44px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.app-legal h3 {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-legal p,
.app-legal li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.app-legal p { margin-top: 12px; }

.app-legal ul { margin: 10px 0 0 20px; }

.app-legal li + li { margin-top: 6px; }

.app-legal table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 14px;
}

.app-legal th,
.app-legal td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--border-default);
    text-align: left;
    vertical-align: top;
    color: var(--text-secondary);
}

.app-legal th {
    color: var(--text-primary);
    font-weight: 600;
}

.app-legal strong { color: var(--text-primary); }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
    .app-hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .app-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
    .app .home-bar,
    .app-wrap { padding: 0 20px; }

    .app .home-header .home-bar { padding: 20px; }

    .app-hero { padding-top: 16px; padding-bottom: 56px; }
    .app-lead { font-size: 16px; }

    .app-phones { min-height: 0; }
    .app-phones .app-phone:first-child { margin-left: 0; width: 240px; }
    .app-phones .app-phone:nth-child(2) { display: none; }

    .app-section { padding: 56px 0; }
    .app-steps { grid-template-columns: 1fr; }
    .app-steps li { padding-right: 0; }

    .app-screens {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px 8px;
    }

    .app-screens figure {
        flex: 0 0 68%;
        scroll-snap-align: center;
    }

    .app-features,
    .app-plans { grid-template-columns: 1fr; }

    .app .home-footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-store { transition: none; }
    .app-store:hover { transform: none; }
}

/* =========================================================
   Shared components for every app (added for the full portfolio)
   ========================================================= */

/* header nav: keep long nav lists tidy */
.app .home-nav { flex-wrap: wrap; row-gap: 6px; }

/* language switcher */
.app-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    list-style: none;
    font-size: 13px;
}
.app-langs a,
.app-langs span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-weight: 500;
}
.app-langs a:hover { color: var(--text-primary); border-color: var(--border-strong); }
.app-langs [aria-current="page"] {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* store / marketplace buttons */
.app-store.is-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.app-store.is-outline:hover { color: var(--text-primary); }
.app-store.is-soon {
    background: transparent;
    color: var(--text-subtle);
    border: 1px dashed var(--border-strong);
    cursor: default;
}
.app-store.is-soon:hover { transform: none; box-shadow: none; color: var(--text-subtle); }

.app-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1px;
}
.app-link:hover { color: var(--app-accent); border-color: var(--app-accent); }

/* hero art for apps without phone screenshots */
.app-hero-card {
    justify-self: end;
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    box-shadow: 0 24px 48px rgba(9, 30, 66, 0.10), 0 2px 6px rgba(9, 30, 66, 0.05);
}
.app-hero-card > img {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 22px;
    border: 1px solid var(--border-default);
}
.app-hero-card .app-hero-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: var(--app-accent-soft);
    color: var(--app-accent);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.app-hero-card ul {
    margin-top: 24px;
    list-style: none;
    border-top: 1px solid var(--border-default);
}
.app-hero-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-default);
    font-size: 15px;
    color: var(--text-secondary);
}
.app-hero-card li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--app-accent);
}
.app-hero-card li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (prefers-color-scheme: dark) {
    .app-hero-card { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
}

/* single-row screenshots (phone screens without device frame tweaks) */
.app-screens.is-wide { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.app-screens.is-wide .app-phone { max-width: 220px; }

/* feature icon as emoji/glyph instead of svg */
.app-feature .app-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--app-accent-soft);
    font-size: 18px;
    line-height: 1;
}
.app-feature .app-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--app-accent-soft);
    color: var(--app-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    vertical-align: 2px;
}
.app-features.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* stats row */
.app-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    margin-top: 44px;
    border-top: 1px solid var(--border-default);
    list-style: none;
}
.app-stats li {
    padding: 20px 24px 0 0;
}
.app-stats strong {
    display: block;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.app-stats span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* chips */
.app-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    list-style: none;
}
.app-chips li {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    font-size: 14px;
    color: var(--text-secondary);
}

/* plan price note under a plan title */
.app-plan .app-plan-note {
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-subtle);
}
.app-plans.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }

/* comparison table */
.app-table-wrap { margin-top: 36px; overflow-x: auto; }
.app-table {
    width: 100%;
    max-width: 820px;
    border-collapse: collapse;
    font-size: 15px;
}
.app-table th,
.app-table td {
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--border-default);
    text-align: left;
    color: var(--text-secondary);
}
.app-table th { color: var(--text-primary); font-weight: 600; font-size: 14px; }
.app-table td + td,
.app-table th + th { text-align: center; width: 110px; }
.app-table td:first-child { color: var(--text-primary); }

/* prose block inside a section */
.app-prose {
    max-width: 720px;
    margin-top: 24px;
}
.app-prose p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
}
.app-prose p:first-child { margin-top: 0; }
.app-prose strong { color: var(--text-primary); }
.app-prose ol,
.app-prose ul { margin: 14px 0 0 20px; }
.app-prose li {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.app-prose h3 {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* callout */
.app-callout {
    display: block;
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--app-accent);
    background: var(--app-accent-soft);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.app-callout strong { color: var(--text-primary); }
.app-callout > :first-child { margin-top: 0; }

/* quote / story */
.app-quote {
    max-width: 720px;
    margin-top: 28px;
    padding-left: 20px;
    border-left: 3px solid var(--app-accent);
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-primary);
}

/* partner / resource cards with actions */
.app-feature .app-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
}

/* ---------- articles: legal, docs, guides ---------- */

.app-legal h4 {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.app-legal ol { margin: 10px 0 0 20px; }
.app-legal ul ul,
.app-legal ol ol,
.app-legal ul ol,
.app-legal ol ul { margin-top: 6px; }
.app-legal a { text-decoration: underline; text-underline-offset: 2px; }
.app-legal code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    font-size: 0.9em;
}
.app-legal pre {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.55;
}
.app-legal pre code { padding: 0; border: 0; background: none; }
.app-legal img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-default);
}
.app-legal blockquote {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--border-strong);
    color: var(--text-secondary);
}
.app-legal hr {
    margin: 36px 0 0;
    border: 0;
    border-top: 1px solid var(--border-default);
}
.app-legal .app-table-wrap { margin-top: 16px; }
.app-legal .app-callout p { margin-top: 8px; }
.app-legal .app-callout p:first-child { margin-top: 0; }
.app-legal details {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-default);
}
.app-legal summary { cursor: pointer; font-weight: 600; color: var(--text-primary); }
.app-legal.is-wide { max-width: 860px; }
.app-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border-default);
    font-size: 14px;
}
.app-legal-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.app-legal-nav a:hover { color: var(--text-primary); }

/* ---------- portfolio / hub pages ---------- */

.app-hub-head {
    padding-top: 40px;
    padding-bottom: 56px;
}
.app-hub-head .app-lead { max-width: 620px; }
.app-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    list-style: none;
}
.app-filter a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-default);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.app-filter a:hover,
.app-filter a[aria-current="page"] {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.app-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
    list-style: none;
}
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    transition: var(--transition);
}
.app-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.app-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-card-top img,
.app-card-top .app-mono {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    border: 1px solid var(--border-default);
}
.app-card-top .app-mono {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.app-card h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.app-card h3 a { color: inherit; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.app-card-kind {
    display: block;
    font-size: 13px;
    color: var(--text-subtle);
}
.app-card p {
    flex: 1;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}
.app-card-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
}
.app-card-links a { color: var(--text-primary); }
.app-card-links a:hover { color: var(--app-accent); }
.app-hub-section + .app-hub-section { margin-top: 0; }
.app-hub-section .app-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

/* simple contact page (services) */
.app-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 32px;
}

@media (max-width: 920px) {
    .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-plans.is-three { grid-template-columns: 1fr; }
    .app-hero-card { justify-self: start; }
}

@media (max-width: 720px) {
    .app-cards,
    .app-features.is-two { grid-template-columns: 1fr; }
    .app-hub-head { padding-top: 16px; padding-bottom: 40px; }
    .app-table td + td,
    .app-table th + th { width: 72px; }
    .app-stats li { padding-right: 12px; }
}

/* long footer link lists (Atlassian apps) and long words in docs */
.app .home-footer nav { flex-wrap: wrap; row-gap: 8px; column-gap: 20px; }
.app-legal { overflow-wrap: break-word; }
.app-legal pre { max-width: 100%; overflow-x: auto; }
/* body.home is a flex container: let main shrink so wide tables scroll inside their wrapper */
body.app > main { min-width: 0; width: 100%; }

/* client logos (services): one-color logos scrolling right to left */
.app-marquee {
    display: flex;
    overflow: hidden;
    margin: 28px 0 64px;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.app-legal .app-clients,
.app-clients {
    flex: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 56px;
    margin: 0;
    padding: 0 56px 0 0;
    list-style: none;
    animation: app-marquee 32s linear infinite;
}
.app-marquee:hover .app-clients { animation-play-state: paused; }
.app-legal .app-clients li,
.app-clients li { flex: none; margin: 0; padding: 0; }
.app-clients li::before { content: none; }
.app-clients img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    filter: brightness(0);
    opacity: 0.7;
}
@keyframes app-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@media (prefers-color-scheme: dark) {
    .app-clients img { filter: brightness(0) invert(1); opacity: 0.8; }
}
@media (max-width: 720px) {
    .app-legal .app-clients, .app-clients { gap: 36px; padding-right: 36px; animation-duration: 24s; }
    .app-clients img { height: 22px; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .app-marquee { -webkit-mask-image: none; mask-image: none; }
    .app-legal .app-clients, .app-clients { flex-wrap: wrap; flex: 1; gap: 24px 40px; padding: 0; animation: none; }
    .app-clients[aria-hidden="true"] { display: none; }
}


/* home page: same client carousel under the partners */
.home-clients { margin-top: 56px; width: 100%; }
.home-clients .app-marquee { width: 100%; max-width: 880px; margin: 28px auto 0; }
@media (max-width: 720px) { .home-clients { margin-top: 48px; } }
