/* Base Styles & Variables - POP STYLE */
:root {
    /* Pop Theme Colors */
    --bg-color: #FFF6E5;
    --card-bg: #FFFFFF;
    --card-border: #111111;
    --text-primary: #111111;
    --text-secondary: #333333;
    --accent-pink: #FF3366;
    --accent-cyan: #00E5FF;
    --accent-yellow: #FFD500;
    --accent-purple: #9D00FF;

    /* Typography */
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

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

/* Prevent awkward Japanese wrapping */
.nowrap {
    display: inline-block;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 700;
}

/* Background Elements */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(#111 3px, transparent 3px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -2;
    pointer-events: none;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    border: 5px solid var(--text-primary);
    box-shadow: 10px 10px 0 #111;
    animation: drift 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-yellow);
    top: -50px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    bottom: 100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 50px) rotate(10deg);
    }
}

/* Common Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section-spacing {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    font-weight: 900;
}

.section-title {
    font-size: clamp(1.5rem, 4.5vw, 2.6rem);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px var(--accent-cyan);
    color: #111;
    display: inline-block;
    position: relative;
}

.nowrap-title {
    white-space: nowrap;
    /* Ensure it shrinks to fit 1 line even on mobile */
    font-size: clamp(1.1rem, 3.8vw, 2.5rem);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: var(--accent-pink);
    border-radius: 10px;
    border: 2px solid #111;
}

.section-desc {
    color: var(--text-primary);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 2rem auto 3rem;
    font-weight: 800;
    background: #fff;
    padding: 1.5rem;
    border: 4px solid #111;
    border-radius: 16px;
    box-shadow: 6px 6px 0 #111;
}

.highlight {
    background: var(--accent-yellow);
    color: #111;
    padding: 0.2rem 1rem;
    border: 4px solid #111;
    border-radius: 12px;
    display: inline-block;
    transform: rotate(-3deg);
    box-shadow: 4px 4px 0px #111;
    margin: 0.5rem 0;
}

.highlight-text {
    color: var(--accent-pink);
    font-weight: 900;
    font-size: 1.3rem;
    text-shadow: 1px 1px 0px #111;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}

/* POP Classes */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--accent-yellow);
    border-bottom: 5px solid #111;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 6px 0 #111;
}

.glass-card {
    background: var(--card-bg);
    border: 4px solid var(--text-primary);
    border-radius: 20px;
    box-shadow: 8px 8px 0px var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--text-primary);
}

.image-glass-container {
    background: var(--accent-cyan);
    border: 5px solid var(--text-primary);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 12px 12px 0px var(--text-primary);
    transform: rotate(2deg);
}

/* Present Banner */
.present-banner {
    display: inline-block;
    background: var(--accent-pink);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.2rem;
    border: 4px solid #111;
    box-shadow: 6px 6px 0px #111;
    margin-bottom: 1rem;
    transform: rotate(-2deg);
    line-height: 1.4;
    text-align: center;
    position: relative;
    z-index: 5;
    animation: popPulse 3s infinite alternate;
}

.present-banner span.highlight-text {
    color: var(--text-primary);
    font-size: 1.5rem;
    display: inline-block;
    background: var(--accent-yellow);
    padding: 0.2rem 0.5rem;
    margin: 0.2rem 0;
    border: 3px solid #111;
    border-radius: 8px;
    transform: rotate(1deg);
    text-shadow: none;
    box-shadow: 3px 3px 0 #111;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-pink);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.3rem;
    border: 4px solid #111;
    box-shadow: 6px 6px 0px #111;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px #111;
    background: var(--accent-yellow);
    color: #111;
}

.btn-primary-small {
    background: var(--accent-cyan);
    color: #111;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    border: 3px solid #111;
    box-shadow: 4px 4px 0px #111;
    transition: all 0.2s ease;
}

.btn-primary-small:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #111;
    background: var(--accent-pink);
    color: #fff;
}

.glow-effect {
    position: relative;
}

.pulse {
    animation: popPulse 2s infinite;
}

@keyframes popPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(1deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 3px 3px 0px #111, -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111;
    transform: rotate(-2deg);
}

.logo span {
    color: var(--accent-pink);
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: var(--accent-cyan);
    color: #111;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    border: 3px solid #111;
    box-shadow: 4px 4px 0px #111;
    transform: rotate(-3deg);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: #111;
    /* Create a strong white outline using text-shadow so the black text doesn't blend with the black background orb */
    text-shadow:
        -3px -3px 0 #fff,
        3px -3px 0 #fff,
        -3px 3px 0 #fff,
        3px 3px 0 #fff,
        4px 4px 0 #fff;
    position: relative;
    z-index: 10;
}

.nowrap-hero {
    white-space: nowrap;
    /* Shrink the text to fit one line up to a max of 3.2rem */
    font-size: clamp(1rem, 4vw, 3.2rem);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 800;
    background: #fff;
    padding: 1.2rem;
    border-radius: 16px;
    border: 4px solid #111;
    box-shadow: 6px 6px 0 #111;
    display: inline-block;
    transform: rotate(1deg);
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-box {
    padding: 1.5rem;
    min-width: 150px;
    text-align: center;
    background: var(--accent-yellow);
    border: 4px solid #111;
    border-radius: 16px;
    box-shadow: 6px 6px 0 #111;
    transform: rotate(-2deg);
}

.stat-box:nth-child(2) {
    background: var(--accent-cyan);
    transform: rotate(2deg);
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 3px 3px 0px #111, -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111;
}

.stat-unit {
    font-size: 1.2rem;
    color: #111;
    text-shadow: none;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-top: 0.5rem;
    display: block;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid #111;
}

.floating {
    animation: bouncePop 2s ease-in-out infinite alternate;
}

.floating-slow {
    animation: bouncePop 3s ease-in-out infinite alternate-reverse;
}

@keyframes bouncePop {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Problems Section - Speech Bubbles */
.worries-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-bottom: 4rem;
    margin-top: 3rem;
    padding: 1rem;
}

.worry-bubble {
    padding: 1.2rem 2rem;
    border: 4px solid #111;
    border-radius: 40px;
    box-shadow: 6px 6px 0px #111;
    position: relative;
    max-width: 90%;
    margin-bottom: 1rem;
}

/* Base tail (black outline) */
.worry-bubble::before {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 30px;
    border-top: 24px solid #111;
    border-right: 20px solid transparent;
}

/* Inner tail (color fill to erase parent border and black tail inner) */
.worry-bubble::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 34px;
    border-top: 24px solid var(--bg);
    border-right: 16px solid transparent;
}

.worry-yellow {
    --bg: var(--accent-yellow);
    background: var(--bg);
    color: #111;
    transform: rotate(-3deg) translateY(5px);
}

.worry-blue {
    --bg: var(--accent-cyan);
    background: var(--bg);
    color: #111;
    transform: rotate(2deg) translateY(-5px);
}

.worry-pink {
    --bg: var(--accent-pink);
    background: var(--bg);
    color: #fff;
    transform: rotate(-1deg) translateY(10px);
}

.worry-white {
    --bg: #fff;
    background: var(--bg);
    color: #111;
    transform: rotate(3deg) translateY(0px);
}

.worry-orange {
    --bg: #FF9900;
    background: var(--bg);
    color: #111;
    transform: rotate(-2deg) translateY(8px);
}

.worry-green {
    --bg: #00FF66;
    background: var(--bg);
    color: #111;
    transform: rotate(4deg) translateY(-5px);
}

.worry-bubble h3 {
    text-shadow: none;
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 900;
}

.solution-box {
    padding: 3.5rem;
    text-align: center;
    position: relative;
    background: #fff;
    border: 5px solid #111;
    border-radius: 24px;
    box-shadow: 12px 12px 0px #111;
    margin-top: 2rem;
}

.solution-box p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.solution-list {
    list-style: none;
    text-align: left;
    max-width: 800px;
    margin: 3rem auto 0;
}

.solution-list li {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-weight: 800;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 4px solid #111;
    box-shadow: 6px 6px 0px #111;
    transform: rotate(0.5deg);
}

.solution-list li:nth-child(even) {
    transform: rotate(-0.5deg);
    background: var(--bg-color);
}

.check {
    color: #111;
    background: var(--accent-yellow);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #111;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 2px 2px 0 #111;
}

/* Features Section */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-img {
    width: 100%;
    border-radius: 16px;
    border: 4px solid #111;
}

.feature-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    background: #fff;
    border: 5px solid #111;
    border-radius: 20px;
    box-shadow: 10px 10px 0px #111;
    position: relative;
    overflow: hidden;
    transform: rotate(-1deg);
}

.feature-item:nth-child(even) {
    transform: rotate(1deg);
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 15px;
    background: var(--accent-cyan);
    border-right: 3px solid #111;
}

.feature-item:nth-child(even)::before {
    background: var(--accent-pink);
}

.feature-number {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 4px 4px 0px #111, -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111, 2px 2px 0 #111;
    min-width: 70px;
}

.feature-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--accent-pink);
}

.feature-text p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 3.5rem;
    position: relative;
    background: #fff;
    border: 5px solid #111;
    border-radius: 24px;
    box-shadow: 12px 12px 0px #111;
}

.testimonial-card:nth-child(even) {
    transform: rotate(2deg);
    background: var(--accent-cyan);
}

.testimonial-card:nth-child(odd) {
    transform: rotate(-2deg);
    background: var(--accent-yellow);
}

.quote-icon {
    font-size: 6rem;
    font-family: 'Times New Roman', serif;
    color: #fff;
    position: absolute;
    top: -30px;
    left: 20px;
    line-height: 1;
    text-shadow: 3px 3px 0px #111, -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111;
    z-index: 10;
}

.testimonial-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #111;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent-pink);
}

.testimonial-card:nth-child(even) .testimonial-title {
    text-decoration-color: var(--accent-yellow);
}

.testimonial-text {
    font-weight: 800;
    color: #111;
    font-size: 1.2rem;
}

/* Trial Section */
.trial {
    padding-bottom: 5rem;
}

.trial-card {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 3.5rem;
    position: relative;
    background: #fff;
    border: 5px solid #111;
    border-radius: 24px;
    box-shadow: 12px 12px 0px #111;
    transform: rotate(1deg);
}

.trial-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 5px dashed var(--accent-cyan);
    color: var(--accent-pink);
}

.trial-features {
    list-style: none;
    font-size: 1.3rem;
    font-weight: 800;
}

.trial-features li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 12px;
    border: 3px solid #111;
    box-shadow: 4px 4px 0 #111;
    transform: rotate(-0.5deg);
}

.trial-features li:nth-child(even) {
    transform: rotate(0.5deg);
    background: #fff;
}

.trial-features li .check {
    font-size: 2rem;
    line-height: 1;
}

/* CTA Section */
.cta-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
    background: var(--accent-cyan);
    border: 5px solid #111;
    border-radius: 30px;
    box-shadow: 16px 16px 0px #111;
    transform: rotate(1deg);
}

.cta-title {
    font-size: 3.5rem;
    /* Increased from 2.8rem */
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0px #fff;
    color: #111;
    line-height: 1.3;
}

.cta-desc {
    font-size: 1.5rem;
    /* Increased from 1.3rem */
    margin-bottom: 2.5rem;
    font-weight: 800;
    color: #111;
    background: #fff;
    padding: 1.8rem;
    border: 4px solid #111;
    border-radius: 16px;
    box-shadow: 6px 6px 0 #111;
    transform: rotate(-1deg);
}

.cta-note {
    font-size: 1.1rem;
    /* Increased from 1rem */
    color: #111;
    margin-top: 2rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.5);
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px dashed #111;
}

.cta-image {
    width: 100%;
    max-width: 400px;
    /* Restrict max width */
    margin: 0 auto;
    /* Center it when restricted */
}

.cta-image .cta-img {
    border: 5px solid #111;
    border-radius: 50%;
    background: var(--accent-yellow);
    box-shadow: 10px 10px 0px #111;
    animation: bouncePop 3s ease-in-out infinite alternate;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 5rem 0 3rem;
    text-align: center;
    border-top: 10px solid var(--accent-pink);
    position: relative;
    overflow: hidden;
}

/* Fun footer decoration */
.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: radial-gradient(var(--accent-pink) 10px, transparent 10px);
    background-size: 30px 20px;
    background-position: -10px -10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 0.2rem 1rem;
    border-radius: 50px;
}

.footer-link:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Legal Hidden Content Areas */
.legal-content {
    background: #222;
    color: #ddd;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    border: 3px solid #444;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
    /* hidden by default */
}

.legal-content.active {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-content h4 {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 2px dashed #444;
    padding-bottom: 0.5rem;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content .mt-4 {
    margin-top: 2.5rem;
}

.legal-content p {
    margin-bottom: 0.8rem;
}

.legal-content a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.footer-legal p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #ccc;
}

.copyright {
    margin-top: 3rem;
    color: #888;
    font-weight: 800;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-reveal="up"] {
    transform: translateY(80px);
}

[data-reveal="left"] {
    transform: translateX(-80px) rotate(-5deg);
}

[data-reveal="right"] {
    transform: translateX(80px) rotate(5deg);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .features-container,
    .cta-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .trial-card {
        padding: 2.5rem 1.5rem;
    }

    .trial-features li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .btn-primary-small {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .cta-container {
        padding: 2.5rem;
        text-align: center;
        /* Center content on mobile */
    }

    .cta-title {
        font-size: 2.5rem;
        /* Larger on mobile */
    }

    .cta-desc,
    .cta-note {
        text-align: left;
        /* Keep text readable */
    }

    .cta-image {
        max-width: 300px;
        /* Even smaller limit on mobile */
    }

    .feature-number {
        font-size: 3rem;
    }

    .solution-list li {
        font-size: 1rem;
        padding: 1rem;
        gap: 0.8rem;
    }

    .solution-box {
        padding: 2rem 1.5rem;
    }
}