/* ToonPie Cell product page — isolated from the shared product styles. */
:root {
    --tp-blue: #1677ff;
    --tp-cyan: #32c5ff;
    --tp-purple: #7657ff;
    --tp-ink: #0d1730;
    --tp-muted: #5f6b82;
    --tp-line: rgba(25, 67, 130, 0.12);
    --tp-bg: #f4f8ff;
    --tp-card: rgba(255, 255, 255, 0.92);
    --tp-shadow: 0 26px 70px rgba(25, 73, 150, 0.14);
}

.tp-hero,
.tp-main,
.tp-mobile-download { font-family: Inter, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }

.tp-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 150px 0 0;
    background:
        radial-gradient(circle at 73% 30%, rgba(64, 219, 255, 0.36), transparent 25%),
        radial-gradient(circle at 15% 15%, rgba(131, 104, 255, 0.38), transparent 32%),
        linear-gradient(135deg, #071a53 0%, #062c99 48%, #087fc5 100%);
}

.tp-hero::before,
.tp-hero::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    pointer-events: none;
}
.tp-hero::before { width: 720px; height: 720px; right: -240px; top: -280px; }
.tp-hero::after { width: 380px; height: 380px; left: -190px; bottom: 110px; }

.tp-hero-grid {
    position: relative;
    z-index: 1;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr);
    align-items: center;
    gap: 54px;
}

.tp-kicker {
    margin: 0 0 20px;
    color: var(--tp-blue);
    font-size: .78rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.tp-hero .tp-kicker,
.tp-section-heading-light .tp-kicker { color: #8ee7ff; }

.tp-hero-copy { padding: 30px 0 90px; }
.tp-hero-copy h1 {
    margin: 0;
    max-width: 720px;
    color: #fff;
    font-size: clamp(2.65rem, 4.7vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -.055em;
    font-weight: 800;
}
.tp-hero-copy h1 span {
    display: inline-block;
    margin-top: 8px;
    color: transparent;
    background: linear-gradient(90deg, #8ee7ff, #fff 55%, #c4b7ff);
    background-clip: text;
    -webkit-background-clip: text;
}
.tp-hero-desc {
    max-width: 650px;
    margin: 28px 0 30px;
    color: rgba(255,255,255,.76);
    font-size: 1.08rem;
    line-height: 1.8;
}

.tp-store-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.tp-store-buttons a { display: inline-flex; transition: transform .22s ease, opacity .22s ease; }
.tp-store-buttons a:hover { transform: translateY(-3px); opacity: .9; }
.tp-store-buttons img { display: block; width: auto; height: 52px; border-radius: 9px; }
.tp-availability { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: rgba(255,255,255,.72); font-size: .9rem; font-weight: 600; }
.tp-free-badge { padding: 6px 12px; border: 1px solid rgba(142,231,255,.42); border-radius: 999px; color: #b8f1ff; background: rgba(29,187,235,.13); }

.tp-hero-visual { position: relative; align-self: stretch; min-height: 680px; }
.tp-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: 48%; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(89,219,255,.26); filter: blur(60px); }
.tp-phone { position: absolute; display: block; height: auto; filter: drop-shadow(0 30px 42px rgba(0,15,58,.35)); }
.tp-phone-front { z-index: 3; width: 330px; left: 50%; bottom: -82px; transform: translateX(-50%); }
.tp-phone-back { z-index: 1; width: 240px; left: 4%; bottom: -24px; transform: rotate(-8deg); opacity: .94; }
.tp-phone-side { z-index: 2; width: 230px; right: 1%; bottom: -12px; transform: rotate(8deg); opacity: .95; }

.tp-proof-row {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.14);
    background: rgba(2,21,72,.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.tp-proof-row span { padding: 24px 28px; text-align: center; color: rgba(255,255,255,.83); font-size: .92rem; font-weight: 700; letter-spacing: .02em; }
.tp-proof-row span + span { border-left: 1px solid rgba(255,255,255,.13); }

.tp-main { color: var(--tp-ink); background: #fff; }
.tp-section { padding: 110px 0; }
.tp-section-heading { max-width: 760px; margin-bottom: 48px; }
.tp-section-heading h2 { margin: 0; color: var(--tp-ink); font-size: clamp(2rem, 3.7vw, 3.35rem); line-height: 1.18; letter-spacing: -.045em; }
.tp-section-heading > p:last-child { margin: 18px 0 0; color: var(--tp-muted); font-size: 1.02rem; line-height: 1.75; }

.tp-features-section { background: linear-gradient(180deg, #fff, var(--tp-bg)); }
.tp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-feature-card { position: relative; min-height: 250px; padding: 30px; overflow: hidden; border: 1px solid var(--tp-line); border-radius: 24px; background: var(--tp-card); box-shadow: 0 14px 34px rgba(23,69,140,.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tp-feature-card:hover { transform: translateY(-6px); border-color: rgba(22,119,255,.28); box-shadow: var(--tp-shadow); }
.tp-feature-card h3 { margin: 22px 0 10px; color: var(--tp-ink); font-size: 1.16rem; line-height: 1.4; }
.tp-feature-card p { margin: 0; color: var(--tp-muted); font-size: .94rem; line-height: 1.72; }
.tp-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--tp-blue), var(--tp-purple)); box-shadow: 0 12px 26px rgba(45,106,244,.24); font-size: 1rem; font-weight: 800; }
.tp-feature-icon::before { content: 'AI'; }
.tp-icon-translate::before { content: '文'; }
.tp-icon-spark::before { content: 'AI'; }
.tp-icon-viewer::before { content: '▶'; }
.tp-icon-library::before { content: '▦'; }
.tp-icon-storage::before { content: '↗'; }
.tp-icon-tools::before { content: '•••'; letter-spacing: -1px; }

.tp-flow-section { position: relative; overflow: hidden; background: linear-gradient(145deg, #071a3f 0%, #0a2d72 58%, #075c94 100%); }
.tp-section-heading-light h2 { color: #fff; max-width: 850px; }
.tp-flow-grid { display: grid; gap: 26px; }
.tp-flow-card { min-height: 520px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 36px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 32px; background: rgba(255,255,255,.075); box-shadow: inset 0 1px rgba(255,255,255,.12); }
.tp-flow-card-reverse { grid-template-columns: 1.2fr .8fr; }
.tp-flow-card-reverse .tp-flow-copy { order: 2; }
.tp-flow-card-reverse .tp-flow-phones { order: 1; }
.tp-flow-copy { padding: 50px; }
.tp-flow-copy > span { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 15px; color: #aeeeff; background: rgba(70,205,255,.14); border: 1px solid rgba(141,232,255,.22); font-size: .82rem; font-weight: 800; }
.tp-flow-copy h3 { margin: 0 0 16px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.22; letter-spacing: -.035em; }
.tp-flow-copy p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.75; }
.tp-flow-phones { position: relative; align-self: stretch; min-height: 520px; background: radial-gradient(circle at center, rgba(45,207,255,.24), transparent 62%); }
.tp-flow-phones img { position: absolute; width: 270px; height: auto; bottom: -125px; filter: drop-shadow(0 26px 30px rgba(0,0,0,.28)); }
.tp-flow-phones img:first-child { left: 20%; z-index: 2; transform: rotate(-5deg); }
.tp-flow-phones img:last-child { right: 10%; transform: rotate(7deg); opacity: .92; }

.tp-gallery-section { overflow: hidden; background: #fff; }
.tp-gallery-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.tp-gallery-controls { display: flex; gap: 10px; margin-bottom: 48px; }
.tp-gallery-button { width: 50px; height: 50px; border: 1px solid var(--tp-line); border-radius: 50%; color: var(--tp-ink); background: #fff; box-shadow: 0 10px 24px rgba(23,69,140,.08); cursor: pointer; font-size: 1.25rem; transition: all .2s ease; }
.tp-gallery-button:hover { color: #fff; border-color: var(--tp-blue); background: var(--tp-blue); transform: translateY(-2px); }
.tp-gallery { display: flex; gap: 22px; margin-right: calc((100vw - min(1400px, 100vw)) / -2); padding: 8px 24px 28px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(22,119,255,.35) transparent; }
.tp-gallery-card { flex: 0 0 320px; margin: 0; scroll-snap-align: start; }
.tp-gallery-image-wrap { height: 570px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 28px; background: linear-gradient(145deg, #e8f4ff, #eef0ff); }
.tp-gallery-image-wrap img { width: 270px; height: auto; margin-bottom: -80px; filter: drop-shadow(0 25px 28px rgba(18,49,105,.2)); transition: transform .3s ease; }
.tp-gallery-card:hover img { transform: translateY(-8px); }
.tp-gallery-card figcaption { display: flex; align-items: center; gap: 12px; padding: 18px 4px 0; color: var(--tp-ink); font-size: .94rem; font-weight: 700; }
.tp-gallery-card figcaption span { color: var(--tp-blue); font-size: .76rem; letter-spacing: .08em; }

.tp-download-section { padding-top: 30px; background: linear-gradient(180deg, #fff, var(--tp-bg)); }
.tp-download-card { position: relative; min-height: 540px; display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 40px; overflow: hidden; padding: 70px 80px; border-radius: 36px; color: #fff; background: linear-gradient(135deg, #091d57, #143bb7 55%, #0789c9); box-shadow: 0 35px 80px rgba(17,62,148,.22); }
.tp-download-card::after { content: ''; position: absolute; width: 430px; height: 430px; right: -120px; top: -140px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.tp-download-card > div { position: relative; z-index: 2; max-width: 680px; }
.tp-download-card .tp-kicker { color: #8ee7ff; }
.tp-download-card h2 { margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.12; letter-spacing: -.045em; }
.tp-download-card > div > p:not(.tp-kicker) { color: rgba(255,255,255,.7); margin: 20px 0; line-height: 1.72; }
.tp-check-list { display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.tp-check-list li { color: rgba(255,255,255,.86); font-size: .94rem; }
.tp-check-list li::before { content: '✓'; margin-right: 10px; color: #82efff; font-weight: 800; }
.tp-download-phone { position: absolute; z-index: 1; width: 330px; height: auto; right: 40px; bottom: -150px; filter: drop-shadow(0 25px 32px rgba(0,0,0,.3)); transform: rotate(5deg); }

.tp-mobile-download { display: none; }

@media (max-width: 1100px) {
    .tp-hero-grid { grid-template-columns: 1fr 440px; gap: 20px; }
    .tp-phone-front { width: 290px; }
    .tp-phone-back { width: 205px; left: 0; }
    .tp-phone-side { width: 200px; right: -5%; }
    .tp-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-flow-copy { padding: 38px; }
    .tp-flow-phones img { width: 235px; }
}

@media (max-width: 820px) {
    .tp-hero { padding-top: 115px; }
    .tp-hero-grid { min-height: auto; grid-template-columns: 1fr; text-align: center; }
    .tp-hero-copy { padding: 40px 0 0; }
    .tp-hero-copy h1, .tp-hero-desc { margin-left: auto; margin-right: auto; }
    .tp-store-buttons, .tp-availability { justify-content: center; }
    .tp-hero-visual { min-height: 590px; }
    .tp-phone-front { width: 300px; }
    .tp-phone-back { left: 13%; width: 210px; }
    .tp-phone-side { right: 10%; width: 205px; }
    .tp-proof-row { grid-template-columns: 1fr; }
    .tp-proof-row span + span { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
    .tp-section { padding: 82px 0; }
    .tp-flow-card, .tp-flow-card-reverse { grid-template-columns: 1fr; }
    .tp-flow-card-reverse .tp-flow-copy { order: 1; }
    .tp-flow-card-reverse .tp-flow-phones { order: 2; }
    .tp-flow-phones { min-height: 470px; }
    .tp-flow-phones img:first-child { left: 20%; }
    .tp-flow-phones img:last-child { right: 17%; }
    .tp-download-card { grid-template-columns: 1fr; padding: 60px 50px 420px; text-align: center; }
    .tp-download-card .tp-store-buttons { justify-content: center; }
    .tp-check-list { display: inline-grid; text-align: left; }
    .tp-download-phone { width: 300px; right: 50%; bottom: -170px; transform: translateX(50%); }
}

@media (max-width: 600px) {
    .tp-hero-copy h1 { font-size: 2.25rem; }
    .tp-hero-desc { font-size: .98rem; }
    .tp-store-buttons img { height: 44px; }
    .tp-hero-visual { min-height: 500px; margin: 0 -20px; }
    .tp-phone-front { width: 250px; bottom: -58px; }
    .tp-phone-back { width: 165px; left: 6%; }
    .tp-phone-side { width: 160px; right: 4%; }
    .tp-feature-grid { grid-template-columns: 1fr; }
    .tp-feature-card { min-height: 0; }
    .tp-flow-card { border-radius: 24px; }
    .tp-flow-copy { padding: 32px 26px 0; text-align: center; }
    .tp-flow-phones { min-height: 390px; }
    .tp-flow-phones img { width: 190px; bottom: -95px; }
    .tp-flow-phones img:first-child { left: 9%; }
    .tp-flow-phones img:last-child { right: 7%; }
    .tp-gallery-header { align-items: start; }
    .tp-gallery-controls { display: none; }
    .tp-gallery-card { flex-basis: 270px; }
    .tp-gallery-image-wrap { height: 500px; }
    .tp-gallery-image-wrap img { width: 235px; }
    .tp-download-section { padding-left: 12px; padding-right: 12px; }
    .tp-download-card { padding: 48px 24px 390px; border-radius: 28px; }
    .tp-mobile-download { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 10px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px; padding: 10px 10px 10px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: #fff; background: rgba(7,26,73,.92); box-shadow: 0 16px 40px rgba(0,21,67,.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
    .tp-mobile-download span { font-size: .9rem; font-weight: 800; }
    .tp-mobile-download a { padding: 9px 10px; border-radius: 10px; color: #fff; background: rgba(255,255,255,.12); text-decoration: none; font-size: .72rem; font-weight: 700; }
    .footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
    .tp-phone, .tp-feature-card, .tp-gallery-image-wrap img, .tp-store-buttons a { transition: none; }
}
