body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fcf9f8;
    color: #1c1b1b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.brand-logo-text {
    color: #5300e7;
}

.ios-cta,
button.ios-cta,
a.ios-cta {
    background: linear-gradient(135deg, #5300e7 0%, #6c38ff 100%) !important;
    color: #ffffff !important;
    border: none !important;
    -webkit-text-fill-color: #ffffff;
}

.ios-cta .material-symbols-outlined {
    color: #ffffff;
}

.ios-cta {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ios-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(83, 0, 231, 0.25);
}

.ios-secondary-cta {
    background: #fff;
    color: #5300e7;
    border: 1px solid rgba(83, 0, 231, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ios-secondary-cta:hover {
    background: rgba(83, 0, 231, 0.04);
    border-color: rgba(83, 0, 231, 0.35);
}

.ios-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: rgba(83, 0, 231, 0.08);
    color: #5300e7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ios-stat-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 96px;
}

.ios-stat-pill strong {
    font-size: 20px;
    font-weight: 800;
    color: #1c1b1b;
    line-height: 1.2;
}

.ios-stat-pill span {
    font-size: 12px;
    color: #484456;
}

.ios-device-shell {
    position: relative;
    padding: 12px;
    border-radius: 40px;
    background: linear-gradient(160deg, #1c1b1b 0%, #3a3840 100%);
    box-shadow:
        0 24px 60px rgba(28, 27, 27, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ios-device-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    border-radius: 9999px;
    background: #0f0f10;
    z-index: 2;
}

.ios-device-screen {
    display: block;
    width: 100%;
    border-radius: 32px;
    background: #fff;
}

.ios-floating-card {
    padding: 1rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 32px rgba(83, 0, 231, 0.1);
    animation: floatY 4s ease-in-out infinite;
}

.ios-floating-card-delay {
    animation-delay: 1s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.ios-feature-card,
.ios-mini-card,
.ios-testimonial-card {
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ios-feature-card:hover,
.ios-mini-card:hover,
.ios-testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(83, 0, 231, 0.08);
}

.ios-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.ios-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ios-segmented-control {
    display: inline-flex;
    padding: 4px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.05);
    gap: 4px;
}

.ios-segment {
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #484456;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ios-segment.is-active {
    background: #fff;
    color: #5300e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ios-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ios-chip {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    color: #484456;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.ios-chip.is-active {
    background: #5300e7;
    border-color: #5300e7;
    color: #fff;
}

.ios-tag {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(83, 0, 231, 0.08);
    color: #5300e7;
}

.ios-tag-muted {
    background: rgba(72, 68, 86, 0.08);
    color: #484456;
}

.style-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .style-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .style-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.style-catalog-card {
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.style-catalog-card.is-hidden {
    display: none;
}

.style-catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(83, 0, 231, 0.1);
}

.style-catalog-image-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f6f3f2;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    position: relative;
    text-align: left;
}

.style-catalog-preview-trigger:focus-visible {
    outline: 2px solid #5300e7;
    outline-offset: 2px;
}

.style-catalog-zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #5300e7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.style-catalog-preview-trigger:hover .style-catalog-zoom-hint,
.style-catalog-preview-trigger:focus-visible .style-catalog-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

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

.style-catalog-card:hover .style-catalog-image {
    transform: scale(1.04);
}

.style-catalog-body {
    padding: 1rem 1rem 1.25rem;
}

.hair-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .hair-color-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hair-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hair-color-item:hover,
.hair-color-item.is-featured {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(83, 0, 231, 0.1);
}

.hair-color-item.is-featured {
    border-color: rgba(83, 0, 231, 0.25);
}

.hair-color-swatch,
.hair-color-preview {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.hair-color-name {
    font-size: 12px;
    font-weight: 600;
    color: #484456;
    text-align: center;
    line-height: 1.3;
}

.ios-cta-section {
    background: linear-gradient(180deg, #f6f3f2 0%, #fdf7ff 100%);
}

.ios-pricing-card {
    position: relative;
    overflow: hidden;
}

.ios-pricing-option {
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 160px;
}

.ios-pricing-option-featured {
    background: linear-gradient(135deg, #5300e7 0%, #6c38ff 100%);
    color: #fff;
    border: none;
    box-shadow: 0 12px 32px rgba(83, 0, 231, 0.25);
}

.reveal-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-panel {
    animation: slideDown 0.2s ease;
}

.mobile-nav-link {
    color: #484456;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:hover {
    color: #5300e7;
}

.nav-link.is-active {
    color: #5300e7;
    font-weight: 600;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-content {
    line-height: 1.7;
}

.legal-content > * + * {
    margin-top: 1rem;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: #1c1b1b;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-size: 1.25rem;
}

.legal-content h4 {
    font-size: 1.125rem;
}

.legal-content p {
    margin: 0 0 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.legal-content ul ul {
    list-style-type: circle;
}

.legal-content ul ul ul {
    list-style-type: square;
}

.legal-content li {
    display: list-item;
    margin-bottom: 0.625rem;
    padding-left: 0.25rem;
    color: #484456;
}

.legal-content li:last-child {
    margin-bottom: 0;
}

.legal-content li::marker {
    color: #5300e7;
}

.legal-content ol li::marker {
    color: #5300e7;
    font-weight: 600;
}

.legal-content strong,
.legal-content b {
    color: #1c1b1b;
    font-weight: 700;
}

.legal-content a {
    color: #5300e7;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #b90760;
}

.legal-content hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.legal-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #5300e7;
    background: rgba(83, 0, 231, 0.05);
    border-radius: 0 12px 12px 0;
    color: #484456;
}

.page-legal main,
.page-404 main,
.page-contact main {
    background: #fcf9f8;
}

.contact-form-card {
    margin-bottom: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: #1c1b1b;
}

.contact-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fafafa;
    font-size: 16px;
    color: #1c1b1b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-input:focus {
    outline: none;
    border-color: rgba(83, 0, 231, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(83, 0, 231, 0.08);
}

.contact-input.is-invalid {
    border-color: #ba1a1a;
    background: #fff8f8;
}

.contact-textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-field-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.contact-error {
    margin: 0;
    font-size: 13px;
    color: #ba1a1a;
    flex: 1;
}

.contact-error.is-hidden {
    display: none;
}

.contact-char-count {
    font-size: 12px;
    color: #484456;
    white-space: nowrap;
}

.contact-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    color: #ffffff !important;
    background: linear-gradient(135deg, #5300e7 0%, #6c38ff 100%) !important;
}

.contact-alert {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-alert p {
    margin: 0;
    font-size: 14px;
}

.contact-alert-success {
    background: rgba(83, 0, 231, 0.08);
    border: 1px solid rgba(83, 0, 231, 0.15);
    color: #1c1b1b;
}

.contact-alert-success .material-symbols-outlined {
    color: #5300e7;
}

.contact-alert-error {
    background: rgba(186, 26, 26, 0.08);
    border: 1px solid rgba(186, 26, 26, 0.15);
    color: #1c1b1b;
}

.contact-alert-error .material-symbols-outlined {
    color: #ba1a1a;
}

.style-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.style-preview-modal.is-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.style-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 14, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.style-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(98vw, 1400px);
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    animation: modalFadeIn 0.22s ease;
}

.style-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: #1c1b1b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.style-preview-close:hover {
    transform: scale(1.06);
}

.style-preview-stage {
    width: 100%;
    min-height: 50vh;
    max-height: calc(96vh - 88px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
    border-radius: 20px;
    background: #111;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.style-preview-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    margin: 0 auto;
}

.style-preview-modal.is-open .style-preview-image {
    max-width: min(96vw, 1360px) !important;
    max-height: calc(96vh - 120px) !important;
}

.style-preview-meta {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    text-align: center;
}

body.style-preview-open {
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ios-floating-card,
    .reveal-section,
    .style-catalog-card,
    .hair-color-item,
    .ios-cta {
        animation: none !important;
        transition: none !important;
    }

    .reveal-section {
        opacity: 1;
        transform: none;
    }
}
