/* The sample proposal of the first touch (J2): "/" and "/sample". It decides in the browser only:
   it sends nothing and saves nothing. On site.css's colours; the times, curves and distances are
   the design's (mock/first-touch.html, J10). A decided sample shows its decided rows (the owner's
   steer of 09:50: a decision prints no paper). */
:root {
  --xs-pad: 24px;
  --xs-r-card: 22px;
  --xs-r-tile: 16px;
  --xs-r-inner: 12px;
  --xs-button-h: 48px;
  --xs-tap: 44px;
  --xs-hero: var(--xf-button);
  --xs-hero-text: var(--xf-button-text);
  --xs-hero-quiet: #d2d2d6;
  --xs-hero-rail: rgb(255 255 255 / 20%);
  --xs-hero-action: #f3f3f3;
  --xs-hero-action-text: #0d0d0d;
  --xs-hero-light: radial-gradient(120% 90% at 85% 0%, rgb(255 255 255 / 12%), transparent 60%);
  --xs-live: rgb(0 156 149);
  /* Motion: each time, curve and distance of the design. Less motion sets each to 0; the clocks stay. */
  --xs-press-ms: 230ms;
  --xs-tint-ms: 150ms;
  --xs-swap-leave-ms: 110ms;
  --xs-swap-after-ms: 130ms;
  --xs-swap-come-ms: 200ms;
  --xs-come-ms: 300ms;
  --xs-next-at-ms: 840ms;
  --xs-settle-out-ms: 90ms;
  --xs-settle-in-ms: 160ms;
  --xs-settle-y: 2px;
  --xs-swap-blur: .18em;
  --xs-mark-ms: 1600ms;
  --xs-press-scale: .97;
  --xs-spring-press: cubic-bezier(.35, .676, .046, 1.073);
  --xs-ease-come: cubic-bezier(.16, 1, .3, 1);
  /* The clocks. They are not motion. */
  --xs-rest: 1500ms;
  --xs-hold: 1000ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    --xs-hero-quiet: #49494e;
    --xs-hero-rail: rgb(13 13 13 / 15%);
    --xs-hero-action: #0d0d0d;
    --xs-hero-action-text: #fff;
    --xs-hero-light: none;
    --xs-live: rgb(0 106 96);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --xs-press-ms: 0ms; --xs-tint-ms: 0ms; --xs-swap-leave-ms: 0ms; --xs-swap-after-ms: 0ms; --xs-swap-come-ms: 0ms;
    --xs-come-ms: 0ms; --xs-next-at-ms: 0ms; --xs-settle-out-ms: 0ms; --xs-settle-in-ms: 0ms; --xs-settle-y: 0px;
    --xs-swap-blur: 0em; --xs-mark-ms: 0ms; --xs-press-scale: 1;
  }
}

/* The column of "/" and "/sample": the design's frame of 1,168 px. */
.xf-col:has(> .xs-top), .xf-col[data-shape="sample"] { --xf-w: 1120px; --xf-gap: 0px; max-width: calc(1120px + 2 * var(--xf-pad)); margin: 0 auto; padding-top: 0; font-size: 1rem; line-height: 1.5rem; animation: none; }
.xf-col:has(> .xs-top) > *, .xf-col[data-shape="sample"] > * { animation: none; }

/* A signed-in owner (the frame's rail) reads the "si" words; a visitor the "so" words (J2-5). */
.xf-root[data-rail] .xs-so, .xf-root:not([data-rail]) .xs-si { display: none !important; }

/* The top block: the sentence, the sample, the three promises */
.xs-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--xs-pad); padding-top: 40px; }
.xs-say { min-width: 0; }
.xs-sentence { font: 600 2rem/2.25rem var(--xf-font); letter-spacing: -.03em; }
.xs-sentence span { display: block; text-wrap: balance; }
.xs-lead { margin-top: 12px; font-size: 1rem; line-height: 1.5rem; color: var(--xf-quiet); }
.xs-lead[hidden] { display: none; }

.xs-sample { min-width: 0; }
.xs-view { display: grid; gap: 16px; transition: opacity var(--xs-swap-leave-ms) ease-out; }
.xs-view[data-leaving] { opacity: 0; }
.xs-hero { display: grid; padding: 20px; border-radius: var(--xs-r-card); background: var(--xs-hero-light), var(--xs-hero); color: var(--xs-hero-text); }
.xs-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.xs-state { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.xs-state::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; opacity: .62; }
.xs-state[data-live]::before { background: var(--xs-live); opacity: 1; }
.xs-paper { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--xf-edge); font-size: .875rem; line-height: 1.25rem; font-weight: 500; white-space: nowrap; }
.xs-hero .xs-paper { box-shadow: inset 0 0 0 1px currentColor; }
.xs-name { margin-top: 14px; font: 600 1.5rem/1.875rem var(--xf-font); letter-spacing: -.015em; text-wrap: balance; }
.xs-cost { margin-top: 2px; color: var(--xs-hero-quiet); }
.xs-cost .xf-fig { color: var(--xs-hero-text); }
.xs-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; row-gap: 8px; margin-top: 16px; }
.xs-big { font: 500 2rem/2.25rem var(--xf-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xs-count > i { font-style: normal; color: var(--xs-hero-quiet); white-space: nowrap; }
.xs-count .xs-paper { align-self: center; margin-left: auto; }
.xs-d { display: inline-block; transition: opacity var(--xs-settle-in-ms) ease-out, transform var(--xs-settle-in-ms) ease-out; }
.xs-d[data-m="out"] { opacity: 0; transform: translateY(calc(-1 * var(--xs-settle-y))); transition-duration: var(--xs-settle-out-ms); }
.xs-d[data-m="in"] { opacity: 0; transform: translateY(var(--xs-settle-y)); transition: none; }
.xs-timebar { position: relative; height: 4px; margin-top: 10px; border-radius: 99px; background: var(--xs-hero-rail); overflow: hidden; }
.xs-timebar > i { position: absolute; inset: 0; border-radius: inherit; background: currentColor; transform-origin: left; transform: scaleX(var(--xs-left, 1)); }
.xs-by { margin-top: 8px; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xs-hero-quiet); }

/* A button: a pill. A press answers by a colour step. A decision control never scales (ruling 12). */
.xs-button { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: var(--xs-button-h); padding: 0 var(--xs-pad); border: 0; border-radius: 99px; background: var(--xf-button); color: var(--xf-button-text); font-size: 1rem; line-height: 1.5rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform var(--xs-press-ms) var(--xs-spring-press), background-color var(--xs-tint-ms); }
.xs-button[data-kind="second"] { background: none; color: var(--xf-text); box-shadow: inset 0 0 0 1px var(--xf-line); }
.xs-button:active { transform: scale(var(--xs-press-scale)); background-color: var(--xf-button-hover); transition-duration: 0ms; }
.xs-button[data-kind="second"]:active { background-color: var(--xf-hover); }
.xs-button[data-decide]:active, .xf-root .xs-button[data-decide]:active { transform: none; }
@media (hover: hover) {
  .xs-button:hover { background-color: var(--xf-button-hover); }
  .xs-button[data-kind="second"]:hover { background-color: var(--xf-hover); }
  .xs-send[aria-disabled="true"]:hover { background-color: var(--xf-hover); }
}
.xs-hint { font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xf-quiet); text-align: center; text-wrap: balance; }
.xs-answers > .xs-hint span { display: block; }

/* The two answers. "Back to the proposal" stands where the agent's reason stood. Where "Reject" and "Approve" stood: words only. */
.xs-answers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
.xs-cell { display: grid; min-width: 0; grid-row: 1; }
.xs-cell:first-child { grid-column: 1; } .xs-cell:nth-child(2) { grid-column: 2; }
#xs-h-reject { grid-row: 2; grid-column: 1; } #xs-h-approve { grid-row: 2; grid-column: 2; }
.xs-answers .xs-button { width: 100%; padding: 0 12px; }
.xs-sample[data-state="last"] .xs-cell, .xs-sample[data-state="last"] .xs-answers > .xs-hint { visibility: hidden; }
.xs-look { display: none; grid-row: 1; grid-column: 1 / -1; min-height: var(--xs-button-h); flex-wrap: wrap; align-items: center; align-content: center; gap: 0 8px; font-size: 1rem; line-height: 1.5rem; font-weight: 500; outline: none; }
.xs-sample[data-state="last"] .xs-look { display: flex; }
.xs-look b { font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xf-quiet); }
.xs-look .xf-fig { line-height: 0; }

/* The swap: the agent's reason and the terms of the last look share one place. Its height never changes. */
.xs-swap { display: grid; }
.xs-swap > * { grid-area: 1 / 1; min-width: 0; }
.xs-why { display: grid; align-self: start; align-content: start; gap: 8px; margin: 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--xf-rule); }
.xs-why h3, .xs-terms h3 { display: flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xf-quiet); }
.xs-why p { margin: 0; }
.xs-why h3 + p + h3 { margin-top: 4px; }
.xs-agent-mark { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 99px; box-shadow: inset 0 0 0 2px currentColor; }
.xs-terms { display: grid; align-self: start; align-content: start; padding: 16px; border-radius: var(--xs-r-tile); background: var(--xf-raised); box-shadow: inset 0 0 0 1px var(--xf-line); }
.xs-terms .xs-button { width: 100%; }
.xs-terms .xs-hint { margin: 8px 0; }
.xs-terms h3 { margin-top: 16px; }
.xs-terms dl, .xs-rows dl { margin: 8px 0 0; }
.xs-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--xf-hair); }
.xs-fact:last-child { padding-bottom: 0; }
.xs-fact dt { flex: none; color: var(--xf-quiet); }
.xs-fact dd { margin: 0; text-align: right; }
.xs-why, .xs-terms { transition: opacity var(--xs-swap-come-ms) var(--xs-ease-come) var(--xs-swap-after-ms), filter var(--xs-swap-come-ms) var(--xs-ease-come) var(--xs-swap-after-ms), visibility 0s linear var(--xs-swap-after-ms); }
.xs-sample:not([data-state="last"]) .xs-terms, .xs-sample[data-state="last"] .xs-swap > .xs-why { opacity: 0; visibility: hidden; filter: blur(var(--xs-swap-blur)); transition: opacity var(--xs-swap-leave-ms) ease-out, filter var(--xs-swap-leave-ms) ease-out, visibility 0s linear var(--xs-swap-leave-ms); }
.xs-send { position: relative; overflow: hidden; }
.xs-send > i { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--xf-text); opacity: 0; transform-origin: left; }
.xs-send[aria-disabled="true"] { background: var(--xf-hover); color: var(--xf-quiet); cursor: default; }
.xs-send[aria-disabled="true"]:active { background: var(--xf-hover); }
.xs-send[aria-disabled="true"] > i { opacity: .45; animation: xs-fill var(--xs-rest) linear both; }
@keyframes xs-fill { from { transform: scaleX(0); } }

/* A decided sample: its rows stand in place of the card and its answers. The page moves 0 px. */
.xs-done { display: none; align-content: start; gap: 16px; }
.xs-sample:is([data-state="approved"], [data-state="rejected"], [data-state="expired"]) .xs-view { display: none; }
.xs-sample:is([data-state="approved"], [data-state="rejected"], [data-state="expired"]) .xs-done { display: grid; }
.xs-rows { display: grid; padding: 20px; border-radius: var(--xs-r-card); background: var(--xf-raised); box-shadow: inset 0 0 0 1px var(--xf-line); outline: none; animation: xs-dim var(--xs-swap-come-ms) var(--xs-ease-come) both; }
.xf-root .xs-rows:focus-visible, .xf-root .xs-look:focus-visible { outline: none; }
.xs-rows .xs-row1 { justify-content: flex-start; }
.xs-rows .xs-name { margin-top: 14px; }
.xs-rows dl { margin-top: 12px; }
.xs-rows [hidden] { display: none; }
.xs-note { margin-top: 12px; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xf-quiet); }
.xs-why-after { animation: xs-dim var(--xs-swap-come-ms) var(--xs-ease-come) both; }
.xs-why-after h3 { font-size: .875rem; }
@keyframes xs-dim { from { opacity: 0; } }
/* The next step: a fade only, 840 ms after the decision. No control moves (ruling 12). */
.xs-next { display: grid; gap: 12px; padding-top: 8px; opacity: 0; visibility: hidden; transition: opacity var(--xs-come-ms) var(--xs-ease-come), visibility 0s linear var(--xs-come-ms); }
.xs-next[data-on] { opacity: 1; visibility: visible; transition: opacity var(--xs-come-ms) var(--xs-ease-come), visibility 0s; }
.xs-next h3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.xs-next p { color: var(--xf-quiet); }
.xs-next .xs-button { width: 100%; margin-top: 4px; }
.xs-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.xs-textbtn { display: inline-flex; align-items: center; justify-self: center; height: var(--xs-tap); padding: 0 12px; border: 0; border-radius: 99px; background: none; color: var(--xf-text); font-size: 1rem; line-height: 1.5rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--xf-rule); text-underline-offset: 3px; cursor: pointer; transition: text-decoration-color var(--xs-tint-ms); }
.xs-textbtn:hover { text-decoration-color: currentColor; }

.xs-noscript { padding: 16px; text-align: center; }
/* The four read-only examples (no script) */
.xs-example { display: grid; gap: 16px; max-width: 440px; padding-top: 40px; }
.xs-ro { font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xf-quiet); }
.xs-ro-title { font: 600 1.5rem/1.875rem var(--xf-font); letter-spacing: -.015em; text-wrap: balance; }
.xs-ro-part { display: grid; gap: 16px; }
.xs-ro-look { display: flex; }
.xs-ro-hint { color: var(--xf-quiet); text-wrap: pretty; }
.xs-example .xs-rows { animation: none; }
.xs-example nav { justify-content: flex-start; margin-left: -12px; }
.xs-example nav a[aria-current] { text-decoration-color: currentColor; font-weight: 600; }
.xs-noscript-links { display: grid; gap: 8px; max-width: 440px; margin: 12px auto 0; }

/* The three promises (home) */
.xs-promises { display: grid; }
.xs-promise { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--xf-line); }
.xs-promise:last-child { border-bottom: 1px solid var(--xf-line); }
.xs-promise h3, .xs-act h3, .xs-place h3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.xs-promise p, .xs-act > p, .xs-place p { color: var(--xf-quiet); }

/* Under the first screen: the road, the three places, help */
.xs-sec { padding-top: 56px; scroll-margin-top: 16px; }
.xs-sec > h2 { font: 600 1.5rem/1.875rem var(--xf-font); letter-spacing: -.015em; text-wrap: balance; }
.xs-sec > .xs-note { margin-top: 4px; color: var(--xf-quiet); }
.xs-three { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.xs-act { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; gap: 2px 0; padding: 16px 0 20px; border-top: 1px solid var(--xf-line); outline: none; }
.xs-act > b { grid-row: 1 / span 3; font: 500 1.25rem/1.5rem var(--xf-mono); color: var(--xf-quiet); font-variant-numeric: tabular-nums; }
.xs-act h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.xs-act > p, .xs-act > .xs-button, .xs-act > details, .xs-act > .xs-textbtn, .xs-act > div { grid-column: 2; }
.xs-act > .xs-button { margin-top: 12px; }
.xs-act .xs-state { color: var(--xf-text); }
.xs-act[data-here] { animation: xs-mark var(--xs-mark-ms) ease-out; }
@keyframes xs-mark { from { background-color: var(--xf-hover); } }
/* "I have no agent yet" (J2-7): J3's words, then the three plans, in place under step 2. */
.xs-act > .xs-plans { display: grid; gap: 8px; margin-top: 4px; }
.xs-plans[hidden], .xs-plans3[hidden] { display: none; }
.xs-plans > p { color: var(--xf-quiet); }
.xs-plans .xs-textbtn, .xs-act > .xs-textbtn { justify-self: start; margin-left: -12px; }
.xs-plans3 { display: grid; gap: 8px; }
.xs-plans3 ol { display: grid; gap: 8px; }
.xs-plans3 li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--xs-r-inner); background: var(--xf-raised); box-shadow: inset 0 0 0 1px var(--xf-line); }
.xs-plans3 li span { color: var(--xf-quiet); }
.xs-plans3 code, .xs-who code { font: .875rem/1.25rem var(--xf-mono); }

/* A phone (under 640 px): step 2 is on a computer (J2-6). */
.xs-away { display: none; gap: 4px; margin-top: 8px; padding: 12px 12px 4px; border-radius: var(--xs-r-inner); background: var(--xf-raised); box-shadow: inset 0 0 0 1px var(--xf-line); }
.xs-away strong { font-weight: 500; }
.xs-away code { font: 500 .875rem/1.25rem var(--xf-mono); }
.xs-away .xs-textbtn { justify-self: start; margin-left: -12px; }
.xs-away-status:empty { display: none; }
.xs-away-status { display: grid; gap: 4px; padding-bottom: 8px; }
.xs-fb { width: 100%; height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--xf-hover); color: var(--xf-text); font: .875rem var(--xf-mono); user-select: all; }
@media (max-width: 39.99rem) { .xs-away { display: grid; } .xs-install .xf-narrow { display: none; } }
.xs-install { margin-top: 12px; }
.xs-install > summary { min-height: var(--xs-tap); }
.xs-install[open] > summary { margin-bottom: 12px; }
.xs-install > :not(summary) { margin-top: 16px; }
/* Side by side the three stand as tall as the tallest; each one's words start at its top. */
.xs-place { display: grid; align-content: start; gap: 2px; padding: 16px 0 20px; border-top: 1px solid var(--xf-line); }
.xs-who { font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xf-quiet); }
.xs-place .xs-big2 { margin: 4px 0; color: var(--xf-text); font: 600 1.25rem/1.5rem var(--xf-font); letter-spacing: -.015em; text-wrap: balance; }
.xs-after { margin-top: 8px; margin-left: -12px; }
.xs-end { margin-top: 56px; padding: 24px 0 0; border-top: 1px solid var(--xf-line); font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--xf-quiet); }

/* 1,040 px and wider: the sample stands at the right of the sentence. */
@media (min-width: 65rem) {
  .xf-root:not([data-rail]) .xs-top { grid-template-columns: 520px minmax(0, 1fr) 440px; grid-template-rows: auto 1fr; grid-template-areas: "say . sample" "promises . sample"; gap: 48px 0; padding-top: 84px; }
  .xf-root:not([data-rail]) .xs-say { grid-area: say; }
  .xf-root:not([data-rail]) .xs-sample, .xf-root:not([data-rail]) .xs-top > noscript { grid-area: sample; }
  .xf-root:not([data-rail]) .xs-promises { grid-area: promises; align-self: start; }
  .xs-sentence { font: 600 2.5rem/2.75rem var(--xf-font); letter-spacing: -.03em; }
  .xs-lead { margin-top: 16px; }
  .xs-sec { padding-top: 88px; }
  .xf-root:not([data-rail]) .xs-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  .xs-end { margin-top: 88px; }
}
/* A signed-in owner's rail: one column of 520 px beside it. */
.xf-root[data-rail] .xf-col:has(> .xs-top), .xf-root[data-rail] .xf-col[data-shape="sample"] { max-width: calc(520px + 2 * var(--xf-pad)); }
@media (min-width: 40rem) and (max-width: 64.99rem) {
  .xf-col:has(> .xs-top), .xf-col[data-shape="sample"] { max-width: calc(520px + 2 * var(--xf-pad)); }
}
/* Beside the rail, once the room left of it holds two columns (1,136 px and wider): the sentence and the
   promises at the left, the sample at the right, the column as wide as the room, not 520 px with a
   hand's width of empty page each side. Between 900 and 1,136 px the one column is 680 px. */
@media (min-width: 56.25rem) and (max-width: 70.99rem) {
  .xf-root[data-rail] .xf-col:has(> .xs-top), .xf-root[data-rail] .xf-col[data-shape="sample"] { max-width: calc(680px + 2 * var(--xf-pad)); }
}
@media (min-width: 71rem) {
  .xf-root[data-rail] .xf-col:has(> .xs-top), .xf-root[data-rail] .xf-col[data-shape="sample"] { max-width: calc(1120px + 2 * var(--xf-pad)); }
  .xf-root[data-rail] .xs-top { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr; grid-template-areas: "say sample" "promises sample"; gap: 40px 48px; }
  .xf-root[data-rail] .xs-say { grid-area: say; }
  .xf-root[data-rail] .xs-sample, .xf-root[data-rail] .xs-top > noscript { grid-area: sample; }
  .xf-root[data-rail] .xs-promises { grid-area: promises; align-self: start; }
}
@media (max-width: 26.87rem) { :root { --xs-pad: 16px; } }
@media (max-width: 22.4rem) { .xs-sentence { font: 600 1.5rem/1.875rem var(--xf-font); letter-spacing: -.015em; } }
@media (max-width: 21.49rem) { .xs-button[data-decide="back"] { white-space: normal; line-height: 1rem; text-align: center; } }
.xs-sample p, .xs-sample dd, .xs-sample h3 { text-wrap: pretty; }
