:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --text: #1a1d26;
    --text-muted: #5c6370;
    --border: #e2e6ef;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --success: #059669;
    --success-soft: #ecfdf5;
    --shadow: 0 4px 24px rgba(26, 29, 38, 0.06);
    --shadow-lg: 0 12px 40px rgba(26, 29, 38, 0.1);
    --radius: 14px;
    --radius-sm: 10px;
    --font: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Layout ── */

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* ── Header ── */

.site-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 1rem;
}

.logo:hover {
    text-decoration: none;
}

.logo__icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.logo__icon svg {
    width: 20px;
    height: 20px;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Hero / Form Card ── */

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 3rem;
}

.hero-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.hero-card .subtitle {
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

/* ── Form ── */

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-actions {
    margin-top: 0.5rem;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #dbeafe;
    text-decoration: none;
}

/* ── Result Panel ── */

.result-panel {
    display: none;
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--success-soft);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
}

.result-panel.is-visible {
    display: block;
}

.result-panel h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--success);
}

.result-url {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.result-url input {
    flex: 1;
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
}

.result-url .btn {
    white-space: nowrap;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
}

.result-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.result-actions a {
    font-size: 0.875rem;
    font-weight: 500;
}

.error-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #b91c1c;
    font-size: 0.9rem;
}

.error-message.is-visible {
    display: block;
}

/* ── Pricing ── */

.pricing-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.pricing-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 2rem;
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 700px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card--featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.75rem;
    border-radius: 99px;
}

.pricing-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 1.25rem;
    flex: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
}

.pricing-features li {
    padding: 0.35rem 0;
    padding-left: 1.4rem;
    position: relative;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card--current .btn {
    background: var(--bg);
    color: var(--text-muted);
    cursor: default;
}

.pricing-card--current .btn:hover {
    background: var(--bg);
}

/* ── Landing Page (/go/) ── */

.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    background: linear-gradient(160deg, #f4f6fb 0%, #e8edf8 100%);
}

.landing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.landing-card h1 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.landing-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    text-align: left;
}

.landing-text--rtl {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.landing-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

.landing-icon--muted {
    color: var(--text-muted);
}

.landing-icon svg {
    width: 100%;
    height: 100%;
}

.email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.email-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    color: #fff;
}

.email-button:active {
    transform: translateY(0);
}

.email-button__icon {
    display: flex;
}

.email-button__icon svg {
    width: 26px;
    height: 26px;
}

.ad-slot {
    margin-bottom: 1.5rem;
}

.ad-slot--bottom {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

.landing-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.landing-footer a {
    color: var(--text-muted);
}

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

/* ── How it works ── */

.how-section {
    margin-bottom: 3rem;
}

.how-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin: 0 0 2rem;
}

.steps {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: 1.25rem;
}

.step__number {
    width: 36px;
    height: 36px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.step h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.step p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Footer ── */

.site-footer {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
