:root {
    --page-fuchsia: #e040fb;
    --page-cyan: #00e5ff;
    --page-lemon: #ffeb3b;
    --page-deep: #1a0a2e;
    --ink: #0d1117;
}

* {
    box-sizing: border-box;
}

body.lemon-do-page {
    display: block;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 235, 59, 0.55), transparent),
        radial-gradient(900px 500px at 95% 15%, rgba(224, 64, 251, 0.45), transparent),
        radial-gradient(800px 480px at 50% 100%, rgba(0, 229, 255, 0.35), transparent),
        linear-gradient(165deg, #fff8fb 0%, #e8f4ff 45%, #f3e8ff 100%);
}

.landing {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.75rem) 1.5rem 3rem;
}

.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

.landing-col--demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.landing-col--demo .demo-heading {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.landing-col--demo .sub {
    margin: 0 0 1.25rem;
    color: #4f4a5c;
    font-size: 0.98rem;
    max-width: 36rem;
}

.landing-col--copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: min(100%, 520px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3d1d5c;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}

.landing-col--copy h1 {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.1rem 0 0.65rem;
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-align: center;
}

.hero-lemon {
    display: inline-block;
    transform: rotate(-8deg);
}

.landing-col--copy .lead {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(1.05rem, 1.9vw, 1.18rem);
    line-height: 1.58;
    color: #3a3545;
}

.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-start;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 3px solid #111;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 6px 6px 0 #111;
}

.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #111;
}

.btn-primary {
    background: linear-gradient(135deg, #ffeb3b, #ffb300);
    color: #1a0a12;
}

.btn-ghost {
    background: #fff;
    color: #111;
}

.landing kbd {
    display: inline-block;
    padding: 0.12em 0.45em;
    margin: 0 0.06em;
    font-size: 0.82em;
    font-weight: 800;
    font-family: inherit;
    border: 2px solid rgba(0, 0, 0, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.widget-stage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 380px;
}

@media (max-width: 900px) {
    .landing-split {
        grid-template-columns: 1fr;
    }

    .landing-col--copy {
        text-align: center;
        min-height: 0;
        order: 1;
    }

    .landing-col--demo {
        order: 2;
    }

    .landing-col--copy .hero-cta {
        justify-content: center;
    }

    .landing-col--copy .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

.lemon-widget {
    --widget-bg: #faee69;
    --stripe-base: #1a237e;
    --header-text: #111111;
    --add-bg: rgba(255, 255, 255, 0.82);
    --add-border: rgba(255, 255, 255, 0.43);
    width: min(330px, 100%);
    min-height: 420px;
    border-radius: 999px;
    border: 3px solid rgba(0, 0, 0, 0.88);
    box-shadow:
        12px 16px 0 rgba(0, 0, 0, 0.14),
        0 24px 48px rgba(26, 10, 46, 0.2);
    background: var(--widget-bg);
    color: var(--header-text);
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", "Plus Jakarta Sans", system-ui, sans-serif;
    transition: background 0.6s ease;
}

.lemon-widget-inner {
    padding: 1.45rem 1.35rem 3.35rem;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    position: relative;
    max-width: 100%;
}

.widget-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 1.5rem 1.35rem 2.75rem;
    background: var(--widget-bg);
    color: var(--overlay-fg, #111);
    overflow: hidden;
    border-radius: inherit;
}

.widget-overlay[hidden] {
    display: none !important;
}

.widget-overlay-inner {
    width: 100%;
    max-height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
}

.widget-overlay-title {
    margin: 0;
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--overlay-fg, #111);
}

.widget-overlay-title--clock {
    font-size: clamp(2rem, 8vw, 2.65rem);
    font-variant-numeric: tabular-nums;
}

.widget-overlay-body {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    white-space: pre-line;
    color: var(--overlay-fg, #111);
}

.widget-overlay-body b {
    font-weight: 800;
}

.widget-overlay-hint {
    margin: 0.35rem 0 0;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.72;
}

.lemon-logo-foot {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    pointer-events: none;
}

.lemon-logo-foot::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    right: -4px;
    top: 2px;
    transform: rotate(-25deg);
}

.day-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 2;
}

.day-nav {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.14);
    color: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.day-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
}

.day-nav:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.day-label {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.past-pill {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 0.15rem;
}

.palette-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.palette-chip {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.palette-chip[aria-pressed="true"] {
    border-color: #111;
    box-shadow: 2px 2px 0 #111;
}

.stripe-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-height: 0;
}

.task-stripe {
    position: relative;
    min-height: 68px;
    display: flex;
    align-items: stretch;
    padding: 5px 10px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: var(--stripe-base);
    transition: background 0.25s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.task-stripe:not(.completed):hover {
    filter: brightness(1.08);
}

.task-stripe.completed {
    border-color: rgba(220, 220, 220, 0.28);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.22);
}

.task-stripe.deleting {
    border-color: rgba(255, 120, 120, 0.45);
}

.stripe-editor-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.stripe-editor {
    width: 100%;
    min-height: 48px;
    max-height: 220px;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    font: 600 18px/1.35 "Segoe UI", system-ui, sans-serif;
    color: var(--stripe-ink, #111111);
    padding: 4px 0;
    cursor: text;
}

.task-stripe.empty .stripe-editor {
    font-style: italic;
    font-weight: 600;
}

.task-stripe.completed .stripe-editor {
    color: #e8e8e8;
    cursor: pointer;
    font-style: normal;
}

.task-stripe.completed .stripe-editor:focus {
    cursor: text;
}

.stripe-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.task-stripe:hover .stripe-actions,
.task-stripe:focus-within .stripe-actions {
    opacity: 1;
    pointer-events: auto;
}

.task-stripe.completed:hover .stripe-actions,
.task-stripe.completed:focus-within .stripe-actions {
    opacity: 0;
    pointer-events: none;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.55);
}

.icon-btn.trash {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.28);
}

.icon-btn.trash:hover {
    background: rgba(255, 88, 88, 0.45);
}

.icon-btn.hidden {
    visibility: hidden;
}

.add-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.add-btn {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.43);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--add-bg);
    color: var(--add-ink, #111);
}

.add-btn:hover {
    filter: brightness(1.06);
}
