Repository navigation
Expand file tree
/
Copy pathsite.css
More file actions
278 lines (263 loc) · 18.1 KB
/
Copy pathsite.css
File metadata and controls
278 lines (263 loc) · 18.1 KB
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
/* Shared style for the landing pages (index, best-countdown-app).
Always light, on purpose (Caner, 17 Oct 2026: dark looked too black).
Brand colours match the App Store screenshots and tools/social/brand.py. */
:root {
--yellow: #FFE66D; --yellow-soft: #FFF6C7;
--coral: #FF686B; --coral-soft: #FFE3E3;
--turquoise: #4ECDC4; --turquoise-soft: #DDF6F4;
--ink: #262F36; --ink-2: #4A555E; --muted: #6B757D;
--bg: #FFFCF4; --surface: #FFFFFF; --line: #EFE9DA;
--radius: 22px;
--shadow: 0 1px 2px rgba(38,47,54,0.04), 0 8px 28px rgba(38,47,54,0.07);
--round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0; background: var(--bg); color: var(--ink);
font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: #000; }
img { max-width: 100%; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--round); color: var(--ink); letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 4.2vw, 36px); line-height: 1.15; margin: 0 0 8px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.section { padding: 56px 0; }
.section-intro { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 36em; }
/* Top bar */
.topbar { padding: 16px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round);
font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(38,47,54,0.15); }
.topbar .small-cta { font-size: 14px; font-weight: 700; text-decoration: none; padding: 9px 16px;
border-radius: 999px; background: var(--ink); color: #fff; }
.topbar .small-cta:hover { color: #fff; background: #000; }
/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
padding: 15px 28px; border-radius: 16px; text-decoration: none; font-size: 17px;
font-weight: 700; box-shadow: 0 6px 18px rgba(38,47,54,0.22); transition: transform .15s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
/* Hero (home) */
.hero { background: var(--yellow); position: relative; overflow: hidden; }
.hero::after { /* soft coral glow, bottom right */
content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
border-radius: 50%; background: radial-gradient(circle, rgba(255,104,107,0.35), rgba(255,104,107,0) 70%);
pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; text-align: center; padding-top: 28px; padding-bottom: 0; }
.hero .icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 30px rgba(38,47,54,0.22); }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.04; margin: 22px auto 14px; max-width: 12em; }
.hero .pitch { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-2); max-width: 32em; margin: 0 auto 18px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 26px; max-width: 40em; }
.pill { background: rgba(255,255,255,0.7); border: 1px solid rgba(38,47,54,0.08); color: var(--ink);
padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero .meta { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
/* App Store in-app event banner, top of the home hero (make_home.py EVENTS) */
.event-banner { display: flex; width: fit-content; align-items: center; gap: 12px; max-width: 100%; margin: 0 auto 22px;
padding: 8px 16px 8px 8px; background: var(--surface); color: var(--ink); text-decoration: none;
text-align: left; border-radius: 999px; box-shadow: var(--shadow); transition: transform .15s ease; }
.event-banner[hidden] { display: none; }
.event-banner:hover { color: var(--ink); transform: translateY(-1px); }
.event-emoji { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
font-size: 22px; background: var(--coral-soft); }
.event-sale { font-family: var(--round); font-size: 11.5px; font-weight: 800; letter-spacing: -0.03em;
color: #fff; background: var(--coral, #ff686b); }
.event-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.event-text strong { font-family: var(--round); font-size: 15px; }
.event-text span { font-size: 13px; color: var(--ink-2); }
.event-go { flex: none; font-size: 24px; line-height: 1; color: var(--muted); }
@media (max-width: 560px) { .event-banner { border-radius: 22px; } }
.article-head .event-banner { margin: 0 0 20px; }
/* Banners share one row (side by side when they fit, stacked on phones) */
.event-banners { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 22px; }
.event-banners .event-banner { margin: 0; }
.event-banners:not(:has(.event-banner:not([hidden]))) { display: none; }
.article-head .event-banners { justify-content: flex-start; margin: 0 0 20px; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
padding: 40px 20px 0; margin: 0 -20px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { width: 200px; height: auto; flex: 0 0 auto; border-radius: 22px 22px 0 0;
scroll-snap-align: center; box-shadow: 0 -4px 30px rgba(38,47,54,0.16); }
@media (min-width: 960px) {
.shots { justify-content: center; overflow: visible; }
.shots img { width: 150px; } /* six frames (5 iPhone + Apple Watch) fit the 1000px wrap */
.shots img:nth-child(odd) { margin-top: 26px; }
}
/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
font-size: 22px; margin-bottom: 14px; }
.t-yellow { background: var(--yellow-soft); } .t-coral { background: var(--coral-soft); }
.t-turq { background: var(--turquoise-soft); } .t-ink { background: #E9ECEE; }
/* Claim band */
.band { background: var(--ink); color: #fff; border-radius: 28px; padding: 34px 28px; text-align: center; }
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { color: #C9D0D5; margin: 0; font-size: 17px; }
/* Tables */
.table-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
background: #FFFDF6; font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
td.c, th.c { text-align: center; white-space: nowrap; width: 120px; }
.col-pro { background: var(--yellow-soft); }
thead .col-pro { background: var(--yellow); color: var(--ink); }
.yes { color: #138A5B; font-weight: 700; }
.no { color: #C33B36; font-weight: 700; }
.na { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 560px) {
th, td { padding: 11px 10px; font-size: 14px; }
td.c, th.c { width: 80px; }
}
/* FAQ */
.faq details { background: var(--surface); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px;
box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; display: flex;
justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--round); font-size: 22px; line-height: 1;
color: var(--coral); flex: 0 0 auto; transition: transform .2s ease; }
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 10px 0 2px; font-size: 15px; }
/* "Show more" / "Show less" on the home page (questions and guides) */
details.more > summary, .less:not([hidden]) {
display: block; width: fit-content; margin: 18px auto 0; padding: 11px 22px;
border: 0; font-family: inherit; line-height: inherit; color: var(--ink); background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover, .less:hover { outline: 2px solid var(--yellow); }
details.more > summary:focus-visible, .less:focus-visible { outline: 3px solid var(--turquoise); }
details.more[open] > summary { display: none; }
.faq details.more { background: none; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
.faq details.more > summary::after { content: none; }
.related + details.more[open] { margin-top: 10px; }
/* Final call to action */
.final { background: var(--turquoise); border-radius: 28px; padding: 44px 24px; text-align: center; }
.final h2 { margin-bottom: 8px; }
.final p { color: var(--ink-2); margin: 0 0 22px; font-size: 17px; }
/* Footer */
footer { padding: 40px 0 56px; text-align: center; font-size: 14px; color: var(--muted); }
footer a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .row { margin: 6px 0; }
/* Article pages (comparison) */
.article-head { padding: 28px 0 8px; }
.article-head h1 { font-size: clamp(32px, 5.6vw, 52px); line-height: 1.08; margin: 6px 0 14px; max-width: 16em; }
.article-head .lede { font-size: 19px; color: var(--ink-2); max-width: 38em; margin: 0 0 22px; }
.kicker { display: inline-block; background: var(--yellow); padding: 5px 12px; border-radius: 999px;
font-size: 13px; font-weight: 700; }
.disclosure { background: var(--yellow-soft); border-radius: 18px; padding: 16px 20px; font-size: 15px;
color: var(--ink-2); }
.quick { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quick li { background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.compare table { min-width: 820px; font-size: 14px; }
.compare td.app { font-weight: 700; white-space: nowrap; }
.compare td.app, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare thead th:first-child { background: #FFFDF6; }
.compare tr.us td { background: var(--yellow-soft); }
.app-card { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-bottom: 14px;
box-shadow: var(--shadow); }
.app-card.us { outline: 3px solid var(--yellow); }
.app-card .by { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.app-card dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 8px 14px; font-size: 15px; }
.app-card dt { color: var(--muted); font-weight: 600; }
.app-card dd { margin: 0; }
@media (max-width: 560px) { .app-card dl { grid-template-columns: 1fr; gap: 2px; } .app-card dt { margin-top: 8px; } }
.prose p { max-width: 42em; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.wrap main .section { padding: 30px 0; }
.wrap main .section > h2 { margin-bottom: 16px; }
.swipe-hint { display: none; font-size: 13px; color: var(--muted); margin: -6px 0 10px; }
@media (max-width: 820px) { .swipe-hint { display: block; } }
/* Question / guide pages (generated by simple-count/tools/site/make_pages.py) */
.article-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .article-grid { grid-template-columns: minmax(0, 1fr) 260px; } }
.article-body .section { padding: 22px 0; }
.article-body h2 { font-size: clamp(22px, 3.4vw, 28px); margin-bottom: 12px; }
.article-side { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
@media (min-width: 900px) { .article-side { position: sticky; top: 20px; } }
.side-shot { width: 230px; max-width: 70vw; height: auto; border-radius: 26px; box-shadow: var(--shadow); }
.side-note { font-size: 13px; color: var(--muted); margin: 0; max-width: 230px; }
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ol.steps li { counter-increment: step; position: relative; background: var(--surface); border-radius: 16px;
padding: 14px 18px 14px 58px; box-shadow: var(--shadow); color: var(--ink-2); }
ol.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px;
border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--round);
font-weight: 700; display: grid; place-items: center; font-size: 15px; }
ol.steps strong, ul.tips strong { color: var(--ink); }
ul.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.tips li { background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
color: var(--ink-2); border-left: 4px solid var(--turquoise); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
@media (min-width: 600px) {
.related.cols-2 { grid-template-columns: repeat(2, 1fr); }
.related.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.related-link { background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
text-decoration: none; font-weight: 600; color: var(--ink); }
.related-link:hover { color: #000; outline: 2px solid var(--yellow); }
/* Chinese pages */
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
/* Language menu + suggestion bar (generated home pages) */
.topbar-right { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
height: 40px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600;
color: var(--ink); background: rgba(255,255,255,0.82); border: 1px solid rgba(38,47,54,0.10);
box-shadow: 0 1px 2px rgba(38,47,54,0.06); white-space: nowrap; user-select: none;
-webkit-tap-highlight-color: transparent; transition: background .15s ease, box-shadow .15s ease; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::marker { content: ""; }
.lang-menu summary:hover { background: #fff; box-shadow: 0 2px 10px rgba(38,47,54,0.10); }
.lang-menu summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-menu .flag { font-size: 18px; line-height: 1; }
.lang-menu .chev { width: 12px; height: 12px; color: var(--muted); transition: transform .2s ease; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; background: var(--surface);
border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(38,47,54,0.18);
padding: 8px; width: 380px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
text-align: left; animation: lang-pop .14s ease-out; }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
text-decoration: none; color: var(--ink); }
.lang-list a:hover { background: var(--yellow-soft); }
.lang-list .flag { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.lang-names { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lang-native { font-size: 15px; font-weight: 600; }
.lang-en { font-size: 12px; color: var(--muted); }
.lang-list a[aria-current="page"] { background: var(--yellow-soft); }
.lang-list a[aria-current="page"]::after { content: "✓"; margin-left: auto; font-weight: 700; color: var(--ink); }
@media (max-width: 560px) {
.topbar .wrap { position: relative; }
.lang-menu { position: static; }
.lang-list { left: 16px; right: 16px; width: auto; top: calc(100% + 6px); max-height: 70vh; overflow-y: auto; }
.lang-menu .lang-current { display: none; }
.lang-menu summary { padding: 0 10px; }
}
@media (max-width: 380px) { .topbar .small-cta { display: none; } }
.suggest-bar { background: var(--ink); color: #fff; font-size: 14px; padding: 10px 16px; display: flex;
align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.suggest-bar[hidden] { display: none; }
.suggest-bar a { color: var(--yellow); font-weight: 700; text-decoration: none; }
.suggest-bar button { background: none; border: 0; color: #C9D0D5; font-size: 16px; cursor: pointer; padding: 2px 6px; }
.topbar { position: relative; z-index: 30; }
.brand, .topbar .small-cta { white-space: nowrap; }
@media (max-width: 430px) { .topbar .small-cta { padding: 8px 12px; font-size: 13px; } .brand { font-size: 16px; } .brand img { width: 30px; height: 30px; } }
/* Launch video (English home): landscape on wide screens, the vertical cut on phones */
.video-section { padding-bottom: 0; }
.demo { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--yellow); }
@media (max-width: 640px) {
.demo { aspect-ratio: 9 / 16; max-width: calc(82vh * 9 / 16); margin: 0 auto; }
}