/* ===== 또박또박 낱말여행 페이지 — 한지·주아체 테마 ===== */
:root {
    --tb-hanji: #FBF6EA;
    --tb-hanji-2: #F6EBD5;
    --tb-paper: #FFFDF7;
    --tb-brown: #4A2E18;
    --tb-brown-2: #6B5444;
    --tb-line: #E6D6B8;
    --tb-orange: #F5A13A;
    --tb-orange-deep: #B5561F;
    --tb-yellow: #F5C85A;
    --tb-green: #5BB98B;
    --tb-green-soft: #DCEFE2;
    --tb-shadow: 0 18px 44px rgba(90, 58, 34, 0.16);
    --tb-wrap: 1080px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--tb-brown);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 200, 90, 0.18), transparent 40%),
        var(--tb-hanji);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--tb-orange-deep);
    outline-offset: 4px;
}

.tb-wrap {
    max-width: var(--tb-wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.tb-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 246, 234, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tb-line);
}

.tb-header-inner {
    max-width: var(--tb-wrap);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tb-back {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--tb-brown-2);
}

.tb-back:hover {
    color: var(--tb-brown);
}

.tb-header-app {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Jua", sans-serif;
    font-size: 1.15rem;
}

.tb-header-app img {
    border-radius: 9px;
}

/* Hero */
.tb-hero {
    padding: 72px 0 56px;
}

.tb-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.tb-chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tb-yellow), var(--tb-orange));
    font-size: 0.875rem;
    font-weight: 700;
}

.tb-title {
    margin: 18px 0 10px;
    font-family: "Jua", sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--tb-brown);
}

.tb-tagline {
    font-family: "Jua", sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.4;
    color: var(--tb-orange-deep);
    margin-bottom: 16px;
}

.tb-br-mobile {
    display: none;
}

.tb-lead {
    color: var(--tb-brown-2);
    max-width: 30em;
    margin-bottom: 24px;
}

.tb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tb-badges li {
    padding: 8px 16px;
    border-radius: 14px;
    background: var(--tb-paper);
    border: 2px solid var(--tb-line);
    box-shadow: 0 3px 0 var(--tb-line);
    font-weight: 700;
    font-size: 0.95rem;
}

.tb-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.tb-hero-visual::before {
    content: '';
    position: absolute;
    inset: 6% 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(245, 200, 90, 0.5), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(91, 185, 139, 0.4), transparent 60%);
    filter: blur(20px);
}

.tb-hero-mascot {
    position: absolute;
    left: -4%;
    bottom: -6%;
    width: 46%;
    filter: drop-shadow(0 12px 18px rgba(90, 58, 34, 0.18));
}

/* Phone frame */
.tb-phone {
    position: relative;
    width: 100%;
    max-width: 300px;
    border: 6px solid var(--tb-brown);
    border-radius: 34px;
    overflow: hidden;
    background: var(--tb-paper);
    box-shadow: var(--tb-shadow);
}

.tb-phone img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.tb-phone-hero {
    transform: rotate(3deg);
}

/* Numbers */
.tb-numbers {
    padding: 24px 0 40px;
}

.tb-numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tb-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-radius: 24px;
    background: var(--tb-paper);
    border: 2px solid var(--tb-line);
    box-shadow: 0 5px 0 var(--tb-line);
}

.tb-number strong {
    font-family: "Jua", sans-serif;
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--tb-orange-deep);
}

.tb-number span {
    margin-top: 6px;
    color: var(--tb-brown-2);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Features */
.tb-features {
    padding: 40px 0 24px;
}

.tb-feature {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 72px;
    align-items: center;
    max-width: 880px;
    margin: 0 auto 96px;
}

.tb-feature:nth-child(even) {
    grid-template-columns: 1fr 300px;
}

.tb-feature:nth-child(even) .tb-phone {
    order: 2;
}

.tb-feature:nth-child(odd) .tb-phone {
    transform: rotate(-2deg);
}

.tb-feature:nth-child(even) .tb-phone {
    transform: rotate(2deg);
}

.tb-feature-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--tb-brown);
    color: var(--tb-paper);
    font-family: "Jua", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.tb-feature h2 {
    font-family: "Jua", sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.3;
    margin-bottom: 18px;
}

.tb-feature h2 em {
    font-style: normal;
    color: var(--tb-orange-deep);
}

.tb-feature p {
    color: var(--tb-brown-2);
    font-size: 1.05rem;
    max-width: 26em;
}

/* Support */
.tb-support {
    padding: 0 0 80px;
}

.tb-support-card {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 880px;
    padding: 36px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, #FFF4D6, var(--tb-green-soft));
    border: 2px solid var(--tb-line);
}

.tb-support-mascot {
    width: 150px;
    flex-shrink: 0;
}

.tb-support h2 {
    font-family: "Jua", sans-serif;
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.tb-support p {
    color: var(--tb-brown-2);
    margin-bottom: 18px;
}

.tb-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tb-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 18px;
    background: var(--tb-paper);
    border: 2px solid var(--tb-brown);
    box-shadow: 0 4px 0 var(--tb-brown);
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--tb-brown);
}

.tb-btn-primary {
    background: var(--tb-orange);
}

/* Store buttons */
.tb-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tb-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    padding: 10px 20px;
    border-radius: 16px;
    background: #1F1A17;
    color: #FFFFFF;
    box-shadow: 0 4px 0 #000000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-store:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #000000;
}

.tb-store svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.tb-store span {
    display: flex;
    flex-direction: column;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.15;
}

.tb-store small {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.tb-support .tb-stores {
    margin: 0 0 28px;
}

.tb-support-sub {
    font-family: "Jua", sans-serif;
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

/* Footer */
.tb-footer {
    border-top: 1px solid var(--tb-line);
    padding: 28px 0;
    color: var(--tb-brown-2);
    font-size: 0.9rem;
}

.tb-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tb-footer-brand {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--tb-brown);
}

/* Responsive */
@media (max-width: 768px) {
    .tb-wrap,
    .tb-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tb-header-app {
        font-size: 1rem;
    }

    .tb-hero {
        padding: 40px 0 32px;
    }

    .tb-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .tb-br-mobile {
        display: inline;
    }

    .tb-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .tb-badges,
    .tb-stores {
        justify-content: center;
    }

    .tb-phone,
    .tb-hero-visual .tb-phone {
        max-width: 240px;
    }

    .tb-hero-mascot {
        left: 0;
        width: 38%;
    }

    .tb-numbers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tb-number {
        flex-direction: row;
        gap: 16px;
        text-align: left;
        padding: 16px 20px;
    }

    .tb-number strong {
        font-size: 2.4rem;
        min-width: 3.2ch;
    }

    .tb-feature,
    .tb-feature:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 64px;
        text-align: center;
        justify-items: center;
    }

    .tb-feature:nth-child(even) .tb-phone {
        order: 0;
    }

    .tb-feature p {
        margin: 0 auto;
    }

    .tb-support-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 16px;
    }

    .tb-support-mascot {
        width: 120px;
    }

    .tb-support-actions {
        justify-content: center;
    }

    .tb-btn {
        width: 100%;
        text-align: center;
    }

    .tb-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

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

    .tb-btn {
        transition: none;
    }
}
