/* relay.glass/buy: "How it works", "It knows your goal" and the privacy frame.
   The Relay One landing's sections (site/new/src/parts/en/16, 20 and 64, the
   page / replaced on 2026-11-03), restaged in the vision page's look as one
   calm frame each (owner, 2026-11-03: "1 frame = 1 idea, so one diagram, and
   keep scrolling", and Persona's landing, "simple and clean"): one headline,
   one line at most, one visual, a lot of room. motion.js plays them.

   Ink, greys and paper: nothing amber (a live microphone, DESIGN.md) and nothing
   red (people, on the vision page). Motion is transform and opacity, plus one
   stroke draw-in for the glyphs. With no script each frame is plain markup at
   rest, read top to bottom. motion.js arms a frame (.armed) only when the reader
   has not asked for reduced motion, so under Reduce Motion everything stays at
   rest and nothing moves by itself. On a desk the page's frame ruler runs down
   the right edge, so nothing that matters comes within 80 px of it. */

/* ---- How it works: one frame, one diagram ----------------------------------- */
/* The glasses hear you, your AI does the work, it answers in your ear and in
   the app: three stations on one line. Pinned (motion.js, .pinned) the frame
   holds still while the reader scrolls and each station takes the focus in
   turn, the line drawing on to the next; at the end the three read together.
   On a screen too short to hold it (.flowing) each station lights as it is
   reached. With no script all three stand lit. */
.how-pin { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100svh; max-width: var(--max); margin: 0 auto; padding: calc(var(--bar) + clamp(20px, 6vh, 72px)) var(--pad) clamp(40px, 9vh, 104px); }
.how h2 { max-width: 11em; margin-inline: auto; font-size: clamp(44px, 8vw, 140px); text-align: center; }
.how-flow { --node: clamp(88px, 8vw, 128px); --g: clamp(28px, 5vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(48px, 10vh, 112px); }
.how-step { position: relative; }
.how-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* The line from one station to the next: ::before the track, ::after the ink
   that draws along it (all of it, with no script). */
.how-step:not(:last-child)::before, .how-step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--node) / 2 - 1px); left: calc(50% + var(--node) / 2 + 16px); width: calc(100% + var(--g) - var(--node) - 32px); height: 2px; border-radius: 2px; background: var(--rule); }
.how-step:not(:last-child)::after { background: var(--ink); transform-origin: 0 50%; }
.how-node { position: relative; display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%; }
.how-node::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); }
.how-node::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; pointer-events: none; }
.how-ic { position: relative; width: 40%; height: 40%; overflow: visible; fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.how-ic * { stroke-dasharray: 1 1; }
.how-step h3 { margin-top: clamp(20px, 3.4vh, 36px); font-size: clamp(26px, 2.6vw, 42px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.how-step p { max-width: 17em; margin-top: 12px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; color: var(--ink-2); text-wrap: balance; }

/* Armed. A station not reached yet is faint; the one in focus is whole, its
   disc filling, one ring leaving it and its glyph drawing itself in; one
   already passed steps back while the next has the focus; at the end (.all)
   the three read together. */
.how.pinned { height: 260svh; }
.how.pinned .how-pin { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.how.armed .how-card { opacity: .2; transform: scale(.92); transition: opacity 520ms ease, transform 800ms var(--ease); }
.how.armed .how-step.seen .how-card { opacity: .34; }
.how.armed .how-step.now .how-card, .how.armed.all .how-step .how-card { opacity: 1; transform: none; }
.how.armed .how-step::after { transform: scaleX(var(--f, 0)); }
.how.armed .how-node { box-shadow: inset 0 0 0 1.5px var(--rule); }
.how.armed .how-node::before { opacity: 0; transform: scale(.55); transition: opacity 260ms ease, transform 560ms var(--ease); }
.how.armed .how-ic { stroke: var(--ink-3); }
.how.armed .how-step:is(.now, .seen) .how-node::before { opacity: 1; transform: none; }
.how.armed .how-step:is(.now, .seen) .how-ic { stroke: var(--paper); }
.how.armed .how-step.now .how-ic * { animation: mo-draw 900ms var(--ease) both; animation-delay: calc(140ms + var(--d, 0) * 160ms); }
.how.armed .how-step.now .how-node::after { animation: mo-ring 900ms ease-out both; }
@keyframes mo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mo-ring { from { opacity: .5; transform: none; } to { opacity: 0; transform: scale(1.6); } }

/* A narrow screen: the same diagram downwards, the line on the left. */
@media (max-width: 899px) {
  .how h2 { margin-inline: 0; text-align: left; }
  .how-flow { --node: 56px; --g: 30px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(32px, 6vh, 56px); }
  .how-card { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
  .how-node { grid-column: 1; grid-row: 1 / span 2; }
  .how-step h3 { grid-column: 2; grid-row: 1; display: flex; align-items: center; min-height: var(--node); margin-top: 0; font-size: clamp(24px, 6.6vw, 34px); }
  .how-step p { grid-column: 2; grid-row: 2; margin-top: 6px; font-size: 16px; text-wrap: pretty; }
  .how-step:not(:last-child)::before, .how-step:not(:last-child)::after { top: calc(var(--node) + 6px); bottom: calc(6px - var(--g)); left: calc(var(--node) / 2 - 1px); width: 2px; height: auto; }
  .how-step:not(:last-child)::after { transform-origin: 50% 0; }
  .how.armed .how-step::after { transform: scaleY(var(--f, 0)); }
  .how.armed .how-card { transform: none; }
}
/* The phone's buy bar covers the foot of a pinned frame: keep clear of it. */
@media (max-width: 760px) {
  .how.pinned .how-pin { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---- the working ring (the Feed's glyph, DESIGN.md): a thin circle that turns
   dotted while it works and closes on a check -------------------------------- */
.mo-ring { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mo-ring circle { transition: stroke-dasharray 300ms ease, opacity 300ms ease; }
.mo-ring path { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease) 140ms; }
[data-working] > .mo-ring circle { stroke-dasharray: .4 6.1; opacity: .7; }
[data-working] > .mo-ring path { stroke-dashoffset: 100; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-working] > .mo-ring { animation: mo-turn 2.4s linear infinite; }
}
@keyframes mo-turn { to { transform: rotate(360deg); } }

/* ---- It knows your goal: the wheel of everybody's goals, on the paper ------- */
/* Each goal is a flat face; motion.js stands the ones near the front on a
   wheel (translate, rotateX, opacity) under the drum's perspective, so they
   are never preserve-3d and never cross. --gl-h is the tallest face in em,
   measured by the script. No script: the first goal stands alone. */
.goal { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100svh; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vh, 168px) var(--pad); text-align: center; }
.goal h2 { max-width: 11em; margin-inline: auto; font-size: clamp(44px, 8vw, 140px); }
.gl { margin-top: clamp(28px, 6vh, 72px); }
.gl-drum { position: relative; max-width: 1240px; margin: 0 auto; font-size: clamp(36px, 5.6vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -.05em; }
.gl-g { text-wrap: balance; }
.gl-g:not(:first-child) { display: none; }
.gl-m { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* The wheel's rim fades into the paper under two bands of the paper itself:
   on a solid ground they look as a mask would, without a mask's cost over
   faces that each have a layer of their own. */
.gl-drum[data-on] { --gl-h: 2.1em; height: calc(var(--gl-h) * 3.4); overflow: hidden; perspective: 1000px; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.gl-drum[data-on]::before, .gl-drum[data-on]::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: 36%; pointer-events: none; }
.gl-drum[data-on]::before { top: 0; background: linear-gradient(var(--paper) 10%, rgba(244, 242, 238, 0)); }
.gl-drum[data-on]::after { bottom: 0; background: linear-gradient(rgba(244, 242, 238, 0), var(--paper) 90%); }
.gl-drum[data-on] .gl-g { display: block; position: absolute; left: 0; right: 0; top: 50%; padding: 0 .1em; transform: translateY(-50%); pointer-events: none; }
.gl-drum[data-on] .gl-g:not(:first-child) { opacity: 0; }
.gl-drum[data-grab] { cursor: grabbing; }
.gl-line { margin-top: clamp(20px, 4vh, 40px); margin-inline: auto; }
/* Today's move for the goal in front: the ring and one line. */
.gl-now { display: flex; align-items: center; gap: .75rem; width: min(100%, 28rem); min-height: 58px; margin: clamp(16px, 3vh, 28px) auto 0; padding: .8rem 1.35rem .8rem 1.05rem; border-radius: 29px; background: var(--white); box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -36px rgba(12, 12, 13, .4); text-align: left; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.gl-now span { flex: 1; text-wrap: balance; transition: opacity 240ms ease, transform 320ms var(--ease); }
.gl-now[data-out] span { opacity: 0; transform: translateY(8px); transition-duration: 160ms; }
/* The wheel's own pause: it moves by itself, so it can be stopped. Low on the
   left, clear of the page's frame ruler on the right. */
.gl-hold { position: absolute; left: var(--pad); bottom: clamp(24px, 6vh, 64px); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); cursor: pointer; transition: color 200ms ease, transform 180ms var(--ease); -webkit-tap-highlight-color: transparent; }
.gl-hold[hidden] { display: none; }
.gl-hold:hover { color: var(--ink); }
.gl-hold:active { transform: scale(.94); }
.gl-hold svg { width: 18px; height: 18px; }
.gl-hold .p { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.gl-hold .t { display: none; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.gl-hold.off .p { display: none; }
.gl-hold.off .t { display: inline; }
@media (max-width: 560px) {
  .goal { padding-top: calc(var(--bar) + 28px); padding-bottom: 112px; }
  .gl-drum[data-on] { height: calc(var(--gl-h) * 3); }
}

/* ---- The most personal AI: four promises on a white stage set into the paper
   (owner, 2026-11-03: "clair, pas en noir"), settling into place as it arrives */
/* Only what /privacy says: no badges, certifications or encryption claims. */
.mo-stage { position: relative; width: calc(100% - 2 * var(--gap)); max-width: var(--max); margin: var(--gap) auto; border-radius: var(--r); background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); transform-origin: 50% 0; }
.mo-stage :focus-visible { outline-color: var(--ink); }
.private { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - 2 * var(--gap)); padding: clamp(72px, 12vh, 140px) var(--pad); text-align: center; }
.private h2 { max-width: 11em; font-size: clamp(44px, 8vw, 140px); }
.private .line { margin-inline: auto; color: var(--ink-2); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); width: 100%; max-width: 1120px; margin-top: clamp(56px, 12vh, 128px); }
.trust li { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2.4vh, 24px); }
.trust-ic { width: clamp(34px, 3vw, 46px); height: clamp(34px, 3vw, 46px); overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust-ic * { stroke-dasharray: 1 1; }
.trust h3 { font-size: clamp(19px, 1.8vw, 28px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
/* Armed: the four come up one after another, and each glyph draws itself in,
   the slash, the screen's stand and the key's bit last. */
.private.armed .trust li { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease-out, transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.private.armed .trust.in li { opacity: 1; transform: none; }
.private.armed .trust-ic * { stroke-dashoffset: 1; }
.private.armed .trust.in .trust-ic * { animation: mo-draw 1100ms var(--ease) both; animation-delay: calc(280ms + var(--i, 0) * 80ms + var(--d, 0) * 220ms); }
@media (max-width: 760px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
}

/* ---- a desk: room for the page's frame ruler on the right edge ------------- */
@media (min-width: 1024px) {
  .how-pin, .goal { padding-left: max(var(--pad), 104px); padding-right: max(var(--pad), 104px); }
  .gl-hold { left: max(var(--pad), 104px); }
  .private { padding-left: max(var(--pad), 88px); padding-right: max(var(--pad), 88px); }
}

/* ---- Reduce Motion turned on after the page armed: everything at rest ----- */
@media (prefers-reduced-motion: reduce) {
  .how.armed .how-card, .how.armed .how-node::before, .how.armed .how-step::after,
  .private.armed .trust li, .mo-stage { opacity: 1 !important; transform: none !important; transition: none !important; }
  .how.armed .how-ic { stroke: var(--paper); }
  .how.armed .how-ic *, .private.armed .trust-ic *, .how.armed .how-node::after { animation: none !important; stroke-dashoffset: 0 !important; }
  .how.armed .how-node::after { opacity: 0 !important; }
  .how.pinned { height: auto; }
  .how.pinned .how-pin { position: relative; height: auto; min-height: 100svh; overflow: visible; }
}
