/*
 * YouVibe App Landing
 * Light-only landing page built on the shared YouVibe token layer.
 */

:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text1);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    letter-spacing: 0;
}

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

img {
    display: block;
}

.landing-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 76px;
    padding: 0 var(--layout-page-gutter);
    display: grid;
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-lg);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.landing-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.landing-brand span,
.landing-brand strong,
.landing-brand em {
    display: block;
    min-width: 0;
}

.landing-brand strong {
    font-size: var(--text-subheading);
    font-weight: 800;
    line-height: 1.2;
}

.landing-brand em {
    margin-top: 2px;
    color: var(--text3);
    font-size: var(--text-caption);
    font-style: normal;
    line-height: 1.2;
}

.landing-links {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xl);
    color: var(--text2);
    font-size: var(--text-label);
    font-weight: 700;
}

.landing-links a {
    transition: color var(--duration-fast) var(--ease-fast);
}

.landing-links a:hover {
    color: var(--text1);
}

.landing-nav-cta,
.yv-button {
    height: var(--control-height);
    padding: 0 var(--control-padding-x);
    border-radius: var(--radius-control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    font: 800 var(--text-label)/1 var(--font-body);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-fast), background var(--duration-fast) var(--ease-fast), border-color var(--duration-fast) var(--ease-fast);
}

.landing-nav-cta,
.yv-button-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(243, 112, 88, 0.18);
}

.landing-nav-cta:hover,
.yv-button-primary:hover {
    transform: translateY(-1px);
    background: var(--accent-hover);
}

.yv-button-secondary {
    border: 1px solid var(--border-visible);
    background: var(--surface1);
    color: var(--text1);
    box-shadow: none;
}

.yv-button-secondary i {
    color: var(--accent);
}

.yv-button-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--border-visible);
    background: var(--surface2);
}

.hero-section {
    position: relative;
    min-height: 82vh;
    padding: 116px var(--layout-page-gutter) 62px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-product-stage {
    position: absolute;
    inset: 76px 0 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-product-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.22) 62%, rgba(255,255,255,0.54) 100%);
    z-index: 2;
}

.phone-shell {
    position: absolute;
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-container);
    background: var(--surface1);
    box-shadow: var(--shadow-2);
    overflow: hidden;
    opacity: 0.96;
}

.phone-shell-main {
    right: max(8vw, 92px);
    top: 12px;
    width: min(360px, 28vw);
    min-width: 310px;
    padding: 16px;
    transform: rotate(3deg);
}

.phone-shell-side {
    right: max(30vw, 430px);
    top: 150px;
    width: 238px;
    padding: 18px;
    transform: rotate(-5deg);
}

.phone-status,
.phone-topbar,
.phone-search,
.phone-tabs,
.phone-panel-heading {
    display: flex;
    align-items: center;
}

.phone-status {
    justify-content: space-between;
    color: var(--text2);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.phone-topbar {
    justify-content: space-between;
    margin-top: 20px;
}

.phone-topbar strong,
.phone-topbar span,
.phone-panel-heading strong,
.phone-panel-heading span {
    display: block;
}

.phone-topbar strong,
.phone-panel-heading strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.phone-topbar span,
.phone-panel-heading span {
    color: var(--text3);
    font-size: 12px;
    line-height: 1.3;
}

.phone-topbar img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
}

.phone-search {
    height: 38px;
    margin-top: 14px;
    padding: 0 14px;
    gap: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-visible);
    background: var(--surface2);
    color: var(--text3);
    font-size: 12px;
    font-weight: 500;
}

.phone-search i {
    color: var(--accent);
    font-size: 16px;
}

.phone-tabs {
    gap: 18px;
    margin: 16px 0 12px;
    color: var(--text2);
    font-size: 13px;
    font-weight: 800;
}

.phone-tabs span {
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.phone-tabs .active {
    color: var(--text1);
    border-color: var(--accent);
}

.mock-card {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-component);
    background: var(--surface1);
    box-shadow: var(--shadow-1);
}

.mock-card + .mock-card {
    margin-top: 12px;
}

.mock-card strong,
.mock-card p {
    display: block;
    margin: 0;
}

.mock-card strong {
    margin-top: 10px;
    color: var(--text1);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.mock-card p {
    margin-top: 4px;
    color: var(--text3);
    font-size: 11px;
    line-height: 1.3;
}

.mock-media {
    border-radius: 10px;
    background: var(--surface2);
    overflow: hidden;
}

.mock-media-web {
    height: 164px;
    padding: 14px;
    background: var(--surface2);
}

.mock-browser-bar {
    height: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mock-browser-bar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text4);
}

.mock-web-title {
    width: 70%;
    height: 22px;
    margin-top: 18px;
    border-radius: 8px;
    background: var(--text1);
}

.mock-web-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.mock-web-grid span {
    height: 34px;
    border-radius: 10px;
    background: var(--surface1);
    border: 1px solid var(--border);
}

.mock-media-video {
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-subtle);
}

.mock-media-video i {
    font-size: 34px;
}

.phone-panel-heading {
    justify-content: space-between;
    gap: 12px;
}

.code-lines {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.code-lines span {
    display: block;
    height: 9px;
    border-radius: var(--radius-pill);
    background: var(--surface3);
}

.code-lines span:nth-child(1),
.code-lines span:nth-child(4) {
    width: 78%;
}

.code-lines span:nth-child(2) {
    width: 94%;
    background: var(--accent-subtle);
}

.code-lines span:nth-child(3),
.code-lines span:nth-child(5) {
    width: 62%;
}

.preview-mini {
    margin-top: 20px;
    padding: 10px;
    border-radius: 14px;
    background: var(--surface2);
}

.preview-mini div {
    height: 76px;
    border-radius: 10px;
    background: var(--surface1);
    border: 1px solid var(--border);
}

.preview-mini span {
    display: block;
    width: 72%;
    height: 8px;
    margin-top: 10px;
    border-radius: var(--radius-pill);
    background: var(--text4);
}

.phone-shell-side button {
    width: 100%;
    height: 38px;
    margin-top: 16px;
    border: 0;
    border-radius: var(--radius-control);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 660px;
}

.hero-copy h1 {
    margin: 0;
    color: var(--text1);
    font: 800 clamp(34px, 5vw, 72px)/1.08 var(--font-display);
    letter-spacing: 0;
}

.hero-copy p {
    margin: var(--space-lg) 0 0;
    max-width: 610px;
    color: var(--text2);
    font-size: var(--text-subheading);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.hero-proof {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-width: 620px;
    margin: var(--space-xl) 0 0;
}

.hero-proof div {
    min-height: 0;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-proof dt,
.hero-proof dd {
    margin: 0;
}

.hero-proof dt {
    color: var(--text1);
    font-size: var(--text-caption);
    font-weight: 800;
    line-height: 1.3;
}

.hero-proof dd {
    margin-top: 0;
    color: var(--text3);
    font-size: var(--text-caption);
    line-height: 1.45;
}

.landing-section,
.download-section {
    width: min(1180px, calc(100vw - var(--layout-page-gutter) * 2));
    margin: 0 auto;
}

.landing-section {
    padding: var(--space-3xl) 0;
    scroll-margin-top: 96px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(280px, 0.72fr);
    gap: var(--layout-section-gap);
    align-items: end;
    margin-bottom: var(--space-xl);
}

.section-heading h2,
.workflow-copy h2,
.download-section h2 {
    margin: 0;
    color: var(--text1);
    font: 800 var(--text-display)/1.2 var(--font-display);
    letter-spacing: 0;
}

.section-heading p,
.workflow-copy p,
.download-section p {
    margin: 0;
    color: var(--text2);
    font-size: var(--text-subheading);
    line-height: 1.75;
}

.capability-band {
    display: grid;
    grid-template-columns: minmax(300px, 0.56fr) minmax(520px, 1fr);
    gap: var(--space-3xl);
    align-items: start;
}

.capability-band .section-heading {
    display: block;
    margin-bottom: 0;
    padding-top: var(--space-sm);
}

.capability-band .section-heading p {
    margin-top: var(--space-lg);
    max-width: 460px;
}

.capability-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.capability-card,
.learn-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-component);
    background: var(--surface1);
    box-shadow: var(--shadow-1);
}

.capability-card {
    min-height: 112px;
    padding: var(--space-md);
    display: grid;
    grid-template-columns: 44px minmax(170px, 0.36fr) minmax(260px, 1fr);
    align-items: center;
    gap: var(--space-md);
}

.capability-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 26px;
}

.capability-card:nth-child(2) i {
    background: #EEF2FF;
    color: #5364F4;
}

.capability-card:nth-child(3) i {
    background: #ECF8ED;
    color: var(--success);
}

.capability-card h3,
.learn-card h3 {
    margin: 0;
    color: var(--text1);
    font-size: var(--text-subheading);
    font-weight: 800;
    line-height: 1.25;
}

.capability-card p,
.learn-card p,
.workflow-item p {
    margin: 0;
    color: var(--text2);
    font-size: var(--text-body);
    line-height: 1.7;
}

.capability-card p {
    grid-column: auto;
}

.workflow-section {
    display: grid;
    grid-template-columns: minmax(460px, 0.92fr) minmax(360px, 0.64fr);
    gap: var(--space-2xl);
    align-items: start;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.workflow-intro {
    grid-column: 1 / -1;
    max-width: 820px;
}

.workflow-copy {
    display: grid;
    align-self: center;
}

.workflow-intro p {
    margin-top: var(--space-lg);
}

.workflow-visual {
    position: relative;
    margin-top: 0;
    min-height: 332px;
}

.workflow-visual-phone {
    width: min(100%, 330px);
    padding: 12px;
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-container);
    background: var(--surface1);
    box-shadow: var(--shadow-2);
}

.workflow-visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.workflow-visual-head span {
    width: 34px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--surface3);
}

.workflow-visual-head strong {
    color: var(--text1);
    font-size: var(--text-label);
    font-weight: 800;
}

.workflow-visual-head i {
    color: var(--text3);
    font-size: 20px;
}

.workflow-visual-summary,
.workflow-visual-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-component);
    background: var(--surface1);
    box-shadow: var(--shadow-1);
}

.workflow-visual-summary {
    padding: 12px;
}

.workflow-visual-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    color: var(--accent);
    font-size: var(--text-caption);
    font-weight: 700;
    line-height: 1.3;
}

.workflow-visual-kicker i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-element);
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 14px;
}

.workflow-visual-summary strong,
.workflow-visual-block strong,
.workflow-visual-note strong {
    display: block;
    color: var(--text1);
    font-size: var(--text-label);
    font-weight: 800;
    line-height: 1.25;
}

.workflow-visual-summary p,
.workflow-visual-block span,
.workflow-visual-note span {
    display: block;
    margin-top: 4px;
    color: var(--text3);
    font-size: var(--text-caption);
    line-height: 1.4;
}

.workflow-visual-summary p {
    margin: var(--space-xs) 0 0;
    color: var(--text2);
    line-height: 1.55;
}

.workflow-visual-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.workflow-visual-chips span {
    padding: 4px 8px;
    border-radius: var(--radius-element);
    background: var(--surface2);
    color: var(--text2);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.workflow-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.workflow-visual-block {
    padding: 12px;
}

.workflow-visual-block-head {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.workflow-visual-block-head i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border-radius: var(--radius-control);
    background: var(--surface2);
    color: var(--text2);
    font-size: 18px;
}

.visual-prompt .workflow-visual-block-head i {
    background: var(--accent-subtle);
    color: var(--accent);
}

.workflow-prompt-quote {
    padding: var(--space-sm);
    border-radius: var(--radius-control);
    background: var(--surface2);
    color: var(--text2);
    font-size: var(--text-caption);
    line-height: 1.55;
}

.workflow-step-list {
    display: grid;
    gap: var(--space-xs);
}

.workflow-step-list span {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    color: var(--text2);
    font-size: var(--text-caption);
    line-height: 1.45;
}

.workflow-step-list i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    border-radius: var(--radius-element);
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 11px;
}

.workflow-visual-note {
    position: absolute;
    right: 0;
    bottom: 6px;
    width: min(190px, 55%);
    padding: 12px;
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-component);
    background: var(--surface1);
    box-shadow: var(--shadow-1);
}

.workflow-visual-note i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    border-radius: 12px;
    background: #EEF2FF;
    color: #5364F4;
    font-size: 22px;
}

.workflow-list {
    display: grid;
    gap: 0;
    padding: var(--space-lg);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-container);
    background: var(--surface1);
    box-shadow: var(--shadow-2);
}

.workflow-list-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0 0 var(--space-md);
    border-bottom: 1px solid var(--border);
}

.workflow-list-heading strong,
.workflow-list-heading span {
    display: block;
}

.workflow-list-heading strong {
    color: var(--text1);
    font-size: var(--text-heading);
    font-weight: 800;
    line-height: 1.25;
}

.workflow-list-heading span {
    color: var(--text3);
    font-size: var(--text-caption);
    line-height: 1.4;
}

.workflow-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    min-height: 92px;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
}

.workflow-item:last-child {
    border-bottom: 0;
}

.workflow-item span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface2);
    color: var(--accent);
    font-size: var(--text-label);
    font-weight: 800;
}

.workflow-item strong {
    color: var(--text1);
    font-size: var(--text-subheading);
    font-weight: 800;
}

.workflow-item p {
    grid-column: 2;
    line-height: 1.5;
}

.preview-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--layout-card-gap);
}

.learn-card {
    min-height: 168px;
    padding: var(--space-lg);
}

.icon-tile {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 26px;
}

.icon-tile.coral {
    background: var(--accent-subtle);
    color: var(--accent);
}

.icon-tile.blue {
    background: #EAEEFF;
    color: #5364F4;
}

.icon-tile.green {
    background: #ECF8ED;
    color: var(--success);
}

.download-section {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
    gap: var(--layout-section-gap);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-container);
    background: var(--surface1);
    box-shadow: var(--shadow-2);
}

.download-section p {
    margin-top: var(--space-md);
    max-width: 760px;
}

.download-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-md);
}

@media (max-width: 980px) {
    .landing-links {
        display: none;
    }

    .landing-nav {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .hero-section {
        min-height: auto;
        padding-top: 118px;
        padding-bottom: var(--space-3xl);
    }

    .hero-product-stage {
        position: relative;
        inset: auto;
        order: 2;
        height: 520px;
        margin-top: var(--space-2xl);
    }

    .hero-product-stage::before {
        background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.72));
    }

    .hero-copy {
        max-width: 720px;
    }

    .phone-shell-main {
        right: 12%;
    }

    .phone-shell-side {
        right: 50%;
    }

    .section-heading,
    .capability-band,
    .workflow-section,
    .download-section {
        grid-template-columns: 1fr;
    }

    .capability-band {
        gap: var(--space-xl);
    }

    .capability-band .section-heading p {
        max-width: none;
    }

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

    .capability-grid,
    .preview-board {
        grid-template-columns: 1fr;
    }

    .capability-card,
    .learn-card {
        min-height: 0;
    }

    .capability-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .capability-card p {
        grid-column: 2;
    }

    .download-actions {
        justify-content: flex-start;
    }

}

@media (max-width: 680px) {
    .landing-nav {
        height: 68px;
        padding: 0 var(--layout-page-gutter);
    }

    .landing-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .landing-brand em,
    .landing-nav-cta span {
        display: none;
    }

    .landing-nav-cta {
        width: var(--control-height);
        padding: 0;
    }

    .hero-section {
        padding-top: 92px;
    }

    .hero-copy h1 {
        max-width: 320px;
        font-size: 32px;
        line-height: 1.14;
        text-wrap: balance;
    }

    .hero-proof {
        flex-direction: column;
        margin-top: var(--space-xl);
    }

    .hero-product-stage {
        height: 462px;
        margin-top: var(--space-xl);
    }

    .phone-shell-main {
        top: 8px;
        right: 0;
        left: 0;
        width: min(292px, calc(100vw - 32px));
        min-width: 0;
        padding: 14px;
        margin: 0 auto;
        transform: rotate(1deg);
    }

    .phone-topbar {
        margin-top: 14px;
    }

    .phone-search {
        height: 34px;
        margin-top: 12px;
    }

    .phone-tabs {
        margin: 12px 0 10px;
    }

    .mock-media-web {
        height: 118px;
    }

    .mock-media-video {
        height: 78px;
    }

    .hero-proof {
        gap: var(--space-sm);
    }

    .hero-proof div {
        min-height: 0;
        padding: var(--space-md);
    }

    .phone-shell-side {
        display: none;
    }

    .workflow-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: var(--space-md);
    }

    .workflow-list,
    .workflow-visual-phone,
    .download-section {
        border-radius: var(--radius-component);
    }

    .workflow-list-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-xs);
    }

    .workflow-item p {
        grid-column: 2;
    }

    .workflow-visual {
        min-height: 0;
    }

    .workflow-visual-grid {
        grid-template-columns: 1fr;
    }

    .workflow-visual-phone {
        width: 100%;
    }

    .workflow-visual-note {
        position: static;
        width: 100%;
        margin-top: var(--space-sm);
    }

    .download-section {
        width: min(100vw - 24px, 1180px);
        padding: var(--space-lg);
    }

    .download-actions {
        display: flex;
        width: 100%;
    }

    .download-actions .yv-button {
        flex: 1 1 auto;
    }
}
