/*
 * Brand Assets — page-local styles.
 *
 * Everything is scoped under `.tgdb-page`, the same approach as the Hire an
 * Expert page: the legacy theme sets `html { font-size: 10px }` and styles bare
 * headings, paragraphs, and lists globally, so the page pins its own base and
 * neutralizes those element styles with zero-specificity `:where()` resets.
 *
 * Palette is the TGD brand palette documented on the page itself.
 */

.tgdb-page {
    --tgdb-purple: #630ed4;
    --tgdb-purple-deep: #4a09a3;
    --tgdb-purple-tint: #f3ecff;
    --tgdb-yellow: #fbcc34;
    --tgdb-onyx: #0f172a;
    --tgdb-cream: #fff5d3;
    --tgdb-cream-soft: #fffaeb;

    --tgdb-ink: #0f172a;
    --tgdb-ink-soft: #55607a;
    --tgdb-line: #e7e3ef;
    --tgdb-surface: #ffffff;
    --tgdb-bg: #fcfbf8;

    --tgdb-ok: #0f9d58;
    --tgdb-no: #e5383b;

    --tgdb-shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
    --tgdb-shadow-md: 0 18px 44px rgba(60, 20, 120, .10);
    --tgdb-shadow-lg: 0 30px 70px rgba(60, 20, 120, .16);

    --tgdb-radius: 20px;
    --tgdb-radius-lg: 28px;
    --tgdb-section-y: 96px;
    --tgdb-gutter: 24px;

    position: relative;
    min-width: 320px;
    background: var(--tgdb-bg);
    color: var(--tgdb-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    /* `clip`, not `hidden`: hidden would turn the page into its own scroll
       box and stop the sticky story intro from sticking. Browsers without
       `clip` (Safari 15 and older) keep `hidden`, so they never scroll
       sideways; the intro just doesn't stick there. */
    overflow-x: hidden;
    overflow-x: clip;
}

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

html:has(.tgdb-page) {
    scroll-behavior: smooth;
}

.tgdb-page :where(h1, h2, h3, h4) {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-transform: none;
}

.tgdb-page :where(p) {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.tgdb-page :where(ul, ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tgdb-page :where(li) {
    margin: 0;
    padding: 0;
    color: inherit;
    list-style: none;
}

.tgdb-page :where(li)::marker {
    content: "";
}

.tgdb-page :where(a) {
    text-decoration: none;
}

.tgdb-page :where(button) {
    font: inherit;
    color: inherit;
}

.tgdb-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.tgdb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--tgdb-gutter);
}

.tgdb-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

/* ── Shared type ──────────────────────────────────────────────────────── */

.tgdb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--tgdb-purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tgdb-eyebrow::before {
    content: "";
    width: 22px;
    height: 4px;
    border-radius: 4px;
    background: var(--tgdb-yellow);
}

.tgdb-page h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.tgdb-page h3 {
    font-size: 18px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.tgdb-lede {
    max-width: 580px;
    margin-top: 16px;
    color: var(--tgdb-ink-soft);
    font-size: 18px;
}

.tgdb-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 24px;
    color: var(--tgdb-purple);
    font-weight: 700;
}

.tgdb-link:hover {
    color: var(--tgdb-purple-deep);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.tgdb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.tgdb-btn:hover {
    transform: translateY(-2px);
}

.tgdb-btn--primary {
    background: var(--tgdb-purple);
    color: #fff;
    box-shadow: 0 12px 28px rgba(99, 14, 212, .28);
}

.tgdb-btn--primary:hover {
    background: var(--tgdb-purple-deep);
    color: #fff;
}

.tgdb-btn--ghost {
    border-color: var(--tgdb-line);
    background: var(--tgdb-surface);
    color: var(--tgdb-ink);
}

.tgdb-btn--ghost:hover {
    border-color: var(--tgdb-purple);
    color: var(--tgdb-purple);
}

.tgdb-btn--dark {
    background: var(--tgdb-onyx);
    color: #fff;
}

.tgdb-btn--dark:hover {
    background: var(--tgdb-purple);
    color: #fff;
}

.tgdb-btn--yellow {
    background: var(--tgdb-yellow);
    color: var(--tgdb-onyx);
}

.tgdb-btn--yellow:hover {
    background: #ffd95c;
    color: var(--tgdb-onyx);
}

.tgdb-btn--outline-light {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.tgdb-btn--outline-light:hover {
    border-color: #fff;
    color: #fff;
}

.tgdb-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--tgdb-line);
    border-radius: 999px;
    background: var(--tgdb-surface);
    color: var(--tgdb-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.tgdb-download:hover,
.tgdb-download--solid {
    border-color: var(--tgdb-purple);
    background: var(--tgdb-purple);
    color: #fff;
}

.tgdb-download--solid:hover {
    border-color: var(--tgdb-purple-deep);
    background: var(--tgdb-purple-deep);
    color: #fff;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.tgdb-hero {
    position: relative;
    padding: 72px 0 40px;
    background:
        radial-gradient(900px 480px at 88% 10%, rgba(251, 204, 52, .22), transparent 60%),
        radial-gradient(700px 420px at 0% 0%, rgba(99, 14, 212, .08), transparent 60%),
        linear-gradient(180deg, var(--tgdb-cream-soft) 0%, var(--tgdb-bg) 100%);
}

.tgdb-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.tgdb-hero h1 {
    font-size: clamp(38px, 5.2vw, 64px);
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.tgdb-hero__accent {
    display: block;
    color: var(--tgdb-purple);
}

.tgdb-hero__lede {
    max-width: 500px;
    margin-top: 22px;
    color: var(--tgdb-ink-soft);
    font-size: 19px;
}

.tgdb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.tgdb-hero__meta {
    margin-top: 16px;
    color: var(--tgdb-ink-soft);
    font-size: 13px;
}

.tgdb-hero__visual {
    position: relative;
    padding: 40px 0 36px 28px;
}

.tgdb-hero__photo {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    border-radius: var(--tgdb-radius-lg);
    box-shadow: var(--tgdb-shadow-lg);
}

.tgdb-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
}

.tgdb-hero__badge {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(260px, 58%);
    padding: 20px 24px;
    border-radius: var(--tgdb-radius);
    background: var(--tgdb-surface);
    box-shadow: var(--tgdb-shadow-md);
}

.tgdb-hero__orbit {
    position: absolute;
    top: -4px;
    right: -12px;
    width: min(380px, 72%);
    color: var(--tgdb-yellow);
    fill: var(--tgdb-yellow);
    pointer-events: none;
}

.tgdb-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}

.tgdb-jump a {
    padding: 9px 16px;
    border: 1px solid var(--tgdb-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: var(--tgdb-ink);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, color .2s ease;
}

.tgdb-jump a:hover {
    border-color: var(--tgdb-purple);
    color: var(--tgdb-purple);
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.tgdb-section {
    padding: var(--tgdb-section-y) 0;
    scroll-margin-top: 90px;
}

.tgdb-section--tint {
    background: var(--tgdb-purple-tint);
}

.tgdb-section--cream {
    background: var(--tgdb-cream-soft);
}

.tgdb-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.tgdb-subhead {
    margin: 64px 0 20px;
}

/* ── Story ────────────────────────────────────────────────────────────── */

.tgdb-story {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.tgdb-story__intro {
    position: sticky;
    top: 110px;
}

.tgdb-timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.tgdb-timeline__item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--tgdb-line);
    border-radius: var(--tgdb-radius);
    background: var(--tgdb-surface);
    box-shadow: var(--tgdb-shadow-sm);
}

.tgdb-timeline__step {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tgdb-cream);
    color: var(--tgdb-purple);
    font-size: 18px;
    font-weight: 800;
}

.tgdb-timeline__item p {
    margin-top: 6px;
    color: var(--tgdb-ink-soft);
}

/* The mission statement: the one purple block in the story, so it reads first. */
.tgdb-mission {
    margin-top: 28px;
    padding: 26px 28px 28px;
    border-radius: var(--tgdb-radius);
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(251, 204, 52, .22), transparent 60%),
        linear-gradient(135deg, var(--tgdb-purple) 0%, var(--tgdb-purple-deep) 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(99, 14, 212, .22);
}

/* Four growing dots, echoing the orbit circles in the logo. */
.tgdb-mission__dots {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}

.tgdb-mission__dots i {
    display: block;
    border-radius: 50%;
    background: var(--tgdb-yellow);
}

.tgdb-mission__dots i:nth-child(1) { width: 6px; height: 6px; }
.tgdb-mission__dots i:nth-child(2) { width: 8px; height: 8px; }
.tgdb-mission__dots i:nth-child(3) { width: 10px; height: 10px; }
.tgdb-mission__dots i:nth-child(4) { width: 12px; height: 12px; }

.tgdb-mission__label {
    color: var(--tgdb-yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tgdb-mission__text {
    margin-top: 8px;
    font-size: clamp(21px, 2.3vw, 27px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ── The mark ─────────────────────────────────────────────────────────── */

.tgdb-mark {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.tgdb-mark__points {
    display: grid;
    gap: 22px;
    margin-top: 32px;
}

.tgdb-mark__points li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    align-items: start;
}

.tgdb-mark__points p {
    margin-top: 4px;
    color: var(--tgdb-ink-soft);
}

.tgdb-mark__key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--tgdb-surface);
    box-shadow: var(--tgdb-shadow-sm);
}

.tgdb-mark__key--dots i {
    display: block;
    border-radius: 50%;
    background: var(--tgdb-yellow);
}

.tgdb-mark__key--dots i:nth-child(1) { width: 5px; height: 5px; }
.tgdb-mark__key--dots i:nth-child(2) { width: 7px; height: 7px; }
.tgdb-mark__key--dots i:nth-child(3) { width: 9px; height: 9px; }
.tgdb-mark__key--dots i:nth-child(4) { width: 11px; height: 11px; }

.tgdb-mark__key--arc::before {
    content: "";
    width: 30px;
    height: 16px;
    border: 4px solid var(--tgdb-yellow);
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-20deg);
}

.tgdb-mark__key--type {
    color: var(--tgdb-onyx);
    font-size: 20px;
    font-weight: 900;
}

.tgdb-mark__stage {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / .8;
    padding: 12%;
    border-radius: var(--tgdb-radius-lg);
    background:
        radial-gradient(circle at 70% 20%, rgba(251, 204, 52, .25), transparent 55%),
        var(--tgdb-surface);
    box-shadow: var(--tgdb-shadow-md);
}

/* ── Logo cards ───────────────────────────────────────────────────────── */

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

.tgdb-logo-card {
    overflow: hidden;
    border: 1px solid var(--tgdb-line);
    border-radius: var(--tgdb-radius);
    background: var(--tgdb-surface);
    transition: box-shadow .25s ease, transform .25s ease;
}

.tgdb-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tgdb-shadow-md);
}

.tgdb-logo-card__preview {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    padding: 12% 16%;
}

.tgdb-logo-card__preview img {
    max-height: 100%;
    width: auto;
}

.tgdb-logo-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid var(--tgdb-line);
}

.tgdb-logo-card__body p {
    margin-top: 2px;
    color: var(--tgdb-ink-soft);
    font-size: 14px;
}

.tgdb-surface--light {
    background:
        linear-gradient(45deg, #f7f6fa 25%, transparent 25%, transparent 75%, #f7f6fa 75%),
        linear-gradient(45deg, #f7f6fa 25%, #ffffff 25%, #ffffff 75%, #f7f6fa 75%);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.tgdb-surface--cream {
    background: var(--tgdb-cream);
}

.tgdb-surface--onyx {
    background: var(--tgdb-onyx);
}

.tgdb-surface--yellow {
    background: var(--tgdb-yellow);
}

.tgdb-surface--purple {
    background: var(--tgdb-purple);
}

/* ── Sub-brands ───────────────────────────────────────────────────────── */

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

.tgdb-sub {
    padding: 24px;
    border-radius: var(--tgdb-radius-lg);
    background: var(--tgdb-surface);
    box-shadow: var(--tgdb-shadow-sm);
}

.tgdb-sub__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.tgdb-sub__head p {
    margin-top: 4px;
    color: var(--tgdb-ink-soft);
    font-size: 14px;
}

/* Two or three versions per sub-brand; wraps to fewer columns on phones. */
.tgdb-sub__logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.tgdb-sub__visit {
    display: inline-flex;
    gap: 6px;
    margin-top: 8px;
    color: var(--tgdb-purple);
    font-size: 14px;
    font-weight: 700;
}

.tgdb-sub__visit:hover {
    color: var(--tgdb-purple-deep);
}

.tgdb-sub__logo .tgdb-logo-card__preview {
    aspect-ratio: 4 / 3;
    padding: 10%;
    border-radius: 14px;
}

.tgdb-sub__file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 4px;
    color: var(--tgdb-ink);
    font-size: 14px;
    font-weight: 600;
}

.tgdb-sub__file .tgdb-icon {
    width: 16px;
    height: 16px;
    color: var(--tgdb-purple);
}

.tgdb-sub__file:hover {
    color: var(--tgdb-purple);
}

/* ── Usage rules ──────────────────────────────────────────────────────── */

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

.tgdb-rule {
    padding: 24px;
    border: 1px solid var(--tgdb-line);
    border-radius: var(--tgdb-radius);
    background: var(--tgdb-surface);
}

.tgdb-rule p {
    margin-top: 6px;
    color: var(--tgdb-ink-soft);
}

.tgdb-rule__demo {
    display: grid;
    place-items: center;
    height: 220px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--tgdb-cream-soft);
}

.tgdb-space {
    position: relative;
    width: 250px;
    padding: 30px;
    border: 1.5px dashed var(--tgdb-purple);
    background: repeating-linear-gradient(45deg, rgba(99, 14, 212, .06) 0 6px, transparent 6px 12px);
}

.tgdb-space img {
    position: relative;
    background: var(--tgdb-cream-soft);
}

.tgdb-space__x {
    position: absolute;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tgdb-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.tgdb-space__x--top { top: 4px; left: 50%; transform: translateX(-50%); }
.tgdb-space__x--bottom { bottom: 4px; left: 50%; transform: translateX(-50%); }
.tgdb-space__x--left { left: 4px; top: 50%; transform: translateY(-50%); }
.tgdb-space__x--right { right: 4px; top: 50%; transform: translateY(-50%); }

.tgdb-size {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 120px;
}

.tgdb-size__measure {
    position: relative;
    width: 100%;
    padding-top: 10px;
    border-top: 1.5px solid var(--tgdb-purple);
    color: var(--tgdb-purple);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.tgdb-size__measure::before,
.tgdb-size__measure::after {
    content: "";
    position: absolute;
    top: -6px;
    width: 1.5px;
    height: 11px;
    background: var(--tgdb-purple);
}

.tgdb-size__measure::before { left: 0; }
.tgdb-size__measure::after { right: 0; }

.tgdb-donts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tgdb-dont p {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.tgdb-dont__demo {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 12% 20%;
    border: 1px solid var(--tgdb-line);
    border-radius: 14px;
    background: var(--tgdb-surface);
}

.tgdb-dont__mark {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tgdb-no);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.tgdb-dont__demo--stretch img { transform: scale(1.35, .7); }
.tgdb-dont__demo--rotate img { transform: rotate(-14deg); }
.tgdb-dont__demo--recolor img { filter: hue-rotate(150deg) saturate(1.6); }
.tgdb-dont__demo--effects img { filter: drop-shadow(4px 6px 0 #630ed4) drop-shadow(0 0 12px rgba(251, 204, 52, .9)); }

.tgdb-dont__demo--busy {
    background:
        repeating-linear-gradient(45deg, #fbcc34 0 10px, #630ed4 10px 20px, #41a8f5 20px 30px);
}

.tgdb-dont__demo--contrast {
    background: var(--tgdb-onyx);
}

/* ── Colors ──────────────────────────────────────────────────────────── */

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

.tgdb-swatch {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--tgdb-line);
    border-radius: var(--tgdb-radius);
    background: var(--tgdb-surface);
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tgdb-swatch:hover,
.tgdb-swatch:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--tgdb-shadow-md);
}

.tgdb-swatch__chip {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 180px;
    padding: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tgdb-swatch__chip--light { color: rgba(255, 255, 255, .85); }
.tgdb-swatch__chip--dark { color: rgba(15, 23, 42, .7); }

.tgdb-swatch__copy {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    letter-spacing: .06em;
    opacity: 0;
    transition: opacity .2s ease;
}

.tgdb-swatch__chip--dark .tgdb-swatch__copy {
    background: rgba(15, 23, 42, .08);
}

.tgdb-swatch:hover .tgdb-swatch__copy,
.tgdb-swatch:focus-visible .tgdb-swatch__copy {
    opacity: 1;
}

.tgdb-swatch__body {
    display: grid;
    gap: 6px;
    padding: 18px 18px 20px;
}

.tgdb-swatch__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tgdb-swatch__codes {
    display: grid;
    color: var(--tgdb-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.tgdb-swatch__meaning {
    color: var(--tgdb-ink-soft);
    font-size: 13px;
    font-style: italic;
}

.tgdb-accents {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: var(--tgdb-radius);
    background: var(--tgdb-surface);
}

.tgdb-accents__label {
    font-weight: 800;
}

.tgdb-accents__label span {
    display: block;
    color: var(--tgdb-ink-soft);
    font-size: 13px;
    font-weight: 500;
}

.tgdb-accents__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tgdb-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--tgdb-line);
    border-radius: 999px;
    background: var(--tgdb-surface);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s ease;
}

.tgdb-accent:hover,
.tgdb-accent:focus-visible {
    border-color: var(--tgdb-purple);
}

.tgdb-accent__dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.tgdb-accent__name {
    font-weight: 600;
}

.tgdb-accent__hex {
    color: var(--tgdb-ink-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Name & voice ─────────────────────────────────────────────────────── */

.tgdb-voice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
}

.tgdb-name__list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.tgdb-name__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--tgdb-line);
    border-radius: 14px;
    background: var(--tgdb-surface);
    font-size: 17px;
    font-weight: 700;
}

.tgdb-name__item small {
    color: var(--tgdb-ink-soft);
    font-size: 13px;
    font-weight: 500;
}

.tgdb-name__item--no > span:last-child {
    color: var(--tgdb-ink-soft);
    text-decoration: line-through;
    text-decoration-color: var(--tgdb-no);
}

.tgdb-name__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.tgdb-name__item--ok .tgdb-name__icon { background: var(--tgdb-ok); }
.tgdb-name__item--no .tgdb-name__icon { background: var(--tgdb-no); }

.tgdb-tone__list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.tgdb-tone__item {
    padding: 22px 24px;
    border-left: 4px solid var(--tgdb-yellow);
    border-radius: 0 16px 16px 0;
    background: var(--tgdb-cream-soft);
}

.tgdb-tone__item p {
    margin-top: 6px;
    color: var(--tgdb-ink-soft);
}

/* ── Closing CTA ──────────────────────────────────────────────────────── */

.tgdb-cta {
    padding: 0 0 var(--tgdb-section-y);
}

.tgdb-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tgdb-cta__inner > div:first-child {
    flex: 1;
}

.tgdb-cta .tgdb-container {
    max-width: 1152px;
    padding: 56px;
    border-radius: var(--tgdb-radius-lg);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(251, 204, 52, .25), transparent 60%),
        linear-gradient(135deg, var(--tgdb-purple) 0%, var(--tgdb-purple-deep) 100%);
    color: #fff;
}

.tgdb-cta h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.tgdb-cta p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .8);
    font-size: 17px;
}

.tgdb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Copy toast ───────────────────────────────────────────────────────── */

.tgdb-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 50;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--tgdb-onyx);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--tgdb-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
}

.tgdb-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .tgdb-swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tgdb-sub-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .tgdb-page {
        --tgdb-section-y: 72px;
    }

    .tgdb-hero {
        padding-top: 48px;
    }

    .tgdb-hero__grid,
    .tgdb-story,
    .tgdb-mark,
    .tgdb-voice {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .tgdb-story__intro {
        position: static;
    }

    .tgdb-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .tgdb-page {
        --tgdb-section-y: 56px;
        --tgdb-gutter: 16px;
    }

    .tgdb-hero__actions .tgdb-btn {
        width: 100%;
    }

    .tgdb-hero__visual {
        padding-left: 12px;
    }

    .tgdb-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tgdb-logo-grid,
    .tgdb-rules {
        grid-template-columns: minmax(0, 1fr);
    }

    .tgdb-donts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tgdb-swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tgdb-swatch__chip {
        height: 110px;
    }

    .tgdb-timeline__item {
        grid-template-columns: 44px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .tgdb-timeline__step {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .tgdb-cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tgdb-cta .tgdb-container {
        padding: 32px 24px;
    }

    .tgdb-cta__actions,
    .tgdb-cta__actions .tgdb-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.tgdb-page) {
        scroll-behavior: auto;
    }

    .tgdb-page *,
    .tgdb-page *::before,
    .tgdb-page *::after {
        transition: none !important;
    }
}
