:root {
    color-scheme: light;
    --primary: #5ca571;
    --primary-hover: #4e9462;
    --foreground: #2b2b2b;
    --muted: #8c8c8c;
    --border: #eaebed;
    --secondary: #f4f5f7;
    --card-bg: #f8f9fa;
    --card-hover: #f0f2f5;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
    color: var(--foreground);
    background: #fff;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(calc(100% - 48px), 960px);
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner {
    min-height: 74px;
}

.site-logo {
    display: block;
    width: 158px;
    height: auto;
}

.header-actions,
.site-nav {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 12px;
}

.site-nav {
    gap: 8px;
}

.site-nav a {
    padding: 8px 12px;
    color: var(--muted);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
    color: #458257;
    background: #eef5f0;
}

.language-selector {
    position: relative;
    flex: 0 0 auto;
}

.language-trigger {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}

.language-trigger:hover,
.language-selector.open .language-trigger {
    background: #fff;
    border-color: var(--border);
}

.language-trigger:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 165, 113, 0.15);
}

.language-trigger img,
.language-menu img {
    display: block;
    object-fit: cover;
    border-radius: 2px;
}

.language-trigger i {
    color: var(--muted);
    font-size: 9px;
    transition: transform 0.2s ease;
}

.language-selector.open .language-trigger i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    display: flex;
    width: 190px;
    max-height: min(420px, 70vh);
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    scrollbar-color: #b8cbbb transparent;
    scrollbar-width: thin;
}

.language-menu::-webkit-scrollbar {
    width: 6px;
}

.language-menu::-webkit-scrollbar-thumb {
    background: #b8cbbb;
    border-radius: 999px;
}

.language-menu[hidden] {
    display: none;
}

.language-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    color: var(--foreground);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-align: left;
}

.language-menu button:hover,
.language-menu button.selected {
    color: #458257;
    background: #eef5f0;
}

.language-menu button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

main {
    display: flex;
}

.home-section,
.content-section {
    width: 100%;
    padding: 70px 0;
}

.home-section {
    background: var(--secondary);
}

.page-heading {
    max-width: 680px;
}

.page-heading--center {
    margin-inline: auto;
    text-align: center;
}

.kicker {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

h1 {
    margin: 10px 0 14px;
    font-size: clamp(38px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.browser-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
}

.browser-card {
    display: flex;
    width: calc((100% - 36px) / 3);
    min-width: 0;
    min-height: 260px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 30px 24px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.browser-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(43, 43, 43, 0.1);
    transform: translateY(-2px);
}

.browser-card img {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
}

.browser-card strong {
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

.browser-card > span {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    transition: background 0.2s ease;
}

.browser-card:hover > span {
    background: var(--primary-hover);
}

.content-container {
    max-width: 760px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
}

.info-row {
    padding: 18px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.info-row > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-row strong {
    font-size: 15px;
    font-weight: 500;
}

.info-row span {
    color: var(--muted);
    font-size: 13px;
}

.resource-card,
.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 20px;
    background: #eef5f0;
    border: 1px solid #dfece3;
    border-radius: var(--radius);
}

.resource-card > div:first-child,
.contact-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.resource-card strong,
.contact-card strong {
    font-size: 15px;
    font-weight: 500;
}

.resource-card > div:first-child span,
.contact-card > div span {
    color: #68706c;
    font-size: 13px;
}

.resource-links {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.resource-links a,
.contact-card > a,
.inline-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    color: #458257;
    background: #fff;
    border: 1px solid #d6e5da;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.resource-links a:hover,
.contact-card > a:hover,
.inline-action:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.effective-date {
    display: block;
    margin-top: 16px;
    color: #68706c;
    font-size: 12px;
}

.legal-container {
    max-width: 800px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
}

.legal-content section {
    padding: 22px;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.legal-content section.limited-use {
    background: #eef5f0;
    border: 1px solid #dfece3;
}

.legal-content h2,
.support-card h2 {
    margin: 0 0 9px;
    font-size: 15px;
    font-weight: 600;
}

.legal-content p,
.legal-content li,
.support-card p {
    color: #68706c;
    font-size: 13px;
    line-height: 1.7;
}

.legal-content p,
.support-card p {
    margin: 0;
}

.legal-content ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 12px 0;
    padding-left: 20px;
}

.legal-content li::marker {
    color: var(--primary);
}

.legal-content .inline-action {
    margin-top: 14px;
}

.support-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
}

.support-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.support-card > i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #eef5f0;
    border-radius: var(--radius-sm);
}

.support-card h2 {
    margin-top: 5px;
}

.contact-card > a {
    flex: 0 0 auto;
}

.release-card {
    margin-top: 36px;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.release-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.release-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.release-header strong {
    color: #458257;
    font-size: 16px;
}

.release-header span {
    padding: 4px 8px;
    color: #458257;
    background: #eef5f0;
    border-radius: var(--radius-full);
    font-size: 11px;
}

.release-header time {
    color: var(--muted);
    font-size: 11px;
}

.release-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 20px 20px 20px 40px;
}

.release-card li {
    color: #555d59;
    font-size: 13px;
}

.release-card li::marker {
    color: var(--primary);
}

.site-footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 58px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
}

.footer-left {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 7px;
}

.footer-left > span {
    color: var(--muted);
}

.footer-separator {
    color: #c6cace !important;
    font-weight: 700;
}

.publisher-link {
    display: inline-flex;
    align-items: center;
    color: var(--foreground);
    font-weight: 500;
}

.publisher-link:hover {
    color: var(--primary);
}

.made-in {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    white-space: nowrap;
}

.made-in i {
    display: inline-flex;
    align-items: center;
    margin-inline: 3px;
    color: #df5858;
    font-size: 10px;
    line-height: 1;
}

@media (max-width: 720px) {
    .browser-card {
        width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 520px) {
    .container {
        width: min(calc(100% - 32px), 960px);
    }

    .header-inner {
        min-height: 66px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
    }

    .site-logo {
        width: 138px;
    }

    .site-nav {
        min-width: 0;
        flex: 1;
        gap: 4px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .site-nav a {
        padding: 6px 8px;
        font-size: 12px;
    }

    .home-section,
    .content-section {
        padding: 48px 0;
    }

    h1 {
        font-size: 38px;
    }

    .browser-card {
        width: 100%;
        min-height: 230px;
    }

    .release-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .resource-card,
    .contact-card {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .resource-links {
        flex-wrap: wrap;
    }

    .resource-links a,
    .contact-card > a {
        flex: 1 1 auto;
    }

    .support-list {
        grid-template-columns: 1fr;
    }

    .legal-content section,
    .support-card {
        padding: 18px;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .footer-left {
        align-items: center;
        flex-direction: row;
        gap: 7px;
    }
}

@media (max-width: 380px) {
    .header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        padding-inline: 7px;
        font-size: 11px;
    }
}

@media (max-width: 340px) {
    .footer-inner {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 12px 0;
    }
}
