/* ============================
   AI Hair Styler — Landing Page
   ============================ */

:root {
    --primary: #14b8a6;
    --primary-dark: #0c8a7f;
    --primary-light: #5eead4;
    --gold: #f5a623;
    --ink: #0b1220;
    --ink-soft: #1e293b;
    --muted: #64748b;
    --bg: #fbfbfa;
    --surface: #ffffff;
    --border: #e8eaed;
    --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.06);
    --shadow-md: 0 12px 32px rgba(11, 18, 32, 0.10);
    --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.16);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--ink-soft);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

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

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: rgba(20, 184, 166, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.1rem;
}

.eyebrow-row .eyebrow {
    margin-bottom: 0;
}

.eyebrow-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b9720f;
    background: rgba(245, 166, 35, 0.14);
}

.star-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.text-gradient {
    background: linear-gradient(120deg, var(--primary) 10%, var(--primary-dark) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

.btn-cta {
    background: #fff;
    color: var(--primary-dark);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 18px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(251, 251, 250, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 9px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.95rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--ink);
    margin: 0 auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 168px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(560px 400px at 85% -5%, rgba(20, 184, 166, 0.16), transparent 60%),
        radial-gradient(500px 380px at 5% 20%, rgba(245, 166, 35, 0.12), transparent 60%),
        var(--bg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.3rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 2.1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    row-gap: 18px;
    column-gap: 32px;
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
}

.hero-trust-item strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
}

.hero-trust-item span {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Store badges ---------- */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

.btn-store-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.15;
}

.btn-store-text small {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.btn-store-light {
    background: #fff;
    color: var(--ink);
}

.btn-store-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ---------- Social proof rating strip ---------- */
.rating-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.rating-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    text-align: center;
}

.rating-stars {
    display: flex;
    gap: 3px;
    color: var(--gold);
}

.rating-stars svg {
    width: 18px;
    height: 18px;
}

.rating-text,
.rating-platforms {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.rating-text strong,
.rating-platforms strong {
    color: var(--ink);
    font-weight: 800;
}

.rating-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.cta-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 1.4rem;
}

.cta-rating svg {
    width: 16px;
    height: 16px;
    color: #ffd166;
    flex-shrink: 0;
}

.store-badges-cta {
    justify-content: center;
}

.footer-rating {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: min(300px, 78vw);
    border-radius: 42px;
    border: 8px solid var(--ink);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink);
    z-index: 2;
    animation: floatY 6s ease-in-out infinite;
}

.phone-mockup img {
    width: 100%;
    display: block;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px;
    width: 168px;
    z-index: 3;
}

.floating-card img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.floating-card span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

.card-style-1 {
    top: 6%;
    left: -6%;
    animation: floatY 5s ease-in-out infinite;
    animation-delay: 0.4s;
}

.card-style-2 {
    bottom: 10%;
    right: -8%;
    animation: floatY 5.5s ease-in-out infinite;
    animation-delay: 0.9s;
}

.floating-chip {
    position: absolute;
    z-index: 3;
    background: var(--ink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.chip-1 {
    top: 42%;
    left: -12%;
}

.chip-2 {
    bottom: 26%;
    right: -10%;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ---------- Section scaffolding ---------- */
.section-block {
    padding: 96px 0;
}

.section-tint {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.05), rgba(20, 184, 166, 0));
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.5rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------- Steps ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.step-icon svg {
    width: 26px;
    height: 26px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.step-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- Style tabs & grid ---------- */
.style-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.6rem;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.tab-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

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

.style-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.4s ease both;
}

.style-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--shadow-md);
}

.style-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.style-card:hover img {
    transform: scale(1.06);
}

.style-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 14px 12px;
    background: linear-gradient(0deg, rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.style-note {
    text-align: center;
    color: var(--muted);
    margin-top: 2.2rem;
    font-size: 0.9rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

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

.icon-teal {
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary-dark);
}

.icon-gold {
    background: rgba(245, 166, 35, 0.14);
    color: #b9720f;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 3rem;
}

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.price-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.price-amount span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

.price-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.6rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-features li {
    font-size: 0.92rem;
    color: var(--ink-soft);
    padding-left: 26px;
    position: relative;
}

.price-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.price-card-popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
}

.price-card-popular:hover {
    transform: scale(1.03) translateY(-6px);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.credit-packs {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.credit-pack-info h4 {
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.credit-pack-info p {
    color: var(--muted);
    font-size: 0.9rem;
}

.credit-pack-cards {
    display: flex;
    gap: 16px;
}

.credit-pack-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 26px;
    text-align: center;
    min-width: 120px;
}

.credit-pack-card strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.credit-pack-card span {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

.faq-caret {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.25s ease;
}

.faq-item.open .faq-caret {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

.faq-answer a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 2.2rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand p {
    margin-top: 14px;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    font-size: 0.85rem;
    text-align: center;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

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

    .price-card-popular {
        transform: none;
        grid-column: span 2;
        max-width: 420px;
        margin: 0 auto;
    }

    .style-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 22px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 0;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-buttons .btn-primary .btn-label {
        display: none;
    }

    .nav-buttons .btn-primary {
        padding: 10px 14px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 128px 0 70px;
    }

    .hero-visual {
        transform: scale(0.92);
    }

    .floating-card {
        width: 132px;
        padding: 6px;
    }

    .floating-card img {
        width: 36px;
        height: 36px;
    }

    .floating-card span {
        font-size: 0.7rem;
    }

    .chip-1,
    .chip-2 {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .section-block {
        padding: 64px 0;
    }

    .steps-grid,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card-popular {
        grid-column: auto;
    }

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

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .credit-packs {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-trust {
        column-gap: 24px;
        row-gap: 14px;
    }

    .store-badges {
        justify-content: center;
    }

    .btn-store {
        padding: 9px 14px;
    }

    .btn-store-text {
        font-size: 0.9rem;
    }

    .rating-strip-inner {
        font-size: 0.85rem;
    }

    .rating-divider {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    .phone-mockup,
    .floating-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Store dialog ---------- */
.store-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.store-dialog-backdrop[hidden] {
    display: none;
}

.store-dialog {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: dialogPop 0.25s ease;
}

.store-dialog h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.store-dialog p {
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.store-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.store-dialog-close:hover {
    background: var(--border);
    color: var(--ink);
}

.store-badges-modal {
    flex-direction: column;
    align-items: stretch;
}

.store-badges-modal .btn-store {
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dialogPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
