Spaces:
Running
Running
File size: 7,685 Bytes
380e7c5 31f460e 380e7c5 31f460e 380e7c5 31f460e 380e7c5 31f460e 380e7c5 ead1f79 31f460e 380e7c5 7bbf2b8 380e7c5 31f460e 380e7c5 31f460e 30ab8a7 e674342 ead1f79 e674342 5d0f135 7bbf2b8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 | /* Focus Buddy landing page.
Self-contained: no external fonts or assets, so it renders offline and inside
the Hugging Face Space sandbox. */
:root {
--bg: #0f1020;
--bg-soft: #191a33;
--card: #1e1f3d;
--border: #2e3060;
--text: #ececf5;
--muted: #a3a3c2;
--accent: #8b7cf6;
--accent-2: #f472b6;
--radius: 14px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
line-height: 1.6;
}
a {
color: var(--accent);
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.9em;
}
.hero {
padding: 4rem 1.5rem 3rem;
text-align: center;
background: radial-gradient(120% 100% at 50% 0%, #2a2358 0%, var(--bg) 70%);
border-bottom: 1px solid var(--border);
}
.app-icon {
font-size: 3.5rem;
line-height: 1;
}
.hero h1 {
margin: 0.6rem 0 0.4rem;
font-size: clamp(2rem, 6vw, 3rem);
background: linear-gradient(90deg, var(--accent), var(--accent-2));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.tagline {
margin: 0 auto;
max-width: 34rem;
color: var(--muted);
font-size: 1.1rem;
}
.pill-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
margin-top: 1.5rem;
}
.pill {
padding: 0.3rem 0.85rem;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--bg-soft);
color: var(--muted);
font-size: 0.85rem;
}
.container {
max-width: 64rem;
margin: 0 auto;
padding: 2rem 1.5rem 3rem;
display: grid;
/* Without this the implicit column is auto-sized to max-content, so an
auto-fit grid inside a card can never be told to collapse and the whole
document grows wider than the viewport. */
grid-template-columns: minmax(0, 1fr);
gap: 1.25rem;
}
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem;
}
.card h2 {
margin-top: 0;
font-size: 1.25rem;
}
.habit-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
gap: 1rem;
margin-top: 1.25rem;
}
.habit {
display: grid;
gap: 0.25rem;
padding: 1rem;
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.habit-icon {
font-size: 1.6rem;
}
.habit span:last-child {
color: var(--muted);
font-size: 0.9rem;
}
pre {
overflow-x: auto;
padding: 1rem;
background: #0b0b18;
border: 1px solid var(--border);
border-radius: var(--radius);
}
pre code {
color: #d7d7ee;
}
.comment {
color: #6f6f95;
}
.fine {
color: var(--muted);
font-size: 0.9rem;
}
.flow {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
}
.step {
padding: 0.4rem 0.75rem;
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 0.9rem;
}
.arrow {
color: var(--accent);
}
.footer {
padding: 2rem 1.5rem;
text-align: center;
color: var(--muted);
border-top: 1px solid var(--border);
font-size: 0.9rem;
}
.bench {
width: 100%;
border-collapse: collapse;
margin: 16px 0 6px;
font-size: 0.95rem;
}
.bench th,
.bench td {
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
}
.bench th {
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
font-weight: 600;
}
.bench tr:last-child td {
border-bottom: 0;
}
.bench tr.win td {
font-weight: 600;
color: var(--accent);
}
.bench th:nth-child(n + 2),
.bench td:nth-child(n + 2) {
text-align: right;
white-space: nowrap;
}
/* --- hero art -------------------------------------------------------- */
.hero-art {
display: block;
width: 100%;
max-width: 440px;
margin: 0 auto 22px;
border-radius: var(--radius);
border: 1px solid var(--border);
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.pill.strong {
border-color: var(--accent);
color: var(--text);
background: color-mix(in srgb, var(--accent) 18%, transparent);
}
/* --- demo video ------------------------------------------------------ */
.demo {
display: block;
width: 100%;
max-width: 380px;
margin: 4px auto 14px;
border-radius: var(--radius);
border: 1px solid var(--border);
background: #000;
}
/* --- the cost comparison --------------------------------------------- */
.card.highlight {
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.cost-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: 14px;
margin-top: 16px;
}
.cost {
display: flex;
flex-direction: column;
gap: 6px;
padding: 16px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg-soft);
}
.cost-label {
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
font-weight: 600;
}
.cost-value {
font-size: 1.7rem;
font-weight: 700;
line-height: 1.1;
}
.cost-value.ok {
color: #4ade80;
}
.cost-note {
font-size: 0.86rem;
color: var(--muted);
}
/* --- inline tags on the habit cards ---------------------------------- */
.tag {
align-self: flex-start;
margin-top: 4px;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 2px 8px;
border-radius: 20px;
border: 1px solid var(--border);
color: var(--muted);
}
.tag.ok {
color: #4ade80;
border-color: color-mix(in srgb, #4ade80 45%, transparent);
}
.bench .dim {
color: var(--muted);
font-weight: 400;
}
.card h3 {
font-size: 1rem;
margin: 22px 0 6px;
}
/* Steps where a model may appear. Dashed because neither is load-bearing. */
.step.optional {
border-style: dashed;
border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
color: var(--text);
}
.step.optional em {
display: block;
font-size: 0.72rem;
font-style: normal;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
}
/* Hero demo: the first thing on the page. */
.hero-demo {
display: block;
width: 100%;
max-width: 330px;
margin: 0 auto 10px;
border-radius: var(--radius);
border: 1px solid var(--border);
background: #000;
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.hero-caption {
margin: 0 auto 24px;
font-size: 0.88rem;
color: var(--muted);
}
/* --- two-column hero: words on the left, the demo on the right ------- */
.hero-grid {
max-width: 64rem;
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
gap: 2.5rem;
align-items: center;
text-align: left;
}
.hero-grid .app-icon {
margin-bottom: 0.4rem;
}
.hero-grid .tagline,
.hero-grid .pill-row {
margin-left: 0;
margin-right: 0;
justify-content: flex-start;
}
.hero-media {
margin: 0;
}
.hero-grid .hero-demo {
max-width: 100%;
margin-bottom: 10px;
}
.hero-grid .hero-caption {
margin: 0;
text-align: center;
}
/* Stack on anything narrow, video first so it still leads on a phone. */
@media (max-width: 820px) {
.hero-grid {
grid-template-columns: minmax(0, 1fr);
gap: 1.6rem;
text-align: center;
}
.hero-grid .pill-row {
justify-content: center;
}
.hero-grid .tagline {
margin-inline: auto;
max-width: 100%;
}
.hero-media {
order: -1;
}
.hero-grid .hero-demo {
max-width: 300px;
margin-inline: auto;
}
}
/* Tables carry nowrap numbers; let them scroll in place rather than widen the
page, which on a phone pushed every centred block off to the right. */
.table-scroll {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/* Narrow screens: nothing may exceed the viewport. */
@media (max-width: 820px) {
.habit-grid {
grid-template-columns: minmax(0, 1fr);
}
.cost-grid {
grid-template-columns: minmax(0, 1fr);
}
}
|