.landing-hero-grid {
display: flex;
align-items: center;
justify-content: center;
gap: 60px;
min-height: 82vh;
background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 100%), url('../images/landing_section_2.jpeg');
background-size: cover;
background-position: center;
padding: 120px 24px 64px 24px; /* top space: the navbar is absolutely positioned over the hero */
}
.hero-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 60px;
}
.hero-left {
flex: 1 1 400px;
max-width: 540px;
}
.hero-right {
flex: 0 1 340px;
display: flex;
justify-content: center;
align-items: center;
}
.as-playlist-green {
color: var(--spotify-green);
font-weight: 900;
}
.playlist-mockup-img {
width: 320px;
height: auto;
max-width: 95vw;
border-radius: 18px;
box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 0 6px var(--spotify-green);
transform: rotate(-8deg);
transition: box-shadow 0.3s, transform 0.3s;
animation: floating 2.5s ease-in-out infinite alternate;
}
@keyframes floating {
0% { transform: rotate(-8deg) translateY(0);}
100% { transform: rotate(-10deg) translateY(-12px);}
}
@media (max-width: 900px) {
.hero-inner {
flex-direction: column;
gap: 30px;
}
.landing-hero-grid {
flex-direction: column;
gap: 30px;
padding-top: 100px; /* Space for the navbar on mobile */
}
.hero-right {
margin-top: 16px;
}
}
.playlist-img-wrapper {
display: flex;
justify-content: center;
}
.landing-header {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 100%), url('../images/landing_section_2.jpeg');
background-size: cover;
background-position: center;
margin: -24px;
padding: 24px;
}

@media (max-width: 576px) {
.landing-header {
padding: 15px;
}
}

.landing-title {
font-size: 3.4rem;
font-weight: 900;
margin-bottom: 1rem;
letter-spacing: -0.05em;
}

.landing-subtitle {
font-size: 1.5rem;
font-weight: 400;
margin-bottom: 2rem;
max-width: 700px;
color: var(--spotify-white);
}

.landing-actions {
margin-top: 1.5rem;
}
.landing-title-emoji {
font-size: 2.2rem;
vertical-align: middle;
}
.landing-actions-note {
margin: 0.75rem 0 0 0;
font-size: 0.95rem;
color: var(--spotify-light-gray);
}
.landing-proof-strip {
background-color: var(--spotify-dark-gray);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
padding: 18px 15px;
text-align: center;
}
.landing-proof {
margin: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px 32px;
font-size: 0.95rem;
color: var(--spotify-white);
}
.proof-item {
white-space: nowrap;
}
@media (max-width: 576px) {
.proof-item {
white-space: normal;
}
}
.landing-proof strong {
color: var(--spotify-green);
}

/* FAQ */
.landing-faq-section {
background-color: rgba(255, 255, 255, 0.045);
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-faq {
padding: 80px 0;
max-width: 800px;
}
.faq-item {
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
padding: 16px 4px;
}
.faq-item summary {
cursor: pointer;
font-weight: 700;
font-size: 1.1rem;
}
.faq-item summary:focus-visible {
outline: 3px solid var(--spotify-green);
outline-offset: 4px;
}
.faq-item p {
margin: 12px 0 0 0;
color: var(--spotify-white);
opacity: 0.9;
line-height: 1.6;
}
@media (max-width: 768px) {
.landing-faq {
padding: 50px 15px;
}
}

/* Hero example picker (Love / Birthday / Sorry) */
.hero-picker {
display: none;
margin: 1.5rem 0 1rem 0;
}
.has-js .hero-picker {
display: block;
}
.hero-picker-label {
margin: 0 0 0.6rem 0;
font-size: 0.95rem;
color: var(--spotify-light-gray);
}
.hero-picker-buttons {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.hero-msg-btn {
background: rgba(255, 255, 255, 0.08);
color: var(--spotify-white);
border: 2px solid rgba(255, 255, 255, 0.25);
border-radius: 999px;
padding: 8px 20px;
font-family: inherit;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-msg-btn:hover {
background: rgba(29, 185, 84, 0.2);
border-color: var(--spotify-green);
transform: translateY(-2px);
}
.hero-msg-btn:focus-visible {
outline: 3px solid var(--spotify-green);
outline-offset: 2px;
}
.hero-msg-btn.is-active {
background: var(--spotify-green);
border-color: var(--spotify-green);
color: #000;
}
/* Mobile: the three buttons share one row, splitting the width equally */
@media (max-width: 576px) {
.hero-picker-buttons {
flex-wrap: nowrap;
gap: 8px;
}
.hero-msg-btn {
flex: 1 1 0;
min-width: 0;
padding: 8px 6px;
font-size: clamp(0.8rem, 3.6vw, 1rem);
white-space: nowrap;
text-align: center;
}
}
/* Very narrow screens: drop the emojis so "Birthday" fits */
@media (max-width: 360px) {
.hero-msg-btn span[aria-hidden="true"] {
display: none;
}
}
.hero-message {
margin: 1rem auto 0.5rem auto;
max-width: 600px;
font-style: italic;
border-left: 3px solid var(--spotify-green);
padding-left: 12px;
color: var(--spotify-light-gray);
}
.hero-status {
min-height: 1.6rem;
margin: 0 0 0.5rem 0;
font-size: 0.95rem;
color: var(--spotify-green);
}
.js-hero-playlist {
transition: opacity 0.45s ease, filter 0.45s ease;
}
.js-hero-playlist.is-loading {
opacity: 0.2;
filter: grayscale(1) blur(2px);
}
@media (prefers-reduced-motion: reduce) {
.js-hero-playlist {
transition: none;
}
.hero-msg-btn {
transition: none;
}
}

.landing-features {
padding: 80px 0;
}

@media (max-width: 768px) {
.landing-features {
padding: 50px 0;
}
}

.feature-card {
text-align: center;
padding: 30px;
margin-bottom: 30px;
}

@media (max-width: 576px) {
.feature-card {
padding: 20px 15px;
}
}

.feature-icon {
font-size: 3rem;
color: var(--spotify-green);
margin-bottom: 20px;
}

.feature-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 15px;
}

.feature-description {
color: var(--spotify-white);
opacity: 0.9;
line-height: 1.6;
}

.landing-usecases {
background-color: rgba(255, 255, 255, 0.045);
border-top: 1px solid rgba(255, 255, 255, 0.06);
padding: 80px 0;
}
.usecase-card {
height: 100%;
padding: 24px;
border-radius: 12px;
background-color: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.usecase-title {
margin: 0 0 6px 0;
font-size: 1.25rem;
font-weight: 700;
}
.usecase-desc {
margin: 0 0 14px 0;
color: var(--spotify-light-gray);
font-size: 0.95rem;
}
.usecase-message {
margin: 0;
padding-left: 12px;
border-left: 3px solid var(--spotify-green);
font-style: italic;
color: var(--spotify-white);
opacity: 0.9;
font-size: 0.95rem;
}
@media (max-width: 768px) {
.landing-usecases {
padding: 50px 0;
}
.usecase-card {
padding: 18px;
}
}
.landing-how-it-works {
background-color: rgba(0,0,0,0.3);
padding: 80px 0;
}

@media (max-width: 768px) {
.landing-how-it-works {
padding: 50px 0;
}
}

.step {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 30px;
}

@media (max-width: 768px) {
.step {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 40px;
}
}

.step-number {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--spotify-green);
color: #000;
font-weight: 700;
margin-bottom: 15px;
}

.step-title {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 10px;
}

.step-description {
color: var(--spotify-white);
opacity: 0.9;
}

.section-title {
font-weight: 700;
font-size: 2rem;
margin-bottom: 10px;
}

.section-subtitle {
font-size: 1.2rem;
color: var(--spotify-white);
margin-bottom: 40px;
}

@media (max-width: 768px) {
.landing-title {
font-size: 2.5rem;
}

.landing-subtitle {
font-size: 1.2rem;
padding: 0 15px;
}

.section-title {
font-size: 1.8rem;
}

.section-subtitle {
font-size: 1rem;
margin-bottom: 30px;
padding: 0 15px;
}
}

@media (max-width: 576px) {
.landing-title {
font-size: 2rem;
padding: 0 10px;
}

.landing-subtitle {
font-size: 1rem;
padding: 0 15px;
}

.btn-spotify {
padding: 10px 20px;
font-size: 0.9rem;
}

.feature-icon {
font-size: 2.5rem;
margin-bottom: 15px;
}

.feature-title {
font-size: 1.3rem;
}

.feature-description {
font-size: 0.9rem;
}

.step-title {
font-size: 1.1rem;
}

.step-description {
font-size: 0.9rem;
}
}

.video-demo-section {
background-color: #080808;
background: radial-gradient(circle at 50% 50%, rgba(29,185,84,0.12) 0%, rgba(8,8,8,1) 70%);
padding: 80px 0;
}

.video-container {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
margin: 0 auto;
max-width: 800px;
}

.video-facade {
display: block;
padding: 0;
background: #000;
cursor: pointer;
}
.video-facade img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: opacity 0.2s;
}
.video-facade:hover img {
opacity: 0.85;
}
.video-facade:focus-visible {
outline: 3px solid var(--spotify-green);
outline-offset: -3px;
}
.video-play {
position: absolute;
top: 50%;
left: 50%;
width: 68px;
height: 48px;
margin: -24px 0 0 -34px;
border-radius: 12px;
background: rgba(29, 185, 84, 0.92);
transition: transform 0.2s;
}
.video-play::after {
content: "";
position: absolute;
top: 14px;
left: 27px;
border-style: solid;
border-width: 10px 0 10px 17px;
border-color: transparent transparent transparent #000;
}
.video-facade:hover .video-play {
transform: scale(1.1);
}
.video-cta {
max-width: 800px;
margin-left: auto;
margin-right: auto;
background-color: rgba(0,0,0,0.4);
border-radius: 12px;
padding: 20px;
margin-top: 30px;
border-left: 4px solid var(--spotify-green);
}

@media (max-width: 768px) {
.landing-hero-grid {
flex-direction: column;
gap: 0;
padding: 96px 0 32px 0; /* the navbar is absolutely positioned over the hero; the container gives the side padding */
min-height: unset;
}
.hero-left {
max-width: 100%;
padding: 0;
}
/* Hide right column on mobile */
.hero-right {
display: none;
}
/* Show mobile image after the message */
.mobile-playlist-img {
display: block;
width: 100%;
text-align: center;
margin: 28px 0 20px 0; /* extra top space so the floating image never touches the status text */
}
.mobile-playlist-img img {
width: 260px;
height: auto;
max-width: 85vw;
border-radius: 14px;
box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 0 4px var(--spotify-green);
/* Straight on mobile (no tilt): the tilted floating animation made it overlap the status text above */
transform: none;
animation: floating-straight 3s ease-in-out infinite alternate;
will-change: transform;
}
/* A pure translateY this slow (about 0.1 px per frame) moves in 1 px steps on many mobile browsers.
   translate3d keeps it on the GPU and the tiny scale forces sub-pixel interpolation, so it stays smooth without tilting. */
@keyframes floating-straight {
0% { transform: translate3d(0, 0, 0) scale(1);}
100% { transform: translate3d(0, -10px, 0) scale(1.025);}
}
}
@media (min-width: 769px) {
/* Hide mobile image on desktop */
.mobile-playlist-img {
display: none;
}
}
@media (max-width: 768px) {
.video-demo-section {
padding: 50px 0;
}
}

/* Mobile hero: keep the call to action close to the first screen */
@media (max-width: 768px) {
.landing-title {
font-size: 1.9rem;
padding: 0;
margin-bottom: 0.75rem;
}
.landing-title-emoji {
font-size: 1.6rem;
}
.landing-subtitle {
font-size: 1.05rem;
padding: 0;
margin-bottom: 1rem;
}
.hero-picker {
margin: 1rem 0 0.75rem 0;
}
.hero-message {
font-size: 0.95rem;
margin-top: 0.75rem;
}
.mobile-playlist-img {
margin: 16px 0 8px 0;
}
.mobile-playlist-img img {
width: 210px;
}
.landing-actions {
margin-top: 1rem;
text-align: center;
}
.landing-actions-note {
font-size: 0.85rem;
}
/* Full-width buttons that fit on one line */
.btn-gradient.btn-lg {
display: block;
width: 100%;
padding: 14px 12px;
font-size: 1rem;
letter-spacing: 0.5px;
white-space: nowrap;
}
.landing-features {
padding: 40px 0 20px 0;
}
.feature-card {
padding: 8px 15px;
margin-bottom: 20px;
}
.landing-proof {
gap: 4px 20px;
font-size: 0.9rem;
}
}
@media (max-width: 360px) {
.btn-gradient.btn-lg {
font-size: 0.9rem;
letter-spacing: 0;
}
}

/* Thematic landings: the hero keeps the main landing's layout. A theme without its own photo uses the
   default one under a colored tint (--hero-tint); a theme with its own photo (--hero-image, class
   has-photo) needs no tint and a lighter dark layer, because those photos are already dark. */
.hero-themed {
--hero-shade: rgba(0, 0, 0, 0.7);
background-image: var(--hero-tint, none), linear-gradient(var(--hero-shade), var(--hero-shade)), var(--hero-image, url('../images/landing_section_2.jpeg'));
background-position: center, center, var(--hero-position, center);
}
.hero-themed.has-photo {
--hero-shade: rgba(0, 0, 0, 0.45);
}
.hero-themed .landing-title,
.hero-themed .landing-subtitle,
.hero-themed .hero-message,
.hero-themed .landing-actions-note {
text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
.landing-about {
max-width: 800px;
padding: 70px 15px 30px 15px;
}
.landing-about p {
color: var(--spotify-white);
opacity: 0.9;
line-height: 1.7;
font-size: 1.05rem;
}
@media (max-width: 768px) {
.landing-about {
padding: 40px 15px 10px 15px;
}
}

/* Cards of the use cases section that link to a thematic landing */
.usecase-link {
display: block;
color: inherit;
text-decoration: none;
transition: border-color 0.2s, transform 0.2s;
}
.usecase-link:hover {
color: inherit;
border-color: var(--spotify-green);
transform: translateY(-2px);
}
.usecase-link:focus-visible {
outline: 3px solid var(--spotify-green);
outline-offset: 2px;
}
.usecase-more {
display: inline-block;
margin-top: 14px;
font-size: 0.9rem;
font-weight: 600;
color: var(--spotify-green);
}
/* Same section without its own background (on the thematic pages, between two coloured sections) */
.landing-usecases--plain {
background-color: transparent;
border-top: 0;
}
@media (prefers-reduced-motion: reduce) {
.usecase-link {
transition: none;
}
}
