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 3127 |
+
CSS += """
|
| 3128 |
+
/* Hero proportion fix: make the desk invitation feel calm, not like a giant poster. */
|
| 3129 |
+
.dc-hero {
|
| 3130 |
+
align-content: center;
|
| 3131 |
+
background:
|
| 3132 |
+
radial-gradient(circle at 74% 37%, rgba(255, 253, 248, 0.54) 0 16%, rgba(255, 253, 248, 0.88) 33%, rgba(255, 253, 248, 0.98) 62%),
|
| 3133 |
+
linear-gradient(180deg, rgba(246, 251, 246, 0.96), rgba(255, 250, 240, 0.99)),
|
| 3134 |
+
url("https://images.unsplash.com/photo-1494438639946-1ebd1d20bf85?auto=format&fit=crop&w=1600&q=80") 74% 43% / cover !important;
|
| 3135 |
+
gap: clamp(12px, 2vw, 18px);
|
| 3136 |
+
min-height: clamp(420px, 50vh, 560px);
|
| 3137 |
+
overflow: hidden;
|
| 3138 |
+
padding: clamp(24px, 4vw, 46px) clamp(18px, 5vw, 70px) clamp(30px, 4.8vw, 54px);
|
| 3139 |
+
}
|
| 3140 |
+
|
| 3141 |
+
.dc-hero-top {
|
| 3142 |
+
grid-template-columns: 44px minmax(0, 1fr) 44px;
|
| 3143 |
+
}
|
| 3144 |
+
|
| 3145 |
+
.dc-menu-mark {
|
| 3146 |
+
opacity: 0.78;
|
| 3147 |
+
}
|
| 3148 |
+
|
| 3149 |
+
.dc-sun-mark {
|
| 3150 |
+
height: 44px;
|
| 3151 |
+
opacity: 0.78;
|
| 3152 |
+
width: 44px;
|
| 3153 |
+
}
|
| 3154 |
+
|
| 3155 |
+
.dc-hero-kicker {
|
| 3156 |
+
font-size: clamp(0.78rem, 1.1vw, 0.96rem);
|
| 3157 |
+
margin-bottom: 8px;
|
| 3158 |
+
}
|
| 3159 |
+
|
| 3160 |
+
.dc-hero h1 {
|
| 3161 |
+
font-size: clamp(2.35rem, 5.4vw, 4.85rem) !important;
|
| 3162 |
+
line-height: 1.03;
|
| 3163 |
+
margin-left: auto;
|
| 3164 |
+
margin-right: auto;
|
| 3165 |
+
max-width: 1080px;
|
| 3166 |
+
text-wrap: balance;
|
| 3167 |
+
}
|
| 3168 |
+
|
| 3169 |
+
.dc-brand-subtitle {
|
| 3170 |
+
color: #6f7f8b;
|
| 3171 |
+
font-size: clamp(1rem, 1.8vw, 1.34rem);
|
| 3172 |
+
line-height: 1.45;
|
| 3173 |
+
max-width: 780px;
|
| 3174 |
+
text-wrap: balance;
|
| 3175 |
+
}
|
| 3176 |
+
|
| 3177 |
+
.dc-hero-body {
|
| 3178 |
+
color: #4f5f67;
|
| 3179 |
+
font-size: clamp(0.95rem, 1.32vw, 1.08rem);
|
| 3180 |
+
line-height: 1.58;
|
| 3181 |
+
max-width: 700px;
|
| 3182 |
+
text-wrap: balance;
|
| 3183 |
+
}
|
| 3184 |
+
|
| 3185 |
+
.dc-hero-ribbon {
|
| 3186 |
+
background: rgba(255, 253, 248, 0.62);
|
| 3187 |
+
border-color: rgba(95, 143, 104, 0.2);
|
| 3188 |
+
border-radius: 999px;
|
| 3189 |
+
box-shadow: none;
|
| 3190 |
+
gap: 10px;
|
| 3191 |
+
margin-top: 0;
|
| 3192 |
+
padding: 7px 12px;
|
| 3193 |
+
}
|
| 3194 |
+
|
| 3195 |
+
.dc-hero-ribbon span,
|
| 3196 |
+
.dc-hero-ribbon small {
|
| 3197 |
+
font-size: 0.78rem;
|
| 3198 |
+
line-height: 1.2;
|
| 3199 |
+
}
|
| 3200 |
+
|
| 3201 |
+
.dc-hero-ribbon span {
|
| 3202 |
+
align-items: center;
|
| 3203 |
+
display: inline-flex;
|
| 3204 |
+
gap: 7px;
|
| 3205 |
+
}
|
| 3206 |
+
|
| 3207 |
+
.dc-hero-ribbon span::before {
|
| 3208 |
+
background: var(--dqa-sage-deep);
|
| 3209 |
+
border-radius: 999px;
|
| 3210 |
+
content: "";
|
| 3211 |
+
display: inline-block;
|
| 3212 |
+
height: 7px;
|
| 3213 |
+
width: 7px;
|
| 3214 |
+
}
|
| 3215 |
+
|
| 3216 |
+
.dc-stepper {
|
| 3217 |
+
margin-top: clamp(18px, 3.2vw, 34px);
|
| 3218 |
+
max-width: 680px;
|
| 3219 |
+
}
|
| 3220 |
+
|
| 3221 |
+
.dc-stepper span {
|
| 3222 |
+
flex-basis: clamp(74px, 10vw, 112px);
|
| 3223 |
+
font-size: clamp(0.9rem, 1.48vw, 1.14rem);
|
| 3224 |
+
}
|
| 3225 |
+
|
| 3226 |
+
.dc-stepper strong {
|
| 3227 |
+
font-size: clamp(1rem, 1.8vw, 1.28rem);
|
| 3228 |
+
height: clamp(44px, 5.2vw, 58px);
|
| 3229 |
+
width: clamp(44px, 5.2vw, 58px);
|
| 3230 |
+
}
|
| 3231 |
+
|
| 3232 |
+
.dc-stepper-line {
|
| 3233 |
+
margin-top: clamp(21px, 2.6vw, 29px);
|
| 3234 |
+
}
|
| 3235 |
+
|
| 3236 |
+
@media (max-width: 900px) {
|
| 3237 |
+
.dc-hero {
|
| 3238 |
+
min-height: 470px;
|
| 3239 |
+
padding: 24px 22px 32px;
|
| 3240 |
+
}
|
| 3241 |
+
|
| 3242 |
+
.dc-hero h1 {
|
| 3243 |
+
font-size: clamp(2.25rem, 10vw, 3.65rem) !important;
|
| 3244 |
+
}
|
| 3245 |
+
|
| 3246 |
+
.dc-brand-subtitle,
|
| 3247 |
+
.dc-hero-body {
|
| 3248 |
+
max-width: 620px;
|
| 3249 |
+
}
|
| 3250 |
+
}
|
| 3251 |
+
|
| 3252 |
+
@media (max-width: 640px) {
|
| 3253 |
+
.dc-hero {
|
| 3254 |
+
min-height: 520px;
|
| 3255 |
+
}
|
| 3256 |
+
|
| 3257 |
+
.dc-hero-top {
|
| 3258 |
+
grid-template-columns: 38px minmax(0, 1fr);
|
| 3259 |
+
}
|
| 3260 |
+
|
| 3261 |
+
.dc-hero-ribbon {
|
| 3262 |
+
border-radius: 14px;
|
| 3263 |
+
}
|
| 3264 |
+
}
|
| 3265 |
+
"""
|