:root {
    --tpc-blush: #ffb3ba;
    --tpc-rose: #ffc7ce;
    --tpc-hot: #ff69b4;
    --tpc-paper: #fffbfc;
    --tpc-ink: #3d1224;
    --tpc-ink-soft: #6a3144;
    --tpc-line: #f3d5dc;
    --tpc-header-h: 84px;
    --tpc-page-w: 1120px;
    --tpc-space: 1.25rem;
    --tpc-font-head: "Abril Fatface", Georgia, serif;
    --tpc-font-body: "Crimson Text", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

html { scroll-padding-top: var(--tpc-header-h); }

body {
    padding-top: var(--tpc-header-h);
    background: var(--tpc-paper);
    color: var(--tpc-ink);
    font-family: var(--tpc-font-body);
    font-size: 1.2rem;
    line-height: 1.55;
}

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

a:not(.tpc-btn) {
    color: var(--tpc-ink);
    text-decoration: none;
    position: relative;
}

a:not(.tpc-btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--tpc-hot);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

a:not(.tpc-btn):hover::after { transform: scaleX(1); }

.tpc-header a::after,
.tpc-drawer a::after,
.tpc-footer a::after { display: none; }

h1, h2, h3 {
    font-family: var(--tpc-font-head);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.6rem;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }

h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

p { margin: 0 0 0.9rem; }

.tpc-u-wrap {
    width: min(var(--tpc-page-w), calc(100% - 40px));
    margin-inline: auto;
}

.tpc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--tpc-header-h);
    background: var(--tpc-paper);
    box-shadow: 0 2px 8px rgba(61, 18, 36, 0.08);
}

.tpc-header__row {
    min-height: var(--tpc-header-h);
    display: flex;
    align-items: center;
    gap: 18px;
}

.tpc-header__logo {
    display: block;
    flex: 0 0 auto;
}

.tpc-header__logo img {
    width: 180px;
    height: auto;
    display: block;
}

.tpc-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 8px;
}

.tpc-nav a {
    font-family: var(--tpc-font-body);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--tpc-ink);
}

.tpc-header__cta { margin-left: auto; }

.tpc-burger {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--tpc-ink);
    border-radius: 999px;
    background: var(--tpc-paper);
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}

.tpc-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--tpc-ink);
}

.tpc-btn {
    position: relative;
    overflow: hidden;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    border: 2px solid var(--tpc-ink);
    background: transparent;
    color: var(--tpc-ink);
    font-family: var(--tpc-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.tpc-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--tpc-hot);
    transform: translateX(-102%);
    transition: transform 0.28s ease;
    z-index: -1;
}

.tpc-btn:hover::before,
.tpc-btn:focus-visible::before { transform: translateX(0); }

.tpc-btn:focus-visible {
    outline: 2px solid var(--tpc-ink);
    outline-offset: 3px;
}

.tpc-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(61, 18, 36, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.tpc-drawer {
    display: block;
    position: fixed;
    z-index: 210;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(85vw, 400px);
    padding: 72px 0 24px;
    background: var(--tpc-paper);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s;
}

.tpc-drawer a {
    display: block;
    padding: 14px 24px;
    color: var(--tpc-ink);
    font-weight: 600;
}

.tpc-drawer__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--tpc-rose);
    color: var(--tpc-ink);
    font-size: 1.6rem;
    cursor: pointer;
}

body.tpc-nav-open { overflow: hidden; }

body.tpc-nav-open .tpc-overlay {
    opacity: 1;
    visibility: visible;
}

body.tpc-nav-open .tpc-drawer {
    visibility: visible;
    transform: translateX(0);
}

.tpc-hero {
    background:
        radial-gradient(circle at 12% 20%, var(--tpc-rose), transparent 42%),
        radial-gradient(circle at 88% 0%, var(--tpc-blush), transparent 36%),
        var(--tpc-paper);
    padding: 2.5rem 0 2rem;
}

.tpc-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: end;
}

.tpc-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 1.2rem 0;
}

.tpc-figure {
    background: #fff;
    border-radius: 28px;
    padding: 0.8rem 0.7rem;
    border: 1.5px solid var(--tpc-line);
    min-width: 0;
}

.tpc-figure strong {
    display: block;
    font-family: var(--tpc-font-head);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 400;
}

.tpc-figure span {
    display: block;
    color: var(--tpc-ink-soft);
    font-size: 0.95rem;
}

.tpc-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tpc-mosaic img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 28px;
    display: block;
}

.tpc-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding: 1.5rem 0 2.5rem;
}

.tpc-tile { min-width: 0; }

.tpc-span-6 { grid-column: span 6; }
.tpc-span-4 { grid-column: span 4; }
.tpc-span-3 { grid-column: span 3; }
.tpc-span-2 { grid-column: span 2; }

.tpc-card {
    background: #fff;
    border-radius: 28px;
    border: 1.5px solid var(--tpc-line);
    padding: 1.2rem 1.25rem 1.3rem;
    min-width: 0;
}

.tpc-card[data-state="quiet"] { background: #fff7f8; }

.tpc-bar {
    display: grid;
    grid-template-columns: 9.5rem 1fr auto;
    gap: 10px;
    align-items: center;
    margin: 0.7rem 0;
    min-width: 0;
}

.tpc-bar__track {
    height: 12px;
    background: var(--tpc-rose);
    border-radius: 999px;
    overflow: hidden;
}

.tpc-bar__fill {
    display: block;
    height: 100%;
    background: var(--tpc-hot);
    border-radius: 999px;
}

.tpc-rank {
    display: grid;
    gap: 16px;
}

.tpc-rank__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "pos pos"
        "icon name"
        "icon dev"
        "copy copy"
        "facts facts"
        "still still"
        "actions actions";
    gap: 6px 14px;
    background: #fff;
    border: 1.5px solid var(--tpc-line);
    border-radius: 28px;
    padding: 1rem;
    min-width: 0;
}

.tpc-rank__pos { grid-area: pos; letter-spacing: 0.08em; font-weight: 600; margin: 0; }
.tpc-rank__icon { grid-area: icon; width: 96px; height: 96px; object-fit: contain; border-radius: 22px; }
.tpc-rank__name { grid-area: name; align-self: end; }
.tpc-rank__dev { grid-area: dev; margin: 0; color: var(--tpc-ink-soft); }
.tpc-rank__desc { grid-area: copy; }
.tpc-rank__facts { grid-area: facts; margin: 0; overflow-wrap: anywhere; }
.tpc-rank__still {
    grid-area: still;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: contain;
    background: #fff7f8;
    border-radius: 28px;
    display: block;
    margin-inline: auto;
}
.tpc-rank__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }

.tpc-criteria {
    display: grid;
    gap: 10px;
}

.tpc-criteria article {
    border-radius: 28px;
    background: #fff;
    border: 1.5px solid var(--tpc-line);
    padding: 0.9rem 1rem;
}

.tpc-table-wrap { overflow-x: auto; }

.tpc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.tpc-table th,
.tpc-table td {
    text-align: left;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--tpc-line);
    vertical-align: top;
}

.tpc-cta {
    background: var(--tpc-blush);
    padding: 2.2rem 0;
}

.tpc-footer {
    background: var(--tpc-ink);
    color: #fff6f8;
    text-align: center;
    padding: 2rem 0 2.4rem;
}

.tpc-footer a { color: #fff6f8; }

.tpc-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 0.8rem 0 1rem;
}

.tpc-footer__links button {
    background: none;
    border: 0;
    color: #fff6f8;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

.tpc-footer img { width: 160px; margin: 0 auto 0.6rem; }

.tpc-cookie { display: none; }

.tpc-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    gap: 12px;
    align-items: center;
    background: var(--tpc-ink);
    color: #fff6f8;
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
}

.tpc-cookie p { margin: 0; font-size: 0.98rem; }

.tpc-cookie a { color: #fff6f8; }

.tpc-cookie .tpc-btn {
    border-color: #fff6f8;
    color: var(--tpc-ink);
    background: #fff6f8;
    border-radius: 999px;
    box-shadow: none;
    min-width: 44px;
}

.tpc-cookie .tpc-btn::before { display: none; }

body.tpc-cookie-open { padding-bottom: 88px; }

.tpc-page { padding: 2rem 0 3rem; }

.tpc-page .tpc-u-wrap { max-width: 760px; }

.tpc-feed { list-style: none; padding: 0; margin: 0; }

.tpc-feed li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--tpc-line);
}

.tpc-feed time { display: block; color: var(--tpc-ink-soft); font-size: 0.95rem; }

.tpc-steps { padding-left: 1.2rem; }

.tpc-steps li { margin-bottom: 1rem; }

.tpc-steps h2 { margin-top: 0.2rem; }

.tpc-back { font-weight: 600; }

.tpc-timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--tpc-hot); }

.tpc-timeline li { padding: 0 0 1.2rem 1rem; }

.tpc-form {
    display: grid;
    gap: 10px;
}

.tpc-form label { font-weight: 600; }

.tpc-form input,
.tpc-form textarea {
    width: 100%;
    border: 1.5px solid var(--tpc-ink);
    border-radius: 28px;
    padding: 0.7rem 0.9rem;
    font: inherit;
    background: #fff;
    color: var(--tpc-ink);
}

.tpc-form textarea { min-height: 140px; border-radius: 20px; }

.tpc-note {
    background: #fff;
    border-radius: 28px;
    border: 1.5px solid var(--tpc-hot);
    padding: 0.8rem 1rem;
}

.tpc-alpha { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5rem 0 1rem; }

.tpc-alpha a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tpc-rose);
}

.tpc-dl { margin: 0; }

.tpc-dl div { padding: 0.45rem 0; border-bottom: 1px solid var(--tpc-line); }

.tpc-dl dt { font-weight: 600; }

.tpc-dl dd { margin: 0.15rem 0 0; }

.tpc-reveal {
    animation: tpc-blur-in 0.6s ease both;
}

@keyframes tpc-blur-in {
    from { opacity: 0; filter: blur(8px); }
    to { opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .tpc-reveal { animation: none; }
    .tpc-btn::before,
    a:not(.tpc-btn)::after,
    .tpc-drawer,
    .tpc-overlay { transition: none; }
}

@media (max-width: 900px) {
    .tpc-hero__grid { grid-template-columns: 1fr; }
    .tpc-span-4,
    .tpc-span-3,
    .tpc-span-2 { grid-column: span 6; }
}

@media (max-width: 768px) {
    :root { --tpc-header-h: 72px; }
    .tpc-header__logo img { width: 120px; }
    .tpc-nav { display: none; }
    .tpc-header__cta { margin-left: auto; }
    .tpc-figures { grid-template-columns: 1fr; }
    .tpc-rank__item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "pos"
            "icon"
            "name"
            "dev"
            "copy"
            "facts"
            "still"
            "actions";
    }
    .tpc-rank__actions .tpc-btn { width: 100%; }
    .tpc-bar { grid-template-columns: 1fr; }
    .tpc-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        border-radius: 28px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .tpc-mosaic { grid-template-columns: 1fr; }
}
