Branchwell

OpenTalon / website / src / devices.css

1/* Device frames drawn in CSS around real app captures. Sizes use container units so each
2 frame scales as one piece. */
3.device {
4 position: relative;
5 margin: 0;
6 container-type: inline-size;
7}
8.device img {
9 display: block;
10 width: 100%;
11 height: auto;
12}
13
14/* MacBook: a lid with a thin bezel, then the base it sits on. */
15.device-mac {
16 width: 100%;
17}
18.device-mac .device-lid {
19 position: relative;
20 width: 86%;
21 margin: 0 auto;
22 padding: 1.25cqw 1.25cqw 1.5cqw;
23 border-radius: 1.9cqw 1.9cqw 0.5cqw 0.5cqw;
24 background: #07090c;
25 box-shadow:
26 0 0 0 1px #3a4552,
27 0 0 0 2px #10151b,
28 0 4cqw 9cqw -4cqw color-mix(in srgb, var(--azure) 50%, transparent);
29}
30.device-mac .device-screen {
31 position: relative;
32 overflow: hidden;
33 border-radius: 0.7cqw 0.7cqw 0.2cqw 0.2cqw;
34 background: #141518;
35}
36.device-mac .device-lid::before {
37 content: '';
38 position: absolute;
39 top: 0.45cqw;
40 left: 50%;
41 width: 0.42cqw;
42 height: 0.42cqw;
43 border-radius: 50%;
44 background: #1c2733;
45 transform: translateX(-50%);
46}
47.device-mac .device-base {
48 position: relative;
49 height: 1.55cqw;
50 border-radius: 0.2cqw 0.2cqw 1.4cqw 1.4cqw;
51 background: linear-gradient(#b3bdc8 0%, #7c8794 22%, #454f5b 70%, #232a33 100%);
52 box-shadow: 0 2.2cqw 3cqw -1.6cqw rgb(0 0 0 / 0.8);
53}
54.device-mac .device-base::before {
55 content: '';
56 position: absolute;
57 top: 0;
58 left: 50%;
59 width: 13%;
60 height: 0.6cqw;
61 border-radius: 0 0 0.7cqw 0.7cqw;
62 background: #262d36;
63 transform: translateX(-50%);
64}
65
66/* iPhone: titanium edge, black bezel, Dynamic Island over the capture. The frame is drawn on
67 the screen element, because container units resolve against the .device wrapper. */
68.device-phone .device-screen {
69 position: relative;
70 overflow: hidden;
71 border: 2.6cqw solid #05070a;
72 border-radius: 15.5cqw;
73 background: #0c1117;
74 box-shadow:
75 0 0 0 0.5cqw #2a333e,
76 0 0 0 0.9cqw #5b6877,
77 0 0 0 1.2cqw #1a2028,
78 0 12cqw 22cqw -10cqw rgb(0 0 0 / 0.85);
79}
80.device-phone .device-screen::before {
81 content: '';
82 position: absolute;
83 z-index: 1;
84 top: 2.7cqw;
85 left: 50%;
86 width: 29cqw;
87 height: 8.4cqw;
88 border-radius: 5cqw;
89 background: #000;
90 transform: translateX(-50%);
91}
92
93/* iPad: an even bezel. */
94.device-pad .device-screen {
95 overflow: hidden;
96 border: 2.1cqw solid #05070a;
97 border-radius: 4.2cqw;
98 background: #0c1117;
99 box-shadow:
100 0 0 0 0.25cqw #2a333e,
101 0 0 0 0.45cqw #5b6877,
102 0 0 0 0.6cqw #1a2028,
103 0 6cqw 12cqw -6cqw rgb(0 0 0 / 0.85);
104}
105
106/* Hero: the Mac with the phone standing in front of its right corner. */
107.hero-devices {
108 position: relative;
109 margin-top: 64px;
110 padding: 0 0 2%;
111}
112.hero-devices::before {
113 content: '';
114 position: absolute;
115 inset: 8% 4% 0;
116 z-index: -1;
117 border-radius: 50%;
118 background: radial-gradient(closest-side, color-mix(in srgb, var(--azure) 34%, transparent), transparent);
119 filter: blur(40px);
120}
121.hero-devices .device-phone {
122 position: absolute;
123 right: 1.5%;
124 bottom: 0;
125 width: 17.5%;
126}
127
128/* Mobile section: feature cards with zoomed crops of the real app, a sync diagram, the iPad. */
129.m-grid {
130 display: grid;
131 grid-template-columns: repeat(12, minmax(0, 1fr));
132 gap: 18px;
133 margin: 56px 0 0;
134 padding: 0;
135 list-style: none;
136}
137.m-card,
138.m-pad,
139.m-sync {
140 position: relative;
141 overflow: hidden;
142 border: 1px solid var(--line);
143 border-radius: 22px;
144 background:
145 radial-gradient(520px 300px at 0 0, color-mix(in srgb, var(--azure) 13%, transparent), transparent 70%),
146 var(--surface);
147}
148.m-card {
149 grid-column: span 6;
150 display: flex;
151 flex-direction: column;
152}
153.m-copy {
154 padding: 30px 30px 26px;
155}
156.m-kicker {
157 display: flex;
158 align-items: center;
159 gap: 12px;
160 font-family: var(--mono);
161 font-size: 12px;
162 letter-spacing: 0.08em;
163 text-transform: uppercase;
164 color: var(--sky);
165}
166.m-icon {
167 display: grid;
168 flex: 0 0 auto;
169 place-items: center;
170 width: 40px;
171 height: 40px;
172 border: 1px solid color-mix(in srgb, var(--sky) 30%, transparent);
173 border-radius: 12px;
174 background: color-mix(in srgb, var(--sky) 11%, transparent);
175 color: var(--sky);
176}
177.m-icon svg {
178 width: 21px;
179 height: 21px;
180}
181.m-copy h3 {
182 margin: 20px 0 10px;
183 font-size: 25px;
184 font-weight: 600;
185 line-height: 1.18;
186 letter-spacing: -0.02em;
187 text-wrap: balance;
188}
189.m-copy p {
190 text-wrap: pretty;
191 font-size: 16px;
192 line-height: 1.55;
193 color: var(--text-2);
194}
195/* The crop is a piece of the phone screen at reading size, running off the card edge. */
196.m-crop {
197 position: relative;
198 flex: 0 0 auto;
199 overflow: hidden;
200 max-height: 340px;
201 margin: auto 0 0 30px;
202 border: 1px solid #2c3743;
203 border-width: 1px 0 0 1px;
204 border-radius: 20px 0 0 0;
205 background: #000;
206 box-shadow: -18px -18px 60px -30px color-mix(in srgb, var(--azure) 70%, transparent);
207}
208.m-crop img {
209 display: block;
210 width: 100%;
211 height: auto;
212}
213.m-crop::after {
214 content: '';
215 position: absolute;
216 inset: auto 0 0;
217 height: 56px;
218 background: linear-gradient(transparent, rgb(0 0 0 / 0.75));
219 pointer-events: none;
220}
221
222/* Sync diagram */
223.m-sync {
224 margin-top: 18px;
225 padding: 34px 30px 28px;
226}
227.m-sync-head {
228 display: grid;
229 grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
230 gap: 12px 40px;
231 align-items: end;
232}
233.m-sync-head h3 {
234 font-size: 25px;
235 font-weight: 600;
236 line-height: 1.18;
237 letter-spacing: -0.02em;
238 text-wrap: balance;
239}
240.m-sync-head p {
241 font-size: 16px;
242 line-height: 1.55;
243 color: var(--text-2);
244}
245.m-flow {
246 position: relative;
247 display: grid;
248 grid-template-columns: repeat(4, minmax(0, 1fr));
249 gap: 20px;
250 margin: 34px 0 0;
251 padding: 0;
252 list-style: none;
253}
254.m-flow::before {
255 content: '';
256 position: absolute;
257 top: 26px;
258 left: 26px;
259 right: calc((100% - 60px) / 4);
260 border-top: 2px dashed color-mix(in srgb, var(--sky) 45%, transparent);
261}
262.m-flow li {
263 position: relative;
264 display: flex;
265 flex-direction: column;
266 gap: 4px;
267}
268.m-flow .m-icon {
269 width: 54px;
270 height: 54px;
271 margin-bottom: 14px;
272 border-radius: 16px;
273 background: color-mix(in srgb, var(--sky) 14%, var(--surface));
274}
275.m-flow .m-icon svg {
276 width: 26px;
277 height: 26px;
278}
279.m-flow b {
280 font-size: 16px;
281 font-weight: 600;
282}
283.m-flow span:not(.m-icon) {
284 font-size: 14px;
285 line-height: 1.45;
286 color: var(--text-2);
287}
288.m-sync-note {
289 margin-top: 26px;
290 padding-top: 18px;
291 border-top: 1px solid var(--line);
292 font-size: 14px;
293 color: var(--muted);
294}
295
296/* iPad */
297.m-pad {
298 display: grid;
299 grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
300 align-items: center;
301 margin-top: 18px;
302}
303.m-pad .m-copy {
304 padding: 40px 10px 40px 30px;
305}
306.m-chips {
307 display: grid;
308 gap: 12px;
309 margin: 24px 0 0;
310 padding: 0;
311 list-style: none;
312}
313.m-chips li {
314 display: flex;
315 align-items: center;
316 gap: 12px;
317 font-size: 15px;
318 color: var(--text);
319}
320.m-chips .m-icon {
321 width: 32px;
322 height: 32px;
323 border-radius: 10px;
324}
325.m-chips .m-icon svg {
326 width: 17px;
327 height: 17px;
328}
329.m-pad-shot {
330 align-self: end;
331 margin: 44px -34% -22% 24px;
332}
333
334@media (width <= 980px) {
335 .m-card {
336 grid-column: span 12;
337 }
338 .m-pad {
339 grid-template-columns: 1fr;
340 }
341 .m-pad .m-copy {
342 padding: 30px 30px 0;
343 }
344 .m-pad-shot {
345 margin: 34px -8% -14% 30px;
346 }
347}
348
349@media (width <= 650px) {
350 .hero-devices {
351 margin-top: 44px;
352 }
353 .hero-devices .device-phone {
354 right: 0;
355 width: 24%;
356 }
357 .m-grid {
358 margin-top: 36px;
359 }
360 .m-copy,
361 .m-pad .m-copy {
362 padding: 24px 22px 0;
363 }
364 .m-copy h3,
365 .m-sync-head h3 {
366 font-size: 22px;
367 }
368 .m-crop {
369 max-height: 250px;
370 margin: 24px 0 0 22px;
371 border-radius: 18px 0 0 0;
372 }
373 .m-sync {
374 padding: 26px 22px 22px;
375 }
376 .m-sync-head {
377 grid-template-columns: 1fr;
378 }
379 .m-flow {
380 grid-template-columns: 1fr;
381 gap: 22px;
382 margin-top: 28px;
383 }
384 .m-flow::before {
385 top: 26px;
386 bottom: 40px;
387 left: 26px;
388 right: auto;
389 border-top: 0;
390 border-left: 2px dashed color-mix(in srgb, var(--sky) 45%, transparent);
391 }
392 .m-flow li {
393 display: grid;
394 grid-template-columns: 54px 1fr;
395 column-gap: 16px;
396 row-gap: 2px;
397 align-items: center;
398 }
399 .m-flow .m-icon {
400 grid-row: span 2;
401 margin-bottom: 0;
402 }
403 .m-flow b {
404 align-self: end;
405 }
406 .m-flow span:not(.m-icon) {
407 align-self: start;
408 }
409 .screen-picker {
410 display: flex;
411 overflow-x: auto;
412 max-width: 100%;
413 }
414 .screen-picker button {
415 flex: 0 0 auto;
416 }
417}
418
419/* Board section: screen picker above the Mac. */
420.screens {
421 text-align: center;
422}
423.screen-picker {
424 margin-bottom: 36px;
425}
426.screens .device-mac {
427 text-align: left;
428}
429.screen-caption {
430 max-width: 620px;
431 margin: 30px auto 0;
432 font-size: 17px;
433 line-height: 1.5;
434 color: var(--text-2);
435 text-wrap: balance;
436}
437
438/* Operator section: the team way against the operator way, then what an operator does. */
439.operator {
440 padding: 120px 0 0;
441}
442.op-compare {
443 display: grid;
444 grid-template-columns: repeat(2, minmax(0, 1fr));
445 gap: 18px;
446}
447.op-way {
448 padding: 30px;
449 border: 1px solid var(--line);
450 border-radius: 22px;
451 background: var(--surface);
452}
453.op-new {
454 border-color: color-mix(in srgb, var(--sky) 42%, var(--line));
455 background:
456 radial-gradient(520px 320px at 100% 0, color-mix(in srgb, var(--sky) 16%, transparent), transparent 70%),
457 var(--surface);
458}
459.op-tag {
460 font-family: var(--mono);
461 font-size: 12px;
462 letter-spacing: 0.08em;
463 text-transform: uppercase;
464 color: var(--muted);
465}
466.op-new .op-tag {
467 color: var(--sky);
468}
469.op-way h3 {
470 margin: 14px 0 24px;
471 font-size: 25px;
472 font-weight: 600;
473 line-height: 1.18;
474 letter-spacing: -0.02em;
475 text-wrap: balance;
476}
477.op-old h3 {
478 color: var(--text-2);
479}
480.op-chain {
481 display: flex;
482 flex-wrap: wrap;
483 align-items: center;
484 gap: 10px 0;
485 min-height: 132px;
486 align-content: flex-start;
487 margin: 0;
488 padding: 0;
489 list-style: none;
490}
491.op-chain li {
492 display: flex;
493 align-items: center;
494 padding: 7px 12px;
495 border: 1px solid var(--line-2, var(--line));
496 border-radius: 999px;
497 font-size: 13px;
498 line-height: 1.2;
499 color: var(--muted);
500 white-space: nowrap;
501}
502.op-chain li:not(:last-child) {
503 margin-right: 26px;
504 position: relative;
505}
506.op-chain li:not(:last-child)::after {
507 content: '';
508 position: absolute;
509 left: calc(100% + 6px);
510 top: 50%;
511 width: 14px;
512 border-top: 1px solid var(--muted);
513 opacity: 0.6;
514}
515.op-new .op-chain {
516 gap: 12px 0;
517}
518.op-new .op-chain li {
519 padding: 12px 18px;
520 border-color: color-mix(in srgb, var(--sky) 30%, var(--line));
521 font-size: 16px;
522 font-weight: 550;
523 color: var(--text);
524}
525.op-new .op-chain li.hot {
526 border-color: transparent;
527 background: var(--grad);
528 color: #06222b;
529}
530.op-new .op-chain li:not(:last-child)::after {
531 border-top: 2px solid var(--sky);
532 opacity: 1;
533}
534.op-points {
535 display: grid;
536 gap: 10px;
537 margin: 26px 0 0;
538 padding: 22px 0 0;
539 border-top: 1px solid var(--line);
540 list-style: none;
541}
542.op-points li {
543 position: relative;
544 text-wrap: balance;
545 padding-left: 26px;
546 font-size: 15px;
547 line-height: 1.5;
548 color: var(--text-2);
549}
550.op-old .op-points li::before {
551 content: '';
552 position: absolute;
553 left: 3px;
554 top: 0.72em;
555 width: 11px;
556 border-top: 2px solid var(--muted);
557}
558.op-new .op-points li {
559 color: var(--text);
560}
561.op-new .op-points li::before {
562 content: '';
563 position: absolute;
564 left: 3px;
565 top: 0.62em;
566 width: 12px;
567 height: 6px;
568 border-left: 2px solid var(--sky);
569 border-bottom: 2px solid var(--sky);
570 transform: translateY(-50%) rotate(-45deg);
571}
572.op-does {
573 margin-top: 64px;
574}
575.op-does-title {
576 font-size: 25px;
577 font-weight: 600;
578 letter-spacing: -0.02em;
579}
580.op-steps {
581 position: relative;
582 display: grid;
583 grid-template-columns: repeat(4, minmax(0, 1fr));
584 gap: 28px;
585 margin: 28px 0 0;
586 padding: 0;
587 list-style: none;
588}
589.op-steps::before {
590 content: '';
591 position: absolute;
592 top: 26px;
593 left: 26px;
594 right: calc((100% - 84px) / 4);
595 border-top: 2px dashed color-mix(in srgb, var(--sky) 45%, transparent);
596}
597.op-steps li {
598 position: relative;
599}
600.op-steps .m-icon {
601 width: 54px;
602 height: 54px;
603 margin-bottom: 16px;
604 border-radius: 16px;
605 background: color-mix(in srgb, var(--sky) 14%, var(--bg));
606}
607.op-steps .m-icon svg {
608 width: 26px;
609 height: 26px;
610}
611.op-steps b {
612 display: block;
613 margin-bottom: 6px;
614 font-size: 18px;
615 font-weight: 600;
616}
617.op-steps p {
618 text-wrap: pretty;
619 font-size: 15px;
620 line-height: 1.5;
621 color: var(--text-2);
622}
623.op-close {
624 text-wrap: balance;
625 max-width: 640px;
626 margin-top: 44px;
627 padding-left: 18px;
628 border-left: 2px solid var(--sky);
629 font-size: 19px;
630 line-height: 1.5;
631 color: var(--text);
632}
633@media (width <= 900px) {
634 .op-compare {
635 grid-template-columns: 1fr;
636 }
637 .op-chain {
638 min-height: 0;
639 }
640 .op-steps {
641 grid-template-columns: repeat(2, minmax(0, 1fr));
642 }
643 .op-steps::before {
644 display: none;
645 }
646}
647@media (width <= 650px) {
648 .operator {
649 padding-top: 80px;
650 }
651 .op-way {
652 padding: 24px 22px;
653 }
654 .op-way h3 {
655 font-size: 22px;
656 }
657 .op-steps {
658 grid-template-columns: 1fr;
659 gap: 24px;
660 }
661 .op-steps li {
662 display: grid;
663 grid-template-columns: 54px 1fr;
664 column-gap: 16px;
665 }
666 .op-steps .m-icon {
667 grid-row: span 2;
668 margin-bottom: 0;
669 }
670 .op-steps b {
671 align-self: end;
672 margin-bottom: 2px;
673 }
674}
675
676/* The local board and its optional two-device sync path are one continuous flow. */
677@media (width > 650px) {
678 .ot-workflow .m-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
679 .ot-workflow .m-flow::before { right: calc((100% - 40px) / 3 - 26px); }
680}
681.ot-workflow .m-sync-head h2 { margin: 0; }
682.ot-workflow .m-sync-note a { text-decoration: underline; text-underline-offset: .2em; }