@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');

.jp-page {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.jp-hero {
    width: 100%;
    text-align: center;
    padding-top: 2rem;

    background: linear-gradient(to bottom,
            rgba(155, 123, 255, 0.22) 0%,
            rgba(255, 255, 255, 1) 60%);
    margin-top: 65px;
}

.jp-hero h1 {
    font-size: 2.8rem;
    color: #6C63FF;
    margin-bottom: 1rem;
}

.jp-subtitle {
    font-size: 1.2rem;
    color: #6A4CFF;
}

.hiragana-doodle {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: rgba(108, 99, 255, 0.4);
    letter-spacing: 6px;
}

.notebook-paper {
    position: relative;
    background: repeating-linear-gradient(#fff, #fff 28px, rgba(108, 99, 255, 0.08) 29px);
    border-radius: 16px;
    padding: 1rem 1rem;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.08);
}

.jp-content p,
.jp-hero p,
.jp-checklist li,
.phrase-note p {
    font-family: 'Kalam', cursive;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #444;
}

.h2 {
    color: #6C63FF;
}

.jp-content h2 {
    color: #6C63FF;
}

.phrase-note h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.30rem;
    line-height: 1.75;
    color: #6C63FF;
    font-weight: bold;
}

.sticky-note p {
    font-family: 'Kalam', cursive;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #444;
}

.jp-section.delay-3 {
    position: relative;
    z-index: 50;
}

.jp-checklist input[type="checkbox"] {
    cursor: default !important;
}

.jp-content.two-column {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.polaroid.left {
    float: none;
    margin: 0;
    transform: rotate(-2deg);
    max-width: 240px;
}

.success-text {
    flex: 1;
    font-family: 'Kalam', cursive;
    font-size: 1.2rem;
    line-height: 1.7;
}

.jp-section.delay-4 {
    position: relative;
    z-index: 40;
}

@media (max-width: 900px) {
    .jp-content.two-column {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .polaroid.left {
        transform: rotate(0deg);
        margin-bottom: 1rem;
    }
}

.highlight {
    background: linear-gradient(120deg, #fff3a6 0%, #ffe680 100%);
    padding: 0 4px;
    border-radius: 4px;
}

.underline {
    position: relative;
}

.underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 6px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 3 Q25 6 50 3 T100 3" stroke="%23f7cfe3" stroke-width="3" fill="none" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
}

.polaroid {
    width: 220px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    margin: 1.5rem 0;
    transform: rotate(-2deg);
    position: relative;
    z-index: 100;
}

.polaroid.right {
    float: right;
    transform: rotate(2deg);
    margin-left: 1.5rem;

    position: relative;
    z-index: 100;
}

.polaroid-img-placeholder {
    width: 100%;
    height: 160px;
    background: #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

.polaroid-group {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.polaroid-group .polaroid {
    flex: 1 1 240px;
    max-width: 240px;
}

@media (max-width: 600px) {
    .polaroid-group .polaroid {
        flex: 1 1 100%;
        max-width: 300px;
    }
}

.polaroid-group .pol-left {
    transform: rotate(-3deg);
}

.polaroid-group .pol-centre {
    transform: rotate(1deg);
}

.polaroid-group .pol-right {
    transform: rotate(3deg);
}

.caption {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #444;
}

.washi-tape {
    width: 80px;
    height: 20px;
    background: repeating-linear-gradient(45deg, #f7cfe3, #f7cfe3 6px, #fce4ec 6px, #fce4ec 12px);
    position: absolute;
    top: -10px;
    left: 20px;
    transform: rotate(-8deg);
    border-radius: 4px;
    opacity: 0.9;
}

.jp-sticky-notes {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 1000px;
}

.sticky-note {
    width: 200px;
    background: #fff8a6;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
}

.sticky-note:nth-child(2) {
    transform: rotate(2deg);
}

.sticky-note:nth-child(3) {
    transform: rotate(-1deg);
}

.jp-checklist-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.checklist-tape {
    width: 300px;
    height: 35px;
    background: repeating-linear-gradient(45deg, #c8f7c5, #c8f7c5 6px, #e0ffe0 6px, #e0ffe0 12px);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    border-radius: 4px;
    opacity: 0.9;
}

.checklist-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.checklist-header h2 {
    color: #6C63FF;
    margin-bottom: 1rem;
}

.checklist-doodle {
    font-size: 1.6rem;
    color: rgba(108, 99, 255, 0.4);
    transform: rotate(-8deg);
}

.checklist-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 1.5rem;
}

.jp-checklist {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0;
    flex: 1;
    padding-left: 3rem;
}

.jp-checklist li {
    font-family: 'Kalam', cursive;
    font-size: 1.2rem;
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jp-checklist input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    background: #4CAF50;
    cursor: not-allowed;
    position: relative;
}

.jp-checklist input[type="checkbox"]::after {
    content: "✓";
    color: white;
    font-size: 1rem;
    position: absolute;
    top: -2px;
    left: 4px;
    font-weight: bold;
}

.sticky-stack {
    position: relative;
    width: 260px;
    margin-left: 2rem;
    padding-right: 5rem;
}

.motivation-note {
    width: 240px;
    background: #fffa9c;
    padding: 1.4rem;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    text-align: center;
    transform: rotate(-2deg);
    position: relative;
    z-index: 3;
    margin: 0 auto;
}

.motivation-note::before {
    content: "";
    width: 70px;
    height: 22px;
    background: repeating-linear-gradient(45deg, #f7cfe3, #f7cfe3 6px, #fce4ec 6px, #fce4ec 12px);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    border-radius: 4px;
    opacity: 0.9;
}

.note-behind {
    width: 240px;
    height: 140px;
    background: #fff8a6;
    border-radius: 6px;
    position: absolute;
    top: 12px;
    left: 10px;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.note-behind.one {
    transform: rotate(-6deg);
}

.note-behind.two {
    transform: rotate(4deg);
    top: 22px;
    left: 20px;
    background: #fff7b8;
}

.motivation-note h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    color: red;
    position: relative;
    top: -10px;
}

.motivation-note p {
    font-size: 0.95rem;
    color: red;
    position: relative;
    top: -12px;
}

.sticky-stack::after {
    content: "↗";
    font-size: 3rem;
    color: rgba(108, 99, 255, 0.4);
    position: absolute;
    left: -40px;
    top: 20px;
    transform: rotate(-10deg);
    pointer-events: none;
}

.jp-phrases {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 3rem auto;
    max-width: 1000px;
}

.phrase-note {
    width: 180px;
    background: #fff8a6;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    text-align: center;
}

.phrase-note:nth-child(2) {
    transform: rotate(1deg);
}

.phrase-note:nth-child(3) {
    transform: rotate(-1deg);
}

.phrase-note:nth-child(4) {
    transform: rotate(2deg);
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

.delay-6 {
    animation-delay: 1.2s;
}

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

@media (max-width: 900px) {

    .jp-page {
        padding: 0 1rem;
    }

    .notebook-paper {
        padding: 2.5rem 1.5rem;
    }

    .jp-sticky-notes {
        flex-direction: column;
        align-items: center;
    }

    .polaroid.right {
        float: none;
        margin: 1rem auto;
        margin-top: 0;
        transform: rotate(0deg);
    }

    .checklist-layout {
        flex-direction: column;
        align-items: center;
    }

    .sticky-stack {
        margin-top: 1.5rem;
    }

    .note-behind,
    .sticky-stack::after {
        display: none;
    }

    .motivation-note {
        transform: rotate(0deg);
    }
}

.polaroid {
    width: 220px;
}

.polaroid-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}