/* builtlit phone app chrome, ported from built.lt (PhoneBar.tsx + FirstVersionFlow.tsx and their globals.css rules,
   2026-10-22 to 10-24). Two parts, both drawn by /a/fv.js:
   - .fvbar: the floating bar at the bottom of a phone (Home, Work, + Free, Ask, Check). Phones only: at 768px and up
     the site is exactly what it was.
   - .fv: the free-first-version request as three full-screen steps (trade, website, name and phone), any screen size.
   Self-contained on purpose: its own colour names (--fv-*), font stack and colour-scheme, so it looks the same on the
   hand-made home page (whose --ink is the light text of the dark act), the generated pages and the older checker and
   privacy pages (grader.css + chrome.css). Buttons: the pastel gradient with dark text, as on built.lt. */
.fvbar, .fv, .fv-chips {
  --fv-ink: #121212; --fv-dim: #6b6b66; --fv-soft: #f5f5f7; --fv-blue: #0071e3; --fv-blue-ink: #0058b9; --fv-blue-soft: #eaf3fe;
  --fv-ease: cubic-bezier(.22, .8, .2, 1);
  --fv-pastel: linear-gradient(110deg, #f7bdd6 0%, #fbd3ae 25%, #d8c7fb 52%, #b8dcf6 76%, #c3eed4 100%);
  --fv-font: "Familjen Grotesk", "FG Fallback", "Helvetica Neue", Arial, sans-serif;
}
html.fv-lock { overflow: hidden !important; }

/* ---------- the bar (phones) ---------- */
.fvbar { display: none; }
@media (max-width: 767px) {
  .fvbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 4px));
    display: flex; align-items: flex-end; box-sizing: border-box; height: 64px; margin: 0; padding: 0 4px; border-radius: 26px;
    background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 14px 34px -10px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .7);
    font-family: var(--fv-font); color-scheme: light; }
  .fvb-i, .fvb-main { flex: 1 1 0; min-width: 0; height: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0;
    text-decoration: none; font-size: 11.5px; line-height: 1.2; letter-spacing: 0; text-transform: none; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
  .fvb-i { justify-content: center; position: relative; color: var(--fv-dim); font-weight: 500; transition: transform .16s var(--fv-ease), color .2s; }
  .fvb-i svg { flex: none; width: 21px; height: 21px; }
  .fvb-i[aria-current] { color: var(--fv-ink); font-weight: 600; }
  .fvb-i[aria-current] svg { stroke-width: 2; }
  .fvb-i[aria-current]::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--fv-blue); }
  .fvb-i:active { transform: scale(.94); }
  button.fvb-i { padding: 0; border: 0; background: none; font-family: inherit; font-size: 11.5px; cursor: pointer; }
  .fvb-main { justify-content: flex-end; padding-bottom: 9px; color: #121214; font-weight: 600; }
  .fvb-dot { flex: none; width: 56px; height: 56px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--fv-pastel); background-size: 160% 100%; background-position: 0% 50%; color: #121214;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 22px -10px rgba(120, 90, 160, .6);
    transition: transform .16s var(--fv-ease), filter .2s; }
  .fvb-dot svg { width: 24px; height: 24px; }
  .fvb-main:active .fvb-dot { transform: scale(.92); filter: brightness(.96); }

  /* Room under the page for the bar, and the things that used to sit where it is now. */
  html.has-pbar body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  html.has-pbar .menu { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }   /* the menu's own button can scroll above the bar */
  /* The chat opens from the bar's Ask tab instead; its "Ask us" bubble would sit on the bar. */
  html.has-pbar .blc-root .blc-launch { display: none !important; }
}

/* ---------- the flow: one question per screen, big tap targets, X to leave ---------- */
.fv { position: fixed; inset: 0; z-index: 9995; display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0;
  background: #fff; color: var(--fv-ink); color-scheme: light; text-align: left;
  font: 400 17px/1.55 var(--fv-font); letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  animation: fv-in .38s var(--fv-ease) both; }
.fv *, .fv *::before, .fv *::after { box-sizing: border-box; }
.fv.from { animation: fv-circle .5s var(--fv-ease) both; }
.fv.out { animation: fv-out .24s ease-in both; pointer-events: none; }
@keyframes fv-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes fv-circle { from { clip-path: circle(0 at var(--fx, 50%) var(--fy, 100%)); } to { clip-path: circle(150vmax at var(--fx, 50%) var(--fy, 100%)); } }
@keyframes fv-out { to { opacity: 0; transform: translateY(18px); } }
.fv :focus-visible { outline: 2px solid var(--fv-blue); outline-offset: 3px; }
.fv-top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 2px; }
.fv-ic { width: 44px; height: 44px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fv-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fv-ic:active { background: var(--fv-soft); }
.fv-of { font-size: 14px; font-weight: 500; color: var(--fv-dim); }
.fv-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 600px; width: 100%; margin: 0 auto; padding: 4px 20px 0; }
.fv-prog i { display: block; height: 3px; border-radius: 3px; background: #e7e7e4; transition: background .35s var(--fv-ease); }
.fv-prog i.on { background: var(--fv-blue); }
.fv-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 26px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
.fv-screen { max-width: 560px; margin: 0 auto; animation: fv-step .34s var(--fv-ease) both; }
.fv-screen.bwd { animation-name: fv-step-b; }
@keyframes fv-step { from { opacity: 0; transform: translateX(22px); } }
@keyframes fv-step-b { from { opacity: 0; transform: translateX(-22px); } }
.fv-kick { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--fv-dim); }
.fv h2 { margin: 0; max-width: none; color: var(--fv-ink); font-family: inherit; font-size: clamp(2.05rem, 9.4vw, 2.7rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; text-transform: none; outline: none; }
.fv h2:focus, .fv h2:focus-visible { outline: none; }   /* focused by script so a screen reader hears the question; no ring */
.fv-sub { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--fv-dim); }

/* answer tiles; the trade tiles carry built.lt's colour icon tile on the left */
.fv-tiles { display: grid; gap: 10px; margin-top: 24px; }
.fv-tile { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; margin: 0; padding: 14px 18px;
  border: 0; border-radius: 20px; background: var(--fv-soft); color: var(--fv-ink); text-align: left; font: inherit; line-height: 1.3; cursor: pointer;
  transition: transform .16s var(--fv-ease), background .2s; -webkit-tap-highlight-color: transparent; }
.fv-tt { flex: 1; min-width: 0; }
.fv-tile b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.fv-tile small { display: block; margin-top: 2px; font-size: 14px; color: var(--fv-dim); }
.fv-arr { flex: none; color: var(--fv-blue); transition: transform .2s var(--fv-ease); }
.fv-ti { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--tb); color: var(--tc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
/* the new home's v3.css carries built.lt's own .fv-tile svg rules (blue, slides on hover): keep the trade icon in its colour */
.fv .fv-tile .fv-ti svg { color: inherit; transform: none; transition: none; }
.fv .fv-tile .fv-arr svg { transform: none; }
.fv-tile:active { transform: scale(.98); background: #ebebee; }
.fv-tile[aria-pressed="true"] { background: var(--fv-blue-soft); box-shadow: inset 0 0 0 1.5px var(--fv-blue); }
@media (hover: hover) and (pointer: fine) { .fv-tile:hover { background: #ebebee; } .fv-tile:hover .fv-arr { transform: translateX(3px); } }

/* name and phone */
.fv-form { display: grid; margin: 0; }
.fv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fv-f { display: grid; gap: 6px; margin: 16px 0 0; }
.fv-form .fv-hp + .fv-f { margin-top: 24px; }
.fv-f > span { font-size: 15px; font-weight: 500; color: var(--fv-ink); }
.fv-f em, .fv-when legend em { font-style: normal; font-weight: 400; color: var(--fv-dim); }
.fv-f input { width: 100%; min-height: 54px; margin: 0; padding: 0 16px; border: 0; border-radius: 16px; background: var(--fv-soft); color: var(--fv-ink);
  font: inherit; font-size: 17px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.fv-f input::placeholder { color: #9a9a95; opacity: 1; }
.fv-f input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--fv-blue); }
.fv-f input[aria-invalid] { box-shadow: inset 0 0 0 1.5px #b3261e; }
.fv-when { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.fv-when legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--fv-ink); }
.fv-when > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--fv-soft); }
.fv-when button { min-width: 0; min-height: 42px; margin: 0; padding: 0 2px; border: 0; border-radius: 10px; background: none; color: var(--fv-ink); font: inherit; font-size: 14px; line-height: 1.2;
  cursor: pointer; transition: background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.fv-when button[aria-pressed="true"] { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.fv-err { margin: 16px 0 0; color: #b3261e; font-size: 15px; line-height: 1.45; }
.fv-err a { color: inherit; font-weight: 600; }
/* The send button stays in reach while the fields scroll under it. */
.fv-send { position: sticky; bottom: calc(-28px - env(safe-area-inset-bottom, 0px)); margin: 22px -20px 0; padding: 18px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, #fff 78%, rgba(255, 255, 255, 0)); }
.fv-fine { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--fv-dim); text-align: center; }
.fv-fine a { color: inherit; }

/* buttons: the pastel gradient with dark text (built.lt, 2026-10-24) */
.fv-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin: 0; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--fv-pastel); background-size: 160% 100%; background-position: 0% 50%; color: #121214;
  font: 600 17px/1.2 var(--fv-font); letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 24px -14px rgba(120, 90, 160, .6);
  transition: background-position .6s ease, transform .25s var(--fv-ease), box-shadow .25s; }
.fv-btn:hover { color: #121214; background-position: 100% 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(0, 0, 0, .08), 0 16px 30px -14px rgba(120, 90, 160, .65); }
.fv-btn:active { transform: scale(.98); }
.fv-btn:disabled { opacity: .55; cursor: default; }
.fv-btn.soft { background: #fff; color: var(--fv-ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fv-btn.soft:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }

/* sent */
.fv-ok { width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--fv-blue); color: #fff; animation: fv-pop .5s var(--fv-ease) .05s both; }
@keyframes fv-pop { from { opacity: 0; transform: scale(.4); } }
.fv-next { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.fv-next li { display: flex; gap: 14px; align-items: center; margin: 0; padding: 0; }
.fv-next li::before, .fv-next li::marker { content: none; }
.fv-next .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fv-blue-soft); color: var(--fv-blue-ink); font-size: 14px; font-weight: 600; }
.fv-next b { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--fv-ink); }
.fv-note { margin: 18px 0 0; font-size: 14px; color: var(--fv-dim); }
.fv-actions { display: grid; gap: 10px; margin-top: 30px; }

/* Phones: the same scale as built.lt's phone pass ("less text on phones") */
@media (max-width: 767px) {
  .fv h2 { font-size: 1.85rem; }
  .fv-body { padding-top: 22px; }
  .fv-tiles { margin-top: 20px; gap: 8px; }
  .fv-tile { min-height: 62px; padding: 12px 16px; border-radius: 18px; gap: 12px; }
  .fv-ti { width: 40px; height: 40px; border-radius: 12px; }
  .fv-tile b { font-size: 16px; }
  .fv-tile small { font-size: 13px; }
  .fv-f > span, .fv-when legend { font-size: 14px; }
  .fv-f input { min-height: 50px; }
  .fv-btn { min-height: 50px; font-size: 16px; }
}

/* ---------- optional trade chips for a hero: <div data-fv-chips></div>, filled by fv.js (built.lt Hero.tsx) ---------- */
.fv-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 14px; font-family: var(--fv-font); }
.fv-chip { display: grid; justify-items: center; gap: 7px; min-width: 0; min-height: 60px; margin: 0; padding: 6px 2px; border: 0; border-radius: 14px; background: none;
  color: var(--fv-ink); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: fv-chip-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.25s + var(--i, 0) * 70ms); }
.fv-chip-tile { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--tb); color: var(--tc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04), 0 8px 18px -12px var(--tc); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
.fv-chip-tile svg { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.fv-chip:hover .fv-chip-tile, .fv-chip:focus-visible .fv-chip-tile { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04), 0 14px 22px -12px var(--tc); }
.fv-chip:hover .fv-chip-tile svg { transform: rotate(-12deg) scale(1.08); }
.fv-chip:active .fv-chip-tile { transform: scale(.94); }
@keyframes fv-chip-pop { from { opacity: 0; transform: translateY(10px) scale(.7); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
  .fv-chips { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
  .fv-chip { min-width: 92px; font-size: 14px; }
  .fv-chip-tile { width: 56px; height: 56px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .fv, .fv.from, .fv.out, .fv-screen, .fv-ok, .fv-chip { animation: none; }
  .fv-tile, .fv-arr, .fv-btn, .fv-prog i, .fvb-i, .fvb-dot, .fv-chip-tile, .fv-chip-tile svg { transition: none; }
}
