.platform-page {
    --platform-green: #425f49;
}

.platform-header,
.platform-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 54px;
}

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

.platform-brand {
    font-size: 1.65rem;
    text-decoration: none;
    white-space: nowrap;
}

.back-link,
.platform-footer > a:not(.platform-brand) {
    font-family: var(--sans);
    font-size: 0.8rem;
    text-underline-offset: 5px;
}

.platform-intro {
    padding: 64px 64px 60px;
}

.eyebrow,
.product-meta,
.visual-kicker {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--platform-green);
}

.platform-intro h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2.7vw, 1.8rem);
    font-weight: 400;
}

.platform-statement {
    margin: 32px 0 20px;
    font-size: clamp(1.9rem, 4vw, 2.85rem);
    line-height: 1.65;
    letter-spacing: 0.08em;
}

.platform-lead,
.products-heading p,
.product-copy > p,
.app-links,
.document-page {
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.95;
    letter-spacing: 0.035em;
}

.platform-lead {
    color: var(--muted);
    margin-bottom: 0;
}

.products-section {
    padding: 40px 54px 64px;
    border-top: 1px solid var(--line);
}

.products-heading h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
}

.products-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.product {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 40px;
    margin-top: 36px;
}

.product + .product {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.product-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 300px;
    padding: 34px 20px;
    text-align: center;
}

.portal-visual {
    background: #e3ebdf;
    color: var(--platform-green);
}

.portal-visual img {
    width: min(100%, 132px);
    height: auto;
}

.visual-caption {
    font-size: 0.87rem;
}

.color-visual {
    background: #efe7df;
    color: #685647;
}

.color-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(100%, 260px);
    gap: 10px;
    padding: 25px 0;
}

.color-swatches span {
    aspect-ratio: 1 / 1.6;
    border-radius: 40px 40px 5px 5px;
    background: #e6b895;
}

.color-swatches span:nth-child(2) { background: #c6c3db; }
.color-swatches span:nth-child(3) { background: #aaad7e; }
.color-swatches span:nth-child(4) { background: #778da0; }

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
}

.development-badge {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid #8fa38c;
    border-radius: 30px;
    color: var(--platform-green);
    background: #edf2e9;
    font-family: var(--sans);
    font-size: 0.75rem;
}

.product-copy h3 {
    margin: 17px 0;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 400;
    line-height: 1.6;
}

.product-copy .product-catch {
    font-weight: 600;
}

.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 12px 22px;
    margin-top: 8px;
    background: var(--platform-green);
    color: var(--white);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.85rem;
    text-decoration: none;
}

.product-copy .product-note {
    color: var(--muted);
    font-size: 0.77rem;
    margin-top: 16px;
}

.app-links {
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.app-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.83rem;
    text-decoration: none;
}

.app-links small {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    color: var(--muted);
}

.platform-page a:focus-visible {
    outline: 2px solid var(--platform-green);
    outline-offset: 5px;
}

.app-links a:hover,
.back-link:hover {
    color: var(--platform-green);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.product-button:hover {
    background: #334e39;
}

.platform-footer {
    flex-wrap: wrap;
    color: #304934;
    background: var(--green);
}

.platform-footer p {
    margin: 0;
    font-family: var(--sans);
    font-size: 0.65rem;
}

.document-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 64px 64px;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 2;
}

.document-heading h1 {
    margin: 12px 0 28px;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    line-height: 1.5;
}

.document-page p { margin: 0 0 18px; }
.document-page .eyebrow { margin-bottom: 12px; }
.document-date { color: var(--muted); font-size: 0.85rem; }
.document-page a { color: var(--platform-green); text-underline-offset: 4px; }
.document-page a:hover { text-decoration-thickness: 2px; }

.document-toc {
    margin: 32px 0 44px;
    padding: 24px 28px;
    background: #edf2e9;
    border-left: 3px solid #8fa38c;
    border-radius: 0 6px 6px 0;
}

.document-toc > p { margin: 0 0 8px; font-weight: 600; }
.document-toc ul { margin: 0; padding: 0; list-style: none; }
.document-toc a { display: inline-block; padding: 6px 0; font-size: 0.9rem; }

.document-section {
    padding-top: 32px;
    margin-top: 36px;
    border-top: 1px solid var(--line);
}

.document-section h2 {
    margin: 0 0 22px;
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 600;
}

.document-section ul,
.document-section ol { padding-left: 1.6em; margin: 18px 0 24px; }
.document-section li { padding-left: 0.25em; margin-bottom: 10px; }
.usage-steps li { margin-bottom: 18px; }
.usage-steps li::marker { font-weight: 700; color: var(--platform-green); }

.faq-item + .faq-item { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.8; color: var(--platform-green); }

.document-related {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    border-top: 1px solid var(--line);
    margin-top: 44px;
    padding-top: 24px;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .platform-header,
    .platform-footer { padding: 24px 32px; }
    .platform-intro,
    .document-page { padding: 48px 32px; }
    .products-section { padding: 36px 32px 48px; }
    .product { gap: 26px; }
}

@media (max-width: 680px) {
    .platform-header,
    .platform-footer { padding: 22px 24px; gap: 16px; }
    .platform-brand { font-size: 1.4rem; }
    .back-link { font-size: 0.72rem; }
    .platform-intro,
    .document-page { padding: 42px 24px; }
    .platform-intro h1 { font-size: 1.17rem; }
    .platform-statement { font-size: 1.9rem; }
    .platform-lead br { display: none; }
    .products-section { padding: 32px 24px 48px; }
    .product { grid-template-columns: 1fr; gap: 28px; }
    .product-visual { min-height: 250px; }
    .product-copy h3 { font-size: 1.5rem; }
    .platform-footer p { width: 100%; }
    .document-page { font-size: 0.95rem; }
    .document-toc { padding: 20px; }
    .document-section h2 { font-size: 1.15rem; }
}
