@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');



/* =========================================================

   VARIABLES

========================================================= */

:root {

    --primary: #5b48d4;

    --primary-dark: #2e1f8c;

    --primary-light: #efedff;

    --accent: #a893ff;

    --accent-soft: #d9d2ff;

    --purple-soft: #f5f3ff;

    --blue-soft: #f1f5ff;

    --text: #0d1a3d;

    --text-light: #2f3a5c;

    --muted: #4a5478;

    --border: #e0e2f0;

    --white: #ffffff;

    --background: #f6f7fe;

    --arrow: #6a6a95;

    --success: #1f9c6a;

    --danger: #d94a5e;

    --shadow: 0 8px 25px rgba(65, 60, 135, 0.08);

    --shadow-hover: 0 14px 35px rgba(65, 60, 135, 0.14);

}



/* =========================================================

   RESET

========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }



body {

    min-height: 100vh;

    background:

        radial-gradient(circle at 10% 10%, rgba(221, 217, 255, 0.45), transparent 25%),

        radial-gradient(circle at 90% 30%, rgba(220, 235, 255, 0.4), transparent 25%),

        var(--background);

    color: var(--text);

    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    font-size: 15px;

    line-height: 1.65;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

ul { list-style: none; }



::selection {

    background: rgba(118, 98, 233, 0.25);

    color: var(--primary-dark);

}



/* =========================================================

   SITE HEADER

========================================================= */

.site-header {

    position: sticky;

    top: 12px;

    z-index: 999;

    width: min(1150px, calc(100% - 32px));

    margin: 12px auto 0;

}

.header-inner {

    position: relative;

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 10px 18px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(220, 222, 240, 0.9);

    border-radius: 14px;

    box-shadow: 0 6px 22px rgba(56, 52, 125, 0.07);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    transition: box-shadow 0.3s ease, background 0.3s ease;

}

.site-header.scrolled .header-inner {

    box-shadow: 0 14px 34px rgba(54, 51, 110, 0.14);

    background: rgba(255, 255, 255, 0.98);

}

.header-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-family: 'Sora', sans-serif;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.1em;

    color: var(--primary-dark);

    flex-shrink: 0;

}

.header-brand img {

    width: 28px; height: 28px;

    padding: 3px;

    border-radius: 50%;

    background: rgba(118, 98, 233, 0.12);

    object-fit: contain;

}

.header-collapse {

    display: flex;

    align-items: center;

    gap: 22px;

    margin-left: auto;

}

.header-nav {

    display: flex;

    align-items: center;

    gap: 4px;

}

.header-nav a {

    padding: 7px 12px;

    font-size: 11.5px;

    font-weight: 600;

    color: #3a4467;

    border-radius: 8px;

    transition: color 0.2s ease, background 0.2s ease;

}

.header-nav a:hover {

    color: var(--primary);

    background: rgba(118, 98, 233, 0.08);

}

.header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

}

.header-profile {

    width: 38px; height: 38px;

    display: grid; place-items: center;

    border-radius: 50%;

    background: linear-gradient(135deg, #f0edff, #e0d9ff);

    border: 1px solid #d9d2ff;

    overflow: hidden;

    transition: transform 0.2s ease, box-shadow 0.2s ease;

    flex-shrink: 0;

}

.header-profile:hover {

    transform: translateY(-2px) scale(1.05);

    box-shadow: 0 8px 18px rgba(98, 82, 220, 0.28);

}

.header-profile img { width: 100%; height: 100%; object-fit: cover; }



.header-cta {

    display: inline-flex;

    align-items: center;

    padding: 10px 20px;

    font-family: 'Sora', sans-serif;

    font-size: 11.5px;

    font-weight: 700;

    letter-spacing: 0.02em;

    color: #fff;

    background: linear-gradient(135deg, #7765ed, #5945ce);

    border-radius: 999px;

    box-shadow: 0 7px 17px rgba(98, 82, 220, 0.28);

    transition: transform 0.25s ease, box-shadow 0.25s ease;

    white-space: nowrap;

}

.header-cta:hover {

    transform: translateY(-2px);

    box-shadow: 0 12px 24px rgba(98, 82, 220, 0.36);

}



.logout-btn {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 14px;

    font-family: 'Sora', sans-serif;

    font-size: 11px;

    font-weight: 700;

    color: #b3324a;

    background: rgba(217, 74, 94, 0.08);

    border: 1px solid rgba(217, 74, 94, 0.22);

    border-radius: 999px;

    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;

    white-space: nowrap;

}

.logout-btn svg { width: 14px; height: 14px; }

.logout-btn:hover {

    color: #fff;

    background: linear-gradient(135deg, #e46476, #c93a4d);

    border-color: transparent;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(217, 74, 94, 0.28);

}



/* =========================================================

   BURGER TOGGLE — hidden on desktop

========================================================= */

.nav-toggle { display: none; }

.nav-toggle-label { display: none; }



/* =========================================================

   MAIN

========================================================= */

main {

    width: min(1050px, calc(100% - 35px));

    margin: auto;

    padding: 20px 0 70px;

}

main > div { margin: 14px 0; }

main > h1 {

    margin: 26px 2px 2px;

    font-size: clamp(19px, 2.6vw, 25px);

}

main h1,

main h2 {

    font-family: 'Sora', sans-serif;

    color: var(--text);

    font-weight: 800;

    letter-spacing: -0.02em;

    line-height: 1.25;

}

main h3 {

    font-family: 'Plus Jakarta Sans', sans-serif;

    color: var(--text-light);

    font-size: 13px;

    font-weight: 500;

    line-height: 1.65;

}

main h4 {

    font-family: 'Plus Jakarta Sans', sans-serif;

    color: var(--text-light);

    font-size: 11px;

    font-weight: 500;

    line-height: 1.6;

}



/* =========================================================

   DISCLAIMER

========================================================= */

#disclaimer {

    position: relative;

    display: grid;

    grid-template-columns: 52px minmax(0, 1fr);

    column-gap: 18px;

    align-items: start;

    margin: 22px 0 26px;

    padding: 22px 26px 24px;

    overflow: hidden;

    background:

        radial-gradient(circle at 0% 0%, rgba(255, 231, 190, 0.5), transparent 55%),

        linear-gradient(135deg, #fffdf8 0%, #fff7ea 100%);

    border: 1px solid #f2ddb6;

    border-left: 4px solid #e8a03a;

    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(180, 130, 40, 0.1);

}

#disclaimer::after {

    content: "";

    position: absolute;

    top: -70px;

    right: -40px;

    width: 220px;

    height: 220px;

    background: radial-gradient(circle, rgba(255, 205, 120, 0.3), transparent 70%);

    pointer-events: none;

}

.disclaimer-icon {

    position: relative;

    z-index: 1;

    width: 52px;

    height: 52px;

    display: grid;

    place-items: center;

    color: #c97d16;

    background: linear-gradient(145deg, #fff6e4, #ffe9c2);

    border: 1px solid #f0d194;

    border-radius: 50%;

    box-shadow: 0 5px 14px rgba(200, 140, 30, 0.16);

}

.disclaimer-icon svg { width: 24px; height: 24px; }

.disclaimer-body { position: relative; z-index: 1; }

.disclaimer-badge {

    display: inline-block;

    margin-bottom: 7px;

    padding: 3px 11px;

    color: #a0650d;

    background: rgba(232, 160, 58, 0.16);

    border: 1px solid rgba(232, 160, 58, 0.32);

    border-radius: 999px;

    font-family: 'Sora', sans-serif;

    font-size: 9.5px;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;

}

#disclaimer h2 {

    margin: 0 0 8px;

    color: #7a4c08;

    font-family: 'Sora', sans-serif;

    font-size: 16px;

    font-weight: 800;

    letter-spacing: -0.01em;

    line-height: 1.3;

}

#disclaimer p {

    margin: 0;

    color: #6b5a3d;

    font-size: 11.5px;

    font-weight: 500;

    line-height: 1.75;

}



/* =========================================================

   HERO — illustration as full background (both students visible)

========================================================= */

#studySmarter {

    position: relative;

    min-height: 400px;

    padding: 60px 45px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    background: #f3f1ff;

    border: 1px solid #e0e2f2;

    border-radius: 22px;

    box-shadow: var(--shadow);

}



/* illustration fills the ENTIRE card as a background layer */

#studySmarter > img {

    position: absolute;

    top: 0; right: 0; bottom: 0; left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center center;

    opacity: 1;

    z-index: 0;

    pointer-events: none;

    margin: 0;

    filter: none;

    animation: none;

    -webkit-mask-image: none;

    mask-image: none;

}



/* soft radial glow so text stays readable over the illustration */

#studySmarter::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background: radial-gradient(

        ellipse 55% 65% at 50% 50%,

        rgba(255, 255, 255, 0.9) 0%,

        rgba(255, 255, 255, 0.65) 40%,

        rgba(255, 255, 255, 0) 78%

    );

}



/* text sits above image + glow */

#studySmarter > h2,

#studySmarter > h3,

#studySmarter > a {

    position: relative;

    z-index: 2;

    text-align: center;

}

#studySmarter h2 {

    max-width: 560px;

    font-size: clamp(28px, 4vw, 42px);

    color: var(--text);

    letter-spacing: -0.035em;

    line-height: 1.15;

}

#studySmarter h3 {

    max-width: 520px;

    margin-top: 14px;

    font-size: 13px;

    font-weight: 500;

    color: var(--text-light);

    line-height: 1.7;

}

#studySmarter > a {

    width: fit-content;

    margin-top: 22px;

    padding: 11px 20px;

    color: white;

    background: linear-gradient(135deg, #7662e9, #5944ce);

    border-radius: 11px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.02em;

    box-shadow: 0 8px 18px rgba(98, 82, 220, 0.26);

    transition: transform 0.25s ease, box-shadow 0.25s ease;

}

#studySmarter > a:hover {

    transform: translateY(-3px);

    box-shadow: 0 13px 25px rgba(98, 82, 220, 0.32);

}



/* =========================================================

   MBTI / STUDY HABITS CARDS

========================================================= */

#whatIs,

#whatAreStudyHabbits {

    min-height: 105px;

    padding: 20px 26px;

    display: grid;

    grid-template-columns: 85px 1fr;

    column-gap: 20px;

    align-items: center;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: 0 5px 18px rgba(63, 60, 130, 0.06);

    transition: transform 0.25s ease, box-shadow 0.25s ease;

}

#whatIs:hover,

#whatAreStudyHabbits:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);

}

#whatIs img,

#whatAreStudyHabbits img {

    grid-row: 1 / span 3;

    width: 72px;

    height: 72px;

    padding: 10px;

    object-fit: contain;

    background: linear-gradient(145deg, #f0eeff, #e7e4ff);

    border-radius: 50%;

}

#whatIs h2,

#whatAreStudyHabbits h2 { font-size: 17px; }

#whatIs h3,

#whatAreStudyHabbits h3 {

    margin-top: 4px;

    font-size: 12px;

    color: var(--text-light);

}

#whatIs a {

    display: inline-block;

    margin-top: 6px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.02em;

}



/* =========================================================

   WHY PERSONIUM

========================================================= */

#whyPersonium {

    display: grid;

    grid-template-columns:

        minmax(0, 1fr) 30px

        minmax(0, 1fr) 30px

        minmax(0, 1fr) 30px

        minmax(0, 1fr) 30px

        minmax(0, 1fr);

    column-gap: 0;

    row-gap: 12px;

    align-items: center;

    justify-items: center;

    padding: 28px 30px 32px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);

}

#whyPersonium > h2 {

    grid-column: 1 / -1;

    grid-row: 1;

    justify-self: start;

    width: 100%;

    margin-bottom: 4px;

    font-size: 20px;

}

#whyPersonium > h3:nth-of-type(1) {

    grid-column: 1 / -1;

    grid-row: 2;

    justify-self: start;

    width: 100%;

    margin-bottom: 22px;

    font-size: 12.5px;

    line-height: 1.7;

    font-weight: 500;

    color: var(--text-light);

}

#whyPersonium > img {

    width: 64px;

    height: 64px;

    padding: 14px;

    object-fit: contain;

    background: linear-gradient(145deg, #ffffff, #f0eeff);

    border: 1px solid #dcd8ff;

    border-radius: 50%;

    box-shadow:

        inset 0 0 0 4px rgba(238, 235, 255, 0.75),

        0 6px 14px rgba(82, 70, 170, 0.09);

    transition: transform 0.25s ease, box-shadow 0.25s ease;

}

#whyPersonium > img:hover {

    transform: translateY(-4px) scale(1.06);

    box-shadow: 0 10px 20px rgba(82, 70, 170, 0.16);

}

#whyPersonium > h3:nth-of-type(2),

#whyPersonium > h3:nth-of-type(3),

#whyPersonium > h3:nth-of-type(4),

#whyPersonium > h3:nth-of-type(5) {

    color: var(--arrow);

    font-size: 20px;

    font-weight: 700;

    line-height: 1;

    margin: 0;

    padding: 0;

    text-align: center;

    pointer-events: none;

    user-select: none;

}

#whyPersonium > h1 {

    margin: 0;

    padding: 0;

    font-family: 'Sora', sans-serif;

    font-size: 12px;

    font-weight: 700;

    color: var(--text);

    text-align: center;

    line-height: 1.3;

    letter-spacing: -0.01em;

}

#whyPersonium > img:nth-of-type(1) { grid-area: 3 / 1; }

#whyPersonium > img:nth-of-type(2) { grid-area: 3 / 3; }

#whyPersonium > img:nth-of-type(3) { grid-area: 3 / 5; }

#whyPersonium > img:nth-of-type(4) { grid-area: 3 / 7; }

#whyPersonium > img:nth-of-type(5) { grid-area: 3 / 9; }

#whyPersonium > h3:nth-of-type(2) { grid-area: 3 / 2; }

#whyPersonium > h3:nth-of-type(3) { grid-area: 3 / 4; }

#whyPersonium > h3:nth-of-type(4) { grid-area: 3 / 6; }

#whyPersonium > h3:nth-of-type(5) { grid-area: 3 / 8; }

#whyPersonium > h1:nth-of-type(1) { grid-area: 4 / 1; }

#whyPersonium > h1:nth-of-type(2) { grid-area: 4 / 3; }

#whyPersonium > h1:nth-of-type(3) { grid-area: 4 / 5; }

#whyPersonium > h1:nth-of-type(4) { grid-area: 4 / 7; }

#whyPersonium > h1:nth-of-type(5) { grid-area: 4 / 9; }



#whyPersonium:has(.reason-list) { display: block; }

.reason-list {

    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    align-items: start;

    justify-items: center;

    gap: 12px 0;

}

.reason-item {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    padding: 0 6px;

    text-align: center;

}

.reason-item:not(:last-child)::after {

    content: "➡";

    position: absolute;

    top: 22px;

    right: -9px;

    color: var(--arrow);

    font-size: 16px;

    font-weight: 700;

    line-height: 1;

    pointer-events: none;

    user-select: none;

}

.reason-item img {

    width: 64px;

    height: 64px;

    padding: 14px;

    object-fit: contain;

    background: linear-gradient(145deg, #ffffff, #f0eeff);

    border: 1px solid #dcd8ff;

    border-radius: 50%;

    box-shadow:

        inset 0 0 0 4px rgba(238, 235, 255, 0.75),

        0 6px 14px rgba(82, 70, 170, 0.09);

    transition: transform 0.25s ease, box-shadow 0.25s ease;

}

.reason-item img:hover {

    transform: translateY(-4px) scale(1.06);

    box-shadow: 0 10px 20px rgba(82, 70, 170, 0.16);

}

.reason-item span {

    font-family: 'Sora', sans-serif;

    font-size: 12px;

    font-weight: 700;

    color: var(--text);

    line-height: 1.3;

    letter-spacing: -0.01em;

}



/* =========================================================

   HOW IT WORKS

========================================================= */

#howItWorks {

    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    column-gap: 6px;

    row-gap: 0;

    padding: 28px 30px 32px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);

}

#howItWorks > h2 {

    grid-column: 1 / -1;

    grid-row: 1;

    margin-bottom: 6px;

    font-size: 20px;

}

#howItWorks > h3:nth-of-type(1) {

    grid-column: 1 / -1;

    grid-row: 2;

    margin-bottom: 26px;

    font-size: 12.5px;

    font-weight: 500;

    color: var(--text-light);

}

#howItWorks > img {

    justify-self: center;

    align-self: start;

    width: 64px;

    height: 64px;

    padding: 14px;

    object-fit: contain;

    background: linear-gradient(145deg, #ffffff, #f0eeff);

    border: 1px solid #d9d5ff;

    border-radius: 50%;

    box-shadow: 0 5px 14px rgba(79, 68, 166, 0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    z-index: 2;

}

#howItWorks > img:hover {

    transform: translateY(-4px) scale(1.06);

    box-shadow: 0 10px 20px rgba(79, 68, 166, 0.16);

}

#howItWorks > h3:nth-of-type(2),

#howItWorks > h3:nth-of-type(4),

#howItWorks > h3:nth-of-type(6),

#howItWorks > h3:nth-of-type(8),

#howItWorks > h3:nth-of-type(10),

#howItWorks > h3:nth-of-type(12) {

    justify-self: end;

    align-self: start;

    margin-top: 22px;

    padding-right: 2px;

    color: var(--arrow);

    font-size: 20px;

    font-weight: 700;

    line-height: 1;

    pointer-events: none;

    user-select: none;

    z-index: 3;

}

#howItWorks > h3:nth-of-type(3),

#howItWorks > h3:nth-of-type(5),

#howItWorks > h3:nth-of-type(7),

#howItWorks > h3:nth-of-type(9),

#howItWorks > h3:nth-of-type(11),

#howItWorks > h3:nth-of-type(13) {

    align-self: start;

    margin-top: 16px;

    padding: 0 6px;

    text-align: center;

    color: var(--text);

    font-family: 'Sora', sans-serif;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.01em;

}

#howItWorks > h4 {

    align-self: start;

    margin-top: 6px;

    padding: 0 8px;

    text-align: center;

    color: var(--text-light);

    font-size: 10.5px;

    font-weight: 500;

    line-height: 1.55;

}

#howItWorks > img:nth-of-type(1) { grid-area: 3 / 1; }

#howItWorks > img:nth-of-type(2) { grid-area: 3 / 2; }

#howItWorks > img:nth-of-type(3) { grid-area: 3 / 3; }

#howItWorks > img:nth-of-type(4) { grid-area: 3 / 4; }

#howItWorks > img:nth-of-type(5) { grid-area: 3 / 5; }

#howItWorks > img:nth-of-type(6) { grid-area: 3 / 6; }

#howItWorks > h3:nth-of-type(2)  { grid-area: 3 / 1; }

#howItWorks > h3:nth-of-type(4)  { grid-area: 3 / 2; }

#howItWorks > h3:nth-of-type(6)  { grid-area: 3 / 3; }

#howItWorks > h3:nth-of-type(8)  { grid-area: 3 / 4; }

#howItWorks > h3:nth-of-type(10) { grid-area: 3 / 5; }

#howItWorks > h3:nth-of-type(12) { grid-area: 3 / 6; }

#howItWorks > h3:nth-of-type(3)  { grid-area: 4 / 1; }

#howItWorks > h3:nth-of-type(5)  { grid-area: 4 / 2; }

#howItWorks > h3:nth-of-type(7)  { grid-area: 4 / 3; }

#howItWorks > h3:nth-of-type(9)  { grid-area: 4 / 4; }

#howItWorks > h3:nth-of-type(11) { grid-area: 4 / 5; }

#howItWorks > h3:nth-of-type(13) { grid-area: 4 / 6; }

#howItWorks > h4:nth-of-type(1) { grid-area: 5 / 1; }

#howItWorks > h4:nth-of-type(2) { grid-area: 5 / 2; }

#howItWorks > h4:nth-of-type(3) { grid-area: 5 / 3; }

#howItWorks > h4:nth-of-type(4) { grid-area: 5 / 4; }

#howItWorks > h4:nth-of-type(5) { grid-area: 5 / 5; }

#howItWorks > h4:nth-of-type(6) { grid-area: 5 / 6; }



#howItWorks:has(.work-list) { display: block; }

.work-list {

    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 20px 14px;

}

.work-step {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    padding: 0 2px;

    text-align: center;

}

.work-step img {

    width: 64px;

    height: 64px;

    padding: 14px;

    object-fit: contain;

    background: linear-gradient(145deg, #ffffff, #f0eeff);

    border: 1px solid #d9d5ff;

    border-radius: 50%;

    box-shadow: 0 5px 14px rgba(79, 68, 166, 0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.work-step img:hover {

    transform: translateY(-4px) scale(1.06);

    box-shadow: 0 10px 20px rgba(79, 68, 166, 0.16);

}

.work-step h3 {

    margin: 0;

    color: var(--text);

    font-family: 'Sora', sans-serif;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.01em;

}

.work-step h4 {

    margin: 0;

    color: var(--text-light);

    font-size: 10.5px;

    font-weight: 500;

    line-height: 1.55;

}



/* =========================================================

   REMEMBER

========================================================= */

#rememberMbti {

    padding: 22px 28px;

    background: linear-gradient(100deg, #efedff, #f6f6ff);

    border: 1px solid #d8d5f5;

    border-radius: 15px;

    box-shadow: 0 5px 18px rgba(70, 63, 140, 0.06);

}

#rememberMbti h1 {

    margin-bottom: 4px;

    color: var(--primary-dark);

    font-family: 'Sora', sans-serif;

    font-size: 18px;

    font-weight: 800;

}

#rememberMbti h2 {

    max-width: 880px;

    color: var(--text-light);

    font-size: 12.5px;

    font-weight: 500;

    line-height: 1.65;

    letter-spacing: 0;

}



/* =========================================================

   DID YOU KNOW — CAROUSEL

========================================================= */

#didYouKnow {

    padding: 22px 26px 26px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);

}

#didYouKnow > h1 {

    margin-bottom: 6px;

    color: var(--text);

    font-family: 'Sora', sans-serif;

    font-size: 19px;

    font-weight: 800;

}

#didYouKnow > h4 {

    max-width: 880px;

    margin-bottom: 20px;

    font-size: 11px;

    font-weight: 500;

    color: var(--muted);

}

.fact-carousel {

    position: relative;

    overflow: hidden;

    border-radius: 16px;

    -webkit-mask-image: linear-gradient(

        to right, transparent 0, #000 6%, #000 94%, transparent 100%

    );

    mask-image: linear-gradient(

        to right, transparent 0, #000 6%, #000 94%, transparent 100%

    );

}

.fact-viewport { overflow: hidden; }

.fact-track {

    display: flex;

    gap: 18px;

    margin: 0;

    padding: 14px 0;

    list-style: none;

    width: max-content;

    animation: factScrollRightToLeft 55s linear infinite;

    will-change: transform;

}

@keyframes factScrollRightToLeft {

    from { transform: translate3d(0, 0, 0); }

    to   { transform: translate3d(-50%, 0, 0); }

}

.fact-carousel:hover .fact-track,

.fact-carousel:focus-within .fact-track {

    animation-play-state: paused;

}

.fact-slide {

    flex: 0 0 300px;

    width: 300px;

    list-style: none;

}

.fact-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 14px;

    height: 100%;

    min-height: 210px;

    padding: 24px 20px 26px;

    background: linear-gradient(160deg, #ffffff 0%, #f4f1ff 100%);

    border: 1px solid #e5e1fb;

    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(82, 70, 170, 0.08);

    transition:

        transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),

        box-shadow 0.4s ease,

        border-color 0.4s ease;

    user-select: none;

}

.fact-card:hover {

    transform: translateY(-6px);

    border-color: #cdc4ff;

    box-shadow: 0 14px 30px rgba(98, 82, 220, 0.18);

}

.fact-media {

    width: 70px;

    height: 70px;

    display: grid;

    place-items: center;

    overflow: hidden;

    background: linear-gradient(145deg, #ffffff, #ece8ff);

    border: 1px solid #ddd8ff;

    border-radius: 50%;

    box-shadow:

        inset 0 0 0 4px rgba(240, 237, 255, 0.85),

        0 6px 14px rgba(82, 70, 170, 0.12);

    flex-shrink: 0;

}

.fact-media img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 50%;

}

.fact-copy {

    margin: 0;

    color: var(--text-light);

    font-size: 11.5px;

    font-weight: 500;

    line-height: 1.65;

}

.fact-copy strong {

    color: var(--text);

    font-weight: 700;

}



/* =========================================================

   FINAL CTA

========================================================= */

main > a:last-of-type {

    display: block;

    width: fit-content;

    margin: 30px auto 8px;

    padding: 12px 24px;

    color: white;

    background: linear-gradient(135deg, #7662e9, #5944ce);

    border-radius: 10px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: 11.5px;

    font-weight: 800;

    letter-spacing: 0.02em;

    box-shadow: 0 9px 20px rgba(98, 82, 220, 0.26);

    transition: transform 0.25s ease, box-shadow 0.25s ease;

}

main > a:last-of-type:hover {

    transform: translateY(-3px);

    box-shadow: 0 13px 25px rgba(98, 82, 220, 0.32);

}

main > a:last-of-type ~ h3 {

    text-align: center;

    color: var(--text);

    font-family: 'Sora', sans-serif;

    font-size: 16px;

    font-weight: 700;

}

main > a:last-of-type ~ h4 {

    max-width: 680px;

    margin: 5px auto 0;

    text-align: center;

    font-size: 11px;

    font-weight: 500;

    color: var(--text-light);

}



/* =========================================================

   SCROLL ANIMATION (base)

========================================================= */

.reveal {

    opacity: 0;

    transform: translateY(25px);

    transition:

        opacity 0.65s ease,

        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);

}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal.delay-1 { transition-delay: 0.08s; }

.reveal.delay-2 { transition-delay: 0.16s; }

.reveal.delay-3 { transition-delay: 0.24s; }

.reveal.delay-4 { transition-delay: 0.32s; }



/* =========================================================

   TABLET (≤ 900px)

========================================================= */

@media (max-width: 900px) {

    .site-header { width: calc(100% - 25px); }

    .header-nav a { padding: 6px 8px; font-size: 10.5px; }



    /* HERO — image as background, both students visible */

    #studySmarter {

        min-height: 380px;

        padding: 55px 32px;

    }

    #studySmarter > img {

        object-fit: cover;

        object-position: center center;

    }

    #studySmarter h2 { font-size: 30px; max-width: 500px; }

    #studySmarter h3 { font-size: 12px; max-width: 460px; }



    #whyPersonium {

        grid-template-columns:

            minmax(0, 1fr) 22px

            minmax(0, 1fr) 22px

            minmax(0, 1fr) 22px

            minmax(0, 1fr) 22px

            minmax(0, 1fr);

        padding: 22px 20px 26px;

    }

    #whyPersonium > img { width: 56px; height: 56px; padding: 12px; }

    #whyPersonium > h3:nth-of-type(2),

    #whyPersonium > h3:nth-of-type(3),

    #whyPersonium > h3:nth-of-type(4),

    #whyPersonium > h3:nth-of-type(5) { font-size: 17px; }

    #whyPersonium > h1 { font-size: 11px; }



    .reason-item img { width: 56px; height: 56px; padding: 12px; }

    .reason-item span { font-size: 11px; }

    .reason-item:not(:last-child)::after {

        font-size: 14px;

        right: -7px;

        top: 19px;

    }



    #howItWorks {

        grid-template-columns: repeat(3, minmax(0, 1fr));

        column-gap: 14px;

        row-gap: 10px;

    }

    .work-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }



    #howItWorks > h3:nth-of-type(2),

    #howItWorks > h3:nth-of-type(4),

    #howItWorks > h3:nth-of-type(6),

    #howItWorks > h3:nth-of-type(8),

    #howItWorks > h3:nth-of-type(10),

    #howItWorks > h3:nth-of-type(12) { display: none; }



    #howItWorks > img:nth-of-type(1) { grid-area: 3 / 1; }

    #howItWorks > img:nth-of-type(2) { grid-area: 3 / 2; }

    #howItWorks > img:nth-of-type(3) { grid-area: 3 / 3; }

    #howItWorks > h3:nth-of-type(3)  { grid-area: 4 / 1; }

    #howItWorks > h3:nth-of-type(5)  { grid-area: 4 / 2; }

    #howItWorks > h3:nth-of-type(7)  { grid-area: 4 / 3; }

    #howItWorks > h4:nth-of-type(1)  { grid-area: 5 / 1; }

    #howItWorks > h4:nth-of-type(2)  { grid-area: 5 / 2; }

    #howItWorks > h4:nth-of-type(3)  { grid-area: 5 / 3; }

    #howItWorks > img:nth-of-type(4) { grid-area: 6 / 1; }

    #howItWorks > img:nth-of-type(5) { grid-area: 6 / 2; }

    #howItWorks > img:nth-of-type(6) { grid-area: 6 / 3; }

    #howItWorks > h3:nth-of-type(9)  { grid-area: 7 / 1; }

    #howItWorks > h3:nth-of-type(11) { grid-area: 7 / 2; }

    #howItWorks > h3:nth-of-type(13) { grid-area: 7 / 3; }

    #howItWorks > h4:nth-of-type(4)  { grid-area: 8 / 1; }

    #howItWorks > h4:nth-of-type(5)  { grid-area: 8 / 2; }

    #howItWorks > h4:nth-of-type(6)  { grid-area: 8 / 3; }



    .fact-track { gap: 14px; }

    .fact-slide { flex: 0 0 260px; width: 260px; }

    .fact-card { min-height: 195px; padding: 20px 16px 22px; }

    .fact-media { width: 60px; height: 60px; }

    .fact-copy { font-size: 11px; }

}



/* =========================================================

   MOBILE — Burger menu (≤ 780px)

========================================================= */

@media (max-width: 780px) {



    /* header */

    .header-inner {

        flex-wrap: wrap;

        gap: 12px;

        padding: 10px 14px;

        align-items: center;

    }

    .header-brand { gap: 8px; }

    .header-brand img { width: 24px; height: 24px; }

    .header-brand span { font-size: 12px; }



    .nav-toggle-label {

        display: flex;

        margin-left: auto;

        cursor: pointer;

        width: 40px;

        height: 40px;

        border-radius: 11px;

        background: rgba(98, 82, 220, 0.08);

        border: 1px solid rgba(98, 82, 220, 0.15);

        align-items: center;

        justify-content: center;

        flex-direction: column;

        gap: 4px;

        transition: background 0.25s ease, border-color 0.25s ease;

        -webkit-tap-highlight-color: transparent;

        user-select: none;

    }

    .nav-toggle-label:hover,

    .nav-toggle-label:active {

        background: rgba(98, 82, 220, 0.16);

        border-color: rgba(98, 82, 220, 0.28);

    }

    .nav-toggle-label span {

        display: block;

        width: 18px;

        height: 2px;

        border-radius: 2px;

        background: var(--primary);

        transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease;

        transform-origin: center;

    }



    .header-collapse {

        flex: 0 0 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 6px;

        margin-left: 0;

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        transform: translateY(-8px);

        transition:

            max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),

            opacity 0.25s ease,

            transform 0.3s ease,

            margin-top 0.35s ease,

            padding-top 0.35s ease;

    }

    .nav-toggle:checked ~ .header-collapse {

        max-height: 700px;

        opacity: 1;

        transform: translateY(0);

        margin-top: 10px;

        padding-top: 12px;

        border-top: 1px solid var(--border);

    }



    .header-nav {

        flex-direction: column;

        align-items: stretch;

        gap: 6px;

        width: 100%;

    }

    .header-nav a {

        width: 100%;

        text-align: center;

        padding: 12px 14px;

        font-size: 12.5px;

        border-radius: 10px;

        background: rgba(98, 82, 220, 0.06);

        border: 1px solid rgba(98, 82, 220, 0.12);

    }

    .header-nav a:hover {

        background: rgba(98, 82, 220, 0.12);

        transform: none;

    }



    .header-actions {

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

        gap: 10px;

        width: 100%;

        margin-top: 8px;

        padding-top: 12px;

        border-top: 1px dashed rgba(98, 82, 220, 0.22);

    }

    .header-profile { width: 46px; height: 46px; }

    .logout-btn {

        flex: 1;

        justify-content: center;

        padding: 13px 18px;

        font-size: 12.5px;

        gap: 8px;

        border-radius: 12px;

        max-width: 220px;

    }

    .logout-btn svg { width: 16px; height: 16px; }

    .logout-btn span { display: inline; }



    .header-cta {

        width: 100%;

        justify-content: center;

        padding: 13px 18px;

        font-size: 12.5px;

    }



    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {

        transform: translateY(6px) rotate(45deg);

    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {

        opacity: 0;

        transform: scaleX(0);

    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {

        transform: translateY(-6px) rotate(-45deg);

    }



    main { width: calc(100% - 16px); padding-top: 13px; }



    #disclaimer {

        grid-template-columns: 40px minmax(0, 1fr);

        column-gap: 12px;

        row-gap: 0;

        align-items: start;

        margin: 14px 0 18px;

        padding: 16px 16px 18px;

        border-left-width: 3px;

        border-radius: 13px;

    }

    .disclaimer-icon { width: 40px; height: 40px; margin-top: 2px; }

    .disclaimer-icon svg { width: 18px; height: 18px; }

    .disclaimer-body { min-width: 0; }

    .disclaimer-badge {

        margin-bottom: 6px;

        padding: 2px 9px;

        font-size: 8.5px;

        letter-spacing: 0.1em;

    }

    #disclaimer h2 { margin: 0 0 6px; font-size: 13.5px; line-height: 1.35; }

    #disclaimer p { font-size: 11px; line-height: 1.65; }



    #studySmarter {

    min-height: 0;

    padding: 26px 22px 150px;   /* less bottom space so image hugs text */

    justify-content: flex-start;

    align-items: center;

    text-align: center;

    border-radius: 19px;

    background: #f3f1ff;

}

#studySmarter > img {

    object-fit: contain;

    object-position: center 28%;  /* lifts the image toward the top */

}

#studySmarter::after {

    display: none;                /* removes the white gradient overlay */

}

#studySmarter h2 {

    font-size: 24px;

    max-width: 100%;

    line-height: 1.2;

    margin-top: 0;

}

#studySmarter h3 {

    font-size: 11.5px;

    max-width: 100%;

    margin-top: 10px;

}

#studySmarter > a {

    margin-top: 16px;

    padding: 10px 18px;

    font-size: 10.5px;

}



    #whatIs,

    #whatAreStudyHabbits {

        grid-template-columns: 58px 1fr;

        column-gap: 13px;

        padding: 17px;

    }

    #whatIs img,

    #whatAreStudyHabbits img { width: 58px; height: 58px; }

    #whatIs h2,

    #whatAreStudyHabbits h2 { font-size: 15px; }

    #whatIs h3,

    #whatAreStudyHabbits h3 { font-size: 10.5px; }



    #whyPersonium,

    #howItWorks,

    #rememberMbti,

    #didYouKnow { padding: 18px; }



    #whyPersonium > h2,

    #howItWorks > h2 { font-size: 17px; }

    #whyPersonium > h3:nth-of-type(1),

    #howItWorks > h3:nth-of-type(1) { font-size: 11px; }



    #whyPersonium {

        grid-template-columns:

            minmax(0, 1fr) 16px

            minmax(0, 1fr) 16px

            minmax(0, 1fr) 16px

            minmax(0, 1fr) 16px

            minmax(0, 1fr);

        row-gap: 10px;

    }

    #whyPersonium > img { width: 46px; height: 46px; padding: 10px; }

    #whyPersonium > h3:nth-of-type(2),

    #whyPersonium > h3:nth-of-type(3),

    #whyPersonium > h3:nth-of-type(4),

    #whyPersonium > h3:nth-of-type(5) { font-size: 13px; }

    #whyPersonium > h1 { font-size: 9px; }



    .reason-list { gap: 10px 0; }

    .reason-item { gap: 8px; padding: 0 3px; }

    .reason-item img { width: 46px; height: 46px; padding: 10px; }

    .reason-item span { font-size: 9px; }

    .reason-item:not(:last-child)::after {

        font-size: 11px;

        right: -6px;

        top: 15px;

    }



    #howItWorks {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 14px;

        row-gap: 18px;

    }

    #howItWorks > h3:nth-of-type(1) { margin-bottom: 20px; }



    #howItWorks > img:nth-of-type(1) { grid-area: 3 / 1; }

    #howItWorks > img:nth-of-type(2) { grid-area: 3 / 2; }

    #howItWorks > h3:nth-of-type(3)  { grid-area: 4 / 1; }

    #howItWorks > h3:nth-of-type(5)  { grid-area: 4 / 2; }

    #howItWorks > h4:nth-of-type(1)  { grid-area: 5 / 1; }

    #howItWorks > h4:nth-of-type(2)  { grid-area: 5 / 2; }

    #howItWorks > img:nth-of-type(3) { grid-area: 6 / 1; }

    #howItWorks > img:nth-of-type(4) { grid-area: 6 / 2; }

    #howItWorks > h3:nth-of-type(7)  { grid-area: 7 / 1; }

    #howItWorks > h3:nth-of-type(9)  { grid-area: 7 / 2; }

    #howItWorks > h4:nth-of-type(3)  { grid-area: 8 / 1; }

    #howItWorks > h4:nth-of-type(4)  { grid-area: 8 / 2; }

    #howItWorks > img:nth-of-type(5) { grid-area: 9 / 1; }

    #howItWorks > img:nth-of-type(6) { grid-area: 9 / 2; }

    #howItWorks > h3:nth-of-type(11) { grid-area: 10 / 1; }

    #howItWorks > h3:nth-of-type(13) { grid-area: 10 / 2; }

    #howItWorks > h4:nth-of-type(5)  { grid-area: 11 / 1; }

    #howItWorks > h4:nth-of-type(6)  { grid-area: 11 / 2; }



    #howItWorks > img { width: 52px; height: 52px; padding: 11px; }

    #howItWorks > h3:nth-of-type(3),

    #howItWorks > h3:nth-of-type(5),

    #howItWorks > h3:nth-of-type(7),

    #howItWorks > h3:nth-of-type(9),

    #howItWorks > h3:nth-of-type(11),

    #howItWorks > h3:nth-of-type(13) {

        font-size: 11px;

        margin-top: 10px;

        padding: 0 4px;

    }

    #howItWorks > h4 { font-size: 9.5px; padding: 0 4px; }



    .work-list {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px 12px;

    }

    .work-step img { width: 52px; height: 52px; padding: 11px; }

    .work-step h3 { font-size: 11px; }

    .work-step h4 { font-size: 9.5px; }



    #didYouKnow { padding: 18px; }

    .fact-track { gap: 12px; padding: 10px 0; }

    .fact-slide { flex: 0 0 230px; width: 230px; }

    .fact-card { min-height: 185px; padding: 18px 14px 20px; gap: 12px; }

    .fact-media { width: 54px; height: 54px; }

    .fact-copy { font-size: 10.5px; line-height: 1.55; }



    #rememberMbti h1 { font-size: 16px; }

    #rememberMbti h2 { font-size: 11px; }



    main > a:last-of-type ~ h3 { font-size: 14px; }

}



/* =========================================================

   SMALL MOBILE (≤ 420px)

========================================================= */

@media (max-width: 420px) {

    .header-inner { padding: 9px 12px; gap: 10px; }

    .header-brand img { width: 22px; height: 22px; }

    .header-brand span { font-size: 11px; letter-spacing: 0.08em; }

    .nav-toggle-label { width: 36px; height: 36px; border-radius: 10px; }

    .nav-toggle-label span { width: 16px; }

    .header-nav a { font-size: 12px; padding: 11px 12px; }

    .header-profile { width: 42px; height: 42px; }

    .logout-btn { font-size: 12px; padding: 12px 14px; }

    .header-cta { font-size: 12px; padding: 12px 14px; }



    #whyPersonium,

    #howItWorks { padding: 15px; }



    #whyPersonium {

        grid-template-columns:

            minmax(0, 1fr) 12px

            minmax(0, 1fr) 12px

            minmax(0, 1fr) 12px

            minmax(0, 1fr) 12px

            minmax(0, 1fr);

    }

    #whyPersonium > img { width: 40px; height: 40px; padding: 9px; }

    #whyPersonium > h3:nth-of-type(2),

    #whyPersonium > h3:nth-of-type(3),

    #whyPersonium > h3:nth-of-type(4),

    #whyPersonium > h3:nth-of-type(5) { font-size: 11px; }

    #whyPersonium > h1 { font-size: 8px; }



    .reason-item img { width: 40px; height: 40px; padding: 9px; }

    .reason-item span { font-size: 8px; }

    .reason-item:not(:last-child)::after {

        font-size: 9px;

        right: -5px;

        top: 13px;

    }



    #howItWorks > img { width: 46px; height: 46px; padding: 10px; }

    #howItWorks > h3:nth-of-type(3),

    #howItWorks > h3:nth-of-type(5),

    #howItWorks > h3:nth-of-type(7),

    #howItWorks > h3:nth-of-type(9),

    #howItWorks > h3:nth-of-type(11),

    #howItWorks > h3:nth-of-type(13) { font-size: 10px; }

    #howItWorks > h4 { font-size: 9px; }



    .work-step img { width: 46px; height: 46px; padding: 10px; }

    .work-step h3 { font-size: 10px; }

    .work-step h4 { font-size: 9px; }



    .fact-slide { flex: 0 0 200px; width: 200px; }

    .fact-card { min-height: 175px; padding: 16px 12px 18px; }

    .fact-media { width: 48px; height: 48px; }

    .fact-copy { font-size: 10px; }



    #studySmarter {

    min-height: 0;

    padding: 22px 18px 130px;

}

#studySmarter > img {

    object-fit: contain;

    object-position: center 80%;  /* image sits higher than before */

}

#studySmarter h2 { font-size: 21px; max-width: 100%; }

#studySmarter h3 { font-size: 10.5px; max-width: 100%; margin-top: 8px; }

#studySmarter > a { margin-top: 14px; padding: 9px 16px; font-size: 10px; }



    #disclaimer {

        grid-template-columns: 34px minmax(0, 1fr);

        column-gap: 10px;

        padding: 14px 14px 16px;

        margin: 12px 0 16px;

    }

    .disclaimer-icon { width: 34px; height: 34px; }

    .disclaimer-icon svg { width: 15px; height: 15px; }

    .disclaimer-badge {

        font-size: 8px;

        padding: 2px 8px;

        margin-bottom: 5px;

    }

    #disclaimer h2 { font-size: 12.5px; margin-bottom: 5px; }

    #disclaimer p { font-size: 10.5px; line-height: 1.6; }

}



/* =========================================================

   REDUCED MOTION

========================================================= */

@media (prefers-reduced-motion: reduce) {

    html { scroll-behavior: auto; }

    *, *::before, *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

    .scroll-progress { display: none; }

    .ripple { display: none; }

    .fact-track,

    .fact-card { transition: none !important; }

    .reveal,

    .reveal-up,

    .reveal-left,

    .reveal-right,

    .reveal-scale,

    .reveal-blur {

        opacity: 1 !important;

        transform: none !important;

        filter: none !important;

        transition: none !important;

    }

    #whyPersonium > img.float,

    #howItWorks > img.float,

    .reason-item img.float,

    .work-step img.float {

        animation: none !important;

    }

    .fact-track { animation: none; }

}



/* ============================================================

   SCROLL PROGRESS BAR

========================================================= */

.scroll-progress {

    position: fixed;

    top: 0; left: 0;

    width: 100%;

    height: 3px;

    background: linear-gradient(90deg, #7662e9 0%, #a893ff 50%, #7662e9 100%);

    background-size: 200% 100%;

    transform: scaleX(0);

    transform-origin: left center;

    z-index: 10000;

    pointer-events: none;

    animation: progressShimmer 3s ease-in-out infinite;

    transition: transform 0.1s linear;

}

@keyframes progressShimmer {

    0%, 100% { background-position: 0% 50%; }

    50%      { background-position: 100% 50%; }

}



/* ============================================================

   BACK TO TOP BUTTON

========================================================= */

.back-to-top {

    position: fixed;

    bottom: 24px;

    right: 24px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(135deg, #7662e9, #5944ce);

    color: #fff;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    box-shadow: 0 10px 24px rgba(98, 82, 220, 0.32);

    opacity: 0;

    transform: translateY(20px) scale(0.9);

    pointer-events: none;

    transition:

        opacity 0.35s ease,

        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),

        box-shadow 0.25s ease;

    z-index: 9999;

}

.back-to-top.visible {

    opacity: 1;

    transform: translateY(0) scale(1);

    pointer-events: auto;

}

.back-to-top:hover {

    transform: translateY(-4px) scale(1.06);

    box-shadow: 0 16px 32px rgba(98, 82, 220, 0.45);

}

.back-to-top:active {

    transform: translateY(-1px) scale(1.02);

}

.back-to-top svg { width: 20px; height: 20px; }



/* ============================================================

   REVEAL VARIANTS

========================================================= */

.reveal {

    opacity: 0;

    transition:

        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),

        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),

        filter 0.7s ease;

    will-change: opacity, transform;

}

.reveal-up     { transform: translateY(36px); }

.reveal-left   { transform: translateX(-44px); }

.reveal-right  { transform: translateX(44px); }

.reveal-scale  { transform: scale(0.94); }

.reveal-blur   { transform: translateY(22px); filter: blur(8px); }

.reveal.visible {

    opacity: 1;

    transform: translate(0, 0) scale(1);

    filter: blur(0);

}



/* ============================================================

   CARD TILT

========================================================= */

.tilt-active {

    transition:

        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),

        box-shadow 0.35s ease !important;

    will-change: transform;

}



/* ============================================================

   RIPPLE EFFECT

========================================================= */

#studySmarter > a,

main > a:last-of-type,

#whatIs a {

    position: relative;

    overflow: hidden;

}

.ripple {

    position: absolute;

    width: 14px;

    height: 14px;

    margin: -7px 0 0 -7px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    transform: scale(0);

    pointer-events: none;

    animation: ripplePop 0.75s ease-out forwards;

}

@keyframes ripplePop {

    to { transform: scale(22); opacity: 0; }

}



/* ============================================================

   ICON FLOAT

========================================================= */

@keyframes iconBob {

    0%, 100% { transform: translateY(0); }

    50%      { transform: translateY(-5px); }

}

.reason-item img.float,

.work-step img.float,

#whyPersonium > img.float,

#howItWorks > img.float {

    animation: iconBob 3s ease-in-out infinite;

}

.reason-item:nth-child(2) img.float,

.work-step:nth-child(2) img.float { animation-delay: 0.35s; }

.reason-item:nth-child(3) img.float,

.work-step:nth-child(3) img.float { animation-delay: 0.70s; }

.reason-item:nth-child(4) img.float,

.work-step:nth-child(4) img.float { animation-delay: 1.05s; }

.reason-item:nth-child(5) img.float,

.work-step:nth-child(5) img.float { animation-delay: 1.40s; }

.work-step:nth-child(6) img.float { animation-delay: 1.75s; }



/* ============================================================

   MOBILE TWEAKS

========================================================= */

@media (max-width: 650px) {

    .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }

    .scroll-progress { height: 2.5px; }

    .reveal-left, .reveal-right { transform: translateY(30px); }

}

/* ============================================================
   PERSONIUM HEADER — ENHANCED, BACKGROUND-SAFE VERSION
   HEADER ONLY. No page-content selectors are changed here.
   ============================================================ */

.site-header {
    position: sticky;
    top: 14px;
    z-index: 999;
    width: min(1160px, calc(100% - 32px));
    margin: 14px auto 0;
}

.header-inner {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 9px 12px 9px 16px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(220, 222, 240, 0.92);
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(56, 52, 125, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 16px 38px rgba(54, 51, 110, 0.15);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: var(--primary-dark);
}

.header-brand img {
    width: 30px;
    height: 30px;
    padding: 3px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f1eeff, #e4ddff);
    border: 1px solid rgba(118, 98, 233, 0.14);
    object-fit: contain;
}

.header-collapse {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

.header-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    background: rgba(118, 98, 233, 0.045);
    border: 1px solid rgba(118, 98, 233, 0.08);
    border-radius: 11px;
}

.header-nav a {
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 650;
    color: #3a4467;
    border-radius: 8px;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: var(--primary-dark);
    background: #fff;
    transform: translateY(-1px);
    outline: none;
}

.header-actions {
    flex: 0 0 auto;
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Compact PC profile — prevents collision with Logout */
.header-profile {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 3px;
    flex: 0 0 42px;
    overflow: visible;
    color: var(--primary);
    border: 1px solid rgba(118, 98, 233, 0.18);
    border-radius: 12px;
    background: linear-gradient(145deg, #f7f5ff, #ece8ff);
    box-shadow: 0 5px 13px rgba(98, 82, 220, 0.10);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.header-profile:hover,
.header-profile:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(118, 98, 233, 0.34);
    box-shadow: 0 10px 22px rgba(98, 82, 220, 0.17);
    outline: none;
}

.header-profile-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(145deg, #f1eeff, #ded7ff);
}

.header-profile-avatar > img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
}

.header-default-profile {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primary);
}

.header-default-profile svg {
    width: 20px;
    height: 20px;
}

.header-profile-copy {
    display: none;
}


/* Logout stays completely separate from profile */
.logout-btn {
    min-width: 82px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #b3324a;
    font-family: 'Sora', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid rgba(217, 74, 94, 0.20);
    border-radius: 12px;
    background: rgba(217, 74, 94, 0.06);
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.logout-btn svg {
    width: 14px;
    height: 14px;
}

.logout-btn:hover,
.logout-btn:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #e46476, #c93a4d);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(217, 74, 94, 0.25);
    outline: none;
}

.header-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    color: #fff;
    background: linear-gradient(135deg, #7765ed, #5945ce);
    border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 7px 17px rgba(98, 82, 220, 0.25);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}


/* ============================================================
   SMALLER PC / TABLET HEADER — 651px to 900px
   ============================================================ */
@media (min-width: 651px) and (max-width: 900px) {

    .site-header {
        width: calc(100% - 24px);
    }

    .header-inner {
        gap: 10px;
        padding-left: 12px;
        padding-right: 10px;
    }

    .header-brand {
        gap: 7px;
        font-size: 11px;
    }

    .header-brand img {
        width: 28px;
        height: 28px;
    }

    .nav-toggle-label {
        display: none;
    }

    .header-collapse {
        width: auto;
        max-height: none;
        margin: 0 0 0 auto;
        padding: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        overflow: visible;
        opacity: 1;
        transform: none;
        border-top: 0;
        transition: none;
    }

    .header-nav {
        width: auto;
        flex-direction: row;
        gap: 1px;
        padding: 2px;
    }

    .header-nav a {
        width: auto;
        padding: 6px 7px;
        font-size: 9.4px;
        border: 0;
        background: transparent;
    }

    .header-actions {
        width: auto;
        margin: 0;
        padding: 0;
        flex-direction: row;
        gap: 6px;
        border-top: 0;
    }

    .header-profile {
        width: 38px;
        min-width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .header-profile-avatar {
        width: 30px;
        height: 30px;
    }

    .logout-btn {
        min-width: 38px;
        min-height: 38px;
        width: 38px;
        padding: 0;
    }

    .logout-btn span {
        display: none;
    }

    .header-cta {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 9.5px;
    }
}


/* ============================================================
   MOBILE HEADER — ≤ 650px
   Keeps the mobile layout the user approved.
   ============================================================ */
@media (max-width: 650px) {

    .site-header {
        top: 10px;
        width: calc(100% - 16px);
        margin: 8px auto 0;
    }

    .header-inner {
        min-height: 54px;
        padding: 8px 10px 8px 11px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        row-gap: 8px;
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(48, 40, 108, 0.12);
    }

    .header-brand {
        min-width: 0;
        margin-right: auto;
        gap: 8px;
        font-size: 12px;
        letter-spacing: 0.075em;
    }

    .header-brand img {
        width: 28px;
        height: 28px;
        padding: 2px;
        border-radius: 9px;
    }

    .nav-toggle-label {
        width: 36px;
        height: 36px;
        margin-left: 10px;
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        border: 1px solid rgba(98, 82, 220, 0.14);
        border-radius: 11px;
        background: rgba(98, 82, 220, 0.07);
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .nav-toggle-label span {
        width: 16px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: var(--primary);
        transform-origin: center;
        transition:
            transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
            opacity 0.2s ease;
    }

    .header-collapse {
        flex: 0 0 100%;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-7px);
        border-top: 0;
        transition:
            max-height 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),
            opacity 0.24s ease,
            transform 0.30s ease,
            padding-top 0.32s ease,
            margin-top 0.32s ease;
    }

    .nav-toggle:checked ~ .header-collapse {
        max-height: 590px;
        margin-top: 2px;
        padding-top: 10px;
        opacity: 1;
        transform: translateY(0);
        border-top: 1px solid rgba(98, 82, 220, 0.10);
    }

    .header-nav {
        width: 100%;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        border: 0;
        background: transparent;
    }

    .header-nav a {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 9px 10px;
        text-align: center;
        font-size: 10.5px;
        font-weight: 700;
        border: 1px solid rgba(98, 82, 220, 0.10);
        border-radius: 11px;
        background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(245,243,255,.90));
    }

    .header-actions {
        width: 100%;
        min-width: 0;
        margin-top: 1px;
        padding-top: 9px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 7px;
        border-top: 1px dashed rgba(98, 82, 220, 0.17);
    }

    .header-profile {
        width: 100%;
        min-width: 0;
        height: 50px;
        padding: 5px 9px 5px 6px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        flex: none;
        border-radius: 12px;
    }

    .header-profile-avatar {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 10px;
    }

    .header-profile-avatar > img {
        border-radius: 10px;
    }

    .header-profile-copy {
        min-width: 0;
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        line-height: 1.1;
    }

    .header-profile-copy > span {
        color: var(--muted);
        font-size: 8.5px;
        font-weight: 700;
    }

    .header-profile-copy > strong {
        color: var(--primary-dark);
        font-family: 'Sora', sans-serif;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 0.06em;
    }

    .logout-btn {
        width: 50px;
        min-width: 50px;
        min-height: 50px;
        padding: 0;
        border-radius: 12px;
    }

    .logout-btn svg {
        width: 17px;
        height: 17px;
    }

    .logout-btn span {
        display: none;
    }

    .header-cta {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 46px;
        justify-content: center;
        border-radius: 12px;
        font-size: 11px;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}


/* ============================================================
   SMALL MOBILE HEADER — ≤ 420px
   ============================================================ */
@media (max-width: 420px) {

    .site-header {
        top: 8px;
        width: calc(100% - 14px);
        margin-top: 7px;
    }

    .header-inner {
        min-height: 50px;
        padding: 7px 8px 7px 9px;
        border-radius: 14px;
    }

    .header-brand {
        gap: 7px;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .header-brand img {
        width: 26px;
        height: 26px;
    }

    .nav-toggle-label {
        width: 32px;
        height: 32px;
        margin-left: 7px;
        border-radius: 10px;
    }

    .nav-toggle-label span {
        width: 14px;
    }

    .nav-toggle:checked ~ .header-collapse {
        max-height: 560px;
        padding-top: 8px;
    }

    .header-nav {
        gap: 6px;
    }

    .header-nav a {
        min-height: 39px;
        padding: 8px 7px;
        font-size: 9.5px;
        border-radius: 10px;
    }

    .header-actions {
        gap: 6px;
        padding-top: 8px;
    }

    .header-profile {
        height: 46px;
        padding: 4px 7px 4px 5px;
        gap: 7px;
        border-radius: 11px;
    }

    .header-profile-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .header-profile-copy > span {
        font-size: 8px;
    }

    .header-profile-copy > strong {
        font-size: 10px;
    }

    .logout-btn {
        width: 46px;
        min-width: 46px;
        min-height: 46px;
        border-radius: 11px;
    }

    .header-cta {
        min-height: 43px;
        padding: 9px 13px;
        font-size: 10px;
        border-radius: 11px;
    }
}

/* ============================================================
   STUDY SMARTER — PHONE VIEW ONLY
   Desktop/tablet remain exactly as before.
   On phones (≤650px), the image moves below the text/button.
   ============================================================ */

@media (max-width: 650px) {

    #studySmarter {
        min-height: 0;
        padding: 28px 22px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        overflow: hidden;
        background: #f3f1ff;
    }

    #studySmarter > h2 {
        order: 1;
    }

    #studySmarter > h3 {
        order: 2;
    }

    #studySmarter > a {
        order: 3;
    }

    #studySmarter > img {
        order: 4;

        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: min(100%, 520px);
        height: auto;
        max-height: none;

        margin: 22px auto 0;

        object-fit: contain;
        object-position: center center;

        opacity: 1;
        z-index: 0;
        pointer-events: none;
        flex-shrink: 0;

        filter: none;
        animation: none;

        -webkit-mask-image: none;
        mask-image: none;
    }

    #studySmarter::after {
        display: none;
    }

    #studySmarter > h2,
    #studySmarter > h3,
    #studySmarter > a {
        position: relative;
        z-index: 1;
    }
}


/* Small phones */
@media (max-width: 420px) {

    #studySmarter {
        min-height: 0;
        padding: 22px 18px 16px;
    }

    #studySmarter > img {
        width: min(100%, 380px);
        height: auto;
        margin-top: 18px;
        object-fit: contain;
        object-position: center center;
    }
}

