/* ==========================================================================
   LinkTwin Brand Kit — /brand-kit (storage/themes/the25/pages/brand-kit.php)
   Same look as /home-6: Nunito Sans Black headlines, DM Sans text, the h6
   color tokens. All selectors are scoped under .bk-page.
   ========================================================================== */

@font-face {
    font-family: "Nunito Sans BK";
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url("../fonts/Nunito_Sans/nunito-sans-latin-900.woff2") format("woff2");
}

@font-face {
    font-family: "DM Sans BK";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/DM_Sans/dm-sans-v11-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "DM Sans BK";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/DM_Sans/dm-sans-v11-latin-700.woff2") format("woff2");
}

.bk-page {
    --bk-ink: #0d1b2e;
    --bk-body: #465366;
    --bk-muted: #6b7688;
    --bk-line: #dce3ec;
    --bk-paper: #ffffff;
    --bk-haze: #f1f5fa;
    --bk-blue: #0967f2;
    --bk-blue-deep: #0648b5;
    --bk-night: #0b1838;
    --bk-stop: #e5484d;
    --bk-stop-soft: #fdecec;
    --bk-go: #13a56b;
    --bk-go-soft: #e4f6ee;
    --bk-display: "Nunito Sans BK", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bk-text: "DM Sans BK", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bk-radius: 18px;

    overflow-x: clip;
    background: var(--bk-paper);
    color: var(--bk-body);
    font-family: var(--bk-text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bk-page *,
.bk-page *::before,
.bk-page *::after {
    box-sizing: border-box;
}

.bk-page h1,
.bk-page h2,
.bk-page h3 {
    margin: 0;
    color: var(--bk-ink);
    font-family: var(--bk-display);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bk-page p,
.bk-page figure {
    margin: 0;
}

.bk-page a {
    color: var(--bk-blue-deep);
}

.bk-page a:focus-visible,
.bk-page button:focus-visible,
.bk-page input:focus-visible {
    outline: 3px solid rgba(9, 103, 242, 0.45);
    outline-offset: 3px;
}

.bk-wrap {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

/* ---------- Buttons ---------- */

.bk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font: 700 1rem/1 var(--bk-text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}

.bk-btn .material-symbols-outlined {
    font-size: 20px;
}

.bk-page .bk-btn-primary {
    background: var(--bk-blue);
    color: #fff;
}

.bk-page .bk-btn-primary:hover {
    background: var(--bk-blue-deep);
    color: #fff;
}

.bk-page .bk-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.bk-page .bk-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.bk-page .bk-btn-outline {
    background: #fff;
    color: var(--bk-ink);
    box-shadow: inset 0 0 0 1px var(--bk-line);
}

.bk-btn-meta {
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.85rem;
    /* On a narrow phone the label wraps, never "ZIP · 15.3 MB" itself. */
    white-space: nowrap;
}

.bk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.bk-hero {
    position: relative;
    padding: clamp(48px, 7vw, 96px) 0 32px;
    overflow: hidden;
    background:
        radial-gradient(55% 65% at 82% 34%, rgba(9, 103, 242, 0.5), transparent 62%),
        radial-gradient(38% 46% at 6% 96%, rgba(225, 48, 108, 0.2), transparent 70%),
        linear-gradient(180deg, #0b1838 0%, #07102a 100%);
    color: rgba(255, 255, 255, 0.78);
}

.bk-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.bk-eyebrow {
    display: inline-block;
    margin-bottom: 18px !important;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(94, 224, 160, 0.14);
    color: #5ee0a0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bk-page .bk-display {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.bk-lead {
    max-width: 560px;
    margin-top: 20px !important;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.bk-hero-card {
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 3;
    padding: 12%;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.35);
}

.bk-hero-card img {
    width: 100%;
    height: auto;
}

.bk-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(40px, 6vw, 72px);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bk-page .bk-toc a {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.bk-page .bk-toc a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* ---------- Sections ---------- */

.bk-section {
    padding: clamp(56px, 8vw, 96px) 0;
    scroll-margin-top: 80px;
}

.bk-section-haze {
    background: var(--bk-haze);
}

.bk-section-tight {
    padding: 40px 0;
}

.bk-section-night {
    background: linear-gradient(180deg, #0b1838 0%, #07102a 100%);
    color: rgba(255, 255, 255, 0.78);
}

.bk-page .bk-section-night h2 {
    color: #fff;
}

.bk-head {
    max-width: 720px;
    margin-bottom: 36px;
}

.bk-page h2 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.bk-head p {
    margin-top: 12px !important;
    font-size: 1.08rem;
}

.bk-page h3 {
    font-size: 1.2rem;
}

.bk-page .bk-subhead {
    margin: 48px 0 18px;
    font-size: 1.35rem;
}

.bk-small {
    margin-top: 16px !important;
    color: var(--bk-muted);
    font-size: 0.92rem;
}

.bk-section-night .bk-small {
    color: rgba(255, 255, 255, 0.6);
}

.bk-footnote {
    margin-top: 20px !important;
    color: var(--bk-muted);
    font-size: 0.92rem;
}

/* ---------- Logo ---------- */

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

.bk-logo-card {
    overflow: hidden;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: #fff;
}

.bk-logo-stage {
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 1;
    padding: 10% 14%;
    background: #fff;
    border-bottom: 1px solid var(--bk-line);
}

.bk-logo-stage.is-dark {
    background: var(--bk-night);
    border-bottom-color: var(--bk-night);
}

.bk-logo-stage img {
    width: 100%;
    max-height: 100%;
}

.bk-logo-stage.is-icon img {
    width: auto;
    height: 80%;
}

.bk-logo-card figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 16px 20px;
}

.bk-logo-name {
    color: var(--bk-ink);
    font-weight: 700;
}

.bk-logo-note {
    color: var(--bk-muted);
    font-size: 0.9rem;
}

.bk-dl-row {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.bk-page .bk-dl-row a {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bk-haze);
    color: var(--bk-ink);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.bk-page .bk-dl-row a:hover {
    background: var(--bk-blue);
    color: #fff;
}

.bk-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.bk-rule-card {
    padding: 24px;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: #fff;
}

.bk-rule-card p,
.bk-rule-card ul {
    margin: 10px 0 0;
    font-size: 0.98rem;
}

.bk-rule-card ul {
    padding-left: 0;
    list-style: none;
}

.bk-rule-card li {
    position: relative;
    padding-left: 28px;
    margin-top: 8px;
}

.bk-rule-card li::before {
    position: absolute;
    left: 0;
    top: 0.05em;
    font-weight: 700;
}

.bk-rule-card.is-yes {
    border-color: rgba(19, 165, 107, 0.35);
}

.bk-rule-card.is-yes li::before {
    content: "✓";
    color: var(--bk-go);
}

.bk-rule-card.is-no {
    border-color: rgba(229, 72, 77, 0.35);
}

.bk-rule-card.is-no li::before {
    content: "✕";
    color: var(--bk-stop);
}

.bk-dont-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bk-dont-stage {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    padding: 10%;
    overflow: hidden;
    border: 1px solid var(--bk-line);
    border-radius: 14px;
    background: #fff;
}

.bk-dont-stage.is-dark {
    background: var(--bk-night);
}

.bk-dont-stage::after {
    content: "✕";
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bk-stop);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.bk-dont-stage img {
    width: 100%;
}

.bk-dont-stretch {
    transform: scaleX(0.6) scaleY(1.4);
}

.bk-dont-recolor {
    filter: hue-rotate(140deg) saturate(1.6);
}

.bk-dont-rotate {
    transform: rotate(-14deg);
}

.bk-dont figcaption {
    margin-top: 10px;
    color: var(--bk-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

/* ---------- Colors ---------- */

.bk-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bk-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: #fff;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.bk-swatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13, 27, 46, 0.1);
}

.bk-swatch-chip {
    display: block;
    width: 100%;
    height: 96px;
    border-bottom: 1px solid var(--bk-line);
}

.bk-swatch-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px 16px;
}

.bk-swatch-name {
    color: var(--bk-ink);
    font-weight: 700;
}

.bk-swatch-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
}

.bk-swatch-role {
    margin-top: 4px;
    color: var(--bk-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.bk-copied:not(:empty) {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bk-ink);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ---------- Type ---------- */

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

.bk-type-card {
    padding: 28px;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
}

.bk-type-sample {
    min-height: 3.2em;
    color: var(--bk-ink);
}

.bk-type-display {
    font-family: var(--bk-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.bk-type-text {
    font-size: 1.15rem;
    line-height: 1.5;
}

.bk-type-meta {
    margin: 20px 0 6px !important;
    padding-top: 16px;
    border-top: 1px solid var(--bk-line);
}

.bk-type-meta strong {
    color: var(--bk-ink);
}

/* ---------- Voice ---------- */

.bk-name-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 28px;
    border-radius: var(--bk-radius);
    background: #fff;
    border: 1px solid var(--bk-line);
}

.bk-name-card p {
    margin-top: 8px !important;
    max-width: 520px;
}

.bk-name-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bk-name-list li {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.bk-name-list .is-yes {
    background: var(--bk-go-soft);
    color: #0c7a4e;
}

.bk-name-list .is-yes::before {
    content: "✓ ";
}

.bk-name-list .is-no {
    background: var(--bk-stop-soft);
    color: #b4262b;
    text-decoration: line-through;
}

.bk-copy-list {
    display: grid;
    gap: 14px;
}

.bk-copy-list-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bk-copy-card {
    padding: 20px 22px;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: #fff;
}

.bk-copy-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.bk-copy-label {
    color: var(--bk-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bk-copy-card p {
    color: var(--bk-ink);
}

.bk-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--bk-haze);
    color: var(--bk-ink);
    font: 700 0.85rem/1 var(--bk-text);
    cursor: pointer;
}

.bk-copy-btn .material-symbols-outlined {
    font-size: 16px;
}

.bk-copy-btn:hover {
    background: var(--bk-line);
}

.bk-copy-btn.is-copied {
    background: var(--bk-go-soft);
    color: #0c7a4e;
}

.bk-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.bk-disclosure {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 18px 22px;
    border-radius: var(--bk-radius);
    background: rgba(9, 103, 242, 0.08);
    color: var(--bk-ink);
}

.bk-disclosure .material-symbols-outlined {
    color: var(--bk-blue);
}

/* ---------- Video ---------- */

.bk-video-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.bk-video-frame {
    max-width: 440px;
    width: 100%;
    justify-self: center;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.45);
    background: #000;
}

.bk-video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
}

.bk-video-grid h2 + p {
    margin-top: 14px;
    font-size: 1.08rem;
}

.bk-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.bk-spec li {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

/* ---------- Social posts ---------- */

.bk-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.bk-post-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--bk-line);
    transition: transform 0.15s, box-shadow 0.15s;
}

.bk-post-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--bk-line), 0 16px 34px rgba(13, 27, 46, 0.16);
}

.bk-post-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
}

.bk-post-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(11, 24, 56, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.bk-post figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.bk-post-title {
    color: var(--bk-ink);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.bk-post figcaption a {
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Story images ---------- */

.bk-story-how {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    margin-bottom: 48px;
    padding: clamp(20px, 4vw, 40px);
    border-radius: 24px;
    background: var(--bk-haze);
}

.bk-story-example img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    box-shadow: 0 0 0 6px #fff, 0 24px 48px rgba(13, 27, 46, 0.22);
}

.bk-story-steps {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bk-step;
}

.bk-story-steps li {
    position: relative;
    padding-left: 54px;
    counter-increment: bk-step;
}

.bk-story-steps li::before {
    content: counter(bk-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bk-blue);
    color: #fff;
    font-family: var(--bk-display);
    font-weight: 900;
}

.bk-story-steps p {
    margin-top: 4px !important;
}

.bk-story-link-label {
    margin: 28px 0 8px !important;
    color: var(--bk-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.bk-story-how .bk-link-box input {
    background: #fff;
}

.bk-story-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

.bk-post-thumb.bk-story-thumb img {
    aspect-ratio: 9 / 16;
}

.bk-story-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.bk-page .bk-post figcaption .bk-story-dl a {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bk-haze);
    color: var(--bk-ink);
    font-size: 0.8rem;
    white-space: nowrap;
}

.bk-page .bk-post figcaption .bk-story-dl a:hover {
    background: var(--bk-blue);
    color: #fff;
}

/* ---------- Your link ---------- */

.bk-link-card {
    display: grid;
    gap: 20px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--bk-line);
}

.bk-link-card p {
    margin-top: 10px !important;
    max-width: 640px;
}

.bk-link-card .bk-hero-actions {
    margin-top: 0;
}

.bk-link-box {
    display: flex;
    gap: 10px;
    max-width: 640px;
}

.bk-link-box input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--bk-line);
    border-radius: 12px;
    background: var(--bk-haze);
    color: var(--bk-ink);
    font: 400 1rem var(--bk-text);
}

.bk-page .bk-link-box .bk-copy-btn {
    padding: 0 22px;
    background: var(--bk-blue);
    color: #fff;
    font-size: 1rem;
}

.bk-page .bk-link-box .bk-copy-btn.is-copied {
    background: var(--bk-go);
}

.bk-page .bk-text-link {
    font-weight: 700;
    text-decoration: none;
}

.bk-contact {
    text-align: center;
    color: var(--bk-muted);
}

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

@media (max-width: 991px) {
    .bk-hero-grid,
    .bk-video-grid {
        grid-template-columns: 1fr;
    }

    .bk-hero-card {
        max-width: 480px;
        aspect-ratio: 5 / 2;
        padding: 8%;
    }

    .bk-swatch-grid,
    .bk-post-grid,
    .bk-story-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bk-rules {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .bk-page {
        font-size: 16px;
    }

    .bk-logo-grid,
    .bk-type-grid,
    .bk-two-col,
    .bk-copy-list-2 {
        grid-template-columns: 1fr;
    }

    .bk-swatch-grid,
    .bk-post-grid,
    .bk-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .bk-story-grid {
        row-gap: 24px;
    }

    .bk-story-how {
        grid-template-columns: 1fr;
    }

    .bk-story-example {
        max-width: 220px;
        margin: 0 auto;
    }

    .bk-swatch-chip {
        height: 64px;
    }

    .bk-link-box {
        flex-direction: column;
    }

    .bk-btn {
        justify-content: center;
    }
}
