/* Hero */

.brand-hero {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.brand-hero__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    aspect-ratio: 1;
    border: 1px solid var(--yurba-border-color);
    border-radius: 32px;
}

.brand-hero__tile--brand {
    background: var(--landing-blue);
    color: #fff;
    transform: rotate(-6deg);
}

.brand-hero__tile--dark {
    background: #0e0e0e;
    color: #fff;
    transform: translateY(-12px);
}

.brand-hero__tile--light {
    background: #fff;
    color: var(--landing-blue);
    transform: rotate(6deg);
}

.brand-hero__mark,
.brand-rule__mark,
.brand-note__star {
    -webkit-mask: url("/landing-assets/images/mark.svg") center / contain no-repeat;
    mask: url("/landing-assets/images/mark.svg") center / contain no-repeat;
}

.brand-hero__mark {
    width: 56px;
    height: 56px;
    background: currentColor;
}

@media (max-width: 520px) {
    .brand-hero {
        gap: 10px;
    }

    .brand-hero__tile {
        width: 92px;
        border-radius: 24px;
    }

    .brand-hero__mark {
        width: 40px;
        height: 40px;
    }
}

/* Brand */

.brand-section {
    padding: 64px 0 32px;
}

.brand-section--note {
    padding-bottom: 100px;
}

.brand-block + .brand-block {
    margin-top: 96px;
}

.brand-block__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.brand-block__title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.brand-block__desc {
    max-width: 680px;
    font-size: 17px;
    line-height: 1.6;
    opacity: .6;
}

@media (max-width: 991px) {
    .brand-block__title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .brand-section {
        padding: 40px 0 24px;
    }

    .brand-section--note {
        padding-bottom: 64px;
    }

    .brand-block + .brand-block {
        margin-top: 64px;
    }

    .brand-block__title {
        font-size: 28px;
    }
}

/* Logos */

.brand-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--yurba-border-color);
    border-radius: 24px;
    background: var(--yurba-main-color);
}

.brand-logo__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    padding: 48px;
    background-color: #fff;
    background-image: conic-gradient(#f4f4f5 25%, #fff 0 50%, #f4f4f5 0 75%, #fff 0);
    background-size: 24px 24px;
}

.brand-logo--dark .brand-logo__preview {
    background-color: #0e0e0e;
    background-image: conic-gradient(#171717 25%, #0e0e0e 0 50%, #171717 0 75%, #0e0e0e 0);
}

.brand-logo__img {
    max-height: 100%;
    transition: transform .3s;
}

.brand-logo:hover .brand-logo__img {
    transform: scale(1.05);
}

.brand-logo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--yurba-border-color);
}

.brand-logo__title {
    font-size: 15px;
    font-weight: 600;
}

.brand-logo__downloads {
    display: flex;
    gap: 6px;
}

.brand-logo__download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 8px;
    border-radius: 10px;
    background: var(--yurba-brand-color-opacity);
    color: var(--yurba-brand-color);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.brand-logo__download .material-symbols-rounded {
    font-size: 16px;
}

.brand-logo__download:hover {
    background: var(--yurba-brand-color);
    color: var(--yurba-on-brand-color);
}

@media (max-width: 520px) {
    .brand-logos {
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-logo__preview {
        height: 200px;
        padding: 36px;
    }
}

/* Usage */

.brand-rules + .brand-rules {
    margin-top: 32px;
}

.brand-rules__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.brand-rules__icon {
    color: var(--yurba-red-color);
    font-size: 22px;
    font-variation-settings: "FILL" 1;
}

.brand-rules--do .brand-rules__icon {
    color: #22b35e;
}

.brand-rules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.brand-rule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-rule__preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--yurba-border-color);
    border-radius: 20px;
    background: var(--yurba-soft-color);
}

.brand-rule__preview::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--yurba-red-color);
}

.brand-rules--do .brand-rule__preview::after {
    background: #22b35e;
}

.brand-rule__mark {
    width: 64px;
    height: 64px;
    background: var(--landing-blue);
}

.brand-rule__preview--space::before {
    content: "";
    position: absolute;
    width: 96px;
    height: 96px;
    border: 1px dashed var(--landing-blue);
    border-radius: 12px;
}

.brand-rule__preview--contrast {
    background: var(--landing-blue);
}

.brand-rule__preview--contrast .brand-rule__mark {
    background: #fff;
}

.brand-rule__preview--stretch .brand-rule__mark {
    transform: scale(1.7, .7);
}

.brand-rule__preview--recolor .brand-rule__mark {
    background: linear-gradient(135deg, #ff7ab8, #ffc978 50%, #3be08f);
}

.brand-rule__preview--effects .brand-rule__mark {
    filter: blur(2px) drop-shadow(6px 6px 0 #ff4444);
}

.brand-rule__preview--rotate .brand-rule__mark {
    transform: rotate(-28deg);
}

.brand-rule__text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 520px) {
    .brand-rules__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-rule__mark {
        width: 44px;
        height: 44px;
    }

    .brand-rule__text {
        font-size: 14px;
    }
}

/* Colors */

.brand-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.brand-color {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--yurba-border-color);
    border-radius: 24px;
    background: var(--yurba-main-color);
    color: var(--yurba-text-color);
    font: inherit;
    text-align: left;
    cursor: copy;
    transition: transform .15s;
}

.brand-color:hover {
    transform: translateY(-3px);
}

.brand-color__swatch {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 180px;
    padding: 14px;
    border-bottom: 1px solid var(--yurba-border-color);
    background: var(--brand-color);
}

.brand-color__copied {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}

.brand-color__copied .material-symbols-rounded {
    font-size: 16px;
}

.brand-color.is-copied .brand-color__copied {
    opacity: 1;
    transform: none;
}

.brand-color__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px 18px;
}

.brand-color__name {
    font-size: 18px;
    font-weight: 700;
}

.brand-color__value {
    font-size: 14px;
    opacity: .6;
}

/* Font */

.brand-font {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.brand-font__sample {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 24px;
    background: var(--landing-blue);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}

.brand-font__name {
    font-size: 15px;
    font-weight: 600;
    opacity: .75;
}

.brand-font__glyphs {
    font-size: 160px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -6px;
}

.brand-font__weights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: auto;
    font-size: 22px;
    line-height: 1.2;
}

.brand-font__weight--light {
    font-weight: 300;
}

.brand-font__weight--medium {
    font-weight: 500;
}

.brand-font__weight--bold {
    font-weight: 700;
}

.brand-font__about {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    border: 1px solid var(--yurba-border-color);
    border-radius: 24px;
}

.brand-font__alphabet {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.brand-font__text {
    font-size: 15px;
    line-height: 1.6;
    opacity: .75;
}

.brand-font__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

@media (max-width: 900px) {
    .brand-font {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .brand-font__sample,
    .brand-font__about {
        padding: 24px;
    }

    .brand-font__glyphs {
        font-size: 112px;
    }

    .brand-font__alphabet {
        font-size: 22px;
    }
}

/* Note */

.brand-note {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    padding: 48px;
    border-radius: 32px;
    background: var(--landing-blue);
    color: #fff;
}

.brand-note__star {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 280px;
    height: 280px;
    background: #ffffff1f;
    transform: rotate(-14deg);
}

.brand-note__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.brand-note__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.brand-note__text {
    max-width: 640px;
    font-size: 16px;
    line-height: 1.6;
    opacity: .85;
}

.brand-note__button {
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .brand-note__title {
        font-size: 30px;
    }
}

@media (max-width: 900px) {
    .brand-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 24px;
    }

    .brand-note__button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .brand-note__title {
        font-size: 26px;
    }
}
