/* Moonpyre company pages. Builds on the shared tokens in /moonglide/assets/moonglide.css. */

/* Neutral links: the purple accent belongs to MoonGlide. */
body.company { --accent: var(--text); }
body.company a:not(.button) { text-decoration-color: var(--line-strong); }
body.company a:not(.button):hover { text-decoration-color: currentColor; }
body.company .nav-links a:not(.button),
body.company .footer a,
body.company .brand { text-decoration: none; }

.brand img.mark { border-radius: 0; }

/* Hero */
.company-hero {
    padding: 112px 0 24px;
}

.company-hero .display { max-width: 14ch; }

.company-hero .lede {
    margin-top: 24px;
    max-width: 560px;
}

/* Products */
.products {
    padding: 72px 0 24px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-3);
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: var(--bg-alt);
    overflow: hidden;
    transition: transform 0.4s var(--ease);
}

.product-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.product-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

/* MoonGlide: the keyboard itself, floating on the tile. */
.product-media.keyboard {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-media.keyboard > img {
    width: 56%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(20, 20, 40, 0.16)) drop-shadow(0 1px 2px rgba(20, 20, 40, 0.08));
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 28px 30px;
}

.product-kind {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.product h3 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.product p {
    margin-top: 10px;
    color: var(--text-2);
    font-size: 17px;
    text-wrap: pretty;
}

.product .text-link {
    margin-top: auto;
    padding-top: 20px;
    align-self: flex-start;
    font-weight: 500;
}

/* The whole tile is clickable through its main link. */
.product .stretch::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.product:hover .product-media > img:not(.lift) { transform: scale(1.025); }
.product:hover .product-media.keyboard > img { transform: translateY(-4px); }
.product:hover .text-link::after { transform: translateX(3px); }
.product:active { transform: scale(0.99); }

.product:has(.stretch:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.product .stretch:focus-visible { outline: none; }

/* Company details */
.company-info {
    padding: 96px 0 112px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.info-grid dt {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.info-grid dd {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

/* Support page */
.company-doc { padding: 88px 0 112px; max-width: 720px; }
.company-doc .lede { margin-top: 20px; }
.company-doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 64px 0 14px; }
.company-doc p + p { margin-top: 12px; }
.company-doc p { color: var(--text-2); }
.company-doc .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }

.help-list { list-style: none; border-top: 1px solid var(--line); }
.help-list li { border-bottom: 1px solid var(--line); }

.help-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    color: var(--text);
    text-decoration: none;
}

.help-list a span { color: var(--text-3); font-size: 15px; }
.help-list a::after { content: "\203A"; color: var(--text-3); font-size: 20px; transition: transform 0.25s var(--ease); }
.help-list a:hover::after { transform: translateX(3px); }
.help-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.help-list strong { font-weight: 500; display: block; }
.help-list .help-text { display: flex; flex-direction: column; gap: 2px; }

@media (max-width: 860px) {
    .product-grid { grid-template-columns: minmax(0, 1fr); }
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .company-hero { padding-top: 72px; }
    .products { padding-top: 56px; }
    .product-body { padding: 24px 22px 26px; }
    .product h3 { font-size: 24px; }
    .info-grid,
    .company-doc .info-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .company-info { padding: 72px 0 88px; }
    .company-doc { padding: 56px 0 88px; }
}

@media (prefers-reduced-motion: reduce) {
    .product,
    .product-media > img { transition: none; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
