/* ==========================================================================
   Marketing landing page (the signed-out homepage).

   The shared token set from application.css drives the whole page: a cool
   ink neutral for text, the brand teal as the primary accent, indigo as its
   gradient partner, and a single pair of shadow tokens. Every section below
   is built from those, so the page reads as one system rather than a stack of
   decorated boxes.
   ========================================================================== */

:root {
    /* Shared colour, shadow and radius tokens live in application.css. */
    --landing-width: 1160px;
    --landing-gutter: 24px;
}

.landing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: var(--body);
    background: var(--surface);
}

.landing h1,
.landing h2,
.landing h3,
.landing strong {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--ink);
}

.landing p {
    margin: 0;
}

.landing ul,
.landing ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing > section {
    position: relative;
    z-index: 1;
    max-width: var(--landing-width);
    margin-inline: auto;
    padding-inline: var(--landing-gutter);
}

/* ---------- Ambient background ------------------------------------------ */

.landing-aurora {
    position: absolute;
    inset: 0 0 auto 0;
    height: 920px;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(46% 40% at 12% 8%, rgba(15, 181, 166, 0.20) 0%, rgba(15, 181, 166, 0) 70%),
        radial-gradient(42% 38% at 88% 4%, rgba(91, 108, 240, 0.22) 0%, rgba(91, 108, 240, 0) 72%),
        radial-gradient(38% 34% at 62% 22%, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0) 70%);
    animation: aurora-drift 18s ease-in-out infinite alternate;
}

.landing-grid-overlay {
    position: absolute;
    inset: 0 0 auto 0;
    height: 720px;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(10, 16, 32, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 16, 32, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
}

@keyframes aurora-drift {
    from { transform: translate3d(-1.5%, 0, 0) scale(1); }
    to { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

/* ---------- Buttons ------------------------------------------------------ */

.landing .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
        background-color 0.25s, border-color 0.25s, color 0.25s;
}

.landing .btn:hover {
    transform: translateY(-2px);
}

.landing .btn-primary {
    color: #ffffff;
    background: linear-gradient(120deg, var(--teal-ink) 0%, var(--teal) 42%, #4f5fe6 100%);
    box-shadow: 0 10px 24px -10px rgba(15, 181, 166, 0.85), 0 2px 6px rgba(10, 16, 32, 0.10);
}

.landing .btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 18px 34px -12px rgba(15, 181, 166, 0.95), 0 4px 10px rgba(10, 16, 32, 0.14);
}

.landing .btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.landing .btn-secondary:hover {
    border-color: rgba(10, 16, 32, 0.16);
    box-shadow: var(--shadow-md);
}

.landing .btn-ghost-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.landing .btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.42);
}

.landing .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing .hero-actions.is-centered {
    justify-content: center;
}

/* ---------- Hero --------------------------------------------------------- */

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding-top: clamp(48px, 7vw, 88px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.landing-hero-copy {
    max-width: 560px;
}

.landing .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border: 1px solid rgba(10, 16, 32, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.landing .eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--teal), var(--indigo));
    box-shadow: 0 0 0 3px rgba(15, 181, 166, 0.16);
}

.landing .hero-title {
    margin: 26px 0 0;
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.038em;
    color: var(--ink);
}

.landing .hero-title-accent {
    background: linear-gradient(104deg, var(--teal-deep) 0%, var(--teal) 34%, var(--indigo) 72%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing .hero-lede {
    margin-top: 20px;
    max-width: 34ch;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--body);
}

.landing-hero-copy .hero-actions {
    margin-top: 32px;
}

.landing .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.86rem;
}

.landing .hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing .hero-trust li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.7;
}

/* ---------- Hero product preview ---------------------------------------- */

.landing-hero-visual {
    position: relative;
}

.preview-window {
    position: relative;
    z-index: 1;
    padding: 14px;
    border: 1px solid rgba(10, 16, 32, 0.07);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    animation: preview-float 9s ease-in-out infinite;
}

@keyframes preview-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.preview-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px 14px;
}

.chrome-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(10, 16, 32, 0.12);
}

.preview-chrome-title {
    margin-left: 8px;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.preview-body {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, #ffffff 0%, #f6f9fc 100%);
    border: 1px solid var(--line-soft);
}

.preview-question {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.preview-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 181, 166, 0.12);
    color: var(--teal-ink);
    font-size: 0.74rem;
    font-weight: 600;
}

.preview-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border: 1px solid rgba(10, 16, 32, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.preview-float-streak {
    z-index: 2;
    left: -22px;
    bottom: 54px;
    animation: preview-float 9s ease-in-out infinite 0.6s;
}

.preview-float-insight {
    z-index: 2;
    right: -18px;
    top: -26px;
    animation: preview-float 9s ease-in-out infinite 1.4s;
}

.float-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(251, 113, 133, 0.14);
    font-size: 1rem;
}

.float-icon-teal {
    background: rgba(15, 181, 166, 0.14);
    color: var(--teal-ink);
    font-weight: 700;
}

.float-body {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.float-body strong {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.float-body em {
    font-size: 0.74rem;
    font-style: normal;
    color: var(--muted);
}

/* ---------- Shared section header ---------------------------------------- */

.landing .landing-section-head {
    max-width: 640px;
    margin: 0 auto clamp(36px, 5vw, 60px);
    text-align: center;
}

.landing .section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--teal-ink);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing .section-eyebrow.is-inverse {
    color: rgba(255, 255, 255, 0.62);
}

.landing .section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.65rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.landing .section-lede {
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--body);
}

/* ---------- How it works ------------------------------------------------- */

.landing-steps {
    padding-top: clamp(48px, 6vw, 84px);
    padding-bottom: clamp(48px, 6vw, 84px);
}

.landing-steps .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    counter-reset: steps;
}

.step-card {
    position: relative;
    padding: 30px 28px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 181, 166, 0.35);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(140deg, rgba(15, 181, 166, 0.16), rgba(91, 108, 240, 0.16));
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.step-title {
    margin-top: 20px;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.step-text {
    margin-top: 10px;
    font-size: 0.97rem;
    line-height: 1.65;
}

/* ---------- Feature grid -------------------------------------------------- */

.landing-features {
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(48px, 6vw, 84px);
}

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

.feature-card {
    padding: 30px 28px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 108, 240, 0.32);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(15, 181, 166, 0.14), rgba(91, 108, 240, 0.14));
    color: var(--ink-soft);
}

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

.feature-card h3 {
    margin-top: 20px;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-card p {
    margin-top: 9px;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* ---------- Showcase rows -------------------------------------------------- */

.landing-showcase {
    display: grid;
    gap: clamp(40px, 6vw, 84px);
    padding-top: clamp(32px, 4vw, 56px);
    padding-bottom: clamp(48px, 6vw, 84px);
}

.landing-showcase .landing-section-head {
    margin-bottom: 0;
}

.showcase-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 68px);
}

.showcase-row:nth-child(even) .showcase-copy {
    order: 2;
}

.showcase-row:nth-child(even) .showcase-visual {
    order: 1;
}

.showcase-title {
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.showcase-text {
    margin-top: 16px;
    font-size: 1.03rem;
    line-height: 1.7;
    color: var(--body);
}

.showcase-points {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.showcase-points li {
    position: relative;
    padding-left: 28px;
    font-size: 0.96rem;
    line-height: 1.55;
}

.showcase-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 181, 166, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309746e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.showcase-points span {
    color: var(--ink-soft);
    font-weight: 600;
}

/* ---------- Mock UI used by the showcase rows ------------------------------ */

.mock-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: var(--shadow-md);
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mock-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.mock-badge {
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(15, 181, 166, 0.14);
    color: var(--teal-ink);
    font-size: 0.74rem;
    font-weight: 600;
}

.mock-tasks {
    display: grid;
    gap: 2px;
    margin-top: 20px;
}

.mock-tasks li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--body);
    font-size: 0.9rem;
}

.mock-tasks li:last-child {
    border-bottom: none;
}

.mock-tasks li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.6px solid rgba(10, 16, 32, 0.18);
    border-radius: 6px;
}

.mock-tasks li.is-done {
    color: var(--muted);
    text-decoration: line-through;
}

.mock-tasks li.is-done::before {
    border-color: transparent;
    background: linear-gradient(120deg, var(--teal-ink), #4f5fe6);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.mock-next {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(15, 181, 166, 0.09);
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 500;
}

.mock-next span {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15, 181, 166, 0.18);
    color: var(--teal-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Mock schedule (timeline showcase) -------------------------------- */

.mock-schedule {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.mock-slot-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.mock-slot-time {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.mock-slot {
    padding: 9px 12px;
    border-left: 3px solid transparent;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: rgba(10, 16, 32, 0.045);
}

.mock-slot.is-task {
    border-left-color: var(--indigo);
    background: rgba(91, 108, 240, 0.1);
}

.mock-slot.is-habit {
    border-left-color: var(--teal);
    background: rgba(15, 181, 166, 0.1);
}

.mock-slot.is-done {
    color: var(--muted);
    text-decoration: line-through;
}

.mock-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.mock-week-strip span {
    padding: 7px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.mock-week-strip .is-today {
    background: rgba(91, 108, 240, 0.14);
    color: var(--indigo);
}

/* ---------- Mock habits (habits showcase) ------------------------------------ */

.mock-habits {
    display: grid;
    gap: 2px;
    margin-top: 18px;
}

.mock-habits li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--body);
    font-size: 0.9rem;
}

.mock-habits li:last-child {
    border-bottom: none;
}

.mock-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.6px solid rgba(10, 16, 32, 0.18);
    border-radius: 6px;
}

.mock-habits li.is-done .mock-check {
    border-color: transparent;
    background: linear-gradient(120deg, var(--teal-ink), #4f5fe6);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.mock-habit-name {
    flex: 1;
    min-width: 0;
}

.mock-habits li.is-done .mock-habit-name {
    color: var(--muted);
    text-decoration: line-through;
}

.mock-habit-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.mock-habit-streak {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- FAQ ------------------------------------------------------------ */

.landing-faq {
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(48px, 6vw, 84px);
}

.landing-faq .faq-list {
    display: grid;
    gap: 12px;
    max-width: 780px;
    margin-inline: auto;
}

.landing-faq .faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.landing-faq .faq-item[open] {
    border-color: rgba(15, 181, 166, 0.35);
    box-shadow: var(--shadow-md);
}

.landing-faq .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.landing-faq .faq-question::-webkit-details-marker {
    display: none;
}

.landing-faq .faq-marker {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-soft);
    transition: background-color 0.3s, transform 0.3s var(--ease-out);
}

.landing-faq .faq-marker::before,
.landing-faq .faq-marker::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1.8px;
    border-radius: 2px;
    background: var(--ink-soft);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.landing-faq .faq-marker::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.landing-faq .faq-item[open] .faq-marker {
    background: rgba(15, 181, 166, 0.16);
    transform: rotate(180deg);
}

.landing-faq .faq-item[open] .faq-marker::after {
    opacity: 0;
}

.landing-faq .faq-answer {
    padding: 0 22px 22px;
}

.landing-faq .faq-answer p {
    max-width: 62ch;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ---------- Final CTA -------------------------------------------------------- */

.landing-cta {
    padding-bottom: clamp(56px, 7vw, 96px);
}

.landing-cta .cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border-radius: var(--radius-xl);
    text-align: center;
    background:
        radial-gradient(90% 130% at 12% 0%, rgba(15, 181, 166, 0.42) 0%, rgba(15, 181, 166, 0) 58%),
        radial-gradient(90% 130% at 88% 100%, rgba(139, 92, 246, 0.46) 0%, rgba(139, 92, 246, 0) 60%),
        #0c1327;
    box-shadow: var(--shadow-lg);
}

.landing-cta .cta-glow {
    position: absolute;
    left: 50%;
    bottom: -140px;
    width: 420px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    transform: translateX(-50%);
    pointer-events: none;
}

.landing-cta .cta-title {
    position: relative;
    font-size: clamp(1.95rem, 3.6vw, 2.9rem);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #ffffff;
}

.landing-cta .cta-text {
    position: relative;
    max-width: 46ch;
    margin: 18px auto 0;
    font-size: 1.06rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.78);
}

.landing-cta .hero-actions {
    position: relative;
    margin-top: 30px;
}

.landing-cta .cta-note {
    position: relative;
    margin-top: 22px;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.86rem;
}

/* ---------- Scroll reveal ----------------------------------------------------- */

/* Only applied once the reveal controller has taken over, so the page is fully
   readable with JavaScript disabled. */
[data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}

[data-reveal].reveal-pending.reveal-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .landing-aurora,
    .preview-window,
    .preview-float {
        animation: none;
    }

    [data-reveal].reveal-pending {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .landing .btn,
    .step-card,
    .feature-card {
        transition: none;
    }
}

/* ---------- Planner previews -------------------------------------------------- */

.preview-today-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-today-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}

.preview-today-summary strong {
    color: var(--ink);
}

.preview-schedule {
    margin-top: 16px;
}

/* Sits under the window so it never covers the schedule. */
.landing-hero-visual .preview-float-streak {
    bottom: -30px;
}

.mock-slot.is-long {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    min-height: 92px;
}

.mock-slot em,
.mock-task-meta {
    color: var(--muted);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 500;
}

.mock-task-meta {
    margin-left: auto;
}

.mock-card .mock-head + .mock-tasks {
    margin-bottom: 18px;
}

.mock-card .mock-tasks:last-child {
    margin-bottom: 0;
}

.mock-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mock-board-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px 8px;
    border-top: 3px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(10, 16, 32, 0.035);
}

.mock-board-column.is-progress { border-top-color: var(--indigo); }
.mock-board-column.is-blocked { border-top-color: var(--coral); }
.mock-board-column.is-done { border-top-color: var(--teal); }

.mock-board-title {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mock-board-card {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.mock-board-column.is-done .mock-board-card {
    color: var(--muted);
    text-decoration: line-through;
}

/* ---------- Audience ------------------------------------------------------------- */

.landing-audience {
    padding-bottom: clamp(48px, 6vw, 84px);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.audience-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
}

.audience-card strong {
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1rem;
}

.audience-card span {
    color: var(--body);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---------- On your phone ------------------------------------------------------ */

.landing-pocket {
    padding-top: clamp(16px, 3vw, 40px);
    padding-bottom: clamp(48px, 6vw, 84px);
}

.pocket-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.pocket-visual {
    display: flex;
    justify-content: center;
}

/* A phone drawn in CSS: the app's Today screen with a notification on top,
   a task's action sheet and the tab bar. */
.pocket-phone {
    width: min(100%, 320px);
    padding: 10px;
    border-radius: 44px;
    background: var(--ink);
    box-shadow: var(--shadow-lg);
}

.pocket-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 46px 14px 0;
    overflow: hidden;
    border-radius: 35px;
    background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 40%);
}

.pocket-notification {
    position: absolute;
    top: 12px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(10, 16, 32, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    animation: preview-float 9s ease-in-out infinite;
}

.pocket-notification-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(15, 181, 166, 0.14);
    font-size: 0.95rem;
}

.pocket-notification-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.pocket-notification-app {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pocket-notification-body strong {
    font-size: 0.8rem;
    font-weight: 700;
}

.pocket-notification-body em {
    color: var(--muted);
    font-size: 0.7rem;
    font-style: normal;
}

.pocket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 58px;
}

.pocket-schedule {
    margin-top: 14px;
}

.pocket-schedule .mock-slot-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
}

.pocket-schedule .mock-slot {
    padding: 8px 10px;
    font-size: 0.8rem;
}

.pocket-sheet {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: auto -14px 0;
    padding: 8px 18px 10px;
    border-radius: 20px 20px 0 0;
    background: #ffffff;
    box-shadow: 0 -12px 30px -14px rgba(10, 16, 32, 0.35);
}

.pocket-sheet-handle {
    width: 34px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: var(--line-strong);
}

.pocket-sheet strong {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2px;
    font-size: 0.86rem;
}

.pocket-sheet-action {
    padding: 7px 2px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 500;
}

.pocket-sheet-action.is-primary {
    color: var(--teal-ink);
    font-weight: 700;
}

.pocket-tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 -14px;
    padding: 10px 6px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.pocket-tabbar span {
    position: relative;
    padding-top: 16px;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
}

.pocket-tabbar span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    transform: translateX(-50%);
}

.pocket-tabbar span.is-active {
    color: var(--teal-ink);
}

.pocket-points {
    display: grid;
    gap: 14px;
}

.pocket-points li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
}

.pocket-points strong {
    font-size: 1.02rem;
    letter-spacing: -0.015em;
}

.pocket-points span {
    font-size: 0.94rem;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .pocket-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .pocket-screen {
        min-height: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pocket-notification {
        animation: none;
    }
}

/* ---------- Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
    .preview-float-streak { left: -8px; }
    .preview-float-insight { right: -8px; }
}

@media (max-width: 960px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .landing-hero-copy {
        max-width: 100%;
    }

    .landing-hero-copy .hero-lede {
        max-width: 52ch;
    }

    .landing-hero-visual {
        max-width: 460px;
        margin-inline: auto;
        width: 100%;
    }

    .steps-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase-row:nth-child(even) .showcase-copy,
    .showcase-row:nth-child(even) .showcase-visual {
        order: initial;
    }

    .showcase-row {
        gap: 26px;
    }

    .showcase-visual {
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .landing-steps .steps-grid,
    .landing-features .features-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing .hero-actions .btn {
        width: 100%;
    }

    .preview-float {
        display: none;
    }
}

@media (max-width: 960px) {
    .audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .audience-grid,
    .mock-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
