/* ==========================================================================
   Creator Path Chooser (English market)
   Full-screen, dopamine-y selection screen shown before the wizard:
   "set it up myself" vs. "free done-for-you with a consultant".
   Mobile-first, GSAP-animated (with graceful no-JS fallback).
   ========================================================================== */

.pc-lock { overflow: hidden; }

:root {
    --pc-ink: #0f172a;
    --pc-muted: #64748b;
    --pc-card: #ffffff;
    --pc-border: #e7eaf3;
    --pc-blue: #2563eb;
    --pc-violet: #7c3aed;
    --pc-pink: #ec4899;
    --pc-green: #10b981;
    --pc-teal: #14b8a6;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.pc {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    background: radial-gradient(120% 120% at 100% 0%, #eef2ff 0%, #f8fafc 45%, #ffffff 100%);
    color: var(--pc-ink);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: contain;
}

.pc__scroll {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(env(safe-area-inset-top) + 1.25rem) 1.25rem calc(env(safe-area-inset-bottom) + 2rem);
    gap: 1.75rem;
}

.pc__logo-link { flex: none; }
.pc__logo { height: 30px; width: auto; display: block; }

/* Animated background orbs */
.pc__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pc__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}
.pc__orb--1 { width: 42vmax; height: 42vmax; top: -16vmax; right: -12vmax; background: radial-gradient(circle, rgba(124,58,237,0.55), transparent 70%); animation: pc-float-a 18s ease-in-out infinite; }
.pc__orb--2 { width: 38vmax; height: 38vmax; bottom: -14vmax; left: -12vmax; background: radial-gradient(circle, rgba(37,99,235,0.5), transparent 70%); animation: pc-float-b 22s ease-in-out infinite; }
.pc__orb--3 { width: 26vmax; height: 26vmax; top: 38%; left: 52%; background: radial-gradient(circle, rgba(236,72,153,0.4), transparent 70%); animation: pc-float-a 26s ease-in-out infinite reverse; }

@keyframes pc-float-a { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-4vmax,5vmax,0) scale(1.12); } }
@keyframes pc-float-b { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(5vmax,-4vmax,0) scale(1.1); } }

/* --------------------------------------------------------------------------
   Views
   -------------------------------------------------------------------------- */
.pc__view {
    width: 100%;
    max-width: 940px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}
.pc__view[hidden] { display: none; }
.pc__view#pc-view-form,
.pc__view#pc-view-success { max-width: 460px; }

.pc__intro { text-align: center; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }

.pc__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--pc-violet);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.pc__title {
    margin: 0;
    font-size: clamp(1.6rem, 4.6vw, 2.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(100deg, #1e293b 0%, #2563eb 55%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pc__title--sm { font-size: clamp(1.4rem, 4vw, 1.9rem); }

.pc__lead { margin: 0; color: var(--pc-muted); font-size: clamp(0.98rem, 2.4vw, 1.12rem); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.pc__cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.pc-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    background: var(--pc-card);
    border: 1.5px solid var(--pc-border);
    border-radius: 22px;
    padding: 1.6rem 1.5rem 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.25);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    -webkit-tap-highlight-color: transparent;
}
.pc-card:hover,
.pc-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 26px 50px -22px rgba(37, 99, 235, 0.55);
    outline: none;
}
.pc-card:active { transform: translateY(-2px) scale(0.99); }

.pc-card__glow {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 80%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.pc-card:hover .pc-card__glow,
.pc-card:focus-visible .pc-card__glow { opacity: 1; }

.pc-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 12px 22px -10px rgba(37, 99, 235, 0.7);
}
.pc-card__icon--self { background: linear-gradient(135deg, var(--pc-blue), var(--pc-violet)); }
.pc-card__icon--assist { background: linear-gradient(135deg, var(--pc-green), var(--pc-teal)); box-shadow: 0 12px 22px -10px rgba(16, 185, 129, 0.7); }

.pc-card__h { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.01em; }
.pc-card__d { color: var(--pc-muted); font-size: 0.98rem; line-height: 1.5; flex: 1; }

/* Human aspect: overlapping specialist faces (same headshots as the wizard step) */
.pc-card__team { display: flex; align-items: center; gap: 0.6rem; }
.pc-card__team--center { justify-content: center; }
.pc-card__team-txt { font-size: 0.82rem; font-weight: 600; color: #475569; line-height: 1.2; }

.pc-faces { display: inline-flex; align-items: center; flex: none; }
.pc-face {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #fff;
    background: #e2e8f0;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
    margin-left: -11px;
}
.pc-face:first-child { margin-left: 0; }

.pc-card__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pc-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
}
.pc-card__chip i { font-size: 0.72rem; color: var(--pc-blue); }
.pc-card__chip--free { color: #047857; background: #d1fae5; }
.pc-card__chip--free i { color: #059669; }

.pc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--pc-blue);
    margin-top: 0.15rem;
}
.pc-card__cta i { transition: transform 0.25s ease; }
.pc-card:hover .pc-card__cta i,
.pc-card:focus-visible .pc-card__cta i { transform: translateX(5px); }
.pc-card[data-path="assist"] .pc-card__cta { color: #059669; }

.pc__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pc-muted);
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
    animation: pc-pulse 2.4s ease-in-out infinite;
}
.pc__hint i { color: var(--pc-violet); }
@keyframes pc-pulse { 0%,100% { opacity: 0.6; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* --------------------------------------------------------------------------
   Assisted lead form
   -------------------------------------------------------------------------- */
.pc__back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: none;
    color: var(--pc-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0;
}
.pc__back:hover { color: var(--pc-ink); }

.pc__form-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.pc__form-icon { width: 64px; height: 64px; border-radius: 20px; font-size: 1.7rem; }

.pc-form { width: 100%; display: flex; flex-direction: column; gap: 1rem; }

.pc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pc-field { display: flex; flex-direction: column; gap: 0.4rem; }
.pc-field__label { font-size: 0.86rem; font-weight: 700; color: #334155; }
.pc-field__wrap { position: relative; display: flex; align-items: center; }
.pc-field__ic {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}
.pc-input {
    width: 100%;
    /* 16px min stops iOS from zooming the page on focus */
    font-size: 16px;
    padding: 0.95rem 1rem 0.95rem 2.6rem;
    border: 1.5px solid var(--pc-border);
    border-radius: 14px;
    background: #fff;
    color: var(--pc-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.pc-input::placeholder { color: #aab4c4; }
.pc-input:focus { outline: none; border-color: var(--pc-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.pc-field__wrap:focus-within .pc-field__ic { color: var(--pc-blue); }

/* Phone with country-code picker (same behaviour as the wizard's) */
.pc-phone { position: relative; display: flex; gap: 0.5rem; }
.pc-phone__input { flex: 1; min-width: 0; padding-left: 1rem; }

.pc-phone__prefix {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    height: auto;
    border: 1.5px solid var(--pc-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    color: var(--pc-ink);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pc-phone__prefix:hover { border-color: #cdd5e6; }
.pc-phone__prefix.is-open { border-color: var(--pc-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.pc-phone__flag { display: inline-flex; }
.pc-phone__flag-img, .pc-phone-opt__flag {
    width: 22px; height: 15px; object-fit: cover; border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.pc-phone__code { font-weight: 700; }
.pc-phone__arrow { font-size: 0.7rem; color: #94a3b8; transition: transform 0.2s ease; }
.pc-phone__prefix.is-open .pc-phone__arrow { transform: rotate(180deg); }
.pc-field.is-invalid .pc-phone__prefix { border-color: #ef4444; }

.pc-phone__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    z-index: 30;
    background: #fff;
    border: 1.5px solid var(--pc-border);
    border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(280px, 52vh);
}
.pc-phone__dropdown[hidden] { display: none; }
.pc-phone__search-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--pc-border);
    color: #94a3b8;
}
.pc-phone__search { flex: 1; border: none; outline: none; font-size: 16px; color: var(--pc-ink); background: transparent; }
.pc-phone__options { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pc-phone-opt {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: background 0.12s ease;
}
.pc-phone-opt:hover { background: #f1f5f9; }
.pc-phone-opt__name { flex: 1; font-size: 0.92rem; }
.pc-phone-opt__code { color: var(--pc-muted); font-size: 0.88rem; font-weight: 600; }

.pc-field__err { display: none; color: #dc2626; font-size: 0.82rem; font-weight: 600; }
.pc-field.is-invalid .pc-input { border-color: #ef4444; }
.pc-field.is-invalid .pc-input:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14); }
.pc-field.is-invalid .pc-field__err { display: block; }

.pc-submit {
    position: relative;
    margin-top: 0.35rem;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 1.05rem 1.25rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(120deg, var(--pc-green), var(--pc-teal));
    box-shadow: 0 16px 30px -14px rgba(16, 185, 129, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.pc-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -16px rgba(16, 185, 129, 0.9); }
.pc-submit:active { transform: translateY(0); }
.pc-submit[disabled] { opacity: 0.7; cursor: default; transform: none; }
.pc-submit__label, .pc-submit__spinner { display: inline-flex; align-items: center; gap: 0.55rem; justify-content: center; }
.pc-submit__spinner[hidden] { display: none; }
.pc-submit__label[hidden] { display: none; }

.pc-spin {
    width: 16px; height: 16px;
    border: 2.5px solid rgba(255,255,255,0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pc-spin 0.7s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

.pc-form__note { margin: 0; text-align: center; color: var(--pc-muted); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 0.4rem; justify-content: center; }
.pc-form__note i { color: var(--pc-green); }
.pc-form__error { margin: 0; text-align: center; color: #dc2626; font-size: 0.88rem; font-weight: 600; }
.pc-form__error[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Success
   -------------------------------------------------------------------------- */
.pc-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.pc-success__check {
    width: 96px; height: 96px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.6rem; color: #fff;
    background: linear-gradient(135deg, var(--pc-green), var(--pc-teal));
    box-shadow: 0 18px 40px -16px rgba(16, 185, 129, 0.9);
    animation: pc-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pc-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.pc-success__alt {
    margin-top: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--pc-blue) !important;
    font-family: inherit;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
/* Phones: compress hard so BOTH option cards are visible without scrolling. */
@media (max-width: 680px) {
    .pc__scroll {
        padding: calc(env(safe-area-inset-top) + 0.55rem) 1rem calc(env(safe-area-inset-bottom) + 0.85rem);
        gap: 0.8rem;
    }
    .pc__logo { height: 26px; }
    .pc__view { gap: 0.85rem; }
    .pc__intro { gap: 0.4rem; }
    .pc__eyebrow { padding: 0.3rem 0.7rem; font-size: 0.73rem; }
    .pc__title { font-size: clamp(1.3rem, 6vw, 1.55rem); }
    .pc__lead { font-size: 0.88rem; line-height: 1.38; }

    .pc__cards { grid-template-columns: 1fr; gap: 0.7rem; }
    .pc-card { padding: 1rem 1.05rem; border-radius: 18px; gap: 0.45rem; }
    .pc-card__icon { width: 44px; height: 44px; border-radius: 12px; font-size: 1.15rem; }
    .pc-card__h { font-size: 1.1rem; }
    .pc-card__d { font-size: 0.86rem; line-height: 1.38; }
    .pc-card__team { gap: 0.5rem; }
    .pc-card__team-txt { font-size: 0.76rem; }
    .pc-face { width: 30px; height: 30px; margin-left: -9px; border-width: 2px; }
    .pc-card__chip { padding: 0.26rem 0.58rem; font-size: 0.72rem; }
    .pc-card__cta { font-size: 0.9rem; }
    .pc__hint { font-size: 0.84rem; }
}

/* Short phones: trim the hero further (drop the lead paragraph) so the two
   cards still fit on one screen - the cards themselves carry the explanation. */
@media (max-width: 680px) and (max-height: 760px) {
    .pc__lead { display: none; }
    .pc__title { font-size: clamp(1.2rem, 5.6vw, 1.45rem); }
    .pc-card__d { font-size: 0.82rem; }
    .pc__view { gap: 0.7rem; }
    .pc__scroll { gap: 0.65rem; }
}

@media (max-height: 720px) and (min-width: 681px) {
    .pc__view { margin: 1.25rem 0; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .pc__orb { animation: none; }
    .pc__hint { animation: none; }
    .pc-card, .pc-card__cta i, .pc-submit { transition: none; }
    .pc-success__check { animation: none; }
}
