/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    min-height: 100%;
    overflow-y: auto;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

body.home,
body.page,
.site,
.site-main,
.site-content,
.content-area,
.entry-content,
.wp-site-blocks,
.wp-block-post-content,
.wp-block-group,
.elementor,
.elementor-section,
.elementor-container,
.elementor-widget-container {
    max-width: none !important;
}

.entry-content,
.wp-block-post-content,
.elementor-widget-container {
    overflow: visible !important;
}

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

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

/* === UTILITIES === */
.text-gradient {
    background: linear-gradient(135deg, #000, rgba(0, 0, 0, 0.55));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-word {
    display: inline-flex;
    align-items: baseline;
    letter-spacing: -0.04em;
}

.brand-jus {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-style: italic;
}

.brand-do {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.04em;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #1a1a1a;
}

.section-desc {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.45);
    max-width: 520px;
    margin: 20px auto 0;
    line-height: 1.7;
}

/* === HEADER PILL BAR === */
.header-pill-bar {
    --header-pill-height: 54px;
    --hero-pill-tab-width: 132px;
    --hero-pill-tab-x: 28px;
    --hero-pill-tab-y: 10px;
    --hero-pill-font-size: 15px;
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    height: var(--header-pill-height);
    padding: 0 24px;
    pointer-events: none;
}

body.admin-bar .header-pill-bar {
    top: 48px;
}

.header-pill-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(calc(100vw - 32px), 680px);
    height: var(--header-pill-height);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0.34)),
        rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.58);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 -18px 30px rgba(255,255,255,0.18),
        0 18px 50px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateX(-50%) scale(0.96);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.header-pill-bar.is-glass::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.header-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(calc(100vw - 32px), 680px);
    height: var(--header-pill-height);
    padding: 4px;
    pointer-events: auto;
}

.header-logo {
    position: absolute;
    left: 4px;
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    padding: 0 18px;
    font-size: 26px;
    line-height: 1;
    color: rgba(26,26,26,0.82);
    transition: color 0.3s ease;
}

.header-pill-bar.is-glass .header-logo {
    color: rgba(26,26,26,0.92);
}

.header-pill-bar .hero-pill {
    height: calc(var(--header-pill-height) - 8px);
}


/* === HERO PILL === */
.hero-pill {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
    background: #222;
    border-radius: 100px;
    padding: 4px;
    animation: hero-pill-color-loop 16s linear infinite;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header-pill-bar.is-glass .hero-pill {
    animation: none;
    background: rgba(26,26,26,0.72);
    box-shadow:
        0 2px 12px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.16);
}

.hero-pill-tab {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: var(--hero-pill-font-size);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    width: var(--hero-pill-tab-width);
    padding: var(--hero-pill-tab-y) var(--hero-pill-tab-x);
    border-radius: 100px;
    transition: color 0.3s, opacity 0.24s ease, transform 0.24s ease;
    white-space: nowrap;
}

.hero-pill-label {
    grid-area: 1 / 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-pill-label-scroll {
    opacity: 0;
    transform: translateY(4px);
}

.header-pill-bar.is-glass .hero-pill-label-top {
    opacity: 0;
    transform: translateY(-4px);
}

.header-pill-bar.is-glass .hero-pill-label-scroll {
    opacity: 1;
    transform: translateY(0);
}

.hero-pill-tab.active {
    color: #000;
}

.hero-pill-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(33.333% - 3px);
    background: #fff;
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-pill[data-active="1"] .hero-pill-indicator {
    transform: translateX(100%);
}

.hero-pill[data-active="2"] .hero-pill-indicator {
    transform: translateX(200%);
}

@keyframes hero-pill-color-loop {

    0%,
    100% {
        background-color: #ED2B24;
    }

    10% {
        background-color: #FC8C0C;
    }

    20% {
        background-color: #F8E01E;
    }

    30% {
        background-color: #DFFF00;
    }

    40% {
        background-color: #00A600;
    }

    50% {
        background-color: #B2DFDB;
    }

    60% {
        background-color: #0220BD;
    }

    70% {
        background-color: #761EAC;
    }

    80% {
        background-color: #F06292;
    }

    90% {
        background-color: #8B7355;
    }
}

#heroSubtitle.fade-out {
    opacity: 0;
    transform: translateY(6px);
}

/* === HERO === */
#hero {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: clamp(96px, 18vh, 150px);
    color: #1a1a1a;
    transition: opacity 0.3s, transform 0.3s;
}

.hero-line {
    display: block;
}

.hero-line-accent {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 100px;
    transition: all 0.3s;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.app-store-badge {
    min-width: 178px;
    min-height: 52px;
    gap: 12px;
    padding: 7px 15px 7px 13px;
    background: #000;
    color: #fff;
    border: 2px solid #8f8f8f;
    border-radius: 13px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.app-store-badge:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.app-store-badge svg {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.app-store-copy {
    display: grid;
    gap: 3px;
    text-align: left;
}

.app-store-copy-small {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.app-store-copy-large {
    font-size: 26px;
    font-weight: 500;
    line-height: 0.95;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    background: transparent;
    border: 0;
    font-family: inherit;
    padding: 16px 24px;
    cursor: pointer;
    transition:
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.btn-secondary:hover {
    color: #1a1a1a;
}

.btn-large {
    font-size: 17px;
    padding: 20px 40px;
}

/* === HERO STATS === */
#hero-stats {
    padding: 0 24px 64px;
}

.hero-stats-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hero-stat-card {
    min-height: 132px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 26px 18px;
    border-radius: 18px;
    background: #f0f0f1;
    border: 1px solid rgba(0, 0, 0, 0.035);
    opacity: 0;
    transform: translateY(20px);
}

.hero-stat-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s, transform 0.6s;
}

.hero-stat-number {
    color: #000;
    font-size: clamp(30px, 3.3vw, 46px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -1.4px;
}

.hero-stat-label {
    margin-top: 16px;
    color: #111;
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 700;
    line-height: 1.1;
}

.hero-stat-caption {
    margin-top: 9px;
    color: rgba(0, 0, 0, 0.38);
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 500;
    line-height: 1.35;
}

.hero-awards {
    max-width: 231px;
    margin: 96px auto 0;
    display: grid;
    grid-template-columns: 1fr;
}

.hero-award {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    text-align: center;
    min-height: 89px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-award.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s, transform 0.6s;
}

.hero-award-laurel {
    width: 52px;
    height: 84px;
    color: #9edcff;
}

.hero-award-laurel-right {
    transform: scaleX(-1);
}

.hero-award-title {
    color: #000;
    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: 500;
    line-height: 1.22;
}

.hero-award-stars {
    margin-top: 5px;
    color: #ffb800;
    font-size: clamp(14px, 1.3vw, 18px);
    letter-spacing: 1.5px;
    line-height: 1;
}

.hero-award-value {
    margin-top: 11px;
    color: #000;
    font-size: clamp(27px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.4px;
}

.hero-award-caption {
    margin-top: 10px;
    color: #000;
    font-size: clamp(16px, 1.55vw, 24px);
    font-weight: 400;
    line-height: 1.22;
}

/* === FEATURES === */
#features {
    padding: 140px 0;
    position: relative;
}

#features .section-inner {
    max-width: 1280px;
}

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

.feature-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    display: grid;
    grid-template-rows: 44px 28px minmax(108px, auto) 1fr;
    row-gap: 10px;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(30px);
    /* animate in */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s, transform 0.7s;
}



.feature-card-large {
    display: grid;
}

.feature-card-large .feature-preview,
.feature-habit-list,
.feature-goal-bars,
.ai-plan-preview {
    align-self: start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon-blue {
    background: rgba(237, 43, 36, 0.1);
    color: #ED2B24;
}

.feature-icon-purple {
    background: rgba(0, 166, 0, 0.1);
    color: #00A600;
}

.feature-icon-amber {
    background: rgba(118, 30, 172, 0.1);
    color: #761EAC;
}

.feature-icon-ai {
    background: rgba(2, 32, 189, 0.1);
    color: #0220BD;
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
}

.feature-card-tasks h3 {
    color: #ED2B24;
}

.feature-card-habits h3 {
    color: #00A600;
}

.feature-card-goals h3 {
    color: #761EAC;
}

.feature-card-ai h3 {
    color: #0220BD;
}

.feature-card p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
    line-height: 1.6;
    margin: 0;
}

.feature-card-ai {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    grid-template-rows: auto;
    column-gap: 28px;
    align-items: start;
}

.feature-card-ai > div:first-child {
    display: block;
}

.feature-card-ai .feature-icon {
    margin-bottom: 16px;
}

.feature-card-ai h3 {
    margin-bottom: 8px;
}

/* Feature card mini-UI previews */
.feature-preview {
    --task-completion-color: #ED2B24;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.fp-task {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: transparent;
    appearance: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

.fp-task:last-child {
    border-bottom: 0;
}

.fp-task:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.14);
    outline-offset: 3px;
    border-radius: 10px;
}

.fp-check {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    display: grid;
    place-items: center;
    background: transparent;
    transform-origin: center;
}

.fp-task.is-completing .fp-check,
.fp-task.is-done .fp-check {
    background: var(--task-completion-color);
    border-color: transparent;
}

.fp-checkmark {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: none;
}

.fp-task.is-completing .fp-checkmark,
.fp-task.is-done .fp-checkmark {
    display: block;
}

.fp-task.is-completing .fp-check {
    animation: task-checkbox-scale 260ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fp-task.is-unchecking .fp-check {
    animation: task-checkbox-unscale 140ms ease-out forwards;
}

.fp-task.is-completing .fp-text {
    animation: task-content-fade 120ms linear forwards;
}

.fp-task.is-unchecking .fp-text {
    animation: task-content-unfade 120ms linear forwards;
}

.fp-task.is-completing .fp-text,
.fp-task.is-done .fp-text {
    opacity: 0.5;
    text-decoration-line: line-through;
}

.fp-text {
    min-width: 0;
    text-decoration-line: none;
    text-decoration-thickness: 1px;
}

/* Habit list preview */
.feature-habit-list {
    margin-top: 0;
}

.habit-preview-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.habit-preview-row:last-child {
    border-bottom: 0;
}

.habit-preview-check {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    border: 2px solid rgba(0, 0, 0, 0.58);
    display: grid;
    place-items: center;
}

.habit-preview-row.is-muted .habit-preview-check {
    border-style: dashed;
    border-color: rgba(0, 0, 0, 0.28);
}

.habit-preview-row.is-done .habit-preview-check {
    border-color: #F2BD23;
}

.habit-preview-row.is-done .habit-preview-check::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #F2BD23;
    border-bottom: 2px solid #F2BD23;
    transform: rotate(-45deg) translateY(-1px);
}

.habit-preview-copy {
    min-width: 0;
}

.habit-preview-name {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.habit-preview-name[dir="rtl"] {
    direction: rtl;
    text-align: left;
}

.habit-preview-reminder {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 500;
}

.habit-preview-reminder svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

.habit-preview-row.is-muted .habit-preview-name,
.habit-preview-row.is-muted .habit-preview-reminder {
    color: rgba(0, 0, 0, 0.38);
}

.habit-preview-row.is-done .habit-preview-name {
    color: rgba(0, 0, 0, 0.45);
    text-decoration-line: line-through;
    text-decoration-thickness: 1px;
}

.habit-preview-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(0, 0, 0, 0.34);
    font-size: 13px;
    font-weight: 700;
}

.habit-preview-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--habit-color, #F2BD23);
}

/* Goal pill preview */
.feature-goal-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.goal-pill {
    --goal-color: #37C865;
    --goal-fill: 0%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 4px 14px 6px;
    border: 3px solid var(--goal-color);
    border-radius: 100px;
    overflow: hidden;
    color: #0d0d0f;
}

.goal-pill::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--goal-fill);
    background: var(--goal-color);
    z-index: 0;
}

.goal-title,
.goal-count {
    position: relative;
    z-index: 1;
}

.goal-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.18;
}

.goal-count {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.18;
}

.goal-pill.is-filled .goal-title {
    color: #09090a;
}

.goal-pill.is-outline {
    background: #fff;
}

/* AI plan preview */
.ai-plan-preview {
    background: #fafafd;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: hidden;
}

.ai-suggested-label {
    color: rgba(0, 0, 0, 0.58);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ai-suggested-label {
    margin-top: 2px;
}

.ai-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-task-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 11px 12px;
    display: grid;
    grid-template-rows: 58px 48px auto;
    align-content: start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ai-task-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.ai-task-title {
    color: rgba(0, 0, 0, 0.9);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

.ai-add-pill {
    border-radius: 100px;
    background: #DEFF32;
    padding: 6px 13px;
    color: #111;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.ai-task-copy,
.ai-task-meta {
    color: rgba(0, 0, 0, 0.58);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.35;
}

.ai-task-copy {
    margin-top: 0;
    align-self: start;
}

.ai-task-meta {
    margin-top: 0;
    align-self: start;
    font-weight: 700;
}

@keyframes task-checkbox-scale {
    0% {
        transform: scale(1);
    }

    34.6% {
        transform: scale(0.94);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes task-content-fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@keyframes task-checkbox-unscale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes task-content-unfade {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* === HIGHLIGHTS === */
#highlights {
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.highlight-item {
    opacity: 0;
    transform: translateY(20px);
}

.highlight-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s, transform 0.6s;
}

.highlight-number {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #1a1a1a, rgba(0, 0, 0, 0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.35);
    font-weight: 500;
    margin-top: 4px;
}

/* === PREVIEW === */
#preview {
    padding: 54px 24px;
    position: relative;
    overflow: hidden;
    background: #f7f7f8;
}

.preview-stage {
    width: min(430px, 100%);
    margin: 0 auto;
    color: #070707;
}

.premium-panel {
    width: 100%;
}

.premium-content {
    padding: 0;
}

.premium-label {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 13px;
    border-radius: 8px;
    background: #090909;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.premium-content h2 {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -1.4px;
}

.premium-content h2 .brand-word {
    display: inline-flex;
    margin-top: 2px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.92em;
    font-weight: 400;
    letter-spacing: -1px;
    white-space: nowrap;
}

.premium-content h2 .brand-word span {
    display: inline;
}

.premium-content p {
    margin-top: 26px;
    max-width: 400px;
    color: #8d8d92;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
}

.premium-features {
    list-style: none;
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.premium-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.premium-icon {
    width: 24px;
    height: 21px;
    flex: 0 0 24px;
    color: #070707;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-icon svg {
    width: 24px;
    height: 21px;
    display: block;
}

.premium-icon svg path:not([fill="none"]),
.premium-icon svg rect,
.premium-icon svg circle:not(.icon-cutout) {
    fill: currentColor;
}

.premium-icon .icon-cutout {
    fill: #f7f7f8;
}

.theme-tray {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 34px;
    padding: 12px;
    background: #ededee;
    border-radius: 20px;
}

.theme-tray span {
    width: 30px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--theme-color);
}

.capability-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pill {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    border-radius: 100px;
    transition: border-color 0.3s, color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pill:hover {
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

/* === TESTIMONIALS === */
#testimonials {
    padding: 140px 0;
}

#testimonials .section-tag {
    color: #FC8C0C;
}

#testimonials .text-gradient {
    background: linear-gradient(135deg, #FC8C0C, rgba(252, 140, 12, 0.58));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 32px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s, transform 0.7s;
}


.testimonial-stars {
    color: #FC8C0C;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FC8C0C;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 700;
    display: block;
    color: #1a1a1a;
}

.testimonial-role {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.35);
}

/* === CTA === */
#download {
    padding: 120px 0;
}

.cta-container {
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 32px;
    padding: 80px 40px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}



.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: #000;
}

.cta-content .brand-word {
    font-size: 1.12em;
}

.cta-content p {
    font-size: 17px;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 36px;
}

.cta-content .btn-primary {
    background: #DFFF00;
    color: #000;
}

.cta-content .btn-primary:hover {
    box-shadow: 0 12px 40px rgba(223, 255, 0, 0.35);
}

.cta-content .app-store-badge {
    background: #000;
    color: #fff;
}

.cta-content .app-store-badge:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.cta-note {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.42);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card-large {
        display: grid;
    }

    .feature-card-ai {
        grid-column: 1 / -1;
    }

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

@media (max-width: 768px) {
    .hero-text h1 {
        display: flex;
        min-height: 4.35em;
        margin-bottom: 72px;
        flex-direction: column;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 430px;
    }

    .feature-card-ai {
        grid-column: auto;
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .ai-plan-preview {
        grid-template-columns: 1fr;
    }

    .ai-suggested-label,
    .ai-task-card {
        grid-column: auto;
        grid-row: auto;
    }

    .ai-task-grid {
        grid-template-columns: 1fr;
    }

    .ai-task-card {
        grid-template-rows: auto;
        gap: 8px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    #preview {
        padding: 44px 16px 54px;
    }

    .preview-stage {
        width: min(430px, 100%);
    }

    .premium-label {
        height: 24px;
        padding: 0 12px;
        font-size: 11px;
        border-radius: 8px;
    }

    .premium-content h2 {
        margin-top: 16px;
        font-size: clamp(32px, 8vw, 40px);
        letter-spacing: -1.2px;
        line-height: 1;
    }

    .premium-content p {
        margin-top: 22px;
        font-size: 15px;
        line-height: 1.55;
    }

    .premium-features {
        gap: 14px;
        margin-top: 26px;
    }

    .premium-features li {
        gap: 14px;
        font-size: 15px;
        line-height: 1.25;
    }

    .premium-icon {
        width: 24px;
        height: 21px;
        flex-basis: 24px;
    }

    .premium-icon svg {
        width: 24px;
        height: 21px;
    }

    .theme-tray {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
        margin-top: 28px;
        padding: 12px;
        border-radius: 20px;
    }

    .theme-tray span {
        width: min(100%, 34px);
        justify-self: center;
    }

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

    .hero-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .hero-stat-card {
        min-height: 124px;
        padding: 24px 16px;
    }

    .hero-stat-card:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 18px) / 2);
        justify-self: center;
    }

    .hero-awards {
        grid-template-columns: 1fr;
        margin-top: 64px;
    }

    .hero-award {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .hero-award-laurel {
        width: 46px;
        height: 74px;
    }

    .header-pill-bar {
        --header-pill-height: 47px;
        --hero-pill-tab-width: 98px;
        --hero-pill-tab-x: 22px;
        --hero-pill-tab-y: 8px;
        --hero-pill-font-size: 12px;
        padding: 0 12px;
    }

    body.admin-bar .header-pill-bar {
        top: 44px;
    }

    .header-pill-bar::before,
    .header-shell {
        width: calc(100vw - 24px);
    }

    .header-logo {
        padding: 0 10px;
        font-size: 22px;
    }

}

@media (max-width: 480px) {
    .hero-text h1 {
        min-height: 4.8em;
        margin-bottom: 64px;
        font-size: 38px;
        letter-spacing: -1.2px;
    }

    #features .section-inner {
        padding: 0 18px;
    }

    .feature-card {
        padding: 28px;
        border-radius: 20px;
    }

    .feature-card-large {
        gap: 24px;
    }

    .cta-container {
        padding: 48px 20px;
    }

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

    #hero-stats {
        padding: 0 16px 56px;
    }

    .hero-stats-grid {
        gap: 12px;
    }

    .hero-stat-card {
        min-height: 112px;
        border-radius: 18px;
        padding: 20px 12px;
    }

    .hero-stat-card:last-child {
        width: calc((100% - 12px) / 2);
    }

    .hero-stat-number {
        font-size: clamp(26px, 7.5vw, 34px);
        letter-spacing: -1px;
    }

    .hero-stat-label {
        margin-top: 12px;
        font-size: 12px;
    }

    .hero-stat-caption {
        margin-top: 6px;
        font-size: 10px;
    }

    .hero-awards {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 48px;
    }

    .hero-award {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        min-height: 70px;
    }

    .hero-award-laurel {
        width: 38px;
        height: 62px;
    }

    .hero-award-title {
        font-size: 12px;
    }

    .hero-award-stars {
        margin-top: 5px;
        font-size: 14px;
    }

    .hero-award-value {
        margin-top: 9px;
        font-size: 28px;
    }

    .hero-award-caption {
        margin-top: 7px;
        font-size: 16px;
    }

    .premium-content h2 {
        font-size: clamp(32px, 10vw, 38px);
    }

    .premium-content p {
        font-size: 15px;
    }

    .premium-features li {
        font-size: 14px;
    }

    .theme-tray {
        gap: 10px;
        padding: 12px;
    }

    .theme-tray span {
        width: min(100%, 30px);
    }

    .header-logo {
        padding: 0 8px;
        font-size: 20px;
        opacity: 0;
        pointer-events: none;
    }

    .header-pill-bar::before,
    .header-shell {
        width: calc(100vw - 24px);
    }

    .header-pill-bar {
        --header-pill-height: 43px;
        --hero-pill-tab-width: 88px;
        --hero-pill-tab-x: 17px;
        --hero-pill-tab-y: 7px;
        --hero-pill-font-size: 11px;
    }
}

@media (max-width: 360px) {
    .hero-text h1 {
        min-height: 5.6em;
        margin-bottom: 52px;
        font-size: 34px;
    }

    .header-pill-bar {
        --hero-pill-tab-width: 78px;
        --hero-pill-tab-x: 12px;
        --hero-pill-font-size: 10px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .header-pill-bar {
        top: 58px;
    }
}

/* === FOOTER === */
#footer {
    background: #f5f5f5;
    color: #1a1a1a;
    padding: 56px 40px 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
    max-width: 1580px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 44px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: inline-flex;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(0, 0, 0, 0.52);
    font-size: 15px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-col h4 {
    margin-bottom: 4px;
    color: rgba(0, 0, 0, 0.38);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(0, 0, 0, 0.58);
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #1a1a1a;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom span {
    color: rgba(0, 0, 0, 0.38);
    font-size: 13px;
}

@media (max-width: 768px) {
    #footer {
        padding: 34px 24px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-links {
        gap: 28px;
        flex-wrap: wrap;
    }

    .footer-logo {
        font-size: 26px;
    }

    .footer-brand p,
    .footer-col a {
        font-size: 14px;
    }

    .footer-col h4,
    .footer-bottom span {
        font-size: 12px;
    }
}

/* === TASK COMPLETION DEMO === */
body.task-completion-demo {
    --ink: #1a1a1a;
    --line: rgba(0, 0, 0, 0.1);
    --primary: rgba(0, 0, 0, 0.45);
    --primary-text: #ffffff;
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: transparent;
    font-family: ui-rounded, "SF Pro Rounded", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.task-completion-demo *,
body.task-completion-demo *::before,
body.task-completion-demo *::after {
    box-sizing: border-box;
}

body.task-completion-demo .demo-wrap {
    position: relative;
    width: min(100% - 32px, 420px);
    display: grid;
    justify-items: center;
    gap: 28px;
}

body.task-completion-demo .study-image {
    width: min(100%, 340px);
    height: auto;
    display: block;
}

body.task-completion-demo .try-note {
    position: absolute;
    left: -176px;
    bottom: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(26, 26, 26, 0.72);
    font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    transform: rotate(-4deg);
    pointer-events: none;
    white-space: nowrap;
}

body.task-completion-demo .try-note svg {
    position: absolute;
    left: 112px;
    top: 24px;
    width: 68px;
    height: 52px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-4deg);
}

body.task-completion-demo .task-shell {
    width: 100%;
    position: relative;
}

body.task-completion-demo .task-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

body.task-completion-demo .task-shell::after {
    content: "";
    display: block;
    height: 1px;
    margin-left: 54px;
    background: rgba(0, 0, 0, 0.08);
}

body.task-completion-demo .task-row:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.18);
    outline-offset: 4px;
}

body.task-completion-demo .checkbox {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-right: 16px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: transparent;
    transform-origin: center;
}

body.task-completion-demo .checkmark {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--primary-text);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: none;
}

body.task-completion-demo .task-text {
    min-width: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    text-decoration-thickness: 1px;
}

body.task-completion-demo .is-completing .checkbox {
    animation: checkbox-scale 260ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.task-completion-demo .is-completing .task-text {
    animation: content-fade 120ms linear forwards;
}

body.task-completion-demo .is-completing .checkbox,
body.task-completion-demo .is-done .checkbox {
    border-color: rgba(0, 0, 0, 0);
    background: var(--primary);
}

body.task-completion-demo .is-completing .checkmark,
body.task-completion-demo .is-done .checkmark {
    display: block;
}

body.task-completion-demo .is-completing .task-text,
body.task-completion-demo .is-done .task-text {
    opacity: 0.5;
    text-decoration-line: line-through;
}

body.task-completion-demo .is-unchecking .checkbox {
    animation: checkbox-unscale 140ms ease-out forwards;
}

body.task-completion-demo .is-unchecking .task-text {
    animation: content-unfade 120ms linear forwards;
}

@keyframes checkbox-scale {
    0% {
        transform: scale(1);
    }

    34.6% {
        transform: scale(0.94);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes content-fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@keyframes checkbox-unscale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes content-unfade {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.task-completion-demo *,
    body.task-completion-demo *::before,
    body.task-completion-demo *::after {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 520px) {
    body.task-completion-demo {
        padding-inline: 16px;
        overflow-x: hidden;
    }

    body.task-completion-demo .demo-wrap {
        width: min(100% - 90px, 340px);
        margin-left: 90px;
        gap: 24px;
    }

    body.task-completion-demo .study-image {
        width: min(100%, 280px);
    }

    body.task-completion-demo .try-note {
        left: -132px;
        bottom: 44px;
        font-size: 23px;
    }

    body.task-completion-demo .try-note svg {
        left: 88px;
        top: 21px;
        width: 58px;
        height: 46px;
    }
}
