/* =========================================================================
   enhance.css — product screenshots, the featured section and
   light motion (short fades on scroll, small hover lift). Loaded after each page's site-*.css.
   All motion is switched off for people who ask for reduced motion.
   ========================================================================= */

/* ---------- screenshot in a browser frame ---------- */
.shot { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #0b0d12; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .02) inset; text-decoration: none; isolation: isolate; }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #15171c; border-bottom: 1px solid rgba(255, 255, 255, .06); font: 500 11.5px var(--f-ui); color: var(--muted); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #34363c; }
.shot .bar i:nth-child(1) { background: #ff5f57; } .shot .bar i:nth-child(2) { background: #febc2e; } .shot .bar i:nth-child(3) { background: #28c840; }
.shot .bar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.mockwrap .shot { height: 100%; border-radius: inherit; border: 0; box-shadow: none; }
.mockwrap .shot img { height: calc(100% - 33px); aspect-ratio: auto; }

/* ---------- Featured builds (home) ---------- */
.fb { margin-top: clamp(56px, 8vw, 104px); }
.fb-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(22px, 3vw, 36px); }
.fb-head h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(40px, 6vw, 84px); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; }
.fb-head p { margin: 0; max-width: 46ch; color: var(--soft); font-size: 17px; }
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.fb-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: 22px; background: var(--raise); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .5s; }
.fb-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); }
.fb-body { padding: 0 4px 4px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fb-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 12px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.fb-tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fb-card h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: clamp(28px, 3vw, 38px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.fb-card .fb-lead { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink); }
.fb-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font: 400 15px/1.5 var(--f-ui); color: var(--soft); }
.fb-points li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.fb-points li::before { content: "→"; color: var(--accent); }
.fb-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.fb-note { order: 5; margin: 4px 0 0; font: 400 12.5px/1.5 var(--f-ui); color: var(--muted); }
.fb-cta { order: 6; }
.fb-card.amber { --accent: #f5b83d; }
/* the flagship card spans the row: screenshot left, story right */
.fb-card.fb-flag { --accent: #f2c14e; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); }
.fb-card.fb-flag h3 { font-size: clamp(34px, 4vw, 52px); }
@media (max-width: 900px) { .fb-card.fb-flag { grid-template-columns: 1fr; } }

/* hero cards: FootingBooks in its own colors; Basis calmer, no blinking "live" tag */
.basis-live.fbk { background: #10241f; border-color: #24453b; color: #d8e6df; }
.basis-live.fbk:hover { border-color: #f2c14e; }
.basis-live.fbk .bl-tag { background: #f2c14e; color: #14302a; }
.basis-live.fbk .bl-tag i { background: #14302a; animation: none; }
.basis-live.fbk .bl-txt b { color: #f2c14e; }
.basis-live.fbk .bl-stats { color: #87a59a; }
.basis-live.fbk .bl-go { color: #f2c14e; }
.basis-live:not(.fbk) .bl-tag { background: #2a3442; color: #c9d4e0; }
.basis-live:not(.fbk) .bl-tag i { background: #19e68c; animation: none; }
@media (max-width: 900px) { .fb-grid { grid-template-columns: 1fr; } }

/* case-study hero screenshot */
.cs-hero { margin: clamp(28px, 4vw, 48px) 0 0; }
.cs-hero figcaption { margin-top: 10px; font: 400 13px var(--f-ui); color: var(--muted); }

/* ---------- motion ---------- */
/* Elements tagged by enhance.js fade and rise in as they scroll into view, in a light stagger. */
.js .ax-reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: calc(var(--rd, 0) * 40ms); }
.js .ax-reveal.ax-in { opacity: 1; transform: none; }
.fcard { transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .5s; }
.fcard:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .9); }
.cs-card { transition: border-color .4s, box-shadow .5s; }
.cs-card:hover { box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); }
.btn { transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .3s, color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-1px); }
.nums b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .js .ax-reveal { opacity: 1; transform: none; transition: none; }
  .fcard, .fb-card, .btn { transition: none; }
  .fcard:hover, .fb-card:hover, .btn:hover { transform: none; }
}

/* Leftover Planner: its own green, screenshot on the right */
.fb-card.fb-lp { --accent: #34d399; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
@media (max-width: 900px) { .fb-card.fb-lp { grid-template-columns: 1fr; } .fb-card.fb-lp .shot { order: -1; } }
.basis-live.lpk { background: #062a20; border-color: #12503d; color: #d5ece3; }
.basis-live.lpk:hover { border-color: #34d399; }
.basis-live.lpk .bl-tag { background: #059669; color: #fff; }
.basis-live.lpk .bl-tag i { background: #fff; animation: none; }
.basis-live.lpk .bl-txt b, .basis-live.lpk .bl-go { color: #34d399; }
.basis-live.lpk .bl-stats { color: #7fb8a3; }

/* "Try one now": four doors straight into working products (under the intro) */
.tryrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.tryrow-k { grid-column: 1 / -1; margin: 0 0 2px; font: 600 12px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tryrow a { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--raise); color: var(--ink); text-decoration: none; transition: border-color .3s, transform .3s; }
.tryrow a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.tryrow small { font: 600 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tryrow b { font: 600 17px/1.3 var(--f-ui); }
.tryrow span { margin-top: auto; padding-top: 6px; font: 500 14px var(--f-ui); color: var(--accent); }
@media (max-width: 900px) { .tryrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tryrow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tryrow a { transition: none; } .tryrow a:hover { transform: none; } }

/* ---------- medium screens: the full link row doesn't fit between 761 and 1119px, so use the
   menu button there too (same rules the phone layout uses, in every page's site-*.css) ---------- */
@media (min-width:761px) and (max-width:1119px){
  .nav .links{display:none!important}
  .navr{justify-content:flex-end;width:auto!important;margin-left:auto}
  .menubtn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;padding:0}
  .menubtn svg{width:18px;height:18px}
  .mpanel{display:block;position:fixed;inset:0;z-index:120;background:var(--bg);padding:calc(env(safe-area-inset-top,0px) + 14px) 20px 28px;overflow-y:auto;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s,transform .25s,visibility .25s}
  .mpanel.open{opacity:1;visibility:visible;transform:none}
  .mp-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}
  .mp-top .word{display:block}
  .mp-x{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:18px;cursor:pointer}
  .mp-links{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
  .mp-links a{display:flex;justify-content:space-between;align-items:center;padding:16px 2px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);font-family:var(--f-display);font-weight:800;font-stretch:75%;text-transform:uppercase;font-size:34px;line-height:1}
  .mp-links a::after{content:"\2192";font-family:var(--f-ui);font-weight:400;font-size:20px;color:var(--muted)}
  .mp-links a[aria-current="page"]{color:var(--accent)}
  .mp-cta{display:flex;justify-content:center;margin-top:24px;padding:15px;border-radius:999px;background:var(--ink);color:var(--bg)!important;text-decoration:none;font:600 16px var(--f-ui)}
  .mp-soc{display:flex;gap:18px;justify-content:center;margin-top:20px;font:500 14px var(--f-ui)}
  .mp-soc a{color:var(--muted);text-decoration:none}
}
/* hero cards: let the small stats wrap instead of running into the "Open …" link */
.basis-live .bl-stats{flex-wrap:wrap;row-gap:4px;min-width:0}

/* ==== fx: start ==== */
/* Pointer and scroll effects added November 2026: lit card borders, screenshot tilt, button sheen,
   a travelling border light, and a soft pointer glow. Everything here is decoration only: it is skipped
   for people who ask for reduced motion, and removing this block changes nothing else. */
:root { --fx-c: color-mix(in srgb, var(--accent, #a9c9ff) 90%, transparent); --fx-orbit: var(--accent, #f2c14e); --fx-sheen: rgba(120, 160, 255, .38); --fx-aura: rgba(150, 185, 255, .075); --fx-glare: rgba(255, 255, 255, .10); }
/* Pointer-lit card borders: the edge nearest the pointer lights up, on the card under it and its neighbours. */
.fx-rel { position: relative; }
.fx-glow::after { content: ""; position: absolute; inset: calc(-1 * var(--fx-bw, 1px)); border-radius: inherit; padding: var(--fx-ring, 1px); pointer-events: none; z-index: 1;
  background: radial-gradient(var(--fx-rad, 280px) circle at var(--fx-x, -999px) var(--fx-y, -999px), var(--fx-c), transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s ease; }
.fx-glow.fx-glow-in::after { inset: 0; }
.fx-glow.fx-near::after { opacity: 1; }

/* Screenshots lean a few degrees toward the pointer, with a soft highlight. */
.fx-tilt { transform: perspective(1400px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fx-tilt.fx-live { transition-duration: .14s; transition-timing-function: linear; }
.fx-glare::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(520px circle at var(--fx-gx, 50%) var(--fx-gy, 50%), var(--fx-glare, rgba(255, 255, 255, .13)), transparent 60%);
  opacity: 0; transition: opacity .4s ease; }
.fx-glare.fx-live::after { opacity: 1; }

/* A band of light crosses the main buttons on hover, and once when they first come into view. */
.fx-sheen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, var(--fx-sheen, rgba(255, 255, 255, .4)) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 165% 0; }
.fx-sheen:hover::after, .fx-sheen.fx-go::after { animation: fx-sheen .9s cubic-bezier(.3, .6, .2, 1) 1; }
@keyframes fx-sheen { from { background-position: 165% 0; } to { background-position: -65% 0; } }

/* One slow light travels round the border of the flagship block (wide screens only). */
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (min-width: 900px) {
  .fx-orbit::before { content: ""; position: absolute; inset: calc(-1 * var(--fx-bw, 1px)); border-radius: inherit; padding: var(--fx-ring, 1px); pointer-events: none; z-index: 1;
    background: conic-gradient(from var(--fx-a), transparent 0 62%, var(--fx-orbit) 80%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: fx-orbit 9s linear infinite; animation-play-state: paused; opacity: 0; transition: opacity .8s ease; }
  .fx-orbit.fx-orbit-in::before { inset: 0; }
  .fx-orbit.fx-on::before { animation-play-state: running; opacity: 1; }
}
@keyframes fx-orbit { to { --fx-a: 360deg; } }

/* Screenshots ease from slightly zoomed to their real size as they scroll into view. */
@supports (animation-timeline: view()) {
  .fx-settle { animation: fx-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; transform-origin: 50% 0; }
}
@keyframes fx-settle { from { transform: scale(1.07); } to { transform: scale(1); } }

/* Blocks below the first screen fade and rise in as they are reached. */
.fx-r { opacity: 0; transform: translateY(18px); transition: none !important; }
.fx-r.fx-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--fx-d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--fx-d, 0ms) !important; }

/* A soft light follows the pointer across dark pages. */
.fx-aura { position: fixed; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(closest-side, var(--fx-aura), transparent 100%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s ease; will-change: transform; }
.fx-aura.fx-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fx-glow::after, .fx-glare::after, .fx-sheen::after, .fx-orbit::before, .fx-aura { display: none !important; }
  .fx-tilt, .fx-settle { transform: none !important; animation: none !important; }
  .fx-r { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
  .fx-glow::after, .fx-glare::after, .fx-sheen::after, .fx-orbit::before, .fx-aura { display: none !important; }
  .fx-tilt, .fx-settle, .fx-r { opacity: 1 !important; transform: none !important; animation: none !important; }
}
/* ==== fx: end ==== */
