/* common.css (the new look, 2026-10-30): what the website's five designed pages share beyond site.css. Home,
   Pricing, Contact us, Install and Sign in load it after site.css and before their own file. From the approved
   design (design/new-ui/source/site/03-landing-page/src/sections.css and shine.css): the section frame, the glyph
   statuses, the shared mock pieces, the segmented control, the shine on the cards and the calm reveal on scroll.
   The sticky header and the footer's extras are site.css's, so every page of the site carries them.

   Colours come from tokens.css only (dark is the house look, light is <html data-site-theme="light">), sizes on
   the 4px grid. Motion moves things by transform and opacity; a hover changes a colour. */

/* ---- the section frame ------------------------------------------------------------------------------------------ */
.sec { padding-block: 128px 0; }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-inline: 0; text-align: left; }
.sec h2 { margin: 0; font: 600 48px/56px var(--display); letter-spacing: -0.035em; color: var(--text); text-wrap: balance; }
.sec .lead { margin: 16px auto 0; max-width: 560px; color: var(--text-2); font: 400 18px/28px var(--body); text-wrap: balance; }
.sec-head.left .lead { margin-left: 0; }
.dim { color: var(--text-2); }
.dim3 { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- glyph statuses, as in the dashboard: a small mark and a grey word ------------------------------------------ */
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/20px var(--body); color: var(--text-2); white-space: nowrap; }
.st svg, .g { width: 14px; height: 14px; flex: none; }
.t-new { color: var(--accent); } .t-ok { color: var(--ok); } .t-wait { color: var(--wait); } .t-warn { color: var(--warn); } .t-off { color: var(--text-3); }
.st > span { color: var(--text-2); }
.spin { animation: spin 1.2s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- shared mock pieces ------------------------------------------------------------------------------------------ */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.mini-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.av {
  width: 28px; height: 28px; border-radius: var(--pill-radius); flex: none; display: inline-grid; place-items: center;
  background: var(--raised); border: 1px solid var(--line-2); font: 600 11px/1 var(--body); color: var(--text);
}
.sw { display: block; position: relative; width: 32px; height: 20px; border-radius: var(--pill-radius); background: var(--line-2); flex: none; transition: background-color .2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: var(--pill-radius); background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.sw.on { background: var(--glow); }
.sw.on::after { transform: translateX(12px); }
.meter { height: 4px; border-radius: var(--pill-radius); background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.meter.ok i { background: var(--ok); }
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--pill-radius); border: 1px solid var(--line-2); background: var(--panel); }
.seg button {
  height: 32px; padding: 0 16px; border: 0; border-radius: var(--pill-radius); background: transparent; cursor: pointer;
  color: var(--text-2); font: 500 14px/20px var(--body); transition: color .2s, background-color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.sm button { height: 28px; padding: 0 12px; font-size: 13px; }

/* The orb drawn on a page (assets/v2/pages/orb-art.js paints its canvas; until then, and with no canvas, its
   gradient). */
.orb { --s: 120px; position: relative; display: block; width: var(--s); height: var(--s); flex: none; border-radius: 50%; }
.orb:not(.orb-drawn) { background: radial-gradient(circle at 34% 28%, var(--glow-hi), var(--glow) 62%); }
/* max-width: none: the site's reset (site.css, canvas { max-width: 100% }) would hold the width at the box while the
   height stays 150%, an oval. */
.orb canvas { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; max-width: none; pointer-events: none; }
.orb.xs { --s: 28px; }

/* ---- the shine on the cards (the light in a different corner for every second and third card) ------------------- */
.panel, .mini-card, .step-vis, .phone, .qa, .fine li, .after-card, .psteps li, .plat, .wg-win {
  background-image:
    radial-gradient(70% 45% at 0% 100%, var(--sh1), transparent 70%),
    radial-gradient(60% 50% at 100% 60%, var(--sh2), transparent 70%),
    radial-gradient(80% 35% at 70% 0%, var(--sh3), transparent 70%);
}
:is(.panel, .mini-card, .qa, .fine li, .after-card, .psteps li, .plat):nth-child(3n+2) {
  background-image:
    radial-gradient(70% 45% at 100% 0%, var(--sh2), transparent 70%),
    radial-gradient(60% 55% at 0% 40%, var(--sh1), transparent 70%),
    radial-gradient(80% 35% at 30% 100%, var(--sh3), transparent 70%);
}
:is(.panel, .mini-card, .qa, .fine li, .after-card, .psteps li, .plat):nth-child(3n) {
  background-image:
    radial-gradient(60% 50% at 50% 110%, var(--sh2), transparent 70%),
    radial-gradient(55% 45% at 100% 100%, var(--sh1), transparent 70%),
    radial-gradient(70% 40% at 0% 0%, var(--sh3), transparent 70%);
}

/* site.css rests the animations of the elements inside a picture out of view or on an idle page; their ::before and
   ::after (a pulsing dot, a blinking caret) rest with them. */
.off-screen ::before, .off-screen ::after,
:root[data-site-idle] [data-rest-idle] ::before, :root[data-site-idle] [data-rest-idle] ::after { animation-play-state: paused !important; }

/* ---- the reveal on scroll ----------------------------------------------------------------------------------------
   Only what is below the screen when the page opens waits (the page's script marks it rv-wait once it knows), so
   nothing a visitor already sees ever fades out and back in; it rises in once it nears the screen.
   What waits is a layer of its own from the start, drawn while it is still below the screen (at an opacity of 1%,
   which no one sees on a part no one sees yet: at 0 the browser would not draw it at all), so rising in only moves
   and fades a picture the browser already holds. Drawn for the first time as it came into view, it stalled the
   scroll: a new phone's first scroll down Home, with Home's product window drawn as it rose in, had 0.72 to 0.77
   of its frames on time; held this way, 0.90 to 0.97 (tools/smoothness.py, 390x844, CPU 4x, a new browser). It stays
   a layer once it is in (a page that clears rv-wait sets rv-held), so it is never drawn again as it settles. */
.rv-wait { opacity: .01; transform: translateY(16px); will-change: opacity, transform; }
.rv-wait.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s var(--ease); }
.rv-held { will-change: opacity, transform; }

/* ---- the pill with an arrow ------------------------------------------------------------------------------------ */
.btn svg.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg.arrow { transform: translateX(3px); }
:root[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }
:root[dir="rtl"] .btn:hover svg.arrow { transform: scaleX(-1) translateX(3px); }

@media (max-width: 900px) {
  .sec { padding-top: 96px; }
  .sec h2 { font-size: 40px; line-height: 48px; }
}
@media (max-width: 640px) {
  .sec { padding-top: 80px; }
  .sec-head { margin-bottom: 40px; }
  .sec h2 { font-size: 32px; line-height: 40px; }
  .sec .lead { font-size: 16px; line-height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-wait { opacity: 1; transform: none; }
  .spin { animation: none; }
}
