/* Product pictures on the home page (markup in src/platform-ui.mjs). They are drawings of mailboxes in the general
   style of the services people move from, so each skin carries its own colours here rather than the site's tokens;
   the stage, the shadows and the floating cards use the site's. Purely decorative. */

/* The stage: a soft pastel panel borrowed from the hero's colours, with a window on it and a card floating over one
   corner. */
.pf-stage { position: relative; display: grid; align-items: center; min-height: 440px; padding: var(--s-7) var(--s-7) var(--s-8) var(--s-6); border-radius: 28px; background:
  radial-gradient(60% 50% at 0% 0%, rgba(242, 170, 255, 0.55), rgba(242, 170, 255, 0) 70%),
  radial-gradient(60% 55% at 100% 100%, rgba(192, 254, 249, 0.85), rgba(192, 254, 249, 0) 70%),
  linear-gradient(135deg, #e6e0ff 0%, #d2dcff 55%, #c9e4fb 100%); overflow: hidden; }
.visual:has(.pf-stage) { min-width: 0; }
.pf { position: relative; background: #fff; border: 1px solid rgba(40, 20, 120, 0.12); border-radius: 14px; box-shadow: 0 1px 0 rgba(11, 12, 14, 0.04), 0 30px 60px -28px rgba(30, 10, 110, 0.55); overflow: hidden; font-size: 12px; line-height: 1.35; color: #3c4043; text-align: left; }
.pf b { font-weight: 600; }
.pf ul { list-style: none; margin: 0; padding: 0; }
.pf li { margin: 0; }
.pf-av { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font: 600 9px/1 var(--sans); letter-spacing: 0.02em; }
.c1 { background: #0a4f9c; } .c2 { background: #7b3cff; } .c3 { background: #0e7490; } .c4 { background: #c2410c; } .c5 { background: #be185d; } .c6 { background: #15803d; }

/* Floating card */
.pf-float { position: absolute; z-index: 2; width: 232px; padding: 14px 16px; background: #fff; border: 1px solid rgba(40, 20, 120, 0.1); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(30, 10, 110, 0.5); font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.pf-f-br { right: 20px; bottom: 20px; } .pf-f-tr { right: 20px; top: 20px; } .pf-f-bl { left: 20px; bottom: 20px; }
.pf-ft { margin: 0 0 6px; color: var(--ink); font-weight: 600; font-size: 13px; }
.pf-row { display: flex; align-items: center; gap: 10px; } .pf-row .pf-ft { margin: 0; } .pf-row small { color: var(--ink-3); }
.pf-ok { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--ok); font-weight: 600; }
.pf-badge { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); }
.pf-map { margin: 0; } .pf-map li { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--ink-2); } .pf-map svg { color: var(--ink-3); }
.pf-kv { margin: 0; } .pf-kv div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); } .pf-kv div:first-child { border-top: 0; }
.pf-kv dt { color: var(--ink-3); } .pf-kv dd { margin: 0; color: var(--ink); font: 500 11px/1.4 var(--mono); }

/* ── Google-style web mailbox ── */
.pf-g { font-family: var(--sans); background: #f6f8fc; }
.pf-gbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.pf-burger { width: 16px; height: 2px; background: #5f6368; box-shadow: 0 5px #5f6368, 0 -5px #5f6368; }
.pf-gname { color: #5f6368; font-size: 16px; }
.pf-gsearch { flex: 1; padding: 8px 16px; border-radius: 999px; background: #e9eef6; color: #5f6368; }
.pf-gbody { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; padding: 0 8px 8px 0; }
.pf-gside { padding: 4px 0 8px 8px; }
.pf-compose { display: inline-block; margin: 2px 0 12px; padding: 10px 18px; border-radius: 14px; background: #c2e7ff; color: #001d35; font-weight: 600; }
.pf-gside li { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 0 999px 999px 0; margin-left: -8px; padding-left: 20px; color: #202124; }
.pf-gside li.on { background: #d3e3fd; font-weight: 700; } .pf-gside li b { margin-left: auto; font-weight: 700; }
.pf-gside p { margin: 12px 0 4px 12px; color: #5f6368; font-weight: 600; }
.pf-gside i { width: 9px; height: 9px; border-radius: 2px; }
.pf-glist { background: #fff; border-radius: 12px; overflow: hidden; }
.pf-glist li { display: grid; grid-template-columns: 24px 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #edf0f5; color: #5f6368; }
.pf-glist li.new { color: #202124; } .pf-glist li.new b { font-weight: 700; } .pf-glist li:not(.new) b { font-weight: 500; }
.pf-glist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-glist time { font-size: 11px; }
.cb { --c: #1a73e8; } .cg { --c: #188038; } .co { --c: #e37400; }
.pf-gside i { background: var(--c); }
.lab { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); font-style: normal; font-size: 10px; font-weight: 600; }

/* ── Microsoft-style desktop mailbox ── */
.pf-o { font-family: var(--sans); background: #fff; }
.pf-obar { display: flex; align-items: center; gap: 12px; padding: 7px 12px; background: #0f6cbd; color: #fff; }
.pf-waffle { width: 14px; height: 14px; background: radial-gradient(circle, #fff 1.3px, transparent 1.6px) 0 0 / 5px 5px; }
.pf-oname { font-weight: 600; font-size: 14px; }
.pf-osearch { flex: 1; max-width: 240px; margin: 0 auto; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); color: #eaf3fc; }
.pf-otools { display: flex; align-items: center; gap: 16px; padding: 8px 12px; border-bottom: 1px solid #e1dfdd; color: #424242; }
.pf-onew { padding: 5px 12px; border-radius: 4px; background: #0f6cbd; color: #fff; font-weight: 600; }
.pf-obody { display: grid; grid-template-columns: 112px 176px minmax(0, 1fr); min-height: 232px; }
.pf-oside { padding: 8px 0; background: #faf9f8; border-right: 1px solid #e1dfdd; }
.pf-oside p { margin: 8px 12px 4px; color: #605e5c; font-weight: 600; }
.pf-oside li { display: flex; gap: 6px; padding: 5px 12px; color: #242424; }
.pf-oside li.on { background: #ebf3fc; box-shadow: inset 3px 0 #0f6cbd; font-weight: 600; } .pf-oside li b { margin-left: auto; color: #0f6cbd; }
.pf-olist { border-right: 1px solid #e1dfdd; min-width: 0; }
.pf-otabs { display: flex; gap: 16px; padding: 8px 12px 0; border-bottom: 1px solid #e1dfdd; color: #605e5c; font-weight: 600; }
.pf-otabs span { padding-bottom: 6px; } .pf-otabs .on { color: #0f6cbd; box-shadow: inset 0 -2px #0f6cbd; }
.pf-olist li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 6px; padding: 8px 12px 8px 14px; border-bottom: 1px solid #f0f0f0; }
.pf-olist li.on { background: #ebf3fc; } .pf-olist li:first-child::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: #0f6cbd; }
.pf-olist li b { color: #242424; } .pf-olist li span { grid-column: 1 / -1; color: #0f6cbd; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-olist li small { grid-column: 1 / -1; color: #616161; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-olist time { grid-row: 1; grid-column: 2; color: #616161; font-size: 11px; }
.pf-oread { padding: 14px; min-width: 0; }
.pf-oread h4 { margin: 0 0 10px; color: #242424; font: 600 14px/1.25 var(--sans); letter-spacing: 0; }
.pf-ofrom { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .pf-ofrom small { display: block; color: #616161; }
.pf-oread p { margin: 0; color: #424242; }

/* ── A hosting company's webmail ── */
.pf-h { font-family: var(--sans); }
.pf-hbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #eef0f3; border-bottom: 1px solid #dde1e6; }
.pf-dots { display: flex; gap: 5px; } .pf-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c7ccd3; }
.pf-url { flex: 1; max-width: 280px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #5b6470; font: 11px/1.4 var(--mono); }
.pf-hbody { display: grid; grid-template-columns: 124px minmax(0, 1fr); min-height: 244px; }
.pf-hside { padding: 12px 0; background: #2f3a4a; color: #cdd5df; }
.pf-hlogo { display: block; margin: 0 14px 12px; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: -0.02em; }
.pf-hside li { display: flex; padding: 6px 14px; } .pf-hside li.on { background: #3d4b60; color: #fff; box-shadow: inset 3px 0 #4aa3ff; } .pf-hside li b { margin-left: auto; font-weight: 600; }
.pf-hmain { min-width: 0; }
.pf-htool { display: flex; align-items: center; gap: 16px; padding: 8px 12px; border-bottom: 1px solid #e3e6ea; color: #4a5361; }
.pf-hbtn { padding: 4px 12px; border-radius: 4px; background: #2d7ff9; color: #fff; font-weight: 600; }
.pf-htable { width: 100%; border-collapse: collapse; font-size: 12px; }
.pf-htable th { padding: 6px 12px; background: #f6f7f9; border: 0; border-bottom: 1px solid #e3e6ea; color: #6b7480; font: 600 11px/1.3 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; }
.pf-htable td { padding: 7px 12px; border: 0; border-bottom: 1px solid #eef0f3; color: #4a5361; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.pf-htable tr.new td { color: #1f2630; font-weight: 600; } .pf-htable td i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #2d7ff9; }
.pf-htable th:first-child, .pf-htable td:first-child { width: 18px; padding-right: 0; }

/* ── The ZTD Office control panel ── */
.pf-z { font-family: var(--sans); background: #fff; }
.pf-zbar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.pf-zname { color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.pf-zcrumb { flex: 1; color: var(--ink-3); font: 11px/1.4 var(--mono); }
.pf-zbody { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 252px; }
.pf-zside { padding: 12px 8px; background: var(--paper); border-right: 1px solid var(--line); }
.pf-zside li { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; } .pf-zside li.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(11, 12, 14, 0.06); }
.pf-zmain { padding: 14px 16px; min-width: 0; }
.pf-zhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; } .pf-zhead b { display: block; color: var(--ink); font-size: 14px; } .pf-zhead small { color: var(--ink-3); font: 11px/1.4 var(--mono); }
.pf-zadd { padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; }
.pf-recs li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.pf-recs code { padding: 0; background: none; color: var(--ink-3); font: 500 11px/1 var(--mono); } .pf-recs span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-recs em { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font: 500 11px/1 var(--mono); font-style: normal; }
.pf-inb li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pf-inb b { color: var(--ink); } .pf-inb em { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); font: 500 10px/1.4 var(--mono); font-style: normal; }
.pf-inb small { color: var(--ink-3); font: 11px/1.4 var(--mono); white-space: nowrap; }
.pf-bar { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--sunk); overflow: hidden; } .pf-bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.pf-bar .w8 { width: 8%; } .pf-bar .w14 { width: 14%; } .pf-bar .w60 { width: 60%; }
.pf-grp { display: block; margin-top: 2px; color: var(--ink-3); font: 11px/1.4 var(--mono); }

/* Phones: the windows lose their side panes, the floating card drops below its window */
@media (max-width: 900px) {
  .pf-stage { padding: var(--s-6) var(--s-5) var(--s-8); min-height: 0; }
}
@media (max-width: 640px) {
  .pf-stage { padding: var(--s-5) var(--s-4); gap: var(--s-4); border-radius: 22px; }
  .pf-float { position: static; width: auto; margin-top: var(--s-4); }
  .pf-gbody, .pf-zbody, .pf-hbody { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .pf-gside, .pf-zside, .pf-hside, .pf-oside { display: none; }
  .pf-obody { grid-template-columns: minmax(0, 1fr); } .pf-oread { display: none; } .pf-olist { border-right: 0; }
  .pf-glist li { grid-template-columns: 24px minmax(0, 1fr) auto; } .pf-glist li b { display: none; }
  .pf-htable th:nth-child(4), .pf-htable td:nth-child(4) { display: none; }
  .pf-otools span:nth-child(n + 4) { display: none; }
}

/* ── The home page's product demo, in the style of Google's web apps: a grey frame with a pill-shaped app rail, the
      open app on a white rounded sheet, and a pill search box. Our own logo and our own apps. ── */
.demo { --d-accent: #0b57d0; --d-accent2: #0b57d0; --d-ink: #1f1f1f; --d-muted: #444746; --d-line: #e1e5ea; --d-rail: #f6f8fc; --d-sel: #d3e3fd; --d-soft: #eaf1fb; }
.demo-shell { grid-template-columns: 232px minmax(0, 1fr); background: #f6f8fc; border: 0; border-radius: 24px; }
.demo-rail { padding: 14px 8px 14px 16px; background: transparent; border-right: 0; }
.demo-brand { padding: 4px 12px 18px; }
.demo-brand img { display: block; width: auto; height: 22px; border-radius: 0; }
.demo-app { gap: 14px; padding: 10px 16px; border-radius: 999px; color: #1f1f1f; font-weight: 500; }
.demo-app:hover { color: #1f1f1f; background: rgba(11, 87, 208, 0.07); }
#demo-mail:checked ~ .demo-shell .demo-app[for='demo-mail'],
#demo-cal:checked ~ .demo-shell .demo-app[for='demo-cal'],
#demo-meet:checked ~ .demo-shell .demo-app[for='demo-meet'],
#demo-docs:checked ~ .demo-shell .demo-app[for='demo-docs'],
#demo-contacts:checked ~ .demo-shell .demo-app[for='demo-contacts'] { color: #001d35; background: #d3e3fd; font-weight: 700; }
.demo-main { margin: 8px 8px 8px 0; background: #fff; border-radius: 18px; overflow: hidden; }
.demo-search { padding: 9px 20px; border: 0; border-radius: 999px; background: #eaf1fb; color: #444746; font-size: 0.875rem; min-width: 200px; }
.demo-play { background: #eaf1fb; border: 0; }
.demo-play:hover { background: #d3e3fd; }
@media (max-width: 860px) {
  .demo-shell { grid-template-columns: minmax(0, 1fr); }
  .demo-rail { padding: 10px 12px 2px; }
  .demo-main { margin: 0 8px 8px; }
  .demo-app { border-radius: 14px; }
}

/* ── Feature pictures (src/feature-art.mjs): our own webmail, calendar, meetings and addresses ── */
.fa-win { width: 100%; max-width: 560px; justify-self: center; color: #3c3a42; }
.fa-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #eceaf2; background: #fbfaff; }
.fa-dots { display: inline-flex; gap: 5px; } .fa-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e3e0ec; }
.fa-url { margin: 0 auto; padding: 3px 12px; border-radius: 999px; background: #f1eff7; color: #6b6773; font-size: 11px; }
.fa-lhead { padding: 12px 14px 8px; } .fa-lhead b { display: block; color: #111; font-size: 14px; } .fa-lhead small { color: #6b6773; font-size: 11px; }
.fa-small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.45; }
/* webmail */
.fa-mail { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 270px; }
.fa-side { padding: 12px 8px; background: #fbfaff; border-right: 1px solid #eceaf2; }
.fa-new { display: block; margin: 0 0 12px; padding: 8px 10px; border-radius: 999px; background: #6a5df2; color: #fff; font-weight: 600; text-align: center; }
.fa-side li { display: flex; justify-content: space-between; padding: 6px 9px; border-radius: 999px; color: #4f4a55; }
.fa-side li.on { background: #ece9ff; color: #3b2fb0; font-weight: 600; }
.fa-list ul { padding: 0 6px 8px; }
.fa-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; }
.fa-list li.on { background: #f3f1ff; }
.fa-list .pf-av { width: 26px; height: 26px; }
.fa-list li b { display: block; color: #111; font-weight: 500; } .fa-list li.new b { font-weight: 700; }
.fa-list li div span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #6b6773; font-size: 11px; }
.fa-list time { align-self: start; color: #8a8592; font-size: 10px; }
.fa-apps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fa-apps li { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 11px; }
/* calendar */
.fa-cal { padding: 12px 14px 16px; }
.fa-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .fa-cal-head b { color: #111; font-size: 14px; }
.fa-chip { padding: 3px 10px; border-radius: 999px; background: #f1eff7; color: #4f4a55; font-size: 11px; }
.fa-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fa-day { display: flex; flex-direction: column; gap: 6px; min-height: 200px; padding: 8px 6px; border-radius: 10px; background: #faf9fd; }
.fa-dn { color: #8a8592; font-size: 10px; } .fa-dn b { color: #111; font-size: 13px; }
.fa-ev { display: block; padding: 6px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.fa-ev small { display: block; font-weight: 400; opacity: 0.85; }
.fa-ev.e1 { background: #e9f0fd; color: #1d4ed8; } .fa-ev.e2 { background: #fdf0e6; color: #a2470d; } .fa-ev.e3 { background: #ece9ff; color: #3b2fb0; }
.fa-ev.on { margin-top: 30px; box-shadow: inset 0 0 0 1.5px #6a5df2; }
/* meetings */
.fa-dark { background: #0d1219; border-color: #0d1219; }
.fa-dark .fa-bar { background: #151b24; border-color: #222a36; } .fa-dark .fa-dots i { background: #2a3340; } .fa-dark .fa-url { background: #222a36; color: #aab3c0; }
.fa-meet { padding: 12px 14px 14px; color: #e8edf3; }
.fa-meet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fa-meet-top span { display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; font-size: 11px; font-variant-numeric: tabular-nums; }
.fa-meet-top i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }
.fa-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fa-tile { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(160deg, #1e293b, #0f172a); }
.fa-tile.on { box-shadow: inset 0 0 0 2px #22c55e; }
.fa-tile .pf-av { width: 34px; height: 34px; font-size: 11px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.fa-tile span:last-child { position: absolute; left: 7px; bottom: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.45); font-size: 10px; }
.fa-ctrls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.fa-ctrls i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); } .fa-ctrls i.end { background: #ef4444; }
/* addresses */
.fa-routes ul { padding: 0 14px 14px; }
.fa-routes li { display: grid; grid-template-columns: 128px 20px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #f1eff5; }
.fa-addr b { display: block; color: #111; font-size: 13px; } .fa-addr em { color: #8a8592; font-style: normal; font-size: 10.5px; }
.fa-arrow { color: #b3aebb; display: grid; }
.fa-to { display: flex; align-items: center; gap: 8px; color: #3c3a42; }
.fa-stack { display: inline-flex; } .fa-stack .pf-av { border: 2px solid #fff; margin-right: -7px; } .fa-stack .pf-av:last-child { margin-right: 0; }
@media (max-width: 640px) {
  .fa-mail { grid-template-columns: minmax(0, 1fr); } .fa-side { display: none; }
  .fa-week { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fa-day:nth-child(n + 4):not(:nth-child(4)) { display: none; } .fa-day:nth-child(2) { display: none; } .fa-day { min-height: 160px; }
  .fa-routes li { grid-template-columns: 96px 16px minmax(0, 1fr); }
}
