/* calling.so - Tesla-Inspired Design */

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

body {
    font-family: 'Gotham SSm A', 'Gotham SSm B', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Arial', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    background: #000000;
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

h1 {
    font-size: 40px;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #999999;
    margin-bottom: 32px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* Tier Selection */
.tier-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.tier-selection-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.tier-option {
    background: transparent;
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tier-compact {
    padding: 16px 12px;
}

.tier-option:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.tier-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.tier-option.selected {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tier-label {
    display: block;
    cursor: pointer;
}

.tier-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-compact .tier-name {
    font-size: 11px;
    margin-bottom: 4px;
}

.tier-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.tier-compact .tier-price {
    font-size: 20px;
    margin-bottom: 4px;
}

.tier-compact .tier-price small {
    font-size: 11px;
    font-weight: 400;
    margin-left: 2px;
    opacity: 0.7;
}

.tier-features {
    font-size: 13px;
    color: #999999;
    line-height: 1.5;
}

.tier-features-compact {
    font-size: 11px;
    color: #999999;
    display: block;
    margin-top: 4px;
}

.tier-badge {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group-compact {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-compact label {
    margin-bottom: 8px;
    font-size: 11px;
}

input[type="text"],
input[type="email"],
input[type="url"] {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group-compact input[type="text"],
.form-group-compact input[type="email"],
.form-group-compact input[type="url"] {
    padding: 14px;
    font-size: 14px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder {
    color: #666666;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.url-preview {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
}

.url-preview:focus-within {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.url-preview .domain {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    font-size: 15px;
}

.url-preview input {
    border: none;
    background: transparent;
    flex: 1;
    color: #ffffff;
}

small {
    display: block;
    margin-top: 8px;
    color: #666666;
    font-size: 12px;
}

.availability-message {
    margin-top: 8px;
    font-weight: 600;
    font-size: 12px;
}

.availability-message.available {
    color: #4ade80;
}

.availability-message.taken {
    color: #ef4444;
}

.availability-message.error {
    color: #fbbf24;
}

/* Buttons */
.button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 16px 40px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.button:hover {
    background: #e0e0e0;
}

.button:active {
    transform: scale(0.98);
}

.button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

button[type="submit"] {
    width: 100%;
}

/* Error Box */
.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.error-box ul {
    list-style-position: inside;
    color: #fca5a5;
}

.error-box li {
    margin-bottom: 8px;
}

/* Success Message */
.success-message {
    font-size: 18px;
    color: #4ade80;
    margin-bottom: 24px;
    font-weight: 600;
}

.success-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    padding: 32px;
    margin: 24px 0;
}

.url-display {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 20px;
    margin: 16px 0 24px 0;
    text-align: center;
}

.url-display a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.url-display a:hover {
    opacity: 0.8;
}

.zoom-url {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    padding: 16px;
    margin: 12px 0 24px 0;
    color: #999999;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
}

.next-steps {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2b2b2b;
    color: #999999;
    line-height: 1.7;
    font-size: 14px;
}

/* Interstitial Page */
.interstitial {
    text-align: center;
}

.interstitial h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.interstitial .loading {
    margin: 48px 0;
}

.loading-bar {
    width: 100%;
    height: 2px;
    background: #2b2b2b;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: #ffffff;
    animation: loading 5s ease;
}

@keyframes loading {
    0% { left: -30%; }
    100% { left: 100%; }
}

.viral-cta {
    margin-top: 32px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2b2b2b;
    border-radius: 4px;
}

.viral-cta h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid #2b2b2b;
    border-bottom: 1px solid #2b2b2b;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.stat-label {
    font-size: 11px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 32px;
    }

    .tier-selection-compact {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .interstitial h1 {
        font-size: 32px;
    }

    .stats {
        flex-direction: column;
        gap: 24px;
    }
}
