/* ==========================================================================
   Play Fun Pte. Ltd. — playfun123.com
   Structure mirrors a tight single-page studio site: fixed accent bar,
   full-bleed key-art slideshow, uppercase display section heads,
   alternating game cards, accent footer.
   Type: Dela Gothic One (display) + Inter (text). Accent: arcade yellow.
   Signature: manga screentone — a halftone dot field that bleeds in from one
   corner of every accent surface (and behind the hero headline).
   ========================================================================== */

:root {
    --fun: #FFC400;
    --fun-deep: #E9B200;
    --ink: #0F0F14;
    --mute: #55555F;
    --paper: #FFFFFF;
    --sakura: #FF3E7F;
    --chip: #EDEDEA;
    --chip-deep: #DFDFDA;
    --header-height: 70px;

    --display: 'Dela Gothic One', 'Inter', system-ui, sans-serif;
    --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
}

@media (max-width: 480px) {
    :root { --header-height: 55px; }
}

@media (max-width: 360px) {
    :root { --header-height: 50px; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--text);
    color: var(--ink);
    text-align: center;
    padding-top: var(--header-height);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--sakura);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------- header -- */

.header {
    background-color: var(--fun);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 40px;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--ink);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.logo-mark svg {
    width: 13px;
    height: 15px;
    fill: var(--fun);
    transform: translateX(1px);
}

.logo-word {
    font-family: var(--display);
    font-size: 21px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.logo-word span { color: var(--sakura); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--sakura);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
    width: 100%;
}

.header.scrolled {
    padding: 10px 40px;
    background-color: rgba(255, 196, 0, 0.95);
    box-shadow: 0 2px 10px rgba(15, 15, 20, 0.12);
}

.header.scrolled .logo-mark { width: 30px; height: 30px; border-radius: 8px; }
.header.scrolled .logo-word { font-size: 19px; }

/* ------------------------------------------------------------------ hero -- */

.hero {
    background-color: #14141A;
    min-height: min(calc(50vw + var(--header-height)), 100vh);
    padding: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

@media (max-width: 767px) {
    .hero { min-height: min(calc(100vw + var(--header-height)), 100vh); }
}

.hero-slides {
    position: absolute;
    inset: var(--header-height) 0 0;
    width: auto;
    max-width: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active { opacity: 1; }

/* Local scrim: keeps the centred headline legible over busy key art */
.hero::before {
    content: '';
    position: absolute;
    inset: var(--header-height) 0 0;
    z-index: 1;
    background:
        radial-gradient(68% 62% at 50% 52%, rgba(6, 6, 12, 0.72), rgba(6, 6, 12, 0) 74%),
        linear-gradient(to bottom, rgba(6, 6, 12, 0.3), rgba(6, 6, 12, 0) 32%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    animation: hero-in 0.9s ease-out both;
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy { animation: none; }
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--fun);
}

/* Keep the generic section copy rules out of the hero */
.hero p,
.hero h1 {
    max-width: none;
    margin: 0;
}

.hero h1 {
    color: var(--paper);
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.75rem, 1.15rem + 2.35vw, 3.75rem);
    line-height: 1.2;
    letter-spacing: -0.005em;
    max-width: 24ch;
    text-wrap: balance;
}

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: none;
    z-index: 3;
}

.hero-dots button {
    position: relative;
    width: 32px;
    height: 22px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.hero-dots button::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.45);
    transition: background-color 0.3s ease;
}

.hero-dots button.is-active::before { background-color: var(--fun); }

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

/* -------------------------------------------------------------- sections -- */

section {
    min-height: 80vh;
    padding: 100px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

section > div {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 22px;
}

section h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 70px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
}

section p {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    font-size: 1.4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

section:first-of-type { margin-top: calc(-1 * var(--header-height)); }

.about,
.games,
.careers {
    min-height: auto;
    padding: 130px 0;
}

.about { padding-top: 240px; }
.careers { padding-bottom: 260px; }

@media (max-width: 768px) {
    .about, .games, .careers { padding: 80px 0; }
    .about { padding-top: 150px; }
    .careers { padding-bottom: 150px; }
    section h2 { font-size: 46px; }
    section p { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .about, .games, .careers { padding: 60px 0; }
    .about { padding-top: 110px; }
    .careers { padding-bottom: 110px; }
    section h2 { font-size: 38px; }
    section p { font-size: 1rem; }
}

/* What we do — three short columns under the About copy */
.disciplines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
    max-width: 1150px;
    margin: 62px auto 0;
    text-align: left;
}

.disciplines h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--fun);
}

.disciplines p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin: 0;
    color: var(--mute);
}

@media (max-width: 860px) {
    .disciplines {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 44px;
        max-width: 520px;
    }
}

/* --------------------------------------------------------------- buttons -- */

.pill-button {
    background-color: var(--chip);
    color: var(--ink);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.pill-button:hover { background-color: var(--chip-deep); }

.pill-button .arrow {
    width: 16px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.pill-button:hover .arrow { transform: translateX(3px); }

.pill-button.is-primary {
    background-color: var(--ink);
    color: var(--fun);
}

.pill-button.is-primary:hover { background-color: #24242C; }

/* Store badges, drawn in-house so they stay crisp at any size */
.app-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
}

.app-buttons a { display: block; line-height: 0; }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 50px;
    padding: 0 16px;
    border-radius: 11px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.store-badge:hover { background: #26262F; transform: translateY(-2px); }

.store-badge svg { width: 20px; height: 22px; flex-shrink: 0; }

.store-badge .sb-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.store-badge small {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.store-badge strong {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ----------------------------------------------------------------- games -- */

.games h2 {
    margin-bottom: 12px;
    padding: 0 20px;
}

.games-intro {
    margin-bottom: 56px;
}

.game-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px;
    width: 100%;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card + .game-card { margin-top: 120px; }

.game-card.reverse { flex-direction: row-reverse; }

.game-image {
    width: 383px;
    max-width: 100%;
    min-width: 0;
    position: relative;
}

.game-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(15, 15, 20, 0.18);
}

@media (min-width: 993px) {
    .games .game-card { gap: 14%; }
    .games .game-image { width: max(383px, 29%); }
}

.game-details {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 5px 13px;
    margin-bottom: 18px;
}

.status-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sakura);
}

.status-chip.is-dev .dot { background: var(--fun); }

.game-details h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 2.05rem;
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin-bottom: 12px;
}

.game-details .game-genre {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 18px;
    text-align: left;
}

.game-details p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    max-width: 46ch;
}

.game-details .pill-button { margin-top: 26px; }
.game-details .pill-button + .app-buttons { margin-top: 26px; }

@media (max-width: 992px) {
    .game-card { gap: 60px; }
    .game-details h3 { font-size: 1.7rem; }
    .game-details p { font-size: 1.1rem; }
    .game-card + .game-card { margin-top: 90px; }
}

@media (max-width: 768px) {
    .game-card,
    .game-card.reverse {
        flex-direction: column;
        gap: 0;
        padding: 0 24px;
    }
    .app-buttons { justify-content: center; }
    .game-details { text-align: center; }
    .game-details h3,
    .game-details p,
    .game-details .game-genre { text-align: center; margin-left: auto; margin-right: auto; }
    .game-image { margin-bottom: 30px; max-width: 320px; }
    .game-card + .game-card { margin-top: 70px; }
}

/* --------------------------------------------------------------- careers -- */

.careers p { max-width: 950px; }

.careers-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 34px auto 0;
    max-width: 900px;
}

.careers-roles li {
    list-style: none;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--ink);
}

.careers .pill-button { margin-top: 40px; }

/* ---------------------------------------------------------------- footer -- */

footer {
    background-color: var(--fun);
    color: var(--ink);
    padding: 62px 0 50px;
    position: relative;
    overflow: hidden;
}

footer > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    margin-bottom: 26px;
}

.footer-logo .logo-mark { background: var(--ink); }
.footer-logo .logo-mark svg { fill: var(--fun); }
.footer-logo .logo-word { font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; }

footer p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.55;
}

footer .uen {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

footer a { color: var(--ink); }

.legal-links {
    margin-top: 22px;
    font-size: 1rem;
}

.legal-links a {
    color: var(--ink);
    text-decoration: underline;
    margin: 0 14px;
    font-size: 1rem;
}

.legal-links a:hover { text-decoration-thickness: 2px; }

footer .copyright {
    font-size: 0.95rem;
    margin-top: 22px;
    opacity: 0.92;
}

/* Signature: manga screentone. One corner per accent surface, nothing else. */
.screentone { position: relative; }

.screentone::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(15, 15, 20, 0.9) 1.15px, transparent 1.25px);
    background-size: 7px 7px;
    opacity: 0.13;
    -webkit-mask-image: linear-gradient(118deg, #000 0%, rgba(0, 0, 0, 0.35) 32%, transparent 52%);
    mask-image: linear-gradient(118deg, #000 0%, rgba(0, 0, 0, 0.35) 32%, transparent 52%);
}

footer.screentone::after {
    -webkit-mask-image: linear-gradient(300deg, #000 0%, rgba(0, 0, 0, 0.3) 34%, transparent 55%);
    mask-image: linear-gradient(300deg, #000 0%, rgba(0, 0, 0, 0.3) 34%, transparent 55%);
}

/* ------------------------------------------------------------ mobile nav -- */

.menu-toggle { display: none; }

@media (max-width: 768px) {
    .header { padding: 10px 15px; }

    .header-container { justify-content: space-between; align-items: center; }

    .logo { margin-right: auto; }
    .logo-word { font-size: 17px; }
    .logo-mark { width: 28px; height: 28px; border-radius: 8px; }

    .navigation { position: relative; }

    .menu-toggle {
        display: block;
        width: 26px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 102;
        background: none;
        border: none;
        padding: 0;
    }

    .menu-toggle span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--ink);
        border-radius: 2px;
        left: 0;
        transition: transform 0.25s ease-in-out, opacity 0.2s ease;
    }

    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 9px; }
    .menu-toggle span:nth-child(3) { top: 18px; }

    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        background-color: var(--paper);
        width: 250px;
        height: 100vh;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(15, 15, 20, 0.12);
        z-index: 101;
        gap: 6px;
        align-items: flex-start;
        transition: transform 0.3s ease;
        transform: translateX(105%);
    }

    .nav-links.active { transform: translateX(0); }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: left;
    }

    .nav-links a::after { display: none; }
}

/* ------------------------------------------------------- game detail page -- */

.ts-section { min-height: auto; }

.ts-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section.ts-hero {
    min-height: 220px;
    aspect-ratio: 1920 / 620;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

section.ts-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(8, 8, 14, 0.6), rgba(8, 8, 14, 0.05) 62%);
}

.ts-logo {
    position: absolute;
    top: max(20px, 2.5vw);
    right: max(30px, calc((100% - 1400px) / 2));
    z-index: 2;
    font-family: var(--display);
    font-size: clamp(1rem, 1.9vw, 1.9rem);
    line-height: 1.1;
    color: var(--paper);
    text-align: right;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    max-width: 12ch;
}

.ts-intro {
    padding: 90px 0 100px;
    min-height: auto;
}

.ts-tag {
    display: inline-block;
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 4px 15px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ts-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: 70px;
    line-height: 1.1;
    margin: 0 0 22px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.ts-intro .app-buttons { justify-content: center; margin-top: 34px; }

.ts-band {
    min-height: auto;
    padding: 52px 0;
    background-color: var(--fun);
    overflow: hidden;
}

.ts-band h2 {
    font-size: 62px;
    margin-bottom: 16px;
}

.ts-band p { max-width: 1100px; margin-bottom: 0; }

.ts-banner {
    min-height: 320px;
    aspect-ratio: 1920 / 600;
    padding: 40px 0;
    overflow: hidden;
    color: var(--paper);
    isolation: isolate;
}

.ts-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(8, 8, 14, 0.52);
}

.ts-banner > div { position: relative; z-index: 2; }

.ts-banner h2 { margin-bottom: 15px; }

.ts-banner p { max-width: 1100px; margin-bottom: 0; }

.ts-grid,
.ts-faq {
    width: 100%;
    padding: 0 40px;
}

.ts-grid {
    display: grid;
    gap: 70px;
}

.ts-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ts-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }

.ts-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.ts-card h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 20px 0 10px;
    letter-spacing: 0.01em;
}

.ts-card p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: left;
    color: var(--mute);
}

.ts-card.is-text {
    border-top: 3px solid var(--ink);
    padding-top: 22px;
}

.ts-card.is-text .feature-icon {
    width: 30px;
    height: 30px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 14px;
}

/* Live event tiles */
.ts-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 26px;
}

.ts-tile {
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    min-height: 118px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.ts-tile:hover { background-color: var(--fun); transform: translateY(-3px); }

.ts-tile figcaption {
    font-family: var(--display);
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.ts-tile span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.ts-tile:hover span { color: var(--ink); }

/* Reviews */
.ts-carousel {
    width: 100%;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
}

.ts-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.ts-carousel-track::-webkit-scrollbar { display: none; }

.ts-carousel-btn {
    justify-self: center;
    background: none;
    border: none;
    padding: 8px;
    line-height: 0;
    cursor: pointer;
}

.ts-carousel-btn.is-hidden { visibility: hidden; }

.ts-carousel-btn svg {
    width: 13px;
    height: 21px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.45;
}

.ts-carousel-btn.prev svg { transform: rotate(180deg); }

.ts-review {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    background-color: var(--chip);
    border-radius: 18px;
    padding: 26px 28px;
    text-align: left;
}

.ts-review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ts-review h3 {
    font-family: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
}

.ts-stars {
    flex-shrink: 0;
    color: var(--fun);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    line-height: 1;
    margin: 0;
}

.ts-review p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    max-width: none;
    margin: 0;
    color: var(--ink);
}

/* FAQ */
.ts-faq {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.ts-faq details {
    background-color: var(--chip);
    border-radius: 16px;
    overflow: hidden;
}

.ts-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 26px 20px 28px;
    background-color: var(--chip);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.ts-faq summary::-webkit-details-marker { display: none; }
.ts-faq summary h3 { font: inherit; }

.ts-faq .chevron {
    flex-shrink: 0;
    width: 13px;
    height: 21px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.4;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.ts-faq details[open] .chevron { transform: rotate(-90deg); }

.ts-faq-answer {
    padding: 6px 28px 24px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--mute);
}

.ts-faq-answer > :last-child { margin-bottom: 0; }

@media (max-width: 992px) {
    .ts-title { font-size: 54px; }
    .ts-band h2 { font-size: 48px; }
    .ts-grid { gap: 34px; }
    .ts-review { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 768px) {
    section.ts-hero { aspect-ratio: 4 / 3; }
    .ts-intro { padding: 60px 0 70px; }
    .ts-title { font-size: 40px; }
    .ts-band { padding: 40px 0; }
    .ts-band h2 { font-size: 34px; }
    .ts-grid-3 { grid-template-columns: 1fr; max-width: 480px; gap: 48px; }
    .ts-grid-2 { grid-template-columns: 1fr; }
    .ts-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .ts-carousel { grid-template-columns: 32px 1fr 32px; }
    .ts-review { flex-basis: 100%; }
    .ts-faq { padding: 0 20px; }
    .ts-faq summary { font-size: 1.05rem; padding: 16px 20px; }
    .ts-faq-answer { padding: 4px 20px 18px; font-size: 0.98rem; }
    .ts-grid { padding: 0 20px; }
}

/* ---------------------------------------------------------- legal pages -- */

.legal-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 90px 30px 100px;
    text-align: left;
}

.legal-wrap h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem);
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.legal-wrap .legal-date {
    font-size: 0.95rem;
    color: var(--mute);
    margin-bottom: 44px;
}

.legal-wrap h2 {
    font-family: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 40px 0 12px;
}

.legal-wrap p,
.legal-wrap li {
    font-size: 1rem;
    line-height: 1.7;
    color: #34343C;
    margin-bottom: 14px;
}

.legal-wrap ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.legal-wrap a { color: var(--ink); text-decoration: underline; }

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--mute);
}

.legal-back:hover { color: var(--ink); }

/* --------------------------------------------------------------- contact -- */

.contact {
    min-height: auto;
    padding: 130px 0 130px;
}

@media (max-width: 768px) {
    .contact { padding: 80px 0 80px; }
}

.contact-lede {
    max-width: 620px;
}

.pf-form {
    max-width: 760px;
    margin: 52px auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pf-form[hidden] { display: none; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 700px) {
    .form-row { grid-template-columns: 1fr; }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
}

.field input,
.field select,
.field textarea {
    font-family: var(--text);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 13px 16px;
    width: 100%;
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink) 50%),
        linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

.field textarea {
    min-height: 148px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: #9A9AA4; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 62, 127, 0.28);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--sakura);
}

.field-error {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
    min-height: 0;
    max-width: none;
    text-align: left;
}

.field-error:not(:empty)::before {
    content: '! ';
    color: var(--sakura);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pf-form .pill-button,
.form-done .pill-button {
    border: none;
    cursor: pointer;
    font-family: var(--text);
    margin-top: 0;
}

.pf-form .pill-button[disabled] {
    opacity: 0.65;
    cursor: progress;
}

.form-status {
    font-size: 0.95rem;
    color: var(--mute);
    margin: 0;
    max-width: none;
    text-align: left;
}

.form-done {
    max-width: 760px;
    margin: 52px auto 0;
    padding: 34px 32px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    text-align: left;
}

.form-done[hidden] { display: none; }

.form-done .done-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fun);
    margin-bottom: 18px;
}

.form-done .done-mark svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-done h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.form-done p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: left;
    margin: 0 0 10px;
    max-width: none;
    color: var(--mute);
}

.form-done .form-demo {
    font-size: 0.85rem;
    color: var(--mute);
    padding-top: 4px;
    margin-bottom: 20px;
}

/* ------------------------------------------------------------- utilities -- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    z-index: 2000;
}

.skip-link:focus { left: 8px; top: 8px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F1F1F1; }
::-webkit-scrollbar-thumb { background: var(--fun); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--fun-deep); }

@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 80px 20px; }
    section { min-height: auto; padding: 50px 0; }
}
