/* ═══════════════════════════════════════════════════════════════════
   Good plans. So much built in. (#all-features)
   2026-10-29, Finale builder. Replaces the pearl pools and the chip wall
   (Mark: no glows; a wall of chips nobody reads). Six families as big
   colour tiles, each with a 3D-looking object (the app's Explore doors
   are emoji objects on colour tiles) and a live line that runs through
   its features. Tap a tile: its colour floods out over the grid and
   every feature lands as a sticker; dark stickers come with Pro.
   Uses the fn- kit in finale.css. Motion: feature-field.js.
   No JS: six cards with their full lists. Reduced motion: no ticker,
   panels open and close instantly.
   ═══════════════════════════════════════════════════════════════════ */

.fn-ff-stage { --fn-c: #ffffff; padding: clamp(60px, 9vh, 108px) clamp(20px, 5vw, 88px) clamp(36px, 6vh, 72px); }
.fn-ff-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.fn-ff-title { max-width: 12em; }
.fn-ff .fn-scr path { stroke: #ffd23f; }
.fn-ff-key { display: flex; align-items: center; gap: 12px; max-width: 470px; color: rgba(17, 18, 20, .78); font: 600 16px/1.45 'Inter', sans-serif; }
.fn-ff-key a { color: #111214; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fn-ff-key a:focus-visible { outline: 3px solid #111214; outline-offset: 3px; border-radius: 4px; }
.fn-ff-key > .fn-pro { flex: none; }

/* The "Pro" mark: the app's gold */
.fn-pro { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; background: #fac75c; color: #1a1306; font: 800 13px/1 'Inter', sans-serif; letter-spacing: 0; }

/* ── The grid of families ───────────────────────────────────────── */
.fn-ff-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 20px); margin-top: clamp(30px, 4.5vh, 52px); }
.fn-fam { position: relative; display: flex; flex-direction: column; border-radius: 32px; background: var(--fn-c); }
.fn-fam-h { margin: 0; font: inherit; }

/* The tile */
.fn-tile {
  position: relative; isolation: isolate; display: grid; width: 100%; height: 100%;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto;
  grid-template-areas: "obj plus" "name name" "tick tick";
  min-height: clamp(236px, 28vh, 300px); padding: 24px 24px 22px 26px;
  border: 0; border-radius: 32px; background: var(--fn-c); color: #111214; text-align: left;
  font-family: 'Inter', sans-serif; cursor: default; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.fn-ff.fn-js .fn-tile { cursor: pointer; }
.fn-ff.fn-js .fn-tile:active { transform: scale(.975); }
.fn-tile:focus-visible { outline: 3px solid #111214; outline-offset: 4px; }

/* The object: an emoji drawn big, lit from above, standing on its shadow */
.fn-obj3d { grid-area: obj; position: relative; align-self: start; justify-self: start; display: grid; place-items: center; width: 108px; height: 108px; }
.fn-obj3d::after { content: ""; position: absolute; z-index: -1; left: 18%; right: 18%; bottom: 2px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 18, 20, .3), rgba(17, 18, 20, 0)); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .5s; }
.fn-obj3d i { display: block; font-style: normal; font-size: 78px; line-height: 1; filter: drop-shadow(0 10px 10px rgba(17, 18, 20, .16)); transform-origin: 50% 85%; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.fn-on .fn-ff.fn-js .fn-obj3d i, .fn-ff.fn-js.fn-on .fn-obj3d i { animation: fn-kf-bob 3.6s ease-in-out var(--fn-d, 0s) infinite alternate; }
@keyframes fn-kf-bob { from { translate: 0 -3px; rotate: -3deg; } to { translate: 0 5px; rotate: 3deg; } }
@media (hover: hover) {
  .fn-ff.fn-js .fn-tile:hover .fn-obj3d i { transform: translateY(-12px) rotate(-9deg) scale(1.1); }
  .fn-ff.fn-js .fn-tile:hover .fn-obj3d::after { transform: scale(.72); opacity: .6; }
  .fn-ff.fn-js .fn-tile:hover .fn-plus { transform: rotate(90deg) scale(1.08); }
}

.fn-tile-name { grid-area: name; display: block; margin-top: 18px; font: 800 clamp(28px, 2.6vw, 48px)/1.02 'Inter', sans-serif; letter-spacing: -.05em; text-wrap: balance; }
.fn-tile-n { grid-area: plus; align-self: end; justify-self: end; display: none; }
.fn-plus { grid-area: plus; align-self: start; display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #111214; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.fn-plus::before, .fn-plus::after { content: ""; grid-area: 1 / 1; width: 16px; height: 2.6px; border-radius: 2px; background: #fff; }
.fn-plus::after { transform: rotate(90deg); }
.fn-ff.fn-js .fn-plus { display: grid; }

/* The live line: one feature at a time, rising through a mask */
.fn-tick { grid-area: tick; position: relative; display: none; height: 30px; margin-top: 12px; overflow: hidden; }
.fn-ff.fn-js .fn-tick { display: block; }
.fn-tick > span { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; height: 30px; color: rgba(17, 18, 20, .82); font: 700 17px/1 'Inter', sans-serif; letter-spacing: -.015em; white-space: nowrap; }
.fn-tick > span b { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 9px; background: rgba(17, 18, 20, .1); color: #111214; font: 800 13px/1 'Inter', sans-serif; }
.fn-tick > span i { font-style: normal; font-size: 19px; }
.fn-tick > span em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.fn-tick .fn-pro { height: 21px; padding: 0 7px; font-size: 12px; border-radius: 7px; }

/* ── The panel: the family's colour floods out, its features land ── */
.fn-panel { padding: 0 22px 26px; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fn-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 11px 13px;
  border-radius: 20px; background: #fff; color: #111214;
  font: 800 16px/1.1 'Inter', sans-serif; letter-spacing: -.02em;
  box-shadow: 0 16px 30px -20px rgba(17, 18, 20, .55);
}
.fn-chip > i { font-style: normal; font-size: 1.22em; line-height: 1; }
.fn-chip.fn-paid { background: #111214; color: #fff; }
.fn-chip .fn-pro { margin-left: 2px; height: 22px; padding: 0 8px; font-size: 12px; border-radius: 7px; }

/* JS: the panel lies over the whole grid, closed until a tile opens it. */
.fn-ff.fn-js .fn-fam { display: contents; }
.fn-ff.fn-js .fn-panel {
  position: absolute; inset: 0; z-index: 4; display: grid; visibility: hidden;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-rows: auto 1fr auto; column-gap: clamp(24px, 4vw, 72px);
  padding: clamp(28px, 3.4vw, 52px) clamp(28px, 3.6vw, 56px);
  border-radius: 32px; background: var(--fn-c); overflow: hidden; isolation: isolate;
  clip-path: inset(0 round 32px);
}
.fn-ff.fn-js .fn-panel.fn-open { visibility: visible; }
.fn-panel-ghost { position: absolute; z-index: -1; left: -.03em; bottom: -.2em; color: rgba(255, 255, 255, .3); font: 800 clamp(150px, 17vw, 330px)/1 'Inter', sans-serif; letter-spacing: -.065em; white-space: nowrap; pointer-events: none; }
.fn-panel-head { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.fn-panel-obj { display: block; font-size: clamp(84px, 8vw, 132px); line-height: 1; filter: drop-shadow(0 18px 18px rgba(17, 18, 20, .2)); transform-origin: 50% 85%; }
.fn-panel-name { margin-top: 18px !important; font: 800 clamp(44px, 4.6vw, 86px)/1.02 'Inter', sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.fn-panel-n { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px !important; color: rgba(17, 18, 20, .8); font: 700 17px/1.3 'Inter', sans-serif; }
.fn-panel-n b { display: inline-grid; place-items: center; min-width: 38px; height: 34px; padding: 0 10px; border-radius: 12px; background: #111214; color: #fff; font: 800 17px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
.fn-ff.fn-js .fn-panel .fn-chips { grid-column: 2; grid-row: 1 / 3; align-self: center; align-content: center; gap: 14px 12px; }
.fn-ff.fn-js .fn-panel .fn-chip { rotate: var(--fn-r, 0deg); padding: 14px 20px 14px 15px; border-radius: 22px; font-size: clamp(16px, 1.25vw, 20px); }
.fn-panel-nav { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.fn-panel-nav button, .fn-panel-x {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: #111214; color: #fff; cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.fn-panel-nav button:hover, .fn-panel-x:hover { transform: scale(1.08); }
.fn-panel-nav button:active, .fn-panel-x:active { transform: scale(.92); }
.fn-panel-nav svg, .fn-panel-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fn-panel-nav span { margin-left: 6px; color: rgba(17, 18, 20, .74); font: 700 15px/1.2 'Inter', sans-serif; }
.fn-panel-x { position: absolute; z-index: 2; top: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); }
.fn-panel button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ── Tablets ─────────────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .fn-ff-stage { padding: 44px 22px 30px; }
  .fn-ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fn-ff.fn-js .fn-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 30px 26px 24px; }
  .fn-panel-head { grid-row: 1; }
  .fn-ff.fn-js .fn-panel .fn-chips { grid-column: 1; grid-row: 2; align-content: start; margin-top: 24px; }
  .fn-panel-name { font-size: clamp(38px, 6vw, 56px); }
  .fn-panel-obj { font-size: 76px; }
}

/* ── Phones ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .fn-ff-stage { padding: 30px 14px 18px; }
  .fn-ff-head { padding: 0 4px; gap: 16px; }
  .fn-ff-key { font-size: 14.5px; gap: 10px; }
  .fn-ff-grid { gap: 10px; margin-top: 24px; }
  .fn-fam, .fn-tile { border-radius: 26px; }
  .fn-tile { min-height: 178px; padding: 16px 14px 16px 16px; grid-template-rows: 1fr auto auto; }
  .fn-obj3d { width: 68px; height: 68px; }
  .fn-obj3d i { font-size: 50px; }
  .fn-obj3d::after { height: 10px; }
  .fn-plus { width: 34px; height: 34px; }
  .fn-plus::before, .fn-plus::after { width: 13px; height: 2.4px; }
  .fn-tile-name { margin-top: 12px; font-size: clamp(20px, 5.6vw, 24px); letter-spacing: -.045em; }
  .fn-ff.fn-js .fn-tick { display: none; }
  .fn-ff.fn-js .fn-tile-n { display: block; grid-area: tick; justify-self: start; margin-top: 6px; color: rgba(17, 18, 20, .72); font: 700 14px/1.2 'Inter', sans-serif; }
  .fn-ff.fn-js .fn-panel { padding: 22px 18px 18px; border-radius: 26px; clip-path: inset(0 round 26px); }
  .fn-panel-obj { font-size: 54px; }
  .fn-panel-name { margin-top: 10px !important; font-size: clamp(32px, 9.4vw, 42px); }
  .fn-panel-n { margin-top: 10px !important; font-size: 15px; }
  .fn-panel-n b { min-width: 32px; height: 28px; font-size: 15px; border-radius: 10px; }
  .fn-ff.fn-js .fn-panel .fn-chips { gap: 9px 8px; margin-top: 18px; }
  .fn-ff.fn-js .fn-panel .fn-chip { gap: 7px; padding: 9px 12px 9px 10px; border-radius: 16px; font-size: 14.5px; }
  .fn-ff.fn-js .fn-panel .fn-chip .fn-pro { height: 20px; padding: 0 6px; font-size: 11.5px; }
  .fn-panel-x { top: 14px; right: 14px; width: 42px; height: 42px; }
  .fn-panel-nav { margin-top: 14px; }
  .fn-panel-nav button { width: 44px; height: 44px; }
  .fn-panel-nav span { font-size: 13.5px; }
  .fn-panel-ghost { font-size: 120px; }
  .fn-panel { padding: 0 16px 18px; }
  .fn-ff:not(.fn-js) .fn-ff-grid { grid-template-columns: minmax(0, 1fr); }
  .fn-ff:not(.fn-js) .fn-tile { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fn-ff *, .fn-ff *::before, .fn-ff *::after { animation: none !important; transition: none !important; }
}
