/* GoMind download page
   Layout follows the landing design system: warm paper, ink text, orange accent.
   Three device groups (desktop / mobile / web) with a primary store button and a
   split menu for direct downloads. */

.dl-page [hidden] {
    display: none !important;
}

.dl-page {
    --dl-surface: #fffdf9;
    --dl-soft: #f7efe4;
    --dl-hairline: rgba(36, 33, 30, 0.09);
}

/* ---------- Hero ---------- */

.dl-hero {
    padding: 62px 0 24px;
}

.dl-page h1.dl-hero-title {
    max-width: 780px;
    margin: 16px 0 18px;
    font-size: clamp(2.5rem, 5.2vw, 4.35rem);
    font-weight: 800;
    letter-spacing: -0.062em;
    line-height: 1.01;
}

.dl-hero-lead {
    max-width: 640px;
    margin: 0;
    color: var(--landing-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

/* CJK headlines need looser tracking and leading than the Latin display type. */
.dl-page.landing-page-zh h1.dl-hero-title {
    letter-spacing: -0.015em;
    line-height: 1.14;
}

.dl-page.landing-page-zh .dl-group h2,
.dl-page.landing-page-zh .dl-section-head h2 {
    letter-spacing: -0.02em;
}

/* ---------- Hero: copy + facts ---------- */

.dl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
    align-items: center;
    gap: 56px;
}

.dl-page .landing-brand {
    flex: none;
}

.dl-page .landing-menu a[aria-current="page"] {
    color: var(--landing-ink);
    font-weight: 700;
}

.dl-page .landing-menu a[aria-current="page"]::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 2px;
    border-radius: 2px;
    background: var(--landing-orange);
}

.dl-hero-aside {
    padding: 24px;
    border: 1px solid var(--landing-line);
    border-radius: 24px;
    background: rgba(255, 253, 249, 0.74);
    box-shadow: 0 18px 44px rgba(86, 55, 32, 0.05);
}

.dl-hero-aside-title {
    margin: 0 0 16px;
    color: var(--landing-orange-dark);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dl-hero-aside ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dl-hero-aside li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dl-hero-aside-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    color: var(--landing-ink);
    background: var(--dl-soft);
    font-size: 0.94rem;
}

.dl-hero-aside-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dl-hero-aside-text span {
    display: block;
    margin-top: 2px;
    color: var(--landing-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.dl-hero-aside-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--dl-hairline);
    color: var(--landing-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.dl-page .dl-hero-aside-link:hover {
    color: var(--landing-orange-dark);
}

.dl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.dl-page .dl-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: #fff8ef;
    background: var(--landing-ink);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.dl-page .dl-cta:hover {
    background: var(--landing-orange);
    color: #fff;
}

.dl-cta-lg {
    min-height: 56px;
    padding: 0 28px;
    font-size: 1rem;
}

.dl-cta-arrow {
    font-size: 1.05rem;
    line-height: 1;
}

.dl-page .dl-btn-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--landing-line);
    border-radius: 999px;
    color: var(--landing-ink);
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.87rem;
    font-weight: 700;
    transition: border-color 180ms ease, color 180ms ease;
}

.dl-page .dl-btn-quiet:hover {
    border-color: var(--landing-orange);
    color: var(--landing-orange-dark);
}

.dl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.dl-page .dl-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--landing-line);
    border-radius: 999px;
    color: var(--landing-muted);
    background: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    font-weight: 600;
    transition: border-color 160ms ease, color 160ms ease;
}

.dl-page .dl-chip i {
    font-size: 0.86rem;
}

.dl-page .dl-chip:hover {
    border-color: var(--landing-orange);
    color: var(--landing-ink);
}

.dl-page .dl-hero-note {
    margin: 22px 0 0;
    color: var(--landing-muted);
    font-size: 0.78rem;
}

/* ---------- Section heading ---------- */

.dl-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: 52px;
}

.dl-section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.dl-section-head > p {
    max-width: 400px;
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---------- Device groups ---------- */

.dl-downloads {
    padding: 0 0 20px;
}

.dl-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
    margin-top: 32px;
}

.dl-group {
    padding: 26px 24px 22px;
    border: 1px solid var(--landing-line);
    border-radius: 26px;
    background: var(--dl-surface);
    box-shadow: 0 18px 44px rgba(86, 55, 32, 0.05);
}

.dl-group-overline {
    margin: 0;
    color: var(--landing-orange-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dl-group h2 {
    margin: 8px 0 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.dl-page .dl-group-intro {
    margin: 8px 0 4px;
    color: var(--landing-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

/* ---------- Platform block ---------- */

.dl-page .dl-platform {
    min-height: 0;
    padding: 18px 0;
    border-top: 1px solid var(--dl-hairline);
    scroll-margin-top: 104px;
    transition: background 240ms ease, box-shadow 240ms ease;
}

.dl-platform:first-of-type {
    border-top: 0;
    padding-top: 14px;
}

.dl-platform-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-platform-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    color: var(--landing-ink);
    background: var(--dl-soft);
    font-size: 1.02rem;
}

.dl-platform-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.dl-platform-badge {
    display: none;
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--landing-orange-dark);
    background: rgba(241, 91, 50, 0.11);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dl-platform.is-current .dl-platform-badge {
    display: inline-block;
}

.dl-page .dl-platform-meta {
    margin: 7px 0 0;
    color: var(--landing-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.dl-platform-meta .dl-version {
    color: var(--landing-ink);
    font-weight: 600;
}

/* ---------- Primary button + split menu ---------- */

.dl-split {
    display: flex;
    align-items: stretch;
    margin-top: 13px;
    border-radius: 999px;
    background: var(--landing-ink);
    overflow: hidden;
}

.dl-split .dl-cta {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* styles.css still gives .btn-download a 16px top margin; inside the split it
   would stretch the pill and push the label below the optical centre. */
.dl-page .dl-split .btn-download {
    width: auto;
    margin-top: 0;
}

.dl-more-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    flex: none;
    border: 0;
    border-left: 1px solid rgba(255, 248, 239, 0.2);
    color: #fff8ef;
    background: var(--landing-ink);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 180ms ease;
}

.dl-more-toggle:hover {
    background: var(--landing-orange);
}

.dl-more-toggle i {
    transition: transform 180ms ease;
}

.dl-more-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dl-split--solo .dl-cta {
    justify-content: space-between;
    width: 100%;
}

.dl-page .dl-under {
    margin: 9px 0 0;
    color: var(--landing-muted);
    font-size: 0.72rem;
    text-align: center;
}

/* ---------- Direct download panel ---------- */

.dl-more {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    background: var(--dl-soft);
}

.dl-more[hidden] {
    display: none;
}

.dl-page .dl-more-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--landing-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dl-page .dl-more-title .dl-version:empty {
    display: none;
}

.dl-more-title .dl-version {
    color: var(--landing-ink);
    font-size: 0.68rem;
    letter-spacing: 0;
    text-transform: none;
}

.dl-page .download-alternatives {
    margin: 0;
    padding: 0;
    border: 0;
}

.dl-page .download-source-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.dl-page .download-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
}

.dl-page .download-source-label {
    color: var(--landing-ink);
    font-size: 0.79rem;
    font-weight: 600;
}

.dl-page .download-source-version {
    margin-left: 4px;
    color: var(--landing-muted);
    font-size: 0.68rem;
    font-weight: 500;
}

.dl-page .download-source-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.dl-page .download-source-link {
    display: none;
    padding: 3px 8px;
    border: 1px solid rgba(241, 91, 50, 0.26);
    border-radius: 999px;
    color: var(--landing-orange-dark);
    font-size: 0.69rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease;
}

.dl-page .download-source-link.is-available {
    display: inline-block;
}

.dl-page .download-source-link:hover {
    border-color: var(--landing-orange);
    background: rgba(241, 91, 50, 0.08);
}

.dl-page .download-source-empty {
    margin: 2px 0 0;
    color: var(--landing-muted);
    font-size: 0.74rem;
}

.dl-page .download-release-archive {
    display: inline-block;
    margin-top: 10px;
    color: var(--landing-ink);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Web & extensions ---------- */

.dl-page .dl-web-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 20px;
    border: 1px solid var(--landing-ink);
    border-radius: 999px;
    color: var(--landing-ink);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease;
}

.dl-page .dl-web-cta:hover {
    color: #fff8ef;
    background: var(--landing-ink);
}

.dl-web-list {
    margin-top: 6px;
}

.dl-web-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--dl-hairline);
}

.dl-web-item:first-child {
    border-top: 0;
}

.dl-web-item-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    color: var(--landing-ink);
    background: var(--dl-soft);
    font-size: 1rem;
}

.dl-web-item-text {
    min-width: 0;
}

.dl-web-item-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dl-web-item-text span {
    display: block;
    margin-top: 2px;
    color: var(--landing-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.dl-web-item-arrow {
    margin-left: auto;
    color: var(--landing-orange);
    font-size: 0.95rem;
}

.dl-web-item:hover strong {
    color: var(--landing-orange-dark);
}

/* ---------- Install notes ---------- */

.dl-notes {
    padding: 64px 0 12px;
}

.dl-notes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.dl-note h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dl-note h3 i {
    color: var(--landing-orange-dark);
    font-size: 0.95rem;
}

.dl-note ol {
    margin: 10px 0 0;
    padding-left: 17px;
    color: var(--landing-muted);
    font-size: 0.83rem;
    line-height: 1.7;
}

.dl-note code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--dl-soft);
    color: var(--landing-ink);
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

/* ---------- Requirements ---------- */

.dl-requirements {
    padding: 64px 0 24px;
}

.dl-table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.dl-table th {
    padding: 0 12px 10px;
    color: var(--landing-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.dl-table th:first-child,
.dl-table td:first-child {
    padding-left: 0;
}

.dl-table td {
    padding: 13px 12px;
    border-top: 1px solid var(--dl-hairline);
    color: var(--landing-muted);
}

.dl-table td:first-child {
    color: var(--landing-ink);
    font-weight: 600;
}

/* ---------- Focus ---------- */

.dl-page .dl-cta:focus-visible,
.dl-page .dl-btn-quiet:focus-visible,
.dl-page .dl-more-toggle:focus-visible,
.dl-page .dl-web-cta:focus-visible,
.dl-page .dl-chip:focus-visible {
    outline: 2px solid var(--landing-orange);
    outline-offset: 3px;
}

.dl-page .download-source-link:focus-visible,
.dl-page .download-release-archive:focus-visible {
    outline: 2px solid var(--landing-orange);
    outline-offset: 3px;
}

/* ---------- Deep link highlight ---------- */

.dl-platform.is-target {
    background: rgba(241, 91, 50, 0.06);
    box-shadow: inset 0 0 0 1px rgba(241, 91, 50, 0.22);
    border-radius: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .dl-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .dl-hero-aside {
        max-width: 560px;
    }

    .dl-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dl-group:last-child {
        grid-column: 1 / -1;
    }

    .dl-notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 26px;
    }
}

@media (max-width: 700px) {
    .dl-hero {
        padding: 40px 0 16px;
    }

    .dl-page h1.dl-hero-title {
        font-size: clamp(2.3rem, 11vw, 3rem);
    }

    .dl-hero-lead {
        font-size: 0.95rem;
    }

    .dl-hero-aside {
        padding: 20px;
        border-radius: 20px;
    }

    .dl-hero-actions {
        margin-top: 22px;
    }

    .dl-cta-lg {
        width: 100%;
    }

    .dl-btn-quiet {
        width: 100%;
        justify-content: center;
    }

    .dl-chips {
        gap: 6px;
        margin-top: 22px;
    }

    .dl-chip {
        padding: 6px 11px;
        font-size: 0.73rem;
    }

    .dl-section-head {
        display: block;
        margin-top: 38px;
    }

    .dl-section-head > p {
        margin-top: 12px;
    }

    .dl-groups {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .dl-group {
        padding: 22px 20px 18px;
        border-radius: 22px;
    }

    .dl-group:last-child {
        grid-column: auto;
    }

    .dl-platform {
        scroll-margin-top: 88px;
    }

    .dl-notes {
        padding: 56px 0 8px;
    }

    .dl-notes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dl-requirements {
        padding: 48px 0 16px;
    }

    .dl-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
