/* ─────────────────────────────────────────────
   OneTimeURL — Stylesheet
   ───────────────────────────────────────────── */

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

:root {
    --brand:      #6c63ff;
    --brand-dark: #574fd6;
    --danger:     #e53e3e;
    --success:    #38a169;
    --bg:         #f0f2ff;
    --card-bg:    #ffffff;
    --text:       #1a202c;
    --muted:      #718096;
    --border:     #e2e8f0;
    --radius:     14px;
    --shadow:     0 8px 32px rgba(108,99,255,.13);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ── Layout ────────────────────────────────── */
.page-wrapper {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Header ───────────────────────────────── */
.site-header {
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.5px;
}

.tagline {
    color: var(--muted);
    margin-top: 6px;
    font-size: .95rem;
}

/* ── Card ─────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Form ─────────────────────────────────── */
.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.link-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text);
    transition: border-color .2s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .2s, transform .1s;
}

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

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

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

.btn-copy {
    background: var(--brand);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover { background: var(--brand-dark); }

.btn-secondary {
    background: var(--bg);
    color: var(--brand);
    border: 2px solid var(--brand);
    width: 100%;
}

.btn-secondary:hover { background: #edeeff; }

/* ── Result Box ───────────────────────────── */
.success-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fff4;
    border: 1.5px solid #9ae6b4;
    color: var(--success);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .95rem;
}

.success-icon { font-size: 1.3rem; }

.result-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.result-box input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: .95rem;
    background: var(--bg);
    color: var(--brand-dark);
    font-weight: 600;
    outline: none;
    cursor: text;
}

.hint {
    font-size: .875rem;
    color: var(--muted);
    background: #fffbeb;
    border: 1px solid #fbd38d;
    padding: 10px 14px;
    border-radius: 8px;
}

/* ── How it works ─────────────────────────── */
.how-it-works {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.how-it-works h3 {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 14px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: var(--text);
}

.step span {
    width: 28px;
    height: 28px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Alert ────────────────────────────────── */
.alert-error {
    background: #fff5f5;
    border: 1.5px solid #feb2b2;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .9rem;
}

/* ── Footer ───────────────────────────────── */
.site-footer {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
}

/* ── Error Page ───────────────────────────── */
body.error-body {
    background: #fff5f5;
}

.error-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 36px;
    text-align: center;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.error-icon {
    font-size: 3.5rem;
}

.error-card h1 {
    font-size: 1.5rem;
    color: var(--danger);
}

.error-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Offer Badge ──────────────────────────── */
.center-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.offer-badge {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 4px 18px rgba(0,119,181,.3);
}

.offer-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 420px;
}

.btn-big {
    font-size: 1.15rem;
    padding: 16px 32px;
    width: 100%;
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    box-shadow: 0 4px 18px rgba(0,119,181,.3);
}

.btn-big:hover {
    background: linear-gradient(135deg, #005f8f, #0077b5);
}

.btn-copy { width: 100%; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 480px) {
    .card { padding: 24px 18px; }
    .result-box { flex-direction: column; }
    .btn-copy { width: 100%; }
}

/* ── 3 Button Grid ────────────────────────── */
.btn-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.btn-grid form { width: 100%; }

.btn-linkedin {
    width: 100%;
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,119,181,.25);
    transition: background .2s, transform .1s;
    text-align: left;
}

.btn-linkedin:hover { background: linear-gradient(135deg, #005f8f, #0077b5); }
.btn-linkedin:active { transform: scale(.98); }

.btn-icon  { font-size: 1.5rem; }
.btn-label { font-size: 1.1rem; font-weight: 800; letter-spacing: .2px; }
.btn-sub   { font-size: .8rem; opacity: .85; font-weight: 400; }
