← back to Wallpapercontractor
public/css/funnel.css
450 lines
/* funnel.css — high-graphic 3-step lead capture for wallpapercontractor.com */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@400;500;600;700&display=swap');
:root[data-theme="light"] .funnel,
.funnel[data-theme="light"] {
--f-bg: #f6f1e8;
--f-bg-2: #ffffff;
--f-bg-3: #ece4d3;
--f-ink: #14161a;
--f-mute: #6a6157;
--f-rule: #d4c9b3;
--f-gold: #b8865c;
--f-gold-deep: #7d3c00;
--f-error: #a01818;
}
.funnel {
/* dark default */
--f-bg: #0e1c26;
--f-bg-2: #16252f;
--f-bg-3: #1f303a;
--f-ink: #f1ece2;
--f-mute: #8d9aa3;
--f-rule: #283a45;
--f-gold: #c9a14b;
--f-gold-deep: #e2b65c;
--f-error: #f57b6e;
position: relative;
min-height: 100vh;
background: var(--f-bg);
color: var(--f-ink);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
padding: 28px clamp(20px, 4vw, 64px) 40px;
overflow: hidden;
}
/* ambient glow */
.funnel::before {
content: '';
position: absolute;
top: -240px; right: -240px; width: 520px; height: 520px;
background: radial-gradient(closest-side, rgba(201,161,75,0.16), transparent 70%);
border-radius: 50%;
pointer-events: none;
}
.funnel::after {
content: '';
position: absolute;
bottom: -300px; left: -200px; width: 480px; height: 480px;
background: radial-gradient(closest-side, rgba(201,161,75,0.10), transparent 70%);
border-radius: 50%;
pointer-events: none;
}
/* ─── Logo ─────────────────────────────────────────────────────────── */
.funnel-logo {
display: inline-flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: var(--f-ink);
margin-bottom: 36px;
position: relative;
}
.funnel-logo-mark {
width: 22px; height: 22px;
background:
linear-gradient(135deg, var(--f-gold) 0%, var(--f-gold) 50%, transparent 50%),
var(--f-bg-3);
border-radius: 2px;
}
.funnel-logo-name {
font-family: 'Cormorant Garamond', Georgia, serif;
font-weight: 500;
font-size: 19px;
letter-spacing: .02em;
}
/* ─── Shell ────────────────────────────────────────────────────────── */
.funnel-shell {
max-width: 920px;
margin: 0 auto;
position: relative;
z-index: 1;
}
/* ─── Progress dots ────────────────────────────────────────────────── */
.funnel-progress {
display: flex;
gap: 10px;
justify-content: center;
margin-bottom: 40px;
}
.funnel-progress .dot {
width: 36px; height: 4px;
background: var(--f-rule);
border-radius: 2px;
transition: background .25s ease;
}
.funnel-progress .dot.active {
background: var(--f-gold);
}
/* ─── Step ─────────────────────────────────────────────────────────── */
.step {
animation: stepIn .42s cubic-bezier(.16,.84,.36,1);
}
@keyframes stepIn {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
.step-eyebrow {
font-family: 'Inter', sans-serif;
font-size: 11px;
font-weight: 600;
letter-spacing: .18em;
text-transform: uppercase;
color: var(--f-gold);
margin-bottom: 14px;
}
.step-h {
font-family: 'Cormorant Garamond', Georgia, serif;
font-weight: 400;
font-size: clamp(34px, 5vw, 54px);
line-height: 1.05;
letter-spacing: -.005em;
margin: 0 0 16px;
}
.step-sub {
font-size: 16px;
color: var(--f-mute);
max-width: 56ch;
margin: 0 0 36px;
line-height: 1.55;
}
.step-sub strong {
color: var(--f-ink);
font-weight: 600;
}
/* ─── Step 1 — choice grid ─────────────────────────────────────────── */
.choice-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 14px;
margin-bottom: 36px;
}
.choice {
position: relative;
display: flex;
align-items: flex-start;
gap: 14px;
padding: 18px 18px 18px 20px;
background: var(--f-bg-2);
border: 1px solid var(--f-rule);
border-radius: 6px;
cursor: pointer;
transition: all .15s ease;
}
.choice:hover {
border-color: var(--f-gold);
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.choice input[type="radio"] {
position: absolute;
opacity: 0;
pointer-events: none;
}
.choice:has(input:checked) {
border-color: var(--f-gold);
background: linear-gradient(135deg, var(--f-bg-2), var(--f-bg-3));
box-shadow: 0 0 0 1px var(--f-gold) inset, 0 8px 24px rgba(0,0,0,0.20);
}
.choice-body {
flex: 1;
}
.choice-title {
font-family: 'Cormorant Garamond', Georgia, serif;
font-weight: 500;
font-size: 21px;
line-height: 1.15;
margin-bottom: 4px;
}
.choice-sub {
font-size: 12.5px;
color: var(--f-mute);
line-height: 1.4;
}
.choice-check {
width: 22px; height: 22px;
border-radius: 50%;
border: 1px solid var(--f-rule);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 12px;
color: transparent;
flex-shrink: 0;
transition: all .15s ease;
}
.choice:has(input:checked) .choice-check {
background: var(--f-gold);
border-color: var(--f-gold);
color: var(--f-bg);
}
/* ─── Step 2/3 — form grid ─────────────────────────────────────────── */
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 18px 22px;
margin-bottom: 28px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field-label {
font-size: 11px;
font-weight: 600;
letter-spacing: .12em;
text-transform: uppercase;
color: var(--f-mute);
}
.field-opt {
font-weight: 400;
text-transform: none;
letter-spacing: 0;
color: var(--f-mute);
opacity: .75;
}
.field input,
.field select,
.field textarea {
background: var(--f-bg-2);
border: 1px solid var(--f-rule);
border-radius: 4px;
padding: 12px 14px;
font: 15px/1.4 'Inter', sans-serif;
color: var(--f-ink);
transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
outline: none;
border-color: var(--f-gold);
background: var(--f-bg-3);
box-shadow: 0 0 0 3px rgba(201,161,75,0.12);
}
.field input::placeholder,
.field textarea::placeholder {
color: var(--f-mute);
opacity: .55;
}
.field select {
appearance: none;
background-image: linear-gradient(45deg, transparent 50%, var(--f-mute) 50%),
linear-gradient(-45deg, transparent 50%, var(--f-mute) 50%);
background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
background-size: 5px 5px;
background-repeat: no-repeat;
padding-right: 40px;
}
.field textarea {
resize: vertical;
min-height: 80px;
}
.consent {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 13px;
color: var(--f-mute);
line-height: 1.5;
margin-bottom: 22px;
padding: 14px 16px;
background: var(--f-bg-2);
border: 1px solid var(--f-rule);
border-radius: 4px;
}
.consent input[type="checkbox"] {
margin-top: 3px;
accent-color: var(--f-gold);
flex-shrink: 0;
width: 16px; height: 16px;
}
.consent a {
color: var(--f-gold);
text-decoration: underline;
}
/* ─── Buttons ──────────────────────────────────────────────────────── */
.step-actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 14px;
margin-top: 12px;
}
.step-actions > .btn-primary:only-child {
margin-left: auto;
}
.btn-primary,
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 14px 28px;
font: 600 14px/1 'Inter', sans-serif;
letter-spacing: .04em;
border-radius: 4px;
border: 1px solid transparent;
cursor: pointer;
text-decoration: none;
transition: all .15s ease;
}
.btn-primary {
background: var(--f-gold);
color: #14161a;
}
.btn-primary:not(:disabled):hover {
background: var(--f-gold-deep);
transform: translateY(-1px);
box-shadow: 0 8px 24px rgba(201,161,75,0.30);
}
.btn-primary:disabled {
opacity: .35;
cursor: not-allowed;
}
.btn-ghost {
background: transparent;
color: var(--f-ink);
border-color: var(--f-rule);
}
.btn-ghost:hover {
border-color: var(--f-gold);
color: var(--f-gold);
}
.btn-submit {
position: relative;
min-width: 240px;
}
.btn-submit .btn-spinner {
display: none;
width: 14px; height: 14px;
border: 2px solid rgba(20,22,26,0.28);
border-top-color: #14161a;
border-radius: 50%;
animation: spin 0.7s linear infinite;
margin-left: 8px;
}
.btn-submit.loading .btn-label { opacity: .55; }
.btn-submit.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.lead-error {
margin-top: 14px;
padding: 12px 16px;
background: rgba(245,123,110,0.08);
border: 1px solid rgba(245,123,110,0.30);
border-radius: 4px;
color: var(--f-error);
font-size: 13px;
}
/* ─── Done state ───────────────────────────────────────────────────── */
.step-done {
text-align: center;
padding-top: 40px;
}
.done-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 80px; height: 80px;
border-radius: 50%;
background: var(--f-gold);
color: var(--f-bg);
font-size: 38px;
font-weight: 700;
margin-bottom: 22px;
box-shadow: 0 0 0 8px rgba(201,161,75,0.18), 0 12px 36px rgba(0,0,0,0.3);
animation: doneIn .5s cubic-bezier(.16,.84,.36,1);
}
@keyframes doneIn {
0% { opacity:0; transform: scale(.4); }
60% { opacity:1; transform: scale(1.08); }
100% { transform: scale(1); }
}
.step-done .step-h,
.step-done .step-sub {
margin-left: auto; margin-right: auto;
}
.step-meta {
font-family: ui-monospace, Menlo, monospace;
font-size: 13px;
color: var(--f-mute);
letter-spacing: .04em;
margin: 8px 0 24px;
}
/* ─── Trust strip ──────────────────────────────────────────────────── */
.trust-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
margin-top: 60px;
padding: 26px 0 8px;
border-top: 1px solid var(--f-rule);
}
.trust-item {
text-align: center;
padding: 8px 12px;
border-right: 1px solid var(--f-rule);
}
.trust-item:last-child { border-right: 0; }
.trust-num {
font-family: 'Cormorant Garamond', Georgia, serif;
font-weight: 500;
font-size: 32px;
line-height: 1;
color: var(--f-gold);
}
.trust-label {
font-size: 11px;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--f-mute);
margin-top: 8px;
}
@media (max-width: 720px) {
.trust-strip { grid-template-columns: repeat(2, 1fr); gap: 0; }
.trust-item:nth-child(2) { border-right: 0; }
.trust-item:nth-child(1), .trust-item:nth-child(2) {
border-bottom: 1px solid var(--f-rule);
margin-bottom: 18px;
padding-bottom: 22px;
}
.step-actions { flex-direction: column-reverse; align-items: stretch; }
.step-actions .btn-primary,
.step-actions .btn-ghost { width: 100%; }
}